@haklex/rich-compose 0.46.3 → 0.46.4
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.
|
@@ -77016,6 +77016,9 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
77016
77016
|
}));
|
|
77017
77017
|
//#endregion
|
|
77018
77018
|
//#region ../rich-ext-excalidraw/src/types.ts
|
|
77019
|
+
function isLocalScenePath(ref) {
|
|
77020
|
+
return LOCAL_SCENE_PATH.test(ref);
|
|
77021
|
+
}
|
|
77019
77022
|
function parseSnapshot(raw) {
|
|
77020
77023
|
if (!raw || !raw.trim()) return null;
|
|
77021
77024
|
try {
|
|
@@ -77027,7 +77030,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
77027
77030
|
} catch {}
|
|
77028
77031
|
const lines = raw.split("\n");
|
|
77029
77032
|
const firstLine = lines[0].trim();
|
|
77030
|
-
if (!firstLine.startsWith("http") && !firstLine.startsWith("blob:") && !firstLine.startsWith("ref:")) return null;
|
|
77033
|
+
if (!firstLine.startsWith("http") && !firstLine.startsWith("blob:") && !firstLine.startsWith("ref:") && !isLocalScenePath(firstLine)) return null;
|
|
77031
77034
|
const remaining = lines.slice(1).join("\n").trim();
|
|
77032
77035
|
if (remaining) try {
|
|
77033
77036
|
const delta = JSON.parse(remaining);
|
|
@@ -77042,7 +77045,10 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
77042
77045
|
url: firstLine
|
|
77043
77046
|
};
|
|
77044
77047
|
}
|
|
77045
|
-
var
|
|
77048
|
+
var LOCAL_SCENE_PATH;
|
|
77049
|
+
var init_types = __esmMin((() => {
|
|
77050
|
+
LOCAL_SCENE_PATH = /^(?:\.{1,2}\/)?[\w-][\w./-]*\.excalidraw$/;
|
|
77051
|
+
}));
|
|
77046
77052
|
//#endregion
|
|
77047
77053
|
//#region ../../node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/date-reviver.js
|
|
77048
77054
|
function dateReviver(_key, value) {
|
|
@@ -78110,7 +78116,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
78110
78116
|
//#region ../rich-ext-excalidraw/src/useExcalidrawData.ts
|
|
78111
78117
|
function resolveUrl(url, apiUrl) {
|
|
78112
78118
|
const refLine = url;
|
|
78113
|
-
if (url.startsWith("http") || url.startsWith("blob:")) return {
|
|
78119
|
+
if (url.startsWith("http") || url.startsWith("blob:") || isLocalScenePath(url)) return {
|
|
78114
78120
|
fetchUrl: url,
|
|
78115
78121
|
refLine
|
|
78116
78122
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haklex/rich-compose",
|
|
3
|
-
"version": "0.46.
|
|
3
|
+
"version": "0.46.4",
|
|
4
4
|
"description": "Compose primitives for haklex rich content renderers — Gundam-style assembly of Lexical nodes, sync/lazy renderers, and Provider stacks.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -301,28 +301,28 @@
|
|
|
301
301
|
],
|
|
302
302
|
"dependencies": {
|
|
303
303
|
"@lexical/headless": "^0.52.0",
|
|
304
|
-
"@haklex/rich-ext-chat": "0.46.
|
|
305
|
-
"@haklex/rich-ext-
|
|
306
|
-
"@haklex/rich-ext-
|
|
307
|
-
"@haklex/rich-ext-
|
|
308
|
-
"@haklex/rich-ext-embed": "0.46.
|
|
309
|
-
"@haklex/rich-ext-gallery": "0.46.
|
|
310
|
-
"@haklex/rich-
|
|
311
|
-
"@haklex/rich-ext-
|
|
312
|
-
"@haklex/rich-
|
|
313
|
-
"@haklex/rich-plugin-slash-menu": "0.46.
|
|
314
|
-
"@haklex/rich-renderer-
|
|
315
|
-
"@haklex/rich-renderer-
|
|
316
|
-
"@haklex/rich-renderer-
|
|
317
|
-
"@haklex/rich-renderer-file": "0.46.
|
|
318
|
-
"@haklex/rich-renderer-
|
|
319
|
-
"@haklex/rich-renderer-katex": "0.46.
|
|
320
|
-
"@haklex/rich-renderer-linkcard": "0.46.
|
|
321
|
-
"@haklex/rich-renderer-
|
|
322
|
-
"@haklex/rich-renderer-mention": "0.46.
|
|
323
|
-
"@haklex/rich-renderer-
|
|
324
|
-
"@haklex/rich-renderer-
|
|
325
|
-
"@haklex/rich-style-token": "0.46.
|
|
304
|
+
"@haklex/rich-ext-chat": "0.46.4",
|
|
305
|
+
"@haklex/rich-ext-code-snippet": "0.46.4",
|
|
306
|
+
"@haklex/rich-ext-dynamic": "0.46.4",
|
|
307
|
+
"@haklex/rich-ext-excalidraw": "0.46.4",
|
|
308
|
+
"@haklex/rich-ext-embed": "0.46.4",
|
|
309
|
+
"@haklex/rich-ext-gallery": "0.46.4",
|
|
310
|
+
"@haklex/rich-litexml": "0.46.4",
|
|
311
|
+
"@haklex/rich-ext-nested-doc": "0.46.4",
|
|
312
|
+
"@haklex/rich-ext-poll": "0.46.4",
|
|
313
|
+
"@haklex/rich-plugin-slash-menu": "0.46.4",
|
|
314
|
+
"@haklex/rich-renderer-banner": "0.46.4",
|
|
315
|
+
"@haklex/rich-renderer-image": "0.46.4",
|
|
316
|
+
"@haklex/rich-renderer-alert": "0.46.4",
|
|
317
|
+
"@haklex/rich-renderer-file": "0.46.4",
|
|
318
|
+
"@haklex/rich-renderer-codeblock": "0.46.4",
|
|
319
|
+
"@haklex/rich-renderer-katex": "0.46.4",
|
|
320
|
+
"@haklex/rich-renderer-linkcard": "0.46.4",
|
|
321
|
+
"@haklex/rich-renderer-ruby": "0.46.4",
|
|
322
|
+
"@haklex/rich-renderer-mention": "0.46.4",
|
|
323
|
+
"@haklex/rich-renderer-video": "0.46.4",
|
|
324
|
+
"@haklex/rich-renderer-mermaid": "0.46.4",
|
|
325
|
+
"@haklex/rich-style-token": "0.46.4"
|
|
326
326
|
},
|
|
327
327
|
"devDependencies": {
|
|
328
328
|
"@lexical/react": "^0.52.0",
|
|
@@ -338,7 +338,7 @@
|
|
|
338
338
|
"unplugin-dts": "^1.0.3",
|
|
339
339
|
"vite": "^8.2.2",
|
|
340
340
|
"vitest": "^4.1.11",
|
|
341
|
-
"@haklex/rich-editor": "0.46.
|
|
341
|
+
"@haklex/rich-editor": "0.46.4"
|
|
342
342
|
},
|
|
343
343
|
"peerDependencies": {
|
|
344
344
|
"@lexical/react": "^0.52.0",
|
|
@@ -346,7 +346,7 @@
|
|
|
346
346
|
"lucide-react": "^1.0.0",
|
|
347
347
|
"react": ">=19",
|
|
348
348
|
"react-dom": ">=19",
|
|
349
|
-
"@haklex/rich-editor": "^0.46.
|
|
349
|
+
"@haklex/rich-editor": "^0.46.4"
|
|
350
350
|
},
|
|
351
351
|
"publishConfig": {
|
|
352
352
|
"access": "public"
|