zt-react-milkdown 0.1.30 → 0.1.31
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/README.md +1 -0
- package/dist/index.cjs +27 -26
- package/dist/index.mjs +47207 -34736
- package/dist/src/core/createEditor.d.ts.map +1 -1
- package/dist/src/plugins/custom/code-block/code-block-highlighter.d.ts +8 -0
- package/dist/src/plugins/custom/code-block/code-block-highlighter.d.ts.map +1 -0
- package/dist/src/plugins/custom/code-block/code-block-language-picker.d.ts.map +1 -1
- package/dist/src/plugins/custom/code-block/code-block-prism-refresh.d.ts +6 -0
- package/dist/src/plugins/custom/code-block/code-block-prism-refresh.d.ts.map +1 -0
- package/dist/src/plugins/custom/code-block/index.d.ts +0 -2
- package/dist/src/plugins/custom/code-block/index.d.ts.map +1 -1
- package/package.json +2 -1
- package/dist/src/plugins/custom/code-block/code-block-prism.d.ts +0 -5
- package/dist/src/plugins/custom/code-block/code-block-prism.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createEditor.d.ts","sourceRoot":"","sources":["../../../src/core/createEditor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,kBAAkB,EAClB,YAAY,EACZ,kBAAkB,EAClB,iBAAiB,EACjB,eAAe,EAChB,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EAEL,MAAM,EAKP,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"createEditor.d.ts","sourceRoot":"","sources":["../../../src/core/createEditor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,kBAAkB,EAClB,YAAY,EACZ,kBAAkB,EAClB,iBAAiB,EACjB,eAAe,EAChB,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EAEL,MAAM,EAKP,MAAM,gBAAgB,CAAC;AAoDxB,OAAO,EAIL,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EAC1B,MA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ClE;AAqED;;GAEG;AACH,eAAO,MAAM,2BAA2B,GACtC,SAAS,kCAAkC,KAC1C,qBA0QF,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { refractor } from 'refractor/all';
|
|
2
|
+
import { Refractor } from 'refractor/core';
|
|
3
|
+
/**
|
|
4
|
+
* 为已加载全部语法的菜单和官方插件补充纯文本支持。
|
|
5
|
+
*/
|
|
6
|
+
export declare function configureCodeBlockHighlighter(highlighter: Refractor): void;
|
|
7
|
+
export { refractor };
|
|
8
|
+
//# sourceMappingURL=code-block-highlighter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"code-block-highlighter.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/custom/code-block/code-block-highlighter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAWhD;;GAEG;AACH,wBAAgB,6BAA6B,CAAC,WAAW,EAAE,SAAS,GAAG,IAAI,CAE1E;AAID,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code-block-language-picker.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/custom/code-block/code-block-language-picker.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAoBzC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"code-block-language-picker.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/custom/code-block/code-block-language-picker.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAoBzC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAkpBzD;;GAEG;AACH,eAAO,MAAM,mCAAmC,GAC9C,UAAU,kBAAkB,EAC5B,iBAAiB,WAAW,KAC3B,UAAU,CAAC,OAAO,MAAM,CAO1B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"code-block-prism-refresh.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/custom/code-block/code-block-prism-refresh.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAKpD;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,cA2BlC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/custom/code-block/index.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB,cAAc,uBAAuB,CAAC;AACtC,oBAAoB;AACpB,cAAc,8BAA8B,CAAC;AAC7C,iBAAiB;AACjB,cAAc,uBAAuB,CAAC;AACtC,yBAAyB;AACzB,cAAc,2BAA2B,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/custom/code-block/index.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB,cAAc,uBAAuB,CAAC;AACtC,oBAAoB;AACpB,cAAc,8BAA8B,CAAC;AAC7C,iBAAiB;AACjB,cAAc,uBAAuB,CAAC;AACtC,yBAAyB;AACzB,cAAc,2BAA2B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zt-react-milkdown",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.31",
|
|
4
4
|
"description": "A React Markdown editor package powered by Milkdown.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -48,6 +48,7 @@
|
|
|
48
48
|
"@milkdown/plugin-history": "^7.21.1",
|
|
49
49
|
"@milkdown/plugin-indent": "^7.21.1",
|
|
50
50
|
"@milkdown/plugin-listener": "^7.21.1",
|
|
51
|
+
"@milkdown/plugin-prism": "^7.21.1",
|
|
51
52
|
"@milkdown/plugin-slash": "^7.21.1",
|
|
52
53
|
"@milkdown/plugin-tooltip": "^7.21.1",
|
|
53
54
|
"@milkdown/preset-commonmark": "^7.21.1",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"code-block-prism.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/custom/code-block/code-block-prism.ts"],"names":[],"mappings":"AAuGA;;GAEG;AACH,eAAO,MAAM,oBAAoB,kCAsB/B,CAAC"}
|