@pixerate/editor 0.155.0 → 0.157.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 (73) hide show
  1. package/dist/agent/index.cjs +34 -34
  2. package/dist/agent/index.js +5 -5
  3. package/dist/animation-editor/index.cjs +58 -58
  4. package/dist/animation-editor/index.js +4 -4
  5. package/dist/{brushstrokeRender-YAZVQUXY.cjs → brushstrokeRender-5WANQIG4.cjs} +10 -10
  6. package/dist/{brushstrokeRender-EUDQTDYS.js → brushstrokeRender-Q4LI22QV.js} +3 -3
  7. package/dist/canvas/index.cjs +14 -14
  8. package/dist/canvas/index.js +3 -3
  9. package/dist/chart/index.cjs +90 -88
  10. package/dist/chart/index.js +9 -7
  11. package/dist/chart/spec.d.cts +2 -1
  12. package/dist/chart/spec.d.ts +2 -1
  13. package/dist/chart/types.d.cts +5 -0
  14. package/dist/chart/types.d.ts +5 -0
  15. package/dist/{chunk-AGZ47XY2.js → chunk-2N2QPO3H.js} +6 -2
  16. package/dist/{chunk-NMXPOKF3.js → chunk-45XXVHVG.js} +1 -1
  17. package/dist/{chunk-2WDZI6QD.cjs → chunk-4T44CJ5K.cjs} +15 -15
  18. package/dist/{chunk-XTU6QO2W.cjs → chunk-4YWAEV4W.cjs} +36 -27
  19. package/dist/{chunk-4YQKRHMI.cjs → chunk-57JLBGJ5.cjs} +8 -8
  20. package/dist/{chunk-SVINJIGK.js → chunk-5QBRAIVK.js} +3 -3
  21. package/dist/{chunk-R3PECGTQ.cjs → chunk-6LUYFHHN.cjs} +51 -51
  22. package/dist/{chunk-FLOGD3QB.js → chunk-6UPGM3JB.js} +2 -2
  23. package/dist/{chunk-6FUAHCVI.cjs → chunk-7NW46N7I.cjs} +16 -16
  24. package/dist/{chunk-ORDXMBD4.js → chunk-A5UCR2TO.js} +10 -3
  25. package/dist/{chunk-ML2II3Y3.cjs → chunk-AKDWAWSY.cjs} +58 -46
  26. package/dist/{chunk-PI45JMP7.cjs → chunk-CD7PLU77.cjs} +81 -81
  27. package/dist/{chunk-EQ4SF4X4.js → chunk-DBIVICAO.js} +1 -1
  28. package/dist/{chunk-LRRCMRSL.cjs → chunk-EBDCRTZI.cjs} +20 -16
  29. package/dist/{chunk-OLCYQLFE.js → chunk-EL5PAHNP.js} +1 -1
  30. package/dist/{chunk-PUC43JPT.cjs → chunk-EYVVIZJ3.cjs} +1 -1
  31. package/dist/{chunk-SUVZJ2CP.js → chunk-H5XX4KHB.js} +11 -1
  32. package/dist/{chunk-BXMIBMVG.cjs → chunk-JGKCC5OF.cjs} +65 -58
  33. package/dist/{chunk-LIXLD433.cjs → chunk-MHEXLG3M.cjs} +35 -35
  34. package/dist/{chunk-37RLSNQ3.js → chunk-Q6PA362P.js} +2 -2
  35. package/dist/{chunk-RHXW4TA5.cjs → chunk-QMI5HZWA.cjs} +7 -7
  36. package/dist/{chunk-DSZCDNTM.js → chunk-R3QY7PPL.js} +11 -2
  37. package/dist/{chunk-4RF2H3N3.js → chunk-SSCL7QQ4.js} +15 -3
  38. package/dist/{chunk-TLMRGLQQ.cjs → chunk-TVO6W2Q6.cjs} +20 -17
  39. package/dist/{chunk-EIUTJPEL.js → chunk-UM3RPYC5.js} +5 -2
  40. package/dist/{chunk-UILRJQFD.js → chunk-WNAAWLZ5.js} +1 -1
  41. package/dist/{chunk-I4AHLP7F.cjs → chunk-WPPJH6X4.cjs} +12 -2
  42. package/dist/{chunk-RZJCYJWO.cjs → chunk-XNQ5EFB4.cjs} +16 -16
  43. package/dist/{chunk-R6HNWN7B.js → chunk-YABNLNY7.js} +3 -3
  44. package/dist/{chunk-Y64YPIFT.js → chunk-ZQWLWDZI.js} +1 -1
  45. package/dist/export/index.cjs +4 -4
  46. package/dist/export/index.js +3 -3
  47. package/dist/extensions/index.cjs +7 -7
  48. package/dist/extensions/index.js +6 -6
  49. package/dist/image-editor/index.cjs +686 -686
  50. package/dist/image-editor/index.js +5 -5
  51. package/dist/index.cjs +13 -13
  52. package/dist/index.js +7 -7
  53. package/dist/paint/grain.d.cts +7 -0
  54. package/dist/paint/grain.d.ts +7 -0
  55. package/dist/paint/index.cjs +3 -3
  56. package/dist/paint/index.js +2 -2
  57. package/dist/paint-editor/controller.d.cts +30 -0
  58. package/dist/paint-editor/controller.d.ts +30 -0
  59. package/dist/paint-editor/document.d.cts +8 -0
  60. package/dist/paint-editor/document.d.ts +8 -0
  61. package/dist/paint-editor/index.cjs +403 -256
  62. package/dist/paint-editor/index.js +158 -11
  63. package/dist/paint-editor/paper.d.cts +8 -0
  64. package/dist/paint-editor/paper.d.ts +8 -0
  65. package/dist/paint-editor/stencils.d.cts +2 -0
  66. package/dist/paint-editor/stencils.d.ts +2 -0
  67. package/dist/paint-editor/wet.d.cts +1 -0
  68. package/dist/paint-editor/wet.d.ts +1 -0
  69. package/dist/vector/index.cjs +950 -950
  70. package/dist/vector/index.js +4 -4
  71. package/package.json +1 -1
  72. package/skills/pixerate-chart/SKILL.md +4 -1
  73. package/skills/pixerate-paint-editor/SKILL.md +9 -1
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkTLMRGLQQcjs = require('../chunk-TLMRGLQQ.cjs');
5
+ var _chunkTVO6W2Q6cjs = require('../chunk-TVO6W2Q6.cjs');
6
6
 
7
7
 
8
8
  var _chunkGLQQ2VILcjs = require('../chunk-GLQQ2VIL.cjs');
@@ -115,15 +115,15 @@ var _chunkN2FGYZ4Qcjs = require('../chunk-N2FGYZ4Q.cjs');
115
115
 
116
116
 
117
117
 
118
- var _chunkRZJCYJWOcjs = require('../chunk-RZJCYJWO.cjs');
118
+ var _chunkXNQ5EFB4cjs = require('../chunk-XNQ5EFB4.cjs');
119
119
 
120
120
 
121
- var _chunkML2II3Y3cjs = require('../chunk-ML2II3Y3.cjs');
122
- require('../chunk-XTU6QO2W.cjs');
121
+ var _chunkAKDWAWSYcjs = require('../chunk-AKDWAWSY.cjs');
122
+ require('../chunk-4YWAEV4W.cjs');
123
123
 
124
124
 
125
125
 
126
- var _chunkI4AHLP7Fcjs = require('../chunk-I4AHLP7F.cjs');
126
+ var _chunkWPPJH6X4cjs = require('../chunk-WPPJH6X4.cjs');
127
127
 
128
128
 
129
129
 
@@ -623,14 +623,14 @@ var SIZE_WIDTH = {
623
623
  };
624
624
  var SIZE_HEIGHT = { type: "number", minimum: 50, maximum: 4096, description: "Height in pixels (default 320)." };
625
625
  var SPEC_PROPERTIES = {
626
- ..._chunkTLMRGLQQcjs.CHART_UPDATE_PROPERTIES,
626
+ ..._chunkTVO6W2Q6cjs.CHART_UPDATE_PROPERTIES,
627
627
  categories: { type: "array", items: { type: "string" }, description: "Category labels in order (x axis labels, or pie slices)." },
628
628
  series: {
629
629
  type: "array",
630
630
  description: "The series, each with one value per category (padded with gaps).",
631
631
  items: {
632
632
  type: "object",
633
- properties: { id: { type: "string", description: "Stable id (default: from the name)." }, ..._chunkTLMRGLQQcjs.SERIES_PROPS },
633
+ properties: { id: { type: "string", description: "Stable id (default: from the name)." }, ..._chunkTVO6W2Q6cjs.SERIES_PROPS },
634
634
  required: ["name", "values"],
635
635
  additionalProperties: false
636
636
  }
@@ -641,7 +641,7 @@ function cleanSeries(series) {
641
641
  return series.map((s) => s && typeof s === "object" ? Object.fromEntries(Object.entries(s).filter(([, v]) => v !== null)) : s);
642
642
  }
643
643
  function checkedSpec(input) {
644
- const { spec, issues } = _chunkI4AHLP7Fcjs.normalizeChartSpec.call(void 0, { ...input, ...input.series !== void 0 ? { series: cleanSeries(input.series) } : {} });
644
+ const { spec, issues } = _chunkWPPJH6X4cjs.normalizeChartSpec.call(void 0, { ...input, ...input.series !== void 0 ? { series: cleanSeries(input.series) } : {} });
645
645
  if (issues.length) throw new Error(`The chart was not changed: ${issues.map((i) => i.message).join(" ")}`);
646
646
  return spec;
647
647
  }
@@ -656,14 +656,14 @@ function describe(chart, includeSpec) {
656
656
  series: spec.series.map((s) => ({ id: s.id, name: s.name })),
657
657
  width: _nullishCoalesce(node.attrs.width, () => ( null)),
658
658
  height: node.attrs.height,
659
- description: _chunkML2II3Y3cjs.describeChart.call(void 0, spec),
659
+ description: _chunkAKDWAWSYcjs.describeChart.call(void 0, spec),
660
660
  ...includeSpec ? { spec } : {}
661
661
  };
662
662
  }
663
663
  function sparklines(doc) {
664
664
  const found = [];
665
665
  doc.descendants((node, pos) => {
666
- if (node.type.name === "sparkline") found.push({ pos, kind: node.attrs.kind, values: node.attrs.values, label: _chunkRZJCYJWOcjs.sparklineLabel.call(void 0, node) });
666
+ if (node.type.name === "sparkline") found.push({ pos, kind: node.attrs.kind, values: node.attrs.values, label: _chunkXNQ5EFB4cjs.sparklineLabel.call(void 0, node) });
667
667
  });
668
668
  return found;
669
669
  }
@@ -674,7 +674,7 @@ function checkPosition(editor, at) {
674
674
  function createDocumentChartTools(editor) {
675
675
  const chartType = () => editor().schema.nodes.chart;
676
676
  const findChart = (args) => {
677
- const charts = _chunkRZJCYJWOcjs.getDocumentCharts.call(void 0, editor().state.doc);
677
+ const charts = _chunkXNQ5EFB4cjs.getDocumentCharts.call(void 0, editor().state.doc);
678
678
  const list = charts.map((c) => `"${c.id}" at ${c.pos}`).join(", ") || "none; add one with insert_chart";
679
679
  if (args.chartId !== void 0) {
680
680
  const chart = charts.find((c) => c.id === args.chartId);
@@ -701,7 +701,7 @@ function createDocumentChartTools(editor) {
701
701
  annotations: { title: "List charts in the document", ...READ },
702
702
  handler: ({ includeSpec = false }) => {
703
703
  const doc = editor().state.doc;
704
- return { charts: _chunkRZJCYJWOcjs.getDocumentCharts.call(void 0, doc).map((c) => describe(c, includeSpec)), sparklines: editor().schema.nodes.sparkline ? sparklines(doc) : [] };
704
+ return { charts: _chunkXNQ5EFB4cjs.getDocumentCharts.call(void 0, doc).map((c) => describe(c, includeSpec)), sparklines: editor().schema.nodes.sparkline ? sparklines(doc) : [] };
705
705
  }
706
706
  };
707
707
  const insertChart = {
@@ -728,7 +728,7 @@ function createDocumentChartTools(editor) {
728
728
  const node = { type: "chart", attrs: { id, spec, width, ...height !== void 0 ? { height } : {} } };
729
729
  const chain = ed.chain().command(({ tr }) => (_history.closeHistory.call(void 0, tr), true));
730
730
  const ok = (at !== void 0 ? chain.insertContentAt(at, node) : chain.insertContent(node)).run();
731
- const chart = _chunkRZJCYJWOcjs.getDocumentCharts.call(void 0, ed.state.doc).find((c) => c.id === id);
731
+ const chart = _chunkXNQ5EFB4cjs.getDocumentCharts.call(void 0, ed.state.doc).find((c) => c.id === id);
732
732
  if (!ok || !chart) throw new Error(`A chart cannot go at ${_nullishCoalesce(at, () => ( ed.state.selection.from))}; pass a position between blocks or inside a paragraph.`);
733
733
  return { id: chart.id, pos: chart.pos, spec: chart.spec, width: chart.node.attrs.width, height: chart.node.attrs.height };
734
734
  }
@@ -775,8 +775,8 @@ function createDocumentChartTools(editor) {
775
775
  inputSchema: {
776
776
  type: "object",
777
777
  properties: {
778
- values: { type: "array", items: _chunkTLMRGLQQcjs.VALUE, minItems: 1, maxItems: _chunkRZJCYJWOcjs.MAX_SPARKLINE_VALUES, description: "Values in order (null for a gap)." },
779
- kind: { type: "string", enum: [..._chunkRZJCYJWOcjs.SPARKLINE_KINDS], description: "line (default), column, or win-loss (sign only)." },
778
+ values: { type: "array", items: _chunkTVO6W2Q6cjs.VALUE, minItems: 1, maxItems: _chunkXNQ5EFB4cjs.MAX_SPARKLINE_VALUES, description: "Values in order (null for a gap)." },
779
+ kind: { type: "string", enum: [..._chunkXNQ5EFB4cjs.SPARKLINE_KINDS], description: "line (default), column, or win-loss (sign only)." },
780
780
  at: { type: "integer", minimum: 0, description: "Document position inside a paragraph (default: the selection)." },
781
781
  width: { type: "number", minimum: 4, maximum: 1e3, description: "Width in pixels (default 80)." },
782
782
  height: { type: "number", minimum: 4, maximum: 200, description: "Height in pixels (default 18)." },
@@ -790,12 +790,12 @@ function createDocumentChartTools(editor) {
790
790
  handler: ({ values, kind = "line", at, width = 80, height = 18, color = null, label = null }) => {
791
791
  const ed = editor();
792
792
  checkPosition(ed, at);
793
- const parsed = values.map((v) => _chunkI4AHLP7Fcjs.parseChartValue.call(void 0, v));
793
+ const parsed = values.map((v) => _chunkWPPJH6X4cjs.parseChartValue.call(void 0, v));
794
794
  const bad = parsed.findIndex((v) => v === void 0);
795
795
  if (bad >= 0) throw new Error(`values[${bad}] ("${String(values[bad])}") is not a number; pass numbers, numeric text or null. Nothing was inserted.`);
796
796
  const pos = _nullishCoalesce(at, () => ( ed.state.selection.from));
797
797
  if (!ed.state.doc.resolve(pos).parent.inlineContent) throw new Error(`Position ${pos} is between blocks; a sparkline goes inside a paragraph (use a position from get_text {blocks: true}).`);
798
- const stored = _chunkRZJCYJWOcjs.normalizeSparklineValues.call(void 0, parsed);
798
+ const stored = _chunkXNQ5EFB4cjs.normalizeSparklineValues.call(void 0, parsed);
799
799
  ed.chain().command(({ tr }) => (_history.closeHistory.call(void 0, tr), true)).insertContentAt(pos, { type: "sparkline", attrs: { values: stored, kind, width, height, color, label } }).run();
800
800
  return { pos, kind, values: stored };
801
801
  }
@@ -1133,8 +1133,8 @@ function createTextPresence(editor, providerId, option) {
1133
1133
  const config = option === false ? null : option === true || option === void 0 ? {} : option;
1134
1134
  const caret = {
1135
1135
  id: _nullishCoalesce(_optionalChain([config, 'optionalAccess', _43 => _43.id]), () => ( providerId)),
1136
- name: _nullishCoalesce(_optionalChain([config, 'optionalAccess', _44 => _44.name]), () => ( _chunkRZJCYJWOcjs.DEFAULT_AGENT_CARET_NAME)),
1137
- color: _nullishCoalesce(_optionalChain([config, 'optionalAccess', _45 => _45.color]), () => ( _chunkRZJCYJWOcjs.DEFAULT_AGENT_CARET_COLOR))
1136
+ name: _nullishCoalesce(_optionalChain([config, 'optionalAccess', _44 => _44.name]), () => ( _chunkXNQ5EFB4cjs.DEFAULT_AGENT_CARET_NAME)),
1137
+ color: _nullishCoalesce(_optionalChain([config, 'optionalAccess', _45 => _45.color]), () => ( _chunkXNQ5EFB4cjs.DEFAULT_AGENT_CARET_COLOR))
1138
1138
  };
1139
1139
  const typing = !_optionalChain([config, 'optionalAccess', _46 => _46.typing]) ? null : config.typing === true ? {} : config.typing;
1140
1140
  const idleMs = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _47 => _47.idleMs]), () => ( 12e3));
@@ -1147,19 +1147,19 @@ function createTextPresence(editor, providerId, option) {
1147
1147
  };
1148
1148
  const touch = () => {
1149
1149
  clearTimeout(idleTimer);
1150
- if (idleMs > 0) idleTimer = setTimeout(() => live() && _chunkRZJCYJWOcjs.clearAgentCaret.call(void 0, live(), caret.id), idleMs);
1150
+ if (idleMs > 0) idleTimer = setTimeout(() => live() && _chunkXNQ5EFB4cjs.clearAgentCaret.call(void 0, live(), caret.id), idleMs);
1151
1151
  };
1152
1152
  const tint = (ed, ranges) => {
1153
1153
  clearTimeout(tintTimer);
1154
- _chunkRZJCYJWOcjs.markAgentChanges.call(void 0, ed, caret.id, ranges);
1155
- if (changedMs > 0 && ranges.length) tintTimer = setTimeout(() => live() && _chunkRZJCYJWOcjs.markAgentChanges.call(void 0, live(), caret.id, []), changedMs);
1154
+ _chunkXNQ5EFB4cjs.markAgentChanges.call(void 0, ed, caret.id, ranges);
1155
+ if (changedMs > 0 && ranges.length) tintTimer = setTimeout(() => live() && _chunkXNQ5EFB4cjs.markAgentChanges.call(void 0, live(), caret.id, []), changedMs);
1156
1156
  };
1157
1157
  return {
1158
1158
  /** Puts the caret at `head`, selecting from `anchor`. */
1159
1159
  show(anchor, head = anchor) {
1160
1160
  const ed = live();
1161
1161
  if (!ed) return;
1162
- _chunkRZJCYJWOcjs.setAgentCaret.call(void 0, ed, { ...caret, from: anchor, to: head });
1162
+ _chunkXNQ5EFB4cjs.setAgentCaret.call(void 0, ed, { ...caret, from: anchor, to: head });
1163
1163
  touch();
1164
1164
  },
1165
1165
  /** Shows the caret after ranges just changed by a tool, tinting them. */
@@ -1167,7 +1167,7 @@ function createTextPresence(editor, providerId, option) {
1167
1167
  const ed = live();
1168
1168
  if (!ed || !ranges.length) return;
1169
1169
  const last = ranges[ranges.length - 1];
1170
- _chunkRZJCYJWOcjs.setAgentCaret.call(void 0, ed, { ...caret, from: last.to });
1170
+ _chunkXNQ5EFB4cjs.setAgentCaret.call(void 0, ed, { ...caret, from: last.to });
1171
1171
  tint(ed, ranges);
1172
1172
  touch();
1173
1173
  },
@@ -1175,12 +1175,12 @@ function createTextPresence(editor, providerId, option) {
1175
1175
  async write(ed, from, to, text, signal) {
1176
1176
  if (live() && typing) {
1177
1177
  clearTimeout(tintTimer);
1178
- const range2 = await _chunkRZJCYJWOcjs.typeAgentText.call(void 0, ed, { ...typing, from, to, text, caret, signal });
1179
- if (changedMs > 0) tintTimer = setTimeout(() => live() && _chunkRZJCYJWOcjs.markAgentChanges.call(void 0, live(), caret.id, []), changedMs);
1178
+ const range2 = await _chunkXNQ5EFB4cjs.typeAgentText.call(void 0, ed, { ...typing, from, to, text, caret, signal });
1179
+ if (changedMs > 0) tintTimer = setTimeout(() => live() && _chunkXNQ5EFB4cjs.markAgentChanges.call(void 0, live(), caret.id, []), changedMs);
1180
1180
  touch();
1181
1181
  return range2;
1182
1182
  }
1183
- const tr = _history.closeHistory.call(void 0, _chunkRZJCYJWOcjs.replaceWithTextTransaction.call(void 0, ed.state, from, to, text));
1183
+ const tr = _history.closeHistory.call(void 0, _chunkXNQ5EFB4cjs.replaceWithTextTransaction.call(void 0, ed.state, from, to, text));
1184
1184
  const end = tr.mapping.map(to, 1);
1185
1185
  const range = { from: Math.min(tr.mapping.map(from, -1), end), to: end };
1186
1186
  ed.view.dispatch(tr.scrollIntoView());
@@ -1209,7 +1209,7 @@ function findMatches(editor, query, args, replacement) {
1209
1209
  wholeWord: !!args.wholeWord,
1210
1210
  ...args.regex ? { regex: true } : { literal: true }
1211
1211
  };
1212
- const result = _chunkRZJCYJWOcjs.searchDocument.call(void 0, editor.state.doc, query, options, replacement !== void 0 ? { replacement } : {});
1212
+ const result = _chunkXNQ5EFB4cjs.searchDocument.call(void 0, editor.state.doc, query, options, replacement !== void 0 ? { replacement } : {});
1213
1213
  if (result.error) throw new Error(`Invalid search pattern: ${result.error.message}`);
1214
1214
  return { matches: result.matches, truncated: result.truncated };
1215
1215
  }
@@ -1371,7 +1371,7 @@ function createRichTextToolProvider(target, options) {
1371
1371
  replacement: String(replace).replace(/\r\n?|\n/g, "\r")
1372
1372
  }));
1373
1373
  const tr = _history.closeHistory.call(void 0, ed.state.tr);
1374
- const ends = _chunkRZJCYJWOcjs.applyReplacements.call(void 0, tr, chosen);
1374
+ const ends = _chunkXNQ5EFB4cjs.applyReplacements.call(void 0, tr, chosen);
1375
1375
  ed.view.dispatch(tr.scrollIntoView());
1376
1376
  const ranges = chosen.map((m, i) => ({ from: tr.mapping.map(m.from, -1), to: ends[i] }));
1377
1377
  presence.changed(ranges.filter((r) => r.from < r.to));
@@ -1472,7 +1472,7 @@ function createRichTextToolProvider(target, options) {
1472
1472
  inputSchema: {
1473
1473
  type: "object",
1474
1474
  properties: {
1475
- operation: { type: "string", enum: _chunkRZJCYJWOcjs.TABLE_ACTIONS.map((a) => a.action), description: "Table operation." },
1475
+ operation: { type: "string", enum: _chunkXNQ5EFB4cjs.TABLE_ACTIONS.map((a) => a.action), description: "Table operation." },
1476
1476
  at: { type: "integer", minimum: 0, description: "Document position to place the cursor first (e.g. inside a cell)." },
1477
1477
  rows: { type: "integer", minimum: 1, maximum: 100, description: "insertTable: rows (default 3)." },
1478
1478
  cols: { type: "integer", minimum: 1, maximum: 50, description: "insertTable: columns (default 3)." },
@@ -1502,10 +1502,10 @@ function createRichTextToolProvider(target, options) {
1502
1502
  ed.view.dispatch(ed.state.tr.setSelection(_state.TextSelection.near(ed.state.doc.resolve(at))));
1503
1503
  }
1504
1504
  const action = operation;
1505
- const state = _chunkRZJCYJWOcjs.getTableActionState.call(void 0, ed, action, params);
1505
+ const state = _chunkXNQ5EFB4cjs.getTableActionState.call(void 0, ed, action, params);
1506
1506
  if (state !== true) throw new Error(state);
1507
- _chunkRZJCYJWOcjs.runTableAction.call(void 0, ed, action, params);
1508
- const table = _chunkRZJCYJWOcjs.getTableState.call(void 0, ed);
1507
+ _chunkXNQ5EFB4cjs.runTableAction.call(void 0, ed, action, params);
1508
+ const table = _chunkXNQ5EFB4cjs.getTableState.call(void 0, ed);
1509
1509
  return {
1510
1510
  operation,
1511
1511
  table: table.inTable ? { rows: table.rows, columns: table.columns, row: table.row, column: table.column } : null,
@@ -1524,7 +1524,7 @@ function createRichTextToolProvider(target, options) {
1524
1524
  if (!ed || ed.isDestroyed) return [];
1525
1525
  if (!ed.isEditable) return [getText, findText, ...charts.read()];
1526
1526
  const tools = [getText, findText, insertText, replaceText, replaceRange, replaceSelection, setSelection, ...formatting.tools(ed)];
1527
- return [...tools, ..._chunkRZJCYJWOcjs.isTableEnabled.call(void 0, ed) ? [editTable] : [], ...charts.read(), ...charts.write().map(withCaret)];
1527
+ return [...tools, ..._chunkXNQ5EFB4cjs.isTableEnabled.call(void 0, ed) ? [editTable] : [], ...charts.read(), ...charts.write().map(withCaret)];
1528
1528
  },
1529
1529
  subscribe: (notify) => {
1530
1530
  const ed = editor();
@@ -2,7 +2,7 @@ import {
2
2
  CHART_UPDATE_PROPERTIES,
3
3
  SERIES_PROPS,
4
4
  VALUE
5
- } from "../chunk-EIUTJPEL.js";
5
+ } from "../chunk-UM3RPYC5.js";
6
6
  import {
7
7
  hasVariantCommands
8
8
  } from "../chunk-3TNA7JKI.js";
@@ -115,15 +115,15 @@ import {
115
115
  setAgentCaret,
116
116
  sparklineLabel,
117
117
  typeAgentText
118
- } from "../chunk-SVINJIGK.js";
118
+ } from "../chunk-5QBRAIVK.js";
119
119
  import {
120
120
  describeChart
121
- } from "../chunk-4RF2H3N3.js";
122
- import "../chunk-DSZCDNTM.js";
121
+ } from "../chunk-SSCL7QQ4.js";
122
+ import "../chunk-R3QY7PPL.js";
123
123
  import {
124
124
  normalizeChartSpec,
125
125
  parseChartValue
126
- } from "../chunk-SUVZJ2CP.js";
126
+ } from "../chunk-H5XX4KHB.js";
127
127
  import {
128
128
  getEditorMarkdown,
129
129
  getEditorText