vobi_document 1.1.4 → 1.1.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.
Files changed (45) hide show
  1. package/dist/blocks.cjs +25 -25
  2. package/dist/blocks.d.cts +1 -1
  3. package/dist/blocks.d.ts +1 -1
  4. package/dist/blocks.js +1 -1
  5. package/dist/{chunk-3KIK2XTA.cjs → chunk-3F5SJWGQ.cjs} +14 -14
  6. package/dist/{chunk-3KIK2XTA.cjs.map → chunk-3F5SJWGQ.cjs.map} +1 -1
  7. package/dist/{chunk-2EVBMRJR.js → chunk-4BAC7SQD.js} +3 -3
  8. package/dist/{chunk-2EVBMRJR.js.map → chunk-4BAC7SQD.js.map} +1 -1
  9. package/dist/{chunk-5H27FECZ.cjs → chunk-GDLKTYDB.cjs} +3 -3
  10. package/dist/{chunk-5H27FECZ.cjs.map → chunk-GDLKTYDB.cjs.map} +1 -1
  11. package/dist/{chunk-DQ4AL6SJ.js → chunk-K6ZKB5EA.js} +3 -3
  12. package/dist/{chunk-DQ4AL6SJ.js.map → chunk-K6ZKB5EA.js.map} +1 -1
  13. package/dist/{chunk-D3JG6YEL.cjs → chunk-LQAZBMG4.cjs} +8 -8
  14. package/dist/{chunk-D3JG6YEL.cjs.map → chunk-LQAZBMG4.cjs.map} +1 -1
  15. package/dist/{chunk-PBBPAMLP.js → chunk-MFBZNNYC.js} +92 -92
  16. package/dist/chunk-MFBZNNYC.js.map +1 -0
  17. package/dist/{chunk-P2FDTTXF.js → chunk-NPNQGHGK.js} +9 -9
  18. package/dist/{chunk-P2FDTTXF.js.map → chunk-NPNQGHGK.js.map} +1 -1
  19. package/dist/{chunk-EX252M4Y.js → chunk-QQHKBSAG.js} +3 -3
  20. package/dist/{chunk-EX252M4Y.js.map → chunk-QQHKBSAG.js.map} +1 -1
  21. package/dist/{chunk-CPU4SK5F.cjs → chunk-RKYQRL6M.cjs} +104 -104
  22. package/dist/chunk-RKYQRL6M.cjs.map +1 -0
  23. package/dist/{chunk-RP4T57MA.cjs → chunk-USMVHVHF.cjs} +9 -9
  24. package/dist/{chunk-RP4T57MA.cjs.map → chunk-USMVHVHF.cjs.map} +1 -1
  25. package/dist/editor.cjs +14 -14
  26. package/dist/editor.d.cts +1 -1
  27. package/dist/editor.d.ts +1 -1
  28. package/dist/editor.js +2 -2
  29. package/dist/index.cjs +83 -83
  30. package/dist/index.d.cts +2 -2
  31. package/dist/index.d.ts +2 -2
  32. package/dist/index.js +6 -6
  33. package/dist/print.cjs +17 -17
  34. package/dist/print.d.cts +1 -1
  35. package/dist/print.d.ts +1 -1
  36. package/dist/print.js +3 -3
  37. package/dist/render.cjs +18 -18
  38. package/dist/render.d.cts +1 -1
  39. package/dist/render.d.ts +1 -1
  40. package/dist/render.js +3 -3
  41. package/dist/{theme-BuEFpQeZ.d.cts → theme-DWRLG-2_.d.cts} +1 -1
  42. package/dist/{theme-BuEFpQeZ.d.ts → theme-DWRLG-2_.d.ts} +1 -1
  43. package/package.json +1 -1
  44. package/dist/chunk-CPU4SK5F.cjs.map +0 -1
  45. package/dist/chunk-PBBPAMLP.js.map +0 -1
package/dist/blocks.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkRP4T57MA_cjs = require('./chunk-RP4T57MA.cjs');
3
+ var chunkUSMVHVHF_cjs = require('./chunk-USMVHVHF.cjs');
4
4
  require('./chunk-L5FXGEKX.cjs');
5
5
  require('./chunk-LNBAFOVK.cjs');
6
6
  require('./chunk-I22MGPXO.cjs');
@@ -10,99 +10,99 @@ require('./chunk-SP5LCPDG.cjs');
10
10
 
11
11
  Object.defineProperty(exports, "ButtonBlock", {
12
12
  enumerable: true,
13
- get: function () { return chunkRP4T57MA_cjs.ButtonBlock; }
13
+ get: function () { return chunkUSMVHVHF_cjs.ButtonBlock; }
14
14
  });
15
15
  Object.defineProperty(exports, "CONTENT_ICON_CATALOG", {
16
16
  enumerable: true,
17
- get: function () { return chunkRP4T57MA_cjs.CONTENT_ICON_CATALOG; }
17
+ get: function () { return chunkUSMVHVHF_cjs.CONTENT_ICON_CATALOG; }
18
18
  });
19
19
  Object.defineProperty(exports, "CONTENT_ICON_NAMES", {
20
20
  enumerable: true,
21
- get: function () { return chunkRP4T57MA_cjs.CONTENT_ICON_NAMES; }
21
+ get: function () { return chunkUSMVHVHF_cjs.CONTENT_ICON_NAMES; }
22
22
  });
23
23
  Object.defineProperty(exports, "ContentIcon", {
24
24
  enumerable: true,
25
- get: function () { return chunkRP4T57MA_cjs.ContentIcon; }
25
+ get: function () { return chunkUSMVHVHF_cjs.ContentIcon; }
26
26
  });
27
27
  Object.defineProperty(exports, "DOCUMENT_PROSE_CSS", {
28
28
  enumerable: true,
29
- get: function () { return chunkRP4T57MA_cjs.DOCUMENT_PROSE_CSS; }
29
+ get: function () { return chunkUSMVHVHF_cjs.DOCUMENT_PROSE_CSS; }
30
30
  });
31
31
  Object.defineProperty(exports, "DOCUMENT_TEXT_CSS", {
32
32
  enumerable: true,
33
- get: function () { return chunkRP4T57MA_cjs.DOCUMENT_TEXT_CSS; }
33
+ get: function () { return chunkUSMVHVHF_cjs.DOCUMENT_TEXT_CSS; }
34
34
  });
35
35
  Object.defineProperty(exports, "DividerBlock", {
36
36
  enumerable: true,
37
- get: function () { return chunkRP4T57MA_cjs.DividerBlock; }
37
+ get: function () { return chunkUSMVHVHF_cjs.DividerBlock; }
38
38
  });
39
39
  Object.defineProperty(exports, "HeadingBlock", {
40
40
  enumerable: true,
41
- get: function () { return chunkRP4T57MA_cjs.HeadingBlock; }
41
+ get: function () { return chunkUSMVHVHF_cjs.HeadingBlock; }
42
42
  });
43
43
  Object.defineProperty(exports, "IconTextBlock", {
44
44
  enumerable: true,
45
- get: function () { return chunkRP4T57MA_cjs.IconTextBlock; }
45
+ get: function () { return chunkUSMVHVHF_cjs.IconTextBlock; }
46
46
  });
47
47
  Object.defineProperty(exports, "ImageBlock", {
48
48
  enumerable: true,
49
- get: function () { return chunkRP4T57MA_cjs.ImageBlock; }
49
+ get: function () { return chunkUSMVHVHF_cjs.ImageBlock; }
50
50
  });
51
51
  Object.defineProperty(exports, "ImageGridBlock", {
52
52
  enumerable: true,
53
- get: function () { return chunkRP4T57MA_cjs.ImageGridBlock; }
53
+ get: function () { return chunkUSMVHVHF_cjs.ImageGridBlock; }
54
54
  });
55
55
  Object.defineProperty(exports, "ImageTextBlock", {
56
56
  enumerable: true,
57
- get: function () { return chunkRP4T57MA_cjs.ImageTextBlock; }
57
+ get: function () { return chunkUSMVHVHF_cjs.ImageTextBlock; }
58
58
  });
59
59
  Object.defineProperty(exports, "ListBlock", {
60
60
  enumerable: true,
61
- get: function () { return chunkRP4T57MA_cjs.ListBlock; }
61
+ get: function () { return chunkUSMVHVHF_cjs.ListBlock; }
62
62
  });
63
63
  Object.defineProperty(exports, "PageBreakBlock", {
64
64
  enumerable: true,
65
- get: function () { return chunkRP4T57MA_cjs.PageBreakBlock; }
65
+ get: function () { return chunkUSMVHVHF_cjs.PageBreakBlock; }
66
66
  });
67
67
  Object.defineProperty(exports, "QuoteBlock", {
68
68
  enumerable: true,
69
- get: function () { return chunkRP4T57MA_cjs.QuoteBlock; }
69
+ get: function () { return chunkUSMVHVHF_cjs.QuoteBlock; }
70
70
  });
71
71
  Object.defineProperty(exports, "RichText", {
72
72
  enumerable: true,
73
- get: function () { return chunkRP4T57MA_cjs.RichText; }
73
+ get: function () { return chunkUSMVHVHF_cjs.RichText; }
74
74
  });
75
75
  Object.defineProperty(exports, "SpacerBlock", {
76
76
  enumerable: true,
77
- get: function () { return chunkRP4T57MA_cjs.SpacerBlock; }
77
+ get: function () { return chunkUSMVHVHF_cjs.SpacerBlock; }
78
78
  });
79
79
  Object.defineProperty(exports, "TableBlock", {
80
80
  enumerable: true,
81
- get: function () { return chunkRP4T57MA_cjs.TableBlock; }
81
+ get: function () { return chunkUSMVHVHF_cjs.TableBlock; }
82
82
  });
83
83
  Object.defineProperty(exports, "TextBlock", {
84
84
  enumerable: true,
85
- get: function () { return chunkRP4T57MA_cjs.TextBlock; }
85
+ get: function () { return chunkUSMVHVHF_cjs.TextBlock; }
86
86
  });
87
87
  Object.defineProperty(exports, "TwoColumnsBlock", {
88
88
  enumerable: true,
89
- get: function () { return chunkRP4T57MA_cjs.TwoColumnsBlock; }
89
+ get: function () { return chunkUSMVHVHF_cjs.TwoColumnsBlock; }
90
90
  });
91
91
  Object.defineProperty(exports, "blocksByKey", {
92
92
  enumerable: true,
93
- get: function () { return chunkRP4T57MA_cjs.blocksByKey; }
93
+ get: function () { return chunkUSMVHVHF_cjs.blocksByKey; }
94
94
  });
95
95
  Object.defineProperty(exports, "defaultBlocks", {
96
96
  enumerable: true,
97
- get: function () { return chunkRP4T57MA_cjs.defaultBlocks; }
97
+ get: function () { return chunkUSMVHVHF_cjs.defaultBlocks; }
98
98
  });
99
99
  Object.defineProperty(exports, "defineBlock", {
100
100
  enumerable: true,
101
- get: function () { return chunkRP4T57MA_cjs.defineBlock; }
101
+ get: function () { return chunkUSMVHVHF_cjs.defineBlock; }
102
102
  });
103
103
  Object.defineProperty(exports, "overrideBlock", {
104
104
  enumerable: true,
105
- get: function () { return chunkRP4T57MA_cjs.overrideBlock; }
105
+ get: function () { return chunkUSMVHVHF_cjs.overrideBlock; }
106
106
  });
107
107
  //# sourceMappingURL=blocks.cjs.map
108
108
  //# sourceMappingURL=blocks.cjs.map
package/dist/blocks.d.cts CHANGED
@@ -181,7 +181,7 @@ declare function RichText({ html, editing, as, className }: RichTextProps): reac
181
181
  */
182
182
  /** Declarações da base do texto — vão no container (ou no `body`, no iframe). */
183
183
  declare const DOCUMENT_TEXT_CSS = "font-size: 14px;\nline-height: 1.5;\noverflow-wrap: break-word;\nword-break: break-word;";
184
- declare const DOCUMENT_PROSE_CSS = "p {\n margin: 0 0 8px;\n font-size: 1em;\n}\n\nh1, h2, h3, h4, h5, h6 {\n margin: 0 0 8px;\n line-height: 1.25;\n font-weight: 600;\n}\n\nh1 { font-size: 2em; }\nh2 { font-size: 1.5em; }\nh3 { font-size: 1.25em; }\nh4 { font-size: 1.125em; }\nh5 { font-size: 1em; }\nh6 { font-size: 0.875em; }\n\nul, ol {\n margin: 0 0 8px;\n padding-left: 24px;\n font-size: 1em;\n}\n\nul { list-style: disc; }\nol { list-style: decimal; }\n\nli {\n margin: 0 0 4px;\n font-size: 1em;\n}\n\nstrong, b { font-weight: 600; }\nem, i { font-style: italic; }\n\na {\n color: var(--doc-brand, #005ac3);\n text-decoration: underline;\n}\n\nimg { max-width: 100%; }\n\n/* O chip herda peso, estilo e sublinhado do texto ao redor: pinar qualquer um deles faz\n negrito/italico/sublinhado nao pegarem na variavel. Inline (e nao inline-block) porque\n text-decoration nao atravessa um inline-block. */\n.dg-var {\n display: inline;\n font-size: 0.92em;\n font-weight: inherit;\n font-style: inherit;\n white-space: nowrap;\n}\n\n/* Sem margem sobrando no fim do bloco. Seletores de elemento, e nao um combinador filho,\n porque a mesma string tambem e usada no topo de uma folha, onde nao ha pai. */\np:last-child,\nul:last-child,\nol:last-child,\nh1:last-child,\nh2:last-child,\nh3:last-child,\nh4:last-child,\nh5:last-child,\nh6:last-child {\n margin-bottom: 0;\n}";
184
+ declare const DOCUMENT_PROSE_CSS = "p {\n margin: 0 0 8px;\n font-size: 1em;\n}\n\nh1, h2, h3, h4, h5, h6 {\n margin: 0 0 8px;\n line-height: 1.25;\n font-weight: 600;\n}\n\nh1 { font-size: 2em; }\nh2 { font-size: 1.5em; }\nh3 { font-size: 1.25em; }\nh4 { font-size: 1.125em; }\nh5 { font-size: 1em; }\nh6 { font-size: 0.875em; }\n\nul, ol {\n margin: 0 0 8px;\n padding-left: 24px;\n font-size: 1em;\n}\n\nul { list-style: disc; }\nol { list-style: decimal; }\n\nli {\n margin: 0 0 4px;\n font-size: 1em;\n}\n\nstrong, b { font-weight: 600; }\nem, i { font-style: italic; }\n\na {\n color: var(--doc-brand, #001a43);\n text-decoration: underline;\n}\n\nimg { max-width: 100%; }\n\n/* O chip herda peso, estilo e sublinhado do texto ao redor: pinar qualquer um deles faz\n negrito/italico/sublinhado nao pegarem na variavel. Inline (e nao inline-block) porque\n text-decoration nao atravessa um inline-block. */\n.dg-var {\n display: inline;\n font-size: 0.92em;\n font-weight: inherit;\n font-style: inherit;\n white-space: nowrap;\n}\n\n/* Sem margem sobrando no fim do bloco. Seletores de elemento, e nao um combinador filho,\n porque a mesma string tambem e usada no topo de uma folha, onde nao ha pai. */\np:last-child,\nul:last-child,\nol:last-child,\nh1:last-child,\nh2:last-child,\nh3:last-child,\nh4:last-child,\nh5:last-child,\nh6:last-child {\n margin-bottom: 0;\n}";
185
185
 
186
186
  type ContentIconDef = {
187
187
  label: string;
package/dist/blocks.d.ts CHANGED
@@ -181,7 +181,7 @@ declare function RichText({ html, editing, as, className }: RichTextProps): reac
181
181
  */
182
182
  /** Declarações da base do texto — vão no container (ou no `body`, no iframe). */
183
183
  declare const DOCUMENT_TEXT_CSS = "font-size: 14px;\nline-height: 1.5;\noverflow-wrap: break-word;\nword-break: break-word;";
184
- declare const DOCUMENT_PROSE_CSS = "p {\n margin: 0 0 8px;\n font-size: 1em;\n}\n\nh1, h2, h3, h4, h5, h6 {\n margin: 0 0 8px;\n line-height: 1.25;\n font-weight: 600;\n}\n\nh1 { font-size: 2em; }\nh2 { font-size: 1.5em; }\nh3 { font-size: 1.25em; }\nh4 { font-size: 1.125em; }\nh5 { font-size: 1em; }\nh6 { font-size: 0.875em; }\n\nul, ol {\n margin: 0 0 8px;\n padding-left: 24px;\n font-size: 1em;\n}\n\nul { list-style: disc; }\nol { list-style: decimal; }\n\nli {\n margin: 0 0 4px;\n font-size: 1em;\n}\n\nstrong, b { font-weight: 600; }\nem, i { font-style: italic; }\n\na {\n color: var(--doc-brand, #005ac3);\n text-decoration: underline;\n}\n\nimg { max-width: 100%; }\n\n/* O chip herda peso, estilo e sublinhado do texto ao redor: pinar qualquer um deles faz\n negrito/italico/sublinhado nao pegarem na variavel. Inline (e nao inline-block) porque\n text-decoration nao atravessa um inline-block. */\n.dg-var {\n display: inline;\n font-size: 0.92em;\n font-weight: inherit;\n font-style: inherit;\n white-space: nowrap;\n}\n\n/* Sem margem sobrando no fim do bloco. Seletores de elemento, e nao um combinador filho,\n porque a mesma string tambem e usada no topo de uma folha, onde nao ha pai. */\np:last-child,\nul:last-child,\nol:last-child,\nh1:last-child,\nh2:last-child,\nh3:last-child,\nh4:last-child,\nh5:last-child,\nh6:last-child {\n margin-bottom: 0;\n}";
184
+ declare const DOCUMENT_PROSE_CSS = "p {\n margin: 0 0 8px;\n font-size: 1em;\n}\n\nh1, h2, h3, h4, h5, h6 {\n margin: 0 0 8px;\n line-height: 1.25;\n font-weight: 600;\n}\n\nh1 { font-size: 2em; }\nh2 { font-size: 1.5em; }\nh3 { font-size: 1.25em; }\nh4 { font-size: 1.125em; }\nh5 { font-size: 1em; }\nh6 { font-size: 0.875em; }\n\nul, ol {\n margin: 0 0 8px;\n padding-left: 24px;\n font-size: 1em;\n}\n\nul { list-style: disc; }\nol { list-style: decimal; }\n\nli {\n margin: 0 0 4px;\n font-size: 1em;\n}\n\nstrong, b { font-weight: 600; }\nem, i { font-style: italic; }\n\na {\n color: var(--doc-brand, #001a43);\n text-decoration: underline;\n}\n\nimg { max-width: 100%; }\n\n/* O chip herda peso, estilo e sublinhado do texto ao redor: pinar qualquer um deles faz\n negrito/italico/sublinhado nao pegarem na variavel. Inline (e nao inline-block) porque\n text-decoration nao atravessa um inline-block. */\n.dg-var {\n display: inline;\n font-size: 0.92em;\n font-weight: inherit;\n font-style: inherit;\n white-space: nowrap;\n}\n\n/* Sem margem sobrando no fim do bloco. Seletores de elemento, e nao um combinador filho,\n porque a mesma string tambem e usada no topo de uma folha, onde nao ha pai. */\np:last-child,\nul:last-child,\nol:last-child,\nh1:last-child,\nh2:last-child,\nh3:last-child,\nh4:last-child,\nh5:last-child,\nh6:last-child {\n margin-bottom: 0;\n}";
185
185
 
186
186
  type ContentIconDef = {
187
187
  label: string;
package/dist/blocks.js CHANGED
@@ -1,4 +1,4 @@
1
- export { ButtonBlock, CONTENT_ICON_CATALOG, CONTENT_ICON_NAMES, ContentIcon, DOCUMENT_PROSE_CSS, DOCUMENT_TEXT_CSS, DividerBlock, HeadingBlock, IconTextBlock, ImageBlock, ImageGridBlock, ImageTextBlock, ListBlock, PageBreakBlock, QuoteBlock, RichText, SpacerBlock, TableBlock, TextBlock, TwoColumnsBlock, blocksByKey, defaultBlocks, defineBlock, overrideBlock } from './chunk-P2FDTTXF.js';
1
+ export { ButtonBlock, CONTENT_ICON_CATALOG, CONTENT_ICON_NAMES, ContentIcon, DOCUMENT_PROSE_CSS, DOCUMENT_TEXT_CSS, DividerBlock, HeadingBlock, IconTextBlock, ImageBlock, ImageGridBlock, ImageTextBlock, ListBlock, PageBreakBlock, QuoteBlock, RichText, SpacerBlock, TableBlock, TextBlock, TwoColumnsBlock, blocksByKey, defaultBlocks, defineBlock, overrideBlock } from './chunk-NPNQGHGK.js';
2
2
  import './chunk-QYBWIJXZ.js';
3
3
  import './chunk-ZOJBDFKU.js';
4
4
  import './chunk-MUSSJOOA.js';
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkL5FXGEKX_cjs = require('./chunk-L5FXGEKX.cjs');
4
- var chunk5H27FECZ_cjs = require('./chunk-5H27FECZ.cjs');
4
+ var chunkGDLKTYDB_cjs = require('./chunk-GDLKTYDB.cjs');
5
5
  var chunkQJ5W5EED_cjs = require('./chunk-QJ5W5EED.cjs');
6
6
  var chunkSP5LCPDG_cjs = require('./chunk-SP5LCPDG.cjs');
7
7
  var e = require('react');
@@ -249,12 +249,12 @@ function resolveTheme(theme = {}) {
249
249
  return {
250
250
  ...theme,
251
251
  documentFont: theme.documentFont ?? DEFAULT_DOCUMENT_FONT_ID,
252
- colors: { ...chunk5H27FECZ_cjs.DEFAULT_DOCUMENT_COLORS, ...theme.colors },
252
+ colors: { ...chunkGDLKTYDB_cjs.DEFAULT_DOCUMENT_COLORS, ...theme.colors },
253
253
  page: {
254
254
  format: "A4",
255
255
  orientation: "portrait",
256
256
  ...theme.page,
257
- margins: { ...chunk5H27FECZ_cjs.DEFAULT_PAGE_MARGINS, ...theme.page?.margins }
257
+ margins: { ...chunkGDLKTYDB_cjs.DEFAULT_PAGE_MARGINS, ...theme.page?.margins }
258
258
  },
259
259
  header: { ...DEFAULT_HEADER_CONFIG, ...theme.header },
260
260
  footer: { ...DEFAULT_FOOTER_CONFIG, ...theme.footer }
@@ -1004,7 +1004,7 @@ var COLOR_FIELDS = [
1004
1004
  { key: "background", label: "Fundo" }
1005
1005
  ];
1006
1006
  function VisualTab({ theme, onPatch, onLogoUpload }) {
1007
- const colors = { ...chunk5H27FECZ_cjs.DEFAULT_DOCUMENT_COLORS, ...theme.colors };
1007
+ const colors = { ...chunkGDLKTYDB_cjs.DEFAULT_DOCUMENT_COLORS, ...theme.colors };
1008
1008
  const setColor = (key, value) => onPatch({ colors: { ...theme.colors, [key]: value } });
1009
1009
  const handleLogo = async (file) => {
1010
1010
  if (!file || !onLogoUpload) return;
@@ -1031,7 +1031,7 @@ function VisualTab({ theme, onPatch, onLogoUpload }) {
1031
1031
  "aria-label": "Fonte",
1032
1032
  value: theme.documentFont ?? DEFAULT_DOCUMENT_FONT_ID,
1033
1033
  onChange: (e2) => onPatch({ documentFont: e2.target.value }),
1034
- children: chunk5H27FECZ_cjs.DOCUMENT_FONTS.map((font) => /* @__PURE__ */ jsxRuntime.jsx("option", { value: font.id, children: font.label }, font.id))
1034
+ children: chunkGDLKTYDB_cjs.DOCUMENT_FONTS.map((font) => /* @__PURE__ */ jsxRuntime.jsx("option", { value: font.id, children: font.label }, font.id))
1035
1035
  }
1036
1036
  )
1037
1037
  ] }),
@@ -1171,12 +1171,12 @@ function DocumentEditor({
1171
1171
  const [settingsOpen, setSettingsOpen] = e.useState(false);
1172
1172
  const shellRef = e.useRef(null);
1173
1173
  usePreserveCanvasScroll(shellRef);
1174
- chunk5H27FECZ_cjs.useDocumentFont(theme.documentFont);
1174
+ chunkGDLKTYDB_cjs.useDocumentFont(theme.documentFont);
1175
1175
  const disabledByKey = e.useMemo(
1176
1176
  () => Object.fromEntries(disabledBlocks.map((block) => [block.key, block.reason ?? ""])),
1177
1177
  [disabledBlocks.map((block) => `${block.key}:${block.reason ?? ""}`).join("|")]
1178
1178
  );
1179
- const baseConfig = e.useMemo(() => chunk5H27FECZ_cjs.buildConfig(registry), [registry]);
1179
+ const baseConfig = e.useMemo(() => chunkGDLKTYDB_cjs.buildConfig(registry), [registry]);
1180
1180
  const config = e.useMemo(() => {
1181
1181
  const disabledKeys = Object.keys(disabledByKey);
1182
1182
  if (!disabledKeys.length) return baseConfig;
@@ -1225,12 +1225,12 @@ function DocumentEditor({
1225
1225
  drawerItem: ({ name }) => {
1226
1226
  const disabledByKeyLive = disabledByKeyRef.current;
1227
1227
  const blockByKeyLive = blockByKeyRef.current;
1228
- const card = /* @__PURE__ */ jsxRuntime.jsxs(chunk5H27FECZ_cjs.DrawerCard, { $disabled: name in disabledByKeyLive, children: [
1229
- /* @__PURE__ */ jsxRuntime.jsx(chunk5H27FECZ_cjs.DrawerItemIcon, { children: blockByKeyLive[name]?.icon ?? /* @__PURE__ */ jsxRuntime.jsx(chunkL5FXGEKX_cjs.BlockIcon, {}) }),
1228
+ const card = /* @__PURE__ */ jsxRuntime.jsxs(chunkGDLKTYDB_cjs.DrawerCard, { $disabled: name in disabledByKeyLive, children: [
1229
+ /* @__PURE__ */ jsxRuntime.jsx(chunkGDLKTYDB_cjs.DrawerItemIcon, { children: blockByKeyLive[name]?.icon ?? /* @__PURE__ */ jsxRuntime.jsx(chunkL5FXGEKX_cjs.BlockIcon, {}) }),
1230
1230
  /* @__PURE__ */ jsxRuntime.jsx("span", { children: blockByKeyLive[name]?.label ?? name })
1231
1231
  ] });
1232
1232
  if (!(name in disabledByKeyLive)) return card;
1233
- return /* @__PURE__ */ jsxRuntime.jsx(chunk5H27FECZ_cjs.DrawerHint, { "data-hint": disabledByKeyLive[name] || void 0, children: card });
1233
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkGDLKTYDB_cjs.DrawerHint, { "data-hint": disabledByKeyLive[name] || void 0, children: card });
1234
1234
  }
1235
1235
  };
1236
1236
  const withBridge = apiRefRef.current ? {
@@ -1276,8 +1276,8 @@ function DocumentEditor({
1276
1276
  }
1277
1277
  return { ...withActions, header: Header };
1278
1278
  }, [Boolean(renderHeader), Boolean(apiRef), Boolean(renderBlockActions)]);
1279
- return /* @__PURE__ */ jsxRuntime.jsx(chunk5H27FECZ_cjs.DocumentThemeProvider, { theme, children: /* @__PURE__ */ jsxRuntime.jsx(chunkSP5LCPDG_cjs.CatalogProvider, { catalog, translator, children: /* @__PURE__ */ jsxRuntime.jsxs(chunkSP5LCPDG_cjs.ResolvedProvider, { resolved, ensureResolved, unresolvedDisplay, children: [
1280
- /* @__PURE__ */ jsxRuntime.jsx(chunk5H27FECZ_cjs.EditorShell, { ref: shellRef, children: /* @__PURE__ */ jsxRuntime.jsx(
1279
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkGDLKTYDB_cjs.DocumentThemeProvider, { theme, children: /* @__PURE__ */ jsxRuntime.jsx(chunkSP5LCPDG_cjs.CatalogProvider, { catalog, translator, children: /* @__PURE__ */ jsxRuntime.jsxs(chunkSP5LCPDG_cjs.ResolvedProvider, { resolved, ensureResolved, unresolvedDisplay, children: [
1280
+ /* @__PURE__ */ jsxRuntime.jsx(chunkGDLKTYDB_cjs.EditorShell, { ref: shellRef, children: /* @__PURE__ */ jsxRuntime.jsx(
1281
1281
  core.Puck,
1282
1282
  {
1283
1283
  config,
@@ -1385,5 +1385,5 @@ exports.rgbToHex = rgbToHex;
1385
1385
  exports.themeSchema = themeSchema;
1386
1386
  exports.useDocumentAutosave = useDocumentAutosave;
1387
1387
  exports.usePuckState = usePuckState;
1388
- //# sourceMappingURL=chunk-3KIK2XTA.cjs.map
1389
- //# sourceMappingURL=chunk-3KIK2XTA.cjs.map
1388
+ //# sourceMappingURL=chunk-3F5SJWGQ.cjs.map
1389
+ //# sourceMappingURL=chunk-3F5SJWGQ.cjs.map