@kedataindo/docflow-plugins 0.0.62 → 0.0.64
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/dist/index.cjs +4 -0
- package/dist/index.js +4 -0
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -2408,6 +2408,10 @@ function markdownToFragment(editor, markdown, opts) {
|
|
|
2408
2408
|
parseOptions: { preserveWhitespace: "full" }
|
|
2409
2409
|
});
|
|
2410
2410
|
if (content instanceof import_model.Fragment) return content;
|
|
2411
|
+
const asFragment = content;
|
|
2412
|
+
if (asFragment && typeof asFragment.forEach === "function" && typeof asFragment.size === "number") {
|
|
2413
|
+
return asFragment;
|
|
2414
|
+
}
|
|
2411
2415
|
return import_model.Fragment.from(content);
|
|
2412
2416
|
}
|
|
2413
2417
|
function selectionToInsertionEnd(tr, startLen, bias) {
|
package/dist/index.js
CHANGED
|
@@ -2315,6 +2315,10 @@ function markdownToFragment(editor, markdown, opts) {
|
|
|
2315
2315
|
parseOptions: { preserveWhitespace: "full" }
|
|
2316
2316
|
});
|
|
2317
2317
|
if (content instanceof Fragment) return content;
|
|
2318
|
+
const asFragment = content;
|
|
2319
|
+
if (asFragment && typeof asFragment.forEach === "function" && typeof asFragment.size === "number") {
|
|
2320
|
+
return asFragment;
|
|
2321
|
+
}
|
|
2318
2322
|
return Fragment.from(content);
|
|
2319
2323
|
}
|
|
2320
2324
|
function selectionToInsertionEnd(tr, startLen, bias) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kedataindo/docflow-plugins",
|
|
3
3
|
"license": "UNLICENSED",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.64",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"module": "./dist/index.js",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@tiptap/pm": "^2.11.0",
|
|
32
32
|
"citeproc": "^2.4.63",
|
|
33
33
|
"tiptap-markdown": "0.8.10",
|
|
34
|
-
"@kedataindo/docflow-core": "0.0.
|
|
34
|
+
"@kedataindo/docflow-core": "0.0.62"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"@tiptap/core": "^2.11.0",
|