@pixerate/editor 0.145.0 → 0.147.0

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 (135) hide show
  1. package/README.md +4 -2
  2. package/THIRD_PARTY_NOTICES.md +1 -1
  3. package/dist/agent/index.cjs +36 -34
  4. package/dist/agent/index.js +7 -5
  5. package/dist/animation/index.cjs +5 -3
  6. package/dist/animation/index.js +4 -2
  7. package/dist/animation-editor/index.cjs +62 -60
  8. package/dist/animation-editor/index.js +6 -4
  9. package/dist/canvas/index.cjs +36 -34
  10. package/dist/canvas/index.js +19 -17
  11. package/dist/chart/index.cjs +88 -86
  12. package/dist/chart/index.js +7 -5
  13. package/dist/{chunk-WBJ6BG4R.js → chunk-2AQL4JHM.js} +6 -6
  14. package/dist/{chunk-HLMF3E53.cjs → chunk-2WDZI6QD.cjs} +15 -15
  15. package/dist/{chunk-ZNHB5RG6.js → chunk-37RLSNQ3.js} +2 -2
  16. package/dist/{chunk-5WOY52O6.cjs → chunk-4YQKRHMI.cjs} +8 -8
  17. package/dist/chunk-6ONMQ6WF.js +113 -0
  18. package/dist/{chunk-L434J57V.cjs → chunk-6QTON3VW.cjs} +16 -16
  19. package/dist/chunk-AA34BA7G.js +1913 -0
  20. package/dist/{chunk-QX25HWFL.js → chunk-AY65VQSU.js} +1 -1
  21. package/dist/{chunk-ONZJD2OD.cjs → chunk-BROJYMWU.cjs} +57 -153
  22. package/dist/{chunk-YM75DN54.js → chunk-DSZCDNTM.js} +1 -1
  23. package/dist/{chunk-PUR6BZFA.cjs → chunk-DVLMW3GB.cjs} +53 -53
  24. package/dist/{chunk-ALUWD3FG.js → chunk-EIUTJPEL.js} +1 -1
  25. package/dist/{chunk-X65C4DWV.js → chunk-EQ4SF4X4.js} +1 -1
  26. package/dist/{chunk-77SG47WT.js → chunk-FLOGD3QB.js} +1 -1
  27. package/dist/chunk-HRLT5BYO.js +133 -0
  28. package/dist/{chunk-AJSW5GMP.js → chunk-HVQVHUTV.js} +19 -115
  29. package/dist/{chunk-UR37VCIR.cjs → chunk-I4AHLP7F.cjs} +16 -35
  30. package/dist/chunk-IPJ3TEYR.cjs +113 -0
  31. package/dist/chunk-KC7HB5GF.cjs +133 -0
  32. package/dist/chunk-KY3FYKP3.js +52 -0
  33. package/dist/chunk-LEUZ4FRC.cjs +52 -0
  34. package/dist/{chunk-H6FX45CP.cjs → chunk-LIXLD433.cjs} +37 -37
  35. package/dist/{chunk-6GAYGQDC.js → chunk-O5ML2I6O.js} +3 -3
  36. package/dist/{chunk-KI2VBONS.js → chunk-OET45HIR.js} +2 -2
  37. package/dist/{chunk-XNZWATSB.cjs → chunk-QCEQIRJQ.cjs} +85 -85
  38. package/dist/{chunk-HRI3ZMDM.cjs → chunk-RHXW4TA5.cjs} +3 -3
  39. package/dist/{chunk-UUTTJK77.cjs → chunk-SUF6WRXR.cjs} +2 -2
  40. package/dist/{chunk-RN767PO6.js → chunk-SUVZJ2CP.js} +15 -34
  41. package/dist/{chunk-FLUTRPLY.cjs → chunk-TLMRGLQQ.cjs} +16 -16
  42. package/dist/{chunk-DAS7M4RY.js → chunk-UILRJQFD.js} +2 -2
  43. package/dist/chunk-UKCJ43YL.cjs +1913 -0
  44. package/dist/{chunk-XQ33O5BC.cjs → chunk-X35BV5YT.cjs} +44 -44
  45. package/dist/{chunk-6HMEHNWW.cjs → chunk-XTU6QO2W.cjs} +26 -26
  46. package/dist/{chunk-VM6JYWXQ.js → chunk-ZQUANEK4.js} +2 -2
  47. package/dist/cms/index.cjs +5 -3
  48. package/dist/cms/index.js +18 -16
  49. package/dist/color/contrast.d.cts +14 -0
  50. package/dist/color/contrast.d.ts +14 -0
  51. package/dist/color/convert.d.cts +30 -0
  52. package/dist/color/convert.d.ts +30 -0
  53. package/dist/color/dual.d.cts +98 -0
  54. package/dist/color/dual.d.ts +98 -0
  55. package/dist/color/format.d.cts +12 -0
  56. package/dist/color/format.d.ts +12 -0
  57. package/dist/color/gamut.d.cts +12 -0
  58. package/dist/color/gamut.d.ts +12 -0
  59. package/dist/color/harmony.d.cts +22 -0
  60. package/dist/color/harmony.d.ts +22 -0
  61. package/dist/color/index.cjs +115 -0
  62. package/dist/color/index.d.cts +18 -0
  63. package/dist/color/index.d.ts +18 -0
  64. package/dist/color/index.js +115 -0
  65. package/dist/color/mix.d.cts +11 -0
  66. package/dist/color/mix.d.ts +11 -0
  67. package/dist/color/named.d.cts +5 -0
  68. package/dist/color/named.d.ts +5 -0
  69. package/dist/color/parse.d.cts +11 -0
  70. package/dist/color/parse.d.ts +11 -0
  71. package/dist/color/picker.d.cts +52 -0
  72. package/dist/color/picker.d.ts +52 -0
  73. package/dist/color/recent.d.cts +8 -0
  74. package/dist/color/recent.d.ts +8 -0
  75. package/dist/color/tools.d.cts +15 -0
  76. package/dist/color/tools.d.ts +15 -0
  77. package/dist/color/types.d.cts +41 -0
  78. package/dist/color/types.d.ts +41 -0
  79. package/dist/color/vision.d.cts +36 -0
  80. package/dist/color/vision.d.ts +36 -0
  81. package/dist/diagram/editorDocument.d.cts +12 -0
  82. package/dist/diagram/editorDocument.d.ts +12 -0
  83. package/dist/diagram/index.cjs +35 -1
  84. package/dist/diagram/index.d.cts +1 -0
  85. package/dist/diagram/index.d.ts +1 -0
  86. package/dist/diagram/index.js +34 -0
  87. package/dist/export/index.cjs +6 -4
  88. package/dist/export/index.js +5 -3
  89. package/dist/extensions/index.cjs +10 -8
  90. package/dist/extensions/index.js +9 -7
  91. package/dist/gradient/controller.d.cts +109 -0
  92. package/dist/gradient/controller.d.ts +109 -0
  93. package/dist/gradient/editor.d.cts +38 -0
  94. package/dist/gradient/editor.d.ts +38 -0
  95. package/dist/gradient/index.cjs +1549 -0
  96. package/dist/gradient/index.d.cts +5 -0
  97. package/dist/gradient/index.d.ts +5 -0
  98. package/dist/gradient/index.js +1549 -0
  99. package/dist/gradient/model.d.cts +94 -0
  100. package/dist/gradient/model.d.ts +94 -0
  101. package/dist/gradient/tools.d.cts +11 -0
  102. package/dist/gradient/tools.d.ts +11 -0
  103. package/dist/gradient/types.d.cts +44 -0
  104. package/dist/gradient/types.d.ts +44 -0
  105. package/dist/image-editor/index.cjs +649 -647
  106. package/dist/image-editor/index.js +6 -4
  107. package/dist/index.cjs +19 -17
  108. package/dist/index.js +16 -14
  109. package/dist/paint-editor/color.d.cts +3 -13
  110. package/dist/paint-editor/color.d.ts +3 -13
  111. package/dist/paint-editor/index.cjs +23 -68
  112. package/dist/paint-editor/index.js +15 -60
  113. package/dist/persistence/documentStore.d.cts +51 -0
  114. package/dist/persistence/documentStore.d.ts +51 -0
  115. package/dist/persistence/documentTools.d.cts +35 -0
  116. package/dist/persistence/documentTools.d.ts +35 -0
  117. package/dist/persistence/editorAutosave.d.cts +33 -0
  118. package/dist/persistence/editorAutosave.d.ts +33 -0
  119. package/dist/persistence/editorDocument.d.cts +118 -0
  120. package/dist/persistence/editorDocument.d.ts +118 -0
  121. package/dist/persistence/index.cjs +294 -1
  122. package/dist/persistence/index.d.cts +4 -0
  123. package/dist/persistence/index.d.ts +4 -0
  124. package/dist/persistence/index.js +293 -0
  125. package/dist/vector/index.cjs +950 -948
  126. package/dist/vector/index.js +5 -3
  127. package/dist/video-editor/index.cjs +5 -3
  128. package/dist/video-editor/index.js +4 -2
  129. package/package.json +21 -1
  130. package/skills/README.md +1 -0
  131. package/skills/pixerate-agent-tools/SKILL.md +21 -0
  132. package/skills/pixerate-color/SKILL.md +69 -0
  133. package/skills/pixerate-diagram/SKILL.md +13 -0
  134. package/dist/chunk-45VRG4RB.js +0 -65
  135. package/dist/chunk-5FXOR7F2.cjs +0 -65
@@ -1,3 +1,6 @@
1
+ import {
2
+ defineEditorDocument
3
+ } from "../chunk-HRLT5BYO.js";
1
4
  import {
2
5
  ARCH_METRICS,
3
6
  C4_METRICS,
@@ -116,6 +119,8 @@ import {
116
119
  xyChartAdapter,
117
120
  xyChartGrammar
118
121
  } from "../chunk-GZ2FM3ZB.js";
122
+ import "../chunk-WHKNYFM2.js";
123
+ import "../chunk-HF5QZS7Z.js";
119
124
  import {
120
125
  PRESENCE_COLORS,
121
126
  PerformanceQueue,
@@ -131,6 +136,34 @@ import {
131
136
  // src/diagram/types.ts
132
137
  var DIRECTIONS = ["TB", "TD", "BT", "LR", "RL"];
133
138
 
139
+ // src/diagram/editorDocument.ts
140
+ function createDiagramEditorDocument(controller) {
141
+ return defineEditorDocument({
142
+ kind: "diagram",
143
+ get: () => ({ source: controller.getSource() }),
144
+ load: (document, { history }) => {
145
+ const source = document.source;
146
+ if (typeof source !== "string") throw new Error("A diagram document is { source: string } (Mermaid text).");
147
+ const result = controller.load(source, { clearHistory: history === "reset" });
148
+ if (!result.ok) throw new Error(result.message);
149
+ },
150
+ subscribe: (listener) => {
151
+ let source = controller.getSource();
152
+ return controller.subscribe((state) => {
153
+ if (state.source === source) return;
154
+ source = state.source;
155
+ listener();
156
+ });
157
+ },
158
+ history: {
159
+ undo: () => controller.undo(),
160
+ redo: () => controller.redo(),
161
+ getState: () => controller.history.getState()
162
+ },
163
+ readOnly: () => controller.getState().readOnly ? "The diagram is read-only." : false
164
+ });
165
+ }
166
+
134
167
  // src/diagram/source/find.ts
135
168
  var MERMAID_INFO = /^(mermaid|mmd)\b/i;
136
169
  function findMermaidSources(text) {
@@ -2466,6 +2499,7 @@ export {
2466
2499
  checkFieldData,
2467
2500
  classGrammar,
2468
2501
  classUI,
2502
+ createDiagramEditorDocument,
2469
2503
  createDiagramToolProvider,
2470
2504
  createInstantPresenceClock,
2471
2505
  createLineAdapter,
@@ -12,16 +12,18 @@
12
12
 
13
13
 
14
14
 
15
- var _chunk5WOY52O6cjs = require('../chunk-5WOY52O6.cjs');
15
+ var _chunk4YQKRHMIcjs = require('../chunk-4YQKRHMI.cjs');
16
16
 
17
17
 
18
18
 
19
19
  var _chunkJLWLX52Lcjs = require('../chunk-JLWLX52L.cjs');
20
20
  require('../chunk-YN6JKAUE.cjs');
21
- require('../chunk-HLMF3E53.cjs');
22
- require('../chunk-UR37VCIR.cjs');
21
+ require('../chunk-2WDZI6QD.cjs');
22
+ require('../chunk-I4AHLP7F.cjs');
23
23
  require('../chunk-2BSBFBOA.cjs');
24
24
  require('../chunk-ALNIFK5G.cjs');
25
+ require('../chunk-UKCJ43YL.cjs');
26
+ require('../chunk-IPJ3TEYR.cjs');
25
27
 
26
28
 
27
29
 
@@ -38,4 +40,4 @@ require('../chunk-ALNIFK5G.cjs');
38
40
 
39
41
 
40
42
 
41
- exports.DOCX_ANONYMOUS_AUTHOR = _chunk5WOY52O6cjs.DOCX_ANONYMOUS_AUTHOR; exports.DOCX_EXPORT_MIME_TYPE = _chunk5WOY52O6cjs.DOCX_EXPORT_MIME_TYPE; exports.DocxExportController = _chunk5WOY52O6cjs.DocxExportController; exports.XmlWriter = _chunk5WOY52O6cjs.XmlWriter; exports.createDocxExportController = _chunk5WOY52O6cjs.createDocxExportController; exports.createDocxParts = _chunk5WOY52O6cjs.createDocxParts; exports.deflateRaw = _chunkJLWLX52Lcjs.deflateRaw; exports.docxFileName = _chunk5WOY52O6cjs.docxFileName; exports.downloadBlob = _chunk5WOY52O6cjs.downloadBlob; exports.escapeXmlAttr = _chunk5WOY52O6cjs.escapeXmlAttr; exports.escapeXmlText = _chunk5WOY52O6cjs.escapeXmlText; exports.exportDocx = _chunk5WOY52O6cjs.exportDocx; exports.exportDocxBlob = _chunk5WOY52O6cjs.exportDocxBlob; exports.stripInvalidXmlChars = _chunk5WOY52O6cjs.stripInvalidXmlChars; exports.writeZip = _chunkJLWLX52Lcjs.writeZip;
43
+ exports.DOCX_ANONYMOUS_AUTHOR = _chunk4YQKRHMIcjs.DOCX_ANONYMOUS_AUTHOR; exports.DOCX_EXPORT_MIME_TYPE = _chunk4YQKRHMIcjs.DOCX_EXPORT_MIME_TYPE; exports.DocxExportController = _chunk4YQKRHMIcjs.DocxExportController; exports.XmlWriter = _chunk4YQKRHMIcjs.XmlWriter; exports.createDocxExportController = _chunk4YQKRHMIcjs.createDocxExportController; exports.createDocxParts = _chunk4YQKRHMIcjs.createDocxParts; exports.deflateRaw = _chunkJLWLX52Lcjs.deflateRaw; exports.docxFileName = _chunk4YQKRHMIcjs.docxFileName; exports.downloadBlob = _chunk4YQKRHMIcjs.downloadBlob; exports.escapeXmlAttr = _chunk4YQKRHMIcjs.escapeXmlAttr; exports.escapeXmlText = _chunk4YQKRHMIcjs.escapeXmlText; exports.exportDocx = _chunk4YQKRHMIcjs.exportDocx; exports.exportDocxBlob = _chunk4YQKRHMIcjs.exportDocxBlob; exports.stripInvalidXmlChars = _chunk4YQKRHMIcjs.stripInvalidXmlChars; exports.writeZip = _chunkJLWLX52Lcjs.writeZip;
@@ -12,16 +12,18 @@ import {
12
12
  exportDocx,
13
13
  exportDocxBlob,
14
14
  stripInvalidXmlChars
15
- } from "../chunk-ZNHB5RG6.js";
15
+ } from "../chunk-37RLSNQ3.js";
16
16
  import {
17
17
  deflateRaw,
18
18
  writeZip
19
19
  } from "../chunk-AZCODQO5.js";
20
20
  import "../chunk-CXXKJBQZ.js";
21
- import "../chunk-X65C4DWV.js";
22
- import "../chunk-RN767PO6.js";
21
+ import "../chunk-EQ4SF4X4.js";
22
+ import "../chunk-SUVZJ2CP.js";
23
23
  import "../chunk-HF5QZS7Z.js";
24
24
  import "../chunk-CIQIM2IP.js";
25
+ import "../chunk-AA34BA7G.js";
26
+ import "../chunk-6ONMQ6WF.js";
25
27
  export {
26
28
  DOCX_ANONYMOUS_AUTHOR,
27
29
  DOCX_EXPORT_MIME_TYPE,
@@ -95,8 +95,7 @@
95
95
 
96
96
 
97
97
 
98
- var _chunkPUR6BZFAcjs = require('../chunk-PUR6BZFA.cjs');
99
- require('../chunk-HMGWFXEC.cjs');
98
+ var _chunkDVLMW3GBcjs = require('../chunk-DVLMW3GB.cjs');
100
99
 
101
100
 
102
101
 
@@ -105,7 +104,8 @@ require('../chunk-HMGWFXEC.cjs');
105
104
 
106
105
 
107
106
  var _chunkYN6JKAUEcjs = require('../chunk-YN6JKAUE.cjs');
108
- require('../chunk-HLMF3E53.cjs');
107
+ require('../chunk-2WDZI6QD.cjs');
108
+ require('../chunk-HMGWFXEC.cjs');
109
109
 
110
110
 
111
111
 
@@ -171,10 +171,10 @@ require('../chunk-HLMF3E53.cjs');
171
171
 
172
172
 
173
173
 
174
- var _chunkL434J57Vcjs = require('../chunk-L434J57V.cjs');
175
- require('../chunk-XQ33O5BC.cjs');
176
- require('../chunk-6HMEHNWW.cjs');
177
- require('../chunk-UR37VCIR.cjs');
174
+ var _chunk6QTON3VWcjs = require('../chunk-6QTON3VW.cjs');
175
+ require('../chunk-X35BV5YT.cjs');
176
+ require('../chunk-XTU6QO2W.cjs');
177
+ require('../chunk-I4AHLP7F.cjs');
178
178
  require('../chunk-3AJMR7EG.cjs');
179
179
  require('../chunk-G43MNQ4C.cjs');
180
180
  require('../chunk-JG5VGCKP.cjs');
@@ -214,6 +214,8 @@ require('../chunk-N3KJFGXT.cjs');
214
214
  require('../chunk-ALNIFK5G.cjs');
215
215
  require('../chunk-UWEQ55MY.cjs');
216
216
  require('../chunk-FJ2MSI43.cjs');
217
+ require('../chunk-UKCJ43YL.cjs');
218
+ require('../chunk-IPJ3TEYR.cjs');
217
219
 
218
220
 
219
221
 
@@ -409,4 +411,4 @@ require('../chunk-FJ2MSI43.cjs');
409
411
 
410
412
 
411
413
 
412
- exports.ALLOW_NESTED_TABLES_META = _chunkL434J57Vcjs.ALLOW_NESTED_TABLES_META; exports.AgentCaret = _chunkL434J57Vcjs.AgentCaret; exports.Autocorrect = _chunkPUR6BZFAcjs.Autocorrect; exports.BLOCK_CHANGE_ATTRIBUTE = _chunk34RQAGWIcjs.BLOCK_CHANGE_ATTRIBUTE; exports.Bookmark = _chunkPUR6BZFAcjs.Bookmark; exports.CHARACTER_STYLE_MARK_NAME = _chunkPUR6BZFAcjs.CHARACTER_STYLE_MARK_NAME; exports.COMMENT_MARK_NAME = _chunkPUR6BZFAcjs.COMMENT_MARK_NAME; exports.CharacterStyle = _chunkPUR6BZFAcjs.CharacterStyle; exports.Chart = _chunkL434J57Vcjs.Chart; exports.ChartNodeView = _chunkL434J57Vcjs.ChartNodeView; exports.ColorHighlighter = _chunkPUR6BZFAcjs.ColorHighlighter; exports.CommentStore = _chunk34RQAGWIcjs.CommentStore; exports.Comments = _chunkPUR6BZFAcjs.Comments; exports.CrossReference = _chunkPUR6BZFAcjs.CrossReference; exports.DEFAULT_AGENT_CARET_COLOR = _chunkL434J57Vcjs.DEFAULT_AGENT_CARET_COLOR; exports.DEFAULT_AGENT_CARET_NAME = _chunkL434J57Vcjs.DEFAULT_AGENT_CARET_NAME; exports.DEFAULT_AUTOCORRECT_EXCEPTIONS = _chunkPUR6BZFAcjs.DEFAULT_AUTOCORRECT_EXCEPTIONS; exports.DEFAULT_STYLES = _chunkYN6JKAUEcjs.DEFAULT_STYLES; exports.DEFAULT_TABLE_OPTIONS = _chunkL434J57Vcjs.DEFAULT_TABLE_OPTIONS; exports.DEFAULT_TABLE_TOOLBAR = _chunkL434J57Vcjs.DEFAULT_TABLE_TOOLBAR; exports.DELETION_MARK_NAME = _chunk34RQAGWIcjs.DELETION_MARK_NAME; exports.DocumentCompare = _chunkPUR6BZFAcjs.DocumentCompare; exports.EMPTY_FIND_REPLACE_SNAPSHOT = _chunkPUR6BZFAcjs.EMPTY_FIND_REPLACE_SNAPSHOT; exports.EMPTY_TABLE_STATE = _chunkL434J57Vcjs.EMPTY_TABLE_STATE; exports.FIND_OPTION_TOGGLES = _chunkPUR6BZFAcjs.FIND_OPTION_TOGGLES; exports.FIND_PARAGRAPH_MARK = _chunkL434J57Vcjs.FIND_PARAGRAPH_MARK; exports.FORMAT_CHANGE_MARK_NAME = _chunk34RQAGWIcjs.FORMAT_CHANGE_MARK_NAME; exports.FileImport = _chunkPUR6BZFAcjs.FileImport; exports.FindReplace = _chunkPUR6BZFAcjs.FindReplace; exports.FindReplaceStore = _chunkPUR6BZFAcjs.FindReplaceStore; exports.FontSize = _chunkPUR6BZFAcjs.FontSize; exports.Footnote = _chunkPUR6BZFAcjs.Footnote; exports.FootnoteReference = _chunkPUR6BZFAcjs.FootnoteReference; exports.Footnotes = _chunkPUR6BZFAcjs.Footnotes; exports.GradientText = _chunkPUR6BZFAcjs.GradientText; exports.INSERTION_MARK_NAME = _chunk34RQAGWIcjs.INSERTION_MARK_NAME; exports.Image = _chunkPUR6BZFAcjs.Image; exports.LoadingNode = _chunkPUR6BZFAcjs.LoadingNode; exports.MAX_FIND_PATTERN_LENGTH = _chunkL434J57Vcjs.MAX_FIND_PATTERN_LENGTH; exports.MAX_SPARKLINE_VALUES = _chunkL434J57Vcjs.MAX_SPARKLINE_VALUES; exports.MAX_TABLE_COLUMNS = _chunkL434J57Vcjs.MAX_TABLE_COLUMNS; exports.MAX_TABLE_ROWS = _chunkL434J57Vcjs.MAX_TABLE_ROWS; exports.MOVE_FROM_CLASS = _chunk34RQAGWIcjs.MOVE_FROM_CLASS; exports.MOVE_ID_ATTRIBUTE = _chunk34RQAGWIcjs.MOVE_ID_ATTRIBUTE; exports.MOVE_TO_CLASS = _chunk34RQAGWIcjs.MOVE_TO_CLASS; exports.Markdown = _chunkPUR6BZFAcjs.Markdown; exports.Mention = _chunkPUR6BZFAcjs.Mention; exports.NORMAL_STYLE_ID = _chunkYN6JKAUEcjs.NORMAL_STYLE_ID; exports.Outline = _chunkPUR6BZFAcjs.Outline; exports.ParagraphStyles = _chunkPUR6BZFAcjs.ParagraphStyles; exports.RichClipboard = _chunkPUR6BZFAcjs.RichClipboard; exports.SMILIE_REPLACEMENTS = _chunkPUR6BZFAcjs.SMILIE_REPLACEMENTS; exports.SPARKLINE_KINDS = _chunkL434J57Vcjs.SPARKLINE_KINDS; exports.STYLE_ID_ATTRIBUTE = _chunkPUR6BZFAcjs.STYLE_ID_ATTRIBUTE; exports.SlashCommands = _chunkPUR6BZFAcjs.SlashCommands; exports.SmilieReplacer = _chunkPUR6BZFAcjs.SmilieReplacer; exports.Sparkline = _chunkL434J57Vcjs.Sparkline; exports.StyleRegistry = _chunkYN6JKAUEcjs.StyleRegistry; exports.TABLE_ACTIONS = _chunkL434J57Vcjs.TABLE_ACTIONS; exports.TRACK_CHANGES_SKIP_META = _chunk34RQAGWIcjs.TRACK_CHANGES_SKIP_META; exports.Table = _chunkL434J57Vcjs.Table; exports.TableCell = _chunkL434J57Vcjs.TableCell; exports.TableHeader = _chunkL434J57Vcjs.TableHeader; exports.TableOfContents = _chunkPUR6BZFAcjs.TableOfContents; exports.TableRow = _chunkL434J57Vcjs.TableRow; exports.TemplateSuggestions = _chunkPUR6BZFAcjs.TemplateSuggestions; exports.TrackChanges = _chunk34RQAGWIcjs.TrackChanges; exports.TrackChangesStore = _chunk34RQAGWIcjs.TrackChangesStore; exports.TrackedDeletion = _chunk34RQAGWIcjs.TrackedDeletion; exports.TrackedFormatChange = _chunk34RQAGWIcjs.TrackedFormatChange; exports.TrackedInsertion = _chunk34RQAGWIcjs.TrackedInsertion; exports.agentCaretPluginKey = _chunkL434J57Vcjs.agentCaretPluginKey; exports.applyDocumentComparison = _chunkPUR6BZFAcjs.applyDocumentComparison; exports.applyReplacements = _chunkL434J57Vcjs.applyReplacements; exports.autocorrectPluginKey = _chunkPUR6BZFAcjs.autocorrectPluginKey; exports.buildOutlineTree = _chunkPUR6BZFAcjs.buildOutlineTree; exports.capitalizeSentenceRules = _chunkPUR6BZFAcjs.capitalizeSentenceRules; exports.captureSelectionFormat = _chunkPUR6BZFAcjs.captureSelectionFormat; exports.chartPluginKey = _chunkL434J57Vcjs.chartPluginKey; exports.clearAgentCaret = _chunkL434J57Vcjs.clearAgentCaret; exports.commentsPluginKey = _chunkPUR6BZFAcjs.commentsPluginKey; exports.compareInEditor = _chunkPUR6BZFAcjs.compareInEditor; exports.compileFindPattern = _chunkL434J57Vcjs.compileFindPattern; exports.computeOutline = _chunkPUR6BZFAcjs.computeOutline; exports.createAgentCaretPlugin = _chunkL434J57Vcjs.createAgentCaretPlugin; exports.createChartNodeView = _chunkL434J57Vcjs.createChartNodeView; exports.createCommentStore = _chunk34RQAGWIcjs.createCommentStore; exports.createFindReplaceCommands = _chunkPUR6BZFAcjs.createFindReplaceCommands; exports.createMentionExtension = _chunkPUR6BZFAcjs.createMentionExtension; exports.createOutlineStore = _chunkPUR6BZFAcjs.createOutlineStore; exports.createParagraphStylesStore = _chunkPUR6BZFAcjs.createParagraphStylesStore; exports.createReviewId = _chunk34RQAGWIcjs.createReviewId; exports.createRichTextPreset = _chunkPUR6BZFAcjs.createRichTextPreset; exports.createSearchBudget = _chunkL434J57Vcjs.createSearchBudget; exports.createStyleRegistry = _chunkYN6JKAUEcjs.createStyleRegistry; exports.createTableCommands = _chunkPUR6BZFAcjs.createTableCommands; exports.createTableExtensions = _chunkL434J57Vcjs.createTableExtensions; exports.createTableNestingPlugin = _chunkL434J57Vcjs.createTableNestingPlugin; exports.createTableStore = _chunkL434J57Vcjs.createTableStore; exports.crossReferencePluginKey = _chunkPUR6BZFAcjs.crossReferencePluginKey; exports.defaultAutocorrectRules = _chunkPUR6BZFAcjs.defaultAutocorrectRules; exports.describeBlockChange = _chunk34RQAGWIcjs.describeBlockChange; exports.describeFormatChange = _chunk34RQAGWIcjs.describeFormatChange; exports.documentStructureCommandItems = _chunkPUR6BZFAcjs.documentStructureCommandItems; exports.ensureAgentCaret = _chunkL434J57Vcjs.ensureAgentCaret; exports.expandReplacement = _chunkL434J57Vcjs.expandReplacement; exports.fileImportPluginKey = _chunkPUR6BZFAcjs.fileImportPluginKey; exports.findAllMatches = _chunkL434J57Vcjs.findAllMatches; exports.findAutocorrection = _chunkPUR6BZFAcjs.findAutocorrection; exports.findCommentRanges = _chunkPUR6BZFAcjs.findCommentRanges; exports.findHexColors = _chunkPUR6BZFAcjs.findHexColors; exports.findReplacePluginKey = _chunkPUR6BZFAcjs.findReplacePluginKey; exports.foldCodePoint = _chunkL434J57Vcjs.foldCodePoint; exports.footnotesMarkdownIt = _chunkPUR6BZFAcjs.footnotesMarkdownIt; exports.footnotesPluginKey = _chunkPUR6BZFAcjs.footnotesPluginKey; exports.formatFindStatus = _chunkPUR6BZFAcjs.formatFindStatus; exports.formatReviewTime = _chunk34RQAGWIcjs.formatReviewTime; exports.fractionRules = _chunkPUR6BZFAcjs.fractionRules; exports.getActiveHeading = _chunkPUR6BZFAcjs.getActiveHeading; exports.getAgentCarets = _chunkL434J57Vcjs.getAgentCarets; exports.getBookmarks = _chunkPUR6BZFAcjs.getBookmarks; exports.getCommentAnchors = _chunkPUR6BZFAcjs.getCommentAnchors; exports.getCommentAuthor = _chunkPUR6BZFAcjs.getCommentAuthor; exports.getCommentIdsAt = _chunkPUR6BZFAcjs.getCommentIdsAt; exports.getCommentStore = _chunkPUR6BZFAcjs.getCommentStore; exports.getCrossReferenceTargets = _chunkPUR6BZFAcjs.getCrossReferenceTargets; exports.getDocumentCharts = _chunkL434J57Vcjs.getDocumentCharts; exports.getDocumentStructureCommandItems = _chunkPUR6BZFAcjs.getDocumentStructureCommandItems; exports.getFindReplaceState = _chunkPUR6BZFAcjs.getFindReplaceState; exports.getFindReplaceStore = _chunkPUR6BZFAcjs.getFindReplaceStore; exports.getFootnotes = _chunkPUR6BZFAcjs.getFootnotes; exports.getMentionNodes = _chunkPUR6BZFAcjs.getMentionNodes; exports.getOutline = _chunkPUR6BZFAcjs.getOutline; exports.getParagraphStyleAt = _chunkPUR6BZFAcjs.getParagraphStyleAt; exports.getStyleRegistry = _chunkPUR6BZFAcjs.getStyleRegistry; exports.getTableActionState = _chunkL434J57Vcjs.getTableActionState; exports.getTableOfContentsEntries = _chunkPUR6BZFAcjs.getTableOfContentsEntries; exports.getTableState = _chunkL434J57Vcjs.getTableState; exports.getTrackChangesStore = _chunk34RQAGWIcjs.getTrackChangesStore; exports.getTrackedChangeAt = _chunk34RQAGWIcjs.getTrackedChangeAt; exports.getTrackedChanges = _chunk34RQAGWIcjs.getTrackedChanges; exports.handleImageInsertion = _chunkPUR6BZFAcjs.handleImageInsertion; exports.handleTablePasteWithoutNesting = _chunkL434J57Vcjs.handleTablePasteWithoutNesting; exports.imagePastePluginKey = _chunkPUR6BZFAcjs.imagePastePluginKey; exports.insertImageNode = _chunkPUR6BZFAcjs.insertImageNode; exports.insertSliceAfterTable = _chunkL434J57Vcjs.insertSliceAfterTable; exports.isChartEnabled = _chunkL434J57Vcjs.isChartEnabled; exports.isGfmTable = _chunkL434J57Vcjs.isGfmTable; exports.isInTableCell = _chunkL434J57Vcjs.isInTableCell; exports.isInsidePromptToken = _chunkPUR6BZFAcjs.isInsidePromptToken; exports.isMoveSized = _chunk34RQAGWIcjs.isMoveSized; exports.isParagraphStyleAvailable = _chunkPUR6BZFAcjs.isParagraphStyleAvailable; exports.isSelectionInTable = _chunkL434J57Vcjs.isSelectionInTable; exports.isTableEnabled = _chunkL434J57Vcjs.isTableEnabled; exports.isTrackChangesEnabled = _chunk34RQAGWIcjs.isTrackChangesEnabled; exports.isValidStyleId = _chunkYN6JKAUEcjs.isValidStyleId; exports.markAgentChanges = _chunkL434J57Vcjs.markAgentChanges; exports.navigateToHeading = _chunkPUR6BZFAcjs.navigateToHeading; exports.normalizeSparklineValues = _chunkL434J57Vcjs.normalizeSparklineValues; exports.normalizeTableCellAlignment = _chunkL434J57Vcjs.normalizeTableCellAlignment; exports.normalizeTableCellColor = _chunkL434J57Vcjs.normalizeTableCellColor; exports.outermostTableDepth = _chunkL434J57Vcjs.outermostTableDepth; exports.outlinePluginKey = _chunkPUR6BZFAcjs.outlinePluginKey; exports.paragraphStylesPluginKey = _chunkPUR6BZFAcjs.paragraphStylesPluginKey; exports.parseReplacement = _chunkL434J57Vcjs.parseReplacement; exports.removeImageNode = _chunkPUR6BZFAcjs.removeImageNode; exports.replaceWithTextTransaction = _chunkL434J57Vcjs.replaceWithTextTransaction; exports.resolveTrackedChanges = _chunk34RQAGWIcjs.resolveTrackedChanges; exports.richClipboardPluginKey = _chunkPUR6BZFAcjs.richClipboardPluginKey; exports.runTableAction = _chunkL434J57Vcjs.runTableAction; exports.safeCSSValue = _chunkYN6JKAUEcjs.safeCSSValue; exports.safeMergeAttributes = _chunk34RQAGWIcjs.safeMergeAttributes; exports.searchDocument = _chunkL434J57Vcjs.searchDocument; exports.setAgentCaret = _chunkL434J57Vcjs.setAgentCaret; exports.setMentionRoleAt = _chunkPUR6BZFAcjs.setMentionRoleAt; exports.shouldShowTableBubbleMenu = _chunkL434J57Vcjs.shouldShowTableBubbleMenu; exports.sliceContainsTable = _chunkL434J57Vcjs.sliceContainsTable; exports.smartQuoteRules = _chunkPUR6BZFAcjs.smartQuoteRules; exports.smilieAutocorrectRules = _chunkPUR6BZFAcjs.smilieAutocorrectRules; exports.sparklineLabel = _chunkL434J57Vcjs.sparklineLabel; exports.staticChartSvg = _chunkL434J57Vcjs.staticChartSvg; exports.symbolRules = _chunkPUR6BZFAcjs.symbolRules; exports.syncFootnotes = _chunkPUR6BZFAcjs.syncFootnotes; exports.tableNestingPluginKey = _chunkL434J57Vcjs.tableNestingPluginKey; exports.tableOfContentsMarkdownIt = _chunkPUR6BZFAcjs.tableOfContentsMarkdownIt; exports.tableOfContentsPluginKey = _chunkPUR6BZFAcjs.tableOfContentsPluginKey; exports.trackChangesPluginKey = _chunk34RQAGWIcjs.trackChangesPluginKey; exports.trackedChangeLabel = _chunk34RQAGWIcjs.trackedChangeLabel; exports.twoInitialCapitalsRules = _chunkPUR6BZFAcjs.twoInitialCapitalsRules; exports.typeAgentText = _chunkL434J57Vcjs.typeAgentText; exports.unnestTables = _chunkL434J57Vcjs.unnestTables; exports.updateImageSrc = _chunkPUR6BZFAcjs.updateImageSrc; exports.validateFindPattern = _chunkPUR6BZFAcjs.validateFindPattern; exports.writeRichClipboard = _chunkPUR6BZFAcjs.writeRichClipboard;
414
+ exports.ALLOW_NESTED_TABLES_META = _chunk6QTON3VWcjs.ALLOW_NESTED_TABLES_META; exports.AgentCaret = _chunk6QTON3VWcjs.AgentCaret; exports.Autocorrect = _chunkDVLMW3GBcjs.Autocorrect; exports.BLOCK_CHANGE_ATTRIBUTE = _chunk34RQAGWIcjs.BLOCK_CHANGE_ATTRIBUTE; exports.Bookmark = _chunkDVLMW3GBcjs.Bookmark; exports.CHARACTER_STYLE_MARK_NAME = _chunkDVLMW3GBcjs.CHARACTER_STYLE_MARK_NAME; exports.COMMENT_MARK_NAME = _chunkDVLMW3GBcjs.COMMENT_MARK_NAME; exports.CharacterStyle = _chunkDVLMW3GBcjs.CharacterStyle; exports.Chart = _chunk6QTON3VWcjs.Chart; exports.ChartNodeView = _chunk6QTON3VWcjs.ChartNodeView; exports.ColorHighlighter = _chunkDVLMW3GBcjs.ColorHighlighter; exports.CommentStore = _chunk34RQAGWIcjs.CommentStore; exports.Comments = _chunkDVLMW3GBcjs.Comments; exports.CrossReference = _chunkDVLMW3GBcjs.CrossReference; exports.DEFAULT_AGENT_CARET_COLOR = _chunk6QTON3VWcjs.DEFAULT_AGENT_CARET_COLOR; exports.DEFAULT_AGENT_CARET_NAME = _chunk6QTON3VWcjs.DEFAULT_AGENT_CARET_NAME; exports.DEFAULT_AUTOCORRECT_EXCEPTIONS = _chunkDVLMW3GBcjs.DEFAULT_AUTOCORRECT_EXCEPTIONS; exports.DEFAULT_STYLES = _chunkYN6JKAUEcjs.DEFAULT_STYLES; exports.DEFAULT_TABLE_OPTIONS = _chunk6QTON3VWcjs.DEFAULT_TABLE_OPTIONS; exports.DEFAULT_TABLE_TOOLBAR = _chunk6QTON3VWcjs.DEFAULT_TABLE_TOOLBAR; exports.DELETION_MARK_NAME = _chunk34RQAGWIcjs.DELETION_MARK_NAME; exports.DocumentCompare = _chunkDVLMW3GBcjs.DocumentCompare; exports.EMPTY_FIND_REPLACE_SNAPSHOT = _chunkDVLMW3GBcjs.EMPTY_FIND_REPLACE_SNAPSHOT; exports.EMPTY_TABLE_STATE = _chunk6QTON3VWcjs.EMPTY_TABLE_STATE; exports.FIND_OPTION_TOGGLES = _chunkDVLMW3GBcjs.FIND_OPTION_TOGGLES; exports.FIND_PARAGRAPH_MARK = _chunk6QTON3VWcjs.FIND_PARAGRAPH_MARK; exports.FORMAT_CHANGE_MARK_NAME = _chunk34RQAGWIcjs.FORMAT_CHANGE_MARK_NAME; exports.FileImport = _chunkDVLMW3GBcjs.FileImport; exports.FindReplace = _chunkDVLMW3GBcjs.FindReplace; exports.FindReplaceStore = _chunkDVLMW3GBcjs.FindReplaceStore; exports.FontSize = _chunkDVLMW3GBcjs.FontSize; exports.Footnote = _chunkDVLMW3GBcjs.Footnote; exports.FootnoteReference = _chunkDVLMW3GBcjs.FootnoteReference; exports.Footnotes = _chunkDVLMW3GBcjs.Footnotes; exports.GradientText = _chunkDVLMW3GBcjs.GradientText; exports.INSERTION_MARK_NAME = _chunk34RQAGWIcjs.INSERTION_MARK_NAME; exports.Image = _chunkDVLMW3GBcjs.Image; exports.LoadingNode = _chunkDVLMW3GBcjs.LoadingNode; exports.MAX_FIND_PATTERN_LENGTH = _chunk6QTON3VWcjs.MAX_FIND_PATTERN_LENGTH; exports.MAX_SPARKLINE_VALUES = _chunk6QTON3VWcjs.MAX_SPARKLINE_VALUES; exports.MAX_TABLE_COLUMNS = _chunk6QTON3VWcjs.MAX_TABLE_COLUMNS; exports.MAX_TABLE_ROWS = _chunk6QTON3VWcjs.MAX_TABLE_ROWS; exports.MOVE_FROM_CLASS = _chunk34RQAGWIcjs.MOVE_FROM_CLASS; exports.MOVE_ID_ATTRIBUTE = _chunk34RQAGWIcjs.MOVE_ID_ATTRIBUTE; exports.MOVE_TO_CLASS = _chunk34RQAGWIcjs.MOVE_TO_CLASS; exports.Markdown = _chunkDVLMW3GBcjs.Markdown; exports.Mention = _chunkDVLMW3GBcjs.Mention; exports.NORMAL_STYLE_ID = _chunkYN6JKAUEcjs.NORMAL_STYLE_ID; exports.Outline = _chunkDVLMW3GBcjs.Outline; exports.ParagraphStyles = _chunkDVLMW3GBcjs.ParagraphStyles; exports.RichClipboard = _chunkDVLMW3GBcjs.RichClipboard; exports.SMILIE_REPLACEMENTS = _chunkDVLMW3GBcjs.SMILIE_REPLACEMENTS; exports.SPARKLINE_KINDS = _chunk6QTON3VWcjs.SPARKLINE_KINDS; exports.STYLE_ID_ATTRIBUTE = _chunkDVLMW3GBcjs.STYLE_ID_ATTRIBUTE; exports.SlashCommands = _chunkDVLMW3GBcjs.SlashCommands; exports.SmilieReplacer = _chunkDVLMW3GBcjs.SmilieReplacer; exports.Sparkline = _chunk6QTON3VWcjs.Sparkline; exports.StyleRegistry = _chunkYN6JKAUEcjs.StyleRegistry; exports.TABLE_ACTIONS = _chunk6QTON3VWcjs.TABLE_ACTIONS; exports.TRACK_CHANGES_SKIP_META = _chunk34RQAGWIcjs.TRACK_CHANGES_SKIP_META; exports.Table = _chunk6QTON3VWcjs.Table; exports.TableCell = _chunk6QTON3VWcjs.TableCell; exports.TableHeader = _chunk6QTON3VWcjs.TableHeader; exports.TableOfContents = _chunkDVLMW3GBcjs.TableOfContents; exports.TableRow = _chunk6QTON3VWcjs.TableRow; exports.TemplateSuggestions = _chunkDVLMW3GBcjs.TemplateSuggestions; exports.TrackChanges = _chunk34RQAGWIcjs.TrackChanges; exports.TrackChangesStore = _chunk34RQAGWIcjs.TrackChangesStore; exports.TrackedDeletion = _chunk34RQAGWIcjs.TrackedDeletion; exports.TrackedFormatChange = _chunk34RQAGWIcjs.TrackedFormatChange; exports.TrackedInsertion = _chunk34RQAGWIcjs.TrackedInsertion; exports.agentCaretPluginKey = _chunk6QTON3VWcjs.agentCaretPluginKey; exports.applyDocumentComparison = _chunkDVLMW3GBcjs.applyDocumentComparison; exports.applyReplacements = _chunk6QTON3VWcjs.applyReplacements; exports.autocorrectPluginKey = _chunkDVLMW3GBcjs.autocorrectPluginKey; exports.buildOutlineTree = _chunkDVLMW3GBcjs.buildOutlineTree; exports.capitalizeSentenceRules = _chunkDVLMW3GBcjs.capitalizeSentenceRules; exports.captureSelectionFormat = _chunkDVLMW3GBcjs.captureSelectionFormat; exports.chartPluginKey = _chunk6QTON3VWcjs.chartPluginKey; exports.clearAgentCaret = _chunk6QTON3VWcjs.clearAgentCaret; exports.commentsPluginKey = _chunkDVLMW3GBcjs.commentsPluginKey; exports.compareInEditor = _chunkDVLMW3GBcjs.compareInEditor; exports.compileFindPattern = _chunk6QTON3VWcjs.compileFindPattern; exports.computeOutline = _chunkDVLMW3GBcjs.computeOutline; exports.createAgentCaretPlugin = _chunk6QTON3VWcjs.createAgentCaretPlugin; exports.createChartNodeView = _chunk6QTON3VWcjs.createChartNodeView; exports.createCommentStore = _chunk34RQAGWIcjs.createCommentStore; exports.createFindReplaceCommands = _chunkDVLMW3GBcjs.createFindReplaceCommands; exports.createMentionExtension = _chunkDVLMW3GBcjs.createMentionExtension; exports.createOutlineStore = _chunkDVLMW3GBcjs.createOutlineStore; exports.createParagraphStylesStore = _chunkDVLMW3GBcjs.createParagraphStylesStore; exports.createReviewId = _chunk34RQAGWIcjs.createReviewId; exports.createRichTextPreset = _chunkDVLMW3GBcjs.createRichTextPreset; exports.createSearchBudget = _chunk6QTON3VWcjs.createSearchBudget; exports.createStyleRegistry = _chunkYN6JKAUEcjs.createStyleRegistry; exports.createTableCommands = _chunkDVLMW3GBcjs.createTableCommands; exports.createTableExtensions = _chunk6QTON3VWcjs.createTableExtensions; exports.createTableNestingPlugin = _chunk6QTON3VWcjs.createTableNestingPlugin; exports.createTableStore = _chunk6QTON3VWcjs.createTableStore; exports.crossReferencePluginKey = _chunkDVLMW3GBcjs.crossReferencePluginKey; exports.defaultAutocorrectRules = _chunkDVLMW3GBcjs.defaultAutocorrectRules; exports.describeBlockChange = _chunk34RQAGWIcjs.describeBlockChange; exports.describeFormatChange = _chunk34RQAGWIcjs.describeFormatChange; exports.documentStructureCommandItems = _chunkDVLMW3GBcjs.documentStructureCommandItems; exports.ensureAgentCaret = _chunk6QTON3VWcjs.ensureAgentCaret; exports.expandReplacement = _chunk6QTON3VWcjs.expandReplacement; exports.fileImportPluginKey = _chunkDVLMW3GBcjs.fileImportPluginKey; exports.findAllMatches = _chunk6QTON3VWcjs.findAllMatches; exports.findAutocorrection = _chunkDVLMW3GBcjs.findAutocorrection; exports.findCommentRanges = _chunkDVLMW3GBcjs.findCommentRanges; exports.findHexColors = _chunkDVLMW3GBcjs.findHexColors; exports.findReplacePluginKey = _chunkDVLMW3GBcjs.findReplacePluginKey; exports.foldCodePoint = _chunk6QTON3VWcjs.foldCodePoint; exports.footnotesMarkdownIt = _chunkDVLMW3GBcjs.footnotesMarkdownIt; exports.footnotesPluginKey = _chunkDVLMW3GBcjs.footnotesPluginKey; exports.formatFindStatus = _chunkDVLMW3GBcjs.formatFindStatus; exports.formatReviewTime = _chunk34RQAGWIcjs.formatReviewTime; exports.fractionRules = _chunkDVLMW3GBcjs.fractionRules; exports.getActiveHeading = _chunkDVLMW3GBcjs.getActiveHeading; exports.getAgentCarets = _chunk6QTON3VWcjs.getAgentCarets; exports.getBookmarks = _chunkDVLMW3GBcjs.getBookmarks; exports.getCommentAnchors = _chunkDVLMW3GBcjs.getCommentAnchors; exports.getCommentAuthor = _chunkDVLMW3GBcjs.getCommentAuthor; exports.getCommentIdsAt = _chunkDVLMW3GBcjs.getCommentIdsAt; exports.getCommentStore = _chunkDVLMW3GBcjs.getCommentStore; exports.getCrossReferenceTargets = _chunkDVLMW3GBcjs.getCrossReferenceTargets; exports.getDocumentCharts = _chunk6QTON3VWcjs.getDocumentCharts; exports.getDocumentStructureCommandItems = _chunkDVLMW3GBcjs.getDocumentStructureCommandItems; exports.getFindReplaceState = _chunkDVLMW3GBcjs.getFindReplaceState; exports.getFindReplaceStore = _chunkDVLMW3GBcjs.getFindReplaceStore; exports.getFootnotes = _chunkDVLMW3GBcjs.getFootnotes; exports.getMentionNodes = _chunkDVLMW3GBcjs.getMentionNodes; exports.getOutline = _chunkDVLMW3GBcjs.getOutline; exports.getParagraphStyleAt = _chunkDVLMW3GBcjs.getParagraphStyleAt; exports.getStyleRegistry = _chunkDVLMW3GBcjs.getStyleRegistry; exports.getTableActionState = _chunk6QTON3VWcjs.getTableActionState; exports.getTableOfContentsEntries = _chunkDVLMW3GBcjs.getTableOfContentsEntries; exports.getTableState = _chunk6QTON3VWcjs.getTableState; exports.getTrackChangesStore = _chunk34RQAGWIcjs.getTrackChangesStore; exports.getTrackedChangeAt = _chunk34RQAGWIcjs.getTrackedChangeAt; exports.getTrackedChanges = _chunk34RQAGWIcjs.getTrackedChanges; exports.handleImageInsertion = _chunkDVLMW3GBcjs.handleImageInsertion; exports.handleTablePasteWithoutNesting = _chunk6QTON3VWcjs.handleTablePasteWithoutNesting; exports.imagePastePluginKey = _chunkDVLMW3GBcjs.imagePastePluginKey; exports.insertImageNode = _chunkDVLMW3GBcjs.insertImageNode; exports.insertSliceAfterTable = _chunk6QTON3VWcjs.insertSliceAfterTable; exports.isChartEnabled = _chunk6QTON3VWcjs.isChartEnabled; exports.isGfmTable = _chunk6QTON3VWcjs.isGfmTable; exports.isInTableCell = _chunk6QTON3VWcjs.isInTableCell; exports.isInsidePromptToken = _chunkDVLMW3GBcjs.isInsidePromptToken; exports.isMoveSized = _chunk34RQAGWIcjs.isMoveSized; exports.isParagraphStyleAvailable = _chunkDVLMW3GBcjs.isParagraphStyleAvailable; exports.isSelectionInTable = _chunk6QTON3VWcjs.isSelectionInTable; exports.isTableEnabled = _chunk6QTON3VWcjs.isTableEnabled; exports.isTrackChangesEnabled = _chunk34RQAGWIcjs.isTrackChangesEnabled; exports.isValidStyleId = _chunkYN6JKAUEcjs.isValidStyleId; exports.markAgentChanges = _chunk6QTON3VWcjs.markAgentChanges; exports.navigateToHeading = _chunkDVLMW3GBcjs.navigateToHeading; exports.normalizeSparklineValues = _chunk6QTON3VWcjs.normalizeSparklineValues; exports.normalizeTableCellAlignment = _chunk6QTON3VWcjs.normalizeTableCellAlignment; exports.normalizeTableCellColor = _chunk6QTON3VWcjs.normalizeTableCellColor; exports.outermostTableDepth = _chunk6QTON3VWcjs.outermostTableDepth; exports.outlinePluginKey = _chunkDVLMW3GBcjs.outlinePluginKey; exports.paragraphStylesPluginKey = _chunkDVLMW3GBcjs.paragraphStylesPluginKey; exports.parseReplacement = _chunk6QTON3VWcjs.parseReplacement; exports.removeImageNode = _chunkDVLMW3GBcjs.removeImageNode; exports.replaceWithTextTransaction = _chunk6QTON3VWcjs.replaceWithTextTransaction; exports.resolveTrackedChanges = _chunk34RQAGWIcjs.resolveTrackedChanges; exports.richClipboardPluginKey = _chunkDVLMW3GBcjs.richClipboardPluginKey; exports.runTableAction = _chunk6QTON3VWcjs.runTableAction; exports.safeCSSValue = _chunkYN6JKAUEcjs.safeCSSValue; exports.safeMergeAttributes = _chunk34RQAGWIcjs.safeMergeAttributes; exports.searchDocument = _chunk6QTON3VWcjs.searchDocument; exports.setAgentCaret = _chunk6QTON3VWcjs.setAgentCaret; exports.setMentionRoleAt = _chunkDVLMW3GBcjs.setMentionRoleAt; exports.shouldShowTableBubbleMenu = _chunk6QTON3VWcjs.shouldShowTableBubbleMenu; exports.sliceContainsTable = _chunk6QTON3VWcjs.sliceContainsTable; exports.smartQuoteRules = _chunkDVLMW3GBcjs.smartQuoteRules; exports.smilieAutocorrectRules = _chunkDVLMW3GBcjs.smilieAutocorrectRules; exports.sparklineLabel = _chunk6QTON3VWcjs.sparklineLabel; exports.staticChartSvg = _chunk6QTON3VWcjs.staticChartSvg; exports.symbolRules = _chunkDVLMW3GBcjs.symbolRules; exports.syncFootnotes = _chunkDVLMW3GBcjs.syncFootnotes; exports.tableNestingPluginKey = _chunk6QTON3VWcjs.tableNestingPluginKey; exports.tableOfContentsMarkdownIt = _chunkDVLMW3GBcjs.tableOfContentsMarkdownIt; exports.tableOfContentsPluginKey = _chunkDVLMW3GBcjs.tableOfContentsPluginKey; exports.trackChangesPluginKey = _chunk34RQAGWIcjs.trackChangesPluginKey; exports.trackedChangeLabel = _chunk34RQAGWIcjs.trackedChangeLabel; exports.twoInitialCapitalsRules = _chunkDVLMW3GBcjs.twoInitialCapitalsRules; exports.typeAgentText = _chunk6QTON3VWcjs.typeAgentText; exports.unnestTables = _chunk6QTON3VWcjs.unnestTables; exports.updateImageSrc = _chunkDVLMW3GBcjs.updateImageSrc; exports.validateFindPattern = _chunkDVLMW3GBcjs.validateFindPattern; exports.writeRichClipboard = _chunkDVLMW3GBcjs.writeRichClipboard;
@@ -95,8 +95,7 @@ import {
95
95
  updateImageSrc,
96
96
  validateFindPattern,
97
97
  writeRichClipboard
98
- } from "../chunk-WBJ6BG4R.js";
99
- import "../chunk-V5OOP74P.js";
98
+ } from "../chunk-2AQL4JHM.js";
100
99
  import {
101
100
  DEFAULT_STYLES,
102
101
  NORMAL_STYLE_ID,
@@ -105,7 +104,8 @@ import {
105
104
  isValidStyleId,
106
105
  safeCSSValue
107
106
  } from "../chunk-CXXKJBQZ.js";
108
- import "../chunk-X65C4DWV.js";
107
+ import "../chunk-EQ4SF4X4.js";
108
+ import "../chunk-V5OOP74P.js";
109
109
  import {
110
110
  ALLOW_NESTED_TABLES_META,
111
111
  AgentCaret,
@@ -171,10 +171,10 @@ import {
171
171
  tableNestingPluginKey,
172
172
  typeAgentText,
173
173
  unnestTables
174
- } from "../chunk-6GAYGQDC.js";
175
- import "../chunk-KI2VBONS.js";
176
- import "../chunk-YM75DN54.js";
177
- import "../chunk-RN767PO6.js";
174
+ } from "../chunk-O5ML2I6O.js";
175
+ import "../chunk-OET45HIR.js";
176
+ import "../chunk-DSZCDNTM.js";
177
+ import "../chunk-SUVZJ2CP.js";
178
178
  import "../chunk-ZLZKGHSZ.js";
179
179
  import "../chunk-2INPJDNY.js";
180
180
  import "../chunk-RTRQ7XFI.js";
@@ -214,6 +214,8 @@ import "../chunk-WJSD3MAZ.js";
214
214
  import "../chunk-CIQIM2IP.js";
215
215
  import "../chunk-VDGBHYC7.js";
216
216
  import "../chunk-RNSANXPT.js";
217
+ import "../chunk-AA34BA7G.js";
218
+ import "../chunk-6ONMQ6WF.js";
217
219
  export {
218
220
  ALLOW_NESTED_TABLES_META,
219
221
  AgentCaret,
@@ -0,0 +1,109 @@
1
+ import { HistoryManager } from '../history/HistoryManager.cjs';
2
+ import type { Gradient, GradientInterpolation, GradientShape, GradientStop, GradientType } from './types.cjs';
3
+ export interface GradientControllerOptions {
4
+ /** Initial gradient value (parsed or object). */
5
+ value?: unknown;
6
+ /** History manager to record undo/redo into (creates own if omitted). */
7
+ history?: HistoryManager;
8
+ /** Whether the gradient is read-only or a function returning reason/boolean. */
9
+ readOnly?: boolean | string | (() => boolean | string);
10
+ /** Callback invoked whenever the gradient or selection changes. */
11
+ onChange?: (gradient: Readonly<Gradient>) => void;
12
+ }
13
+ export interface GradientState {
14
+ gradient: Readonly<Gradient>;
15
+ selectedStopId: string | null;
16
+ canUndo: boolean;
17
+ canRedo: boolean;
18
+ undoLabel: string;
19
+ redoLabel: string;
20
+ revision: number;
21
+ }
22
+ export type GradientActionResult = {
23
+ ok: true;
24
+ } | {
25
+ ok: false;
26
+ message: string;
27
+ };
28
+ /** The geometry fields `setGeometry` changes; omitted fields stay as they are. */
29
+ export interface GradientGeometryPatch {
30
+ type?: GradientType;
31
+ /** Degrees (linear and conic); any finite number, stored modulo 360. */
32
+ angle?: number;
33
+ /** 0–1 of the box (radial and conic). */
34
+ center?: {
35
+ x: number;
36
+ y: number;
37
+ };
38
+ shape?: GradientShape;
39
+ interpolation?: GradientInterpolation;
40
+ repeating?: boolean;
41
+ }
42
+ export declare const GRADIENT_TYPES: readonly GradientType[];
43
+ export declare const GRADIENT_INTERPOLATIONS: readonly GradientInterpolation[];
44
+ export declare class GradientController {
45
+ private _gradient;
46
+ private _selectedStopId;
47
+ private readonly _history;
48
+ private readonly _readOnlyOption?;
49
+ private readonly _onChange?;
50
+ private readonly _listeners;
51
+ private _gestureKey;
52
+ private _gestureCount;
53
+ private _revision;
54
+ private _cachedState;
55
+ constructor(options?: GradientControllerOptions);
56
+ get state(): GradientState;
57
+ get readOnlyReason(): string | null;
58
+ get isReadOnly(): boolean;
59
+ getGradient(): Readonly<Gradient>;
60
+ getSelectedStopId(): string | null;
61
+ getSelectedStop(): GradientStop | null;
62
+ subscribe(fn: (state: GradientState) => void): () => void;
63
+ /** `changed` is false for view-only updates (selection), which don't call `onChange`. */
64
+ private _notify;
65
+ private _checkReadOnly;
66
+ /** Selects a stop (view state; not an undo step and no `onChange`). Unknown ids are ignored. */
67
+ selectStop(stopId: string | null): void;
68
+ beginGesture(label?: string): void;
69
+ endGesture(): void;
70
+ private _apply;
71
+ /** The selected stop after `next` replaces the gradient: same id if it survives, else same index. */
72
+ private _selectionAfterReplace;
73
+ setGradient(value: unknown, label?: string): GradientActionResult;
74
+ /**
75
+ * Replaces the gradient without an undo step (e.g. syncing a controlled `value` from the
76
+ * host). Keeps the selection when the stop survives. Notifies subscribers and `onChange`.
77
+ */
78
+ load(value: unknown, options?: {
79
+ clearHistory?: boolean;
80
+ }): GradientActionResult;
81
+ /**
82
+ * Changes any of type, angle, center, shape, interpolation and repeating as one undo step.
83
+ * Every field is checked before anything changes; an invalid one fails the whole call.
84
+ */
85
+ setGeometry(patch: GradientGeometryPatch, label?: string): GradientActionResult;
86
+ setType(type: GradientType): GradientActionResult;
87
+ setAngle(angle: number): GradientActionResult;
88
+ setCenter(center: {
89
+ x: number;
90
+ y: number;
91
+ }): GradientActionResult;
92
+ setShape(shape: GradientShape): GradientActionResult;
93
+ setInterpolation(interpolation: GradientInterpolation): GradientActionResult;
94
+ setRepeating(repeating: boolean): GradientActionResult;
95
+ addStop(offset: number, color?: string): {
96
+ ok: true;
97
+ stop: GradientStop;
98
+ } | {
99
+ ok: false;
100
+ message: string;
101
+ };
102
+ updateStop(id: string, patch: Partial<Omit<GradientStop, 'id'>>): GradientActionResult;
103
+ removeStop(id: string): GradientActionResult;
104
+ reverse(): GradientActionResult;
105
+ distribute(): GradientActionResult;
106
+ undo(): boolean;
107
+ redo(): boolean;
108
+ dispose(): void;
109
+ }
@@ -0,0 +1,109 @@
1
+ import { HistoryManager } from '../history/HistoryManager.js';
2
+ import type { Gradient, GradientInterpolation, GradientShape, GradientStop, GradientType } from './types.js';
3
+ export interface GradientControllerOptions {
4
+ /** Initial gradient value (parsed or object). */
5
+ value?: unknown;
6
+ /** History manager to record undo/redo into (creates own if omitted). */
7
+ history?: HistoryManager;
8
+ /** Whether the gradient is read-only or a function returning reason/boolean. */
9
+ readOnly?: boolean | string | (() => boolean | string);
10
+ /** Callback invoked whenever the gradient or selection changes. */
11
+ onChange?: (gradient: Readonly<Gradient>) => void;
12
+ }
13
+ export interface GradientState {
14
+ gradient: Readonly<Gradient>;
15
+ selectedStopId: string | null;
16
+ canUndo: boolean;
17
+ canRedo: boolean;
18
+ undoLabel: string;
19
+ redoLabel: string;
20
+ revision: number;
21
+ }
22
+ export type GradientActionResult = {
23
+ ok: true;
24
+ } | {
25
+ ok: false;
26
+ message: string;
27
+ };
28
+ /** The geometry fields `setGeometry` changes; omitted fields stay as they are. */
29
+ export interface GradientGeometryPatch {
30
+ type?: GradientType;
31
+ /** Degrees (linear and conic); any finite number, stored modulo 360. */
32
+ angle?: number;
33
+ /** 0–1 of the box (radial and conic). */
34
+ center?: {
35
+ x: number;
36
+ y: number;
37
+ };
38
+ shape?: GradientShape;
39
+ interpolation?: GradientInterpolation;
40
+ repeating?: boolean;
41
+ }
42
+ export declare const GRADIENT_TYPES: readonly GradientType[];
43
+ export declare const GRADIENT_INTERPOLATIONS: readonly GradientInterpolation[];
44
+ export declare class GradientController {
45
+ private _gradient;
46
+ private _selectedStopId;
47
+ private readonly _history;
48
+ private readonly _readOnlyOption?;
49
+ private readonly _onChange?;
50
+ private readonly _listeners;
51
+ private _gestureKey;
52
+ private _gestureCount;
53
+ private _revision;
54
+ private _cachedState;
55
+ constructor(options?: GradientControllerOptions);
56
+ get state(): GradientState;
57
+ get readOnlyReason(): string | null;
58
+ get isReadOnly(): boolean;
59
+ getGradient(): Readonly<Gradient>;
60
+ getSelectedStopId(): string | null;
61
+ getSelectedStop(): GradientStop | null;
62
+ subscribe(fn: (state: GradientState) => void): () => void;
63
+ /** `changed` is false for view-only updates (selection), which don't call `onChange`. */
64
+ private _notify;
65
+ private _checkReadOnly;
66
+ /** Selects a stop (view state; not an undo step and no `onChange`). Unknown ids are ignored. */
67
+ selectStop(stopId: string | null): void;
68
+ beginGesture(label?: string): void;
69
+ endGesture(): void;
70
+ private _apply;
71
+ /** The selected stop after `next` replaces the gradient: same id if it survives, else same index. */
72
+ private _selectionAfterReplace;
73
+ setGradient(value: unknown, label?: string): GradientActionResult;
74
+ /**
75
+ * Replaces the gradient without an undo step (e.g. syncing a controlled `value` from the
76
+ * host). Keeps the selection when the stop survives. Notifies subscribers and `onChange`.
77
+ */
78
+ load(value: unknown, options?: {
79
+ clearHistory?: boolean;
80
+ }): GradientActionResult;
81
+ /**
82
+ * Changes any of type, angle, center, shape, interpolation and repeating as one undo step.
83
+ * Every field is checked before anything changes; an invalid one fails the whole call.
84
+ */
85
+ setGeometry(patch: GradientGeometryPatch, label?: string): GradientActionResult;
86
+ setType(type: GradientType): GradientActionResult;
87
+ setAngle(angle: number): GradientActionResult;
88
+ setCenter(center: {
89
+ x: number;
90
+ y: number;
91
+ }): GradientActionResult;
92
+ setShape(shape: GradientShape): GradientActionResult;
93
+ setInterpolation(interpolation: GradientInterpolation): GradientActionResult;
94
+ setRepeating(repeating: boolean): GradientActionResult;
95
+ addStop(offset: number, color?: string): {
96
+ ok: true;
97
+ stop: GradientStop;
98
+ } | {
99
+ ok: false;
100
+ message: string;
101
+ };
102
+ updateStop(id: string, patch: Partial<Omit<GradientStop, 'id'>>): GradientActionResult;
103
+ removeStop(id: string): GradientActionResult;
104
+ reverse(): GradientActionResult;
105
+ distribute(): GradientActionResult;
106
+ undo(): boolean;
107
+ redo(): boolean;
108
+ dispose(): void;
109
+ }
@@ -0,0 +1,38 @@
1
+ import type { Gradient, GradientStop } from './types.cjs';
2
+ export interface GradientKeyStepResult {
3
+ stopId?: string;
4
+ offset?: number;
5
+ remove?: boolean;
6
+ }
7
+ /**
8
+ * Returns the stop offset (0..1) corresponding to a track x position (0..1).
9
+ */
10
+ export declare function stopFromTrackPosition(g: Gradient, x: number): number;
11
+ /**
12
+ * Returns the track x position (0..1) corresponding to a stop.
13
+ */
14
+ export declare function trackPositionFromStop(stop: GradientStop): number;
15
+ /**
16
+ * Handles keyboard navigation on a stop handle.
17
+ * ArrowLeft / ArrowRight moves by 0.01 (or 0.1 with shiftKey).
18
+ * Delete / Backspace requests removal (remove: true).
19
+ * Returns null if the key is unhandled.
20
+ */
21
+ export declare function gradientKeyStep(g: Gradient, id: string, key: string, shift?: boolean): GradientKeyStepResult | null;
22
+ /**
23
+ * Calculates angle in degrees (CSS convention: 0 = up, 90 = right, 180 = down, 270 = left)
24
+ * from a center coordinate to a pointer coordinate.
25
+ * Optional snapStep snaps to nearest multiple (e.g. 15 deg).
26
+ */
27
+ export declare function angleFromPointer(center: {
28
+ x: number;
29
+ y: number;
30
+ }, point: {
31
+ x: number;
32
+ y: number;
33
+ }, snapStep?: number): number;
34
+ /**
35
+ * Returns a linear 90deg CSS gradient string suitable for rendering the stop track
36
+ * across the horizontal slider, regardless of the underlying gradient's type.
37
+ */
38
+ export declare function gradientTrackBackground(g: Gradient): string;
@@ -0,0 +1,38 @@
1
+ import type { Gradient, GradientStop } from './types.js';
2
+ export interface GradientKeyStepResult {
3
+ stopId?: string;
4
+ offset?: number;
5
+ remove?: boolean;
6
+ }
7
+ /**
8
+ * Returns the stop offset (0..1) corresponding to a track x position (0..1).
9
+ */
10
+ export declare function stopFromTrackPosition(g: Gradient, x: number): number;
11
+ /**
12
+ * Returns the track x position (0..1) corresponding to a stop.
13
+ */
14
+ export declare function trackPositionFromStop(stop: GradientStop): number;
15
+ /**
16
+ * Handles keyboard navigation on a stop handle.
17
+ * ArrowLeft / ArrowRight moves by 0.01 (or 0.1 with shiftKey).
18
+ * Delete / Backspace requests removal (remove: true).
19
+ * Returns null if the key is unhandled.
20
+ */
21
+ export declare function gradientKeyStep(g: Gradient, id: string, key: string, shift?: boolean): GradientKeyStepResult | null;
22
+ /**
23
+ * Calculates angle in degrees (CSS convention: 0 = up, 90 = right, 180 = down, 270 = left)
24
+ * from a center coordinate to a pointer coordinate.
25
+ * Optional snapStep snaps to nearest multiple (e.g. 15 deg).
26
+ */
27
+ export declare function angleFromPointer(center: {
28
+ x: number;
29
+ y: number;
30
+ }, point: {
31
+ x: number;
32
+ y: number;
33
+ }, snapStep?: number): number;
34
+ /**
35
+ * Returns a linear 90deg CSS gradient string suitable for rendering the stop track
36
+ * across the horizontal slider, regardless of the underlying gradient's type.
37
+ */
38
+ export declare function gradientTrackBackground(g: Gradient): string;