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
commit 4e96b14007
6 changed files with 41 additions and 15 deletions

View File

@ -4,5 +4,11 @@
],
"npmClient": "yarn",
"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.
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)
**Note:** Version bump only for package @tiptap/core

View File

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

View File

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

View File

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

View File

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