@webflow/designer-extension-typings 0.1.5 → 0.1.7

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.
@@ -569,7 +569,7 @@ interface CommerceAddToCartErrorElement
569
569
  extends WebflowElement,
570
570
  Configurable,
571
571
  CustomAttributes,
572
- DomId,
572
+ NoDomId,
573
573
  Styles,
574
574
  Children,
575
575
  NoTextContent {
@@ -699,7 +699,7 @@ interface CommerceCartWrapperElement
699
699
  extends WebflowElement,
700
700
  Configurable,
701
701
  CustomAttributes,
702
- NoDomId,
702
+ DomId,
703
703
  Styles,
704
704
  Children,
705
705
  NoTextContent {
@@ -712,7 +712,7 @@ interface CommerceCartOpenLinkElement
712
712
  extends WebflowElement,
713
713
  Configurable,
714
714
  CustomAttributes,
715
- NoDomId,
715
+ DomId,
716
716
  Styles,
717
717
  Children,
718
718
  TextContent {
@@ -764,7 +764,7 @@ interface CommerceCartContainerElement
764
764
  extends WebflowElement,
765
765
  Configurable,
766
766
  CustomAttributes,
767
- NoDomId,
767
+ DomId,
768
768
  Styles,
769
769
  Children,
770
770
  NoTextContent {
@@ -842,7 +842,7 @@ interface CommerceCartErrorStateElement
842
842
  extends WebflowElement,
843
843
  Configurable,
844
844
  CustomAttributes,
845
- DomId,
845
+ NoDomId,
846
846
  Styles,
847
847
  Children,
848
848
  NoTextContent {
@@ -881,7 +881,7 @@ interface CommerceCartLineItemElement
881
881
  extends WebflowElement,
882
882
  Configurable,
883
883
  CustomAttributes,
884
- DomId,
884
+ NoDomId,
885
885
  Styles,
886
886
  Children,
887
887
  NoTextContent {
@@ -985,7 +985,7 @@ interface CommerceCartCloseLinkElement
985
985
  extends WebflowElement,
986
986
  Configurable,
987
987
  CustomAttributes,
988
- NoDomId,
988
+ DomId,
989
989
  Styles,
990
990
  Children,
991
991
  TextContent {
@@ -1075,10 +1075,10 @@ interface CommerceCartOptionListItemElement
1075
1075
  interface CommerceCartOptionListItemLabelElement
1076
1076
  extends WebflowElement,
1077
1077
  Configurable,
1078
- NoCustomAttributes,
1079
- NoDomId,
1080
- NoStyles,
1081
- NoChildren,
1078
+ CustomAttributes,
1079
+ DomId,
1080
+ Styles,
1081
+ Children,
1082
1082
  TextContent {
1083
1083
  readonly id: ElementId;
1084
1084
  readonly type: 'CommerceCartOptionListItemLabel';
@@ -1088,10 +1088,10 @@ interface CommerceCartOptionListItemLabelElement
1088
1088
  interface CommerceCartOptionListItemValueElement
1089
1089
  extends WebflowElement,
1090
1090
  Configurable,
1091
- NoCustomAttributes,
1092
- NoDomId,
1093
- NoStyles,
1094
- NoChildren,
1091
+ CustomAttributes,
1092
+ DomId,
1093
+ Styles,
1094
+ Children,
1095
1095
  TextContent {
1096
1096
  readonly id: ElementId;
1097
1097
  readonly type: 'CommerceCartOptionListItemValue';
@@ -1258,7 +1258,7 @@ interface CommerceCheckoutLabelElement
1258
1258
  extends WebflowElement,
1259
1259
  Configurable,
1260
1260
  CustomAttributes,
1261
- DomId,
1261
+ NoDomId,
1262
1262
  Styles,
1263
1263
  Children,
1264
1264
  TextContent {
@@ -1440,7 +1440,7 @@ interface CommerceCheckoutShippingStreetAddressOptionalElement
1440
1440
  extends WebflowElement,
1441
1441
  Configurable,
1442
1442
  CustomAttributes,
1443
- DomId,
1443
+ NoDomId,
1444
1444
  Styles,
1445
1445
  NoChildren,
1446
1446
  NoTextContent {
@@ -1583,7 +1583,7 @@ interface CommerceCheckoutBillingStreetAddressOptionalElement
1583
1583
  extends WebflowElement,
1584
1584
  Configurable,
1585
1585
  CustomAttributes,
1586
- DomId,
1586
+ NoDomId,
1587
1587
  Styles,
1588
1588
  NoChildren,
1589
1589
  NoTextContent {
@@ -1661,7 +1661,7 @@ interface CommerceCheckoutBillingAddressToggleLabelElement
1661
1661
  extends WebflowElement,
1662
1662
  Configurable,
1663
1663
  CustomAttributes,
1664
- DomId,
1664
+ NoDomId,
1665
1665
  Styles,
1666
1666
  Children,
1667
1667
  TextContent {
@@ -1869,7 +1869,7 @@ interface CommerceCheckoutShippingMethodRadioButtonElement
1869
1869
  extends WebflowElement,
1870
1870
  Configurable,
1871
1871
  CustomAttributes,
1872
- DomId,
1872
+ NoDomId,
1873
1873
  Styles,
1874
1874
  NoChildren,
1875
1875
  NoTextContent {
@@ -2272,7 +2272,7 @@ interface CommerceCheckoutAdditionalCheckboxElement
2272
2272
  extends WebflowElement,
2273
2273
  Configurable,
2274
2274
  CustomAttributes,
2275
- DomId,
2275
+ NoDomId,
2276
2276
  Styles,
2277
2277
  NoChildren,
2278
2278
  NoTextContent {
@@ -2337,7 +2337,7 @@ interface CommerceCheckoutDiscountsLabelElement
2337
2337
  extends WebflowElement,
2338
2338
  Configurable,
2339
2339
  CustomAttributes,
2340
- DomId,
2340
+ NoDomId,
2341
2341
  Styles,
2342
2342
  Children,
2343
2343
  TextContent {
@@ -3438,19 +3438,6 @@ interface GoogleAnalyticsElement
3438
3438
  readonly plugin: 'Ssr';
3439
3439
  }
3440
3440
 
3441
- interface SymbolElement
3442
- extends WebflowElement,
3443
- Configurable,
3444
- CustomAttributes,
3445
- DomId,
3446
- Styles,
3447
- Children,
3448
- NoTextContent {
3449
- readonly id: ElementId;
3450
- readonly type: 'Symbol';
3451
- readonly plugin: 'Symbol';
3452
- }
3453
-
3454
3441
  interface TabsContentElement
3455
3442
  extends WebflowElement,
3456
3443
  Configurable,
@@ -3468,7 +3455,7 @@ interface TabsLinkElement
3468
3455
  extends WebflowElement,
3469
3456
  Configurable,
3470
3457
  CustomAttributes,
3471
- DomId,
3458
+ NoDomId,
3472
3459
  Styles,
3473
3460
  Children,
3474
3461
  TextContent {
@@ -3494,7 +3481,7 @@ interface TabsPaneElement
3494
3481
  extends WebflowElement,
3495
3482
  Configurable,
3496
3483
  CustomAttributes,
3497
- DomId,
3484
+ NoDomId,
3498
3485
  Styles,
3499
3486
  Children,
3500
3487
  NoTextContent {
@@ -4218,6 +4205,19 @@ interface UserErrorMsgElement
4218
4205
  readonly plugin: 'Users';
4219
4206
  }
4220
4207
 
4208
+ interface SlotElement
4209
+ extends WebflowElement,
4210
+ Configurable,
4211
+ CustomAttributes,
4212
+ DomId,
4213
+ Styles,
4214
+ Children,
4215
+ NoTextContent {
4216
+ readonly id: ElementId;
4217
+ readonly type: 'Slot';
4218
+ readonly plugin: 'Slots';
4219
+ }
4220
+
4221
4221
  declare type AnyElement =
4222
4222
  | UnknownElement
4223
4223
  | DOMElement
@@ -4478,7 +4478,6 @@ declare type AnyElement =
4478
4478
  | CommentElement
4479
4479
  | FacebookPixelElement
4480
4480
  | GoogleAnalyticsElement
4481
- | SymbolElement
4482
4481
  | TabsContentElement
4483
4482
  | TabsLinkElement
4484
4483
  | TabsMenuElement
@@ -4537,4 +4536,5 @@ declare type AnyElement =
4537
4536
  | UserSignUpErrorMsgElement
4538
4537
  | UserResetPasswordErrorMsgElement
4539
4538
  | UserUpdatePasswordErrorMsgElement
4540
- | UserErrorMsgElement;
4539
+ | UserErrorMsgElement
4540
+ | SlotElement;
package/index.d.ts CHANGED
@@ -10,6 +10,7 @@ interface WebflowApi {
10
10
  getSiteInfo(): Promise<{siteId: string; siteName: string; shortName: string}>;
11
11
  getSelectedElement(): Promise<null | AnyElement>;
12
12
  getMediaQuery(): Promise<BreakpointId>;
13
+ getRootElement(): Promise<null | AnyElement>;
13
14
  getAllElements(): Promise<Array<AnyElement>>;
14
15
  createStyle(name: string): Style;
15
16
  getStyleByName(name: string): Promise<null | Style>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webflow/designer-extension-typings",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "description": "Typings for the Webflow Designer Extension API",
6
6
  "main": "",
@@ -0,0 +1,564 @@
1
+ // This file was automatically generated. See designer-extensions docs.
2
+
3
+ declare type PropertyMap = {
4
+ 'accent-color'?: string;
5
+ 'align-content'?: string;
6
+ 'align-items'?: string;
7
+ 'align-self'?: string;
8
+ 'animation-delay'?: string;
9
+ 'animation-direction'?: string;
10
+ 'animation-duration'?: string;
11
+ 'animation-fill-mode'?: string;
12
+ 'animation-iteration-count'?: string;
13
+ 'animation-name'?: string;
14
+ 'animation-play-state'?: string;
15
+ 'animation-timing-function'?: string;
16
+ appearance?: string;
17
+ 'backdrop-filter'?: string;
18
+ 'backface-visibility'?: string;
19
+ 'background-attachment'?: string;
20
+ 'background-blend-mode'?: string;
21
+ 'background-clip'?: string;
22
+ 'background-color'?: string;
23
+ 'background-image'?: string;
24
+ 'background-origin'?: string;
25
+ 'background-position'?: string;
26
+ 'background-position-x'?: string;
27
+ 'background-position-y'?: string;
28
+ 'background-repeat'?: string;
29
+ 'background-size'?: string;
30
+ 'block-size'?: string;
31
+ 'border-block-end-color'?: string;
32
+ 'border-block-end-style'?: string;
33
+ 'border-block-end-width'?: string;
34
+ 'border-block-start-color'?: string;
35
+ 'border-block-start-style'?: string;
36
+ 'border-block-start-width'?: string;
37
+ 'border-bottom-color'?: string;
38
+ 'border-bottom-left-radius'?: string;
39
+ 'border-bottom-right-radius'?: string;
40
+ 'border-bottom-style'?: string;
41
+ 'border-bottom-width'?: string;
42
+ 'border-collapse'?: string;
43
+ 'border-end-end-radius'?: string;
44
+ 'border-end-start-radius'?: string;
45
+ 'border-image-outset'?: string;
46
+ 'border-image-repeat'?: string;
47
+ 'border-image-slice'?: string;
48
+ 'border-image-source'?: string;
49
+ 'border-image-width'?: string;
50
+ 'border-inline-end-color'?: string;
51
+ 'border-inline-end-style'?: string;
52
+ 'border-inline-end-width'?: string;
53
+ 'border-inline-start-color'?: string;
54
+ 'border-inline-start-style'?: string;
55
+ 'border-inline-start-width'?: string;
56
+ 'border-left-color'?: string;
57
+ 'border-left-style'?: string;
58
+ 'border-left-width'?: string;
59
+ 'border-right-color'?: string;
60
+ 'border-right-style'?: string;
61
+ 'border-right-width'?: string;
62
+ 'border-start-end-radius'?: string;
63
+ 'border-start-start-radius'?: string;
64
+ 'border-top-color'?: string;
65
+ 'border-top-left-radius'?: string;
66
+ 'border-top-right-radius'?: string;
67
+ 'border-top-style'?: string;
68
+ 'border-top-width'?: string;
69
+ bottom?: string;
70
+ 'box-shadow'?: string;
71
+ 'box-sizing'?: string;
72
+ 'break-after'?: string;
73
+ 'break-before'?: string;
74
+ 'break-inside'?: string;
75
+ 'caption-side'?: string;
76
+ 'caret-color'?: string;
77
+ clear?: string;
78
+ clip?: string;
79
+ 'clip-path'?: string;
80
+ 'clip-rule'?: string;
81
+ color?: string;
82
+ 'color-interpolation'?: string;
83
+ 'color-interpolation-filters'?: string;
84
+ 'column-count'?: string;
85
+ 'column-gap'?: string;
86
+ 'column-rule-color'?: string;
87
+ 'column-rule-style'?: string;
88
+ 'column-rule-width'?: string;
89
+ 'column-span'?: string;
90
+ 'column-width'?: string;
91
+ content?: string;
92
+ cursor?: string;
93
+ cx?: string;
94
+ cy?: string;
95
+ direction?: string;
96
+ display?: string;
97
+ 'dominant-baseline'?: string;
98
+ 'empty-cells'?: string;
99
+ fill?: string;
100
+ 'fill-opacity'?: string;
101
+ 'fill-rule'?: string;
102
+ filter?: string;
103
+ 'flex-basis'?: string;
104
+ 'flex-direction'?: string;
105
+ 'flex-grow'?: string;
106
+ 'flex-shrink'?: string;
107
+ 'flex-wrap'?: string;
108
+ float?: string;
109
+ 'flood-color'?: string;
110
+ 'flood-opacity'?: string;
111
+ 'font-family'?: string;
112
+ 'font-kerning'?: string;
113
+ 'font-optical-sizing'?: string;
114
+ 'font-size'?: string;
115
+ 'font-stretch'?: string;
116
+ 'font-style'?: string;
117
+ 'font-variant-alternates'?: string;
118
+ 'font-variant-caps'?: string;
119
+ 'font-variant-east-asian'?: string;
120
+ 'font-variant-ligatures'?: string;
121
+ 'font-variant-numeric'?: string;
122
+ 'font-weight'?: string;
123
+ 'grid-auto-columns'?: string;
124
+ 'grid-auto-flow'?: string;
125
+ 'grid-auto-rows'?: string;
126
+ 'grid-column-end'?: string;
127
+ 'grid-column-gap'?: string;
128
+ 'grid-column-start'?: string;
129
+ 'grid-row-end'?: string;
130
+ 'grid-row-gap'?: string;
131
+ 'grid-row-start'?: string;
132
+ 'grid-template-areas'?: string;
133
+ 'grid-template-columns'?: string;
134
+ 'grid-template-rows'?: string;
135
+ height?: string;
136
+ 'image-orientation'?: string;
137
+ 'image-rendering'?: string;
138
+ 'inline-size'?: string;
139
+ 'inset-block-end'?: string;
140
+ 'inset-block-start'?: string;
141
+ 'inset-inline-end'?: string;
142
+ 'inset-inline-start'?: string;
143
+ isolation?: string;
144
+ 'justify-content'?: string;
145
+ 'justify-items'?: string;
146
+ 'justify-self'?: string;
147
+ left?: string;
148
+ 'letter-spacing'?: string;
149
+ 'lighting-color'?: string;
150
+ 'line-break'?: string;
151
+ 'line-height'?: string;
152
+ 'list-style-image'?: string;
153
+ 'list-style-position'?: string;
154
+ 'list-style-type'?: string;
155
+ 'margin-block-end'?: string;
156
+ 'margin-block-start'?: string;
157
+ 'margin-bottom'?: string;
158
+ 'margin-inline-end'?: string;
159
+ 'margin-inline-start'?: string;
160
+ 'margin-left'?: string;
161
+ 'margin-right'?: string;
162
+ 'margin-top'?: string;
163
+ 'marker-end'?: string;
164
+ 'marker-mid'?: string;
165
+ 'marker-start'?: string;
166
+ 'mask-type'?: string;
167
+ 'max-block-size'?: string;
168
+ 'max-height'?: string;
169
+ 'max-inline-size'?: string;
170
+ 'max-width'?: string;
171
+ 'min-block-size'?: string;
172
+ 'min-height'?: string;
173
+ 'min-inline-size'?: string;
174
+ 'min-width'?: string;
175
+ 'mix-blend-mode'?: string;
176
+ 'object-fit'?: string;
177
+ 'object-position'?: string;
178
+ 'offset-anchor'?: string;
179
+ 'offset-distance'?: string;
180
+ 'offset-path'?: string;
181
+ 'offset-rotate'?: string;
182
+ opacity?: string;
183
+ order?: string;
184
+ 'outline-color'?: string;
185
+ 'outline-offset'?: string;
186
+ 'outline-style'?: string;
187
+ 'outline-width'?: string;
188
+ 'overflow-wrap'?: string;
189
+ 'overflow-x'?: string;
190
+ 'overflow-y'?: string;
191
+ 'overscroll-behavior-block'?: string;
192
+ 'overscroll-behavior-inline'?: string;
193
+ 'padding-block-end'?: string;
194
+ 'padding-block-start'?: string;
195
+ 'padding-bottom'?: string;
196
+ 'padding-inline-end'?: string;
197
+ 'padding-inline-start'?: string;
198
+ 'padding-left'?: string;
199
+ 'padding-right'?: string;
200
+ 'padding-top'?: string;
201
+ 'paint-order'?: string;
202
+ perspective?: string;
203
+ 'perspective-origin'?: string;
204
+ 'pointer-events'?: string;
205
+ position?: string;
206
+ r?: string;
207
+ resize?: string;
208
+ right?: string;
209
+ rotate?: string;
210
+ 'row-gap'?: string;
211
+ rx?: string;
212
+ ry?: string;
213
+ scale?: string;
214
+ 'scroll-behavior'?: string;
215
+ 'scroll-margin-block-end'?: string;
216
+ 'scroll-margin-block-start'?: string;
217
+ 'scroll-margin-inline-end'?: string;
218
+ 'scroll-margin-inline-start'?: string;
219
+ 'scroll-padding-block-end'?: string;
220
+ 'scroll-padding-block-start'?: string;
221
+ 'scroll-padding-inline-end'?: string;
222
+ 'scroll-padding-inline-start'?: string;
223
+ 'shape-image-threshold'?: string;
224
+ 'shape-margin'?: string;
225
+ 'shape-outside'?: string;
226
+ 'shape-rendering'?: string;
227
+ 'stop-color'?: string;
228
+ 'stop-opacity'?: string;
229
+ stroke?: string;
230
+ 'stroke-dasharray'?: string;
231
+ 'stroke-dashoffset'?: string;
232
+ 'stroke-linecap'?: string;
233
+ 'stroke-linejoin'?: string;
234
+ 'stroke-miterlimit'?: string;
235
+ 'stroke-opacity'?: string;
236
+ 'stroke-width'?: string;
237
+ 'tab-size'?: string;
238
+ 'table-layout'?: string;
239
+ 'text-align'?: string;
240
+ 'text-align-last'?: string;
241
+ 'text-anchor'?: string;
242
+ 'text-decoration'?: string;
243
+ 'text-decoration-color'?: string;
244
+ 'text-decoration-line'?: string;
245
+ 'text-decoration-skip-ink'?: string;
246
+ 'text-decoration-style'?: string;
247
+ 'text-emphasis-color'?: string;
248
+ 'text-emphasis-position'?: string;
249
+ 'text-emphasis-style'?: string;
250
+ 'text-indent'?: string;
251
+ 'text-overflow'?: string;
252
+ 'text-rendering'?: string;
253
+ 'text-shadow'?: string;
254
+ 'text-transform'?: string;
255
+ 'text-underline-position'?: string;
256
+ top?: string;
257
+ 'touch-action'?: string;
258
+ transform?: string;
259
+ 'transform-origin'?: string;
260
+ 'transform-style'?: string;
261
+ 'transition-delay'?: string;
262
+ 'transition-duration'?: string;
263
+ 'transition-property'?: string;
264
+ 'transition-timing-function'?: string;
265
+ translate?: string;
266
+ 'unicode-bidi'?: string;
267
+ 'vector-effect'?: string;
268
+ 'vertical-align'?: string;
269
+ visibility?: string;
270
+ 'white-space'?: string;
271
+ width?: string;
272
+ 'will-change'?: string;
273
+ 'word-break'?: string;
274
+ 'word-spacing'?: string;
275
+ 'writing-mode'?: string;
276
+ x?: string;
277
+ y?: string;
278
+ 'z-index'?: string;
279
+ '-webkit-line-clamp'?: string;
280
+ '-webkit-text-fill-color'?: string;
281
+ '-webkit-text-stroke-color'?: string;
282
+ '-webkit-text-stroke-width'?: string;
283
+ };
284
+
285
+ declare type StyleProperty =
286
+ | 'accent-color'
287
+ | 'align-content'
288
+ | 'align-items'
289
+ | 'align-self'
290
+ | 'animation-delay'
291
+ | 'animation-direction'
292
+ | 'animation-duration'
293
+ | 'animation-fill-mode'
294
+ | 'animation-iteration-count'
295
+ | 'animation-name'
296
+ | 'animation-play-state'
297
+ | 'animation-timing-function'
298
+ | 'appearance'
299
+ | 'backdrop-filter'
300
+ | 'backface-visibility'
301
+ | 'background-attachment'
302
+ | 'background-blend-mode'
303
+ | 'background-clip'
304
+ | 'background-color'
305
+ | 'background-image'
306
+ | 'background-origin'
307
+ | 'background-position'
308
+ | 'background-position-x'
309
+ | 'background-position-y'
310
+ | 'background-repeat'
311
+ | 'background-size'
312
+ | 'block-size'
313
+ | 'border-block-end-color'
314
+ | 'border-block-end-style'
315
+ | 'border-block-end-width'
316
+ | 'border-block-start-color'
317
+ | 'border-block-start-style'
318
+ | 'border-block-start-width'
319
+ | 'border-bottom-color'
320
+ | 'border-bottom-left-radius'
321
+ | 'border-bottom-right-radius'
322
+ | 'border-bottom-style'
323
+ | 'border-bottom-width'
324
+ | 'border-collapse'
325
+ | 'border-end-end-radius'
326
+ | 'border-end-start-radius'
327
+ | 'border-image-outset'
328
+ | 'border-image-repeat'
329
+ | 'border-image-slice'
330
+ | 'border-image-source'
331
+ | 'border-image-width'
332
+ | 'border-inline-end-color'
333
+ | 'border-inline-end-style'
334
+ | 'border-inline-end-width'
335
+ | 'border-inline-start-color'
336
+ | 'border-inline-start-style'
337
+ | 'border-inline-start-width'
338
+ | 'border-left-color'
339
+ | 'border-left-style'
340
+ | 'border-left-width'
341
+ | 'border-right-color'
342
+ | 'border-right-style'
343
+ | 'border-right-width'
344
+ | 'border-start-end-radius'
345
+ | 'border-start-start-radius'
346
+ | 'border-top-color'
347
+ | 'border-top-left-radius'
348
+ | 'border-top-right-radius'
349
+ | 'border-top-style'
350
+ | 'border-top-width'
351
+ | 'bottom'
352
+ | 'box-shadow'
353
+ | 'box-sizing'
354
+ | 'break-after'
355
+ | 'break-before'
356
+ | 'break-inside'
357
+ | 'caption-side'
358
+ | 'caret-color'
359
+ | 'clear'
360
+ | 'clip'
361
+ | 'clip-path'
362
+ | 'clip-rule'
363
+ | 'color'
364
+ | 'color-interpolation'
365
+ | 'color-interpolation-filters'
366
+ | 'column-count'
367
+ | 'column-gap'
368
+ | 'column-rule-color'
369
+ | 'column-rule-style'
370
+ | 'column-rule-width'
371
+ | 'column-span'
372
+ | 'column-width'
373
+ | 'content'
374
+ | 'cursor'
375
+ | 'cx'
376
+ | 'cy'
377
+ | 'direction'
378
+ | 'display'
379
+ | 'dominant-baseline'
380
+ | 'empty-cells'
381
+ | 'fill'
382
+ | 'fill-opacity'
383
+ | 'fill-rule'
384
+ | 'filter'
385
+ | 'flex-basis'
386
+ | 'flex-direction'
387
+ | 'flex-grow'
388
+ | 'flex-shrink'
389
+ | 'flex-wrap'
390
+ | 'float'
391
+ | 'flood-color'
392
+ | 'flood-opacity'
393
+ | 'font-family'
394
+ | 'font-kerning'
395
+ | 'font-optical-sizing'
396
+ | 'font-size'
397
+ | 'font-stretch'
398
+ | 'font-style'
399
+ | 'font-variant-alternates'
400
+ | 'font-variant-caps'
401
+ | 'font-variant-east-asian'
402
+ | 'font-variant-ligatures'
403
+ | 'font-variant-numeric'
404
+ | 'font-weight'
405
+ | 'grid-auto-columns'
406
+ | 'grid-auto-flow'
407
+ | 'grid-auto-rows'
408
+ | 'grid-column-end'
409
+ | 'grid-column-gap'
410
+ | 'grid-column-start'
411
+ | 'grid-row-end'
412
+ | 'grid-row-gap'
413
+ | 'grid-row-start'
414
+ | 'grid-template-areas'
415
+ | 'grid-template-columns'
416
+ | 'grid-template-rows'
417
+ | 'height'
418
+ | 'image-orientation'
419
+ | 'image-rendering'
420
+ | 'inline-size'
421
+ | 'inset-block-end'
422
+ | 'inset-block-start'
423
+ | 'inset-inline-end'
424
+ | 'inset-inline-start'
425
+ | 'isolation'
426
+ | 'justify-content'
427
+ | 'justify-items'
428
+ | 'justify-self'
429
+ | 'left'
430
+ | 'letter-spacing'
431
+ | 'lighting-color'
432
+ | 'line-break'
433
+ | 'line-height'
434
+ | 'list-style-image'
435
+ | 'list-style-position'
436
+ | 'list-style-type'
437
+ | 'margin-block-end'
438
+ | 'margin-block-start'
439
+ | 'margin-bottom'
440
+ | 'margin-inline-end'
441
+ | 'margin-inline-start'
442
+ | 'margin-left'
443
+ | 'margin-right'
444
+ | 'margin-top'
445
+ | 'marker-end'
446
+ | 'marker-mid'
447
+ | 'marker-start'
448
+ | 'mask-type'
449
+ | 'max-block-size'
450
+ | 'max-height'
451
+ | 'max-inline-size'
452
+ | 'max-width'
453
+ | 'min-block-size'
454
+ | 'min-height'
455
+ | 'min-inline-size'
456
+ | 'min-width'
457
+ | 'mix-blend-mode'
458
+ | 'object-fit'
459
+ | 'object-position'
460
+ | 'offset-anchor'
461
+ | 'offset-distance'
462
+ | 'offset-path'
463
+ | 'offset-rotate'
464
+ | 'opacity'
465
+ | 'order'
466
+ | 'outline-color'
467
+ | 'outline-offset'
468
+ | 'outline-style'
469
+ | 'outline-width'
470
+ | 'overflow-wrap'
471
+ | 'overflow-x'
472
+ | 'overflow-y'
473
+ | 'overscroll-behavior-block'
474
+ | 'overscroll-behavior-inline'
475
+ | 'padding-block-end'
476
+ | 'padding-block-start'
477
+ | 'padding-bottom'
478
+ | 'padding-inline-end'
479
+ | 'padding-inline-start'
480
+ | 'padding-left'
481
+ | 'padding-right'
482
+ | 'padding-top'
483
+ | 'paint-order'
484
+ | 'perspective'
485
+ | 'perspective-origin'
486
+ | 'pointer-events'
487
+ | 'position'
488
+ | 'r'
489
+ | 'resize'
490
+ | 'right'
491
+ | 'rotate'
492
+ | 'row-gap'
493
+ | 'rx'
494
+ | 'ry'
495
+ | 'scale'
496
+ | 'scroll-behavior'
497
+ | 'scroll-margin-block-end'
498
+ | 'scroll-margin-block-start'
499
+ | 'scroll-margin-inline-end'
500
+ | 'scroll-margin-inline-start'
501
+ | 'scroll-padding-block-end'
502
+ | 'scroll-padding-block-start'
503
+ | 'scroll-padding-inline-end'
504
+ | 'scroll-padding-inline-start'
505
+ | 'shape-image-threshold'
506
+ | 'shape-margin'
507
+ | 'shape-outside'
508
+ | 'shape-rendering'
509
+ | 'stop-color'
510
+ | 'stop-opacity'
511
+ | 'stroke'
512
+ | 'stroke-dasharray'
513
+ | 'stroke-dashoffset'
514
+ | 'stroke-linecap'
515
+ | 'stroke-linejoin'
516
+ | 'stroke-miterlimit'
517
+ | 'stroke-opacity'
518
+ | 'stroke-width'
519
+ | 'tab-size'
520
+ | 'table-layout'
521
+ | 'text-align'
522
+ | 'text-align-last'
523
+ | 'text-anchor'
524
+ | 'text-decoration'
525
+ | 'text-decoration-color'
526
+ | 'text-decoration-line'
527
+ | 'text-decoration-skip-ink'
528
+ | 'text-decoration-style'
529
+ | 'text-emphasis-color'
530
+ | 'text-emphasis-position'
531
+ | 'text-emphasis-style'
532
+ | 'text-indent'
533
+ | 'text-overflow'
534
+ | 'text-rendering'
535
+ | 'text-shadow'
536
+ | 'text-transform'
537
+ | 'text-underline-position'
538
+ | 'top'
539
+ | 'touch-action'
540
+ | 'transform'
541
+ | 'transform-origin'
542
+ | 'transform-style'
543
+ | 'transition-delay'
544
+ | 'transition-duration'
545
+ | 'transition-property'
546
+ | 'transition-timing-function'
547
+ | 'translate'
548
+ | 'unicode-bidi'
549
+ | 'vector-effect'
550
+ | 'vertical-align'
551
+ | 'visibility'
552
+ | 'white-space'
553
+ | 'width'
554
+ | 'will-change'
555
+ | 'word-break'
556
+ | 'word-spacing'
557
+ | 'writing-mode'
558
+ | 'x'
559
+ | 'y'
560
+ | 'z-index'
561
+ | '-webkit-line-clamp'
562
+ | '-webkit-text-fill-color'
563
+ | '-webkit-text-stroke-color'
564
+ | '-webkit-text-stroke-width';
package/styles.d.ts CHANGED
@@ -1,11 +1,16 @@
1
+ /// <reference path="./styles-generated.d.ts" />
2
+
1
3
  interface Style {
2
4
  readonly id: StyleId;
3
5
  getName(): string;
4
6
  getProperties(options?: BreakpointAndPseudo): PropertyMap;
5
7
  setProperties(props: PropertyMap, options?: BreakpointAndPseudo): undefined;
6
- getProperty(prop: string, options?: BreakpointAndPseudo): null | string;
8
+ getProperty(
9
+ prop: StyleProperty,
10
+ options?: BreakpointAndPseudo
11
+ ): null | string;
7
12
  setProperty(
8
- prop: string,
13
+ prop: StyleProperty,
9
14
  value: string,
10
15
  options?: BreakpointAndPseudo
11
16
  ): undefined;
@@ -16,8 +21,6 @@ interface Style {
16
21
 
17
22
  declare type StyleId = string;
18
23
 
19
- declare type PropertyMap = {[property: string]: string};
20
-
21
24
  declare type BreakpointAndPseudo = {
22
25
  breakpoint?: BreakpointId;
23
26
  pseudo?: PseudoStateKey;