@prosekit/extensions 0.7.10 → 0.7.11
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 +4 -4
- package/dist/{chunk-GPSAJOJA.js → chunk-GITDYNLT.js} +0 -3
- package/dist/{chunk-J57QWYYX.js → chunk-LAQZC3ZM.js} +0 -1
- package/dist/prosekit-extensions-autocomplete.js +3 -2
- package/dist/prosekit-extensions-blockquote.js +1 -1
- package/dist/prosekit-extensions-bold.js +1 -1
- package/dist/prosekit-extensions-code-block.js +1 -1
- package/dist/prosekit-extensions-code.js +1 -1
- package/dist/prosekit-extensions-commit.js +4 -1
- package/dist/prosekit-extensions-heading.d.ts +1 -1
- package/dist/prosekit-extensions-heading.js +1 -1
- package/dist/prosekit-extensions-input-rule.js +1 -1
- package/dist/prosekit-extensions-italic.js +1 -1
- package/dist/prosekit-extensions-link.js +2 -2
- package/dist/prosekit-extensions-list.js +1 -1
- package/dist/prosekit-extensions-mark-rule.js +1 -1
- package/dist/prosekit-extensions-placeholder.js +0 -1
- package/dist/prosekit-extensions-strike.js +1 -1
- package/dist/prosekit-extensions-yjs.js +0 -7
- package/package.json +5 -5
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Attrs } from '@prosekit/pm/model';
|
2
2
|
import { Attrs as Attrs_2 } from 'prosemirror-model';
|
3
|
-
import { Awareness } from 'y-protocols/awareness';
|
3
|
+
import type { Awareness } from 'y-protocols/awareness';
|
4
4
|
import { BaseCommandsExtension } from '@prosekit/core';
|
5
5
|
import { BundledLanguage } from 'shiki';
|
6
6
|
import { BundledLanguageInfo } from 'shiki';
|
@@ -24,14 +24,14 @@ import { HistoryExtension } from '@prosekit/core';
|
|
24
24
|
import { IndentListOptions } from 'prosemirror-flat-list';
|
25
25
|
import { InputRule } from '@prosekit/pm/inputrules';
|
26
26
|
import type { IsEqual } from 'type-fest';
|
27
|
-
import
|
27
|
+
import { ListAttributes } from 'prosemirror-flat-list';
|
28
28
|
import { ListDOMSerializer } from 'prosemirror-flat-list';
|
29
29
|
import { MarkType } from '@prosekit/pm/model';
|
30
30
|
import { Node as Node_2 } from 'prosemirror-model';
|
31
31
|
import { NodeAction } from '@prosekit/core';
|
32
32
|
import { NodeChild } from '@prosekit/core';
|
33
33
|
import { NodeJSON } from '@prosekit/core';
|
34
|
-
import { NodeType } from '@prosekit/pm/model';
|
34
|
+
import type { NodeType } from '@prosekit/pm/model';
|
35
35
|
import { Options } from 'tsup';
|
36
36
|
import { Parser } from 'prosemirror-highlight';
|
37
37
|
import { PlainExtension } from '@prosekit/core';
|
@@ -49,7 +49,7 @@ import { Transaction } from '@prosekit/pm/state';
|
|
49
49
|
import { Union } from '@prosekit/core';
|
50
50
|
import { UnwrapListOptions } from 'prosemirror-flat-list';
|
51
51
|
import { WrapInListGetAttrs } from 'prosemirror-flat-list';
|
52
|
-
import * as Y from 'yjs';
|
52
|
+
import type * as Y from 'yjs';
|
53
53
|
import { yCursorPlugin } from 'y-prosemirror';
|
54
54
|
import { ySyncPlugin } from 'y-prosemirror';
|
55
55
|
import { yUndoPlugin } from 'y-prosemirror';
|
@@ -15,11 +15,8 @@ import {
|
|
15
15
|
getMarkType,
|
16
16
|
maybeRun
|
17
17
|
} from "@prosekit/core";
|
18
|
-
import "@prosekit/pm/model";
|
19
|
-
import "@prosekit/pm/state";
|
20
18
|
|
21
19
|
// src/mark-rule/range.ts
|
22
|
-
import "@prosekit/pm/state";
|
23
20
|
function getSpanTextRanges($from, $to) {
|
24
21
|
const nodeRange = $from.blockRange($to);
|
25
22
|
if (!nodeRange) {
|
@@ -11,8 +11,9 @@ import { Plugin } from "@prosekit/pm/state";
|
|
11
11
|
import { Decoration, DecorationSet } from "@prosekit/pm/view";
|
12
12
|
|
13
13
|
// src/autocomplete/helpers.ts
|
14
|
-
import
|
15
|
-
|
14
|
+
import {
|
15
|
+
PluginKey
|
16
|
+
} from "@prosekit/pm/state";
|
16
17
|
function defaultCanMatch({ state }) {
|
17
18
|
return state.selection.empty && !isInsideCode(state.selection.$from);
|
18
19
|
}
|
@@ -11,7 +11,10 @@ import {
|
|
11
11
|
Fragment,
|
12
12
|
Slice
|
13
13
|
} from "@prosekit/pm/model";
|
14
|
-
import {
|
14
|
+
import {
|
15
|
+
PluginKey,
|
16
|
+
ProseMirrorPlugin
|
17
|
+
} from "@prosekit/pm/state";
|
15
18
|
import { Step } from "@prosekit/pm/transform";
|
16
19
|
import { Decoration, DecorationSet } from "@prosekit/pm/view";
|
17
20
|
import { ChangeSet } from "prosemirror-changeset";
|
@@ -4,6 +4,6 @@ export { defineHeadingCommands_alias_1 as defineHeadingCommands } from './_tsup-
|
|
4
4
|
export { defineHeadingInputRule } from './_tsup-dts-rollup';
|
5
5
|
export { defineHeadingKeymap } from './_tsup-dts-rollup';
|
6
6
|
export { defineHeadingSpec } from './_tsup-dts-rollup';
|
7
|
+
export { HeadingAttrs } from './_tsup-dts-rollup';
|
7
8
|
export { HeadingCommandsExtension_alias_1 as HeadingCommandsExtension } from './_tsup-dts-rollup';
|
8
9
|
export { HeadingSpecExtension } from './_tsup-dts-rollup';
|
9
|
-
export { HeadingAttrs } from './_tsup-dts-rollup';
|
@@ -1,12 +1,12 @@
|
|
1
1
|
import {
|
2
2
|
defineMarkRule
|
3
|
-
} from "./chunk-
|
3
|
+
} from "./chunk-GITDYNLT.js";
|
4
4
|
import {
|
5
5
|
defineEnterRule
|
6
6
|
} from "./chunk-RE23OQPF.js";
|
7
7
|
import {
|
8
8
|
defineInputRule
|
9
|
-
} from "./chunk-
|
9
|
+
} from "./chunk-LAQZC3ZM.js";
|
10
10
|
|
11
11
|
// src/link/index.ts
|
12
12
|
import {
|
@@ -1,6 +1,5 @@
|
|
1
1
|
// src/placeholder/index.ts
|
2
2
|
import { definePlugin, isInCodeBlock } from "@prosekit/core";
|
3
|
-
import "@prosekit/pm/model";
|
4
3
|
import { Plugin, PluginKey } from "@prosekit/pm/state";
|
5
4
|
import { Decoration, DecorationSet } from "@prosekit/pm/view";
|
6
5
|
function definePlaceholder(options) {
|
@@ -5,12 +5,6 @@ import {
|
|
5
5
|
withPriority
|
6
6
|
} from "@prosekit/core";
|
7
7
|
|
8
|
-
// ../../node_modules/.pnpm/y-protocols@1.0.6_yjs@13.6.18/node_modules/y-protocols/awareness.js
|
9
|
-
import * as Y from "yjs";
|
10
|
-
|
11
|
-
// src/yjs/index.ts
|
12
|
-
import "yjs";
|
13
|
-
|
14
8
|
// src/yjs/commands.ts
|
15
9
|
import { defineCommands } from "@prosekit/core";
|
16
10
|
|
@@ -118,7 +112,6 @@ function defineYjsKeymap() {
|
|
118
112
|
// src/yjs/sync-plugin.ts
|
119
113
|
import { definePlugin as definePlugin3 } from "@prosekit/core";
|
120
114
|
import { ySyncPlugin } from "y-prosemirror";
|
121
|
-
import "yjs";
|
122
115
|
function defineYjsSyncPlugin(options) {
|
123
116
|
const { fragment, ...rest } = options;
|
124
117
|
return definePlugin3(ySyncPlugin(fragment, rest));
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@prosekit/extensions",
|
3
3
|
"type": "module",
|
4
|
-
"version": "0.7.
|
4
|
+
"version": "0.7.11",
|
5
5
|
"private": false,
|
6
6
|
"author": {
|
7
7
|
"name": "ocavue",
|
@@ -201,8 +201,8 @@
|
|
201
201
|
"prosemirror-highlight": "^0.8.0",
|
202
202
|
"prosemirror-search": "^1.0.0",
|
203
203
|
"prosemirror-tables": "^1.4.0",
|
204
|
-
"shiki": "^1.
|
205
|
-
"@prosekit/core": "^0.7.
|
204
|
+
"shiki": "^1.14.1",
|
205
|
+
"@prosekit/core": "^0.7.9",
|
206
206
|
"@prosekit/pm": "^0.1.8"
|
207
207
|
},
|
208
208
|
"peerDependencies": {
|
@@ -220,10 +220,10 @@
|
|
220
220
|
"devDependencies": {
|
221
221
|
"@vitest/browser": "^2.0.5",
|
222
222
|
"tsup": "^8.2.4",
|
223
|
-
"type-fest": "^4.
|
223
|
+
"type-fest": "^4.25.0",
|
224
224
|
"typescript": "^5.5.4",
|
225
225
|
"vitest": "^2.0.5",
|
226
|
-
"y-prosemirror": "^1.2.
|
226
|
+
"y-prosemirror": "^1.2.12",
|
227
227
|
"y-protocols": "^1.0.6",
|
228
228
|
"yjs": "^13.6.18",
|
229
229
|
"@prosekit/dev": "0.0.0"
|