@prosekit/basic 0.3.12 → 0.3.14

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,19 +1,24 @@
1
- import { Attrs } from 'prosemirror-model';
1
+ import { AddMarkOptions } from '@prosekit/core';
2
2
  import { DedentListOptions } from 'prosemirror-flat-list';
3
3
  import { config as default_alias_2 } from '@prosekit/dev/config-vitest';
4
4
  import { Extension } from '@prosekit/core';
5
5
  import { HeadingAttrs } from '@prosekit/extensions/heading';
6
6
  import { ImageAttrs } from '@prosekit/extensions/image';
7
7
  import { IndentListOptions } from 'prosemirror-flat-list';
8
+ import { InsertNodeOptions } from '@prosekit/core';
8
9
  import { LinkAttrs } from '@prosekit/extensions/link';
9
10
  import { ListAttributes } from 'prosemirror-flat-list';
10
- import { MarkType } from 'prosemirror-model';
11
- import { Node as Node_2 } from 'prosemirror-model';
12
- import { NodeRange } from 'prosemirror-model';
13
- import { NodeType } from 'prosemirror-model';
14
11
  import { Options } from 'tsup';
12
+ import { RemoveMarkOptions } from '@prosekit/core';
13
+ import { RemoveNodeOptions } from '@prosekit/core';
14
+ import { SetBlockTypeOptions } from '@prosekit/core';
15
+ import { SetNodeAttrsOptions } from '@prosekit/core';
15
16
  import { ToggleCollapsedOptions } from 'prosemirror-flat-list';
17
+ import { UnsetBlockTypeOptions } from '@prosekit/core';
18
+ import { UnsetMarkOptions } from '@prosekit/core';
16
19
  import { UnwrapListOptions } from 'prosemirror-flat-list';
20
+ import { WrapInListGetAttrs } from 'prosemirror-flat-list';
21
+ import { WrapOptions } from '@prosekit/core';
17
22
 
18
23
  /**
19
24
  * @public
@@ -44,49 +49,16 @@ text: string;
44
49
  from?: number;
45
50
  to?: number;
46
51
  }];
47
- insertNode: [options: {
48
- node: Node_2;
49
- pos?: number;
50
- type?: undefined;
51
- attrs?: undefined;
52
- } | {
53
- node?: undefined;
54
- pos?: number;
55
- type: string;
56
- attrs?: Attrs;
57
- }];
58
- removeNode: [options: {
59
- type: string | NodeType;
60
- pos?: number;
61
- }];
62
- wrap: [{
63
- nodeType: NodeType;
64
- attrs?: Attrs | null;
65
- }];
66
- setBlockType: [options: {
67
- type: NodeType | string;
68
- attrs?: Attrs | null;
69
- from?: number;
70
- to?: number;
71
- }];
72
- setNodeAttrs: [options: {
73
- type: string | NodeType | string[] | NodeType[];
74
- attrs: Attrs;
75
- pos?: number;
76
- }];
52
+ insertNode: [options: InsertNodeOptions];
53
+ removeNode: [options: RemoveNodeOptions];
54
+ wrap: [WrapOptions];
55
+ setBlockType: [options: SetBlockTypeOptions];
56
+ setNodeAttrs: [options: SetNodeAttrsOptions];
77
57
  selectAll: [];
78
- addMark: [options: {
79
- type: string | MarkType;
80
- attrs?: Attrs | null;
81
- from?: number;
82
- to?: number;
83
- }];
84
- removeMark: [options: {
85
- type: string | MarkType;
86
- attrs?: Attrs | null;
87
- from?: number;
88
- to?: number;
89
- }];
58
+ addMark: [options: AddMarkOptions];
59
+ removeMark: [options: RemoveMarkOptions];
60
+ unsetBlockType: [options?: UnsetBlockTypeOptions | undefined];
61
+ unsetMark: [options?: UnsetMarkOptions | undefined];
90
62
  undo: [];
91
63
  redo: [];
92
64
  toggleBold: [];
@@ -107,7 +79,7 @@ splitList: [];
107
79
  toggleCollapsed: [(ToggleCollapsedOptions | undefined)?];
108
80
  toggleList: [attrs: ListAttributes];
109
81
  unwrapList: [options?: UnwrapListOptions | undefined];
110
- wrapInList: [getAttrs: ListAttributes | ((range: NodeRange) => ListAttributes | null)];
82
+ wrapInList: [getAttrs: WrapInListGetAttrs<ListAttributes>];
111
83
  insertList: [attrs?: ListAttributes | undefined];
112
84
  toggleStrike: [];
113
85
  insertTable: [{
package/dist/style.css CHANGED
@@ -49,7 +49,7 @@ img.ProseMirror-separator {
49
49
 
50
50
  /* ../pm/src/view/style/prosemirror.css */
51
51
 
52
- /* ../../node_modules/.pnpm/prosemirror-flat-list@0.5.1/node_modules/prosemirror-flat-list/dist/style.css */
52
+ /* ../../node_modules/.pnpm/prosemirror-flat-list@0.5.2/node_modules/prosemirror-flat-list/dist/style.css */
53
53
  .prosemirror-flat-list {
54
54
  padding: 0;
55
55
  margin-top: 0;
@@ -136,3 +136,6 @@ div.ProseMirror .prosemirror-flat-list:has(> div.list-content > h6) > .list-mark
136
136
  div.ProseMirror .ProseMirror-selectednode {
137
137
  z-index: calc(infinity);
138
138
  }
139
+ div.ProseMirror div[data-node-view-root=true] {
140
+ display: contents;
141
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@prosekit/basic",
3
3
  "type": "module",
4
- "version": "0.3.12",
4
+ "version": "0.3.14",
5
5
  "private": false,
6
6
  "author": {
7
7
  "name": "ocavue",
@@ -41,16 +41,16 @@
41
41
  "dist"
42
42
  ],
43
43
  "dependencies": {
44
- "@prosekit/core": "^0.7.1",
45
- "@prosekit/extensions": "^0.7.1",
46
- "@prosekit/pm": "^0.1.5"
44
+ "@prosekit/pm": "^0.1.5",
45
+ "@prosekit/extensions": "^0.7.2",
46
+ "@prosekit/core": "^0.7.2"
47
47
  },
48
48
  "devDependencies": {
49
49
  "postcss": "^8.4.39",
50
50
  "postcss-nesting": "^12.1.5",
51
51
  "tsup": "^8.1.0",
52
52
  "typescript": "^5.5.3",
53
- "vitest": "^2.0.0-beta.13",
53
+ "vitest": "^2.0.2",
54
54
  "@prosekit/dev": "0.0.0"
55
55
  },
56
56
  "scripts": {