@haklex/rich-compose 0.54.2 → 0.54.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.
@@ -110305,8 +110305,11 @@ ${g}`, r = e.length;
110305
110305
  }, [propsJson, theme]);
110306
110306
  (0, import_react$46.useEffect)(() => {
110307
110307
  const container = hostRef.current?.shadowRoot?.firstElementChild;
110308
- if (container instanceof HTMLElement) container.style.minHeight = `${initialHeight}px`;
110309
- }, [initialHeight]);
110308
+ if (container instanceof HTMLElement) {
110309
+ container.style.minHeight = `${initialHeight}px`;
110310
+ container.style.colorScheme = theme;
110311
+ }
110312
+ }, [initialHeight, theme]);
110310
110313
  (0, import_react$46.useEffect)(() => {
110311
110314
  const hostEl = hostRef.current;
110312
110315
  if (!hostEl || !url) return;
@@ -110319,6 +110322,9 @@ ${g}`, r = e.length;
110319
110322
  const shadow = hostEl.shadowRoot ?? hostEl.attachShadow({ mode: "open" });
110320
110323
  shadow.replaceChildren();
110321
110324
  const container = document.createElement("div");
110325
+ container.style.all = "initial";
110326
+ container.style.display = "block";
110327
+ container.style.colorScheme = theme;
110322
110328
  container.style.minHeight = `${initialHeight}px`;
110323
110329
  shadow.append(container);
110324
110330
  importRemoteModule(url).then((mod) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haklex/rich-compose",
3
- "version": "0.54.2",
3
+ "version": "0.54.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",
@@ -328,34 +328,34 @@
328
328
  "dist"
329
329
  ],
330
330
  "dependencies": {
331
- "@haklex/rich-ext-chart": "0.54.2",
332
- "@haklex/rich-ext-chat": "0.54.2",
333
- "@haklex/rich-ext-code-snippet": "0.54.2",
334
- "@haklex/rich-ext-embed": "0.54.2",
335
- "@haklex/rich-ext-excalidraw": "0.54.2",
336
- "@haklex/rich-ext-gallery": "0.54.2",
337
- "@haklex/rich-ext-nested-doc": "0.54.2",
338
- "@haklex/rich-ext-poll": "0.54.2",
339
- "@haklex/rich-ext-steps": "0.54.2",
340
- "@haklex/rich-litexml": "0.54.2",
341
- "@haklex/rich-plugin-slash-menu": "0.54.2",
342
- "@haklex/rich-renderer-alert": "0.54.2",
343
- "@haklex/rich-renderer-banner": "0.54.2",
344
- "@haklex/rich-renderer-codeblock": "0.54.2",
345
- "@haklex/rich-renderer-file": "0.54.2",
346
- "@haklex/rich-renderer-image": "0.54.2",
347
- "@haklex/rich-renderer-katex": "0.54.2",
348
- "@haklex/rich-renderer-linkcard": "0.54.2",
349
- "@haklex/rich-renderer-mention": "0.54.2",
350
- "@haklex/rich-renderer-mermaid": "0.54.2",
351
- "@haklex/rich-renderer-ruby": "0.54.2",
352
- "@haklex/rich-renderer-video": "0.54.2",
353
- "@haklex/rich-style-token": "0.54.2",
331
+ "@haklex/rich-ext-chart": "0.54.4",
332
+ "@haklex/rich-ext-chat": "0.54.4",
333
+ "@haklex/rich-ext-code-snippet": "0.54.4",
334
+ "@haklex/rich-ext-embed": "0.54.4",
335
+ "@haklex/rich-ext-excalidraw": "0.54.4",
336
+ "@haklex/rich-ext-gallery": "0.54.4",
337
+ "@haklex/rich-ext-nested-doc": "0.54.4",
338
+ "@haklex/rich-ext-poll": "0.54.4",
339
+ "@haklex/rich-ext-steps": "0.54.4",
340
+ "@haklex/rich-litexml": "0.54.4",
341
+ "@haklex/rich-plugin-slash-menu": "0.54.4",
342
+ "@haklex/rich-renderer-alert": "0.54.4",
343
+ "@haklex/rich-renderer-banner": "0.54.4",
344
+ "@haklex/rich-renderer-codeblock": "0.54.4",
345
+ "@haklex/rich-renderer-file": "0.54.4",
346
+ "@haklex/rich-renderer-image": "0.54.4",
347
+ "@haklex/rich-renderer-katex": "0.54.4",
348
+ "@haklex/rich-renderer-linkcard": "0.54.4",
349
+ "@haklex/rich-renderer-mention": "0.54.4",
350
+ "@haklex/rich-renderer-mermaid": "0.54.4",
351
+ "@haklex/rich-renderer-ruby": "0.54.4",
352
+ "@haklex/rich-renderer-video": "0.54.4",
353
+ "@haklex/rich-style-token": "0.54.4",
354
354
  "@lexical/headless": "^0.52.0"
355
355
  },
356
356
  "devDependencies": {
357
- "@haklex/rich-editor": "0.54.2",
358
- "@haklex/rich-ext-dynamic": "0.54.2",
357
+ "@haklex/rich-editor": "0.54.4",
358
+ "@haklex/rich-ext-dynamic": "0.54.4",
359
359
  "@lexical/react": "^0.52.0",
360
360
  "@types/react": "^19.3.0",
361
361
  "@types/react-dom": "^19.3.0",
@@ -371,8 +371,8 @@
371
371
  "vitest": "^5.0.5"
372
372
  },
373
373
  "peerDependencies": {
374
- "@haklex/rich-editor": "^0.54.2",
375
- "@haklex/rich-ext-dynamic": "^0.54.2",
374
+ "@haklex/rich-editor": "^0.54.4",
375
+ "@haklex/rich-ext-dynamic": "^0.54.4",
376
376
  "@lexical/react": "^0.52.0",
377
377
  "lexical": "^0.52.0",
378
378
  "lucide-react": "^1.0.0",