@pixerate/editor 0.58.0 → 0.60.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 (75) hide show
  1. package/dist/agent/index.cjs +111 -38
  2. package/dist/agent/index.cjs.map +1 -1
  3. package/dist/agent/index.d.cts +30 -2
  4. package/dist/agent/index.d.ts +30 -2
  5. package/dist/agent/index.js +96 -23
  6. package/dist/agent/index.js.map +1 -1
  7. package/dist/agent-caret-BmYhQF7L.d.cts +106 -0
  8. package/dist/agent-caret-BmYhQF7L.d.ts +106 -0
  9. package/dist/animation/index.cjs +9 -3
  10. package/dist/animation/index.cjs.map +1 -1
  11. package/dist/animation/index.d.cts +2 -2
  12. package/dist/animation/index.d.ts +2 -2
  13. package/dist/animation/index.js +9 -3
  14. package/dist/animation-editor/index.cjs +535 -124
  15. package/dist/animation-editor/index.cjs.map +1 -1
  16. package/dist/animation-editor/index.d.cts +239 -9
  17. package/dist/animation-editor/index.d.ts +239 -9
  18. package/dist/animation-editor/index.js +494 -83
  19. package/dist/animation-editor/index.js.map +1 -1
  20. package/dist/canvas/index.cjs +35 -29
  21. package/dist/canvas/index.cjs.map +1 -1
  22. package/dist/canvas/index.d.cts +4 -4
  23. package/dist/canvas/index.d.ts +4 -4
  24. package/dist/canvas/index.js +9 -3
  25. package/dist/canvas/index.js.map +1 -1
  26. package/dist/{chunk-O4ONBPZW.cjs → chunk-2FGRTYJN.cjs} +4 -4
  27. package/dist/{chunk-O4ONBPZW.cjs.map → chunk-2FGRTYJN.cjs.map} +1 -1
  28. package/dist/{chunk-XZ4L3R4K.cjs → chunk-2FHLHZAL.cjs} +39 -3
  29. package/dist/chunk-2FHLHZAL.cjs.map +1 -0
  30. package/dist/{chunk-PYMV7HLI.js → chunk-3TLL5OID.js} +2 -2
  31. package/dist/{chunk-LMUDHBWR.js → chunk-4YFMSPBU.js} +2 -2
  32. package/dist/{chunk-3I6V7PI4.cjs → chunk-7ZSU4MQZ.cjs} +45 -45
  33. package/dist/{chunk-3I6V7PI4.cjs.map → chunk-7ZSU4MQZ.cjs.map} +1 -1
  34. package/dist/{chunk-UB2OY7FD.js → chunk-AGR4P4UZ.js} +38 -2
  35. package/dist/chunk-AGR4P4UZ.js.map +1 -0
  36. package/dist/{chunk-SHOVAHUB.js → chunk-JK6M6V7G.js} +2 -2
  37. package/dist/{chunk-WLVZ235X.js → chunk-OK7T2LHK.js} +229 -2
  38. package/dist/chunk-OK7T2LHK.js.map +1 -0
  39. package/dist/{chunk-AHCENCU4.cjs → chunk-T4XWVPJK.cjs} +253 -26
  40. package/dist/chunk-T4XWVPJK.cjs.map +1 -0
  41. package/dist/{chunk-FKONE6AO.cjs → chunk-YJLCBA7V.cjs} +3 -3
  42. package/dist/{chunk-FKONE6AO.cjs.map → chunk-YJLCBA7V.cjs.map} +1 -1
  43. package/dist/{easing-CNGk-W6d.d.ts → easing-lM0Xo9Ni.d.cts} +14 -2
  44. package/dist/{easing-CNGk-W6d.d.cts → easing-lM0Xo9Ni.d.ts} +14 -2
  45. package/dist/extensions/index.cjs +27 -3
  46. package/dist/extensions/index.cjs.map +1 -1
  47. package/dist/extensions/index.d.cts +2 -1
  48. package/dist/extensions/index.d.ts +2 -1
  49. package/dist/extensions/index.js +26 -2
  50. package/dist/{index-CTCc3m3C.d.ts → index-B16wbOn_.d.ts} +1 -0
  51. package/dist/{index-BcHyG0Wq.d.cts → index-BAt14aIU.d.cts} +1 -0
  52. package/dist/index.cjs +32 -8
  53. package/dist/index.cjs.map +1 -1
  54. package/dist/index.d.cts +3 -2
  55. package/dist/index.d.ts +3 -2
  56. package/dist/index.js +26 -2
  57. package/dist/index.js.map +1 -1
  58. package/dist/parameters/index.cjs +2 -2
  59. package/dist/parameters/index.d.cts +1 -1
  60. package/dist/parameters/index.d.ts +1 -1
  61. package/dist/parameters/index.js +1 -1
  62. package/dist/{player-W-5DX3Go.d.ts → player-DV4Jujdq.d.ts} +1 -1
  63. package/dist/{player-Dg0FT0UI.d.cts → player-DrcP2xqj.d.cts} +1 -1
  64. package/dist/vector/index.cjs +472 -472
  65. package/dist/vector/index.d.cts +1 -1
  66. package/dist/vector/index.d.ts +1 -1
  67. package/dist/vector/index.js +2 -2
  68. package/package.json +1 -1
  69. package/dist/chunk-AHCENCU4.cjs.map +0 -1
  70. package/dist/chunk-UB2OY7FD.js.map +0 -1
  71. package/dist/chunk-WLVZ235X.js.map +0 -1
  72. package/dist/chunk-XZ4L3R4K.cjs.map +0 -1
  73. /package/dist/{chunk-PYMV7HLI.js.map → chunk-3TLL5OID.js.map} +0 -0
  74. /package/dist/{chunk-LMUDHBWR.js.map → chunk-4YFMSPBU.js.map} +0 -0
  75. /package/dist/{chunk-SHOVAHUB.js.map → chunk-JK6M6V7G.js.map} +0 -0
@@ -0,0 +1,106 @@
1
+ import { Extension, Editor } from '@tiptap/core';
2
+ import { PluginKey, Plugin, EditorState, Transaction } from '@tiptap/pm/state';
3
+ import { DecorationSet } from '@tiptap/pm/view';
4
+
5
+ /**
6
+ * Inline agent carets: a coloured caret with a name tag at a document position, the agent's
7
+ * selection highlighted, and the text it just changed tinted for a moment — as collaborators'
8
+ * cursors look in Google Docs. Decorations, so they follow the text as anyone edits it.
9
+ *
10
+ * `typeAgentText` plays an edit out a few characters at a time and still lands it as one undo step.
11
+ */
12
+ declare const DEFAULT_AGENT_CARET_COLOR = "#8b5cf6";
13
+ declare const DEFAULT_AGENT_CARET_NAME = "Agent";
14
+ interface AgentCaretInput {
15
+ /** Stable id of the agent (one caret per id). */
16
+ id: string;
17
+ /** Name on the caret's tag (default "Agent"). */
18
+ name?: string;
19
+ /** CSS colour of the caret, tag and highlights (default violet). */
20
+ color?: string;
21
+ /** Selection anchor (document position). */
22
+ from: number;
23
+ /** Selection head, where the caret is drawn (default `from`). */
24
+ to?: number;
25
+ }
26
+ /** A range an agent is typing into, mapped through everyone's edits (see `typeAgentText`). */
27
+ interface TypingSpan {
28
+ from: number;
29
+ to: number;
30
+ /** Someone else changed the document while the agent typed. */
31
+ foreign: boolean;
32
+ }
33
+ interface AgentCaretState {
34
+ carets: AgentCaret[];
35
+ spans: Record<string, TypingSpan>;
36
+ decorations: DecorationSet;
37
+ }
38
+ declare const agentCaretPluginKey: PluginKey<AgentCaretState>;
39
+ /** The ProseMirror plugin behind `AgentCaret` (one per editor). */
40
+ declare function createAgentCaretPlugin(): Plugin<AgentCaretState>;
41
+ interface AgentCaret {
42
+ id: string;
43
+ name: string;
44
+ color: string;
45
+ anchor: number;
46
+ head: number;
47
+ /** Ranges the agent just changed, tinted until `clearAgentChanges`. */
48
+ changed: Array<{
49
+ from: number;
50
+ to: number;
51
+ }>;
52
+ }
53
+ /** TipTap extension drawing agent carets. Optional: the helpers below add the plugin when it's missing. */
54
+ declare const AgentCaret: Extension<any, any>;
55
+ /** Adds the agent caret plugin to a mounted editor that wasn't created with `AgentCaret`. */
56
+ declare function ensureAgentCaret(editor: Editor): void;
57
+ /** Shows (or moves) an agent's caret; `from < to` also highlights its selection. */
58
+ declare function setAgentCaret(editor: Editor, caret: AgentCaretInput): void;
59
+ /** Removes one agent's caret, or every agent caret when `id` is omitted. */
60
+ declare function clearAgentCaret(editor: Editor, id?: string): void;
61
+ /** Tints ranges an agent just changed (replacing its previous ones); `[]` clears them. */
62
+ declare function markAgentChanges(editor: Editor, id: string, ranges: Array<{
63
+ from: number;
64
+ to: number;
65
+ }>): void;
66
+ /** The agent carets in an editor state (empty when the plugin isn't installed). */
67
+ declare function getAgentCarets(state: EditorState): AgentCaret[];
68
+ /**
69
+ * A transaction replacing `from..to` with literal text (HTML is not parsed; newlines split
70
+ * paragraphs), as the rich-text agent tools write it.
71
+ */
72
+ declare function replaceWithTextTransaction(state: EditorState, from: number, to: number, text: string): Transaction;
73
+ interface AgentTypingOptions {
74
+ /** Typing speed in characters per second (default 60). */
75
+ charsPerSecond?: number;
76
+ /** Longest a single edit takes to type, in ms; longer text types faster (default 1500). */
77
+ maxDurationMs?: number;
78
+ /** How long a replaced range stays highlighted before typing starts, in ms (default 250). */
79
+ selectMs?: number;
80
+ }
81
+ interface TypeAgentTextOptions extends AgentTypingOptions {
82
+ from: number;
83
+ to: number;
84
+ text: string;
85
+ /** The agent's caret, drawn where it types. */
86
+ caret: Omit<AgentCaretInput, "from" | "to">;
87
+ /** Stops typing and leaves the document as it was. */
88
+ signal?: AbortSignal;
89
+ /** Waits between frames (default `setTimeout`; injectable for tests). */
90
+ wait?: (ms: number) => Promise<void>;
91
+ }
92
+ /**
93
+ * Replaces `from..to` with `text` while the agent's caret types it out, then commits the edit as
94
+ * ONE undo step (the frames are kept out of history, rolled back and replaced by a single
95
+ * transaction in the same tick, so the screen never shows the rollback). Without a visible window,
96
+ * or with `charsPerSecond: Infinity`, the edit applies at once. Returns the inserted range.
97
+ *
98
+ * If the signal aborts or the editor is destroyed mid-way, the typed frames are rolled back and
99
+ * the promise rejects; nothing partial stays in the document.
100
+ */
101
+ declare function typeAgentText(editor: Editor, options: TypeAgentTextOptions): Promise<{
102
+ from: number;
103
+ to: number;
104
+ }>;
105
+
106
+ export { type AgentTypingOptions as A, DEFAULT_AGENT_CARET_COLOR as D, type TypeAgentTextOptions as T, AgentCaret as a, type AgentCaretInput as b, DEFAULT_AGENT_CARET_NAME as c, agentCaretPluginKey as d, clearAgentCaret as e, createAgentCaretPlugin as f, ensureAgentCaret as g, getAgentCarets as h, markAgentChanges as m, replaceWithTextTransaction as r, setAgentCaret as s, typeAgentText as t };
@@ -0,0 +1,106 @@
1
+ import { Extension, Editor } from '@tiptap/core';
2
+ import { PluginKey, Plugin, EditorState, Transaction } from '@tiptap/pm/state';
3
+ import { DecorationSet } from '@tiptap/pm/view';
4
+
5
+ /**
6
+ * Inline agent carets: a coloured caret with a name tag at a document position, the agent's
7
+ * selection highlighted, and the text it just changed tinted for a moment — as collaborators'
8
+ * cursors look in Google Docs. Decorations, so they follow the text as anyone edits it.
9
+ *
10
+ * `typeAgentText` plays an edit out a few characters at a time and still lands it as one undo step.
11
+ */
12
+ declare const DEFAULT_AGENT_CARET_COLOR = "#8b5cf6";
13
+ declare const DEFAULT_AGENT_CARET_NAME = "Agent";
14
+ interface AgentCaretInput {
15
+ /** Stable id of the agent (one caret per id). */
16
+ id: string;
17
+ /** Name on the caret's tag (default "Agent"). */
18
+ name?: string;
19
+ /** CSS colour of the caret, tag and highlights (default violet). */
20
+ color?: string;
21
+ /** Selection anchor (document position). */
22
+ from: number;
23
+ /** Selection head, where the caret is drawn (default `from`). */
24
+ to?: number;
25
+ }
26
+ /** A range an agent is typing into, mapped through everyone's edits (see `typeAgentText`). */
27
+ interface TypingSpan {
28
+ from: number;
29
+ to: number;
30
+ /** Someone else changed the document while the agent typed. */
31
+ foreign: boolean;
32
+ }
33
+ interface AgentCaretState {
34
+ carets: AgentCaret[];
35
+ spans: Record<string, TypingSpan>;
36
+ decorations: DecorationSet;
37
+ }
38
+ declare const agentCaretPluginKey: PluginKey<AgentCaretState>;
39
+ /** The ProseMirror plugin behind `AgentCaret` (one per editor). */
40
+ declare function createAgentCaretPlugin(): Plugin<AgentCaretState>;
41
+ interface AgentCaret {
42
+ id: string;
43
+ name: string;
44
+ color: string;
45
+ anchor: number;
46
+ head: number;
47
+ /** Ranges the agent just changed, tinted until `clearAgentChanges`. */
48
+ changed: Array<{
49
+ from: number;
50
+ to: number;
51
+ }>;
52
+ }
53
+ /** TipTap extension drawing agent carets. Optional: the helpers below add the plugin when it's missing. */
54
+ declare const AgentCaret: Extension<any, any>;
55
+ /** Adds the agent caret plugin to a mounted editor that wasn't created with `AgentCaret`. */
56
+ declare function ensureAgentCaret(editor: Editor): void;
57
+ /** Shows (or moves) an agent's caret; `from < to` also highlights its selection. */
58
+ declare function setAgentCaret(editor: Editor, caret: AgentCaretInput): void;
59
+ /** Removes one agent's caret, or every agent caret when `id` is omitted. */
60
+ declare function clearAgentCaret(editor: Editor, id?: string): void;
61
+ /** Tints ranges an agent just changed (replacing its previous ones); `[]` clears them. */
62
+ declare function markAgentChanges(editor: Editor, id: string, ranges: Array<{
63
+ from: number;
64
+ to: number;
65
+ }>): void;
66
+ /** The agent carets in an editor state (empty when the plugin isn't installed). */
67
+ declare function getAgentCarets(state: EditorState): AgentCaret[];
68
+ /**
69
+ * A transaction replacing `from..to` with literal text (HTML is not parsed; newlines split
70
+ * paragraphs), as the rich-text agent tools write it.
71
+ */
72
+ declare function replaceWithTextTransaction(state: EditorState, from: number, to: number, text: string): Transaction;
73
+ interface AgentTypingOptions {
74
+ /** Typing speed in characters per second (default 60). */
75
+ charsPerSecond?: number;
76
+ /** Longest a single edit takes to type, in ms; longer text types faster (default 1500). */
77
+ maxDurationMs?: number;
78
+ /** How long a replaced range stays highlighted before typing starts, in ms (default 250). */
79
+ selectMs?: number;
80
+ }
81
+ interface TypeAgentTextOptions extends AgentTypingOptions {
82
+ from: number;
83
+ to: number;
84
+ text: string;
85
+ /** The agent's caret, drawn where it types. */
86
+ caret: Omit<AgentCaretInput, "from" | "to">;
87
+ /** Stops typing and leaves the document as it was. */
88
+ signal?: AbortSignal;
89
+ /** Waits between frames (default `setTimeout`; injectable for tests). */
90
+ wait?: (ms: number) => Promise<void>;
91
+ }
92
+ /**
93
+ * Replaces `from..to` with `text` while the agent's caret types it out, then commits the edit as
94
+ * ONE undo step (the frames are kept out of history, rolled back and replaced by a single
95
+ * transaction in the same tick, so the screen never shows the rollback). Without a visible window,
96
+ * or with `charsPerSecond: Infinity`, the edit applies at once. Returns the inserted range.
97
+ *
98
+ * If the signal aborts or the editor is destroyed mid-way, the typed frames are rolled back and
99
+ * the promise rejects; nothing partial stays in the document.
100
+ */
101
+ declare function typeAgentText(editor: Editor, options: TypeAgentTextOptions): Promise<{
102
+ from: number;
103
+ to: number;
104
+ }>;
105
+
106
+ export { type AgentTypingOptions as A, DEFAULT_AGENT_CARET_COLOR as D, type TypeAgentTextOptions as T, AgentCaret as a, type AgentCaretInput as b, DEFAULT_AGENT_CARET_NAME as c, agentCaretPluginKey as d, clearAgentCaret as e, createAgentCaretPlugin as f, ensureAgentCaret as g, getAgentCarets as h, markAgentChanges as m, replaceWithTextTransaction as r, setAgentCaret as s, typeAgentText as t };
@@ -26,7 +26,7 @@ var _chunkZCNLBRT6cjs = require('../chunk-ZCNLBRT6.cjs');
26
26
 
27
27
 
28
28
 
29
- var _chunkO4ONBPZWcjs = require('../chunk-O4ONBPZW.cjs');
29
+ var _chunk2FGRTYJNcjs = require('../chunk-2FGRTYJN.cjs');
30
30
 
31
31
 
32
32
 
@@ -49,10 +49,10 @@ require('../chunk-A6PHCAGX.cjs');
49
49
 
50
50
 
51
51
 
52
- var _chunkXZ4L3R4Kcjs = require('../chunk-XZ4L3R4K.cjs');
53
52
 
54
53
 
55
54
 
55
+ var _chunk2FHLHZALcjs = require('../chunk-2FHLHZAL.cjs');
56
56
 
57
57
 
58
58
 
@@ -92,5 +92,11 @@ var _chunkXZ4L3R4Kcjs = require('../chunk-XZ4L3R4K.cjs');
92
92
 
93
93
 
94
94
 
95
- exports.ANIMATION_EASING_LABELS = _chunkXZ4L3R4Kcjs.ANIMATION_EASING_LABELS; exports.ANIMATION_EASING_PRESETS = _chunkXZ4L3R4Kcjs.ANIMATION_EASING_PRESETS; exports.ANIMATION_TIME_EPSILON = _chunkO4ONBPZWcjs.ANIMATION_TIME_EPSILON; exports.AnimationPlayer = _chunkO4ONBPZWcjs.AnimationPlayer; exports.CUBIC_BEZIER_PRESETS = _chunkXZ4L3R4Kcjs.CUBIC_BEZIER_PRESETS; exports.MOTION_BEHAVIORS = _chunkZCNLBRT6cjs.MOTION_BEHAVIORS; exports.ManualClock = _chunkO4ONBPZWcjs.ManualClock; exports.PRESENCE_COLORS = _chunkEGFUVXKKcjs.PRESENCE_COLORS; exports.PerformanceQueue = _chunkEGFUVXKKcjs.PerformanceQueue; exports.PresenceStore = _chunkEGFUVXKKcjs.PresenceStore; exports.behaviorProgress = _chunkZCNLBRT6cjs.behaviorProgress; exports.createAnimationPlayer = _chunkO4ONBPZWcjs.createAnimationPlayer; exports.createInstantPresenceClock = _chunkEGFUVXKKcjs.createInstantPresenceClock; exports.cubicBezierAt = _chunkXZ4L3R4Kcjs.cubicBezierAt; exports.easingFromInfluence = _chunkXZ4L3R4Kcjs.easingFromInfluence; exports.easingLabel = _chunkXZ4L3R4Kcjs.easingLabel; exports.easingToCss = _chunkXZ4L3R4Kcjs.easingToCss; exports.elasticAt = _chunkXZ4L3R4Kcjs.elasticAt; exports.evaluateEasing = _chunkXZ4L3R4Kcjs.evaluateEasing; exports.evaluateTrack = _chunkO4ONBPZWcjs.evaluateTrack; exports.formatOklab = _chunkMR3Z4OQIcjs.formatOklab; exports.fractalWiggle = _chunkZCNLBRT6cjs.fractalWiggle; exports.interpolateAnimationValue = _chunkO4ONBPZWcjs.interpolateAnimationValue; exports.isAnimationEasing = _chunkXZ4L3R4Kcjs.isAnimationEasing; exports.isAnimationKeyframe = _chunkO4ONBPZWcjs.isAnimationKeyframe; exports.isMotionBehavior = _chunkZCNLBRT6cjs.isMotionBehavior; exports.mixColorsOklab = _chunkMR3Z4OQIcjs.mixColorsOklab; exports.motionSeedFromId = _chunkZCNLBRT6cjs.motionSeedFromId; exports.normalizeKeyframes = _chunkO4ONBPZWcjs.normalizeKeyframes; exports.oklabToRgb = _chunkMR3Z4OQIcjs.oklabToRgb; exports.pageHidden = _chunkO4ONBPZWcjs.pageHidden; exports.parseCssEasing = _chunkXZ4L3R4Kcjs.parseCssEasing; exports.parseOklab = _chunkMR3Z4OQIcjs.parseOklab; exports.quinticFade = _chunkZCNLBRT6cjs.quinticFade; exports.realClock = _chunkO4ONBPZWcjs.realClock; exports.realPresenceClock = _chunkEGFUVXKKcjs.realPresenceClock; exports.resolveEasing = _chunkXZ4L3R4Kcjs.resolveEasing; exports.rgbToOklab = _chunkMR3Z4OQIcjs.rgbToOklab; exports.springAt = _chunkXZ4L3R4Kcjs.springAt; exports.tweenPresenceCursor = _chunkEGFUVXKKcjs.tweenPresenceCursor; exports.wrapAnimationTime = _chunkO4ONBPZWcjs.wrapAnimationTime;
95
+
96
+
97
+
98
+
99
+
100
+
101
+ exports.ANIMATION_EASING_LABELS = _chunk2FHLHZALcjs.ANIMATION_EASING_LABELS; exports.ANIMATION_EASING_PRESETS = _chunk2FHLHZALcjs.ANIMATION_EASING_PRESETS; exports.ANIMATION_TIME_EPSILON = _chunk2FGRTYJNcjs.ANIMATION_TIME_EPSILON; exports.AnimationPlayer = _chunk2FGRTYJNcjs.AnimationPlayer; exports.CUBIC_BEZIER_PRESETS = _chunk2FHLHZALcjs.CUBIC_BEZIER_PRESETS; exports.MOTION_BEHAVIORS = _chunkZCNLBRT6cjs.MOTION_BEHAVIORS; exports.ManualClock = _chunk2FGRTYJNcjs.ManualClock; exports.PRESENCE_COLORS = _chunkEGFUVXKKcjs.PRESENCE_COLORS; exports.PerformanceQueue = _chunkEGFUVXKKcjs.PerformanceQueue; exports.PresenceStore = _chunkEGFUVXKKcjs.PresenceStore; exports.SPRING_PRESETS = _chunk2FHLHZALcjs.SPRING_PRESETS; exports.behaviorProgress = _chunkZCNLBRT6cjs.behaviorProgress; exports.createAnimationPlayer = _chunk2FGRTYJNcjs.createAnimationPlayer; exports.createInstantPresenceClock = _chunkEGFUVXKKcjs.createInstantPresenceClock; exports.cubicBezierAt = _chunk2FHLHZALcjs.cubicBezierAt; exports.easingFromInfluence = _chunk2FHLHZALcjs.easingFromInfluence; exports.easingLabel = _chunk2FHLHZALcjs.easingLabel; exports.easingToCss = _chunk2FHLHZALcjs.easingToCss; exports.elasticAt = _chunk2FHLHZALcjs.elasticAt; exports.evaluateEasing = _chunk2FHLHZALcjs.evaluateEasing; exports.evaluateTrack = _chunk2FGRTYJNcjs.evaluateTrack; exports.formatOklab = _chunkMR3Z4OQIcjs.formatOklab; exports.fractalWiggle = _chunkZCNLBRT6cjs.fractalWiggle; exports.interpolateAnimationValue = _chunk2FGRTYJNcjs.interpolateAnimationValue; exports.isAnimationEasing = _chunk2FHLHZALcjs.isAnimationEasing; exports.isAnimationKeyframe = _chunk2FGRTYJNcjs.isAnimationKeyframe; exports.isMotionBehavior = _chunkZCNLBRT6cjs.isMotionBehavior; exports.mixColorsOklab = _chunkMR3Z4OQIcjs.mixColorsOklab; exports.motionSeedFromId = _chunkZCNLBRT6cjs.motionSeedFromId; exports.normalizeKeyframes = _chunk2FGRTYJNcjs.normalizeKeyframes; exports.oklabToRgb = _chunkMR3Z4OQIcjs.oklabToRgb; exports.pageHidden = _chunk2FGRTYJNcjs.pageHidden; exports.parseCssEasing = _chunk2FHLHZALcjs.parseCssEasing; exports.parseOklab = _chunkMR3Z4OQIcjs.parseOklab; exports.quinticFade = _chunkZCNLBRT6cjs.quinticFade; exports.realClock = _chunk2FGRTYJNcjs.realClock; exports.realPresenceClock = _chunkEGFUVXKKcjs.realPresenceClock; exports.resolveEasing = _chunk2FHLHZALcjs.resolveEasing; exports.reverseCubicBezier = _chunk2FHLHZALcjs.reverseCubicBezier; exports.rgbToOklab = _chunkMR3Z4OQIcjs.rgbToOklab; exports.springAt = _chunk2FHLHZALcjs.springAt; exports.springSettleMs = _chunk2FHLHZALcjs.springSettleMs; exports.tweenPresenceCursor = _chunkEGFUVXKKcjs.tweenPresenceCursor; exports.wrapAnimationTime = _chunk2FGRTYJNcjs.wrapAnimationTime;
96
102
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/editor/editor/packages/core/dist/animation/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,w9EAAC","file":"/home/runner/work/editor/editor/packages/core/dist/animation/index.cjs"}
1
+ {"version":3,"sources":["/home/runner/work/editor/editor/packages/core/dist/animation/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,ipFAAC","file":"/home/runner/work/editor/editor/packages/core/dist/animation/index.cjs"}
@@ -1,5 +1,5 @@
1
- export { A as ANIMATION_EASING_LABELS, a as ANIMATION_EASING_PRESETS, b as AnimationEasing, c as AnimationEasingPreset, C as CUBIC_BEZIER_PRESETS, d as CubicBezierEasing, E as ElasticEasing, S as SpringEasing, e as cubicBezierAt, f as easingFromInfluence, g as easingLabel, h as easingToCss, i as elasticAt, j as evaluateEasing, k as isAnimationEasing, p as parseCssEasing, r as resolveEasing, s as springAt } from '../easing-CNGk-W6d.cjs';
1
+ export { A as ANIMATION_EASING_LABELS, a as ANIMATION_EASING_PRESETS, b as AnimationEasing, c as AnimationEasingPreset, C as CUBIC_BEZIER_PRESETS, d as CubicBezierEasing, E as ElasticEasing, S as SPRING_PRESETS, e as SpringEasing, f as cubicBezierAt, g as easingFromInfluence, h as easingLabel, i as easingToCss, j as elasticAt, k as evaluateEasing, l as isAnimationEasing, p as parseCssEasing, r as resolveEasing, m as reverseCubicBezier, s as springAt, n as springSettleMs } from '../easing-lM0Xo9Ni.cjs';
2
2
  export { M as MOTION_BEHAVIORS, a as MotionBehavior, b as behaviorProgress, f as fractalWiggle, i as isMotionBehavior, m as motionSeedFromId, q as quinticFade } from '../behavior-Ymbld6jL.cjs';
3
3
  export { O as OklabColor, f as formatOklab, m as mixColorsOklab, o as oklabToRgb, p as parseOklab, r as rgbToOklab } from '../color-E9pwm--w.cjs';
4
- export { A as ANIMATION_TIME_EPSILON, a as AnimationKeyframe, b as AnimationLoopMode, c as AnimationPlayer, d as AnimationPlayerOptions, e as AnimationPlayerState, f as AnimationTrack, g as AnimationValue, h as AnimationValueType, C as Clock, M as ManualClock, i as createAnimationPlayer, j as evaluateTrack, k as interpolateAnimationValue, l as isAnimationKeyframe, n as normalizeKeyframes, p as pageHidden, r as realClock, w as wrapAnimationTime } from '../player-Dg0FT0UI.cjs';
4
+ export { A as ANIMATION_TIME_EPSILON, a as AnimationKeyframe, b as AnimationLoopMode, c as AnimationPlayer, d as AnimationPlayerOptions, e as AnimationPlayerState, f as AnimationTrack, g as AnimationValue, h as AnimationValueType, C as Clock, M as ManualClock, i as createAnimationPlayer, j as evaluateTrack, k as interpolateAnimationValue, l as isAnimationKeyframe, n as normalizeKeyframes, p as pageHidden, r as realClock, w as wrapAnimationTime } from '../player-DrcP2xqj.cjs';
5
5
  export { P as PRESENCE_COLORS, a as PerformanceQueue, b as PerformanceQueueOptions, c as PresenceActor, d as PresenceActorInfo, e as PresenceClock, f as PresenceState, g as PresenceStore, h as createInstantPresenceClock, r as realPresenceClock, t as tweenPresenceCursor } from '../presence-Cb6WhcrQ.cjs';
@@ -1,5 +1,5 @@
1
- export { A as ANIMATION_EASING_LABELS, a as ANIMATION_EASING_PRESETS, b as AnimationEasing, c as AnimationEasingPreset, C as CUBIC_BEZIER_PRESETS, d as CubicBezierEasing, E as ElasticEasing, S as SpringEasing, e as cubicBezierAt, f as easingFromInfluence, g as easingLabel, h as easingToCss, i as elasticAt, j as evaluateEasing, k as isAnimationEasing, p as parseCssEasing, r as resolveEasing, s as springAt } from '../easing-CNGk-W6d.js';
1
+ export { A as ANIMATION_EASING_LABELS, a as ANIMATION_EASING_PRESETS, b as AnimationEasing, c as AnimationEasingPreset, C as CUBIC_BEZIER_PRESETS, d as CubicBezierEasing, E as ElasticEasing, S as SPRING_PRESETS, e as SpringEasing, f as cubicBezierAt, g as easingFromInfluence, h as easingLabel, i as easingToCss, j as elasticAt, k as evaluateEasing, l as isAnimationEasing, p as parseCssEasing, r as resolveEasing, m as reverseCubicBezier, s as springAt, n as springSettleMs } from '../easing-lM0Xo9Ni.js';
2
2
  export { M as MOTION_BEHAVIORS, a as MotionBehavior, b as behaviorProgress, f as fractalWiggle, i as isMotionBehavior, m as motionSeedFromId, q as quinticFade } from '../behavior-Ymbld6jL.js';
3
3
  export { O as OklabColor, f as formatOklab, m as mixColorsOklab, o as oklabToRgb, p as parseOklab, r as rgbToOklab } from '../color-E9pwm--w.js';
4
- export { A as ANIMATION_TIME_EPSILON, a as AnimationKeyframe, b as AnimationLoopMode, c as AnimationPlayer, d as AnimationPlayerOptions, e as AnimationPlayerState, f as AnimationTrack, g as AnimationValue, h as AnimationValueType, C as Clock, M as ManualClock, i as createAnimationPlayer, j as evaluateTrack, k as interpolateAnimationValue, l as isAnimationKeyframe, n as normalizeKeyframes, p as pageHidden, r as realClock, w as wrapAnimationTime } from '../player-W-5DX3Go.js';
4
+ export { A as ANIMATION_TIME_EPSILON, a as AnimationKeyframe, b as AnimationLoopMode, c as AnimationPlayer, d as AnimationPlayerOptions, e as AnimationPlayerState, f as AnimationTrack, g as AnimationValue, h as AnimationValueType, C as Clock, M as ManualClock, i as createAnimationPlayer, j as evaluateTrack, k as interpolateAnimationValue, l as isAnimationKeyframe, n as normalizeKeyframes, p as pageHidden, r as realClock, w as wrapAnimationTime } from '../player-DV4Jujdq.js';
5
5
  export { P as PRESENCE_COLORS, a as PerformanceQueue, b as PerformanceQueueOptions, c as PresenceActor, d as PresenceActorInfo, e as PresenceClock, f as PresenceState, g as PresenceStore, h as createInstantPresenceClock, r as realPresenceClock, t as tweenPresenceCursor } from '../presence-Cb6WhcrQ.js';
@@ -26,7 +26,7 @@ import {
26
26
  pageHidden,
27
27
  realClock,
28
28
  wrapAnimationTime
29
- } from "../chunk-SHOVAHUB.js";
29
+ } from "../chunk-JK6M6V7G.js";
30
30
  import {
31
31
  formatOklab,
32
32
  mixColorsOklab,
@@ -39,6 +39,7 @@ import {
39
39
  ANIMATION_EASING_LABELS,
40
40
  ANIMATION_EASING_PRESETS,
41
41
  CUBIC_BEZIER_PRESETS,
42
+ SPRING_PRESETS,
42
43
  cubicBezierAt,
43
44
  easingFromInfluence,
44
45
  easingLabel,
@@ -48,8 +49,10 @@ import {
48
49
  isAnimationEasing,
49
50
  parseCssEasing,
50
51
  resolveEasing,
51
- springAt
52
- } from "../chunk-UB2OY7FD.js";
52
+ reverseCubicBezier,
53
+ springAt,
54
+ springSettleMs
55
+ } from "../chunk-AGR4P4UZ.js";
53
56
  export {
54
57
  ANIMATION_EASING_LABELS,
55
58
  ANIMATION_EASING_PRESETS,
@@ -61,6 +64,7 @@ export {
61
64
  PRESENCE_COLORS,
62
65
  PerformanceQueue,
63
66
  PresenceStore,
67
+ SPRING_PRESETS,
64
68
  behaviorProgress,
65
69
  createAnimationPlayer,
66
70
  createInstantPresenceClock,
@@ -88,8 +92,10 @@ export {
88
92
  realClock,
89
93
  realPresenceClock,
90
94
  resolveEasing,
95
+ reverseCubicBezier,
91
96
  rgbToOklab,
92
97
  springAt,
98
+ springSettleMs,
93
99
  tweenPresenceCursor,
94
100
  wrapAnimationTime
95
101
  };