@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.
- package/README.md +167 -2
- package/THIRD_PARTY_NOTICES.md +80 -0
- package/dist/agent/index.cjs +10 -8
- package/dist/agent/index.cjs.map +1 -1
- package/dist/agent/index.d.cts +4 -3
- package/dist/agent/index.d.ts +4 -3
- package/dist/agent/index.js +4 -2
- package/dist/agent/index.js.map +1 -1
- package/dist/canvas/index.cjs +4437 -411
- package/dist/canvas/index.cjs.map +1 -1
- package/dist/canvas/index.d.cts +934 -4
- package/dist/canvas/index.d.ts +934 -4
- package/dist/canvas/index.js +4309 -283
- package/dist/canvas/index.js.map +1 -1
- package/dist/chunk-4BVP64JJ.cjs +1406 -0
- package/dist/chunk-4BVP64JJ.cjs.map +1 -0
- package/dist/chunk-664LQYFJ.js +115 -0
- package/dist/chunk-664LQYFJ.js.map +1 -0
- package/dist/chunk-7WISYZFO.cjs +740 -0
- package/dist/chunk-7WISYZFO.cjs.map +1 -0
- package/dist/chunk-AL6JMGWW.cjs +783 -0
- package/dist/chunk-AL6JMGWW.cjs.map +1 -0
- package/dist/chunk-BVP3TSLH.cjs +69 -0
- package/dist/chunk-BVP3TSLH.cjs.map +1 -0
- package/dist/{chunk-RIKBJLS2.cjs → chunk-C7P22VIP.cjs} +2001 -279
- package/dist/chunk-C7P22VIP.cjs.map +1 -0
- package/dist/chunk-D6FH2YAX.cjs +131 -0
- package/dist/chunk-D6FH2YAX.cjs.map +1 -0
- package/dist/chunk-ECCCYKGL.js +740 -0
- package/dist/chunk-ECCCYKGL.js.map +1 -0
- package/dist/{chunk-4SUNJZWB.cjs → chunk-FD4LPFAE.cjs} +48 -200
- package/dist/chunk-FD4LPFAE.cjs.map +1 -0
- package/dist/{chunk-QBJ22YZR.js → chunk-FH6F67DN.js} +1999 -277
- package/dist/chunk-FH6F67DN.js.map +1 -0
- package/dist/{chunk-OYXSKQFR.js → chunk-FPENXAEJ.js} +35 -187
- package/dist/chunk-FPENXAEJ.js.map +1 -0
- package/dist/chunk-HLIMTC6N.js +1 -0
- package/dist/chunk-HLIMTC6N.js.map +1 -0
- package/dist/chunk-HRMEDT2L.js +1406 -0
- package/dist/chunk-HRMEDT2L.js.map +1 -0
- package/dist/{chunk-QGHGJ56O.js → chunk-IXHSYOVY.js} +2518 -122
- package/dist/chunk-IXHSYOVY.js.map +1 -0
- package/dist/chunk-MKA3AHLV.cjs +256 -0
- package/dist/chunk-MKA3AHLV.cjs.map +1 -0
- package/dist/chunk-NAXVVS5I.js +783 -0
- package/dist/chunk-NAXVVS5I.js.map +1 -0
- package/dist/chunk-O5RYH2PG.js +69 -0
- package/dist/chunk-O5RYH2PG.js.map +1 -0
- package/dist/chunk-OXSV64JX.js +689 -0
- package/dist/chunk-OXSV64JX.js.map +1 -0
- package/dist/chunk-P3RQ5UJE.cjs +689 -0
- package/dist/chunk-P3RQ5UJE.cjs.map +1 -0
- package/dist/chunk-P6ODPZ4W.js +256 -0
- package/dist/chunk-P6ODPZ4W.js.map +1 -0
- package/dist/chunk-PL4JB3BF.cjs +1 -0
- package/dist/chunk-PL4JB3BF.cjs.map +1 -0
- package/dist/{chunk-GVSMRPHB.cjs → chunk-PO6A6QQH.cjs} +2607 -211
- package/dist/chunk-PO6A6QQH.cjs.map +1 -0
- package/dist/{chunk-JJDLPEWL.js → chunk-QGYDWPRM.js} +2 -2
- package/dist/chunk-RR7F5GUM.js +5726 -0
- package/dist/chunk-RR7F5GUM.js.map +1 -0
- package/dist/chunk-TNNJXF46.cjs +115 -0
- package/dist/chunk-TNNJXF46.cjs.map +1 -0
- package/dist/chunk-U5HZSFCS.js +131 -0
- package/dist/chunk-U5HZSFCS.js.map +1 -0
- package/dist/{chunk-MJZBNWG7.js → chunk-UAKDG62Z.js} +309 -581
- package/dist/chunk-UAKDG62Z.js.map +1 -0
- package/dist/{chunk-CL37JGFW.cjs → chunk-V3CHHWOE.cjs} +4 -4
- package/dist/{chunk-CL37JGFW.cjs.map → chunk-V3CHHWOE.cjs.map} +1 -1
- package/dist/chunk-WSQKHXW7.cjs +5726 -0
- package/dist/chunk-WSQKHXW7.cjs.map +1 -0
- package/dist/{chunk-AA4ZEVCC.cjs → chunk-X4N4WUKB.cjs} +336 -608
- package/dist/chunk-X4N4WUKB.cjs.map +1 -0
- package/dist/commands/index.cjs +74 -1
- package/dist/commands/index.cjs.map +1 -1
- package/dist/commands/index.d.cts +38 -353
- package/dist/commands/index.d.ts +38 -353
- package/dist/commands/index.js +73 -0
- package/dist/commands/index.js.map +1 -1
- package/dist/comment-store-BEMgVlAA.d.cts +135 -0
- package/dist/comment-store-BEMgVlAA.d.ts +135 -0
- package/dist/compare/index.cjs +15 -0
- package/dist/compare/index.cjs.map +1 -0
- package/dist/compare/index.d.cts +58 -0
- package/dist/compare/index.d.ts +58 -0
- package/dist/compare/index.js +15 -0
- package/dist/compare/index.js.map +1 -0
- package/dist/controller-BIJiNoVs.d.cts +1842 -0
- package/dist/controller-BIJiNoVs.d.ts +1842 -0
- package/dist/documents-CHT1U5Vs.d.ts +86 -0
- package/dist/documents-Gp7wb0Me.d.cts +86 -0
- package/dist/extensions/index.cjs +100 -5
- package/dist/extensions/index.cjs.map +1 -1
- package/dist/extensions/index.d.cts +16 -4
- package/dist/extensions/index.d.ts +16 -4
- package/dist/extensions/index.js +100 -5
- package/dist/generation/index.cjs +2317 -0
- package/dist/generation/index.cjs.map +1 -0
- package/dist/generation/index.d.cts +1015 -0
- package/dist/generation/index.d.ts +1015 -0
- package/dist/generation/index.js +2317 -0
- package/dist/generation/index.js.map +1 -0
- package/dist/grammar/index.cjs +48 -3
- package/dist/grammar/index.cjs.map +1 -1
- package/dist/grammar/index.d.cts +322 -100
- package/dist/grammar/index.d.ts +322 -100
- package/dist/grammar/index.js +54 -9
- package/dist/image-editor/index.cjs +4392 -481
- package/dist/image-editor/index.cjs.map +1 -1
- package/dist/image-editor/index.d.cts +1249 -97
- package/dist/image-editor/index.d.ts +1249 -97
- package/dist/image-editor/index.js +4281 -370
- package/dist/image-editor/index.js.map +1 -1
- package/dist/index-7a6bHTLy.d.ts +1754 -0
- package/dist/index-Csd5qI8u.d.cts +1754 -0
- package/dist/index.cjs +1682 -99
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +118 -21
- package/dist/index.d.ts +118 -21
- package/dist/index.js +1630 -47
- package/dist/index.js.map +1 -1
- package/dist/mention-text-CDnCFd3c.d.cts +53 -0
- package/dist/mention-text-CDnCFd3c.d.ts +53 -0
- package/dist/migrate-iTlm3a8h.d.cts +112 -0
- package/dist/migrate-iTlm3a8h.d.ts +112 -0
- package/dist/model-C1zApQM8.d.cts +219 -0
- package/dist/model-C1zApQM8.d.ts +219 -0
- package/dist/persistence/index.cjs +676 -0
- package/dist/persistence/index.cjs.map +1 -0
- package/dist/persistence/index.d.cts +230 -0
- package/dist/persistence/index.d.ts +230 -0
- package/dist/persistence/index.js +676 -0
- package/dist/persistence/index.js.map +1 -0
- package/dist/{registry-D5-R90p0.d.cts → registry-BDe-vlv3.d.ts} +2 -40
- package/dist/{registry-GJI4gToU.d.ts → registry-CEgwXED1.d.cts} +12 -1
- package/dist/{registry-GJI4gToU.d.cts → registry-CEgwXED1.d.ts} +12 -1
- package/dist/registry-D32LpIc4.d.cts +354 -0
- package/dist/{registry-D5-R90p0.d.ts → registry-DnzpgY27.d.cts} +2 -40
- package/dist/registry-evKTP4ls.d.ts +354 -0
- package/dist/schema-DYDGdYL9.d.cts +41 -0
- package/dist/schema-DYDGdYL9.d.ts +41 -0
- package/dist/serializers/index.cjs +12 -3
- package/dist/serializers/index.cjs.map +1 -1
- package/dist/serializers/index.d.cts +40 -12
- package/dist/serializers/index.d.ts +40 -12
- package/dist/serializers/index.js +12 -3
- package/dist/sourcemap-C8AH3MBQ.d.cts +91 -0
- package/dist/sourcemap-DA1Evhrv.d.ts +91 -0
- package/dist/spreadsheet/index.cjs +161 -3
- package/dist/spreadsheet/index.cjs.map +1 -1
- package/dist/spreadsheet/index.d.cts +611 -20
- package/dist/spreadsheet/index.d.ts +611 -20
- package/dist/spreadsheet/index.js +168 -10
- package/dist/storage-BpFfspHm.d.cts +120 -0
- package/dist/storage-BpFfspHm.d.ts +120 -0
- package/dist/tokens/index.cjs +115 -0
- package/dist/tokens/index.cjs.map +1 -0
- package/dist/tokens/index.d.cts +212 -0
- package/dist/tokens/index.d.ts +212 -0
- package/dist/tokens/index.js +115 -0
- package/dist/tokens/index.js.map +1 -0
- package/dist/{tokens-CyLZmIei.d.cts → tokens-D7yXvUU6.d.cts} +15 -2
- package/dist/{tokens-CyLZmIei.d.ts → tokens-D7yXvUU6.d.ts} +15 -2
- package/dist/{track-changes-BSF58RK0.d.cts → track-changes-D_VAPELi.d.cts} +110 -144
- package/dist/{track-changes-BSF58RK0.d.ts → track-changes-Db_fGEvx.d.ts} +110 -144
- package/package.json +21 -1
- package/dist/chunk-4SUNJZWB.cjs.map +0 -1
- package/dist/chunk-AA4ZEVCC.cjs.map +0 -1
- package/dist/chunk-AXV2ZW34.cjs +0 -118
- package/dist/chunk-AXV2ZW34.cjs.map +0 -1
- package/dist/chunk-B2ZRLN4S.js +0 -118
- package/dist/chunk-B2ZRLN4S.js.map +0 -1
- package/dist/chunk-GVSMRPHB.cjs.map +0 -1
- package/dist/chunk-K3R5NG2D.js +0 -3100
- package/dist/chunk-K3R5NG2D.js.map +0 -1
- package/dist/chunk-MJZBNWG7.js.map +0 -1
- package/dist/chunk-OYXSKQFR.js.map +0 -1
- package/dist/chunk-QBJ22YZR.js.map +0 -1
- package/dist/chunk-QGHGJ56O.js.map +0 -1
- package/dist/chunk-RIKBJLS2.cjs.map +0 -1
- package/dist/chunk-XDMXXC4Z.cjs +0 -3100
- package/dist/chunk-XDMXXC4Z.cjs.map +0 -1
- package/dist/controller-pePCJLT1.d.cts +0 -959
- package/dist/controller-pePCJLT1.d.ts +0 -959
- package/dist/index-CCr_z9kF.d.cts +0 -899
- package/dist/index-Ck6ajwXh.d.ts +0 -899
- /package/dist/{chunk-JJDLPEWL.js.map → chunk-QGYDWPRM.js.map} +0 -0
|
@@ -1,78 +1,158 @@
|
|
|
1
1
|
import {
|
|
2
|
+
CONDITIONAL_FORMAT_ICON_SETS,
|
|
3
|
+
CONDITIONAL_FORMAT_PRESETS,
|
|
4
|
+
CONDITIONAL_FORMAT_STYLE_PRESETS,
|
|
5
|
+
CONDITIONAL_FORMAT_TIME_PERIODS,
|
|
6
|
+
ConditionalFormatEngine,
|
|
7
|
+
DATA_VALIDATION_ERROR_STYLE_OPTIONS,
|
|
8
|
+
DATA_VALIDATION_OPERATOR_OPTIONS,
|
|
9
|
+
DATA_VALIDATION_TYPE_OPTIONS,
|
|
2
10
|
DEFAULT_COLUMN_WIDTH,
|
|
11
|
+
DEFAULT_CONDITIONAL_FORMAT_STYLE,
|
|
12
|
+
DEFAULT_DATA_VALIDATION_MESSAGE,
|
|
13
|
+
DEFAULT_DATA_VALIDATION_TITLE,
|
|
3
14
|
DEFAULT_ROW_HEIGHT,
|
|
4
15
|
DataSourceBinder,
|
|
5
16
|
DependencyGraph,
|
|
17
|
+
EMPTY_CONDITIONAL_FORMAT_OVERLAY,
|
|
18
|
+
MAX_DEFINED_NAME_LENGTH,
|
|
19
|
+
MAX_SHEET_NAME_LENGTH,
|
|
20
|
+
NUMBER_FORMAT_PRESETS,
|
|
6
21
|
SPREADSHEET_CLIPBOARD_MIME,
|
|
7
22
|
SPREADSHEET_IMPORT_ADAPTERS,
|
|
8
23
|
SPREADSHEET_TABLE_ACTIONS,
|
|
9
24
|
SpreadsheetController,
|
|
25
|
+
adjustRangeForStructuralChange,
|
|
26
|
+
adjustRangesForStructuralChange,
|
|
10
27
|
aggregateValues,
|
|
11
28
|
applyFormulaSuggestion,
|
|
12
29
|
bindSpreadsheetTableActions,
|
|
30
|
+
blendConditionalFormatColors,
|
|
13
31
|
buildSpreadsheetView,
|
|
32
|
+
cellFormatForNumberFormat,
|
|
14
33
|
clampMenuPosition,
|
|
15
34
|
columnDependencyKey,
|
|
16
35
|
compareCellValues,
|
|
17
36
|
computeFillTarget,
|
|
18
37
|
computeRowGroups,
|
|
38
|
+
conditionalFormatContrastColor,
|
|
39
|
+
conditionalFormatIconCount,
|
|
40
|
+
conditionalFormatNumber,
|
|
41
|
+
conditionalFormatStyleString,
|
|
42
|
+
copySheetName,
|
|
43
|
+
createConditionalFormatRule,
|
|
19
44
|
createSpreadsheetClipboardData,
|
|
20
45
|
csvImportAdapter,
|
|
21
|
-
|
|
46
|
+
defaultIconThresholds,
|
|
47
|
+
deleteSheetInFormula,
|
|
48
|
+
describeConditionalFormat,
|
|
49
|
+
describeDataValidation,
|
|
50
|
+
evaluateConditionalFormats,
|
|
22
51
|
extractCellDependencies,
|
|
52
|
+
extractNameDependencies,
|
|
23
53
|
fillSeries,
|
|
54
|
+
findDataValidation,
|
|
55
|
+
findInvalidCells,
|
|
56
|
+
forEachRangeCell,
|
|
57
|
+
formatCellDisplay,
|
|
58
|
+
formatCellForDisplay,
|
|
59
|
+
formatRuleRanges,
|
|
60
|
+
formatSheetPrefix,
|
|
61
|
+
formatValueWithCode,
|
|
62
|
+
formulaIdentifiers,
|
|
63
|
+
getConditionalFormatCss,
|
|
64
|
+
getConditionalFormatIcon,
|
|
65
|
+
getDataBarCss,
|
|
24
66
|
getFillDirection,
|
|
25
67
|
getFormulaCaretContext,
|
|
26
68
|
getFormulaHints,
|
|
69
|
+
getNameManagerRows,
|
|
27
70
|
getRowSection,
|
|
71
|
+
getSheetTabMenuItems,
|
|
28
72
|
getSpreadsheetMenuItems,
|
|
29
73
|
getTableSections,
|
|
74
|
+
getValidationListValues,
|
|
30
75
|
importFileIntoSpreadsheet,
|
|
31
76
|
isBlankValue,
|
|
77
|
+
isGeneralNumberFormat,
|
|
78
|
+
isLambdaDefinition,
|
|
32
79
|
isSingleCellRange,
|
|
33
80
|
mapFormulaReferences,
|
|
34
81
|
matchesFilterRule,
|
|
82
|
+
matchesTimePeriod,
|
|
83
|
+
nextSheetName,
|
|
35
84
|
normalizeRange,
|
|
85
|
+
numberFormatForCellFormat,
|
|
36
86
|
offsetFormulaReferences,
|
|
37
|
-
parseCsv,
|
|
38
87
|
parseHtmlTable,
|
|
39
|
-
|
|
88
|
+
parseRuleRanges,
|
|
89
|
+
quoteSheetName,
|
|
40
90
|
rangeContains,
|
|
41
91
|
rangeContainsRange,
|
|
92
|
+
rangesContain,
|
|
42
93
|
rangesIntersect,
|
|
43
94
|
readSpreadsheetClipboard,
|
|
44
95
|
rebaseClipboardRows,
|
|
45
96
|
registerSpreadsheetImportAdapters,
|
|
46
97
|
remapFormulaReferences,
|
|
98
|
+
renameNameInFormula,
|
|
99
|
+
renameSheetInFormula,
|
|
47
100
|
roundFloat,
|
|
48
101
|
rowPassesFilters,
|
|
49
|
-
|
|
102
|
+
ruleAnchor,
|
|
103
|
+
ruleFormulaAt,
|
|
104
|
+
runSpreadsheetMenuItem,
|
|
50
105
|
serializeHtmlTable,
|
|
51
|
-
|
|
106
|
+
sheetDropIndex,
|
|
107
|
+
sheetNameNeedsQuotes,
|
|
52
108
|
shiftFormulaReferences,
|
|
109
|
+
shiftRuleFormula,
|
|
110
|
+
subtractRange,
|
|
111
|
+
subtractRangeFromRanges,
|
|
53
112
|
toNumber,
|
|
54
|
-
tsvImportAdapter
|
|
55
|
-
|
|
113
|
+
tsvImportAdapter,
|
|
114
|
+
validateCellInput,
|
|
115
|
+
validateDefinedName,
|
|
116
|
+
validateSheetName
|
|
117
|
+
} from "../chunk-RR7F5GUM.js";
|
|
118
|
+
import {
|
|
119
|
+
escapeCsvField,
|
|
120
|
+
parseCsv,
|
|
121
|
+
parseTsv,
|
|
122
|
+
serializeCsv,
|
|
123
|
+
serializeTsv
|
|
124
|
+
} from "../chunk-664LQYFJ.js";
|
|
56
125
|
import {
|
|
57
126
|
FORMULA_ERRORS,
|
|
58
127
|
FormulaEvaluator,
|
|
128
|
+
FormulaLambda,
|
|
59
129
|
FormulaParser,
|
|
60
130
|
MAX_FORMULA_ARRAY_SIZE,
|
|
131
|
+
MAX_LAMBDA_DEPTH,
|
|
132
|
+
MAX_NUMBER_FORMAT_CODE_CHARS,
|
|
133
|
+
NumberFormat,
|
|
61
134
|
WHOLE_COLUMN_END_ROW,
|
|
135
|
+
builtinNumberFormat,
|
|
136
|
+
builtinNumberFormatId,
|
|
62
137
|
checkFormulaArgumentCount,
|
|
138
|
+
clearNumberFormatCache,
|
|
63
139
|
colNameToIndex,
|
|
64
140
|
compareNumbers,
|
|
65
141
|
compareValues,
|
|
142
|
+
dateValueToSerial,
|
|
66
143
|
describeFormulaError,
|
|
67
|
-
|
|
68
|
-
|
|
144
|
+
formatGeneralFit,
|
|
145
|
+
formatNumberFormatValue,
|
|
146
|
+
formatTextFunction,
|
|
69
147
|
getFormulaArgumentSpecIndex,
|
|
70
148
|
getFormulaFunction,
|
|
71
149
|
getFormulaSignature,
|
|
72
150
|
getFormulaSignatureParts,
|
|
73
151
|
indexToColName,
|
|
74
152
|
isFormulaError,
|
|
153
|
+
isFormulaLambda,
|
|
75
154
|
listFormulaFunctions,
|
|
155
|
+
numberFormatColorToCss,
|
|
76
156
|
numberToText,
|
|
77
157
|
parseCellInput,
|
|
78
158
|
parseCellReference,
|
|
@@ -87,27 +167,53 @@ import {
|
|
|
87
167
|
tokenizeFormula,
|
|
88
168
|
unregisterFormulaFunction,
|
|
89
169
|
wildcardToRegExp
|
|
90
|
-
} from "../chunk-
|
|
170
|
+
} from "../chunk-FH6F67DN.js";
|
|
91
171
|
export {
|
|
172
|
+
CONDITIONAL_FORMAT_ICON_SETS,
|
|
173
|
+
CONDITIONAL_FORMAT_PRESETS,
|
|
174
|
+
CONDITIONAL_FORMAT_STYLE_PRESETS,
|
|
175
|
+
CONDITIONAL_FORMAT_TIME_PERIODS,
|
|
176
|
+
ConditionalFormatEngine,
|
|
177
|
+
DATA_VALIDATION_ERROR_STYLE_OPTIONS,
|
|
178
|
+
DATA_VALIDATION_OPERATOR_OPTIONS,
|
|
179
|
+
DATA_VALIDATION_TYPE_OPTIONS,
|
|
92
180
|
DEFAULT_COLUMN_WIDTH,
|
|
181
|
+
DEFAULT_CONDITIONAL_FORMAT_STYLE,
|
|
182
|
+
DEFAULT_DATA_VALIDATION_MESSAGE,
|
|
183
|
+
DEFAULT_DATA_VALIDATION_TITLE,
|
|
93
184
|
DEFAULT_ROW_HEIGHT,
|
|
94
185
|
DataSourceBinder,
|
|
95
186
|
DependencyGraph,
|
|
187
|
+
EMPTY_CONDITIONAL_FORMAT_OVERLAY,
|
|
96
188
|
FORMULA_ERRORS,
|
|
97
189
|
FormulaEvaluator,
|
|
190
|
+
FormulaLambda,
|
|
98
191
|
FormulaParser,
|
|
192
|
+
MAX_DEFINED_NAME_LENGTH,
|
|
99
193
|
MAX_FORMULA_ARRAY_SIZE,
|
|
194
|
+
MAX_LAMBDA_DEPTH,
|
|
195
|
+
MAX_NUMBER_FORMAT_CODE_CHARS,
|
|
196
|
+
MAX_SHEET_NAME_LENGTH,
|
|
197
|
+
NUMBER_FORMAT_PRESETS,
|
|
198
|
+
NumberFormat,
|
|
100
199
|
SPREADSHEET_CLIPBOARD_MIME,
|
|
101
200
|
SPREADSHEET_IMPORT_ADAPTERS,
|
|
102
201
|
SPREADSHEET_TABLE_ACTIONS,
|
|
103
202
|
SpreadsheetController,
|
|
104
203
|
WHOLE_COLUMN_END_ROW,
|
|
204
|
+
adjustRangeForStructuralChange,
|
|
205
|
+
adjustRangesForStructuralChange,
|
|
105
206
|
aggregateValues,
|
|
106
207
|
applyFormulaSuggestion,
|
|
107
208
|
bindSpreadsheetTableActions,
|
|
209
|
+
blendConditionalFormatColors,
|
|
108
210
|
buildSpreadsheetView,
|
|
211
|
+
builtinNumberFormat,
|
|
212
|
+
builtinNumberFormatId,
|
|
213
|
+
cellFormatForNumberFormat,
|
|
109
214
|
checkFormulaArgumentCount,
|
|
110
215
|
clampMenuPosition,
|
|
216
|
+
clearNumberFormatCache,
|
|
111
217
|
colNameToIndex,
|
|
112
218
|
columnDependencyKey,
|
|
113
219
|
compareCellValues,
|
|
@@ -115,14 +221,40 @@ export {
|
|
|
115
221
|
compareValues,
|
|
116
222
|
computeFillTarget,
|
|
117
223
|
computeRowGroups,
|
|
224
|
+
conditionalFormatContrastColor,
|
|
225
|
+
conditionalFormatIconCount,
|
|
226
|
+
conditionalFormatNumber,
|
|
227
|
+
conditionalFormatStyleString,
|
|
228
|
+
copySheetName,
|
|
229
|
+
createConditionalFormatRule,
|
|
118
230
|
createSpreadsheetClipboardData,
|
|
119
231
|
csvImportAdapter,
|
|
232
|
+
dateValueToSerial,
|
|
233
|
+
defaultIconThresholds,
|
|
234
|
+
deleteSheetInFormula,
|
|
235
|
+
describeConditionalFormat,
|
|
236
|
+
describeDataValidation,
|
|
120
237
|
describeFormulaError,
|
|
121
238
|
escapeCsvField,
|
|
239
|
+
evaluateConditionalFormats,
|
|
122
240
|
extractCellDependencies,
|
|
241
|
+
extractNameDependencies,
|
|
123
242
|
fillSeries,
|
|
243
|
+
findDataValidation,
|
|
244
|
+
findInvalidCells,
|
|
245
|
+
forEachRangeCell,
|
|
124
246
|
formatCellDisplay,
|
|
247
|
+
formatCellForDisplay,
|
|
248
|
+
formatGeneralFit,
|
|
249
|
+
formatNumberFormatValue,
|
|
250
|
+
formatRuleRanges,
|
|
251
|
+
formatSheetPrefix,
|
|
252
|
+
formatTextFunction,
|
|
125
253
|
formatValueWithCode,
|
|
254
|
+
formulaIdentifiers,
|
|
255
|
+
getConditionalFormatCss,
|
|
256
|
+
getConditionalFormatIcon,
|
|
257
|
+
getDataBarCss,
|
|
126
258
|
getFillDirection,
|
|
127
259
|
getFormulaArgumentSpecIndex,
|
|
128
260
|
getFormulaCaretContext,
|
|
@@ -130,18 +262,28 @@ export {
|
|
|
130
262
|
getFormulaHints,
|
|
131
263
|
getFormulaSignature,
|
|
132
264
|
getFormulaSignatureParts,
|
|
265
|
+
getNameManagerRows,
|
|
133
266
|
getRowSection,
|
|
267
|
+
getSheetTabMenuItems,
|
|
134
268
|
getSpreadsheetMenuItems,
|
|
135
269
|
getTableSections,
|
|
270
|
+
getValidationListValues,
|
|
136
271
|
importFileIntoSpreadsheet,
|
|
137
272
|
indexToColName,
|
|
138
273
|
isBlankValue,
|
|
139
274
|
isFormulaError,
|
|
275
|
+
isFormulaLambda,
|
|
276
|
+
isGeneralNumberFormat,
|
|
277
|
+
isLambdaDefinition,
|
|
140
278
|
isSingleCellRange,
|
|
141
279
|
listFormulaFunctions,
|
|
142
280
|
mapFormulaReferences,
|
|
143
281
|
matchesFilterRule,
|
|
282
|
+
matchesTimePeriod,
|
|
283
|
+
nextSheetName,
|
|
144
284
|
normalizeRange,
|
|
285
|
+
numberFormatColorToCss,
|
|
286
|
+
numberFormatForCellFormat,
|
|
145
287
|
numberToText,
|
|
146
288
|
offsetFormulaReferences,
|
|
147
289
|
parseCellInput,
|
|
@@ -152,28 +294,44 @@ export {
|
|
|
152
294
|
parseHtmlTable,
|
|
153
295
|
parseNumberText,
|
|
154
296
|
parseRange,
|
|
297
|
+
parseRuleRanges,
|
|
155
298
|
parseTsv,
|
|
299
|
+
quoteSheetName,
|
|
156
300
|
rangeContains,
|
|
157
301
|
rangeContainsRange,
|
|
302
|
+
rangesContain,
|
|
158
303
|
rangesIntersect,
|
|
159
304
|
readSpreadsheetClipboard,
|
|
160
305
|
rebaseClipboardRows,
|
|
161
306
|
registerFormulaFunction,
|
|
162
307
|
registerSpreadsheetImportAdapters,
|
|
163
308
|
remapFormulaReferences,
|
|
309
|
+
renameNameInFormula,
|
|
310
|
+
renameSheetInFormula,
|
|
164
311
|
roundFloat,
|
|
165
312
|
rowPassesFilters,
|
|
313
|
+
ruleAnchor,
|
|
314
|
+
ruleFormulaAt,
|
|
315
|
+
runSpreadsheetMenuItem,
|
|
166
316
|
searchFormulaFunctions,
|
|
167
317
|
serialFromYmd,
|
|
168
318
|
serializeCsv,
|
|
169
319
|
serializeHtmlTable,
|
|
170
320
|
serializeTsv,
|
|
321
|
+
sheetDropIndex,
|
|
322
|
+
sheetNameNeedsQuotes,
|
|
171
323
|
shiftFormulaReferences,
|
|
324
|
+
shiftRuleFormula,
|
|
172
325
|
sortCompareValues,
|
|
326
|
+
subtractRange,
|
|
327
|
+
subtractRangeFromRanges,
|
|
173
328
|
toNumber,
|
|
174
329
|
tokenizeFormula,
|
|
175
330
|
tsvImportAdapter,
|
|
176
331
|
unregisterFormulaFunction,
|
|
332
|
+
validateCellInput,
|
|
333
|
+
validateDefinedName,
|
|
334
|
+
validateSheetName,
|
|
177
335
|
wildcardToRegExp
|
|
178
336
|
};
|
|
179
337
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Key/value storage adapters for autosave and crash recovery. Every adapter is
|
|
3
|
+
* async, stores strings, feature-detects its backend (an unavailable backend
|
|
4
|
+
* rejects every call with `StorageUnavailableError` instead of throwing at
|
|
5
|
+
* construction, so SSR and old browsers are safe) and accepts an injectable
|
|
6
|
+
* failure mode for tests.
|
|
7
|
+
*/
|
|
8
|
+
type StorageOperation = "get" | "set" | "remove";
|
|
9
|
+
/**
|
|
10
|
+
* Injected failure: return `true` (or an `Error`) to make that operation fail.
|
|
11
|
+
* Example: `failure: (op) => op === "set"` simulates a full disk.
|
|
12
|
+
*/
|
|
13
|
+
type StorageFailureMode = (operation: StorageOperation, key: string) => boolean | Error | undefined | void;
|
|
14
|
+
interface StorageAdapter {
|
|
15
|
+
/** Short backend name, e.g. `"memory"`, `"localStorage"`, `"indexedDB"`, `"opfs"`. */
|
|
16
|
+
readonly kind: string;
|
|
17
|
+
/** Whether the backend was found. When `false`, every call rejects. */
|
|
18
|
+
readonly available: boolean;
|
|
19
|
+
get(key: string): Promise<string | null>;
|
|
20
|
+
set(key: string, value: string): Promise<void>;
|
|
21
|
+
remove(key: string): Promise<void>;
|
|
22
|
+
}
|
|
23
|
+
interface StorageAdapterOptions {
|
|
24
|
+
failure?: StorageFailureMode;
|
|
25
|
+
}
|
|
26
|
+
declare class StorageUnavailableError extends Error {
|
|
27
|
+
constructor(kind: string);
|
|
28
|
+
}
|
|
29
|
+
declare class InjectedStorageError extends Error {
|
|
30
|
+
constructor(operation: StorageOperation, key: string);
|
|
31
|
+
}
|
|
32
|
+
/** Wraps an adapter so `failure` can make any of its operations fail. */
|
|
33
|
+
declare function withStorageFailures(inner: StorageAdapter, failure: StorageFailureMode): StorageAdapter;
|
|
34
|
+
interface MemoryStorage extends StorageAdapter {
|
|
35
|
+
/** The underlying map (inspect it in tests). */
|
|
36
|
+
readonly entries: Map<string, string>;
|
|
37
|
+
}
|
|
38
|
+
/** In-memory storage (tests, SSR, or a session-only fallback). */
|
|
39
|
+
declare function createMemoryStorage(options?: StorageAdapterOptions & {
|
|
40
|
+
initial?: Record<string, string>;
|
|
41
|
+
}): MemoryStorage;
|
|
42
|
+
/** Minimal `Storage` surface used by the localStorage adapter. */
|
|
43
|
+
interface WebStorageLike {
|
|
44
|
+
getItem(key: string): string | null;
|
|
45
|
+
setItem(key: string, value: string): void;
|
|
46
|
+
removeItem(key: string): void;
|
|
47
|
+
}
|
|
48
|
+
interface LocalStorageAdapterOptions extends StorageAdapterOptions {
|
|
49
|
+
/** Storage to use (default `globalThis.localStorage`, e.g. pass `sessionStorage`). */
|
|
50
|
+
storage?: WebStorageLike;
|
|
51
|
+
}
|
|
52
|
+
/** Whether `localStorage` can be used (it throws when site data is blocked). */
|
|
53
|
+
declare function isLocalStorageAvailable(): boolean;
|
|
54
|
+
/**
|
|
55
|
+
* `localStorage` adapter; every key is prefixed with `prefix`. Writes are
|
|
56
|
+
* synchronous under the hood, so they complete even inside `pagehide`.
|
|
57
|
+
* A full quota rejects the `set` (`QuotaExceededError`).
|
|
58
|
+
*/
|
|
59
|
+
declare function createLocalStorageAdapter(prefix?: string, options?: LocalStorageAdapterOptions): StorageAdapter;
|
|
60
|
+
/** Minimal `IDBFactory` surface (the real `indexedDB`, or a fake in tests). */
|
|
61
|
+
interface IdbFactoryLike {
|
|
62
|
+
open(name: string, version?: number): any;
|
|
63
|
+
}
|
|
64
|
+
interface IndexedDbAdapterOptions extends StorageAdapterOptions {
|
|
65
|
+
/** Object store name (default `"kv"`). */
|
|
66
|
+
store?: string;
|
|
67
|
+
/** Factory to use (default `globalThis.indexedDB`). */
|
|
68
|
+
indexedDB?: IdbFactoryLike;
|
|
69
|
+
}
|
|
70
|
+
/** Whether `indexedDB` exists in this environment. */
|
|
71
|
+
declare function isIndexedDbAvailable(): boolean;
|
|
72
|
+
/**
|
|
73
|
+
* IndexedDB adapter: one database `name` with a single key/value object store.
|
|
74
|
+
* A `set` resolves when its transaction completes (not merely when the request
|
|
75
|
+
* succeeds), so a resolved write is durable.
|
|
76
|
+
*/
|
|
77
|
+
declare function createIndexedDbAdapter(name?: string, options?: IndexedDbAdapterOptions): StorageAdapter;
|
|
78
|
+
/** Minimal `FileSystemDirectoryHandle` surface used by the OPFS adapter. */
|
|
79
|
+
interface OpfsDirectoryLike {
|
|
80
|
+
getDirectoryHandle(name: string, options?: {
|
|
81
|
+
create?: boolean;
|
|
82
|
+
}): Promise<OpfsDirectoryLike>;
|
|
83
|
+
getFileHandle(name: string, options?: {
|
|
84
|
+
create?: boolean;
|
|
85
|
+
}): Promise<OpfsFileLike>;
|
|
86
|
+
removeEntry(name: string): Promise<void>;
|
|
87
|
+
}
|
|
88
|
+
interface OpfsFileLike {
|
|
89
|
+
getFile(): Promise<{
|
|
90
|
+
text(): Promise<string>;
|
|
91
|
+
}>;
|
|
92
|
+
createWritable?(): Promise<{
|
|
93
|
+
write(data: string): Promise<void>;
|
|
94
|
+
close(): Promise<void>;
|
|
95
|
+
}>;
|
|
96
|
+
/** Rename in place (Chromium, Safari). Used for temp-file + rename writes. */
|
|
97
|
+
move?(name: string): Promise<void>;
|
|
98
|
+
}
|
|
99
|
+
interface OpfsAdapterOptions extends StorageAdapterOptions {
|
|
100
|
+
/** Root directory (default `navigator.storage.getDirectory()`). */
|
|
101
|
+
root?: () => Promise<OpfsDirectoryLike>;
|
|
102
|
+
/** Force the write-then-pointer-swap strategy even when `move` exists. */
|
|
103
|
+
disableRename?: boolean;
|
|
104
|
+
}
|
|
105
|
+
/** Whether the Origin Private File System exists (`navigator.storage.getDirectory`). */
|
|
106
|
+
declare function isOpfsAvailable(): boolean;
|
|
107
|
+
/**
|
|
108
|
+
* Origin Private File System adapter. Values are files in `dir` (created on
|
|
109
|
+
* demand), named after the URI-encoded key.
|
|
110
|
+
*
|
|
111
|
+
* Writes never leave a half-written value behind: where file handles support
|
|
112
|
+
* `move`, the value is written to `<file>.tmp` and renamed over `<file>`;
|
|
113
|
+
* otherwise it alternates between two slots (`<file>.a` / `<file>.b`) and then
|
|
114
|
+
* swaps a pointer file (`<file>.ptr`), so a crash mid-write keeps the previous
|
|
115
|
+
* value. Main-thread writes need `createWritable` (missing in some Safari
|
|
116
|
+
* versions); without it, `set` rejects with `StorageUnavailableError`.
|
|
117
|
+
*/
|
|
118
|
+
declare function createOpfsAdapter(dir?: string, options?: OpfsAdapterOptions): StorageAdapter;
|
|
119
|
+
|
|
120
|
+
export { type IdbFactoryLike as I, type LocalStorageAdapterOptions as L, type MemoryStorage as M, type OpfsAdapterOptions as O, type StorageAdapter as S, type WebStorageLike as W, type IndexedDbAdapterOptions as a, InjectedStorageError as b, type OpfsDirectoryLike as c, type OpfsFileLike as d, type StorageAdapterOptions as e, type StorageFailureMode as f, type StorageOperation as g, StorageUnavailableError as h, createIndexedDbAdapter as i, createLocalStorageAdapter as j, createMemoryStorage as k, createOpfsAdapter as l, isIndexedDbAvailable as m, isLocalStorageAvailable as n, isOpfsAvailable as o, withStorageFailures as w };
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Key/value storage adapters for autosave and crash recovery. Every adapter is
|
|
3
|
+
* async, stores strings, feature-detects its backend (an unavailable backend
|
|
4
|
+
* rejects every call with `StorageUnavailableError` instead of throwing at
|
|
5
|
+
* construction, so SSR and old browsers are safe) and accepts an injectable
|
|
6
|
+
* failure mode for tests.
|
|
7
|
+
*/
|
|
8
|
+
type StorageOperation = "get" | "set" | "remove";
|
|
9
|
+
/**
|
|
10
|
+
* Injected failure: return `true` (or an `Error`) to make that operation fail.
|
|
11
|
+
* Example: `failure: (op) => op === "set"` simulates a full disk.
|
|
12
|
+
*/
|
|
13
|
+
type StorageFailureMode = (operation: StorageOperation, key: string) => boolean | Error | undefined | void;
|
|
14
|
+
interface StorageAdapter {
|
|
15
|
+
/** Short backend name, e.g. `"memory"`, `"localStorage"`, `"indexedDB"`, `"opfs"`. */
|
|
16
|
+
readonly kind: string;
|
|
17
|
+
/** Whether the backend was found. When `false`, every call rejects. */
|
|
18
|
+
readonly available: boolean;
|
|
19
|
+
get(key: string): Promise<string | null>;
|
|
20
|
+
set(key: string, value: string): Promise<void>;
|
|
21
|
+
remove(key: string): Promise<void>;
|
|
22
|
+
}
|
|
23
|
+
interface StorageAdapterOptions {
|
|
24
|
+
failure?: StorageFailureMode;
|
|
25
|
+
}
|
|
26
|
+
declare class StorageUnavailableError extends Error {
|
|
27
|
+
constructor(kind: string);
|
|
28
|
+
}
|
|
29
|
+
declare class InjectedStorageError extends Error {
|
|
30
|
+
constructor(operation: StorageOperation, key: string);
|
|
31
|
+
}
|
|
32
|
+
/** Wraps an adapter so `failure` can make any of its operations fail. */
|
|
33
|
+
declare function withStorageFailures(inner: StorageAdapter, failure: StorageFailureMode): StorageAdapter;
|
|
34
|
+
interface MemoryStorage extends StorageAdapter {
|
|
35
|
+
/** The underlying map (inspect it in tests). */
|
|
36
|
+
readonly entries: Map<string, string>;
|
|
37
|
+
}
|
|
38
|
+
/** In-memory storage (tests, SSR, or a session-only fallback). */
|
|
39
|
+
declare function createMemoryStorage(options?: StorageAdapterOptions & {
|
|
40
|
+
initial?: Record<string, string>;
|
|
41
|
+
}): MemoryStorage;
|
|
42
|
+
/** Minimal `Storage` surface used by the localStorage adapter. */
|
|
43
|
+
interface WebStorageLike {
|
|
44
|
+
getItem(key: string): string | null;
|
|
45
|
+
setItem(key: string, value: string): void;
|
|
46
|
+
removeItem(key: string): void;
|
|
47
|
+
}
|
|
48
|
+
interface LocalStorageAdapterOptions extends StorageAdapterOptions {
|
|
49
|
+
/** Storage to use (default `globalThis.localStorage`, e.g. pass `sessionStorage`). */
|
|
50
|
+
storage?: WebStorageLike;
|
|
51
|
+
}
|
|
52
|
+
/** Whether `localStorage` can be used (it throws when site data is blocked). */
|
|
53
|
+
declare function isLocalStorageAvailable(): boolean;
|
|
54
|
+
/**
|
|
55
|
+
* `localStorage` adapter; every key is prefixed with `prefix`. Writes are
|
|
56
|
+
* synchronous under the hood, so they complete even inside `pagehide`.
|
|
57
|
+
* A full quota rejects the `set` (`QuotaExceededError`).
|
|
58
|
+
*/
|
|
59
|
+
declare function createLocalStorageAdapter(prefix?: string, options?: LocalStorageAdapterOptions): StorageAdapter;
|
|
60
|
+
/** Minimal `IDBFactory` surface (the real `indexedDB`, or a fake in tests). */
|
|
61
|
+
interface IdbFactoryLike {
|
|
62
|
+
open(name: string, version?: number): any;
|
|
63
|
+
}
|
|
64
|
+
interface IndexedDbAdapterOptions extends StorageAdapterOptions {
|
|
65
|
+
/** Object store name (default `"kv"`). */
|
|
66
|
+
store?: string;
|
|
67
|
+
/** Factory to use (default `globalThis.indexedDB`). */
|
|
68
|
+
indexedDB?: IdbFactoryLike;
|
|
69
|
+
}
|
|
70
|
+
/** Whether `indexedDB` exists in this environment. */
|
|
71
|
+
declare function isIndexedDbAvailable(): boolean;
|
|
72
|
+
/**
|
|
73
|
+
* IndexedDB adapter: one database `name` with a single key/value object store.
|
|
74
|
+
* A `set` resolves when its transaction completes (not merely when the request
|
|
75
|
+
* succeeds), so a resolved write is durable.
|
|
76
|
+
*/
|
|
77
|
+
declare function createIndexedDbAdapter(name?: string, options?: IndexedDbAdapterOptions): StorageAdapter;
|
|
78
|
+
/** Minimal `FileSystemDirectoryHandle` surface used by the OPFS adapter. */
|
|
79
|
+
interface OpfsDirectoryLike {
|
|
80
|
+
getDirectoryHandle(name: string, options?: {
|
|
81
|
+
create?: boolean;
|
|
82
|
+
}): Promise<OpfsDirectoryLike>;
|
|
83
|
+
getFileHandle(name: string, options?: {
|
|
84
|
+
create?: boolean;
|
|
85
|
+
}): Promise<OpfsFileLike>;
|
|
86
|
+
removeEntry(name: string): Promise<void>;
|
|
87
|
+
}
|
|
88
|
+
interface OpfsFileLike {
|
|
89
|
+
getFile(): Promise<{
|
|
90
|
+
text(): Promise<string>;
|
|
91
|
+
}>;
|
|
92
|
+
createWritable?(): Promise<{
|
|
93
|
+
write(data: string): Promise<void>;
|
|
94
|
+
close(): Promise<void>;
|
|
95
|
+
}>;
|
|
96
|
+
/** Rename in place (Chromium, Safari). Used for temp-file + rename writes. */
|
|
97
|
+
move?(name: string): Promise<void>;
|
|
98
|
+
}
|
|
99
|
+
interface OpfsAdapterOptions extends StorageAdapterOptions {
|
|
100
|
+
/** Root directory (default `navigator.storage.getDirectory()`). */
|
|
101
|
+
root?: () => Promise<OpfsDirectoryLike>;
|
|
102
|
+
/** Force the write-then-pointer-swap strategy even when `move` exists. */
|
|
103
|
+
disableRename?: boolean;
|
|
104
|
+
}
|
|
105
|
+
/** Whether the Origin Private File System exists (`navigator.storage.getDirectory`). */
|
|
106
|
+
declare function isOpfsAvailable(): boolean;
|
|
107
|
+
/**
|
|
108
|
+
* Origin Private File System adapter. Values are files in `dir` (created on
|
|
109
|
+
* demand), named after the URI-encoded key.
|
|
110
|
+
*
|
|
111
|
+
* Writes never leave a half-written value behind: where file handles support
|
|
112
|
+
* `move`, the value is written to `<file>.tmp` and renamed over `<file>`;
|
|
113
|
+
* otherwise it alternates between two slots (`<file>.a` / `<file>.b`) and then
|
|
114
|
+
* swaps a pointer file (`<file>.ptr`), so a crash mid-write keeps the previous
|
|
115
|
+
* value. Main-thread writes need `createWritable` (missing in some Safari
|
|
116
|
+
* versions); without it, `set` rejects with `StorageUnavailableError`.
|
|
117
|
+
*/
|
|
118
|
+
declare function createOpfsAdapter(dir?: string, options?: OpfsAdapterOptions): StorageAdapter;
|
|
119
|
+
|
|
120
|
+
export { type IdbFactoryLike as I, type LocalStorageAdapterOptions as L, type MemoryStorage as M, type OpfsAdapterOptions as O, type StorageAdapter as S, type WebStorageLike as W, type IndexedDbAdapterOptions as a, InjectedStorageError as b, type OpfsDirectoryLike as c, type OpfsFileLike as d, type StorageAdapterOptions as e, type StorageFailureMode as f, type StorageOperation as g, StorageUnavailableError as h, createIndexedDbAdapter as i, createLocalStorageAdapter as j, createMemoryStorage as k, createOpfsAdapter as l, isIndexedDbAvailable as m, isLocalStorageAvailable as n, isOpfsAvailable as o, withStorageFailures as w };
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
var _chunk4BVP64JJcjs = require('../chunk-4BVP64JJ.cjs');
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
exports.EMPTY_TOKEN_STATE = _chunk4BVP64JJcjs.EMPTY_TOKEN_STATE; exports.TOKEN_SCOPES_BY_TYPE = _chunk4BVP64JJcjs.TOKEN_SCOPES_BY_TYPE; exports.TOKEN_TYPES = _chunk4BVP64JJcjs.TOKEN_TYPES; exports.TokenError = _chunk4BVP64JJcjs.TokenError; exports.TokenStore = _chunk4BVP64JJcjs.TokenStore; exports.W3C_TOKENS_EXTENSION = _chunk4BVP64JJcjs.W3C_TOKENS_EXTENSION; exports.addTokenMode = _chunk4BVP64JJcjs.addTokenMode; exports.checkTokenAlias = _chunk4BVP64JJcjs.checkTokenAlias; exports.coerceTokenLiteral = _chunk4BVP64JJcjs.coerceTokenLiteral; exports.createTokenCollection = _chunk4BVP64JJcjs.createTokenCollection; exports.createTokenStore = _chunk4BVP64JJcjs.createTokenStore; exports.createTokenVariable = _chunk4BVP64JJcjs.createTokenVariable; exports.cssString = _chunk4BVP64JJcjs.cssString; exports.defaultTokenId = _chunk4BVP64JJcjs.defaultTokenId; exports.defaultTokenValue = _chunk4BVP64JJcjs.defaultTokenValue; exports.deleteTokenCollection = _chunk4BVP64JJcjs.deleteTokenCollection; exports.deleteTokenVariables = _chunk4BVP64JJcjs.deleteTokenVariables; exports.exportTokensCss = _chunk4BVP64JJcjs.exportTokensCss; exports.exportW3CTokens = _chunk4BVP64JJcjs.exportW3CTokens; exports.exportW3CTokensJson = _chunk4BVP64JJcjs.exportW3CTokensJson; exports.findTokenCollection = _chunk4BVP64JJcjs.findTokenCollection; exports.findTokenMode = _chunk4BVP64JJcjs.findTokenMode; exports.findTokenVariable = _chunk4BVP64JJcjs.findTokenVariable; exports.formatTokenCssValue = _chunk4BVP64JJcjs.formatTokenCssValue; exports.formatTokenValue = _chunk4BVP64JJcjs.formatTokenValue; exports.getCollectionVariables = _chunk4BVP64JJcjs.getCollectionVariables; exports.getCurrentMode = _chunk4BVP64JJcjs.getCurrentMode; exports.getDefaultMode = _chunk4BVP64JJcjs.getDefaultMode; exports.getTokenCollection = _chunk4BVP64JJcjs.getTokenCollection; exports.getTokenCssName = _chunk4BVP64JJcjs.getTokenCssName; exports.getTokenCssVariables = _chunk4BVP64JJcjs.getTokenCssVariables; exports.getTokenVariable = _chunk4BVP64JJcjs.getTokenVariable; exports.hexToRgba = _chunk4BVP64JJcjs.hexToRgba; exports.importW3CTokens = _chunk4BVP64JJcjs.importW3CTokens; exports.isTokenAlias = _chunk4BVP64JJcjs.isTokenAlias; exports.isTokenInScope = _chunk4BVP64JJcjs.isTokenInScope; exports.isTokenScopeKnown = _chunk4BVP64JJcjs.isTokenScopeKnown; exports.literalTokenType = _chunk4BVP64JJcjs.literalTokenType; exports.moveTokenMode = _chunk4BVP64JJcjs.moveTokenMode; exports.normalizeTokenColor = _chunk4BVP64JJcjs.normalizeTokenColor; exports.normalizeTokenName = _chunk4BVP64JJcjs.normalizeTokenName; exports.normalizeTokenScopes = _chunk4BVP64JJcjs.normalizeTokenScopes; exports.parseTokenState = _chunk4BVP64JJcjs.parseTokenState; exports.prepareTokenValue = _chunk4BVP64JJcjs.prepareTokenValue; exports.removeTokenMode = _chunk4BVP64JJcjs.removeTokenMode; exports.renameTokenCollection = _chunk4BVP64JJcjs.renameTokenCollection; exports.renameTokenMode = _chunk4BVP64JJcjs.renameTokenMode; exports.renameTokenVariable = _chunk4BVP64JJcjs.renameTokenVariable; exports.resolveToken = _chunk4BVP64JJcjs.resolveToken; exports.resolveTokenInMode = _chunk4BVP64JJcjs.resolveTokenInMode; exports.resolveTokenValue = _chunk4BVP64JJcjs.resolveTokenValue; exports.rgbaToHex = _chunk4BVP64JJcjs.rgbaToHex; exports.setTokenValue = _chunk4BVP64JJcjs.setTokenValue; exports.tokenSlug = _chunk4BVP64JJcjs.tokenSlug; exports.updateTokenVariable = _chunk4BVP64JJcjs.updateTokenVariable;
|
|
115
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/editor/editor/packages/core/dist/tokens/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;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;AACF,43GAAC","file":"/home/runner/work/editor/editor/packages/core/dist/tokens/index.cjs"}
|