@pixerate/editor 0.243.0 → 0.245.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/dist/agent/index.cjs +34 -32
- package/dist/agent/index.js +6 -4
- package/dist/animation-editor/index.cjs +61 -61
- package/dist/animation-editor/index.js +4 -4
- package/dist/{brushstrokeRender-274HGNZR.js → brushstrokeRender-4542T5HP.js} +2 -2
- package/dist/{brushstrokeRender-C7RJZPMC.cjs → brushstrokeRender-QA5WVIDT.cjs} +5 -5
- package/dist/canvas/changeFeed.d.cts +71 -0
- package/dist/canvas/changeFeed.d.ts +71 -0
- package/dist/canvas/index.cjs +490 -34
- package/dist/canvas/index.d.cts +3 -0
- package/dist/canvas/index.d.ts +3 -0
- package/dist/canvas/index.js +483 -27
- package/dist/canvas/proposal-tools.d.cts +21 -0
- package/dist/canvas/proposal-tools.d.ts +21 -0
- package/dist/canvas/proposals.d.cts +112 -0
- package/dist/canvas/proposals.d.ts +112 -0
- package/dist/chart/index.cjs +21 -21
- package/dist/chart/index.js +2 -2
- package/dist/{chunk-6L3WWIDW.js → chunk-4EQY4TZJ.js} +1 -1
- package/dist/{chunk-5FZS7J7C.cjs → chunk-4T47Z4J3.cjs} +18 -2
- package/dist/{chunk-4I76OCVD.cjs → chunk-5DLCOQOQ.cjs} +16 -1
- package/dist/{chunk-4ZHXLFXS.js → chunk-5RFENYO5.js} +1 -1
- package/dist/{chunk-SRXWDOUI.js → chunk-7YQNKSQ7.js} +1 -1
- package/dist/{chunk-WGN7AUKB.js → chunk-7YW7T5TJ.js} +1 -1
- package/dist/{chunk-X3ZINLIP.js → chunk-AU6MWQKZ.js} +1 -1
- package/dist/{chunk-OONFIFEU.cjs → chunk-BDIH4DYR.cjs} +23 -23
- package/dist/{chunk-AIS56JOO.js → chunk-BVRRIW7F.js} +1 -1
- package/dist/{chunk-KK2FWMA2.cjs → chunk-HZ547SGQ.cjs} +1 -1
- package/dist/{chunk-3WOZEBXZ.cjs → chunk-IZL5V5RK.cjs} +2 -2
- package/dist/{chunk-IXI5KATU.js → chunk-L5PB7EG3.js} +1 -1
- package/dist/{chunk-R2FVAKFH.cjs → chunk-M6JORA5Z.cjs} +86 -86
- package/dist/{chunk-RNSANXPT.js → chunk-NS62CQ2B.js} +112 -14
- package/dist/{chunk-UZU6DIZA.cjs → chunk-NUTMINJZ.cjs} +45 -45
- package/dist/{chunk-H4Z72Z4Z.js → chunk-OSTKS3YN.js} +1 -1
- package/dist/{chunk-HLBTRSQJ.js → chunk-P3NIPIKS.js} +263 -63
- package/dist/{chunk-7V7QMFTI.cjs → chunk-QOBCBGGI.cjs} +2 -2
- package/dist/{chunk-UV7OOZJQ.cjs → chunk-SD23XMVJ.cjs} +35 -35
- package/dist/{chunk-FQVVO5YA.js → chunk-SGPIVHJB.js} +1 -1
- package/dist/{chunk-HQZHOPNE.js → chunk-TBJEMELS.js} +18 -2
- package/dist/{chunk-QTMQ5TGA.js → chunk-UCYW4M66.js} +16 -1
- package/dist/{chunk-XFYLA3ZO.cjs → chunk-VMROIWLL.cjs} +290 -90
- package/dist/{chunk-W7GRGGBH.cjs → chunk-W7L4HUT2.cjs} +8 -8
- package/dist/{chunk-FJ2MSI43.cjs → chunk-WKPXOGZZ.cjs} +124 -26
- package/dist/{chunk-D2SGV525.cjs → chunk-XZNU4DUX.cjs} +2 -2
- package/dist/diagram/index.cjs +2 -2
- package/dist/diagram/index.js +1 -1
- package/dist/effects/index.cjs +4 -4
- package/dist/effects/index.js +2 -2
- 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 +20 -1
- package/dist/history/HistoryManager.d.ts +20 -1
- package/dist/history/index.cjs +8 -2
- package/dist/history/index.js +8 -2
- package/dist/history/types.d.cts +31 -0
- package/dist/history/types.d.ts +31 -0
- package/dist/image-editor/index.cjs +785 -777
- package/dist/image-editor/index.js +13 -5
- package/dist/index.cjs +16 -10
- package/dist/index.js +11 -5
- package/dist/kernel-wasm-4KVONDAU.js +9 -0
- package/dist/kernel-wasm-TTYRBGAK.cjs +9 -0
- package/dist/paint/index.cjs +10 -2
- package/dist/paint/index.js +9 -1
- package/dist/paint/wet/film.d.cts +19 -1
- package/dist/paint/wet/film.d.ts +19 -1
- package/dist/paint/wet/gpu-kernels.d.cts +2 -2
- package/dist/paint/wet/gpu-kernels.d.ts +2 -2
- package/dist/paint/wet/kernel-wasm.d.cts +5 -5
- package/dist/paint/wet/kernel-wasm.d.ts +5 -5
- package/dist/paint/wet/kernel.d.cts +1 -1
- package/dist/paint/wet/kernel.d.ts +1 -1
- package/dist/paint/wet/medium.d.cts +3 -1
- package/dist/paint/wet/medium.d.ts +3 -1
- package/dist/paint/wet/model.d.cts +19 -4
- package/dist/paint/wet/model.d.ts +19 -4
- package/dist/paint/wet/world.d.cts +34 -8
- package/dist/paint/wet/world.d.ts +34 -8
- package/dist/paint-editor/backlight.d.cts +77 -0
- package/dist/paint-editor/backlight.d.ts +77 -0
- package/dist/paint-editor/controller.d.cts +11 -0
- package/dist/paint-editor/controller.d.ts +11 -0
- package/dist/paint-editor/index.cjs +685 -397
- package/dist/paint-editor/index.d.cts +1 -0
- package/dist/paint-editor/index.d.ts +1 -0
- package/dist/paint-editor/index.js +308 -20
- package/dist/paint-editor/paper.d.cts +7 -0
- package/dist/paint-editor/paper.d.ts +7 -0
- package/dist/paint-editor/wet.d.cts +9 -0
- package/dist/paint-editor/wet.d.ts +9 -0
- package/dist/parameters/index.cjs +2 -2
- package/dist/parameters/index.js +1 -1
- package/dist/tools/index.cjs +4 -2
- package/dist/tools/index.d.cts +1 -0
- package/dist/tools/index.d.ts +1 -0
- package/dist/tools/index.js +3 -1
- package/dist/tools/origin.d.cts +22 -0
- package/dist/tools/origin.d.ts +22 -0
- package/dist/vector/index.cjs +964 -964
- package/dist/vector/index.js +5 -5
- package/dist/video-editor/index.cjs +4 -4
- package/dist/video-editor/index.js +2 -2
- package/package.json +1 -1
- package/skills/pixerate-canvas/SKILL.md +25 -0
- package/skills/pixerate-paint-editor/SKILL.md +3 -3
- package/skills/pixerate-paint-editor/references/light-paint.md +30 -7
- package/skills/pixerate-paint-watercolour/SKILL.md +10 -1
- package/skills/pixerate-paint-watercolour/evals/glowing-wash.json +22 -0
- package/skills/pixerate-paint-watercolour/evals/stained-glass.json +16 -0
- package/dist/kernel-wasm-6FPOLVUZ.cjs +0 -9
- package/dist/kernel-wasm-WIMMJUF2.js +0 -9
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkXZNU4DUXcjs = require('./chunk-XZNU4DUX.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
var _chunkMOW3JMNGcjs = require('./chunk-MOW3JMNG.cjs');
|
|
@@ -1457,7 +1457,7 @@ var ChartNodeView = (_class = class {
|
|
|
1457
1457
|
this.dom.contentEditable = "false";
|
|
1458
1458
|
this.syncAttributes();
|
|
1459
1459
|
this.key = specKey(this.node.attrs.spec);
|
|
1460
|
-
this.controller = new (0,
|
|
1460
|
+
this.controller = new (0, _chunkXZNU4DUXcjs.ChartController)({ spec: this.node.attrs.spec });
|
|
1461
1461
|
this.unsubscribe = this.controller.subscribe((state) => {
|
|
1462
1462
|
if (!state.gesture) this.writeBack();
|
|
1463
1463
|
});
|
|
@@ -1717,9 +1717,9 @@ function staticChartSvg(node, options) {
|
|
|
1717
1717
|
const width = _nullishCoalesce(node.attrs.width, () => ( options.defaultWidth));
|
|
1718
1718
|
const height = _nullishCoalesce(node.attrs.height, () => ( options.defaultHeight));
|
|
1719
1719
|
const scene = _chunkMOW3JMNGcjs.layoutChart.call(void 0, spec, { width, height, theme: options.theme, selection: null });
|
|
1720
|
-
return
|
|
1720
|
+
return _chunkXZNU4DUXcjs.chartSceneToDomSpec.call(void 0, scene, {
|
|
1721
1721
|
ariaLabel: spec.title || "Chart",
|
|
1722
|
-
description:
|
|
1722
|
+
description: _chunkXZNU4DUXcjs.describeChart.call(void 0, spec),
|
|
1723
1723
|
attrs: { style: "max-width: 100%; height: auto; display: block" }
|
|
1724
1724
|
});
|
|
1725
1725
|
}
|
|
@@ -1787,7 +1787,7 @@ var Chart = _core.Node.create({
|
|
|
1787
1787
|
const code = element.querySelector("code");
|
|
1788
1788
|
const language = _nullishCoalesce(_nullishCoalesce(_optionalChain([code, 'optionalAccess', _47 => _47.getAttribute, 'call', _48 => _48("class")]), () => ( element.getAttribute("data-language"))), () => ( ""));
|
|
1789
1789
|
if (!/(?:^|\s)language-mermaid(?:\s|$)/.test(language) && language !== "mermaid") return false;
|
|
1790
|
-
const result =
|
|
1790
|
+
const result = _chunkXZNU4DUXcjs.chartFromMermaid.call(void 0, _nullishCoalesce((_nullishCoalesce(code, () => ( element))).textContent, () => ( "")));
|
|
1791
1791
|
return result.family ? { spec: result.spec } : false;
|
|
1792
1792
|
}
|
|
1793
1793
|
}
|
|
@@ -1811,7 +1811,7 @@ var Chart = _core.Node.create({
|
|
|
1811
1811
|
return {
|
|
1812
1812
|
markdown: {
|
|
1813
1813
|
serialize(state, node) {
|
|
1814
|
-
const text =
|
|
1814
|
+
const text = _chunkXZNU4DUXcjs.chartToMermaid.call(void 0, node.attrs.spec);
|
|
1815
1815
|
const fence = "`".repeat(Math.max(3, longestBacktickRun(text) + 1));
|
|
1816
1816
|
state.write(`${fence}mermaid
|
|
1817
1817
|
`);
|
|
@@ -1951,14 +1951,14 @@ var Sparkline = _core.Node.create({
|
|
|
1951
1951
|
return [{ tag: 'span[data-type="sparkline"]', priority: 60 }];
|
|
1952
1952
|
},
|
|
1953
1953
|
renderHTML({ node, HTMLAttributes }) {
|
|
1954
|
-
const scene =
|
|
1954
|
+
const scene = _chunkXZNU4DUXcjs.layoutSparkline.call(void 0, node.attrs.values, {
|
|
1955
1955
|
kind: node.attrs.kind,
|
|
1956
1956
|
width: node.attrs.width,
|
|
1957
1957
|
height: node.attrs.height,
|
|
1958
1958
|
color: _nullishCoalesce(node.attrs.color, () => ( this.options.color)),
|
|
1959
1959
|
negativeColor: this.options.negativeColor
|
|
1960
1960
|
});
|
|
1961
|
-
const svg =
|
|
1961
|
+
const svg = _chunkXZNU4DUXcjs.chartSceneToDomSpec.call(void 0, scene, {
|
|
1962
1962
|
ariaLabel: sparklineLabel(node),
|
|
1963
1963
|
attrs: { style: "display: inline-block; vertical-align: middle" }
|
|
1964
1964
|
});
|
|
@@ -1,4 +1,13 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class;// src/history/
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class;// src/history/types.ts
|
|
2
|
+
var USER_ORIGIN = "user";
|
|
3
|
+
function agentOrigin(agentId) {
|
|
4
|
+
return `agent:${agentId}`;
|
|
5
|
+
}
|
|
6
|
+
function originAgentId(origin) {
|
|
7
|
+
return _optionalChain([origin, 'optionalAccess', _ => _.startsWith, 'call', _2 => _2("agent:")]) ? origin.slice("agent:".length) || null : null;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
// src/history/HistoryManager.ts
|
|
2
11
|
var sumBytes = (parts) => parts.reduce((n, p) => n + p.bytes, 0);
|
|
3
12
|
function undoParts(parts) {
|
|
4
13
|
for (let i = parts.length - 1; i >= 0; i--) parts[i].undo();
|
|
@@ -16,21 +25,24 @@ var HistoryManager = (_class = class {
|
|
|
16
25
|
__init4() {this.batchDepth = 0}
|
|
17
26
|
__init5() {this.currentBatch = null}
|
|
18
27
|
__init6() {this.listeners = /* @__PURE__ */ new Set()}
|
|
28
|
+
__init7() {this.commitListeners = /* @__PURE__ */ new Set()}
|
|
29
|
+
/** Origins set by `withOrigin`, innermost last. */
|
|
30
|
+
__init8() {this.origins = []}
|
|
19
31
|
|
|
20
32
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
33
|
+
__init9() {this.cachedEntries = null}
|
|
34
|
+
__init10() {this.nextId = 1}
|
|
35
|
+
__init11() {this.revision = 0}
|
|
24
36
|
/** Bumped by `clear()`; marks from an earlier epoch are stale. */
|
|
25
|
-
|
|
37
|
+
__init12() {this.epoch = 0}
|
|
26
38
|
/** Number of steps dropped from the bottom (depth / byte budget) so far. */
|
|
27
|
-
|
|
39
|
+
__init13() {this.dropped = 0}
|
|
28
40
|
/** Key of the gesture that the top step belongs to (see `executeMerged`). */
|
|
29
|
-
|
|
30
|
-
|
|
41
|
+
__init14() {this.gestureKey = null}
|
|
42
|
+
__init15() {this.gestureEntryId = null}
|
|
31
43
|
/** Key every merged execute takes while a gesture is held (`beginGesture`). */
|
|
32
|
-
|
|
33
|
-
constructor(options = {}) {;_class.prototype.__init.call(this);_class.prototype.__init2.call(this);_class.prototype.__init3.call(this);_class.prototype.__init4.call(this);_class.prototype.__init5.call(this);_class.prototype.__init6.call(this);_class.prototype.__init7.call(this);_class.prototype.__init8.call(this);_class.prototype.__init9.call(this);_class.prototype.__init10.call(this);_class.prototype.__init11.call(this);_class.prototype.__init12.call(this);_class.prototype.__init13.call(this);_class.prototype.__init14.call(this);
|
|
44
|
+
__init16() {this.heldKey = null}
|
|
45
|
+
constructor(options = {}) {;_class.prototype.__init.call(this);_class.prototype.__init2.call(this);_class.prototype.__init3.call(this);_class.prototype.__init4.call(this);_class.prototype.__init5.call(this);_class.prototype.__init6.call(this);_class.prototype.__init7.call(this);_class.prototype.__init8.call(this);_class.prototype.__init9.call(this);_class.prototype.__init10.call(this);_class.prototype.__init11.call(this);_class.prototype.__init12.call(this);_class.prototype.__init13.call(this);_class.prototype.__init14.call(this);_class.prototype.__init15.call(this);_class.prototype.__init16.call(this);
|
|
34
46
|
this.maxDepth = _nullishCoalesce(options.maxDepth, () => ( 50));
|
|
35
47
|
this.maxBytes = Math.max(0, _nullishCoalesce(options.maxBytes, () => ( 0)));
|
|
36
48
|
this.sizeOf = options.sizeOf;
|
|
@@ -68,7 +80,7 @@ var HistoryManager = (_class = class {
|
|
|
68
80
|
this.cachedState = this.computeState();
|
|
69
81
|
this.cachedEntries = null;
|
|
70
82
|
const state = this.cachedState;
|
|
71
|
-
_optionalChain([this, 'access',
|
|
83
|
+
_optionalChain([this, 'access', _3 => _3.onStateChange, 'optionalCall', _4 => _4(state)]);
|
|
72
84
|
this.listeners.forEach((listener) => {
|
|
73
85
|
try {
|
|
74
86
|
listener(state);
|
|
@@ -94,7 +106,8 @@ var HistoryManager = (_class = class {
|
|
|
94
106
|
tag: command.tag,
|
|
95
107
|
timestamp,
|
|
96
108
|
parts: [part],
|
|
97
|
-
bytes: part.bytes
|
|
109
|
+
bytes: part.bytes,
|
|
110
|
+
origin: _nullishCoalesce(command.origin, () => ( this.getOrigin()))
|
|
98
111
|
};
|
|
99
112
|
}
|
|
100
113
|
/** Pushes a step, clears redo and applies the depth and byte limits. */
|
|
@@ -143,14 +156,17 @@ var HistoryManager = (_class = class {
|
|
|
143
156
|
command.execute();
|
|
144
157
|
this.currentBatch.push({
|
|
145
158
|
...command,
|
|
146
|
-
timestamp: _nullishCoalesce(command.timestamp, () => ( Date.now()))
|
|
159
|
+
timestamp: _nullishCoalesce(command.timestamp, () => ( Date.now())),
|
|
160
|
+
origin: _nullishCoalesce(command.origin, () => ( this.getOrigin()))
|
|
147
161
|
});
|
|
148
162
|
return;
|
|
149
163
|
}
|
|
150
164
|
command.execute();
|
|
151
|
-
this.
|
|
165
|
+
const entry = this.makeEntry(command, _nullishCoalesce(command.timestamp, () => ( Date.now())));
|
|
166
|
+
this.record(entry);
|
|
152
167
|
this.resetGesture();
|
|
153
168
|
this.notify();
|
|
169
|
+
this.emit("execute", entry.id, entry.origin);
|
|
154
170
|
}
|
|
155
171
|
/**
|
|
156
172
|
* Executes a command as part of a continuous interaction (slider scrub, node drag).
|
|
@@ -165,13 +181,15 @@ var HistoryManager = (_class = class {
|
|
|
165
181
|
executeMerged(command, options = {}) {
|
|
166
182
|
const now = Date.now();
|
|
167
183
|
const key = _nullishCoalesce(this.heldKey, () => ( options.key));
|
|
184
|
+
const origin = _nullishCoalesce(command.origin, () => ( this.getOrigin()));
|
|
185
|
+
command = { ...command, origin };
|
|
168
186
|
if (key !== void 0) {
|
|
169
187
|
if (this.isApplying || this.batchDepth > 0) {
|
|
170
188
|
this.execute({ ...command, timestamp: now });
|
|
171
189
|
return;
|
|
172
190
|
}
|
|
173
191
|
const top = this.undoStack[this.undoStack.length - 1];
|
|
174
|
-
if (top && this.gestureKey === key && this.gestureEntryId === top.id) {
|
|
192
|
+
if (top && this.gestureKey === key && this.gestureEntryId === top.id && top.origin === origin) {
|
|
175
193
|
command.execute();
|
|
176
194
|
const redo = _nullishCoalesce(command.redo, () => ( command.execute));
|
|
177
195
|
const bytes = this.measure(command);
|
|
@@ -186,6 +204,7 @@ var HistoryManager = (_class = class {
|
|
|
186
204
|
this.redoStack = [];
|
|
187
205
|
this.trim();
|
|
188
206
|
this.notify();
|
|
207
|
+
this.emit("merge", top.id, origin);
|
|
189
208
|
return;
|
|
190
209
|
}
|
|
191
210
|
this.execute({ ...command, timestamp: now });
|
|
@@ -200,7 +219,7 @@ var HistoryManager = (_class = class {
|
|
|
200
219
|
if (command.tag && this.undoStack.length > 0 && this.batchDepth === 0 && !this.isApplying) {
|
|
201
220
|
const top = this.undoStack[this.undoStack.length - 1];
|
|
202
221
|
const elapsed = top.timestamp ? now - top.timestamp : Infinity;
|
|
203
|
-
if (top.tag === command.tag && elapsed <= windowMs) {
|
|
222
|
+
if (top.tag === command.tag && elapsed <= windowMs && top.origin === origin) {
|
|
204
223
|
command.execute();
|
|
205
224
|
const initialParts = top.parts;
|
|
206
225
|
const bytes = this.measure(command);
|
|
@@ -217,12 +236,14 @@ var HistoryManager = (_class = class {
|
|
|
217
236
|
bytes
|
|
218
237
|
}
|
|
219
238
|
],
|
|
220
|
-
bytes
|
|
239
|
+
bytes,
|
|
240
|
+
origin
|
|
221
241
|
};
|
|
222
242
|
this.redoStack = [];
|
|
223
243
|
this.resetGesture();
|
|
224
244
|
this.trim();
|
|
225
245
|
this.notify();
|
|
246
|
+
this.emit("merge", top.id, origin);
|
|
226
247
|
return;
|
|
227
248
|
}
|
|
228
249
|
}
|
|
@@ -281,8 +302,11 @@ var HistoryManager = (_class = class {
|
|
|
281
302
|
}
|
|
282
303
|
};
|
|
283
304
|
const bytes = batchCommands.reduce((n, c) => n + this.measure(c), 0);
|
|
305
|
+
const id = this.nextId++;
|
|
306
|
+
const origin = _nullishCoalesce(batchCommands[0].origin, () => ( this.getOrigin()));
|
|
284
307
|
this.record({
|
|
285
|
-
id
|
|
308
|
+
id,
|
|
309
|
+
origin,
|
|
286
310
|
name,
|
|
287
311
|
timestamp: Date.now(),
|
|
288
312
|
parts: [
|
|
@@ -300,6 +324,7 @@ var HistoryManager = (_class = class {
|
|
|
300
324
|
});
|
|
301
325
|
this.resetGesture();
|
|
302
326
|
this.notify();
|
|
327
|
+
this.emit("execute", id, origin);
|
|
303
328
|
}
|
|
304
329
|
}
|
|
305
330
|
/**
|
|
@@ -330,12 +355,14 @@ var HistoryManager = (_class = class {
|
|
|
330
355
|
undoParts(entry.parts);
|
|
331
356
|
this.undoStack.pop();
|
|
332
357
|
this.redoStack.push(entry);
|
|
358
|
+
return entry.id;
|
|
333
359
|
}
|
|
334
360
|
redoOne() {
|
|
335
361
|
const entry = this.redoStack[this.redoStack.length - 1];
|
|
336
362
|
redoParts(entry.parts);
|
|
337
363
|
this.redoStack.pop();
|
|
338
364
|
this.undoStack.push(entry);
|
|
365
|
+
return entry.id;
|
|
339
366
|
}
|
|
340
367
|
/**
|
|
341
368
|
* Reverts the most recent command on the undo stack.
|
|
@@ -347,12 +374,14 @@ var HistoryManager = (_class = class {
|
|
|
347
374
|
}
|
|
348
375
|
this.isApplying = true;
|
|
349
376
|
this.resetGesture();
|
|
377
|
+
let id = null;
|
|
350
378
|
try {
|
|
351
|
-
this.undoOne();
|
|
379
|
+
id = this.undoOne();
|
|
352
380
|
return true;
|
|
353
381
|
} finally {
|
|
354
382
|
this.isApplying = false;
|
|
355
383
|
this.notify();
|
|
384
|
+
if (id !== null) this.emit("undo", id);
|
|
356
385
|
}
|
|
357
386
|
}
|
|
358
387
|
/**
|
|
@@ -365,12 +394,14 @@ var HistoryManager = (_class = class {
|
|
|
365
394
|
}
|
|
366
395
|
this.isApplying = true;
|
|
367
396
|
this.resetGesture();
|
|
397
|
+
let id = null;
|
|
368
398
|
try {
|
|
369
|
-
this.redoOne();
|
|
399
|
+
id = this.redoOne();
|
|
370
400
|
return true;
|
|
371
401
|
} finally {
|
|
372
402
|
this.isApplying = false;
|
|
373
403
|
this.notify();
|
|
404
|
+
if (id !== null) this.emit("redo", id);
|
|
374
405
|
}
|
|
375
406
|
}
|
|
376
407
|
/**
|
|
@@ -417,7 +448,10 @@ var HistoryManager = (_class = class {
|
|
|
417
448
|
} finally {
|
|
418
449
|
this.isApplying = false;
|
|
419
450
|
this.redoStack = n > 0 ? [] : this.redoStack.filter((e) => e.id < mark.nextId);
|
|
420
|
-
if (n > 0 || this.redoStack.length !== redoBefore)
|
|
451
|
+
if (n > 0 || this.redoStack.length !== redoBefore) {
|
|
452
|
+
this.notify();
|
|
453
|
+
this.emit("revert");
|
|
454
|
+
}
|
|
421
455
|
}
|
|
422
456
|
return n;
|
|
423
457
|
}
|
|
@@ -433,7 +467,8 @@ var HistoryManager = (_class = class {
|
|
|
433
467
|
label: e.name,
|
|
434
468
|
index,
|
|
435
469
|
current: index === u - 1,
|
|
436
|
-
undone: false
|
|
470
|
+
undone: false,
|
|
471
|
+
origin: e.origin
|
|
437
472
|
}));
|
|
438
473
|
for (let i = this.redoStack.length - 1; i >= 0; i--) {
|
|
439
474
|
const e = this.redoStack[i];
|
|
@@ -442,7 +477,8 @@ var HistoryManager = (_class = class {
|
|
|
442
477
|
label: e.name,
|
|
443
478
|
index: entries.length,
|
|
444
479
|
current: false,
|
|
445
|
-
undone: true
|
|
480
|
+
undone: true,
|
|
481
|
+
origin: e.origin
|
|
446
482
|
});
|
|
447
483
|
}
|
|
448
484
|
this.cachedEntries = entries;
|
|
@@ -458,20 +494,22 @@ var HistoryManager = (_class = class {
|
|
|
458
494
|
const target = Math.max(0, Math.min(total, Math.floor(index) + 1));
|
|
459
495
|
if (target === this.undoStack.length) return 0;
|
|
460
496
|
let n = 0;
|
|
497
|
+
const steps = [];
|
|
461
498
|
this.isApplying = true;
|
|
462
499
|
this.resetGesture();
|
|
463
500
|
try {
|
|
464
501
|
while (this.undoStack.length > target) {
|
|
465
|
-
this.undoOne();
|
|
502
|
+
steps.push(["undo", this.undoOne()]);
|
|
466
503
|
n++;
|
|
467
504
|
}
|
|
468
505
|
while (this.undoStack.length < target) {
|
|
469
|
-
this.redoOne();
|
|
506
|
+
steps.push(["redo", this.redoOne()]);
|
|
470
507
|
n++;
|
|
471
508
|
}
|
|
472
509
|
} finally {
|
|
473
510
|
this.isApplying = false;
|
|
474
511
|
this.notify();
|
|
512
|
+
for (const [kind, id] of steps) this.emit(kind, id);
|
|
475
513
|
}
|
|
476
514
|
return n;
|
|
477
515
|
}
|
|
@@ -484,6 +522,7 @@ var HistoryManager = (_class = class {
|
|
|
484
522
|
this.epoch++;
|
|
485
523
|
this.resetGesture();
|
|
486
524
|
this.notify();
|
|
525
|
+
this.emit("clear");
|
|
487
526
|
}
|
|
488
527
|
/**
|
|
489
528
|
* Subscribes to history state changes.
|
|
@@ -497,6 +536,62 @@ var HistoryManager = (_class = class {
|
|
|
497
536
|
this.listeners.delete(listener);
|
|
498
537
|
};
|
|
499
538
|
}
|
|
539
|
+
/**
|
|
540
|
+
* Listens to each change as it lands: what happened (`execute`, `merge`, `undo`, `redo`,
|
|
541
|
+
* `revert`, `clear`), the step and who made it. Unlike `subscribe`, it is not called at once
|
|
542
|
+
* and it hears every step of a `goTo`. Returns an unsubscribe function.
|
|
543
|
+
*/
|
|
544
|
+
onCommit(listener) {
|
|
545
|
+
this.commitListeners.add(listener);
|
|
546
|
+
return () => {
|
|
547
|
+
this.commitListeners.delete(listener);
|
|
548
|
+
};
|
|
549
|
+
}
|
|
550
|
+
emit(kind, entryId, origin) {
|
|
551
|
+
if (this.commitListeners.size === 0) return;
|
|
552
|
+
const entry = entryId === void 0 ? void 0 : this.getEntries().find((e) => e.id === entryId);
|
|
553
|
+
const event = {
|
|
554
|
+
kind,
|
|
555
|
+
...entry ? { entry } : {},
|
|
556
|
+
origin: _nullishCoalesce(origin, () => ( this.getOrigin())),
|
|
557
|
+
revision: this.revision
|
|
558
|
+
};
|
|
559
|
+
this.commitListeners.forEach((listener) => {
|
|
560
|
+
try {
|
|
561
|
+
listener(event);
|
|
562
|
+
} catch (err) {
|
|
563
|
+
console.error("[HistoryManager] Error in commit listener:", err);
|
|
564
|
+
}
|
|
565
|
+
});
|
|
566
|
+
}
|
|
567
|
+
/** The origin a change is recorded with when its command names none (see `withOrigin`). */
|
|
568
|
+
getOrigin() {
|
|
569
|
+
return _nullishCoalesce(this.origins[this.origins.length - 1], () => ( USER_ORIGIN));
|
|
570
|
+
}
|
|
571
|
+
/**
|
|
572
|
+
* Records the changes `fn` makes as made by `origin` (`agent:<id>` for an agent), unless a
|
|
573
|
+
* command names its own. When `fn` returns a promise, the origin holds until it settles, so
|
|
574
|
+
* anything else recorded on this history meanwhile (the user's own edits) is stamped with it
|
|
575
|
+
* too: give those commands an explicit `origin`, or keep agent work synchronous.
|
|
576
|
+
*/
|
|
577
|
+
withOrigin(origin, fn) {
|
|
578
|
+
this.origins.push(origin);
|
|
579
|
+
let pending = false;
|
|
580
|
+
const pop = () => {
|
|
581
|
+
const i = this.origins.lastIndexOf(origin);
|
|
582
|
+
if (i >= 0) this.origins.splice(i, 1);
|
|
583
|
+
};
|
|
584
|
+
try {
|
|
585
|
+
const result = fn();
|
|
586
|
+
if (result && typeof result.then === "function") {
|
|
587
|
+
pending = true;
|
|
588
|
+
return Promise.resolve(result).finally(pop);
|
|
589
|
+
}
|
|
590
|
+
return result;
|
|
591
|
+
} finally {
|
|
592
|
+
if (!pending) pop();
|
|
593
|
+
}
|
|
594
|
+
}
|
|
500
595
|
/**
|
|
501
596
|
* Utility helper to create a Command from before/after state snapshots.
|
|
502
597
|
*/
|
|
@@ -517,4 +612,7 @@ function createHistoryManager(options = {}) {
|
|
|
517
612
|
|
|
518
613
|
|
|
519
614
|
|
|
520
|
-
|
|
615
|
+
|
|
616
|
+
|
|
617
|
+
|
|
618
|
+
exports.USER_ORIGIN = USER_ORIGIN; exports.agentOrigin = agentOrigin; exports.originAgentId = originAgentId; exports.HistoryManager = HistoryManager; exports.createHistoryManager = createHistoryManager;
|
|
@@ -54,7 +54,7 @@ var _chunk3R5P3DVYcjs = require('./chunk-3R5P3DVY.cjs');
|
|
|
54
54
|
var _chunkN3KJFGXTcjs = require('./chunk-N3KJFGXT.cjs');
|
|
55
55
|
|
|
56
56
|
|
|
57
|
-
var
|
|
57
|
+
var _chunkWKPXOGZZcjs = require('./chunk-WKPXOGZZ.cjs');
|
|
58
58
|
|
|
59
59
|
// src/chart/mermaid.ts
|
|
60
60
|
var CHART_MERMAID_META_PREFIX = "%% @pixerate ";
|
|
@@ -831,7 +831,7 @@ var ChartController = (_class = class {
|
|
|
831
831
|
|
|
832
832
|
|
|
833
833
|
constructor(options = {}) {;_class.prototype.__init.call(this);_class.prototype.__init2.call(this);_class.prototype.__init3.call(this);_class.prototype.__init4.call(this);_class.prototype.__init5.call(this);_class.prototype.__init6.call(this);_class.prototype.__init7.call(this);_class.prototype.__init8.call(this);_class.prototype.__init9.call(this);_class.prototype.__init10.call(this);_class.prototype.__init11.call(this);_class.prototype.__init12.call(this);
|
|
834
|
-
this.history = _nullishCoalesce(options.history, () => ( new (0,
|
|
834
|
+
this.history = _nullishCoalesce(options.history, () => ( new (0, _chunkWKPXOGZZcjs.HistoryManager)()));
|
|
835
835
|
this.onChange = options.onChange;
|
|
836
836
|
this.raceTicker = _nullishCoalesce(options.raceTicker, () => ( defaultRaceTicker));
|
|
837
837
|
const { spec, issues } = _chunk3R5P3DVYcjs.normalizeChartSpec.call(void 0, _nullishCoalesce(options.spec, () => ( {})));
|
package/dist/diagram/index.cjs
CHANGED
|
@@ -137,7 +137,7 @@ var _chunkSJ2CPTQCcjs = require('../chunk-SJ2CPTQC.cjs');
|
|
|
137
137
|
require('../chunk-2BSBFBOA.cjs');
|
|
138
138
|
|
|
139
139
|
|
|
140
|
-
var
|
|
140
|
+
var _chunkWKPXOGZZcjs = require('../chunk-WKPXOGZZ.cjs');
|
|
141
141
|
|
|
142
142
|
// src/diagram/types.ts
|
|
143
143
|
var DIRECTIONS = ["TB", "TD", "BT", "LR", "RL"];
|
|
@@ -1257,7 +1257,7 @@ var DiagramController = (_class = class {
|
|
|
1257
1257
|
|
|
1258
1258
|
|
|
1259
1259
|
constructor(options = {}) {;_class.prototype.__init.call(this);_class.prototype.__init2.call(this);_class.prototype.__init3.call(this);_class.prototype.__init4.call(this);_class.prototype.__init5.call(this);_class.prototype.__init6.call(this);_class.prototype.__init7.call(this);_class.prototype.__init8.call(this);_class.prototype.__init9.call(this);
|
|
1260
|
-
this.history = _nullishCoalesce(options.history, () => ( new (0,
|
|
1260
|
+
this.history = _nullishCoalesce(options.history, () => ( new (0, _chunkWKPXOGZZcjs.HistoryManager)()));
|
|
1261
1261
|
this.onChange = options.onChange;
|
|
1262
1262
|
this.readOnly = _nullishCoalesce(options.readOnly, () => ( false));
|
|
1263
1263
|
this.doc = _chunk3FSUJIXNcjs.parseMermaid.call(void 0, _nullishCoalesce(options.source, () => ( "flowchart TD\n")));
|
package/dist/diagram/index.js
CHANGED
package/dist/effects/index.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunk4XSBOGMKcjs = require('../chunk-4XSBOGMK.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkQOBCBGGIcjs = require('../chunk-QOBCBGGI.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -80,7 +80,7 @@ var _chunkPY4GWSE2cjs = require('../chunk-PY4GWSE2.cjs');
|
|
|
80
80
|
|
|
81
81
|
var _chunkGHCSC2WPcjs = require('../chunk-GHCSC2WP.cjs');
|
|
82
82
|
require('../chunk-WOFXZ3XU.cjs');
|
|
83
|
-
require('../chunk-
|
|
83
|
+
require('../chunk-WKPXOGZZ.cjs');
|
|
84
84
|
|
|
85
85
|
|
|
86
86
|
var _chunkDWJJI6RTcjs = require('../chunk-DWJJI6RT.cjs');
|
|
@@ -1136,7 +1136,7 @@ function createFakeEffectProvider(options = {}) {
|
|
|
1136
1136
|
} : {},
|
|
1137
1137
|
...options.templates ? fakeTemplateMethods() : {},
|
|
1138
1138
|
...supportsAuthoring ? {
|
|
1139
|
-
openAuthoring: (from) =>
|
|
1139
|
+
openAuthoring: (from) => _chunkQOBCBGGIcjs.createEffectAuthoringSession.call(void 0, from, { provider })
|
|
1140
1140
|
} : {}
|
|
1141
1141
|
};
|
|
1142
1142
|
return provider;
|
|
@@ -1743,4 +1743,4 @@ function createEffectAuthoringToolProvider(host, options) {
|
|
|
1743
1743
|
|
|
1744
1744
|
|
|
1745
1745
|
|
|
1746
|
-
exports.CAMERA_MOVE_MAX_MS = _chunkGHCSC2WPcjs.CAMERA_MOVE_MAX_MS; exports.CAMERA_MOVE_ROLES = _chunkGHCSC2WPcjs.CAMERA_MOVE_ROLES; exports.EFFECT_ACCEPTS = _chunkGHCSC2WPcjs.EFFECT_ACCEPTS; exports.EFFECT_ERROR_CODES = _chunkGHCSC2WPcjs.EFFECT_ERROR_CODES; exports.EFFECT_KINDS = _chunkGHCSC2WPcjs.EFFECT_KINDS; exports.EFFECT_LAYER_ROLES = _chunkGHCSC2WPcjs.EFFECT_LAYER_ROLES; exports.EFFECT_LAYER_USES = _chunkK5DS2JTAcjs.EFFECT_LAYER_USES; exports.EFFECT_PATH_FORMAT = _chunkGHCSC2WPcjs.EFFECT_PATH_FORMAT; exports.EFFECT_SEQUENCE_NAME = _chunkK5DS2JTAcjs.EFFECT_SEQUENCE_NAME; exports.EFFECT_SUBJECT_KINDS = _chunkGHCSC2WPcjs.EFFECT_SUBJECT_KINDS; exports.EFFECT_TEMPLATE_SLOT_TYPES = _chunkGHCSC2WPcjs.EFFECT_TEMPLATE_SLOT_TYPES; exports.EFFECT_TRANSITION_MS = _chunkGHCSC2WPcjs.EFFECT_TRANSITION_MS; exports.EFFECT_USES = _chunkGHCSC2WPcjs.EFFECT_USES; exports.EFFECT_USE_LABELS = EFFECT_USE_LABELS; exports.EffectControlError = _chunkGHCSC2WPcjs.EffectControlError; exports.EffectDisposedError = _chunkGHCSC2WPcjs.EffectDisposedError; exports.EffectError = _chunkGHCSC2WPcjs.EffectError; exports.EffectRendererPool = _chunkPY4GWSE2cjs.EffectRendererPool; exports.EffectUnsupportedError = _chunkGHCSC2WPcjs.EffectUnsupportedError; exports.EffectsSlot = _chunkGHCSC2WPcjs.EffectsSlot; exports.NoEffectsProviderError = _chunkGHCSC2WPcjs.NoEffectsProviderError; exports.UnknownEffectError = _chunkGHCSC2WPcjs.UnknownEffectError; exports.UnknownTemplateError = _chunkGHCSC2WPcjs.UnknownTemplateError; exports.applyEffectMask = _chunkGHCSC2WPcjs.applyEffectMask; exports.cameraBoxOfView = _chunkGHCSC2WPcjs.cameraBoxOfView; exports.cameraMoveField = _chunkGHCSC2WPcjs.cameraMoveField; exports.cameraMoveIdList = _chunkGHCSC2WPcjs.cameraMoveIdList; exports.cameraMoveParts = _chunkGHCSC2WPcjs.cameraMoveParts; exports.cameraMovesFor = _chunkGHCSC2WPcjs.cameraMovesFor; exports.cameraViewOfBox = _chunkGHCSC2WPcjs.cameraViewOfBox; exports.checkEffectProvider = checkEffectProvider; exports.checkEffectSequence = _chunkK5DS2JTAcjs.checkEffectSequence; exports.checkTemplateValues = _chunkK5DS2JTAcjs.checkTemplateValues; exports.countEffectTags = _chunkGHCSC2WPcjs.countEffectTags; exports.createEffectAuthoringSession =
|
|
1746
|
+
exports.CAMERA_MOVE_MAX_MS = _chunkGHCSC2WPcjs.CAMERA_MOVE_MAX_MS; exports.CAMERA_MOVE_ROLES = _chunkGHCSC2WPcjs.CAMERA_MOVE_ROLES; exports.EFFECT_ACCEPTS = _chunkGHCSC2WPcjs.EFFECT_ACCEPTS; exports.EFFECT_ERROR_CODES = _chunkGHCSC2WPcjs.EFFECT_ERROR_CODES; exports.EFFECT_KINDS = _chunkGHCSC2WPcjs.EFFECT_KINDS; exports.EFFECT_LAYER_ROLES = _chunkGHCSC2WPcjs.EFFECT_LAYER_ROLES; exports.EFFECT_LAYER_USES = _chunkK5DS2JTAcjs.EFFECT_LAYER_USES; exports.EFFECT_PATH_FORMAT = _chunkGHCSC2WPcjs.EFFECT_PATH_FORMAT; exports.EFFECT_SEQUENCE_NAME = _chunkK5DS2JTAcjs.EFFECT_SEQUENCE_NAME; exports.EFFECT_SUBJECT_KINDS = _chunkGHCSC2WPcjs.EFFECT_SUBJECT_KINDS; exports.EFFECT_TEMPLATE_SLOT_TYPES = _chunkGHCSC2WPcjs.EFFECT_TEMPLATE_SLOT_TYPES; exports.EFFECT_TRANSITION_MS = _chunkGHCSC2WPcjs.EFFECT_TRANSITION_MS; exports.EFFECT_USES = _chunkGHCSC2WPcjs.EFFECT_USES; exports.EFFECT_USE_LABELS = EFFECT_USE_LABELS; exports.EffectControlError = _chunkGHCSC2WPcjs.EffectControlError; exports.EffectDisposedError = _chunkGHCSC2WPcjs.EffectDisposedError; exports.EffectError = _chunkGHCSC2WPcjs.EffectError; exports.EffectRendererPool = _chunkPY4GWSE2cjs.EffectRendererPool; exports.EffectUnsupportedError = _chunkGHCSC2WPcjs.EffectUnsupportedError; exports.EffectsSlot = _chunkGHCSC2WPcjs.EffectsSlot; exports.NoEffectsProviderError = _chunkGHCSC2WPcjs.NoEffectsProviderError; exports.UnknownEffectError = _chunkGHCSC2WPcjs.UnknownEffectError; exports.UnknownTemplateError = _chunkGHCSC2WPcjs.UnknownTemplateError; exports.applyEffectMask = _chunkGHCSC2WPcjs.applyEffectMask; exports.cameraBoxOfView = _chunkGHCSC2WPcjs.cameraBoxOfView; exports.cameraMoveField = _chunkGHCSC2WPcjs.cameraMoveField; exports.cameraMoveIdList = _chunkGHCSC2WPcjs.cameraMoveIdList; exports.cameraMoveParts = _chunkGHCSC2WPcjs.cameraMoveParts; exports.cameraMovesFor = _chunkGHCSC2WPcjs.cameraMovesFor; exports.cameraViewOfBox = _chunkGHCSC2WPcjs.cameraViewOfBox; exports.checkEffectProvider = checkEffectProvider; exports.checkEffectSequence = _chunkK5DS2JTAcjs.checkEffectSequence; exports.checkTemplateValues = _chunkK5DS2JTAcjs.checkTemplateValues; exports.countEffectTags = _chunkGHCSC2WPcjs.countEffectTags; exports.createEffectAuthoringSession = _chunkQOBCBGGIcjs.createEffectAuthoringSession; exports.createEffectAuthoringToolProvider = createEffectAuthoringToolProvider; exports.createEffectPixels = _chunkGHCSC2WPcjs.createEffectPixels; exports.createEffectToolProvider = _chunkGHCSC2WPcjs.createEffectToolProvider; exports.createFakeEffectProvider = createFakeEffectProvider; exports.effectControlField = effectControlField; exports.effectFieldValue = effectFieldValue; exports.effectFontFamilies = effectFontFamilies; exports.effectLayerInput = _chunkK5DS2JTAcjs.effectLayerInput; exports.effectLayerOffered = _chunkK5DS2JTAcjs.effectLayerOffered; exports.effectLayerRole = _chunkK5DS2JTAcjs.effectLayerRole; exports.effectLayerSpan = _chunkK5DS2JTAcjs.effectLayerSpan; exports.effectOffered = _chunkGHCSC2WPcjs.effectOffered; exports.effectParameterFields = effectParameterFields; exports.effectSampleInputs = effectSampleInputs; exports.effectSamplePicture = effectSamplePicture; exports.effectSequenceEffects = _chunkK5DS2JTAcjs.effectSequenceEffects; exports.effectSequenceSlots = _chunkK5DS2JTAcjs.effectSequenceSlots; exports.effectSequenceTiming = _chunkK5DS2JTAcjs.effectSequenceTiming; exports.effectSubjectKind = _chunkK5DS2JTAcjs.effectSubjectKind; exports.effectSubjectProblem = _chunkK5DS2JTAcjs.effectSubjectProblem; exports.effectTemplateTools = _chunkK5DS2JTAcjs.effectTemplateTools; exports.effectValueErrors = _chunkGHCSC2WPcjs.effectValueErrors; exports.encodeEffectFloat = _chunkGHCSC2WPcjs.encodeEffectFloat; exports.fillEffectTemplate = _chunkK5DS2JTAcjs.fillEffectTemplate; exports.groupEffectsByCategory = groupEffectsByCategory; exports.hasEffectTags = _chunkGHCSC2WPcjs.hasEffectTags; exports.isCameraView = _chunkGHCSC2WPcjs.isCameraView; exports.isEffectError = _chunkGHCSC2WPcjs.isEffectError; exports.isEffectFontControl = isEffectFontControl; exports.isEffectPixels = _chunkGHCSC2WPcjs.isEffectPixels; exports.isSubjectTemplateSlot = _chunkK5DS2JTAcjs.isSubjectTemplateSlot; exports.linearToSrgb = _chunkGHCSC2WPcjs.linearToSrgb; exports.normaliseEffectTag = _chunkGHCSC2WPcjs.normaliseEffectTag; exports.pathControlsOf = _chunkGHCSC2WPcjs.pathControlsOf; exports.renderEffectThumbnail = renderEffectThumbnail; exports.resolveCameraMoveSpec = _chunkGHCSC2WPcjs.resolveCameraMoveSpec; exports.resolveEffectValues = _chunkGHCSC2WPcjs.resolveEffectValues; exports.sampleCameraViews = _chunkGHCSC2WPcjs.sampleCameraViews; exports.sampleEffectCameraMove = _chunkGHCSC2WPcjs.sampleEffectCameraMove; exports.searchEffectSummaries = _chunkGHCSC2WPcjs.searchEffectSummaries; exports.searchTemplateSummaries = _chunkK5DS2JTAcjs.searchTemplateSummaries; exports.srgbToLinear = _chunkGHCSC2WPcjs.srgbToLinear; exports.templateDefaultValues = _chunkK5DS2JTAcjs.templateDefaultValues; exports.templateSlotSchema = _chunkK5DS2JTAcjs.templateSlotSchema; exports.templateSlotSummary = _chunkK5DS2JTAcjs.templateSlotSummary; exports.templateSlotTakes = _chunkK5DS2JTAcjs.templateSlotTakes; exports.templateValueProblem = _chunkK5DS2JTAcjs.templateValueProblem; exports.templateValuesSchema = _chunkK5DS2JTAcjs.templateValuesSchema;
|
package/dist/effects/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "../chunk-N4ZXW3WB.js";
|
|
4
4
|
import {
|
|
5
5
|
createEffectAuthoringSession
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-AU6MWQKZ.js";
|
|
7
7
|
import {
|
|
8
8
|
EFFECT_LAYER_USES,
|
|
9
9
|
EFFECT_SEQUENCE_NAME,
|
|
@@ -80,7 +80,7 @@ import {
|
|
|
80
80
|
srgbToLinear
|
|
81
81
|
} from "../chunk-OFH6Q67U.js";
|
|
82
82
|
import "../chunk-V2ZCJRDM.js";
|
|
83
|
-
import "../chunk-
|
|
83
|
+
import "../chunk-NS62CQ2B.js";
|
|
84
84
|
import {
|
|
85
85
|
ANIMATION_EASING_PRESETS
|
|
86
86
|
} from "../chunk-5UJHB3BW.js";
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
|
|
89
89
|
|
|
90
90
|
|
|
91
|
-
var
|
|
91
|
+
var _chunkNUTMINJZcjs = require('../chunk-NUTMINJZ.cjs');
|
|
92
92
|
|
|
93
93
|
|
|
94
94
|
|
|
@@ -172,8 +172,8 @@ require('../chunk-HMGWFXEC.cjs');
|
|
|
172
172
|
|
|
173
173
|
|
|
174
174
|
|
|
175
|
-
var
|
|
176
|
-
require('../chunk-
|
|
175
|
+
var _chunkW7L4HUT2cjs = require('../chunk-W7L4HUT2.cjs');
|
|
176
|
+
require('../chunk-XZNU4DUX.cjs');
|
|
177
177
|
require('../chunk-TTCJPX4U.cjs');
|
|
178
178
|
require('../chunk-MOW3JMNG.cjs');
|
|
179
179
|
require('../chunk-3R5P3DVY.cjs');
|
|
@@ -216,7 +216,7 @@ require('../chunk-N3KJFGXT.cjs');
|
|
|
216
216
|
require('../chunk-ALNIFK5G.cjs');
|
|
217
217
|
require('../chunk-UWEQ55MY.cjs');
|
|
218
218
|
require('../chunk-2BSBFBOA.cjs');
|
|
219
|
-
require('../chunk-
|
|
219
|
+
require('../chunk-WKPXOGZZ.cjs');
|
|
220
220
|
require('../chunk-7PT4RJL5.cjs');
|
|
221
221
|
require('../chunk-PPFJHTW5.cjs');
|
|
222
222
|
require('../chunk-RD7RX52G.cjs');
|
|
@@ -418,4 +418,4 @@ require('../chunk-IPJ3TEYR.cjs');
|
|
|
418
418
|
|
|
419
419
|
|
|
420
420
|
|
|
421
|
-
exports.ALLOW_NESTED_TABLES_META = _chunkW7GRGGBHcjs.ALLOW_NESTED_TABLES_META; exports.AgentCaret = _chunkW7GRGGBHcjs.AgentCaret; exports.Autocorrect = _chunkUZU6DIZAcjs.Autocorrect; exports.BLOCK_CHANGE_ATTRIBUTE = _chunk34RQAGWIcjs.BLOCK_CHANGE_ATTRIBUTE; exports.Bookmark = _chunkUZU6DIZAcjs.Bookmark; exports.CHARACTER_STYLE_MARK_NAME = _chunkUZU6DIZAcjs.CHARACTER_STYLE_MARK_NAME; exports.COMMENT_MARK_NAME = _chunkW7GRGGBHcjs.COMMENT_MARK_NAME; exports.CharacterStyle = _chunkUZU6DIZAcjs.CharacterStyle; exports.Chart = _chunkW7GRGGBHcjs.Chart; exports.ChartNodeView = _chunkW7GRGGBHcjs.ChartNodeView; exports.ColorHighlighter = _chunkUZU6DIZAcjs.ColorHighlighter; exports.CommentStore = _chunk34RQAGWIcjs.CommentStore; exports.Comments = _chunkW7GRGGBHcjs.Comments; exports.CrossReference = _chunkUZU6DIZAcjs.CrossReference; exports.DEFAULT_AGENT_CARET_COLOR = _chunkW7GRGGBHcjs.DEFAULT_AGENT_CARET_COLOR; exports.DEFAULT_AGENT_CARET_NAME = _chunkW7GRGGBHcjs.DEFAULT_AGENT_CARET_NAME; exports.DEFAULT_AUTOCORRECT_EXCEPTIONS = _chunkUZU6DIZAcjs.DEFAULT_AUTOCORRECT_EXCEPTIONS; exports.DEFAULT_STYLES = _chunkYN6JKAUEcjs.DEFAULT_STYLES; exports.DEFAULT_TABLE_OPTIONS = _chunkW7GRGGBHcjs.DEFAULT_TABLE_OPTIONS; exports.DEFAULT_TABLE_TOOLBAR = _chunkW7GRGGBHcjs.DEFAULT_TABLE_TOOLBAR; exports.DELETION_MARK_NAME = _chunk34RQAGWIcjs.DELETION_MARK_NAME; exports.DocumentCompare = _chunkUZU6DIZAcjs.DocumentCompare; exports.EMPTY_FIND_REPLACE_SNAPSHOT = _chunkUZU6DIZAcjs.EMPTY_FIND_REPLACE_SNAPSHOT; exports.EMPTY_TABLE_STATE = _chunkW7GRGGBHcjs.EMPTY_TABLE_STATE; exports.FIND_OPTION_TOGGLES = _chunkUZU6DIZAcjs.FIND_OPTION_TOGGLES; exports.FIND_PARAGRAPH_MARK = _chunkW7GRGGBHcjs.FIND_PARAGRAPH_MARK; exports.FORMAT_CHANGE_MARK_NAME = _chunk34RQAGWIcjs.FORMAT_CHANGE_MARK_NAME; exports.FileImport = _chunkUZU6DIZAcjs.FileImport; exports.FindReplace = _chunkUZU6DIZAcjs.FindReplace; exports.FindReplaceStore = _chunkUZU6DIZAcjs.FindReplaceStore; exports.FontSize = _chunkUZU6DIZAcjs.FontSize; exports.Footnote = _chunkUZU6DIZAcjs.Footnote; exports.FootnoteReference = _chunkUZU6DIZAcjs.FootnoteReference; exports.Footnotes = _chunkUZU6DIZAcjs.Footnotes; exports.GradientText = _chunkUZU6DIZAcjs.GradientText; exports.INSERTION_MARK_NAME = _chunk34RQAGWIcjs.INSERTION_MARK_NAME; exports.Image = _chunkUZU6DIZAcjs.Image; exports.LoadingNode = _chunkUZU6DIZAcjs.LoadingNode; exports.MAX_FIND_PATTERN_LENGTH = _chunkW7GRGGBHcjs.MAX_FIND_PATTERN_LENGTH; exports.MAX_SPARKLINE_VALUES = _chunkW7GRGGBHcjs.MAX_SPARKLINE_VALUES; exports.MAX_TABLE_COLUMNS = _chunkW7GRGGBHcjs.MAX_TABLE_COLUMNS; exports.MAX_TABLE_ROWS = _chunkW7GRGGBHcjs.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 = _chunkUZU6DIZAcjs.Markdown; exports.Mention = _chunkUZU6DIZAcjs.Mention; exports.NORMAL_STYLE_ID = _chunkYN6JKAUEcjs.NORMAL_STYLE_ID; exports.Outline = _chunkUZU6DIZAcjs.Outline; exports.ParagraphStyles = _chunkUZU6DIZAcjs.ParagraphStyles; exports.RichClipboard = _chunkUZU6DIZAcjs.RichClipboard; exports.SMILIE_REPLACEMENTS = _chunkUZU6DIZAcjs.SMILIE_REPLACEMENTS; exports.SPARKLINE_KINDS = _chunkW7GRGGBHcjs.SPARKLINE_KINDS; exports.STYLE_ID_ATTRIBUTE = _chunkUZU6DIZAcjs.STYLE_ID_ATTRIBUTE; exports.SlashCommands = _chunkUZU6DIZAcjs.SlashCommands; exports.SmilieReplacer = _chunkUZU6DIZAcjs.SmilieReplacer; exports.Sparkline = _chunkW7GRGGBHcjs.Sparkline; exports.StyleRegistry = _chunkYN6JKAUEcjs.StyleRegistry; exports.TABLE_ACTIONS = _chunkW7GRGGBHcjs.TABLE_ACTIONS; exports.TRACK_CHANGES_SKIP_META = _chunk34RQAGWIcjs.TRACK_CHANGES_SKIP_META; exports.Table = _chunkW7GRGGBHcjs.Table; exports.TableCell = _chunkW7GRGGBHcjs.TableCell; exports.TableHeader = _chunkW7GRGGBHcjs.TableHeader; exports.TableOfContents = _chunkUZU6DIZAcjs.TableOfContents; exports.TableRow = _chunkW7GRGGBHcjs.TableRow; exports.TemplateSuggestions = _chunkUZU6DIZAcjs.TemplateSuggestions; exports.TrackChanges = _chunk34RQAGWIcjs.TrackChanges; exports.TrackChangesStore = _chunk34RQAGWIcjs.TrackChangesStore; exports.TrackedDeletion = _chunk34RQAGWIcjs.TrackedDeletion; exports.TrackedFormatChange = _chunk34RQAGWIcjs.TrackedFormatChange; exports.TrackedInsertion = _chunk34RQAGWIcjs.TrackedInsertion; exports.agentCaretPluginKey = _chunkW7GRGGBHcjs.agentCaretPluginKey; exports.applyDocumentComparison = _chunkUZU6DIZAcjs.applyDocumentComparison; exports.applyReplacements = _chunkW7GRGGBHcjs.applyReplacements; exports.autocorrectPluginKey = _chunkUZU6DIZAcjs.autocorrectPluginKey; exports.buildOutlineTree = _chunkUZU6DIZAcjs.buildOutlineTree; exports.capitalizeSentenceRules = _chunkUZU6DIZAcjs.capitalizeSentenceRules; exports.captureSelectionFormat = _chunkUZU6DIZAcjs.captureSelectionFormat; exports.chartPluginKey = _chunkW7GRGGBHcjs.chartPluginKey; exports.clearAgentCaret = _chunkW7GRGGBHcjs.clearAgentCaret; exports.commentsPluginKey = _chunkW7GRGGBHcjs.commentsPluginKey; exports.compareInEditor = _chunkUZU6DIZAcjs.compareInEditor; exports.compileFindPattern = _chunkW7GRGGBHcjs.compileFindPattern; exports.computeOutline = _chunkUZU6DIZAcjs.computeOutline; exports.createAgentCaretPlugin = _chunkW7GRGGBHcjs.createAgentCaretPlugin; exports.createChartNodeView = _chunkW7GRGGBHcjs.createChartNodeView; exports.createCommentStore = _chunk34RQAGWIcjs.createCommentStore; exports.createFindReplaceCommands = _chunkUZU6DIZAcjs.createFindReplaceCommands; exports.createMentionExtension = _chunkUZU6DIZAcjs.createMentionExtension; exports.createOutlineStore = _chunkUZU6DIZAcjs.createOutlineStore; exports.createParagraphStylesStore = _chunkUZU6DIZAcjs.createParagraphStylesStore; exports.createReviewId = _chunk34RQAGWIcjs.createReviewId; exports.createRichTextPreset = _chunkUZU6DIZAcjs.createRichTextPreset; exports.createSearchBudget = _chunkW7GRGGBHcjs.createSearchBudget; exports.createStyleRegistry = _chunkYN6JKAUEcjs.createStyleRegistry; exports.createTableCommands = _chunkUZU6DIZAcjs.createTableCommands; exports.createTableExtensions = _chunkW7GRGGBHcjs.createTableExtensions; exports.createTableNestingPlugin = _chunkW7GRGGBHcjs.createTableNestingPlugin; exports.createTableStore = _chunkW7GRGGBHcjs.createTableStore; exports.crossReferencePluginKey = _chunkUZU6DIZAcjs.crossReferencePluginKey; exports.defaultAutocorrectRules = _chunkUZU6DIZAcjs.defaultAutocorrectRules; exports.describeBlockChange = _chunk34RQAGWIcjs.describeBlockChange; exports.describeFormatChange = _chunk34RQAGWIcjs.describeFormatChange; exports.documentStructureCommandItems = _chunkUZU6DIZAcjs.documentStructureCommandItems; exports.ensureAgentCaret = _chunkW7GRGGBHcjs.ensureAgentCaret; exports.expandReplacement = _chunkW7GRGGBHcjs.expandReplacement; exports.fileImportPluginKey = _chunkUZU6DIZAcjs.fileImportPluginKey; exports.findAllMatches = _chunkW7GRGGBHcjs.findAllMatches; exports.findAutocorrection = _chunkUZU6DIZAcjs.findAutocorrection; exports.findCommentRanges = _chunkW7GRGGBHcjs.findCommentRanges; exports.findHexColors = _chunkUZU6DIZAcjs.findHexColors; exports.findReplacePluginKey = _chunkUZU6DIZAcjs.findReplacePluginKey; exports.foldCodePoint = _chunkW7GRGGBHcjs.foldCodePoint; exports.footnotesMarkdownIt = _chunkUZU6DIZAcjs.footnotesMarkdownIt; exports.footnotesPluginKey = _chunkUZU6DIZAcjs.footnotesPluginKey; exports.formatFindStatus = _chunkUZU6DIZAcjs.formatFindStatus; exports.formatReviewTime = _chunk34RQAGWIcjs.formatReviewTime; exports.fractionRules = _chunkUZU6DIZAcjs.fractionRules; exports.getActiveHeading = _chunkUZU6DIZAcjs.getActiveHeading; exports.getAgentCarets = _chunkW7GRGGBHcjs.getAgentCarets; exports.getBookmarks = _chunkUZU6DIZAcjs.getBookmarks; exports.getCommentAnchors = _chunkW7GRGGBHcjs.getCommentAnchors; exports.getCommentAuthor = _chunkW7GRGGBHcjs.getCommentAuthor; exports.getCommentIdsAt = _chunkW7GRGGBHcjs.getCommentIdsAt; exports.getCommentStore = _chunkW7GRGGBHcjs.getCommentStore; exports.getCrossReferenceTargets = _chunkUZU6DIZAcjs.getCrossReferenceTargets; exports.getDocumentCharts = _chunkW7GRGGBHcjs.getDocumentCharts; exports.getDocumentStructureCommandItems = _chunkUZU6DIZAcjs.getDocumentStructureCommandItems; exports.getFindReplaceState = _chunkUZU6DIZAcjs.getFindReplaceState; exports.getFindReplaceStore = _chunkUZU6DIZAcjs.getFindReplaceStore; exports.getFootnotes = _chunkUZU6DIZAcjs.getFootnotes; exports.getMentionNodes = _chunkUZU6DIZAcjs.getMentionNodes; exports.getOutline = _chunkUZU6DIZAcjs.getOutline; exports.getParagraphStyleAt = _chunkUZU6DIZAcjs.getParagraphStyleAt; exports.getStyleRegistry = _chunkUZU6DIZAcjs.getStyleRegistry; exports.getTableActionState = _chunkW7GRGGBHcjs.getTableActionState; exports.getTableOfContentsEntries = _chunkUZU6DIZAcjs.getTableOfContentsEntries; exports.getTableState = _chunkW7GRGGBHcjs.getTableState; exports.getTrackChangesStore = _chunk34RQAGWIcjs.getTrackChangesStore; exports.getTrackedChangeAt = _chunk34RQAGWIcjs.getTrackedChangeAt; exports.getTrackedChanges = _chunk34RQAGWIcjs.getTrackedChanges; exports.handleImageInsertion = _chunkUZU6DIZAcjs.handleImageInsertion; exports.handleTablePasteWithoutNesting = _chunkW7GRGGBHcjs.handleTablePasteWithoutNesting; exports.imagePastePluginKey = _chunkUZU6DIZAcjs.imagePastePluginKey; exports.insertImageNode = _chunkUZU6DIZAcjs.insertImageNode; exports.insertSliceAfterTable = _chunkW7GRGGBHcjs.insertSliceAfterTable; exports.isChartEnabled = _chunkW7GRGGBHcjs.isChartEnabled; exports.isGfmTable = _chunkW7GRGGBHcjs.isGfmTable; exports.isInTableCell = _chunkW7GRGGBHcjs.isInTableCell; exports.isInsidePromptToken = _chunkUZU6DIZAcjs.isInsidePromptToken; exports.isMoveSized = _chunk34RQAGWIcjs.isMoveSized; exports.isParagraphStyleAvailable = _chunkUZU6DIZAcjs.isParagraphStyleAvailable; exports.isSelectionInTable = _chunkW7GRGGBHcjs.isSelectionInTable; exports.isTableEnabled = _chunkW7GRGGBHcjs.isTableEnabled; exports.isTrackChangesEnabled = _chunk34RQAGWIcjs.isTrackChangesEnabled; exports.isValidStyleId = _chunkYN6JKAUEcjs.isValidStyleId; exports.loadingSpinnerSpec = _chunkUZU6DIZAcjs.loadingSpinnerSpec; exports.markAgentChanges = _chunkW7GRGGBHcjs.markAgentChanges; exports.navigateToHeading = _chunkUZU6DIZAcjs.navigateToHeading; exports.normalizeSparklineValues = _chunkW7GRGGBHcjs.normalizeSparklineValues; exports.normalizeTableCellAlignment = _chunkW7GRGGBHcjs.normalizeTableCellAlignment; exports.normalizeTableCellColor = _chunkW7GRGGBHcjs.normalizeTableCellColor; exports.outermostTableDepth = _chunkW7GRGGBHcjs.outermostTableDepth; exports.outlinePluginKey = _chunkUZU6DIZAcjs.outlinePluginKey; exports.paragraphStylesPluginKey = _chunkUZU6DIZAcjs.paragraphStylesPluginKey; exports.parseReplacement = _chunkW7GRGGBHcjs.parseReplacement; exports.removeImageNode = _chunkUZU6DIZAcjs.removeImageNode; exports.replaceWithTextTransaction = _chunkW7GRGGBHcjs.replaceWithTextTransaction; exports.resolveTrackedChanges = _chunk34RQAGWIcjs.resolveTrackedChanges; exports.richClipboardPluginKey = _chunkUZU6DIZAcjs.richClipboardPluginKey; exports.runTableAction = _chunkW7GRGGBHcjs.runTableAction; exports.safeCSSValue = _chunkYN6JKAUEcjs.safeCSSValue; exports.safeMergeAttributes = _chunk34RQAGWIcjs.safeMergeAttributes; exports.searchDocument = _chunkW7GRGGBHcjs.searchDocument; exports.setAgentCaret = _chunkW7GRGGBHcjs.setAgentCaret; exports.setMentionRoleAt = _chunkUZU6DIZAcjs.setMentionRoleAt; exports.shouldShowTableBubbleMenu = _chunkW7GRGGBHcjs.shouldShowTableBubbleMenu; exports.sliceContainsTable = _chunkW7GRGGBHcjs.sliceContainsTable; exports.smartQuoteRules = _chunkUZU6DIZAcjs.smartQuoteRules; exports.smilieAutocorrectRules = _chunkUZU6DIZAcjs.smilieAutocorrectRules; exports.sparklineLabel = _chunkW7GRGGBHcjs.sparklineLabel; exports.staticChartSvg = _chunkW7GRGGBHcjs.staticChartSvg; exports.symbolRules = _chunkUZU6DIZAcjs.symbolRules; exports.syncFootnotes = _chunkUZU6DIZAcjs.syncFootnotes; exports.tableNestingPluginKey = _chunkW7GRGGBHcjs.tableNestingPluginKey; exports.tableOfContentsMarkdownIt = _chunkUZU6DIZAcjs.tableOfContentsMarkdownIt; exports.tableOfContentsPluginKey = _chunkUZU6DIZAcjs.tableOfContentsPluginKey; exports.trackChangesPluginKey = _chunk34RQAGWIcjs.trackChangesPluginKey; exports.trackedChangeLabel = _chunk34RQAGWIcjs.trackedChangeLabel; exports.twoInitialCapitalsRules = _chunkUZU6DIZAcjs.twoInitialCapitalsRules; exports.typeAgentText = _chunkW7GRGGBHcjs.typeAgentText; exports.unnestTables = _chunkW7GRGGBHcjs.unnestTables; exports.updateImageSrc = _chunkUZU6DIZAcjs.updateImageSrc; exports.validateFindPattern = _chunkUZU6DIZAcjs.validateFindPattern; exports.writeRichClipboard = _chunkUZU6DIZAcjs.writeRichClipboard;
|
|
421
|
+
exports.ALLOW_NESTED_TABLES_META = _chunkW7L4HUT2cjs.ALLOW_NESTED_TABLES_META; exports.AgentCaret = _chunkW7L4HUT2cjs.AgentCaret; exports.Autocorrect = _chunkNUTMINJZcjs.Autocorrect; exports.BLOCK_CHANGE_ATTRIBUTE = _chunk34RQAGWIcjs.BLOCK_CHANGE_ATTRIBUTE; exports.Bookmark = _chunkNUTMINJZcjs.Bookmark; exports.CHARACTER_STYLE_MARK_NAME = _chunkNUTMINJZcjs.CHARACTER_STYLE_MARK_NAME; exports.COMMENT_MARK_NAME = _chunkW7L4HUT2cjs.COMMENT_MARK_NAME; exports.CharacterStyle = _chunkNUTMINJZcjs.CharacterStyle; exports.Chart = _chunkW7L4HUT2cjs.Chart; exports.ChartNodeView = _chunkW7L4HUT2cjs.ChartNodeView; exports.ColorHighlighter = _chunkNUTMINJZcjs.ColorHighlighter; exports.CommentStore = _chunk34RQAGWIcjs.CommentStore; exports.Comments = _chunkW7L4HUT2cjs.Comments; exports.CrossReference = _chunkNUTMINJZcjs.CrossReference; exports.DEFAULT_AGENT_CARET_COLOR = _chunkW7L4HUT2cjs.DEFAULT_AGENT_CARET_COLOR; exports.DEFAULT_AGENT_CARET_NAME = _chunkW7L4HUT2cjs.DEFAULT_AGENT_CARET_NAME; exports.DEFAULT_AUTOCORRECT_EXCEPTIONS = _chunkNUTMINJZcjs.DEFAULT_AUTOCORRECT_EXCEPTIONS; exports.DEFAULT_STYLES = _chunkYN6JKAUEcjs.DEFAULT_STYLES; exports.DEFAULT_TABLE_OPTIONS = _chunkW7L4HUT2cjs.DEFAULT_TABLE_OPTIONS; exports.DEFAULT_TABLE_TOOLBAR = _chunkW7L4HUT2cjs.DEFAULT_TABLE_TOOLBAR; exports.DELETION_MARK_NAME = _chunk34RQAGWIcjs.DELETION_MARK_NAME; exports.DocumentCompare = _chunkNUTMINJZcjs.DocumentCompare; exports.EMPTY_FIND_REPLACE_SNAPSHOT = _chunkNUTMINJZcjs.EMPTY_FIND_REPLACE_SNAPSHOT; exports.EMPTY_TABLE_STATE = _chunkW7L4HUT2cjs.EMPTY_TABLE_STATE; exports.FIND_OPTION_TOGGLES = _chunkNUTMINJZcjs.FIND_OPTION_TOGGLES; exports.FIND_PARAGRAPH_MARK = _chunkW7L4HUT2cjs.FIND_PARAGRAPH_MARK; exports.FORMAT_CHANGE_MARK_NAME = _chunk34RQAGWIcjs.FORMAT_CHANGE_MARK_NAME; exports.FileImport = _chunkNUTMINJZcjs.FileImport; exports.FindReplace = _chunkNUTMINJZcjs.FindReplace; exports.FindReplaceStore = _chunkNUTMINJZcjs.FindReplaceStore; exports.FontSize = _chunkNUTMINJZcjs.FontSize; exports.Footnote = _chunkNUTMINJZcjs.Footnote; exports.FootnoteReference = _chunkNUTMINJZcjs.FootnoteReference; exports.Footnotes = _chunkNUTMINJZcjs.Footnotes; exports.GradientText = _chunkNUTMINJZcjs.GradientText; exports.INSERTION_MARK_NAME = _chunk34RQAGWIcjs.INSERTION_MARK_NAME; exports.Image = _chunkNUTMINJZcjs.Image; exports.LoadingNode = _chunkNUTMINJZcjs.LoadingNode; exports.MAX_FIND_PATTERN_LENGTH = _chunkW7L4HUT2cjs.MAX_FIND_PATTERN_LENGTH; exports.MAX_SPARKLINE_VALUES = _chunkW7L4HUT2cjs.MAX_SPARKLINE_VALUES; exports.MAX_TABLE_COLUMNS = _chunkW7L4HUT2cjs.MAX_TABLE_COLUMNS; exports.MAX_TABLE_ROWS = _chunkW7L4HUT2cjs.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 = _chunkNUTMINJZcjs.Markdown; exports.Mention = _chunkNUTMINJZcjs.Mention; exports.NORMAL_STYLE_ID = _chunkYN6JKAUEcjs.NORMAL_STYLE_ID; exports.Outline = _chunkNUTMINJZcjs.Outline; exports.ParagraphStyles = _chunkNUTMINJZcjs.ParagraphStyles; exports.RichClipboard = _chunkNUTMINJZcjs.RichClipboard; exports.SMILIE_REPLACEMENTS = _chunkNUTMINJZcjs.SMILIE_REPLACEMENTS; exports.SPARKLINE_KINDS = _chunkW7L4HUT2cjs.SPARKLINE_KINDS; exports.STYLE_ID_ATTRIBUTE = _chunkNUTMINJZcjs.STYLE_ID_ATTRIBUTE; exports.SlashCommands = _chunkNUTMINJZcjs.SlashCommands; exports.SmilieReplacer = _chunkNUTMINJZcjs.SmilieReplacer; exports.Sparkline = _chunkW7L4HUT2cjs.Sparkline; exports.StyleRegistry = _chunkYN6JKAUEcjs.StyleRegistry; exports.TABLE_ACTIONS = _chunkW7L4HUT2cjs.TABLE_ACTIONS; exports.TRACK_CHANGES_SKIP_META = _chunk34RQAGWIcjs.TRACK_CHANGES_SKIP_META; exports.Table = _chunkW7L4HUT2cjs.Table; exports.TableCell = _chunkW7L4HUT2cjs.TableCell; exports.TableHeader = _chunkW7L4HUT2cjs.TableHeader; exports.TableOfContents = _chunkNUTMINJZcjs.TableOfContents; exports.TableRow = _chunkW7L4HUT2cjs.TableRow; exports.TemplateSuggestions = _chunkNUTMINJZcjs.TemplateSuggestions; exports.TrackChanges = _chunk34RQAGWIcjs.TrackChanges; exports.TrackChangesStore = _chunk34RQAGWIcjs.TrackChangesStore; exports.TrackedDeletion = _chunk34RQAGWIcjs.TrackedDeletion; exports.TrackedFormatChange = _chunk34RQAGWIcjs.TrackedFormatChange; exports.TrackedInsertion = _chunk34RQAGWIcjs.TrackedInsertion; exports.agentCaretPluginKey = _chunkW7L4HUT2cjs.agentCaretPluginKey; exports.applyDocumentComparison = _chunkNUTMINJZcjs.applyDocumentComparison; exports.applyReplacements = _chunkW7L4HUT2cjs.applyReplacements; exports.autocorrectPluginKey = _chunkNUTMINJZcjs.autocorrectPluginKey; exports.buildOutlineTree = _chunkNUTMINJZcjs.buildOutlineTree; exports.capitalizeSentenceRules = _chunkNUTMINJZcjs.capitalizeSentenceRules; exports.captureSelectionFormat = _chunkNUTMINJZcjs.captureSelectionFormat; exports.chartPluginKey = _chunkW7L4HUT2cjs.chartPluginKey; exports.clearAgentCaret = _chunkW7L4HUT2cjs.clearAgentCaret; exports.commentsPluginKey = _chunkW7L4HUT2cjs.commentsPluginKey; exports.compareInEditor = _chunkNUTMINJZcjs.compareInEditor; exports.compileFindPattern = _chunkW7L4HUT2cjs.compileFindPattern; exports.computeOutline = _chunkNUTMINJZcjs.computeOutline; exports.createAgentCaretPlugin = _chunkW7L4HUT2cjs.createAgentCaretPlugin; exports.createChartNodeView = _chunkW7L4HUT2cjs.createChartNodeView; exports.createCommentStore = _chunk34RQAGWIcjs.createCommentStore; exports.createFindReplaceCommands = _chunkNUTMINJZcjs.createFindReplaceCommands; exports.createMentionExtension = _chunkNUTMINJZcjs.createMentionExtension; exports.createOutlineStore = _chunkNUTMINJZcjs.createOutlineStore; exports.createParagraphStylesStore = _chunkNUTMINJZcjs.createParagraphStylesStore; exports.createReviewId = _chunk34RQAGWIcjs.createReviewId; exports.createRichTextPreset = _chunkNUTMINJZcjs.createRichTextPreset; exports.createSearchBudget = _chunkW7L4HUT2cjs.createSearchBudget; exports.createStyleRegistry = _chunkYN6JKAUEcjs.createStyleRegistry; exports.createTableCommands = _chunkNUTMINJZcjs.createTableCommands; exports.createTableExtensions = _chunkW7L4HUT2cjs.createTableExtensions; exports.createTableNestingPlugin = _chunkW7L4HUT2cjs.createTableNestingPlugin; exports.createTableStore = _chunkW7L4HUT2cjs.createTableStore; exports.crossReferencePluginKey = _chunkNUTMINJZcjs.crossReferencePluginKey; exports.defaultAutocorrectRules = _chunkNUTMINJZcjs.defaultAutocorrectRules; exports.describeBlockChange = _chunk34RQAGWIcjs.describeBlockChange; exports.describeFormatChange = _chunk34RQAGWIcjs.describeFormatChange; exports.documentStructureCommandItems = _chunkNUTMINJZcjs.documentStructureCommandItems; exports.ensureAgentCaret = _chunkW7L4HUT2cjs.ensureAgentCaret; exports.expandReplacement = _chunkW7L4HUT2cjs.expandReplacement; exports.fileImportPluginKey = _chunkNUTMINJZcjs.fileImportPluginKey; exports.findAllMatches = _chunkW7L4HUT2cjs.findAllMatches; exports.findAutocorrection = _chunkNUTMINJZcjs.findAutocorrection; exports.findCommentRanges = _chunkW7L4HUT2cjs.findCommentRanges; exports.findHexColors = _chunkNUTMINJZcjs.findHexColors; exports.findReplacePluginKey = _chunkNUTMINJZcjs.findReplacePluginKey; exports.foldCodePoint = _chunkW7L4HUT2cjs.foldCodePoint; exports.footnotesMarkdownIt = _chunkNUTMINJZcjs.footnotesMarkdownIt; exports.footnotesPluginKey = _chunkNUTMINJZcjs.footnotesPluginKey; exports.formatFindStatus = _chunkNUTMINJZcjs.formatFindStatus; exports.formatReviewTime = _chunk34RQAGWIcjs.formatReviewTime; exports.fractionRules = _chunkNUTMINJZcjs.fractionRules; exports.getActiveHeading = _chunkNUTMINJZcjs.getActiveHeading; exports.getAgentCarets = _chunkW7L4HUT2cjs.getAgentCarets; exports.getBookmarks = _chunkNUTMINJZcjs.getBookmarks; exports.getCommentAnchors = _chunkW7L4HUT2cjs.getCommentAnchors; exports.getCommentAuthor = _chunkW7L4HUT2cjs.getCommentAuthor; exports.getCommentIdsAt = _chunkW7L4HUT2cjs.getCommentIdsAt; exports.getCommentStore = _chunkW7L4HUT2cjs.getCommentStore; exports.getCrossReferenceTargets = _chunkNUTMINJZcjs.getCrossReferenceTargets; exports.getDocumentCharts = _chunkW7L4HUT2cjs.getDocumentCharts; exports.getDocumentStructureCommandItems = _chunkNUTMINJZcjs.getDocumentStructureCommandItems; exports.getFindReplaceState = _chunkNUTMINJZcjs.getFindReplaceState; exports.getFindReplaceStore = _chunkNUTMINJZcjs.getFindReplaceStore; exports.getFootnotes = _chunkNUTMINJZcjs.getFootnotes; exports.getMentionNodes = _chunkNUTMINJZcjs.getMentionNodes; exports.getOutline = _chunkNUTMINJZcjs.getOutline; exports.getParagraphStyleAt = _chunkNUTMINJZcjs.getParagraphStyleAt; exports.getStyleRegistry = _chunkNUTMINJZcjs.getStyleRegistry; exports.getTableActionState = _chunkW7L4HUT2cjs.getTableActionState; exports.getTableOfContentsEntries = _chunkNUTMINJZcjs.getTableOfContentsEntries; exports.getTableState = _chunkW7L4HUT2cjs.getTableState; exports.getTrackChangesStore = _chunk34RQAGWIcjs.getTrackChangesStore; exports.getTrackedChangeAt = _chunk34RQAGWIcjs.getTrackedChangeAt; exports.getTrackedChanges = _chunk34RQAGWIcjs.getTrackedChanges; exports.handleImageInsertion = _chunkNUTMINJZcjs.handleImageInsertion; exports.handleTablePasteWithoutNesting = _chunkW7L4HUT2cjs.handleTablePasteWithoutNesting; exports.imagePastePluginKey = _chunkNUTMINJZcjs.imagePastePluginKey; exports.insertImageNode = _chunkNUTMINJZcjs.insertImageNode; exports.insertSliceAfterTable = _chunkW7L4HUT2cjs.insertSliceAfterTable; exports.isChartEnabled = _chunkW7L4HUT2cjs.isChartEnabled; exports.isGfmTable = _chunkW7L4HUT2cjs.isGfmTable; exports.isInTableCell = _chunkW7L4HUT2cjs.isInTableCell; exports.isInsidePromptToken = _chunkNUTMINJZcjs.isInsidePromptToken; exports.isMoveSized = _chunk34RQAGWIcjs.isMoveSized; exports.isParagraphStyleAvailable = _chunkNUTMINJZcjs.isParagraphStyleAvailable; exports.isSelectionInTable = _chunkW7L4HUT2cjs.isSelectionInTable; exports.isTableEnabled = _chunkW7L4HUT2cjs.isTableEnabled; exports.isTrackChangesEnabled = _chunk34RQAGWIcjs.isTrackChangesEnabled; exports.isValidStyleId = _chunkYN6JKAUEcjs.isValidStyleId; exports.loadingSpinnerSpec = _chunkNUTMINJZcjs.loadingSpinnerSpec; exports.markAgentChanges = _chunkW7L4HUT2cjs.markAgentChanges; exports.navigateToHeading = _chunkNUTMINJZcjs.navigateToHeading; exports.normalizeSparklineValues = _chunkW7L4HUT2cjs.normalizeSparklineValues; exports.normalizeTableCellAlignment = _chunkW7L4HUT2cjs.normalizeTableCellAlignment; exports.normalizeTableCellColor = _chunkW7L4HUT2cjs.normalizeTableCellColor; exports.outermostTableDepth = _chunkW7L4HUT2cjs.outermostTableDepth; exports.outlinePluginKey = _chunkNUTMINJZcjs.outlinePluginKey; exports.paragraphStylesPluginKey = _chunkNUTMINJZcjs.paragraphStylesPluginKey; exports.parseReplacement = _chunkW7L4HUT2cjs.parseReplacement; exports.removeImageNode = _chunkNUTMINJZcjs.removeImageNode; exports.replaceWithTextTransaction = _chunkW7L4HUT2cjs.replaceWithTextTransaction; exports.resolveTrackedChanges = _chunk34RQAGWIcjs.resolveTrackedChanges; exports.richClipboardPluginKey = _chunkNUTMINJZcjs.richClipboardPluginKey; exports.runTableAction = _chunkW7L4HUT2cjs.runTableAction; exports.safeCSSValue = _chunkYN6JKAUEcjs.safeCSSValue; exports.safeMergeAttributes = _chunk34RQAGWIcjs.safeMergeAttributes; exports.searchDocument = _chunkW7L4HUT2cjs.searchDocument; exports.setAgentCaret = _chunkW7L4HUT2cjs.setAgentCaret; exports.setMentionRoleAt = _chunkNUTMINJZcjs.setMentionRoleAt; exports.shouldShowTableBubbleMenu = _chunkW7L4HUT2cjs.shouldShowTableBubbleMenu; exports.sliceContainsTable = _chunkW7L4HUT2cjs.sliceContainsTable; exports.smartQuoteRules = _chunkNUTMINJZcjs.smartQuoteRules; exports.smilieAutocorrectRules = _chunkNUTMINJZcjs.smilieAutocorrectRules; exports.sparklineLabel = _chunkW7L4HUT2cjs.sparklineLabel; exports.staticChartSvg = _chunkW7L4HUT2cjs.staticChartSvg; exports.symbolRules = _chunkNUTMINJZcjs.symbolRules; exports.syncFootnotes = _chunkNUTMINJZcjs.syncFootnotes; exports.tableNestingPluginKey = _chunkW7L4HUT2cjs.tableNestingPluginKey; exports.tableOfContentsMarkdownIt = _chunkNUTMINJZcjs.tableOfContentsMarkdownIt; exports.tableOfContentsPluginKey = _chunkNUTMINJZcjs.tableOfContentsPluginKey; exports.trackChangesPluginKey = _chunk34RQAGWIcjs.trackChangesPluginKey; exports.trackedChangeLabel = _chunk34RQAGWIcjs.trackedChangeLabel; exports.twoInitialCapitalsRules = _chunkNUTMINJZcjs.twoInitialCapitalsRules; exports.typeAgentText = _chunkW7L4HUT2cjs.typeAgentText; exports.unnestTables = _chunkW7L4HUT2cjs.unnestTables; exports.updateImageSrc = _chunkNUTMINJZcjs.updateImageSrc; exports.validateFindPattern = _chunkNUTMINJZcjs.validateFindPattern; exports.writeRichClipboard = _chunkNUTMINJZcjs.writeRichClipboard;
|
package/dist/extensions/index.js
CHANGED
|
@@ -88,7 +88,7 @@ import {
|
|
|
88
88
|
updateImageSrc,
|
|
89
89
|
validateFindPattern,
|
|
90
90
|
writeRichClipboard
|
|
91
|
-
} from "../chunk-
|
|
91
|
+
} from "../chunk-SGPIVHJB.js";
|
|
92
92
|
import {
|
|
93
93
|
DEFAULT_STYLES,
|
|
94
94
|
NORMAL_STYLE_ID,
|
|
@@ -172,8 +172,8 @@ import {
|
|
|
172
172
|
tableNestingPluginKey,
|
|
173
173
|
typeAgentText,
|
|
174
174
|
unnestTables
|
|
175
|
-
} from "../chunk-
|
|
176
|
-
import "../chunk-
|
|
175
|
+
} from "../chunk-BVRRIW7F.js";
|
|
176
|
+
import "../chunk-7YW7T5TJ.js";
|
|
177
177
|
import "../chunk-KGRZMHZB.js";
|
|
178
178
|
import "../chunk-N4DFDI73.js";
|
|
179
179
|
import "../chunk-QARCM66V.js";
|
|
@@ -216,7 +216,7 @@ import "../chunk-WJSD3MAZ.js";
|
|
|
216
216
|
import "../chunk-CIQIM2IP.js";
|
|
217
217
|
import "../chunk-VDGBHYC7.js";
|
|
218
218
|
import "../chunk-HF5QZS7Z.js";
|
|
219
|
-
import "../chunk-
|
|
219
|
+
import "../chunk-NS62CQ2B.js";
|
|
220
220
|
import "../chunk-BP6KSGVD.js";
|
|
221
221
|
import "../chunk-6ADHGQ73.js";
|
|
222
222
|
import "../chunk-JEGJP4OW.js";
|