@salesforce/ui-design-mode 12.17.0 → 13.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/authoring/core/DesignPropertyPanelRoot.d.cts +4 -2
- package/dist/authoring/core/DesignPropertyPanelRoot.d.ts +4 -2
- package/dist/authoring/core/DesignPropertyPanelRoot.d.ts.map +1 -1
- package/dist/authoring/core/editors/BoxDimensionEditor.d.cts +20 -34
- package/dist/authoring/core/editors/BoxDimensionEditor.d.ts +20 -34
- package/dist/authoring/core/editors/BoxDimensionEditor.d.ts.map +1 -1
- package/dist/authoring/core/editors/ColorEditor.d.cts +8 -7
- package/dist/authoring/core/editors/ColorEditor.d.ts +8 -7
- package/dist/authoring/core/editors/ColorEditor.d.ts.map +1 -1
- package/dist/authoring/core/editors/DimensionEditor.d.ts.map +1 -1
- package/dist/authoring/core/editors/FieldNotice.d.cts +17 -0
- package/dist/authoring/core/editors/FieldNotice.d.ts +17 -0
- package/dist/authoring/core/editors/FieldNotice.d.ts.map +1 -0
- package/dist/authoring/core/editors/FontFamilyEditor.d.cts +4 -6
- package/dist/authoring/core/editors/FontFamilyEditor.d.ts +4 -6
- package/dist/authoring/core/editors/FontFamilyEditor.d.ts.map +1 -1
- package/dist/authoring/core/editors/FontWeightEditor.d.cts +6 -5
- package/dist/authoring/core/editors/FontWeightEditor.d.ts +6 -5
- package/dist/authoring/core/editors/FontWeightEditor.d.ts.map +1 -1
- package/dist/authoring/core/editors/ImageEditor.d.cts +21 -1
- package/dist/authoring/core/editors/ImageEditor.d.ts +21 -1
- package/dist/authoring/core/editors/ImageEditor.d.ts.map +1 -1
- package/dist/authoring/core/editors/PicklistEditor.d.cts +5 -21
- package/dist/authoring/core/editors/PicklistEditor.d.ts +5 -21
- package/dist/authoring/core/editors/PicklistEditor.d.ts.map +1 -1
- package/dist/authoring/core/history/changeSet.d.cts +28 -5
- package/dist/authoring/core/history/changeSet.d.ts +28 -5
- package/dist/authoring/core/history/changeSet.d.ts.map +1 -1
- package/dist/authoring/core/history/historyService.d.cts +1 -3
- package/dist/authoring/core/history/historyService.d.ts +1 -3
- package/dist/authoring/core/history/historyService.d.ts.map +1 -1
- package/dist/authoring/core/history/iframeCommandExecutor.d.cts +1 -1
- package/dist/authoring/core/history/iframeCommandExecutor.d.ts +1 -1
- package/dist/authoring/core/hooks/useRecentColors.d.cts +12 -0
- package/dist/authoring/core/hooks/useRecentColors.d.ts +12 -0
- package/dist/authoring/core/hooks/useRecentColors.d.ts.map +1 -0
- package/dist/authoring/core/labels/labels.d.cts +74 -97
- package/dist/authoring/core/labels/labels.d.ts +74 -97
- package/dist/authoring/core/labels/labels.d.ts.map +1 -1
- package/dist/authoring/core/utils/colorEditorModel.d.cts +18 -0
- package/dist/authoring/core/utils/colorEditorModel.d.ts +18 -0
- package/dist/authoring/core/utils/colorEditorModel.d.ts.map +1 -0
- package/dist/authoring/core/utils/colorOcclusion.d.cts +4 -20
- package/dist/authoring/core/utils/colorOcclusion.d.ts +4 -20
- package/dist/authoring/core/utils/colorOcclusion.d.ts.map +1 -1
- package/dist/authoring/core/utils/dimensionUtils.d.cts +0 -39
- package/dist/authoring/core/utils/dimensionUtils.d.ts +0 -39
- package/dist/authoring/core/utils/dimensionUtils.d.ts.map +1 -1
- package/dist/authoring/react/index.d.cts +1 -1
- package/dist/authoring/react/index.d.ts +1 -1
- package/dist/authoring/react/index.d.ts.map +1 -1
- package/dist/authoring/react/index.js +3 -3
- package/dist/authoring/react/styles.css +1 -1
- package/dist/authoring/web-component/index.d.cts +3 -1
- package/dist/authoring/web-component/index.d.ts +3 -1
- package/dist/authoring/web-component/index.d.ts.map +1 -1
- package/dist/authoring/web-component/index.js +290 -288
- package/dist/protocol/domAttributes.cjs +4 -0
- package/dist/protocol/domAttributes.d.cts +17 -0
- package/dist/protocol/domAttributes.d.ts +17 -0
- package/dist/protocol/domAttributes.d.ts.map +1 -1
- package/dist/protocol/domAttributes.js +4 -0
- package/dist/protocol/index.cjs +4 -0
- package/dist/protocol/index.js +6 -2
- package/dist/protocol/measuredStyleProperties.cjs +18 -0
- package/dist/protocol/measuredStyleProperties.d.cts +7 -0
- package/dist/protocol/measuredStyleProperties.d.ts +7 -0
- package/dist/protocol/measuredStyleProperties.d.ts.map +1 -1
- package/dist/protocol/measuredStyleProperties.js +18 -0
- package/dist/protocol/messageTypes.d.cts +27 -16
- package/dist/protocol/messageTypes.d.ts +27 -16
- package/dist/protocol/messageTypes.d.ts.map +1 -1
- package/dist/protocol/version.cjs +1 -1
- package/dist/protocol/version.js +1 -1
- package/dist/runtime/design-mode-interactions.js +198 -88
- package/dist/runtime/interactions/communicationManager.d.cts +2 -2
- package/dist/runtime/interactions/communicationManager.d.ts +2 -2
- package/dist/runtime/interactions/communicationManager.d.ts.map +1 -1
- package/dist/runtime/interactions/eventHandlers.d.cts +1 -1
- package/dist/runtime/interactions/eventHandlers.d.ts +1 -1
- package/dist/runtime/interactions/eventHandlers.d.ts.map +1 -1
- package/dist/runtime/interactions/interactionsController.d.cts +2 -0
- package/dist/runtime/interactions/interactionsController.d.ts +2 -0
- package/dist/runtime/interactions/interactionsController.d.ts.map +1 -1
- package/dist/runtime/interactions/propertyEditorCapabilities.d.cts +4 -0
- package/dist/runtime/interactions/propertyEditorCapabilities.d.ts +4 -0
- package/dist/runtime/interactions/propertyEditorCapabilities.d.ts.map +1 -0
- package/dist/runtime/interactions/utils/cssUtils.d.cts +3 -7
- package/dist/runtime/interactions/utils/cssUtils.d.ts +3 -7
- package/dist/runtime/interactions/utils/cssUtils.d.ts.map +1 -1
- package/dist/runtime/interactions/utils/sourceUtils.d.cts +1 -1
- package/dist/runtime/interactions/utils/sourceUtils.d.ts +1 -1
- package/dist/source-locator/react/babel/reactDesignTimeLocatorBabelPlugin.cjs +33 -0
- package/dist/source-locator/react/babel/reactDesignTimeLocatorBabelPlugin.d.ts.map +1 -1
- package/dist/source-locator/react/babel/reactDesignTimeLocatorBabelPlugin.js +34 -1
- package/package.json +1 -1
|
@@ -66,18 +66,12 @@ export interface PanelLabels {
|
|
|
66
66
|
padding: string;
|
|
67
67
|
margin: string;
|
|
68
68
|
borderRadius: string;
|
|
69
|
-
borderWeight: string;
|
|
70
|
-
borderStyle: string;
|
|
71
|
-
borderColor: string;
|
|
72
69
|
fontFamily: string;
|
|
73
70
|
fontSize: string;
|
|
74
71
|
fontWeight: string;
|
|
75
|
-
fontStyle: string;
|
|
76
72
|
textStyling: string;
|
|
77
73
|
textColor: string;
|
|
78
74
|
textAlignment: string;
|
|
79
|
-
textFormatting: string;
|
|
80
|
-
textTransform: string;
|
|
81
75
|
lineHeight: string;
|
|
82
76
|
letterSpacing: string;
|
|
83
77
|
};
|
|
@@ -95,6 +89,12 @@ export interface PanelLabels {
|
|
|
95
89
|
previewAlt: string;
|
|
96
90
|
altText: string;
|
|
97
91
|
altPlaceholder: string;
|
|
92
|
+
sourceFromData: string;
|
|
93
|
+
sourceNotEditable: string;
|
|
94
|
+
altFromData: string;
|
|
95
|
+
altNotEditable: string;
|
|
96
|
+
sourceShared: string;
|
|
97
|
+
altShared: string;
|
|
98
98
|
workspace: string;
|
|
99
99
|
selectWorkspace: string;
|
|
100
100
|
selectImage: string;
|
|
@@ -125,8 +125,19 @@ export interface PanelLabels {
|
|
|
125
125
|
bottomRight: string;
|
|
126
126
|
bottomLeft: string;
|
|
127
127
|
};
|
|
128
|
-
|
|
129
|
-
|
|
128
|
+
allCorners: string;
|
|
129
|
+
expandCorners: string;
|
|
130
|
+
collapseCorners: string;
|
|
131
|
+
matchCornersAndCollapse: string;
|
|
132
|
+
vertical: string;
|
|
133
|
+
horizontal: string;
|
|
134
|
+
expand: string;
|
|
135
|
+
collapse: string;
|
|
136
|
+
matchAndCollapse: string;
|
|
137
|
+
collapseUnavailable: string;
|
|
138
|
+
measurementUnavailable: string;
|
|
139
|
+
invalidNumber: string;
|
|
140
|
+
invalidNonNegative: string;
|
|
130
141
|
ariaSide: string;
|
|
131
142
|
};
|
|
132
143
|
dimension: {
|
|
@@ -136,9 +147,6 @@ export interface PanelLabels {
|
|
|
136
147
|
useNormalSpacing: string;
|
|
137
148
|
useInherit: string;
|
|
138
149
|
invalidRange: string;
|
|
139
|
-
unitPx: string;
|
|
140
|
-
unitEm: string;
|
|
141
|
-
unitless: string;
|
|
142
150
|
};
|
|
143
151
|
color: {
|
|
144
152
|
placeholder: string;
|
|
@@ -152,10 +160,14 @@ export interface PanelLabels {
|
|
|
152
160
|
ariaHex: string;
|
|
153
161
|
ariaChannel: string;
|
|
154
162
|
ariaAlphaInput: string;
|
|
155
|
-
|
|
156
|
-
|
|
163
|
+
ariaOpacity: string;
|
|
164
|
+
invalidHex: string;
|
|
165
|
+
invalidOpacity: string;
|
|
166
|
+
invalidChannel: string;
|
|
157
167
|
gradientValue: string;
|
|
158
168
|
imageValue: string;
|
|
169
|
+
ariaRecentColors: string;
|
|
170
|
+
ariaApplyRecentColor: string;
|
|
159
171
|
};
|
|
160
172
|
fontWeight: {
|
|
161
173
|
options: {
|
|
@@ -177,20 +189,6 @@ export interface PanelLabels {
|
|
|
177
189
|
uppercase: string;
|
|
178
190
|
};
|
|
179
191
|
};
|
|
180
|
-
fontStyle: {
|
|
181
|
-
options: {
|
|
182
|
-
normal: string;
|
|
183
|
-
italic: string;
|
|
184
|
-
};
|
|
185
|
-
};
|
|
186
|
-
borderStyle: {
|
|
187
|
-
options: {
|
|
188
|
-
none: string;
|
|
189
|
-
solid: string;
|
|
190
|
-
dashed: string;
|
|
191
|
-
dotted: string;
|
|
192
|
-
};
|
|
193
|
-
};
|
|
194
192
|
textAlignment: {
|
|
195
193
|
options: {
|
|
196
194
|
left: string;
|
|
@@ -199,24 +197,6 @@ export interface PanelLabels {
|
|
|
199
197
|
justify: string;
|
|
200
198
|
};
|
|
201
199
|
};
|
|
202
|
-
textDecoration: {
|
|
203
|
-
options: {
|
|
204
|
-
none: string;
|
|
205
|
-
underline: string;
|
|
206
|
-
lineThrough: string;
|
|
207
|
-
};
|
|
208
|
-
};
|
|
209
|
-
textTransform: {
|
|
210
|
-
options: {
|
|
211
|
-
none: string;
|
|
212
|
-
uppercase: string;
|
|
213
|
-
lowercase: string;
|
|
214
|
-
capitalize: string;
|
|
215
|
-
};
|
|
216
|
-
};
|
|
217
|
-
picklist: {
|
|
218
|
-
ariaReset: string;
|
|
219
|
-
};
|
|
220
200
|
};
|
|
221
201
|
history: {
|
|
222
202
|
changeLimitTitle: string;
|
|
@@ -294,30 +274,18 @@ export declare const REQUIRED_LABEL_KEYS: readonly [{
|
|
|
294
274
|
readonly path: "instances.margin";
|
|
295
275
|
}, {
|
|
296
276
|
readonly path: "instances.borderRadius";
|
|
297
|
-
}, {
|
|
298
|
-
readonly path: "instances.borderWeight";
|
|
299
|
-
}, {
|
|
300
|
-
readonly path: "instances.borderStyle";
|
|
301
|
-
}, {
|
|
302
|
-
readonly path: "instances.borderColor";
|
|
303
277
|
}, {
|
|
304
278
|
readonly path: "instances.fontFamily";
|
|
305
279
|
}, {
|
|
306
280
|
readonly path: "instances.fontSize";
|
|
307
281
|
}, {
|
|
308
282
|
readonly path: "instances.fontWeight";
|
|
309
|
-
}, {
|
|
310
|
-
readonly path: "instances.fontStyle";
|
|
311
283
|
}, {
|
|
312
284
|
readonly path: "instances.textStyling";
|
|
313
285
|
}, {
|
|
314
286
|
readonly path: "instances.textColor";
|
|
315
287
|
}, {
|
|
316
288
|
readonly path: "instances.textAlignment";
|
|
317
|
-
}, {
|
|
318
|
-
readonly path: "instances.textFormatting";
|
|
319
|
-
}, {
|
|
320
|
-
readonly path: "instances.textTransform";
|
|
321
289
|
}, {
|
|
322
290
|
readonly path: "instances.lineHeight";
|
|
323
291
|
}, {
|
|
@@ -346,6 +314,20 @@ export declare const REQUIRED_LABEL_KEYS: readonly [{
|
|
|
346
314
|
readonly path: "editors.image.altText";
|
|
347
315
|
}, {
|
|
348
316
|
readonly path: "editors.image.altPlaceholder";
|
|
317
|
+
}, {
|
|
318
|
+
readonly path: "editors.image.sourceFromData";
|
|
319
|
+
}, {
|
|
320
|
+
readonly path: "editors.image.sourceNotEditable";
|
|
321
|
+
}, {
|
|
322
|
+
readonly path: "editors.image.altFromData";
|
|
323
|
+
}, {
|
|
324
|
+
readonly path: "editors.image.altNotEditable";
|
|
325
|
+
}, {
|
|
326
|
+
readonly path: "editors.image.sourceShared";
|
|
327
|
+
readonly placeholders: readonly [0];
|
|
328
|
+
}, {
|
|
329
|
+
readonly path: "editors.image.altShared";
|
|
330
|
+
readonly placeholders: readonly [0];
|
|
349
331
|
}, {
|
|
350
332
|
readonly path: "editors.image.workspace";
|
|
351
333
|
}, {
|
|
@@ -397,10 +379,31 @@ export declare const REQUIRED_LABEL_KEYS: readonly [{
|
|
|
397
379
|
}, {
|
|
398
380
|
readonly path: "editors.boxDimension.corners.bottomLeft";
|
|
399
381
|
}, {
|
|
400
|
-
readonly path: "editors.boxDimension.
|
|
382
|
+
readonly path: "editors.boxDimension.allCorners";
|
|
401
383
|
}, {
|
|
402
|
-
readonly path: "editors.boxDimension.
|
|
403
|
-
|
|
384
|
+
readonly path: "editors.boxDimension.expandCorners";
|
|
385
|
+
}, {
|
|
386
|
+
readonly path: "editors.boxDimension.collapseCorners";
|
|
387
|
+
}, {
|
|
388
|
+
readonly path: "editors.boxDimension.matchCornersAndCollapse";
|
|
389
|
+
}, {
|
|
390
|
+
readonly path: "editors.boxDimension.vertical";
|
|
391
|
+
}, {
|
|
392
|
+
readonly path: "editors.boxDimension.horizontal";
|
|
393
|
+
}, {
|
|
394
|
+
readonly path: "editors.boxDimension.expand";
|
|
395
|
+
}, {
|
|
396
|
+
readonly path: "editors.boxDimension.collapse";
|
|
397
|
+
}, {
|
|
398
|
+
readonly path: "editors.boxDimension.matchAndCollapse";
|
|
399
|
+
}, {
|
|
400
|
+
readonly path: "editors.boxDimension.collapseUnavailable";
|
|
401
|
+
}, {
|
|
402
|
+
readonly path: "editors.boxDimension.measurementUnavailable";
|
|
403
|
+
}, {
|
|
404
|
+
readonly path: "editors.boxDimension.invalidNumber";
|
|
405
|
+
}, {
|
|
406
|
+
readonly path: "editors.boxDimension.invalidNonNegative";
|
|
404
407
|
}, {
|
|
405
408
|
readonly path: "editors.boxDimension.ariaSide";
|
|
406
409
|
readonly placeholders: readonly [0, 1];
|
|
@@ -419,12 +422,6 @@ export declare const REQUIRED_LABEL_KEYS: readonly [{
|
|
|
419
422
|
}, {
|
|
420
423
|
readonly path: "editors.dimension.invalidRange";
|
|
421
424
|
readonly placeholders: readonly [0, 1];
|
|
422
|
-
}, {
|
|
423
|
-
readonly path: "editors.dimension.unitPx";
|
|
424
|
-
}, {
|
|
425
|
-
readonly path: "editors.dimension.unitEm";
|
|
426
|
-
}, {
|
|
427
|
-
readonly path: "editors.dimension.unitless";
|
|
428
425
|
}, {
|
|
429
426
|
readonly path: "editors.color.placeholder";
|
|
430
427
|
}, {
|
|
@@ -453,14 +450,23 @@ export declare const REQUIRED_LABEL_KEYS: readonly [{
|
|
|
453
450
|
}, {
|
|
454
451
|
readonly path: "editors.color.ariaAlphaInput";
|
|
455
452
|
}, {
|
|
456
|
-
readonly path: "editors.color.
|
|
453
|
+
readonly path: "editors.color.ariaOpacity";
|
|
457
454
|
readonly placeholders: readonly [0];
|
|
458
455
|
}, {
|
|
459
|
-
readonly path: "editors.color.
|
|
456
|
+
readonly path: "editors.color.invalidHex";
|
|
457
|
+
}, {
|
|
458
|
+
readonly path: "editors.color.invalidOpacity";
|
|
459
|
+
}, {
|
|
460
|
+
readonly path: "editors.color.invalidChannel";
|
|
460
461
|
}, {
|
|
461
462
|
readonly path: "editors.color.gradientValue";
|
|
462
463
|
}, {
|
|
463
464
|
readonly path: "editors.color.imageValue";
|
|
465
|
+
}, {
|
|
466
|
+
readonly path: "editors.color.ariaRecentColors";
|
|
467
|
+
}, {
|
|
468
|
+
readonly path: "editors.color.ariaApplyRecentColor";
|
|
469
|
+
readonly placeholders: readonly [0, 1];
|
|
464
470
|
}, {
|
|
465
471
|
readonly path: "editors.fontWeight.options.thin";
|
|
466
472
|
}, {
|
|
@@ -485,18 +491,6 @@ export declare const REQUIRED_LABEL_KEYS: readonly [{
|
|
|
485
491
|
readonly path: "editors.textStyle.options.underline";
|
|
486
492
|
}, {
|
|
487
493
|
readonly path: "editors.textStyle.options.uppercase";
|
|
488
|
-
}, {
|
|
489
|
-
readonly path: "editors.fontStyle.options.normal";
|
|
490
|
-
}, {
|
|
491
|
-
readonly path: "editors.fontStyle.options.italic";
|
|
492
|
-
}, {
|
|
493
|
-
readonly path: "editors.borderStyle.options.none";
|
|
494
|
-
}, {
|
|
495
|
-
readonly path: "editors.borderStyle.options.solid";
|
|
496
|
-
}, {
|
|
497
|
-
readonly path: "editors.borderStyle.options.dashed";
|
|
498
|
-
}, {
|
|
499
|
-
readonly path: "editors.borderStyle.options.dotted";
|
|
500
494
|
}, {
|
|
501
495
|
readonly path: "editors.textAlignment.options.left";
|
|
502
496
|
}, {
|
|
@@ -505,23 +499,6 @@ export declare const REQUIRED_LABEL_KEYS: readonly [{
|
|
|
505
499
|
readonly path: "editors.textAlignment.options.right";
|
|
506
500
|
}, {
|
|
507
501
|
readonly path: "editors.textAlignment.options.justify";
|
|
508
|
-
}, {
|
|
509
|
-
readonly path: "editors.textDecoration.options.none";
|
|
510
|
-
}, {
|
|
511
|
-
readonly path: "editors.textDecoration.options.underline";
|
|
512
|
-
}, {
|
|
513
|
-
readonly path: "editors.textDecoration.options.lineThrough";
|
|
514
|
-
}, {
|
|
515
|
-
readonly path: "editors.textTransform.options.none";
|
|
516
|
-
}, {
|
|
517
|
-
readonly path: "editors.textTransform.options.uppercase";
|
|
518
|
-
}, {
|
|
519
|
-
readonly path: "editors.textTransform.options.lowercase";
|
|
520
|
-
}, {
|
|
521
|
-
readonly path: "editors.textTransform.options.capitalize";
|
|
522
|
-
}, {
|
|
523
|
-
readonly path: "editors.picklist.ariaReset";
|
|
524
|
-
readonly placeholders: readonly [0];
|
|
525
502
|
}, {
|
|
526
503
|
readonly path: "history.changeLimitTitle";
|
|
527
504
|
}, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"labels.d.ts","sourceRoot":"","sources":["../../../../src/authoring/core/labels/labels.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AAEH,kFAAkF;AAClF,MAAM,WAAW,WAAW;IAE3B,OAAO,EAAE;QACR,WAAW,EAAE,MAAM,CAAC;QACpB,gBAAgB,EAAE,MAAM,CAAC;QACzB,kBAAkB,EAAE,MAAM,CAAC;QAC3B,qBAAqB,EAAE,MAAM,CAAC;QAC9B,gBAAgB,EAAE,MAAM,CAAC;QACzB,iBAAiB,EAAE,MAAM,CAAC;QAC1B,qBAAqB,EAAE,MAAM,CAAC;QAC9B,kBAAkB,EAAE,MAAM,CAAC;QAC3B,UAAU,EAAE,MAAM,CAAC;KACnB,CAAC;IAGF,QAAQ,EAAE;QACT,WAAW,EAAE,MAAM,CAAC;QACpB,UAAU,EAAE,MAAM,CAAC;QACnB,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,EAAE,MAAM,CAAC;QACf,UAAU,EAAE,MAAM,CAAC;KACnB,CAAC;IAGF,SAAS,EAAE;QACV,WAAW,EAAE,MAAM,CAAC;QACpB,eAAe,EAAE,MAAM,CAAC;QACxB,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,EAAE,MAAM,CAAC;QACf,YAAY,EAAE,MAAM,CAAC;QACrB,
|
|
1
|
+
{"version":3,"file":"labels.d.ts","sourceRoot":"","sources":["../../../../src/authoring/core/labels/labels.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AAEH,kFAAkF;AAClF,MAAM,WAAW,WAAW;IAE3B,OAAO,EAAE;QACR,WAAW,EAAE,MAAM,CAAC;QACpB,gBAAgB,EAAE,MAAM,CAAC;QACzB,kBAAkB,EAAE,MAAM,CAAC;QAC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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyIgB,CAAC;AAgBjD;;;;;;;;;;;;GAYG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,EAAE,CAyBxD"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Color } from 'culori';
|
|
2
|
+
import { RgbaColor } from './colorUtils.cjs';
|
|
3
|
+
/** The declaration is authoritative. Quantized sRGB channels are display-only. */
|
|
4
|
+
export interface EditorColor {
|
|
5
|
+
declaration: string;
|
|
6
|
+
native: Color;
|
|
7
|
+
rgba: RgbaColor;
|
|
8
|
+
hex: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function editorColor(declaration?: string): EditorColor;
|
|
11
|
+
export declare function opacityText(alpha: number): string;
|
|
12
|
+
export declare function parseOpacity(draft: string): number | undefined;
|
|
13
|
+
export declare function stepOpacity(display: string, direction: number, shift: boolean): number;
|
|
14
|
+
/** Full-precision alpha; never serialize through the rounded percentage or HEX. */
|
|
15
|
+
export declare function rgbDeclaration({ r, g, b, a }: RgbaColor): string;
|
|
16
|
+
export declare function withOpacity(color: EditorColor, percent: number): EditorColor;
|
|
17
|
+
export declare function withHex(color: EditorColor, draft: string): EditorColor;
|
|
18
|
+
//# sourceMappingURL=colorEditorModel.d.ts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Color } from 'culori';
|
|
2
|
+
import { RgbaColor } from './colorUtils.js';
|
|
3
|
+
/** The declaration is authoritative. Quantized sRGB channels are display-only. */
|
|
4
|
+
export interface EditorColor {
|
|
5
|
+
declaration: string;
|
|
6
|
+
native: Color;
|
|
7
|
+
rgba: RgbaColor;
|
|
8
|
+
hex: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function editorColor(declaration?: string): EditorColor;
|
|
11
|
+
export declare function opacityText(alpha: number): string;
|
|
12
|
+
export declare function parseOpacity(draft: string): number | undefined;
|
|
13
|
+
export declare function stepOpacity(display: string, direction: number, shift: boolean): number;
|
|
14
|
+
/** Full-precision alpha; never serialize through the rounded percentage or HEX. */
|
|
15
|
+
export declare function rgbDeclaration({ r, g, b, a }: RgbaColor): string;
|
|
16
|
+
export declare function withOpacity(color: EditorColor, percent: number): EditorColor;
|
|
17
|
+
export declare function withHex(color: EditorColor, draft: string): EditorColor;
|
|
18
|
+
//# sourceMappingURL=colorEditorModel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"colorEditorModel.d.ts","sourceRoot":"","sources":["../../../../src/authoring/core/utils/colorEditorModel.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAoB,KAAK,KAAK,EAAE,MAAM,QAAQ,CAAC;AACtD,OAAO,EAA+B,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAE3E,kFAAkF;AAClF,MAAM,WAAW,WAAW;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,SAAS,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;CACZ;AAED,wBAAgB,WAAW,CAAC,WAAW,SAAY,GAAG,WAAW,CAgBhE;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEjD;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAK9D;AAED,wBAAgB,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,MAAM,CAKtF;AAED,mFAAmF;AACnF,wBAAgB,cAAc,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,SAAS,GAAG,MAAM,CAGhE;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,GAAG,WAAW,CAM5E;AAED,wBAAgB,OAAO,CAAC,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,GAAG,WAAW,CAKtE"}
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
*
|
|
9
9
|
* A color longhand and its competing image layer are separate paint layers: the
|
|
10
10
|
* image paints *on top of* the color. So when an element's class sets an opaque
|
|
11
|
-
* `background-image
|
|
11
|
+
* `background-image` or (via `background-clip: text`) a
|
|
12
12
|
* gradient clipped to the text glyphs, a user's inline color edit
|
|
13
|
-
* (`background-color`, `
|
|
13
|
+
* (`background-color`, `color`) wins the cascade for the color
|
|
14
14
|
* longhand yet is never visible — the image covers it.
|
|
15
15
|
*
|
|
16
16
|
* This module decides, for a single color edit, whether an accompanying
|
|
@@ -28,7 +28,7 @@ export interface OcclusionClear {
|
|
|
28
28
|
newValue: string;
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
31
|
-
* Normalizes a CSS image-layer value (`background-image
|
|
31
|
+
* Normalizes a CSS image-layer value (`background-image`)
|
|
32
32
|
* to its painted value, or `""` when it paints nothing (empty, `none`, or a
|
|
33
33
|
* CSS-wide keyword). The keyword case covers a browser decomposing an inline
|
|
34
34
|
* shorthand that omits the image (e.g. `background: transparent`), which stamps
|
|
@@ -141,26 +141,10 @@ export declare function clearBackgroundColorClip(backgroundImage: string, backgr
|
|
|
141
141
|
* function isn't given.
|
|
142
142
|
*/
|
|
143
143
|
export declare function isOccludingTextFillColor(value: string | null | undefined, resolvedColor?: string | null, hasInlineOverride?: boolean): boolean;
|
|
144
|
-
/**
|
|
145
|
-
* Whether a `background-clip` value gives corroborating evidence of the
|
|
146
|
-
* "gradient border via `background-clip`" trick — a fill layer clipped to
|
|
147
|
-
* `padding-box`/`content-box` paired with the real border gradient left at
|
|
148
|
-
* the `border-box` default — as opposed to an ordinary single-layer
|
|
149
|
-
* background that merely happens to sit behind a `border-color: transparent`
|
|
150
|
-
* (e.g. the common `border: <w> solid transparent` hover/focus idiom, used to
|
|
151
|
-
* reserve layout space without an authored border color). `background-clip`'s
|
|
152
|
-
* CSS-initial value is `border-box`, so a plain one-layer background — by far
|
|
153
|
-
* the common case — always resolves to the literal `"border-box"` here too;
|
|
154
|
-
* treating that alone as evidence of the trick misclassifies any
|
|
155
|
-
* transparent-border element with an ordinary background as having a
|
|
156
|
-
* "Gradient" border. Requiring an actual multi-layer clip with a non-border-box
|
|
157
|
-
* entry limits the match to the trick's own authoring shape.
|
|
158
|
-
*/
|
|
159
|
-
export declare function hasLayeredBorderReveal(backgroundClip: string | null | undefined): boolean;
|
|
160
144
|
/**
|
|
161
145
|
* Given the color edit the user just made and the *specific* property that
|
|
162
146
|
* would occlude it (`background-image` for `backgroundColor`,
|
|
163
|
-
* `
|
|
147
|
+
* `background-image` again for
|
|
164
148
|
* `color` when the caller has already confirmed it's gradient-text —
|
|
165
149
|
* `background-clip: text` — since an unrelated decorative background-image on
|
|
166
150
|
* a text element shouldn't be touched by a text-color edit, or
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
*
|
|
9
9
|
* A color longhand and its competing image layer are separate paint layers: the
|
|
10
10
|
* image paints *on top of* the color. So when an element's class sets an opaque
|
|
11
|
-
* `background-image
|
|
11
|
+
* `background-image` or (via `background-clip: text`) a
|
|
12
12
|
* gradient clipped to the text glyphs, a user's inline color edit
|
|
13
|
-
* (`background-color`, `
|
|
13
|
+
* (`background-color`, `color`) wins the cascade for the color
|
|
14
14
|
* longhand yet is never visible — the image covers it.
|
|
15
15
|
*
|
|
16
16
|
* This module decides, for a single color edit, whether an accompanying
|
|
@@ -28,7 +28,7 @@ export interface OcclusionClear {
|
|
|
28
28
|
newValue: string;
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
31
|
-
* Normalizes a CSS image-layer value (`background-image
|
|
31
|
+
* Normalizes a CSS image-layer value (`background-image`)
|
|
32
32
|
* to its painted value, or `""` when it paints nothing (empty, `none`, or a
|
|
33
33
|
* CSS-wide keyword). The keyword case covers a browser decomposing an inline
|
|
34
34
|
* shorthand that omits the image (e.g. `background: transparent`), which stamps
|
|
@@ -141,26 +141,10 @@ export declare function clearBackgroundColorClip(backgroundImage: string, backgr
|
|
|
141
141
|
* function isn't given.
|
|
142
142
|
*/
|
|
143
143
|
export declare function isOccludingTextFillColor(value: string | null | undefined, resolvedColor?: string | null, hasInlineOverride?: boolean): boolean;
|
|
144
|
-
/**
|
|
145
|
-
* Whether a `background-clip` value gives corroborating evidence of the
|
|
146
|
-
* "gradient border via `background-clip`" trick — a fill layer clipped to
|
|
147
|
-
* `padding-box`/`content-box` paired with the real border gradient left at
|
|
148
|
-
* the `border-box` default — as opposed to an ordinary single-layer
|
|
149
|
-
* background that merely happens to sit behind a `border-color: transparent`
|
|
150
|
-
* (e.g. the common `border: <w> solid transparent` hover/focus idiom, used to
|
|
151
|
-
* reserve layout space without an authored border color). `background-clip`'s
|
|
152
|
-
* CSS-initial value is `border-box`, so a plain one-layer background — by far
|
|
153
|
-
* the common case — always resolves to the literal `"border-box"` here too;
|
|
154
|
-
* treating that alone as evidence of the trick misclassifies any
|
|
155
|
-
* transparent-border element with an ordinary background as having a
|
|
156
|
-
* "Gradient" border. Requiring an actual multi-layer clip with a non-border-box
|
|
157
|
-
* entry limits the match to the trick's own authoring shape.
|
|
158
|
-
*/
|
|
159
|
-
export declare function hasLayeredBorderReveal(backgroundClip: string | null | undefined): boolean;
|
|
160
144
|
/**
|
|
161
145
|
* Given the color edit the user just made and the *specific* property that
|
|
162
146
|
* would occlude it (`background-image` for `backgroundColor`,
|
|
163
|
-
* `
|
|
147
|
+
* `background-image` again for
|
|
164
148
|
* `color` when the caller has already confirmed it's gradient-text —
|
|
165
149
|
* `background-clip: text` — since an unrelated decorative background-image on
|
|
166
150
|
* a text element shouldn't be touched by a text-color edit, or
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"colorOcclusion.d.ts","sourceRoot":"","sources":["../../../../src/authoring/core/utils/colorOcclusion.ts"],"names":[],"mappings":"AAAA;;;;G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8BAA8B,CAC7C,eAAe,EAAE,MAAM,EACvB,cAAc,EAAE,MAAM,GACpB,OAAO,CAKT;AA8BD;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,eAAe,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,GAAG,MAAM,CAE9F;AAED;;;;;;;;GAQG;AACH,wBAAgB,yBAAyB,CAAC,eAAe,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,GAAG,MAAM,CAEjG;AAED;;;;;GAKG;AACH,wBAAgB,wBAAwB,CAAC,eAAe,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,GAAG,MAAM,CAMhG;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAAgB,wBAAwB,CACvC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAChC,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,EAC7B,iBAAiB,UAAQ,GACvB,OAAO,CAMT;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,2BAA2B,CAC1C,QAAQ,EAAE,MAAM,EAChB,iBAAiB,EAAE,MAAM,EACzB,gBAAgB,EAAE,MAAM,GAAG,SAAS,EACpC,cAAc,EAAE,MAAM,GAAG,SAAS,EAClC,WAAW,GAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAA6B,EAC7D,UAAU,SAAS,GACjB,cAAc,EAAE,CAclB"}
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
export interface UnitOption {
|
|
2
|
-
value: string;
|
|
3
|
-
label: string;
|
|
4
|
-
}
|
|
5
1
|
export interface UnitConstraint {
|
|
6
2
|
min: number;
|
|
7
3
|
max: number;
|
|
@@ -9,32 +5,13 @@ export interface UnitConstraint {
|
|
|
9
5
|
decimals: number;
|
|
10
6
|
}
|
|
11
7
|
export type UnitConstraints = Record<string, UnitConstraint>;
|
|
12
|
-
export interface ParsedCssValue {
|
|
13
|
-
numericValue: number | "";
|
|
14
|
-
unit: string;
|
|
15
|
-
}
|
|
16
8
|
export interface BoxSides {
|
|
17
9
|
top: string;
|
|
18
10
|
right: string;
|
|
19
11
|
bottom: string;
|
|
20
12
|
left: string;
|
|
21
13
|
}
|
|
22
|
-
export interface BoxDimensionConfig {
|
|
23
|
-
units?: readonly UnitOption[];
|
|
24
|
-
/** Which localized per-cell label set the instance edits (sides vs corners). */
|
|
25
|
-
sideLabelKind?: "sides" | "corners";
|
|
26
|
-
}
|
|
27
|
-
export declare const CSS_UNITS: readonly UnitOption[];
|
|
28
14
|
export declare const DEFAULT_UNIT_CONSTRAINTS: UnitConstraints;
|
|
29
|
-
/**
|
|
30
|
-
* Build a regex that matches a number followed by one of the given units.
|
|
31
|
-
*/
|
|
32
|
-
export declare function buildUnitPattern(units: readonly UnitOption[] | UnitOption[]): RegExp;
|
|
33
|
-
/**
|
|
34
|
-
* Parse a CSS dimension string into { numericValue, unit }.
|
|
35
|
-
* Handles "16px", "1.5rem", "100%", bare numbers, and empty/null.
|
|
36
|
-
*/
|
|
37
|
-
export declare function parseCssValue(raw: string | number | null | undefined, defaultUnit?: string, unitPattern?: RegExp): ParsedCssValue;
|
|
38
15
|
/**
|
|
39
16
|
* Look up the constraints for a unit, falling back to px constraints.
|
|
40
17
|
*/
|
|
@@ -48,25 +25,10 @@ export declare function clampCssValue(num: number, unit: string, constraints?: U
|
|
|
48
25
|
* Returns '' for empty / non-numeric input.
|
|
49
26
|
*/
|
|
50
27
|
export declare function formatCssValue(num: number | "" | null | undefined, unit: string, constraints?: UnitConstraints): number | "";
|
|
51
|
-
/**
|
|
52
|
-
* Combine a numeric value and unit into a CSS string (e.g. 16, 'px' → "16px").
|
|
53
|
-
* Returns '' for empty / non-numeric input.
|
|
54
|
-
*/
|
|
55
|
-
export declare function buildCssString(numericValue: number | "" | null | undefined, unit: string): string;
|
|
56
28
|
/**
|
|
57
29
|
* Compute the next value after an arrow-key increment/decrement.
|
|
58
30
|
*/
|
|
59
31
|
export declare function stepValue(currentValue: string, key: "ArrowUp" | "ArrowDown", shiftKey: boolean, unit: string, constraints?: UnitConstraints): string;
|
|
60
|
-
/**
|
|
61
|
-
* Build a CSS box-model shorthand string (top right bottom left).
|
|
62
|
-
* Always emits all four values for simplicity.
|
|
63
|
-
*/
|
|
64
|
-
export declare function buildBoxShorthandCssValue({ top, right, bottom, left }: BoxSides): string;
|
|
65
|
-
/**
|
|
66
|
-
* Parse a CSS box-model shorthand string into four side values.
|
|
67
|
-
* Handles 1–4 value shorthand syntax.
|
|
68
|
-
*/
|
|
69
|
-
export declare function parseBoxShorthandCssValue(shorthand: string | null | undefined): BoxSides;
|
|
70
32
|
/** A plain number with an optional lowercase unit suffix, e.g. "1.5", "12px", "50%". */
|
|
71
33
|
export declare const NUMBER_WITH_UNIT_PATTERN: RegExp;
|
|
72
34
|
/** True for a plain, finite decimal literal (no unit, exponent, or keyword). */
|
|
@@ -86,5 +48,4 @@ export interface TypographyConfig {
|
|
|
86
48
|
normalLabelKey?: "useNormalLineHeight" | "useNormalSpacing";
|
|
87
49
|
}
|
|
88
50
|
export declare const TYPOGRAPHY_CONFIGS: Record<"fontSize" | "lineHeight" | "letterSpacing", TypographyConfig>;
|
|
89
|
-
export declare const BOX_DIMENSION_CONFIGS: Record<string, BoxDimensionConfig>;
|
|
90
51
|
//# sourceMappingURL=dimensionUtils.d.ts.map
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
export interface UnitOption {
|
|
2
|
-
value: string;
|
|
3
|
-
label: string;
|
|
4
|
-
}
|
|
5
1
|
export interface UnitConstraint {
|
|
6
2
|
min: number;
|
|
7
3
|
max: number;
|
|
@@ -9,32 +5,13 @@ export interface UnitConstraint {
|
|
|
9
5
|
decimals: number;
|
|
10
6
|
}
|
|
11
7
|
export type UnitConstraints = Record<string, UnitConstraint>;
|
|
12
|
-
export interface ParsedCssValue {
|
|
13
|
-
numericValue: number | "";
|
|
14
|
-
unit: string;
|
|
15
|
-
}
|
|
16
8
|
export interface BoxSides {
|
|
17
9
|
top: string;
|
|
18
10
|
right: string;
|
|
19
11
|
bottom: string;
|
|
20
12
|
left: string;
|
|
21
13
|
}
|
|
22
|
-
export interface BoxDimensionConfig {
|
|
23
|
-
units?: readonly UnitOption[];
|
|
24
|
-
/** Which localized per-cell label set the instance edits (sides vs corners). */
|
|
25
|
-
sideLabelKind?: "sides" | "corners";
|
|
26
|
-
}
|
|
27
|
-
export declare const CSS_UNITS: readonly UnitOption[];
|
|
28
14
|
export declare const DEFAULT_UNIT_CONSTRAINTS: UnitConstraints;
|
|
29
|
-
/**
|
|
30
|
-
* Build a regex that matches a number followed by one of the given units.
|
|
31
|
-
*/
|
|
32
|
-
export declare function buildUnitPattern(units: readonly UnitOption[] | UnitOption[]): RegExp;
|
|
33
|
-
/**
|
|
34
|
-
* Parse a CSS dimension string into { numericValue, unit }.
|
|
35
|
-
* Handles "16px", "1.5rem", "100%", bare numbers, and empty/null.
|
|
36
|
-
*/
|
|
37
|
-
export declare function parseCssValue(raw: string | number | null | undefined, defaultUnit?: string, unitPattern?: RegExp): ParsedCssValue;
|
|
38
15
|
/**
|
|
39
16
|
* Look up the constraints for a unit, falling back to px constraints.
|
|
40
17
|
*/
|
|
@@ -48,25 +25,10 @@ export declare function clampCssValue(num: number, unit: string, constraints?: U
|
|
|
48
25
|
* Returns '' for empty / non-numeric input.
|
|
49
26
|
*/
|
|
50
27
|
export declare function formatCssValue(num: number | "" | null | undefined, unit: string, constraints?: UnitConstraints): number | "";
|
|
51
|
-
/**
|
|
52
|
-
* Combine a numeric value and unit into a CSS string (e.g. 16, 'px' → "16px").
|
|
53
|
-
* Returns '' for empty / non-numeric input.
|
|
54
|
-
*/
|
|
55
|
-
export declare function buildCssString(numericValue: number | "" | null | undefined, unit: string): string;
|
|
56
28
|
/**
|
|
57
29
|
* Compute the next value after an arrow-key increment/decrement.
|
|
58
30
|
*/
|
|
59
31
|
export declare function stepValue(currentValue: string, key: "ArrowUp" | "ArrowDown", shiftKey: boolean, unit: string, constraints?: UnitConstraints): string;
|
|
60
|
-
/**
|
|
61
|
-
* Build a CSS box-model shorthand string (top right bottom left).
|
|
62
|
-
* Always emits all four values for simplicity.
|
|
63
|
-
*/
|
|
64
|
-
export declare function buildBoxShorthandCssValue({ top, right, bottom, left }: BoxSides): string;
|
|
65
|
-
/**
|
|
66
|
-
* Parse a CSS box-model shorthand string into four side values.
|
|
67
|
-
* Handles 1–4 value shorthand syntax.
|
|
68
|
-
*/
|
|
69
|
-
export declare function parseBoxShorthandCssValue(shorthand: string | null | undefined): BoxSides;
|
|
70
32
|
/** A plain number with an optional lowercase unit suffix, e.g. "1.5", "12px", "50%". */
|
|
71
33
|
export declare const NUMBER_WITH_UNIT_PATTERN: RegExp;
|
|
72
34
|
/** True for a plain, finite decimal literal (no unit, exponent, or keyword). */
|
|
@@ -86,5 +48,4 @@ export interface TypographyConfig {
|
|
|
86
48
|
normalLabelKey?: "useNormalLineHeight" | "useNormalSpacing";
|
|
87
49
|
}
|
|
88
50
|
export declare const TYPOGRAPHY_CONFIGS: Record<"fontSize" | "lineHeight" | "letterSpacing", TypographyConfig>;
|
|
89
|
-
export declare const BOX_DIMENSION_CONFIGS: Record<string, BoxDimensionConfig>;
|
|
90
51
|
//# sourceMappingURL=dimensionUtils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dimensionUtils.d.ts","sourceRoot":"","sources":["../../../../src/authoring/core/utils/dimensionUtils.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"dimensionUtils.d.ts","sourceRoot":"","sources":["../../../../src/authoring/core/utils/dimensionUtils.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,cAAc;IAC9B,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE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CAAC;IAC7B,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IAC3B,4EAA4E;IAC5E,cAAc,CAAC,EAAE,qBAAqB,GAAG,kBAAkB,CAAC;CAC5D;AAED,eAAO,MAAM,kBAAkB,EAAE,MAAM,CACtC,UAAU,GAAG,YAAY,GAAG,eAAe,EAC3C,gBAAgB,CAsBhB,CAAC"}
|
|
@@ -17,6 +17,6 @@ export { DesignPropertyPanel, mountDesignPropertyPanel } from '../core/DesignPro
|
|
|
17
17
|
export type { DesignPropertyPanelProps, DesignPropertyPanelHandle, DesignPanelComponent, StylesEntryMap, SelectedComponentContext, OpenSourceFilePayload, ImageSourceBindings, } from '../core/DesignPropertyPanelRoot.cjs';
|
|
18
18
|
export { interpolate, validateLabels, REQUIRED_LABEL_KEYS } from '../core/labels/labels.cjs';
|
|
19
19
|
export type { PanelLabels, RequiredLabelKey } from '../core/labels/labels.cjs';
|
|
20
|
-
export type { ChangeSetEntry } from '../core/history/changeSet.cjs';
|
|
20
|
+
export type { ChangeSetEntry, ChangeSetCommand, StyleChangeSetCommand, AttributeChangeSetCommand, } from '../core/history/changeSet.cjs';
|
|
21
21
|
export type { CmsSpace, CmsImage, CmsFolderItem, CmsFolderItemsResult, CmsContentDetailResult, CmsThumbnailResult, ImageImportResult, ImageAttributes, LocalFilePreview, } from '../core/editors/ImageEditor.cjs';
|
|
22
22
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -17,6 +17,6 @@ export { DesignPropertyPanel, mountDesignPropertyPanel } from '../core/DesignPro
|
|
|
17
17
|
export type { DesignPropertyPanelProps, DesignPropertyPanelHandle, DesignPanelComponent, StylesEntryMap, SelectedComponentContext, OpenSourceFilePayload, ImageSourceBindings, } from '../core/DesignPropertyPanelRoot.js';
|
|
18
18
|
export { interpolate, validateLabels, REQUIRED_LABEL_KEYS } from '../core/labels/labels.js';
|
|
19
19
|
export type { PanelLabels, RequiredLabelKey } from '../core/labels/labels.js';
|
|
20
|
-
export type { ChangeSetEntry } from '../core/history/changeSet.js';
|
|
20
|
+
export type { ChangeSetEntry, ChangeSetCommand, StyleChangeSetCommand, AttributeChangeSetCommand, } from '../core/history/changeSet.js';
|
|
21
21
|
export type { CmsSpace, CmsImage, CmsFolderItem, CmsFolderItemsResult, CmsContentDetailResult, CmsThumbnailResult, ImageImportResult, ImageAttributes, LocalFilePreview, } from '../core/editors/ImageEditor.js';
|
|
22
22
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/authoring/react/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;;;;GASG;AAEH,OAAO,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAChG,YAAY,EACX,wBAAwB,EACxB,yBAAyB,EACzB,oBAAoB,EACpB,cAAc,EACd,wBAAwB,EACxB,qBAAqB,EACrB,mBAAmB,GACnB,MAAM,iCAAiC,CAAC;AAMzC,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACzF,YAAY,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAG3E,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/authoring/react/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;;;;GASG;AAEH,OAAO,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAChG,YAAY,EACX,wBAAwB,EACxB,yBAAyB,EACzB,oBAAoB,EACpB,cAAc,EACd,wBAAwB,EACxB,qBAAqB,EACrB,mBAAmB,GACnB,MAAM,iCAAiC,CAAC;AAMzC,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACzF,YAAY,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAG3E,YAAY,EACX,cAAc,EACd,gBAAgB,EAChB,qBAAqB,EACrB,yBAAyB,GACzB,MAAM,2BAA2B,CAAC;AAEnC,YAAY,EACX,QAAQ,EACR,QAAQ,EACR,aAAa,EACb,oBAAoB,EACpB,sBAAsB,EACtB,kBAAkB,EAClB,iBAAiB,EACjB,eAAe,EACf,gBAAgB,GAChB,MAAM,6BAA6B,CAAC"}
|