@prosekit/core 0.0.0-next-20231120040948 → 0.0.0-next-20240421132240
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_tsup-dts-rollup.d.ts +747 -49
- package/dist/prosekit-core.d.ts +62 -5
- package/dist/prosekit-core.js +787 -184
- package/package.json +7 -9
- package/dist/style.css +0 -55
- package/src/index.ts +0 -71
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@prosekit/core",
|
3
3
|
"type": "module",
|
4
|
-
"version": "0.0.0-next-
|
4
|
+
"version": "0.0.0-next-20240421132240",
|
5
5
|
"private": false,
|
6
6
|
"author": {
|
7
7
|
"name": "ocavue",
|
@@ -29,24 +29,22 @@
|
|
29
29
|
"types": "./dist/prosekit-core.d.ts",
|
30
30
|
"import": "./dist/prosekit-core.js",
|
31
31
|
"default": "./dist/prosekit-core.js"
|
32
|
-
},
|
33
|
-
"./style.css": {
|
34
|
-
"default": "./dist/style.css"
|
35
32
|
}
|
36
33
|
},
|
37
34
|
"files": [
|
38
35
|
"dist"
|
39
36
|
],
|
40
37
|
"dependencies": {
|
41
|
-
"@prosekit/pm": "0.0.0-next-
|
38
|
+
"@prosekit/pm": "0.0.0-next-20240421132240",
|
39
|
+
"clsx": "^2.1.0",
|
42
40
|
"orderedmap": "^2.1.1",
|
43
|
-
"type-fest": "^4.
|
41
|
+
"type-fest": "^4.15.0"
|
44
42
|
},
|
45
43
|
"devDependencies": {
|
46
44
|
"@prosekit/dev": "*",
|
47
|
-
"tsup": "^8.0.
|
48
|
-
"typescript": "^5.
|
49
|
-
"vitest": "^
|
45
|
+
"tsup": "^8.0.2",
|
46
|
+
"typescript": "^5.4.5",
|
47
|
+
"vitest": "^1.5.0"
|
50
48
|
},
|
51
49
|
"scripts": {
|
52
50
|
"build:tsup": "tsup",
|
package/dist/style.css
DELETED
@@ -1,55 +0,0 @@
|
|
1
|
-
/* ../../node_modules/.pnpm/prosemirror-view@1.32.4/node_modules/prosemirror-view/style/prosemirror.css */
|
2
|
-
.ProseMirror {
|
3
|
-
position: relative;
|
4
|
-
}
|
5
|
-
.ProseMirror {
|
6
|
-
word-wrap: break-word;
|
7
|
-
white-space: pre-wrap;
|
8
|
-
white-space: break-spaces;
|
9
|
-
-webkit-font-variant-ligatures: none;
|
10
|
-
font-variant-ligatures: none;
|
11
|
-
font-feature-settings: "liga" 0;
|
12
|
-
}
|
13
|
-
.ProseMirror pre {
|
14
|
-
white-space: pre-wrap;
|
15
|
-
}
|
16
|
-
.ProseMirror li {
|
17
|
-
position: relative;
|
18
|
-
}
|
19
|
-
.ProseMirror-hideselection *::selection {
|
20
|
-
background: transparent;
|
21
|
-
}
|
22
|
-
.ProseMirror-hideselection *::-moz-selection {
|
23
|
-
background: transparent;
|
24
|
-
}
|
25
|
-
.ProseMirror-hideselection {
|
26
|
-
caret-color: transparent;
|
27
|
-
}
|
28
|
-
.ProseMirror [draggable][contenteditable=false] {
|
29
|
-
user-select: text;
|
30
|
-
}
|
31
|
-
.ProseMirror-selectednode {
|
32
|
-
outline: 2px solid #8cf;
|
33
|
-
}
|
34
|
-
li.ProseMirror-selectednode {
|
35
|
-
outline: none;
|
36
|
-
}
|
37
|
-
li.ProseMirror-selectednode:after {
|
38
|
-
content: "";
|
39
|
-
position: absolute;
|
40
|
-
left: -32px;
|
41
|
-
right: -2px;
|
42
|
-
top: -2px;
|
43
|
-
bottom: -2px;
|
44
|
-
border: 2px solid #8cf;
|
45
|
-
pointer-events: none;
|
46
|
-
}
|
47
|
-
img.ProseMirror-separator {
|
48
|
-
display: inline !important;
|
49
|
-
border: none !important;
|
50
|
-
margin: 0 !important;
|
51
|
-
}
|
52
|
-
|
53
|
-
/* ../pm/src/view/style/prosemirror.css */
|
54
|
-
|
55
|
-
/* src/style.css */
|
package/src/index.ts
DELETED
@@ -1,71 +0,0 @@
|
|
1
|
-
export { addMark } from './commands/add-mark'
|
2
|
-
export { insertNode } from './commands/insert-node'
|
3
|
-
export { removeMark } from './commands/remove-mark'
|
4
|
-
export { setBlockType } from './commands/set-block-type'
|
5
|
-
export { toggleMark } from './commands/toggle-mark'
|
6
|
-
export { toggleNode } from './commands/toggle-node'
|
7
|
-
export { Editor, createEditor, type EditorOptions } from './editor/editor'
|
8
|
-
export { union } from './editor/union'
|
9
|
-
export { withPriority } from './editor/with-priority'
|
10
|
-
export { ProseKitError } from './error'
|
11
|
-
export { defineBaseCommands, defineCommands } from './extensions/command'
|
12
|
-
export {
|
13
|
-
defineDefaultState,
|
14
|
-
type DefaultStateOptions,
|
15
|
-
} from './extensions/default-state'
|
16
|
-
export { defineDoc } from './extensions/doc'
|
17
|
-
export { defineHistory } from './extensions/history'
|
18
|
-
export { defineInputRule } from './extensions/input-rules'
|
19
|
-
export {
|
20
|
-
defineBaseKeymap,
|
21
|
-
defineKeymap,
|
22
|
-
type Keymap,
|
23
|
-
} from './extensions/keymap'
|
24
|
-
export { defineMarkSpec, type MarkSpecOptions } from './extensions/mark-spec'
|
25
|
-
export { defineNodeSpec, type NodeSpecOptions } from './extensions/node-spec'
|
26
|
-
export { defineNodeView, type NodeViewOptions } from './extensions/node-view'
|
27
|
-
export {
|
28
|
-
defineNodeViewEffect,
|
29
|
-
type NodeViewEffectOptions,
|
30
|
-
} from './extensions/node-view-effect'
|
31
|
-
export { defineParagraph } from './extensions/paragraph'
|
32
|
-
export {
|
33
|
-
definePlugin,
|
34
|
-
pluginFacet,
|
35
|
-
type PluginPayload,
|
36
|
-
} from './extensions/plugin'
|
37
|
-
export { defineText } from './extensions/text'
|
38
|
-
export { defineUpdateHandler } from './extensions/update-handler'
|
39
|
-
export { Facet, type FacetOptions } from './facets/facet'
|
40
|
-
export { type CommandArgs } from './types/command'
|
41
|
-
export {
|
42
|
-
type Extension,
|
43
|
-
type ExtractCommandAppliers,
|
44
|
-
type ExtractCommandCreators,
|
45
|
-
type ExtractMarks,
|
46
|
-
type ExtractNodes,
|
47
|
-
type SimplifyExtension,
|
48
|
-
} from './types/extension'
|
49
|
-
export { type ExtensionTyping } from './types/extension-typing'
|
50
|
-
export type { NodeJSON, SelectionJSON, StateJSON } from './types/model'
|
51
|
-
export { Priority } from './types/priority'
|
52
|
-
export { type SimplifyUnion } from './types/simplify-union'
|
53
|
-
export { getMarkType } from './utils/get-mark-type'
|
54
|
-
export { getNodeType } from './utils/get-node-type'
|
55
|
-
export {
|
56
|
-
jsonFromElement,
|
57
|
-
jsonFromHTML,
|
58
|
-
jsonFromNode,
|
59
|
-
jsonFromState,
|
60
|
-
nodeFromElement,
|
61
|
-
nodeFromHTML,
|
62
|
-
nodeFromJSON,
|
63
|
-
stateFromJSON,
|
64
|
-
} from './utils/parse'
|
65
|
-
export {
|
66
|
-
isAllSelection,
|
67
|
-
isMark,
|
68
|
-
isNodeSelection,
|
69
|
-
isProseMirrorNode,
|
70
|
-
isTextSelection,
|
71
|
-
} from './utils/type-assertion'
|