@prosekit/core 0.0.0-next-20230709094459 → 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 +1720 -0
- package/dist/prosekit-core.d.ts +123 -283
- package/dist/prosekit-core.js +1737 -389
- package/package.json +7 -9
- package/dist/style.css +0 -52
- package/src/index.ts +0 -30
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": "^
|
41
|
+
"type-fest": "^4.15.0"
|
44
42
|
},
|
45
43
|
"devDependencies": {
|
46
44
|
"@prosekit/dev": "*",
|
47
|
-
"tsup": "^
|
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,52 +0,0 @@
|
|
1
|
-
/* ../../node_modules/.pnpm/prosemirror-view@1.31.5/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-selectednode {
|
29
|
-
outline: 2px solid #8cf;
|
30
|
-
}
|
31
|
-
li.ProseMirror-selectednode {
|
32
|
-
outline: none;
|
33
|
-
}
|
34
|
-
li.ProseMirror-selectednode:after {
|
35
|
-
content: "";
|
36
|
-
position: absolute;
|
37
|
-
left: -32px;
|
38
|
-
right: -2px;
|
39
|
-
top: -2px;
|
40
|
-
bottom: -2px;
|
41
|
-
border: 2px solid #8cf;
|
42
|
-
pointer-events: none;
|
43
|
-
}
|
44
|
-
img.ProseMirror-separator {
|
45
|
-
display: inline !important;
|
46
|
-
border: none !important;
|
47
|
-
margin: 0 !important;
|
48
|
-
}
|
49
|
-
|
50
|
-
/* ../pm/src/view/style/prosemirror.css */
|
51
|
-
|
52
|
-
/* src/style.css */
|
package/src/index.ts
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
export { toggleMark } from './commands/toggle-mark'
|
2
|
-
export { Editor, createEditor, type EditorOptions } from './editor/editor'
|
3
|
-
export { Facet, FacetExtension, type FacetOptions } from './editor/facet'
|
4
|
-
export { defineExtension } from './editor/type-utils'
|
5
|
-
export { withPriority } from './editor/with-priority'
|
6
|
-
export { ProseKitError } from './error'
|
7
|
-
export { addBaseCommands, addCommands } from './extensions/command'
|
8
|
-
export { addDoc } from './extensions/doc'
|
9
|
-
export { addInputRule } from './extensions/input-rules'
|
10
|
-
export { addBaseKeymap, addKeymap, type Keymap } from './extensions/keymap'
|
11
|
-
export { addMarkSpec, type MarkSpecOptions } from './extensions/mark-spec'
|
12
|
-
export { addNodeSpec, type NodeSpecOptions } from './extensions/node-spec'
|
13
|
-
export { addNodeView, type NodeViewOptions } from './extensions/node-view'
|
14
|
-
export { addParagraph } from './extensions/paragraph'
|
15
|
-
export { addPlugin, type PluginOptions } from './extensions/plugin'
|
16
|
-
export { addText } from './extensions/text'
|
17
|
-
export { type CommandArgs as CommandArgs } from './types/command'
|
18
|
-
export * from './types/editor'
|
19
|
-
export {
|
20
|
-
type Extension,
|
21
|
-
type ExtractCommandCreators,
|
22
|
-
type ExtractCommandDispatchers,
|
23
|
-
type ExtractMarks,
|
24
|
-
type ExtractNodes,
|
25
|
-
} from './types/extension'
|
26
|
-
export { type ExtensionTyping } from './types/extension-typing'
|
27
|
-
export { Priority } from './types/priority'
|
28
|
-
export { type SimplifyUnion } from './types/simplify-union'
|
29
|
-
export { getMarkType } from './utils/get-mark-type'
|
30
|
-
export { getNodeType } from './utils/get-node-type'
|