@pixerate/editor 0.269.2 → 0.271.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.
- package/README.md +5 -2
- package/dist/agent/index.cjs +30 -30
- package/dist/agent/index.js +3 -3
- package/dist/animation-editor/index.cjs +62 -62
- package/dist/animation-editor/index.js +4 -4
- package/dist/canvas/editorDocument.d.cts +3 -1
- package/dist/canvas/editorDocument.d.ts +3 -1
- package/dist/canvas/index.cjs +53 -27
- package/dist/canvas/index.js +34 -8
- package/dist/chart/index.cjs +21 -21
- package/dist/chart/index.js +2 -2
- package/dist/{chunk-GBEF2D4P.js → chunk-23YL2EAB.js} +1 -1
- package/dist/{chunk-QGVTOCNB.js → chunk-6ZSFRRJI.js} +1 -1
- package/dist/{chunk-4YSPQGZW.js → chunk-B5W677L7.js} +1 -1
- package/dist/{chunk-4NMPUJUK.cjs → chunk-DDL3ZBHK.cjs} +86 -86
- package/dist/{chunk-T4JPGBW3.cjs → chunk-DGITFN73.cjs} +8 -8
- package/dist/{chunk-PY4GWSE2.cjs → chunk-EBFPMSJO.cjs} +27 -5
- package/dist/{chunk-NS62CQ2B.js → chunk-GAZPHCTV.js} +23 -2
- package/dist/{chunk-YYBW6DF2.cjs → chunk-GSLOH2IN.cjs} +2 -2
- package/dist/{chunk-56RHCIJV.cjs → chunk-JJ2H25JG.cjs} +237 -170
- package/dist/{chunk-CBVNCWJM.cjs → chunk-LBDC5434.cjs} +2 -2
- package/dist/{chunk-BENSE3VX.cjs → chunk-M2ZVPU7L.cjs} +23 -23
- package/dist/{chunk-MQ6MGIQM.js → chunk-NMZQMPFZ.js} +1 -1
- package/dist/{chunk-AI4F33IV.cjs → chunk-NQUKTRKN.cjs} +45 -45
- package/dist/{chunk-4CPOKP27.js → chunk-QYXUE37Q.js} +1 -1
- package/dist/{chunk-MWUZCEFT.js → chunk-S2XPXA47.js} +1 -1
- package/dist/{chunk-EHLOCVWB.js → chunk-T2URHAJX.js} +27 -5
- package/dist/{chunk-FUDP5QBB.js → chunk-TNHDCP4R.js} +70 -3
- package/dist/{chunk-VBRHE4AM.cjs → chunk-U2ASNGO6.cjs} +35 -35
- package/dist/{chunk-WKPXOGZZ.cjs → chunk-WPLGZBNE.cjs} +23 -2
- package/dist/{chunk-N3UMQVKX.js → chunk-X4FTNFIA.js} +1 -1
- package/dist/{chunk-2OQGPEHH.cjs → chunk-XUDMRMXQ.cjs} +2 -2
- package/dist/{chunk-THBJHPUL.js → chunk-YNFSH72F.js} +1 -1
- package/dist/diagram/index.cjs +2 -2
- package/dist/diagram/index.js +1 -1
- package/dist/effects/index.cjs +8 -5
- package/dist/effects/index.js +6 -3
- package/dist/effects/pool.d.cts +9 -0
- package/dist/effects/pool.d.ts +9 -0
- package/dist/effects/types.d.cts +2 -0
- package/dist/effects/types.d.ts +2 -0
- package/dist/extensions/index.cjs +5 -5
- package/dist/extensions/index.js +4 -4
- package/dist/gradient/index.cjs +2 -2
- package/dist/gradient/index.js +1 -1
- package/dist/history/HistoryManager.d.cts +9 -0
- package/dist/history/HistoryManager.d.ts +9 -0
- package/dist/history/index.cjs +2 -2
- package/dist/history/index.js +1 -1
- package/dist/history/types.d.cts +5 -2
- package/dist/history/types.d.ts +5 -2
- package/dist/image-editor/index.cjs +784 -784
- package/dist/image-editor/index.js +4 -4
- package/dist/index.cjs +10 -10
- package/dist/index.js +4 -4
- package/dist/paint-editor/controller.d.cts +75 -4
- package/dist/paint-editor/controller.d.ts +75 -4
- package/dist/paint-editor/effect-paint.d.cts +33 -8
- package/dist/paint-editor/effect-paint.d.ts +33 -8
- package/dist/paint-editor/effects.d.cts +4 -0
- package/dist/paint-editor/effects.d.ts +4 -0
- package/dist/paint-editor/index.cjs +692 -398
- package/dist/paint-editor/index.js +362 -68
- package/dist/paint-editor/stroke.d.cts +13 -5
- package/dist/paint-editor/stroke.d.ts +13 -5
- package/dist/parameters/index.cjs +2 -2
- package/dist/parameters/index.js +1 -1
- package/dist/vector/index.cjs +998 -998
- package/dist/vector/index.js +4 -4
- package/dist/video-editor/index.cjs +321 -321
- package/dist/video-editor/index.js +4 -4
- package/package.json +1 -1
- package/skills/pixerate-paint-editor/SKILL.md +2 -2
- package/skills/pixerate-paint-editor/references/effect-paint.md +28 -6
package/README.md
CHANGED
|
@@ -573,9 +573,12 @@ const mark = history.mark();
|
|
|
573
573
|
history.revertTo(mark); // returns the number of steps reverted (0 if the mark is gone)
|
|
574
574
|
|
|
575
575
|
// History panel
|
|
576
|
-
history.getEntries(); // [{ id, label, index, current, undone }]
|
|
576
|
+
history.getEntries(); // [{ id, label, index, current, undone, origin, tag? }]
|
|
577
577
|
history.goTo(2); // undo / redo until entry 2 is current; goTo(-1) undoes everything
|
|
578
578
|
|
|
579
|
+
// Stale steps: when remote content replaces what some steps change, remove them unrun.
|
|
580
|
+
history.dropSteps((step) => step.tag === "paint"); // returns how many were removed
|
|
581
|
+
|
|
579
582
|
// Dirty vs saved: undoing back to the saved state is clean again.
|
|
580
583
|
const dirty = bindDirtyToHistory({
|
|
581
584
|
history,
|
|
@@ -587,7 +590,7 @@ dirty.markClean(); // after saving
|
|
|
587
590
|
dirty.dirty; // feed to useNavigationGuard / createNavigationGuard
|
|
588
591
|
```
|
|
589
592
|
|
|
590
|
-
Tag-only `executeMerged(cmd)` keeps its 300 ms time-window coalescing. React exposes the same API through `useHistory()` (`entries`, `goTo`, `mark`, `revertTo`, `beginGesture`, `endGesture`) and `useHistoryDirty()`; Svelte through `createHistory()` and `createHistoryDirty()`.
|
|
593
|
+
Tag-only `executeMerged(cmd)` keeps its 300 ms time-window coalescing. React exposes the same API through `useHistory()` (`entries`, `goTo`, `mark`, `revertTo`, `dropSteps`, `beginGesture`, `endGesture`) and `useHistoryDirty()`; Svelte through `createHistory()` and `createHistoryDirty()`.
|
|
591
594
|
|
|
592
595
|
## License
|
|
593
596
|
|
package/dist/agent/index.cjs
CHANGED
|
@@ -140,10 +140,10 @@ var _chunkN2FGYZ4Qcjs = require('../chunk-N2FGYZ4Q.cjs');
|
|
|
140
140
|
|
|
141
141
|
|
|
142
142
|
|
|
143
|
-
var
|
|
143
|
+
var _chunkDGITFN73cjs = require('../chunk-DGITFN73.cjs');
|
|
144
144
|
|
|
145
145
|
|
|
146
|
-
var
|
|
146
|
+
var _chunkGSLOH2INcjs = require('../chunk-GSLOH2IN.cjs');
|
|
147
147
|
require('../chunk-TTCJPX4U.cjs');
|
|
148
148
|
require('../chunk-MDLEGVEN.cjs');
|
|
149
149
|
require('../chunk-VU6WQSMB.cjs');
|
|
@@ -191,7 +191,7 @@ var _chunkWOFXZ3XUcjs = require('../chunk-WOFXZ3XU.cjs');
|
|
|
191
191
|
|
|
192
192
|
|
|
193
193
|
var _chunk2BSBFBOAcjs = require('../chunk-2BSBFBOA.cjs');
|
|
194
|
-
require('../chunk-
|
|
194
|
+
require('../chunk-WPLGZBNE.cjs');
|
|
195
195
|
require('../chunk-I3Y2Q3PM.cjs');
|
|
196
196
|
require('../chunk-MEGSQUQO.cjs');
|
|
197
197
|
require('../chunk-MLLTWAXH.cjs');
|
|
@@ -691,14 +691,14 @@ function describe(chart, includeSpec) {
|
|
|
691
691
|
series: spec.series.map((s) => ({ id: s.id, name: s.name })),
|
|
692
692
|
width: _nullishCoalesce(node.attrs.width, () => ( null)),
|
|
693
693
|
height: node.attrs.height,
|
|
694
|
-
description:
|
|
694
|
+
description: _chunkGSLOH2INcjs.describeChart.call(void 0, spec),
|
|
695
695
|
...includeSpec ? { spec } : {}
|
|
696
696
|
};
|
|
697
697
|
}
|
|
698
698
|
function sparklines(doc) {
|
|
699
699
|
const found = [];
|
|
700
700
|
doc.descendants((node, pos) => {
|
|
701
|
-
if (node.type.name === "sparkline") found.push({ pos, kind: node.attrs.kind, values: node.attrs.values, label:
|
|
701
|
+
if (node.type.name === "sparkline") found.push({ pos, kind: node.attrs.kind, values: node.attrs.values, label: _chunkDGITFN73cjs.sparklineLabel.call(void 0, node) });
|
|
702
702
|
});
|
|
703
703
|
return found;
|
|
704
704
|
}
|
|
@@ -709,7 +709,7 @@ function checkPosition(editor, at) {
|
|
|
709
709
|
function createDocumentChartTools(editor) {
|
|
710
710
|
const chartType = () => editor().schema.nodes.chart;
|
|
711
711
|
const findChart = (args) => {
|
|
712
|
-
const charts =
|
|
712
|
+
const charts = _chunkDGITFN73cjs.getDocumentCharts.call(void 0, editor().state.doc);
|
|
713
713
|
const list = charts.map((c) => `"${c.id}" at ${c.pos}`).join(", ") || "none; add one with insert_chart";
|
|
714
714
|
if (args.chartId !== void 0) {
|
|
715
715
|
const chart = charts.find((c) => c.id === args.chartId);
|
|
@@ -736,7 +736,7 @@ function createDocumentChartTools(editor) {
|
|
|
736
736
|
annotations: { title: "List charts in the document", ...READ },
|
|
737
737
|
handler: ({ includeSpec = false }) => {
|
|
738
738
|
const doc = editor().state.doc;
|
|
739
|
-
return { charts:
|
|
739
|
+
return { charts: _chunkDGITFN73cjs.getDocumentCharts.call(void 0, doc).map((c) => describe(c, includeSpec)), sparklines: editor().schema.nodes.sparkline ? sparklines(doc) : [] };
|
|
740
740
|
}
|
|
741
741
|
};
|
|
742
742
|
const insertChart = {
|
|
@@ -763,7 +763,7 @@ function createDocumentChartTools(editor) {
|
|
|
763
763
|
const node = { type: "chart", attrs: { id, spec, width, ...height !== void 0 ? { height } : {} } };
|
|
764
764
|
const chain = ed.chain().command(({ tr }) => (_history.closeHistory.call(void 0, tr), true));
|
|
765
765
|
const ok = (at !== void 0 ? chain.insertContentAt(at, node) : chain.insertContent(node)).run();
|
|
766
|
-
const chart =
|
|
766
|
+
const chart = _chunkDGITFN73cjs.getDocumentCharts.call(void 0, ed.state.doc).find((c) => c.id === id);
|
|
767
767
|
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.`);
|
|
768
768
|
return { id: chart.id, pos: chart.pos, spec: chart.spec, width: chart.node.attrs.width, height: chart.node.attrs.height };
|
|
769
769
|
}
|
|
@@ -810,8 +810,8 @@ function createDocumentChartTools(editor) {
|
|
|
810
810
|
inputSchema: {
|
|
811
811
|
type: "object",
|
|
812
812
|
properties: {
|
|
813
|
-
values: { type: "array", items: _chunkG23BTQA5cjs.VALUE, minItems: 1, maxItems:
|
|
814
|
-
kind: { type: "string", enum: [...
|
|
813
|
+
values: { type: "array", items: _chunkG23BTQA5cjs.VALUE, minItems: 1, maxItems: _chunkDGITFN73cjs.MAX_SPARKLINE_VALUES, description: "Values in order (null for a gap)." },
|
|
814
|
+
kind: { type: "string", enum: [..._chunkDGITFN73cjs.SPARKLINE_KINDS], description: "line (default), column, or win-loss (sign only)." },
|
|
815
815
|
at: { type: "integer", minimum: 0, description: "Document position inside a paragraph (default: the selection)." },
|
|
816
816
|
width: { type: "number", minimum: 4, maximum: 1e3, description: "Width in pixels (default 80)." },
|
|
817
817
|
height: { type: "number", minimum: 4, maximum: 200, description: "Height in pixels (default 18)." },
|
|
@@ -830,7 +830,7 @@ function createDocumentChartTools(editor) {
|
|
|
830
830
|
if (bad >= 0) throw new Error(`values[${bad}] ("${String(values[bad])}") is not a number; pass numbers, numeric text or null. Nothing was inserted.`);
|
|
831
831
|
const pos = _nullishCoalesce(at, () => ( ed.state.selection.from));
|
|
832
832
|
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}).`);
|
|
833
|
-
const stored =
|
|
833
|
+
const stored = _chunkDGITFN73cjs.normalizeSparklineValues.call(void 0, parsed);
|
|
834
834
|
ed.chain().command(({ tr }) => (_history.closeHistory.call(void 0, tr), true)).insertContentAt(pos, { type: "sparkline", attrs: { values: stored, kind, width, height, color, label } }).run();
|
|
835
835
|
return { pos, kind, values: stored };
|
|
836
836
|
}
|
|
@@ -1168,8 +1168,8 @@ function createTextPresence(editor, providerId, option) {
|
|
|
1168
1168
|
const config = option === false ? null : option === true || option === void 0 ? {} : option;
|
|
1169
1169
|
const caret = {
|
|
1170
1170
|
id: _nullishCoalesce(_optionalChain([config, 'optionalAccess', _43 => _43.id]), () => ( providerId)),
|
|
1171
|
-
name: _nullishCoalesce(_optionalChain([config, 'optionalAccess', _44 => _44.name]), () => (
|
|
1172
|
-
color: _nullishCoalesce(_optionalChain([config, 'optionalAccess', _45 => _45.color]), () => (
|
|
1171
|
+
name: _nullishCoalesce(_optionalChain([config, 'optionalAccess', _44 => _44.name]), () => ( _chunkDGITFN73cjs.DEFAULT_AGENT_CARET_NAME)),
|
|
1172
|
+
color: _nullishCoalesce(_optionalChain([config, 'optionalAccess', _45 => _45.color]), () => ( _chunkDGITFN73cjs.DEFAULT_AGENT_CARET_COLOR))
|
|
1173
1173
|
};
|
|
1174
1174
|
const typing = !_optionalChain([config, 'optionalAccess', _46 => _46.typing]) ? null : config.typing === true ? {} : config.typing;
|
|
1175
1175
|
const idleMs = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _47 => _47.idleMs]), () => ( 12e3));
|
|
@@ -1182,19 +1182,19 @@ function createTextPresence(editor, providerId, option) {
|
|
|
1182
1182
|
};
|
|
1183
1183
|
const touch = () => {
|
|
1184
1184
|
clearTimeout(idleTimer);
|
|
1185
|
-
if (idleMs > 0) idleTimer = setTimeout(() => live() &&
|
|
1185
|
+
if (idleMs > 0) idleTimer = setTimeout(() => live() && _chunkDGITFN73cjs.clearAgentCaret.call(void 0, live(), caret.id), idleMs);
|
|
1186
1186
|
};
|
|
1187
1187
|
const tint = (ed, ranges) => {
|
|
1188
1188
|
clearTimeout(tintTimer);
|
|
1189
|
-
|
|
1190
|
-
if (changedMs > 0 && ranges.length) tintTimer = setTimeout(() => live() &&
|
|
1189
|
+
_chunkDGITFN73cjs.markAgentChanges.call(void 0, ed, caret.id, ranges);
|
|
1190
|
+
if (changedMs > 0 && ranges.length) tintTimer = setTimeout(() => live() && _chunkDGITFN73cjs.markAgentChanges.call(void 0, live(), caret.id, []), changedMs);
|
|
1191
1191
|
};
|
|
1192
1192
|
return {
|
|
1193
1193
|
/** Puts the caret at `head`, selecting from `anchor`. */
|
|
1194
1194
|
show(anchor, head = anchor) {
|
|
1195
1195
|
const ed = live();
|
|
1196
1196
|
if (!ed) return;
|
|
1197
|
-
|
|
1197
|
+
_chunkDGITFN73cjs.setAgentCaret.call(void 0, ed, { ...caret, from: anchor, to: head });
|
|
1198
1198
|
touch();
|
|
1199
1199
|
},
|
|
1200
1200
|
/** Shows the caret after ranges just changed by a tool, tinting them. */
|
|
@@ -1202,7 +1202,7 @@ function createTextPresence(editor, providerId, option) {
|
|
|
1202
1202
|
const ed = live();
|
|
1203
1203
|
if (!ed || !ranges.length) return;
|
|
1204
1204
|
const last = ranges[ranges.length - 1];
|
|
1205
|
-
|
|
1205
|
+
_chunkDGITFN73cjs.setAgentCaret.call(void 0, ed, { ...caret, from: last.to });
|
|
1206
1206
|
tint(ed, ranges);
|
|
1207
1207
|
touch();
|
|
1208
1208
|
},
|
|
@@ -1210,12 +1210,12 @@ function createTextPresence(editor, providerId, option) {
|
|
|
1210
1210
|
async write(ed, from, to, text, signal) {
|
|
1211
1211
|
if (live() && typing) {
|
|
1212
1212
|
clearTimeout(tintTimer);
|
|
1213
|
-
const range2 = await
|
|
1214
|
-
if (changedMs > 0) tintTimer = setTimeout(() => live() &&
|
|
1213
|
+
const range2 = await _chunkDGITFN73cjs.typeAgentText.call(void 0, ed, { ...typing, from, to, text, caret, signal });
|
|
1214
|
+
if (changedMs > 0) tintTimer = setTimeout(() => live() && _chunkDGITFN73cjs.markAgentChanges.call(void 0, live(), caret.id, []), changedMs);
|
|
1215
1215
|
touch();
|
|
1216
1216
|
return range2;
|
|
1217
1217
|
}
|
|
1218
|
-
const tr = _history.closeHistory.call(void 0,
|
|
1218
|
+
const tr = _history.closeHistory.call(void 0, _chunkDGITFN73cjs.replaceWithTextTransaction.call(void 0, ed.state, from, to, text));
|
|
1219
1219
|
const end = tr.mapping.map(to, 1);
|
|
1220
1220
|
const range = { from: Math.min(tr.mapping.map(from, -1), end), to: end };
|
|
1221
1221
|
ed.view.dispatch(tr.scrollIntoView());
|
|
@@ -1244,7 +1244,7 @@ function findMatches(editor, query, args, replacement) {
|
|
|
1244
1244
|
wholeWord: !!args.wholeWord,
|
|
1245
1245
|
...args.regex ? { regex: true } : { literal: true }
|
|
1246
1246
|
};
|
|
1247
|
-
const result =
|
|
1247
|
+
const result = _chunkDGITFN73cjs.searchDocument.call(void 0, editor.state.doc, query, options, replacement !== void 0 ? { replacement } : {});
|
|
1248
1248
|
if (result.error) throw new Error(`Invalid search pattern: ${result.error.message}`);
|
|
1249
1249
|
return { matches: result.matches, truncated: result.truncated };
|
|
1250
1250
|
}
|
|
@@ -1406,7 +1406,7 @@ function createRichTextToolProvider(target, options) {
|
|
|
1406
1406
|
replacement: String(replace).replace(/\r\n?|\n/g, "\r")
|
|
1407
1407
|
}));
|
|
1408
1408
|
const tr = _history.closeHistory.call(void 0, ed.state.tr);
|
|
1409
|
-
const ends =
|
|
1409
|
+
const ends = _chunkDGITFN73cjs.applyReplacements.call(void 0, tr, chosen);
|
|
1410
1410
|
ed.view.dispatch(tr.scrollIntoView());
|
|
1411
1411
|
const ranges = chosen.map((m, i) => ({ from: tr.mapping.map(m.from, -1), to: ends[i] }));
|
|
1412
1412
|
presence.changed(ranges.filter((r) => r.from < r.to));
|
|
@@ -1507,7 +1507,7 @@ function createRichTextToolProvider(target, options) {
|
|
|
1507
1507
|
inputSchema: {
|
|
1508
1508
|
type: "object",
|
|
1509
1509
|
properties: {
|
|
1510
|
-
operation: { type: "string", enum:
|
|
1510
|
+
operation: { type: "string", enum: _chunkDGITFN73cjs.TABLE_ACTIONS.map((a) => a.action), description: "Table operation." },
|
|
1511
1511
|
at: { type: "integer", minimum: 0, description: "Document position to place the cursor first (e.g. inside a cell)." },
|
|
1512
1512
|
rows: { type: "integer", minimum: 1, maximum: 100, description: "insertTable: rows (default 3)." },
|
|
1513
1513
|
cols: { type: "integer", minimum: 1, maximum: 50, description: "insertTable: columns (default 3)." },
|
|
@@ -1537,10 +1537,10 @@ function createRichTextToolProvider(target, options) {
|
|
|
1537
1537
|
ed.view.dispatch(ed.state.tr.setSelection(_state.TextSelection.near(ed.state.doc.resolve(at))));
|
|
1538
1538
|
}
|
|
1539
1539
|
const action = operation;
|
|
1540
|
-
const state =
|
|
1540
|
+
const state = _chunkDGITFN73cjs.getTableActionState.call(void 0, ed, action, params);
|
|
1541
1541
|
if (state !== true) throw new Error(state);
|
|
1542
|
-
|
|
1543
|
-
const table =
|
|
1542
|
+
_chunkDGITFN73cjs.runTableAction.call(void 0, ed, action, params);
|
|
1543
|
+
const table = _chunkDGITFN73cjs.getTableState.call(void 0, ed);
|
|
1544
1544
|
return {
|
|
1545
1545
|
operation,
|
|
1546
1546
|
table: table.inTable ? { rows: table.rows, columns: table.columns, row: table.row, column: table.column } : null,
|
|
@@ -1559,7 +1559,7 @@ function createRichTextToolProvider(target, options) {
|
|
|
1559
1559
|
if (!ed || ed.isDestroyed) return [];
|
|
1560
1560
|
if (!ed.isEditable) return [getText, findText, ...charts.read()];
|
|
1561
1561
|
const tools = [getText, findText, insertText, replaceText, replaceRange, replaceSelection, setSelection, ...formatting.tools(ed)];
|
|
1562
|
-
return [...tools, ...
|
|
1562
|
+
return [...tools, ..._chunkDGITFN73cjs.isTableEnabled.call(void 0, ed) ? [editTable] : [], ...charts.read(), ...charts.write().map(withCaret)];
|
|
1563
1563
|
},
|
|
1564
1564
|
subscribe: (notify) => {
|
|
1565
1565
|
const ed = editor();
|
|
@@ -2235,7 +2235,7 @@ function createReviewToolProvider(target, options) {
|
|
|
2235
2235
|
const editor = () => toEditor2(target);
|
|
2236
2236
|
const author = _nullishCoalesce(options.author, () => ( { id: "agent", name: "Agent" }));
|
|
2237
2237
|
const store = () => {
|
|
2238
|
-
const s =
|
|
2238
|
+
const s = _chunkDGITFN73cjs.getCommentStore.call(void 0, editor());
|
|
2239
2239
|
if (!s) throw new Error("This editor has no Comments extension.");
|
|
2240
2240
|
return s;
|
|
2241
2241
|
};
|
|
@@ -2430,7 +2430,7 @@ function createReviewToolProvider(target, options) {
|
|
|
2430
2430
|
tools: () => {
|
|
2431
2431
|
const ed = editor();
|
|
2432
2432
|
if (!ed || ed.isDestroyed) return [];
|
|
2433
|
-
const comments = !!
|
|
2433
|
+
const comments = !!_chunkDGITFN73cjs.getCommentStore.call(void 0, ed);
|
|
2434
2434
|
const changes = !!_chunk34RQAGWIcjs.getTrackChangesStore.call(void 0, ed);
|
|
2435
2435
|
const tools = [...comments ? [listComments] : [], ...changes ? [listChanges] : []];
|
|
2436
2436
|
if (!ed.isEditable) return tools;
|
package/dist/agent/index.js
CHANGED
|
@@ -140,10 +140,10 @@ import {
|
|
|
140
140
|
setAgentCaret,
|
|
141
141
|
sparklineLabel,
|
|
142
142
|
typeAgentText
|
|
143
|
-
} from "../chunk-
|
|
143
|
+
} from "../chunk-X4FTNFIA.js";
|
|
144
144
|
import {
|
|
145
145
|
describeChart
|
|
146
|
-
} from "../chunk-
|
|
146
|
+
} from "../chunk-NMZQMPFZ.js";
|
|
147
147
|
import "../chunk-KGRZMHZB.js";
|
|
148
148
|
import "../chunk-C2WEIEUB.js";
|
|
149
149
|
import "../chunk-O6OGNDND.js";
|
|
@@ -191,7 +191,7 @@ import {
|
|
|
191
191
|
isUnsafeJsonKey,
|
|
192
192
|
stripPrototypeKeys
|
|
193
193
|
} from "../chunk-HF5QZS7Z.js";
|
|
194
|
-
import "../chunk-
|
|
194
|
+
import "../chunk-GAZPHCTV.js";
|
|
195
195
|
import "../chunk-2EUW2XZX.js";
|
|
196
196
|
import "../chunk-E2V5DA3W.js";
|
|
197
197
|
import "../chunk-VR6OGHU5.js";
|