@prosekit/basic 0.3.8 → 0.3.10

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,5 +1,18 @@
1
+ import { Attrs } from 'prosemirror-model';
2
+ import { DedentListOptions } from 'prosemirror-flat-list';
1
3
  import { Extension } from '@prosekit/core';
4
+ import { HeadingAttrs } from '@prosekit/extensions/heading';
5
+ import { ImageAttrs } from '@prosekit/extensions/image';
6
+ import { IndentListOptions } from 'prosemirror-flat-list';
7
+ import { LinkAttrs } from '@prosekit/extensions/link';
8
+ import { ListAttributes } from 'prosemirror-flat-list';
9
+ import { MarkType } from 'prosemirror-model';
10
+ import { Node as Node_2 } from 'prosemirror-model';
11
+ import { NodeRange } from 'prosemirror-model';
12
+ import { NodeType } from 'prosemirror-model';
2
13
  import { Options } from 'tsup';
14
+ import { ToggleCollapsedOptions } from 'prosemirror-flat-list';
15
+ import { UnwrapListOptions } from 'prosemirror-flat-list';
3
16
 
4
17
  /**
5
18
  * @public
@@ -26,10 +39,87 @@ export declare const default_alias_2: {
26
39
  * @public
27
40
  */
28
41
  export declare function defineBasicExtension(): Extension< {
29
- Nodes: any;
30
- Marks: any;
42
+ Nodes: "blockquote" | "table" | "text" | "doc" | "paragraph" | "heading" | "image" | "list" | "tableRow" | "tableCell" | "tableHeaderCell";
43
+ Marks: "code" | "link" | "bold" | "strike" | "italic" | "underline";
31
44
  Commands: {
32
- [x: string]: any;
45
+ insertText: [{
46
+ text: string;
47
+ from?: number;
48
+ to?: number;
49
+ }];
50
+ insertNode: [options: {
51
+ node: Node_2;
52
+ pos?: number;
53
+ type?: undefined;
54
+ attrs?: undefined;
55
+ } | {
56
+ node?: undefined;
57
+ pos?: number;
58
+ type: string;
59
+ attrs?: Attrs;
60
+ }];
61
+ removeNode: [options: {
62
+ type: string | NodeType;
63
+ pos?: number;
64
+ }];
65
+ wrap: [{
66
+ nodeType: NodeType;
67
+ attrs?: Attrs | null;
68
+ }];
69
+ setBlockType: [options: {
70
+ type: NodeType | string;
71
+ attrs?: Attrs | null;
72
+ from?: number;
73
+ to?: number;
74
+ }];
75
+ setNodeAttrs: [options: {
76
+ type: string | NodeType | string[] | NodeType[];
77
+ attrs: Attrs;
78
+ pos?: number;
79
+ }];
80
+ selectAll: [];
81
+ addMark: [options: {
82
+ type: string | MarkType;
83
+ attrs?: Attrs | null;
84
+ from?: number;
85
+ to?: number;
86
+ }];
87
+ removeMark: [options: {
88
+ type: string | MarkType;
89
+ attrs?: Attrs | null;
90
+ from?: number;
91
+ to?: number;
92
+ }];
93
+ undo: [];
94
+ redo: [];
95
+ toggleBold: [];
96
+ toggleCode: [];
97
+ setHeading: [attrs?: HeadingAttrs | undefined];
98
+ insertHeading: [attrs?: HeadingAttrs | undefined];
99
+ toggleHeading: [attrs?: HeadingAttrs | undefined];
100
+ insertImage: [attrs?: ImageAttrs | undefined];
101
+ toggleItalic: [];
102
+ addLink: [attrs: LinkAttrs];
103
+ removeLink: [];
104
+ toggleLink: [attrs: LinkAttrs];
105
+ expandLink: [];
106
+ dedentList: [options?: DedentListOptions | undefined];
107
+ indentList: [options?: IndentListOptions | undefined];
108
+ moveList: [direction: "up" | "down"];
109
+ splitList: [];
110
+ toggleCollapsed: [(ToggleCollapsedOptions | undefined)?];
111
+ toggleList: [attrs: ListAttributes];
112
+ unwrapList: [options?: UnwrapListOptions | undefined];
113
+ wrapInList: [getAttrs: ListAttributes | ((range: NodeRange) => ListAttributes | null)];
114
+ insertList: [attrs?: ListAttributes | undefined];
115
+ toggleStrike: [];
116
+ insertTable: [{
117
+ row: number;
118
+ col: number;
119
+ header: boolean;
120
+ }];
121
+ exitTable: [];
122
+ toggleUnderline: [];
33
123
  };
34
124
  }>;
35
125
 
package/dist/style.css CHANGED
@@ -1,4 +1,4 @@
1
- /* ../../node_modules/.pnpm/prosemirror-view@1.33.7/node_modules/prosemirror-view/style/prosemirror.css */
1
+ /* ../../node_modules/.pnpm/prosemirror-view@1.33.8/node_modules/prosemirror-view/style/prosemirror.css */
2
2
  .ProseMirror {
3
3
  position: relative;
4
4
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@prosekit/basic",
3
3
  "type": "module",
4
- "version": "0.3.8",
4
+ "version": "0.3.10",
5
5
  "private": false,
6
6
  "author": {
7
7
  "name": "ocavue",
@@ -41,15 +41,15 @@
41
41
  "dist"
42
42
  ],
43
43
  "dependencies": {
44
- "@prosekit/core": "^0.5.5",
44
+ "@prosekit/core": "^0.6.1",
45
45
  "@prosekit/pm": "^0.1.5",
46
- "@prosekit/extensions": "^0.5.3"
46
+ "@prosekit/extensions": "^0.6.1"
47
47
  },
48
48
  "devDependencies": {
49
49
  "postcss": "^8.4.38",
50
50
  "postcss-nesting": "^12.1.5",
51
51
  "tsup": "^8.1.0",
52
- "typescript": "^5.4.5",
52
+ "typescript": "^5.5.2",
53
53
  "vitest": "^1.6.0",
54
54
  "@prosekit/dev": "0.0.0"
55
55
  },