Merge branch 'main' of github.com:ueberdosis/tiptap-next into main

This commit is contained in:
Hans Pagel
2020-11-16 17:18:44 +01:00
6 changed files with 41 additions and 15 deletions

View File

@@ -4,5 +4,11 @@
], ],
"npmClient": "yarn", "npmClient": "yarn",
"version": "independent", "version": "independent",
"useWorkspaces": false "useWorkspaces": false,
"command": {
"publish": {
"conventionalCommits": true,
"yes": true
}
}
} }

View File

@@ -3,6 +3,25 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [2.0.0-alpha.3](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/core@2.0.0-alpha.2...@tiptap/core@2.0.0-alpha.3) (2020-11-16)
### Reverts
* Revert "use global namespace" ([0c9ce26](https://github.com/ueberdosis/tiptap-next/commit/0c9ce26c02c07d88a757c01b0a9d7f9e2b0b7502))
# [2.0.0-alpha.2](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/core@2.0.0-alpha.1...@tiptap/core@2.0.0-alpha.2) (2020-11-16)
**Note:** Version bump only for package @tiptap/core
# [2.0.0-alpha.1](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/core@2.0.0-alpha.0...@tiptap/core@2.0.0-alpha.1) (2020-11-16) # [2.0.0-alpha.1](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/core@2.0.0-alpha.0...@tiptap/core@2.0.0-alpha.1) (2020-11-16)
**Note:** Version bump only for package @tiptap/core **Note:** Version bump only for package @tiptap/core

View File

@@ -1,8 +1,13 @@
{ {
"name": "@tiptap/core", "name": "@tiptap/core",
"version": "2.0.0-alpha.1", "version": "2.0.0-alpha.3",
"homepage": "https://tiptap.dev", "homepage": "https://tiptap.dev",
"keywords": ["tiptap", "headless", "wysiwyg", "text editor"], "keywords": [
"tiptap",
"headless",
"wysiwyg",
"text editor"
],
"license": "MIT", "license": "MIT",
"funding": { "funding": {
"type": "github", "type": "github",

View File

@@ -21,6 +21,8 @@ import { Extensions, UnionToIntersection } from './types'
import * as extensions from './extensions' import * as extensions from './extensions'
import style from './style' import style from './style'
export { extensions }
export type Command = (props: { export type Command = (props: {
editor: Editor, editor: Editor,
tr: Transaction, tr: Transaction,
@@ -50,9 +52,9 @@ export type UnfilteredCommands = {
: never : never
} }
type ValuesOf<T> = T[keyof T]; export type ValuesOf<T> = T[keyof T];
type KeysWithTypeOf<T, Type> = ({[P in keyof T]: T[P] extends Type ? P : never })[keyof T] export type KeysWithTypeOf<T, Type> = ({[P in keyof T]: T[P] extends Type ? P : never })[keyof T]
type AllCommands = UnionToIntersection<ValuesOf<Pick<UnfilteredCommands, KeysWithTypeOf<UnfilteredCommands, {}>>>> export type AllCommands = UnionToIntersection<ValuesOf<Pick<UnfilteredCommands, KeysWithTypeOf<UnfilteredCommands, {}>>>>
export type SingleCommands = { export type SingleCommands = {
[Item in keyof AllCommands]: AllCommands[Item] extends (...args: any[]) => any [Item in keyof AllCommands]: AllCommands[Item] extends (...args: any[]) => any

View File

@@ -1,10 +1,4 @@
export { export * from './Editor'
Editor,
Command,
CommandsSpec,
AllExtensions,
} from './Editor'
export * from './Extension' export * from './Extension'
export * from './Node' export * from './Node'
export * from './Mark' export * from './Mark'

View File

@@ -90,7 +90,7 @@ async function build(commandLineArgs) {
compilerOptions: { compilerOptions: {
declaration: true, declaration: true,
paths: { paths: {
'@tiptap/*': ['*/src'], '@tiptap/*': ['packages/*/src'],
}, },
}, },
include: null, include: null,
@@ -124,7 +124,7 @@ async function build(commandLineArgs) {
tsconfigOverride: { tsconfigOverride: {
compilerOptions: { compilerOptions: {
paths: { paths: {
'@tiptap/*': ['*/src'], '@tiptap/*': ['packages/*/src'],
}, },
}, },
}, },