mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-28 15:49:23 +08:00
Merge branch 'main' of github.com:ueberdosis/tiptap-next into main
This commit is contained in:
commit
4e96b14007
@ -4,5 +4,11 @@
|
||||
],
|
||||
"npmClient": "yarn",
|
||||
"version": "independent",
|
||||
"useWorkspaces": false
|
||||
"useWorkspaces": false,
|
||||
"command": {
|
||||
"publish": {
|
||||
"conventionalCommits": true,
|
||||
"yes": true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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",
|
||||
|
@ -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
|
||||
|
@ -1,10 +1,4 @@
|
||||
export {
|
||||
Editor,
|
||||
Command,
|
||||
CommandsSpec,
|
||||
AllExtensions,
|
||||
} from './Editor'
|
||||
|
||||
export * from './Editor'
|
||||
export * from './Extension'
|
||||
export * from './Node'
|
||||
export * from './Mark'
|
||||
|
@ -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'],
|
||||
},
|
||||
},
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user