@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.
@@ -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 type { ListAttributes } from 'prosemirror-flat-list';
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) {
@@ -14,7 +14,6 @@ import {
14
14
  textblockTypeInputRule,
15
15
  wrappingInputRule
16
16
  } from "@prosekit/pm/inputrules";
17
- import "@prosekit/pm/model";
18
17
  import "@prosekit/pm/state";
19
18
  function defineInputRule(rule) {
20
19
  return defineInputRuleFacetPayload(() => rule);
@@ -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 "@prosekit/pm/model";
15
- import { PluginKey } from "@prosekit/pm/state";
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
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  defineWrappingInputRule
3
- } from "./chunk-J57QWYYX.js";
3
+ } from "./chunk-LAQZC3ZM.js";
4
4
 
5
5
  // src/blockquote/index.ts
6
6
  import {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  defineMarkInputRule
3
- } from "./chunk-J57QWYYX.js";
3
+ } from "./chunk-LAQZC3ZM.js";
4
4
 
5
5
  // src/bold/index.ts
6
6
  import {
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-RE23OQPF.js";
4
4
  import {
5
5
  defineTextBlockInputRule
6
- } from "./chunk-J57QWYYX.js";
6
+ } from "./chunk-LAQZC3ZM.js";
7
7
 
8
8
  // src/code-block/code-block.ts
9
9
  import { union } from "@prosekit/core";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  defineMarkInputRule
3
- } from "./chunk-J57QWYYX.js";
3
+ } from "./chunk-LAQZC3ZM.js";
4
4
 
5
5
  // src/code/index.ts
6
6
  import {
@@ -11,7 +11,10 @@ import {
11
11
  Fragment,
12
12
  Slice
13
13
  } from "@prosekit/pm/model";
14
- import { PluginKey, ProseMirrorPlugin } from "@prosekit/pm/state";
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,6 +1,6 @@
1
1
  import {
2
2
  defineTextBlockInputRule
3
- } from "./chunk-J57QWYYX.js";
3
+ } from "./chunk-LAQZC3ZM.js";
4
4
 
5
5
  // src/heading/index.ts
6
6
  import { union } from "@prosekit/core";
@@ -4,7 +4,7 @@ import {
4
4
  defineMarkInputRule,
5
5
  defineTextBlockInputRule,
6
6
  defineWrappingInputRule
7
- } from "./chunk-J57QWYYX.js";
7
+ } from "./chunk-LAQZC3ZM.js";
8
8
  export {
9
9
  createMarkInputRule,
10
10
  defineInputRule,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  defineMarkInputRule
3
- } from "./chunk-J57QWYYX.js";
3
+ } from "./chunk-LAQZC3ZM.js";
4
4
 
5
5
  // src/italic/index.ts
6
6
  import {
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  defineMarkRule
3
- } from "./chunk-GPSAJOJA.js";
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-J57QWYYX.js";
9
+ } from "./chunk-LAQZC3ZM.js";
10
10
 
11
11
  // src/link/index.ts
12
12
  import {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  defineInputRule
3
- } from "./chunk-J57QWYYX.js";
3
+ } from "./chunk-LAQZC3ZM.js";
4
4
 
5
5
  // src/list/index.ts
6
6
  import { union as union2 } from "@prosekit/core";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  defineMarkRule
3
- } from "./chunk-GPSAJOJA.js";
3
+ } from "./chunk-GITDYNLT.js";
4
4
  export {
5
5
  defineMarkRule
6
6
  };
@@ -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) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  defineMarkInputRule
3
- } from "./chunk-J57QWYYX.js";
3
+ } from "./chunk-LAQZC3ZM.js";
4
4
 
5
5
  // src/strike/index.ts
6
6
  import {
@@ -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.10",
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.12.1",
205
- "@prosekit/core": "^0.7.8",
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.23.0",
223
+ "type-fest": "^4.25.0",
224
224
  "typescript": "^5.5.4",
225
225
  "vitest": "^2.0.5",
226
- "y-prosemirror": "^1.2.9",
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"