@haklex/rich-compose 0.46.3 → 0.46.5

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 init_types = __esmMin((() => {}));
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",
3
+ "version": "0.46.5",
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.3",
305
- "@haklex/rich-ext-excalidraw": "0.46.3",
306
- "@haklex/rich-ext-code-snippet": "0.46.3",
307
- "@haklex/rich-ext-dynamic": "0.46.3",
308
- "@haklex/rich-ext-embed": "0.46.3",
309
- "@haklex/rich-ext-gallery": "0.46.3",
310
- "@haklex/rich-ext-nested-doc": "0.46.3",
311
- "@haklex/rich-ext-poll": "0.46.3",
312
- "@haklex/rich-litexml": "0.46.3",
313
- "@haklex/rich-plugin-slash-menu": "0.46.3",
314
- "@haklex/rich-renderer-alert": "0.46.3",
315
- "@haklex/rich-renderer-banner": "0.46.3",
316
- "@haklex/rich-renderer-codeblock": "0.46.3",
317
- "@haklex/rich-renderer-file": "0.46.3",
318
- "@haklex/rich-renderer-image": "0.46.3",
319
- "@haklex/rich-renderer-katex": "0.46.3",
320
- "@haklex/rich-renderer-linkcard": "0.46.3",
321
- "@haklex/rich-renderer-mermaid": "0.46.3",
322
- "@haklex/rich-renderer-mention": "0.46.3",
323
- "@haklex/rich-renderer-ruby": "0.46.3",
324
- "@haklex/rich-renderer-video": "0.46.3",
325
- "@haklex/rich-style-token": "0.46.3"
304
+ "@haklex/rich-ext-code-snippet": "0.46.5",
305
+ "@haklex/rich-ext-dynamic": "0.46.5",
306
+ "@haklex/rich-ext-embed": "0.46.5",
307
+ "@haklex/rich-ext-nested-doc": "0.46.5",
308
+ "@haklex/rich-ext-chat": "0.46.5",
309
+ "@haklex/rich-ext-poll": "0.46.5",
310
+ "@haklex/rich-renderer-alert": "0.46.5",
311
+ "@haklex/rich-ext-excalidraw": "0.46.5",
312
+ "@haklex/rich-renderer-codeblock": "0.46.5",
313
+ "@haklex/rich-renderer-file": "0.46.5",
314
+ "@haklex/rich-renderer-banner": "0.46.5",
315
+ "@haklex/rich-renderer-katex": "0.46.5",
316
+ "@haklex/rich-renderer-linkcard": "0.46.5",
317
+ "@haklex/rich-renderer-mermaid": "0.46.5",
318
+ "@haklex/rich-renderer-ruby": "0.46.5",
319
+ "@haklex/rich-renderer-video": "0.46.5",
320
+ "@haklex/rich-renderer-mention": "0.46.5",
321
+ "@haklex/rich-ext-gallery": "0.46.5",
322
+ "@haklex/rich-renderer-image": "0.46.5",
323
+ "@haklex/rich-style-token": "0.46.5",
324
+ "@haklex/rich-plugin-slash-menu": "0.46.5",
325
+ "@haklex/rich-litexml": "0.46.5"
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.3"
341
+ "@haklex/rich-editor": "0.46.5"
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.3"
349
+ "@haklex/rich-editor": "^0.46.5"
350
350
  },
351
351
  "publishConfig": {
352
352
  "access": "public"