@prosekit/extensions 0.0.0-next-20240724172520 → 0.0.0-next-20240724173606
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.
@@ -146,11 +146,35 @@ export declare interface CellAttrs {
|
|
146
146
|
* @public
|
147
147
|
*/
|
148
148
|
declare interface CodeBlockAttrs {
|
149
|
-
language
|
149
|
+
language: string;
|
150
150
|
}
|
151
151
|
export { CodeBlockAttrs }
|
152
152
|
export { CodeBlockAttrs as CodeBlockAttrs_alias_1 }
|
153
153
|
|
154
|
+
/**
|
155
|
+
* @internal
|
156
|
+
*/
|
157
|
+
declare type CodeBlockCommandsExtension = Extension<{
|
158
|
+
Commands: {
|
159
|
+
setCodeBlock: [attrs?: CodeBlockAttrs];
|
160
|
+
insertCodeBlock: [attrs?: CodeBlockAttrs];
|
161
|
+
toggleCodeBlock: [attrs?: CodeBlockAttrs];
|
162
|
+
setCodeBlockAttrs: [attrs: CodeBlockAttrs];
|
163
|
+
};
|
164
|
+
}>;
|
165
|
+
export { CodeBlockCommandsExtension }
|
166
|
+
export { CodeBlockCommandsExtension as CodeBlockCommandsExtension_alias_1 }
|
167
|
+
|
168
|
+
/**
|
169
|
+
* @internal
|
170
|
+
*/
|
171
|
+
declare type CodeBlockExtension = Union<[
|
172
|
+
CodeBlockSpecExtension,
|
173
|
+
CodeBlockCommandsExtension
|
174
|
+
]>;
|
175
|
+
export { CodeBlockExtension }
|
176
|
+
export { CodeBlockExtension as CodeBlockExtension_alias_1 }
|
177
|
+
|
154
178
|
/**
|
155
179
|
* @public
|
156
180
|
*/
|
@@ -176,6 +200,17 @@ export declare interface CodeBlockShikiOptions {
|
|
176
200
|
langAlias?: Record<string, BundledLanguage>;
|
177
201
|
}
|
178
202
|
|
203
|
+
/**
|
204
|
+
* @internal
|
205
|
+
*/
|
206
|
+
declare type CodeBlockSpecExtension = Extension<{
|
207
|
+
Nodes: {
|
208
|
+
codeBlock: CodeBlockAttrs;
|
209
|
+
};
|
210
|
+
}>;
|
211
|
+
export { CodeBlockSpecExtension }
|
212
|
+
export { CodeBlockSpecExtension as CodeBlockSpecExtension_alias_1 }
|
213
|
+
|
179
214
|
/**
|
180
215
|
* @internal
|
181
216
|
*/
|
@@ -321,20 +356,7 @@ export declare function defineCode(): CodeExtension;
|
|
321
356
|
*
|
322
357
|
* @public
|
323
358
|
*/
|
324
|
-
declare function defineCodeBlock():
|
325
|
-
Nodes: {
|
326
|
-
codeBlock: {
|
327
|
-
language: string;
|
328
|
-
};
|
329
|
-
};
|
330
|
-
}>, Extension<ExtensionTyping<any, any, any>>, Extension<ExtensionTyping<any, any, any>>, Extension<ExtensionTyping<any, any, any>>, Extension< {
|
331
|
-
Commands: {
|
332
|
-
setCodeBlock: [attrs?: CodeBlockAttrs | undefined];
|
333
|
-
insertCodeBlock: [attrs?: CodeBlockAttrs | undefined];
|
334
|
-
toggleCodeBlock: [attrs?: CodeBlockAttrs | undefined];
|
335
|
-
setCodeBlockAttrs: [attrs: CodeBlockAttrs];
|
336
|
-
};
|
337
|
-
}>]>;
|
359
|
+
declare function defineCodeBlock(): CodeBlockExtension;
|
338
360
|
export { defineCodeBlock }
|
339
361
|
export { defineCodeBlock as defineCodeBlock_alias_1 }
|
340
362
|
|
@@ -343,14 +365,7 @@ export { defineCodeBlock as defineCodeBlock_alias_1 }
|
|
343
365
|
*
|
344
366
|
* @public
|
345
367
|
*/
|
346
|
-
declare function defineCodeBlockCommands():
|
347
|
-
Commands: {
|
348
|
-
setCodeBlock: [attrs?: CodeBlockAttrs | undefined];
|
349
|
-
insertCodeBlock: [attrs?: CodeBlockAttrs | undefined];
|
350
|
-
toggleCodeBlock: [attrs?: CodeBlockAttrs | undefined];
|
351
|
-
setCodeBlockAttrs: [attrs: CodeBlockAttrs];
|
352
|
-
};
|
353
|
-
}>;
|
368
|
+
declare function defineCodeBlockCommands(): CodeBlockCommandsExtension;
|
354
369
|
export { defineCodeBlockCommands }
|
355
370
|
export { defineCodeBlockCommands as defineCodeBlockCommands_alias_1 }
|
356
371
|
|
@@ -405,13 +420,7 @@ export { defineCodeBlockShiki as defineCodeBlockShiki_alias_1 }
|
|
405
420
|
*
|
406
421
|
* @public
|
407
422
|
*/
|
408
|
-
declare function defineCodeBlockSpec():
|
409
|
-
Nodes: {
|
410
|
-
codeBlock: {
|
411
|
-
language: string;
|
412
|
-
};
|
413
|
-
};
|
414
|
-
}>;
|
423
|
+
declare function defineCodeBlockSpec(): CodeBlockSpecExtension;
|
415
424
|
export { defineCodeBlockSpec }
|
416
425
|
export { defineCodeBlockSpec as defineCodeBlockSpec_alias_1 }
|
417
426
|
|
@@ -1,11 +1,14 @@
|
|
1
1
|
export { defineCodeBlock_alias_1 as defineCodeBlock } from './_tsup-dts-rollup';
|
2
|
+
export { CodeBlockExtension_alias_1 as CodeBlockExtension } from './_tsup-dts-rollup';
|
2
3
|
export { defineCodeBlockCommands_alias_1 as defineCodeBlockCommands } from './_tsup-dts-rollup';
|
4
|
+
export { CodeBlockCommandsExtension_alias_1 as CodeBlockCommandsExtension } from './_tsup-dts-rollup';
|
3
5
|
export { defineCodeBlockHighlight_alias_1 as defineCodeBlockHighlight } from './_tsup-dts-rollup';
|
4
6
|
export { HighlightParser_alias_1 as HighlightParser } from './_tsup-dts-rollup';
|
5
7
|
export { defineCodeBlockEnterRule_alias_1 as defineCodeBlockEnterRule } from './_tsup-dts-rollup';
|
6
8
|
export { defineCodeBlockInputRule_alias_1 as defineCodeBlockInputRule } from './_tsup-dts-rollup';
|
7
9
|
export { defineCodeBlockShiki_alias_1 as defineCodeBlockShiki } from './_tsup-dts-rollup';
|
8
10
|
export { defineCodeBlockSpec_alias_1 as defineCodeBlockSpec } from './_tsup-dts-rollup';
|
11
|
+
export { CodeBlockSpecExtension_alias_1 as CodeBlockSpecExtension } from './_tsup-dts-rollup';
|
9
12
|
export { CodeBlockAttrs_alias_1 as CodeBlockAttrs } from './_tsup-dts-rollup';
|
10
13
|
export { shikiBundledLanguagesInfo } from './_tsup-dts-rollup';
|
11
14
|
export { shikiBundledThemesInfo } from './_tsup-dts-rollup';
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@prosekit/extensions",
|
3
3
|
"type": "module",
|
4
|
-
"version": "0.0.0-next-
|
4
|
+
"version": "0.0.0-next-20240724173606",
|
5
5
|
"private": false,
|
6
6
|
"author": {
|
7
7
|
"name": "ocavue",
|
@@ -194,8 +194,8 @@
|
|
194
194
|
"prosemirror-search": "^1.0.0",
|
195
195
|
"prosemirror-tables": "^1.4.0",
|
196
196
|
"shiki": "^1.11.1",
|
197
|
-
"@prosekit/core": "^0.0.0-next-
|
198
|
-
"@prosekit/pm": "^0.0.0-next-
|
197
|
+
"@prosekit/core": "^0.0.0-next-20240724173606",
|
198
|
+
"@prosekit/pm": "^0.0.0-next-20240724173606"
|
199
199
|
},
|
200
200
|
"devDependencies": {
|
201
201
|
"@vitest/browser": "^2.0.4",
|