@pixerate/editor 0.23.0 → 0.25.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 (187) hide show
  1. package/README.md +167 -2
  2. package/THIRD_PARTY_NOTICES.md +80 -0
  3. package/dist/agent/index.cjs +10 -8
  4. package/dist/agent/index.cjs.map +1 -1
  5. package/dist/agent/index.d.cts +4 -3
  6. package/dist/agent/index.d.ts +4 -3
  7. package/dist/agent/index.js +4 -2
  8. package/dist/agent/index.js.map +1 -1
  9. package/dist/canvas/index.cjs +4437 -411
  10. package/dist/canvas/index.cjs.map +1 -1
  11. package/dist/canvas/index.d.cts +934 -4
  12. package/dist/canvas/index.d.ts +934 -4
  13. package/dist/canvas/index.js +4309 -283
  14. package/dist/canvas/index.js.map +1 -1
  15. package/dist/chunk-4BVP64JJ.cjs +1406 -0
  16. package/dist/chunk-4BVP64JJ.cjs.map +1 -0
  17. package/dist/chunk-664LQYFJ.js +115 -0
  18. package/dist/chunk-664LQYFJ.js.map +1 -0
  19. package/dist/chunk-7WISYZFO.cjs +740 -0
  20. package/dist/chunk-7WISYZFO.cjs.map +1 -0
  21. package/dist/chunk-AL6JMGWW.cjs +783 -0
  22. package/dist/chunk-AL6JMGWW.cjs.map +1 -0
  23. package/dist/chunk-BVP3TSLH.cjs +69 -0
  24. package/dist/chunk-BVP3TSLH.cjs.map +1 -0
  25. package/dist/{chunk-RIKBJLS2.cjs → chunk-C7P22VIP.cjs} +2001 -279
  26. package/dist/chunk-C7P22VIP.cjs.map +1 -0
  27. package/dist/chunk-D6FH2YAX.cjs +131 -0
  28. package/dist/chunk-D6FH2YAX.cjs.map +1 -0
  29. package/dist/chunk-ECCCYKGL.js +740 -0
  30. package/dist/chunk-ECCCYKGL.js.map +1 -0
  31. package/dist/{chunk-4SUNJZWB.cjs → chunk-FD4LPFAE.cjs} +48 -200
  32. package/dist/chunk-FD4LPFAE.cjs.map +1 -0
  33. package/dist/{chunk-QBJ22YZR.js → chunk-FH6F67DN.js} +1999 -277
  34. package/dist/chunk-FH6F67DN.js.map +1 -0
  35. package/dist/{chunk-OYXSKQFR.js → chunk-FPENXAEJ.js} +35 -187
  36. package/dist/chunk-FPENXAEJ.js.map +1 -0
  37. package/dist/chunk-HLIMTC6N.js +1 -0
  38. package/dist/chunk-HLIMTC6N.js.map +1 -0
  39. package/dist/chunk-HRMEDT2L.js +1406 -0
  40. package/dist/chunk-HRMEDT2L.js.map +1 -0
  41. package/dist/{chunk-QGHGJ56O.js → chunk-IXHSYOVY.js} +2518 -122
  42. package/dist/chunk-IXHSYOVY.js.map +1 -0
  43. package/dist/chunk-MKA3AHLV.cjs +256 -0
  44. package/dist/chunk-MKA3AHLV.cjs.map +1 -0
  45. package/dist/chunk-NAXVVS5I.js +783 -0
  46. package/dist/chunk-NAXVVS5I.js.map +1 -0
  47. package/dist/chunk-O5RYH2PG.js +69 -0
  48. package/dist/chunk-O5RYH2PG.js.map +1 -0
  49. package/dist/chunk-OXSV64JX.js +689 -0
  50. package/dist/chunk-OXSV64JX.js.map +1 -0
  51. package/dist/chunk-P3RQ5UJE.cjs +689 -0
  52. package/dist/chunk-P3RQ5UJE.cjs.map +1 -0
  53. package/dist/chunk-P6ODPZ4W.js +256 -0
  54. package/dist/chunk-P6ODPZ4W.js.map +1 -0
  55. package/dist/chunk-PL4JB3BF.cjs +1 -0
  56. package/dist/chunk-PL4JB3BF.cjs.map +1 -0
  57. package/dist/{chunk-GVSMRPHB.cjs → chunk-PO6A6QQH.cjs} +2607 -211
  58. package/dist/chunk-PO6A6QQH.cjs.map +1 -0
  59. package/dist/{chunk-JJDLPEWL.js → chunk-QGYDWPRM.js} +2 -2
  60. package/dist/chunk-RR7F5GUM.js +5726 -0
  61. package/dist/chunk-RR7F5GUM.js.map +1 -0
  62. package/dist/chunk-TNNJXF46.cjs +115 -0
  63. package/dist/chunk-TNNJXF46.cjs.map +1 -0
  64. package/dist/chunk-U5HZSFCS.js +131 -0
  65. package/dist/chunk-U5HZSFCS.js.map +1 -0
  66. package/dist/{chunk-MJZBNWG7.js → chunk-UAKDG62Z.js} +309 -581
  67. package/dist/chunk-UAKDG62Z.js.map +1 -0
  68. package/dist/{chunk-CL37JGFW.cjs → chunk-V3CHHWOE.cjs} +4 -4
  69. package/dist/{chunk-CL37JGFW.cjs.map → chunk-V3CHHWOE.cjs.map} +1 -1
  70. package/dist/chunk-WSQKHXW7.cjs +5726 -0
  71. package/dist/chunk-WSQKHXW7.cjs.map +1 -0
  72. package/dist/{chunk-AA4ZEVCC.cjs → chunk-X4N4WUKB.cjs} +336 -608
  73. package/dist/chunk-X4N4WUKB.cjs.map +1 -0
  74. package/dist/commands/index.cjs +74 -1
  75. package/dist/commands/index.cjs.map +1 -1
  76. package/dist/commands/index.d.cts +38 -353
  77. package/dist/commands/index.d.ts +38 -353
  78. package/dist/commands/index.js +73 -0
  79. package/dist/commands/index.js.map +1 -1
  80. package/dist/comment-store-BEMgVlAA.d.cts +135 -0
  81. package/dist/comment-store-BEMgVlAA.d.ts +135 -0
  82. package/dist/compare/index.cjs +15 -0
  83. package/dist/compare/index.cjs.map +1 -0
  84. package/dist/compare/index.d.cts +58 -0
  85. package/dist/compare/index.d.ts +58 -0
  86. package/dist/compare/index.js +15 -0
  87. package/dist/compare/index.js.map +1 -0
  88. package/dist/controller-BIJiNoVs.d.cts +1842 -0
  89. package/dist/controller-BIJiNoVs.d.ts +1842 -0
  90. package/dist/documents-CHT1U5Vs.d.ts +86 -0
  91. package/dist/documents-Gp7wb0Me.d.cts +86 -0
  92. package/dist/extensions/index.cjs +100 -5
  93. package/dist/extensions/index.cjs.map +1 -1
  94. package/dist/extensions/index.d.cts +16 -4
  95. package/dist/extensions/index.d.ts +16 -4
  96. package/dist/extensions/index.js +100 -5
  97. package/dist/generation/index.cjs +2317 -0
  98. package/dist/generation/index.cjs.map +1 -0
  99. package/dist/generation/index.d.cts +1015 -0
  100. package/dist/generation/index.d.ts +1015 -0
  101. package/dist/generation/index.js +2317 -0
  102. package/dist/generation/index.js.map +1 -0
  103. package/dist/grammar/index.cjs +48 -3
  104. package/dist/grammar/index.cjs.map +1 -1
  105. package/dist/grammar/index.d.cts +322 -100
  106. package/dist/grammar/index.d.ts +322 -100
  107. package/dist/grammar/index.js +54 -9
  108. package/dist/image-editor/index.cjs +4392 -481
  109. package/dist/image-editor/index.cjs.map +1 -1
  110. package/dist/image-editor/index.d.cts +1249 -97
  111. package/dist/image-editor/index.d.ts +1249 -97
  112. package/dist/image-editor/index.js +4281 -370
  113. package/dist/image-editor/index.js.map +1 -1
  114. package/dist/index-7a6bHTLy.d.ts +1754 -0
  115. package/dist/index-Csd5qI8u.d.cts +1754 -0
  116. package/dist/index.cjs +1682 -99
  117. package/dist/index.cjs.map +1 -1
  118. package/dist/index.d.cts +118 -21
  119. package/dist/index.d.ts +118 -21
  120. package/dist/index.js +1630 -47
  121. package/dist/index.js.map +1 -1
  122. package/dist/mention-text-CDnCFd3c.d.cts +53 -0
  123. package/dist/mention-text-CDnCFd3c.d.ts +53 -0
  124. package/dist/migrate-iTlm3a8h.d.cts +112 -0
  125. package/dist/migrate-iTlm3a8h.d.ts +112 -0
  126. package/dist/model-C1zApQM8.d.cts +219 -0
  127. package/dist/model-C1zApQM8.d.ts +219 -0
  128. package/dist/persistence/index.cjs +676 -0
  129. package/dist/persistence/index.cjs.map +1 -0
  130. package/dist/persistence/index.d.cts +230 -0
  131. package/dist/persistence/index.d.ts +230 -0
  132. package/dist/persistence/index.js +676 -0
  133. package/dist/persistence/index.js.map +1 -0
  134. package/dist/{registry-D5-R90p0.d.cts → registry-BDe-vlv3.d.ts} +2 -40
  135. package/dist/{registry-GJI4gToU.d.ts → registry-CEgwXED1.d.cts} +12 -1
  136. package/dist/{registry-GJI4gToU.d.cts → registry-CEgwXED1.d.ts} +12 -1
  137. package/dist/registry-D32LpIc4.d.cts +354 -0
  138. package/dist/{registry-D5-R90p0.d.ts → registry-DnzpgY27.d.cts} +2 -40
  139. package/dist/registry-evKTP4ls.d.ts +354 -0
  140. package/dist/schema-DYDGdYL9.d.cts +41 -0
  141. package/dist/schema-DYDGdYL9.d.ts +41 -0
  142. package/dist/serializers/index.cjs +12 -3
  143. package/dist/serializers/index.cjs.map +1 -1
  144. package/dist/serializers/index.d.cts +40 -12
  145. package/dist/serializers/index.d.ts +40 -12
  146. package/dist/serializers/index.js +12 -3
  147. package/dist/sourcemap-C8AH3MBQ.d.cts +91 -0
  148. package/dist/sourcemap-DA1Evhrv.d.ts +91 -0
  149. package/dist/spreadsheet/index.cjs +161 -3
  150. package/dist/spreadsheet/index.cjs.map +1 -1
  151. package/dist/spreadsheet/index.d.cts +611 -20
  152. package/dist/spreadsheet/index.d.ts +611 -20
  153. package/dist/spreadsheet/index.js +168 -10
  154. package/dist/storage-BpFfspHm.d.cts +120 -0
  155. package/dist/storage-BpFfspHm.d.ts +120 -0
  156. package/dist/tokens/index.cjs +115 -0
  157. package/dist/tokens/index.cjs.map +1 -0
  158. package/dist/tokens/index.d.cts +212 -0
  159. package/dist/tokens/index.d.ts +212 -0
  160. package/dist/tokens/index.js +115 -0
  161. package/dist/tokens/index.js.map +1 -0
  162. package/dist/{tokens-CyLZmIei.d.cts → tokens-D7yXvUU6.d.cts} +15 -2
  163. package/dist/{tokens-CyLZmIei.d.ts → tokens-D7yXvUU6.d.ts} +15 -2
  164. package/dist/{track-changes-BSF58RK0.d.cts → track-changes-D_VAPELi.d.cts} +110 -144
  165. package/dist/{track-changes-BSF58RK0.d.ts → track-changes-Db_fGEvx.d.ts} +110 -144
  166. package/package.json +21 -1
  167. package/dist/chunk-4SUNJZWB.cjs.map +0 -1
  168. package/dist/chunk-AA4ZEVCC.cjs.map +0 -1
  169. package/dist/chunk-AXV2ZW34.cjs +0 -118
  170. package/dist/chunk-AXV2ZW34.cjs.map +0 -1
  171. package/dist/chunk-B2ZRLN4S.js +0 -118
  172. package/dist/chunk-B2ZRLN4S.js.map +0 -1
  173. package/dist/chunk-GVSMRPHB.cjs.map +0 -1
  174. package/dist/chunk-K3R5NG2D.js +0 -3100
  175. package/dist/chunk-K3R5NG2D.js.map +0 -1
  176. package/dist/chunk-MJZBNWG7.js.map +0 -1
  177. package/dist/chunk-OYXSKQFR.js.map +0 -1
  178. package/dist/chunk-QBJ22YZR.js.map +0 -1
  179. package/dist/chunk-QGHGJ56O.js.map +0 -1
  180. package/dist/chunk-RIKBJLS2.cjs.map +0 -1
  181. package/dist/chunk-XDMXXC4Z.cjs +0 -3100
  182. package/dist/chunk-XDMXXC4Z.cjs.map +0 -1
  183. package/dist/controller-pePCJLT1.d.cts +0 -959
  184. package/dist/controller-pePCJLT1.d.ts +0 -959
  185. package/dist/index-CCr_z9kF.d.cts +0 -899
  186. package/dist/index-Ck6ajwXh.d.ts +0 -899
  187. /package/dist/{chunk-JJDLPEWL.js.map → chunk-QGYDWPRM.js.map} +0 -0
@@ -1,9 +1,12 @@
1
1
  import { Schema, Slice } from '@tiptap/pm/model';
2
- import { t as TrackedChangesView, h as MentionEntity } from '../track-changes-BSF58RK0.js';
2
+ import { r as TrackedChangesView, d as MentionEntity } from '../track-changes-Db_fGEvx.js';
3
+ import { a as MentionRoleSyntax } from '../mention-text-CDnCFd3c.js';
4
+ export { M as MENTION_REGEX, T as TextMention, f as findTextMentions, b as formatMentionText, s as setMentionRoleInText } from '../mention-text-CDnCFd3c.js';
3
5
  import '@tiptap/core';
4
6
  import '@tiptap/extension-mention';
5
7
  import '@tiptap/suggestion';
6
8
  import '@tiptap/pm/state';
9
+ import '../comment-store-BEMgVlAA.js';
7
10
 
8
11
  interface PlainTextOptions {
9
12
  /**
@@ -44,6 +47,8 @@ interface ExtractedMention {
44
47
  id: string;
45
48
  label: string;
46
49
  type?: string;
50
+ /** Asset role (`data-role`), when set. */
51
+ role?: string;
47
52
  avatarUrl?: string;
48
53
  color?: string;
49
54
  [key: string]: any;
@@ -54,14 +59,6 @@ interface ExtractedMention {
54
59
  */
55
60
  declare function extractMentionsFromDoc(docOrEditor: any): ExtractedMention[];
56
61
 
57
- /**
58
- * Canonical regex pattern for matching @mentions in plain text or markdown.
59
- * Supports:
60
- * - Standard unquoted handles: @username, @user.name, @team_alpha, @sa-1
61
- * - Quoted handles: @"John Doe", "Jane Doe"
62
- * Unquoted handles exclude trailing punctuation (e.g. @violet. matches "violet" without the dot).
63
- */
64
- declare const MENTION_REGEX: RegExp;
65
62
  /**
66
63
  * Split regex identifying markdown code blocks, inline code, URLs, and existing HTML tags.
67
64
  * Used by preprocessMarkdownMentions to ensure non-mention regions remain completely untouched.
@@ -71,6 +68,19 @@ interface MentionSegment {
71
68
  type: "text" | "mention";
72
69
  value: string;
73
70
  handle?: string;
71
+ /** Role written after the handle (`@fox:style`), when role syntax is enabled. */
72
+ role?: string;
73
+ }
74
+ /** A mention with its role (asset mentions: `@fox:style`, or `data-role` on a mention node). */
75
+ interface MentionDetail {
76
+ handle: string;
77
+ role?: string;
78
+ }
79
+ interface ExtractMentionsOptions {
80
+ /** Return `{ handle, role }` objects instead of handles. */
81
+ details?: boolean;
82
+ /** Read `@handle:role` suffixes in text (see {@link MentionRoleSyntax}). Mention nodes' `data-role` is always read in `details` mode. */
83
+ roles?: MentionRoleSyntax;
74
84
  }
75
85
  interface PreprocessMarkdownMentionsOptions {
76
86
  /**
@@ -86,6 +96,11 @@ interface PreprocessMarkdownMentionsOptions {
86
96
  * Custom resolver callback to derive entity metadata for unmatched handles.
87
97
  */
88
98
  resolveMention?: (handle: string) => Partial<MentionEntity> | null | undefined;
99
+ /**
100
+ * Read `@handle:role` and emit the role as `data-role` (the `:role` text is
101
+ * consumed). Off by default. See {@link MentionRoleSyntax}.
102
+ */
103
+ roles?: MentionRoleSyntax;
89
104
  }
90
105
  /**
91
106
  * Strips code blocks and inline code from markdown or HTML content:
@@ -98,13 +113,26 @@ declare function stripMarkdownCode(content: string): string;
98
113
  /**
99
114
  * Extracts unique mention handles from a text, markdown, or HTML string,
100
115
  * ignoring trailing punctuation, code blocks, URLs, and pre-existing HTML mention attributes.
116
+ *
117
+ * With `{ details: true }` it returns `{ handle, role }` objects, unique per
118
+ * handle and role: roles come from mention nodes' `data-role` and, when
119
+ * `roles` is set, from `@handle:role` text. Without options the result is
120
+ * unchanged.
101
121
  */
102
- declare function extractMentions(content: string): string[];
122
+ declare function extractMentions(content: string, options?: ExtractMentionsOptions & {
123
+ details?: false;
124
+ }): string[];
125
+ declare function extractMentions(content: string, options: ExtractMentionsOptions & {
126
+ details: true;
127
+ }): MentionDetail[];
128
+ declare function extractMentions(content: string, options?: ExtractMentionsOptions): string[] | MentionDetail[];
103
129
  /**
104
130
  * Segments a text string into plain text parts and mention tokens.
105
131
  * Correctly leaves trailing punctuation (like ".") as part of the following text segment.
106
132
  */
107
- declare function parseMentionSegments(content: string): MentionSegment[];
133
+ declare function parseMentionSegments(content: string, options?: {
134
+ roles?: MentionRoleSyntax;
135
+ }): MentionSegment[];
108
136
  /**
109
137
  * Preprocesses markdown text by turning raw @mention handles into TipTap-compatible
110
138
  * mention HTML spans (<span class="pixerate-mention-node" data-type="mention" ...>),
@@ -257,4 +285,4 @@ declare function getClipboardData(event: unknown): ClipboardDataLike | null;
257
285
  */
258
286
  declare function readRichClipboard(event: unknown, schema: Schema, mimeType?: string): Slice | null;
259
287
 
260
- export { type ClipboardDataLike, type ExtractedMention, MARKDOWN_MENTION_SPLIT_REGEX, MENTION_REGEX, type MarkdownToHtmlOptions, type MentionSegment, PIXERATE_DOCUMENT_MIME, type PlainTextOptions, type PreprocessMarkdownMentionsOptions, type RichClipboardPayload, type SanitizeHtmlOptions, escapeHtml, extractMentions, extractMentionsFromDoc, getClipboardData, getEditorMarkdown, getEditorText, getSchemaSignature, htmlToPlainText, markdownToTipTapHtml, parseMentionSegments, parseRichClipboardPayload, plainTextToParagraphHtml, plainTextToSlice, plainTextToTipTapHtml, preprocessMarkdownFileLinks, preprocessMarkdownMentions, readRichClipboard, rtfToPlainText, sanitizeHtml, sanitizeImportedHtml, serializeRichClipboardPayload, stripMarkdownCode };
288
+ export { type ClipboardDataLike, type ExtractMentionsOptions, type ExtractedMention, MARKDOWN_MENTION_SPLIT_REGEX, type MarkdownToHtmlOptions, type MentionDetail, MentionRoleSyntax, type MentionSegment, PIXERATE_DOCUMENT_MIME, type PlainTextOptions, type PreprocessMarkdownMentionsOptions, type RichClipboardPayload, type SanitizeHtmlOptions, escapeHtml, extractMentions, extractMentionsFromDoc, getClipboardData, getEditorMarkdown, getEditorText, getSchemaSignature, htmlToPlainText, markdownToTipTapHtml, parseMentionSegments, parseRichClipboardPayload, plainTextToParagraphHtml, plainTextToSlice, plainTextToTipTapHtml, preprocessMarkdownFileLinks, preprocessMarkdownMentions, readRichClipboard, rtfToPlainText, sanitizeHtml, sanitizeImportedHtml, serializeRichClipboardPayload, stripMarkdownCode };
@@ -9,10 +9,9 @@ import {
9
9
  rtfToPlainText,
10
10
  sanitizeImportedHtml,
11
11
  serializeRichClipboardPayload
12
- } from "../chunk-JJDLPEWL.js";
12
+ } from "../chunk-QGYDWPRM.js";
13
13
  import {
14
14
  MARKDOWN_MENTION_SPLIT_REGEX,
15
- MENTION_REGEX,
16
15
  escapeHtml,
17
16
  extractMentions,
18
17
  extractMentionsFromDoc,
@@ -27,7 +26,14 @@ import {
27
26
  preprocessMarkdownMentions,
28
27
  sanitizeHtml,
29
28
  stripMarkdownCode
30
- } from "../chunk-MJZBNWG7.js";
29
+ } from "../chunk-ECCCYKGL.js";
30
+ import {
31
+ MENTION_REGEX,
32
+ findTextMentions,
33
+ formatMentionText,
34
+ setMentionRoleInText
35
+ } from "../chunk-O5RYH2PG.js";
36
+ import "../chunk-UAKDG62Z.js";
31
37
  export {
32
38
  MARKDOWN_MENTION_SPLIT_REGEX,
33
39
  MENTION_REGEX,
@@ -35,6 +41,8 @@ export {
35
41
  escapeHtml,
36
42
  extractMentions,
37
43
  extractMentionsFromDoc,
44
+ findTextMentions,
45
+ formatMentionText,
38
46
  getClipboardData,
39
47
  getEditorMarkdown,
40
48
  getEditorText,
@@ -53,6 +61,7 @@ export {
53
61
  sanitizeHtml,
54
62
  sanitizeImportedHtml,
55
63
  serializeRichClipboardPayload,
64
+ setMentionRoleInText,
56
65
  stripMarkdownCode
57
66
  };
58
67
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,91 @@
1
+ import { P as PromptValues, T as Template, a as PromptDiagnostic } from './tokens-D7yXvUU6.cjs';
2
+
3
+ interface ResolveTemplatesOptions {
4
+ bindings?: Record<string, string>;
5
+ maxDepth?: number;
6
+ /**
7
+ * Values for `{variable}` slots and `{?variable}` sections. When omitted,
8
+ * variables, defaults and section tags are left exactly as written.
9
+ */
10
+ values?: PromptValues;
11
+ }
12
+ /**
13
+ * Recursively resolves template tags `{{template_name}}` in a given text.
14
+ * A tag that would recurse into itself is replaced with `TEMPLATE_LOOP_ERROR`,
15
+ * and a tag nested deeper than `maxDepth` with `TEMPLATE_DEPTH_ERROR`; the rest
16
+ * of the text still resolves normally.
17
+ *
18
+ * Pass `options.values` to also fill variables (falling back to their
19
+ * `{name|default}`) and evaluate `{?name}…{/name}` / `{!name}…{/name}`
20
+ * sections, including those inside template bodies. See `resolvePrompt` for
21
+ * the source map and diagnostics.
22
+ */
23
+ declare function resolveTemplates(text: string, templates?: Template[], options?: ResolveTemplatesOptions): string;
24
+ /**
25
+ * Replaces `{variableName}` with values from a dictionary, falling back to a
26
+ * `{variableName|default}` when no value is supplied, and evaluates
27
+ * `{?name}…{/name}` / `{!name}…{/name}` sections. Variables with neither a
28
+ * value nor a default are left as written. Templates are not expanded.
29
+ */
30
+ declare function resolveVariables(text: string, values: PromptValues): string;
31
+ /**
32
+ * Extracts unique template names referenced in text.
33
+ */
34
+ declare function extractTemplateNames(text: string): string[];
35
+ /**
36
+ * Extracts unique variable names referenced in text, including names used by
37
+ * conditional section tags (`amount` for `{?amount>100}…{/amount}`).
38
+ * Defaults and descriptions are stripped.
39
+ */
40
+ declare function extractVariableNames(text: string): string[];
41
+ /**
42
+ * Extracts unique instruction names referenced in text.
43
+ */
44
+ declare function extractInstructionNames(text: string): string[];
45
+
46
+ /**
47
+ * One contiguous piece of resolved output and the raw range it came from.
48
+ *
49
+ * - `raw`: copied verbatim; offsets map character by character.
50
+ * - `template`: the expansion of a `{{template}}` tag.
51
+ * - `variable`: a substituted value or `|default` for a `{variable}` tag.
52
+ * - `conditional`: a section tag, or a whole removed section. These segments
53
+ * are empty in the resolved text (`resolvedStart === resolvedEnd`).
54
+ *
55
+ * Offsets inside non-raw segments map to the start of their raw range.
56
+ */
57
+ interface SourceMapSegment {
58
+ resolvedStart: number;
59
+ resolvedEnd: number;
60
+ source: "raw" | "template" | "variable" | "conditional";
61
+ rawStart: number;
62
+ rawEnd: number;
63
+ templateName?: string;
64
+ /** Variable substituted (`variable`) or tested (`conditional`). */
65
+ variableName?: string;
66
+ /** For `variable` segments: whether a supplied value or the default was used. */
67
+ valueSource?: "value" | "default";
68
+ }
69
+ /**
70
+ * Resolves templates in text while tracking character offset mapping
71
+ * between the raw input and the fully resolved output.
72
+ *
73
+ * Pass `options.values` to also substitute variables and evaluate conditional
74
+ * sections (see `resolvePrompt`); without it the output is unchanged from the
75
+ * template-only behavior.
76
+ */
77
+ declare function resolveTemplatesWithMapping(text: string, templates?: Template[], templateBindings?: Record<string, string>, options?: Pick<ResolveTemplatesOptions, "maxDepth" | "values">): {
78
+ text: string;
79
+ map: SourceMapSegment[];
80
+ diagnostics: PromptDiagnostic[];
81
+ };
82
+ /**
83
+ * Maps an offset in resolved text back to the corresponding offset in raw text.
84
+ */
85
+ declare function mapResolvedOffsetToRaw(resolvedOffset: number, map: SourceMapSegment[]): number;
86
+ /**
87
+ * Maps an offset in raw text to the corresponding offset in resolved text.
88
+ */
89
+ declare function mapRawOffsetToResolved(rawOffset: number, map: SourceMapSegment[]): number;
90
+
91
+ export { type ResolveTemplatesOptions as R, type SourceMapSegment as S, extractTemplateNames as a, extractVariableNames as b, mapResolvedOffsetToRaw as c, resolveTemplatesWithMapping as d, extractInstructionNames as e, resolveVariables as f, mapRawOffsetToResolved as m, resolveTemplates as r };
@@ -0,0 +1,91 @@
1
+ import { P as PromptValues, T as Template, a as PromptDiagnostic } from './tokens-D7yXvUU6.js';
2
+
3
+ interface ResolveTemplatesOptions {
4
+ bindings?: Record<string, string>;
5
+ maxDepth?: number;
6
+ /**
7
+ * Values for `{variable}` slots and `{?variable}` sections. When omitted,
8
+ * variables, defaults and section tags are left exactly as written.
9
+ */
10
+ values?: PromptValues;
11
+ }
12
+ /**
13
+ * Recursively resolves template tags `{{template_name}}` in a given text.
14
+ * A tag that would recurse into itself is replaced with `TEMPLATE_LOOP_ERROR`,
15
+ * and a tag nested deeper than `maxDepth` with `TEMPLATE_DEPTH_ERROR`; the rest
16
+ * of the text still resolves normally.
17
+ *
18
+ * Pass `options.values` to also fill variables (falling back to their
19
+ * `{name|default}`) and evaluate `{?name}…{/name}` / `{!name}…{/name}`
20
+ * sections, including those inside template bodies. See `resolvePrompt` for
21
+ * the source map and diagnostics.
22
+ */
23
+ declare function resolveTemplates(text: string, templates?: Template[], options?: ResolveTemplatesOptions): string;
24
+ /**
25
+ * Replaces `{variableName}` with values from a dictionary, falling back to a
26
+ * `{variableName|default}` when no value is supplied, and evaluates
27
+ * `{?name}…{/name}` / `{!name}…{/name}` sections. Variables with neither a
28
+ * value nor a default are left as written. Templates are not expanded.
29
+ */
30
+ declare function resolveVariables(text: string, values: PromptValues): string;
31
+ /**
32
+ * Extracts unique template names referenced in text.
33
+ */
34
+ declare function extractTemplateNames(text: string): string[];
35
+ /**
36
+ * Extracts unique variable names referenced in text, including names used by
37
+ * conditional section tags (`amount` for `{?amount>100}…{/amount}`).
38
+ * Defaults and descriptions are stripped.
39
+ */
40
+ declare function extractVariableNames(text: string): string[];
41
+ /**
42
+ * Extracts unique instruction names referenced in text.
43
+ */
44
+ declare function extractInstructionNames(text: string): string[];
45
+
46
+ /**
47
+ * One contiguous piece of resolved output and the raw range it came from.
48
+ *
49
+ * - `raw`: copied verbatim; offsets map character by character.
50
+ * - `template`: the expansion of a `{{template}}` tag.
51
+ * - `variable`: a substituted value or `|default` for a `{variable}` tag.
52
+ * - `conditional`: a section tag, or a whole removed section. These segments
53
+ * are empty in the resolved text (`resolvedStart === resolvedEnd`).
54
+ *
55
+ * Offsets inside non-raw segments map to the start of their raw range.
56
+ */
57
+ interface SourceMapSegment {
58
+ resolvedStart: number;
59
+ resolvedEnd: number;
60
+ source: "raw" | "template" | "variable" | "conditional";
61
+ rawStart: number;
62
+ rawEnd: number;
63
+ templateName?: string;
64
+ /** Variable substituted (`variable`) or tested (`conditional`). */
65
+ variableName?: string;
66
+ /** For `variable` segments: whether a supplied value or the default was used. */
67
+ valueSource?: "value" | "default";
68
+ }
69
+ /**
70
+ * Resolves templates in text while tracking character offset mapping
71
+ * between the raw input and the fully resolved output.
72
+ *
73
+ * Pass `options.values` to also substitute variables and evaluate conditional
74
+ * sections (see `resolvePrompt`); without it the output is unchanged from the
75
+ * template-only behavior.
76
+ */
77
+ declare function resolveTemplatesWithMapping(text: string, templates?: Template[], templateBindings?: Record<string, string>, options?: Pick<ResolveTemplatesOptions, "maxDepth" | "values">): {
78
+ text: string;
79
+ map: SourceMapSegment[];
80
+ diagnostics: PromptDiagnostic[];
81
+ };
82
+ /**
83
+ * Maps an offset in resolved text back to the corresponding offset in raw text.
84
+ */
85
+ declare function mapResolvedOffsetToRaw(resolvedOffset: number, map: SourceMapSegment[]): number;
86
+ /**
87
+ * Maps an offset in raw text to the corresponding offset in resolved text.
88
+ */
89
+ declare function mapRawOffsetToResolved(rawOffset: number, map: SourceMapSegment[]): number;
90
+
91
+ export { type ResolveTemplatesOptions as R, type SourceMapSegment as S, extractTemplateNames as a, extractVariableNames as b, mapResolvedOffsetToRaw as c, resolveTemplatesWithMapping as d, extractInstructionNames as e, resolveVariables as f, mapRawOffsetToResolved as m, resolveTemplates as r };
@@ -52,7 +52,6 @@
52
52
 
53
53
 
54
54
 
55
- var _chunkXDMXXC4Zcjs = require('../chunk-XDMXXC4Z.cjs');
56
55
 
57
56
 
58
57
 
@@ -87,7 +86,6 @@ var _chunkXDMXXC4Zcjs = require('../chunk-XDMXXC4Z.cjs');
87
86
 
88
87
 
89
88
 
90
- var _chunkRIKBJLS2cjs = require('../chunk-RIKBJLS2.cjs');
91
89
 
92
90
 
93
91
 
@@ -116,12 +114,14 @@ var _chunkRIKBJLS2cjs = require('../chunk-RIKBJLS2.cjs');
116
114
 
117
115
 
118
116
 
117
+ var _chunkWSQKHXW7cjs = require('../chunk-WSQKHXW7.cjs');
119
118
 
120
119
 
121
120
 
122
121
 
123
122
 
124
123
 
124
+ var _chunkTNNJXF46cjs = require('../chunk-TNNJXF46.cjs');
125
125
 
126
126
 
127
127
 
@@ -167,6 +167,7 @@ var _chunkRIKBJLS2cjs = require('../chunk-RIKBJLS2.cjs');
167
167
 
168
168
 
169
169
 
170
+ var _chunkC7P22VIPcjs = require('../chunk-C7P22VIP.cjs');
170
171
 
171
172
 
172
173
 
@@ -175,5 +176,162 @@ var _chunkRIKBJLS2cjs = require('../chunk-RIKBJLS2.cjs');
175
176
 
176
177
 
177
178
 
178
- exports.DEFAULT_COLUMN_WIDTH = _chunkXDMXXC4Zcjs.DEFAULT_COLUMN_WIDTH; exports.DEFAULT_ROW_HEIGHT = _chunkXDMXXC4Zcjs.DEFAULT_ROW_HEIGHT; exports.DataSourceBinder = _chunkXDMXXC4Zcjs.DataSourceBinder; exports.DependencyGraph = _chunkXDMXXC4Zcjs.DependencyGraph; exports.FORMULA_ERRORS = _chunkRIKBJLS2cjs.FORMULA_ERRORS; exports.FormulaEvaluator = _chunkRIKBJLS2cjs.FormulaEvaluator; exports.FormulaParser = _chunkRIKBJLS2cjs.FormulaParser; exports.MAX_FORMULA_ARRAY_SIZE = _chunkRIKBJLS2cjs.MAX_FORMULA_ARRAY_SIZE; exports.SPREADSHEET_CLIPBOARD_MIME = _chunkXDMXXC4Zcjs.SPREADSHEET_CLIPBOARD_MIME; exports.SPREADSHEET_IMPORT_ADAPTERS = _chunkXDMXXC4Zcjs.SPREADSHEET_IMPORT_ADAPTERS; exports.SPREADSHEET_TABLE_ACTIONS = _chunkXDMXXC4Zcjs.SPREADSHEET_TABLE_ACTIONS; exports.SpreadsheetController = _chunkXDMXXC4Zcjs.SpreadsheetController; exports.WHOLE_COLUMN_END_ROW = _chunkRIKBJLS2cjs.WHOLE_COLUMN_END_ROW; exports.aggregateValues = _chunkXDMXXC4Zcjs.aggregateValues; exports.applyFormulaSuggestion = _chunkXDMXXC4Zcjs.applyFormulaSuggestion; exports.bindSpreadsheetTableActions = _chunkXDMXXC4Zcjs.bindSpreadsheetTableActions; exports.buildSpreadsheetView = _chunkXDMXXC4Zcjs.buildSpreadsheetView; exports.checkFormulaArgumentCount = _chunkRIKBJLS2cjs.checkFormulaArgumentCount; exports.clampMenuPosition = _chunkXDMXXC4Zcjs.clampMenuPosition; exports.colNameToIndex = _chunkRIKBJLS2cjs.colNameToIndex; exports.columnDependencyKey = _chunkXDMXXC4Zcjs.columnDependencyKey; exports.compareCellValues = _chunkXDMXXC4Zcjs.compareCellValues; exports.compareNumbers = _chunkRIKBJLS2cjs.compareNumbers; exports.compareValues = _chunkRIKBJLS2cjs.compareValues; exports.computeFillTarget = _chunkXDMXXC4Zcjs.computeFillTarget; exports.computeRowGroups = _chunkXDMXXC4Zcjs.computeRowGroups; exports.createSpreadsheetClipboardData = _chunkXDMXXC4Zcjs.createSpreadsheetClipboardData; exports.csvImportAdapter = _chunkXDMXXC4Zcjs.csvImportAdapter; exports.describeFormulaError = _chunkRIKBJLS2cjs.describeFormulaError; exports.escapeCsvField = _chunkXDMXXC4Zcjs.escapeCsvField; exports.extractCellDependencies = _chunkXDMXXC4Zcjs.extractCellDependencies; exports.fillSeries = _chunkXDMXXC4Zcjs.fillSeries; exports.formatCellDisplay = _chunkRIKBJLS2cjs.formatCellDisplay; exports.formatValueWithCode = _chunkRIKBJLS2cjs.formatValueWithCode; exports.getFillDirection = _chunkXDMXXC4Zcjs.getFillDirection; exports.getFormulaArgumentSpecIndex = _chunkRIKBJLS2cjs.getFormulaArgumentSpecIndex; exports.getFormulaCaretContext = _chunkXDMXXC4Zcjs.getFormulaCaretContext; exports.getFormulaFunction = _chunkRIKBJLS2cjs.getFormulaFunction; exports.getFormulaHints = _chunkXDMXXC4Zcjs.getFormulaHints; exports.getFormulaSignature = _chunkRIKBJLS2cjs.getFormulaSignature; exports.getFormulaSignatureParts = _chunkRIKBJLS2cjs.getFormulaSignatureParts; exports.getRowSection = _chunkXDMXXC4Zcjs.getRowSection; exports.getSpreadsheetMenuItems = _chunkXDMXXC4Zcjs.getSpreadsheetMenuItems; exports.getTableSections = _chunkXDMXXC4Zcjs.getTableSections; exports.importFileIntoSpreadsheet = _chunkXDMXXC4Zcjs.importFileIntoSpreadsheet; exports.indexToColName = _chunkRIKBJLS2cjs.indexToColName; exports.isBlankValue = _chunkXDMXXC4Zcjs.isBlankValue; exports.isFormulaError = _chunkRIKBJLS2cjs.isFormulaError; exports.isSingleCellRange = _chunkXDMXXC4Zcjs.isSingleCellRange; exports.listFormulaFunctions = _chunkRIKBJLS2cjs.listFormulaFunctions; exports.mapFormulaReferences = _chunkXDMXXC4Zcjs.mapFormulaReferences; exports.matchesFilterRule = _chunkXDMXXC4Zcjs.matchesFilterRule; exports.normalizeRange = _chunkXDMXXC4Zcjs.normalizeRange; exports.numberToText = _chunkRIKBJLS2cjs.numberToText; exports.offsetFormulaReferences = _chunkXDMXXC4Zcjs.offsetFormulaReferences; exports.parseCellInput = _chunkRIKBJLS2cjs.parseCellInput; exports.parseCellReference = _chunkRIKBJLS2cjs.parseCellReference; exports.parseCriteria = _chunkRIKBJLS2cjs.parseCriteria; exports.parseCsv = _chunkXDMXXC4Zcjs.parseCsv; exports.parseFormula = _chunkRIKBJLS2cjs.parseFormula; exports.parseHtmlTable = _chunkXDMXXC4Zcjs.parseHtmlTable; exports.parseNumberText = _chunkRIKBJLS2cjs.parseNumberText; exports.parseRange = _chunkRIKBJLS2cjs.parseRange; exports.parseTsv = _chunkXDMXXC4Zcjs.parseTsv; exports.rangeContains = _chunkXDMXXC4Zcjs.rangeContains; exports.rangeContainsRange = _chunkXDMXXC4Zcjs.rangeContainsRange; exports.rangesIntersect = _chunkXDMXXC4Zcjs.rangesIntersect; exports.readSpreadsheetClipboard = _chunkXDMXXC4Zcjs.readSpreadsheetClipboard; exports.rebaseClipboardRows = _chunkXDMXXC4Zcjs.rebaseClipboardRows; exports.registerFormulaFunction = _chunkRIKBJLS2cjs.registerFormulaFunction; exports.registerSpreadsheetImportAdapters = _chunkXDMXXC4Zcjs.registerSpreadsheetImportAdapters; exports.remapFormulaReferences = _chunkXDMXXC4Zcjs.remapFormulaReferences; exports.roundFloat = _chunkXDMXXC4Zcjs.roundFloat; exports.rowPassesFilters = _chunkXDMXXC4Zcjs.rowPassesFilters; exports.searchFormulaFunctions = _chunkRIKBJLS2cjs.searchFormulaFunctions; exports.serialFromYmd = _chunkRIKBJLS2cjs.serialFromYmd; exports.serializeCsv = _chunkXDMXXC4Zcjs.serializeCsv; exports.serializeHtmlTable = _chunkXDMXXC4Zcjs.serializeHtmlTable; exports.serializeTsv = _chunkXDMXXC4Zcjs.serializeTsv; exports.shiftFormulaReferences = _chunkXDMXXC4Zcjs.shiftFormulaReferences; exports.sortCompareValues = _chunkRIKBJLS2cjs.sortCompareValues; exports.toNumber = _chunkXDMXXC4Zcjs.toNumber; exports.tokenizeFormula = _chunkRIKBJLS2cjs.tokenizeFormula; exports.tsvImportAdapter = _chunkXDMXXC4Zcjs.tsvImportAdapter; exports.unregisterFormulaFunction = _chunkRIKBJLS2cjs.unregisterFormulaFunction; exports.wildcardToRegExp = _chunkRIKBJLS2cjs.wildcardToRegExp;
179
+
180
+
181
+
182
+
183
+
184
+
185
+
186
+
187
+
188
+
189
+
190
+
191
+
192
+
193
+
194
+
195
+
196
+
197
+
198
+
199
+
200
+
201
+
202
+
203
+
204
+
205
+
206
+
207
+
208
+
209
+
210
+
211
+
212
+
213
+
214
+
215
+
216
+
217
+
218
+
219
+
220
+
221
+
222
+
223
+
224
+
225
+
226
+
227
+
228
+
229
+
230
+
231
+
232
+
233
+
234
+
235
+
236
+
237
+
238
+
239
+
240
+
241
+
242
+
243
+
244
+
245
+
246
+
247
+
248
+
249
+
250
+
251
+
252
+
253
+
254
+
255
+
256
+
257
+
258
+
259
+
260
+
261
+
262
+
263
+
264
+
265
+
266
+
267
+
268
+
269
+
270
+
271
+
272
+
273
+
274
+
275
+
276
+
277
+
278
+
279
+
280
+
281
+
282
+
283
+
284
+
285
+
286
+
287
+
288
+
289
+
290
+
291
+
292
+
293
+
294
+
295
+
296
+
297
+
298
+
299
+
300
+
301
+
302
+
303
+
304
+
305
+
306
+
307
+
308
+
309
+
310
+
311
+
312
+
313
+
314
+
315
+
316
+
317
+
318
+
319
+
320
+
321
+
322
+
323
+
324
+
325
+
326
+
327
+
328
+
329
+
330
+
331
+
332
+
333
+
334
+
335
+
336
+ exports.CONDITIONAL_FORMAT_ICON_SETS = _chunkWSQKHXW7cjs.CONDITIONAL_FORMAT_ICON_SETS; exports.CONDITIONAL_FORMAT_PRESETS = _chunkWSQKHXW7cjs.CONDITIONAL_FORMAT_PRESETS; exports.CONDITIONAL_FORMAT_STYLE_PRESETS = _chunkWSQKHXW7cjs.CONDITIONAL_FORMAT_STYLE_PRESETS; exports.CONDITIONAL_FORMAT_TIME_PERIODS = _chunkWSQKHXW7cjs.CONDITIONAL_FORMAT_TIME_PERIODS; exports.ConditionalFormatEngine = _chunkWSQKHXW7cjs.ConditionalFormatEngine; exports.DATA_VALIDATION_ERROR_STYLE_OPTIONS = _chunkWSQKHXW7cjs.DATA_VALIDATION_ERROR_STYLE_OPTIONS; exports.DATA_VALIDATION_OPERATOR_OPTIONS = _chunkWSQKHXW7cjs.DATA_VALIDATION_OPERATOR_OPTIONS; exports.DATA_VALIDATION_TYPE_OPTIONS = _chunkWSQKHXW7cjs.DATA_VALIDATION_TYPE_OPTIONS; exports.DEFAULT_COLUMN_WIDTH = _chunkWSQKHXW7cjs.DEFAULT_COLUMN_WIDTH; exports.DEFAULT_CONDITIONAL_FORMAT_STYLE = _chunkWSQKHXW7cjs.DEFAULT_CONDITIONAL_FORMAT_STYLE; exports.DEFAULT_DATA_VALIDATION_MESSAGE = _chunkWSQKHXW7cjs.DEFAULT_DATA_VALIDATION_MESSAGE; exports.DEFAULT_DATA_VALIDATION_TITLE = _chunkWSQKHXW7cjs.DEFAULT_DATA_VALIDATION_TITLE; exports.DEFAULT_ROW_HEIGHT = _chunkWSQKHXW7cjs.DEFAULT_ROW_HEIGHT; exports.DataSourceBinder = _chunkWSQKHXW7cjs.DataSourceBinder; exports.DependencyGraph = _chunkWSQKHXW7cjs.DependencyGraph; exports.EMPTY_CONDITIONAL_FORMAT_OVERLAY = _chunkWSQKHXW7cjs.EMPTY_CONDITIONAL_FORMAT_OVERLAY; exports.FORMULA_ERRORS = _chunkC7P22VIPcjs.FORMULA_ERRORS; exports.FormulaEvaluator = _chunkC7P22VIPcjs.FormulaEvaluator; exports.FormulaLambda = _chunkC7P22VIPcjs.FormulaLambda; exports.FormulaParser = _chunkC7P22VIPcjs.FormulaParser; exports.MAX_DEFINED_NAME_LENGTH = _chunkWSQKHXW7cjs.MAX_DEFINED_NAME_LENGTH; exports.MAX_FORMULA_ARRAY_SIZE = _chunkC7P22VIPcjs.MAX_FORMULA_ARRAY_SIZE; exports.MAX_LAMBDA_DEPTH = _chunkC7P22VIPcjs.MAX_LAMBDA_DEPTH; exports.MAX_NUMBER_FORMAT_CODE_CHARS = _chunkC7P22VIPcjs.MAX_NUMBER_FORMAT_CODE_CHARS; exports.MAX_SHEET_NAME_LENGTH = _chunkWSQKHXW7cjs.MAX_SHEET_NAME_LENGTH; exports.NUMBER_FORMAT_PRESETS = _chunkWSQKHXW7cjs.NUMBER_FORMAT_PRESETS; exports.NumberFormat = _chunkC7P22VIPcjs.NumberFormat; exports.SPREADSHEET_CLIPBOARD_MIME = _chunkWSQKHXW7cjs.SPREADSHEET_CLIPBOARD_MIME; exports.SPREADSHEET_IMPORT_ADAPTERS = _chunkWSQKHXW7cjs.SPREADSHEET_IMPORT_ADAPTERS; exports.SPREADSHEET_TABLE_ACTIONS = _chunkWSQKHXW7cjs.SPREADSHEET_TABLE_ACTIONS; exports.SpreadsheetController = _chunkWSQKHXW7cjs.SpreadsheetController; exports.WHOLE_COLUMN_END_ROW = _chunkC7P22VIPcjs.WHOLE_COLUMN_END_ROW; exports.adjustRangeForStructuralChange = _chunkWSQKHXW7cjs.adjustRangeForStructuralChange; exports.adjustRangesForStructuralChange = _chunkWSQKHXW7cjs.adjustRangesForStructuralChange; exports.aggregateValues = _chunkWSQKHXW7cjs.aggregateValues; exports.applyFormulaSuggestion = _chunkWSQKHXW7cjs.applyFormulaSuggestion; exports.bindSpreadsheetTableActions = _chunkWSQKHXW7cjs.bindSpreadsheetTableActions; exports.blendConditionalFormatColors = _chunkWSQKHXW7cjs.blendConditionalFormatColors; exports.buildSpreadsheetView = _chunkWSQKHXW7cjs.buildSpreadsheetView; exports.builtinNumberFormat = _chunkC7P22VIPcjs.builtinNumberFormat; exports.builtinNumberFormatId = _chunkC7P22VIPcjs.builtinNumberFormatId; exports.cellFormatForNumberFormat = _chunkWSQKHXW7cjs.cellFormatForNumberFormat; exports.checkFormulaArgumentCount = _chunkC7P22VIPcjs.checkFormulaArgumentCount; exports.clampMenuPosition = _chunkWSQKHXW7cjs.clampMenuPosition; exports.clearNumberFormatCache = _chunkC7P22VIPcjs.clearNumberFormatCache; exports.colNameToIndex = _chunkC7P22VIPcjs.colNameToIndex; exports.columnDependencyKey = _chunkWSQKHXW7cjs.columnDependencyKey; exports.compareCellValues = _chunkWSQKHXW7cjs.compareCellValues; exports.compareNumbers = _chunkC7P22VIPcjs.compareNumbers; exports.compareValues = _chunkC7P22VIPcjs.compareValues; exports.computeFillTarget = _chunkWSQKHXW7cjs.computeFillTarget; exports.computeRowGroups = _chunkWSQKHXW7cjs.computeRowGroups; exports.conditionalFormatContrastColor = _chunkWSQKHXW7cjs.conditionalFormatContrastColor; exports.conditionalFormatIconCount = _chunkWSQKHXW7cjs.conditionalFormatIconCount; exports.conditionalFormatNumber = _chunkWSQKHXW7cjs.conditionalFormatNumber; exports.conditionalFormatStyleString = _chunkWSQKHXW7cjs.conditionalFormatStyleString; exports.copySheetName = _chunkWSQKHXW7cjs.copySheetName; exports.createConditionalFormatRule = _chunkWSQKHXW7cjs.createConditionalFormatRule; exports.createSpreadsheetClipboardData = _chunkWSQKHXW7cjs.createSpreadsheetClipboardData; exports.csvImportAdapter = _chunkWSQKHXW7cjs.csvImportAdapter; exports.dateValueToSerial = _chunkC7P22VIPcjs.dateValueToSerial; exports.defaultIconThresholds = _chunkWSQKHXW7cjs.defaultIconThresholds; exports.deleteSheetInFormula = _chunkWSQKHXW7cjs.deleteSheetInFormula; exports.describeConditionalFormat = _chunkWSQKHXW7cjs.describeConditionalFormat; exports.describeDataValidation = _chunkWSQKHXW7cjs.describeDataValidation; exports.describeFormulaError = _chunkC7P22VIPcjs.describeFormulaError; exports.escapeCsvField = _chunkTNNJXF46cjs.escapeCsvField; exports.evaluateConditionalFormats = _chunkWSQKHXW7cjs.evaluateConditionalFormats; exports.extractCellDependencies = _chunkWSQKHXW7cjs.extractCellDependencies; exports.extractNameDependencies = _chunkWSQKHXW7cjs.extractNameDependencies; exports.fillSeries = _chunkWSQKHXW7cjs.fillSeries; exports.findDataValidation = _chunkWSQKHXW7cjs.findDataValidation; exports.findInvalidCells = _chunkWSQKHXW7cjs.findInvalidCells; exports.forEachRangeCell = _chunkWSQKHXW7cjs.forEachRangeCell; exports.formatCellDisplay = _chunkWSQKHXW7cjs.formatCellDisplay; exports.formatCellForDisplay = _chunkWSQKHXW7cjs.formatCellForDisplay; exports.formatGeneralFit = _chunkC7P22VIPcjs.formatGeneralFit; exports.formatNumberFormatValue = _chunkC7P22VIPcjs.formatNumberFormatValue; exports.formatRuleRanges = _chunkWSQKHXW7cjs.formatRuleRanges; exports.formatSheetPrefix = _chunkWSQKHXW7cjs.formatSheetPrefix; exports.formatTextFunction = _chunkC7P22VIPcjs.formatTextFunction; exports.formatValueWithCode = _chunkWSQKHXW7cjs.formatValueWithCode; exports.formulaIdentifiers = _chunkWSQKHXW7cjs.formulaIdentifiers; exports.getConditionalFormatCss = _chunkWSQKHXW7cjs.getConditionalFormatCss; exports.getConditionalFormatIcon = _chunkWSQKHXW7cjs.getConditionalFormatIcon; exports.getDataBarCss = _chunkWSQKHXW7cjs.getDataBarCss; exports.getFillDirection = _chunkWSQKHXW7cjs.getFillDirection; exports.getFormulaArgumentSpecIndex = _chunkC7P22VIPcjs.getFormulaArgumentSpecIndex; exports.getFormulaCaretContext = _chunkWSQKHXW7cjs.getFormulaCaretContext; exports.getFormulaFunction = _chunkC7P22VIPcjs.getFormulaFunction; exports.getFormulaHints = _chunkWSQKHXW7cjs.getFormulaHints; exports.getFormulaSignature = _chunkC7P22VIPcjs.getFormulaSignature; exports.getFormulaSignatureParts = _chunkC7P22VIPcjs.getFormulaSignatureParts; exports.getNameManagerRows = _chunkWSQKHXW7cjs.getNameManagerRows; exports.getRowSection = _chunkWSQKHXW7cjs.getRowSection; exports.getSheetTabMenuItems = _chunkWSQKHXW7cjs.getSheetTabMenuItems; exports.getSpreadsheetMenuItems = _chunkWSQKHXW7cjs.getSpreadsheetMenuItems; exports.getTableSections = _chunkWSQKHXW7cjs.getTableSections; exports.getValidationListValues = _chunkWSQKHXW7cjs.getValidationListValues; exports.importFileIntoSpreadsheet = _chunkWSQKHXW7cjs.importFileIntoSpreadsheet; exports.indexToColName = _chunkC7P22VIPcjs.indexToColName; exports.isBlankValue = _chunkWSQKHXW7cjs.isBlankValue; exports.isFormulaError = _chunkC7P22VIPcjs.isFormulaError; exports.isFormulaLambda = _chunkC7P22VIPcjs.isFormulaLambda; exports.isGeneralNumberFormat = _chunkWSQKHXW7cjs.isGeneralNumberFormat; exports.isLambdaDefinition = _chunkWSQKHXW7cjs.isLambdaDefinition; exports.isSingleCellRange = _chunkWSQKHXW7cjs.isSingleCellRange; exports.listFormulaFunctions = _chunkC7P22VIPcjs.listFormulaFunctions; exports.mapFormulaReferences = _chunkWSQKHXW7cjs.mapFormulaReferences; exports.matchesFilterRule = _chunkWSQKHXW7cjs.matchesFilterRule; exports.matchesTimePeriod = _chunkWSQKHXW7cjs.matchesTimePeriod; exports.nextSheetName = _chunkWSQKHXW7cjs.nextSheetName; exports.normalizeRange = _chunkWSQKHXW7cjs.normalizeRange; exports.numberFormatColorToCss = _chunkC7P22VIPcjs.numberFormatColorToCss; exports.numberFormatForCellFormat = _chunkWSQKHXW7cjs.numberFormatForCellFormat; exports.numberToText = _chunkC7P22VIPcjs.numberToText; exports.offsetFormulaReferences = _chunkWSQKHXW7cjs.offsetFormulaReferences; exports.parseCellInput = _chunkC7P22VIPcjs.parseCellInput; exports.parseCellReference = _chunkC7P22VIPcjs.parseCellReference; exports.parseCriteria = _chunkC7P22VIPcjs.parseCriteria; exports.parseCsv = _chunkTNNJXF46cjs.parseCsv; exports.parseFormula = _chunkC7P22VIPcjs.parseFormula; exports.parseHtmlTable = _chunkWSQKHXW7cjs.parseHtmlTable; exports.parseNumberText = _chunkC7P22VIPcjs.parseNumberText; exports.parseRange = _chunkC7P22VIPcjs.parseRange; exports.parseRuleRanges = _chunkWSQKHXW7cjs.parseRuleRanges; exports.parseTsv = _chunkTNNJXF46cjs.parseTsv; exports.quoteSheetName = _chunkWSQKHXW7cjs.quoteSheetName; exports.rangeContains = _chunkWSQKHXW7cjs.rangeContains; exports.rangeContainsRange = _chunkWSQKHXW7cjs.rangeContainsRange; exports.rangesContain = _chunkWSQKHXW7cjs.rangesContain; exports.rangesIntersect = _chunkWSQKHXW7cjs.rangesIntersect; exports.readSpreadsheetClipboard = _chunkWSQKHXW7cjs.readSpreadsheetClipboard; exports.rebaseClipboardRows = _chunkWSQKHXW7cjs.rebaseClipboardRows; exports.registerFormulaFunction = _chunkC7P22VIPcjs.registerFormulaFunction; exports.registerSpreadsheetImportAdapters = _chunkWSQKHXW7cjs.registerSpreadsheetImportAdapters; exports.remapFormulaReferences = _chunkWSQKHXW7cjs.remapFormulaReferences; exports.renameNameInFormula = _chunkWSQKHXW7cjs.renameNameInFormula; exports.renameSheetInFormula = _chunkWSQKHXW7cjs.renameSheetInFormula; exports.roundFloat = _chunkWSQKHXW7cjs.roundFloat; exports.rowPassesFilters = _chunkWSQKHXW7cjs.rowPassesFilters; exports.ruleAnchor = _chunkWSQKHXW7cjs.ruleAnchor; exports.ruleFormulaAt = _chunkWSQKHXW7cjs.ruleFormulaAt; exports.runSpreadsheetMenuItem = _chunkWSQKHXW7cjs.runSpreadsheetMenuItem; exports.searchFormulaFunctions = _chunkC7P22VIPcjs.searchFormulaFunctions; exports.serialFromYmd = _chunkC7P22VIPcjs.serialFromYmd; exports.serializeCsv = _chunkTNNJXF46cjs.serializeCsv; exports.serializeHtmlTable = _chunkWSQKHXW7cjs.serializeHtmlTable; exports.serializeTsv = _chunkTNNJXF46cjs.serializeTsv; exports.sheetDropIndex = _chunkWSQKHXW7cjs.sheetDropIndex; exports.sheetNameNeedsQuotes = _chunkWSQKHXW7cjs.sheetNameNeedsQuotes; exports.shiftFormulaReferences = _chunkWSQKHXW7cjs.shiftFormulaReferences; exports.shiftRuleFormula = _chunkWSQKHXW7cjs.shiftRuleFormula; exports.sortCompareValues = _chunkC7P22VIPcjs.sortCompareValues; exports.subtractRange = _chunkWSQKHXW7cjs.subtractRange; exports.subtractRangeFromRanges = _chunkWSQKHXW7cjs.subtractRangeFromRanges; exports.toNumber = _chunkWSQKHXW7cjs.toNumber; exports.tokenizeFormula = _chunkC7P22VIPcjs.tokenizeFormula; exports.tsvImportAdapter = _chunkWSQKHXW7cjs.tsvImportAdapter; exports.unregisterFormulaFunction = _chunkC7P22VIPcjs.unregisterFormulaFunction; exports.validateCellInput = _chunkWSQKHXW7cjs.validateCellInput; exports.validateDefinedName = _chunkWSQKHXW7cjs.validateDefinedName; exports.validateSheetName = _chunkWSQKHXW7cjs.validateSheetName; exports.wildcardToRegExp = _chunkC7P22VIPcjs.wildcardToRegExp;
179
337
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/editor/editor/packages/core/dist/spreadsheet/index.cjs"],"names":[],"mappings":"AAAA;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;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;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;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,ykLAAC","file":"/home/runner/work/editor/editor/packages/core/dist/spreadsheet/index.cjs"}
1
+ {"version":3,"sources":["/home/runner/work/editor/editor/packages/core/dist/spreadsheet/index.cjs"],"names":[],"mappings":"AAAA;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;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;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,yDAA8B;AAC9B;AACE;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,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;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;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;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,6rWAAC","file":"/home/runner/work/editor/editor/packages/core/dist/spreadsheet/index.cjs"}