@webority/tokens 0.157.0 → 0.160.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/canvas/webority-phone.json +1 -1
- package/dist/canvas/webority-web-390.json +1 -1
- package/dist/canvas/webority-web.json +1 -1
- package/dist/meanings.json +1 -1
- package/dist/upgrade/csharpEnumArguments.d.ts +19 -0
- package/dist/upgrade/csharpEnumArguments.js +2 -0
- package/dist/upgrade/index.js +2 -2
- package/dist/upgrade/razorEnumAttributes.d.ts +19 -0
- package/dist/upgrade/razorEnumAttributes.js +5 -0
- package/dist/upgrade/razorListAttributes.d.ts +19 -0
- package/dist/upgrade/razorListAttributes.js +2 -0
- package/dist/upgrade/razorTags.js +2 -2
- package/dist/upgrade/razorValueSplits.js +2 -2
- package/dist/upgrade/tagScan.d.ts +17 -0
- package/dist/upgrade/tagScan.js +1 -1
- package/package.json +2 -2
- package/renames/0.158.0.json +2186 -0
- package/renames/0.160.0.json +358 -0
- package/renames/renames.d.ts +35 -0
|
@@ -0,0 +1,358 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "0.160.0",
|
|
3
|
+
"css": {
|
|
4
|
+
"rename": [],
|
|
5
|
+
"reads": [],
|
|
6
|
+
"choose": {},
|
|
7
|
+
"checkRole": []
|
|
8
|
+
},
|
|
9
|
+
"classes": [],
|
|
10
|
+
"themeReads": [],
|
|
11
|
+
"props": [],
|
|
12
|
+
"propValues": [],
|
|
13
|
+
"propSplits": [],
|
|
14
|
+
"razorAttributes": [],
|
|
15
|
+
"componentProps": [],
|
|
16
|
+
"valueSplits": [],
|
|
17
|
+
"components": [],
|
|
18
|
+
"razorValueSplits": [],
|
|
19
|
+
"razorTags": [],
|
|
20
|
+
"razorEnumAttributes": [
|
|
21
|
+
{
|
|
22
|
+
"tags": ["app-action-icon", "app-alert", "app-avatar", "app-button", "app-stepper", "app-wizard"],
|
|
23
|
+
"attribute": "icon-variant",
|
|
24
|
+
"enum": "IconVariant",
|
|
25
|
+
"values": {
|
|
26
|
+
"linear": "Linear",
|
|
27
|
+
"outline": "Outline",
|
|
28
|
+
"bold": "Bold",
|
|
29
|
+
"bulk": "Bulk",
|
|
30
|
+
"broken": "Broken",
|
|
31
|
+
"twotone": "Twotone"
|
|
32
|
+
},
|
|
33
|
+
"nullable": true,
|
|
34
|
+
"keepExpressions": true
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"tags": ["app-analytics-head"],
|
|
38
|
+
"attribute": "load-delay",
|
|
39
|
+
"enum": "AppAnalyticsHeadLoadDelay",
|
|
40
|
+
"values": {
|
|
41
|
+
"idle": "Idle"
|
|
42
|
+
},
|
|
43
|
+
"nullable": true,
|
|
44
|
+
"keepExpressions": true
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"tags": ["app-avatar"],
|
|
48
|
+
"attribute": "size",
|
|
49
|
+
"enum": "AppAvatarSize",
|
|
50
|
+
"values": {
|
|
51
|
+
"xs": "Xs",
|
|
52
|
+
"sm": "Sm",
|
|
53
|
+
"md": "Md",
|
|
54
|
+
"lg": "Lg",
|
|
55
|
+
"xl": "Xl",
|
|
56
|
+
"2xl": "TwoXl"
|
|
57
|
+
},
|
|
58
|
+
"numberAttribute": "size-px",
|
|
59
|
+
"nullable": true,
|
|
60
|
+
"keepExpressions": true
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"tags": ["app-button"],
|
|
64
|
+
"attribute": "size",
|
|
65
|
+
"enum": "WideSize",
|
|
66
|
+
"values": {
|
|
67
|
+
"sm": "Sm",
|
|
68
|
+
"md": "Md",
|
|
69
|
+
"lg": "Lg",
|
|
70
|
+
"xl": "Xl"
|
|
71
|
+
},
|
|
72
|
+
"nullable": true,
|
|
73
|
+
"keepExpressions": true
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"tags": ["app-card"],
|
|
77
|
+
"attribute": "max-width",
|
|
78
|
+
"enum": "AppCardMaxWidth",
|
|
79
|
+
"values": {
|
|
80
|
+
"xs": "Xs",
|
|
81
|
+
"sm": "Sm",
|
|
82
|
+
"md": "Md",
|
|
83
|
+
"lg": "Lg"
|
|
84
|
+
},
|
|
85
|
+
"numberAttribute": "max-width-px",
|
|
86
|
+
"nullable": true,
|
|
87
|
+
"keepExpressions": true
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"tags": ["app-chart"],
|
|
91
|
+
"attribute": "type",
|
|
92
|
+
"enum": "AppChartType",
|
|
93
|
+
"values": {
|
|
94
|
+
"line": "Line",
|
|
95
|
+
"area": "Area",
|
|
96
|
+
"column": "Column",
|
|
97
|
+
"bar": "Bar",
|
|
98
|
+
"donut": "Donut",
|
|
99
|
+
"heatmap": "Heatmap",
|
|
100
|
+
"calendar": "Calendar",
|
|
101
|
+
"funnel": "Funnel",
|
|
102
|
+
"gauge": "Gauge",
|
|
103
|
+
"waterfall": "Waterfall",
|
|
104
|
+
"treemap": "Treemap",
|
|
105
|
+
"sankey": "Sankey",
|
|
106
|
+
"scatter": "Scatter",
|
|
107
|
+
"bubble": "Bubble",
|
|
108
|
+
"multiples": "Multiples"
|
|
109
|
+
},
|
|
110
|
+
"nullable": true,
|
|
111
|
+
"keepExpressions": true
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"tags": ["app-checkbox", "app-input", "app-radio", "app-search", "app-select", "app-switch", "app-textarea"],
|
|
115
|
+
"attribute": "size",
|
|
116
|
+
"enum": "ControlSize",
|
|
117
|
+
"values": {
|
|
118
|
+
"sm": "Sm",
|
|
119
|
+
"md": "Md",
|
|
120
|
+
"lg": "Lg"
|
|
121
|
+
},
|
|
122
|
+
"nullable": true,
|
|
123
|
+
"keepExpressions": true
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"tags": ["app-image-picker", "app-splash", "app-timeline"],
|
|
127
|
+
"attribute": "size",
|
|
128
|
+
"enum": "ControlSize",
|
|
129
|
+
"values": {
|
|
130
|
+
"sm": "Sm",
|
|
131
|
+
"md": "Md",
|
|
132
|
+
"lg": "Lg"
|
|
133
|
+
},
|
|
134
|
+
"numberAttribute": "size-px",
|
|
135
|
+
"nullable": true,
|
|
136
|
+
"keepExpressions": true
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"tags": ["app-confirm-dialog"],
|
|
140
|
+
"attribute": "size",
|
|
141
|
+
"enum": "WideSize",
|
|
142
|
+
"values": {
|
|
143
|
+
"sm": "Sm",
|
|
144
|
+
"md": "Md",
|
|
145
|
+
"lg": "Lg",
|
|
146
|
+
"xl": "Xl"
|
|
147
|
+
},
|
|
148
|
+
"numberAttribute": "size-px",
|
|
149
|
+
"nullable": true,
|
|
150
|
+
"keepExpressions": true
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"tags": ["app-context-menu-item", "app-context-menu-submenu", "app-dropdown-item", "app-split-button-item"],
|
|
154
|
+
"attribute": "tone",
|
|
155
|
+
"enum": "Tone",
|
|
156
|
+
"values": {
|
|
157
|
+
"primary": "Primary",
|
|
158
|
+
"success": "Success",
|
|
159
|
+
"warning": "Warning",
|
|
160
|
+
"danger": "Danger",
|
|
161
|
+
"info": "Info",
|
|
162
|
+
"neutral": "Neutral"
|
|
163
|
+
},
|
|
164
|
+
"nullable": true,
|
|
165
|
+
"keepExpressions": true
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"tags": ["app-filter-facet"],
|
|
169
|
+
"attribute": "type",
|
|
170
|
+
"enum": "AppFilterFacetType",
|
|
171
|
+
"values": {
|
|
172
|
+
"enum": "Enum",
|
|
173
|
+
"multienum": "MultiEnum",
|
|
174
|
+
"daterange": "DateRange",
|
|
175
|
+
"text": "Text"
|
|
176
|
+
},
|
|
177
|
+
"nullable": true,
|
|
178
|
+
"keepExpressions": true
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"tags": ["app-modal", "app-modal-content"],
|
|
182
|
+
"attribute": "size",
|
|
183
|
+
"enum": "AppModalSize",
|
|
184
|
+
"values": {
|
|
185
|
+
"sm": "Sm",
|
|
186
|
+
"md": "Md",
|
|
187
|
+
"lg": "Lg",
|
|
188
|
+
"xl": "Xl",
|
|
189
|
+
"fullscreen": "Fullscreen"
|
|
190
|
+
},
|
|
191
|
+
"numberAttribute": "size-px",
|
|
192
|
+
"nullable": true,
|
|
193
|
+
"keepExpressions": true
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"tags": ["app-nav-list-item"],
|
|
197
|
+
"attribute": "dot-tone",
|
|
198
|
+
"enum": "Tone",
|
|
199
|
+
"values": {
|
|
200
|
+
"primary": "Primary",
|
|
201
|
+
"success": "Success",
|
|
202
|
+
"warning": "Warning",
|
|
203
|
+
"danger": "Danger",
|
|
204
|
+
"info": "Info",
|
|
205
|
+
"neutral": "Neutral"
|
|
206
|
+
},
|
|
207
|
+
"nullable": true,
|
|
208
|
+
"keepExpressions": true
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"tags": ["app-onboarding-step"],
|
|
212
|
+
"attribute": "status",
|
|
213
|
+
"enum": "OnboardingStatus",
|
|
214
|
+
"values": {
|
|
215
|
+
"done": "Done",
|
|
216
|
+
"current": "Current",
|
|
217
|
+
"skipped": "Skipped",
|
|
218
|
+
"todo": "Todo"
|
|
219
|
+
},
|
|
220
|
+
"nullable": true,
|
|
221
|
+
"keepExpressions": true
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"tags": ["app-radio-group"],
|
|
225
|
+
"attribute": "variant",
|
|
226
|
+
"enum": "AppRadioGroupVariant",
|
|
227
|
+
"values": {
|
|
228
|
+
"default": "Default",
|
|
229
|
+
"card": "Card"
|
|
230
|
+
},
|
|
231
|
+
"nullable": true,
|
|
232
|
+
"keepExpressions": true
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"tags": ["app-rolling-number"],
|
|
236
|
+
"attribute": "unit",
|
|
237
|
+
"enum": "MoneyUnit",
|
|
238
|
+
"values": {
|
|
239
|
+
"rupees": "Rupees",
|
|
240
|
+
"paise": "Paise"
|
|
241
|
+
},
|
|
242
|
+
"nullable": true,
|
|
243
|
+
"keepExpressions": true
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"tags": ["app-saved-views"],
|
|
247
|
+
"attribute": "mode",
|
|
248
|
+
"enum": "AppSavedViewsMode",
|
|
249
|
+
"values": {
|
|
250
|
+
"browser": "Browser",
|
|
251
|
+
"server": "Server"
|
|
252
|
+
},
|
|
253
|
+
"nullable": true,
|
|
254
|
+
"keepExpressions": true
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"tags": ["app-select"],
|
|
258
|
+
"attribute": "mode",
|
|
259
|
+
"enum": "AppSelectMode",
|
|
260
|
+
"values": {
|
|
261
|
+
"single": "Single",
|
|
262
|
+
"multiple": "Multiple",
|
|
263
|
+
"search": "Search",
|
|
264
|
+
"tag": "Tag",
|
|
265
|
+
"country": "Country"
|
|
266
|
+
},
|
|
267
|
+
"nullable": true,
|
|
268
|
+
"keepExpressions": true
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
"tags": ["app-select"],
|
|
272
|
+
"attribute": "density",
|
|
273
|
+
"enum": "Density",
|
|
274
|
+
"values": {
|
|
275
|
+
"comfortable": "Comfortable",
|
|
276
|
+
"compact": "Compact"
|
|
277
|
+
},
|
|
278
|
+
"nullable": true,
|
|
279
|
+
"keepExpressions": true
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"tags": ["app-sortable-list"],
|
|
283
|
+
"attribute": "orientation",
|
|
284
|
+
"enum": "Orientation",
|
|
285
|
+
"values": {
|
|
286
|
+
"horizontal": "Horizontal",
|
|
287
|
+
"vertical": "Vertical"
|
|
288
|
+
},
|
|
289
|
+
"nullable": true,
|
|
290
|
+
"keepExpressions": true
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"tags": ["app-spinner"],
|
|
294
|
+
"attribute": "size",
|
|
295
|
+
"enum": "CompactSize",
|
|
296
|
+
"values": {
|
|
297
|
+
"sm": "Sm",
|
|
298
|
+
"md": "Md"
|
|
299
|
+
},
|
|
300
|
+
"numberAttribute": "size-px",
|
|
301
|
+
"nullable": true,
|
|
302
|
+
"keepExpressions": true
|
|
303
|
+
}
|
|
304
|
+
],
|
|
305
|
+
"razorListAttributes": [
|
|
306
|
+
{
|
|
307
|
+
"tags": ["app-consent-banner"],
|
|
308
|
+
"attribute": "categories",
|
|
309
|
+
"enum": "ConsentCategory",
|
|
310
|
+
"values": { "analytics": "Analytics", "functional": "Functional", "marketing": "Marketing" }
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
"tags": ["app-lead-popup"],
|
|
314
|
+
"attribute": "fields",
|
|
315
|
+
"enum": "LeadPopupField",
|
|
316
|
+
"values": {
|
|
317
|
+
"name": "Name",
|
|
318
|
+
"email": "Email",
|
|
319
|
+
"phone": "Phone",
|
|
320
|
+
"company": "Company",
|
|
321
|
+
"message": "Message",
|
|
322
|
+
"consent": "Consent"
|
|
323
|
+
}
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"tags": ["app-lead-popup"],
|
|
327
|
+
"attribute": "required",
|
|
328
|
+
"enum": "LeadPopupField",
|
|
329
|
+
"values": {
|
|
330
|
+
"name": "Name",
|
|
331
|
+
"email": "Email",
|
|
332
|
+
"phone": "Phone",
|
|
333
|
+
"company": "Company",
|
|
334
|
+
"message": "Message",
|
|
335
|
+
"consent": "Consent"
|
|
336
|
+
}
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
"tags": ["app-lead-popup"],
|
|
340
|
+
"attribute": "triggers",
|
|
341
|
+
"enum": "LeadPopupTrigger",
|
|
342
|
+
"values": { "exit": "Exit", "delay": "Delay", "scroll": "Scroll", "pages": "Pages" }
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
"tags": ["app-section-lead-capture"],
|
|
346
|
+
"attribute": "fields",
|
|
347
|
+
"enum": "LeadCaptureField",
|
|
348
|
+
"values": { "name": "Name", "email": "Email", "phone": "Phone", "company": "Company", "message": "Message" }
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
"tags": ["app-section-lead-capture"],
|
|
352
|
+
"attribute": "required",
|
|
353
|
+
"enum": "LeadCaptureField",
|
|
354
|
+
"values": { "name": "Name", "email": "Email", "phone": "Phone", "company": "Company", "message": "Message" }
|
|
355
|
+
}
|
|
356
|
+
],
|
|
357
|
+
"csharpEnumArguments": []
|
|
358
|
+
}
|
package/renames/renames.d.ts
CHANGED
|
@@ -93,6 +93,38 @@ export interface MarkupRules {
|
|
|
93
93
|
flags: { pattern: string; hint: string }[];
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
+
/** A Razor tag-helper attribute that takes an enum member now: `values` maps each old value, lower-cased, to its member. A quoted value not in `values` and not already a member, and any `@expression` that is not a conditional of mapped literals, is reported and left as written. */
|
|
97
|
+
export interface RazorEnumAttributeRule {
|
|
98
|
+
tags: string[];
|
|
99
|
+
attribute: string;
|
|
100
|
+
/** The C# enum, without its namespace, as written into a rewritten conditional. */
|
|
101
|
+
enum: string;
|
|
102
|
+
values: Readonly<Record<string, string>>;
|
|
103
|
+
/** When given, a positive integer literal in `attribute` moves to this attribute unchanged (`size="640"` becomes `size-px="640"`). */
|
|
104
|
+
numberAttribute?: string;
|
|
105
|
+
/** The property is a nullable enum, where Razor reads the value as C#, so a literal is written as `Enum.Member` instead of the bare member. */
|
|
106
|
+
nullable?: boolean;
|
|
107
|
+
/** The property took the enum before this version, so an `@expression` already returns it and is left as written, with no finding. */
|
|
108
|
+
keepExpressions?: boolean;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/** A Razor tag-helper attribute whose comma or space separated word list became a typed enum array: `values` maps each old word, lower-cased, to its member. */
|
|
112
|
+
export interface RazorListAttributeRule {
|
|
113
|
+
tags: string[];
|
|
114
|
+
attribute: string;
|
|
115
|
+
enum: string;
|
|
116
|
+
values: Readonly<Record<string, string>>;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/** A string argument of a C# call of this library that takes an enum member now. `call` is the text before the opening bracket (`new StatusDisplay`, `.Add`, `ButtonClass.For`); `within`, when given, must appear in the statement the call belongs to (`new StatusDisplayMap<`). `argument` counts from 1. */
|
|
120
|
+
export interface CsharpEnumArgumentRule {
|
|
121
|
+
call: string;
|
|
122
|
+
within?: string;
|
|
123
|
+
argument: number;
|
|
124
|
+
enum: string;
|
|
125
|
+
values: Readonly<Record<string, string>>;
|
|
126
|
+
}
|
|
127
|
+
|
|
96
128
|
export interface RenameTable {
|
|
97
129
|
version: string;
|
|
98
130
|
css: {
|
|
@@ -116,6 +148,9 @@ export interface RenameTable {
|
|
|
116
148
|
markup?: MarkupRules;
|
|
117
149
|
valueSplits?: ValueSplitRule[];
|
|
118
150
|
razorValueSplits?: RazorValueSplitRule[];
|
|
151
|
+
razorEnumAttributes?: RazorEnumAttributeRule[];
|
|
152
|
+
razorListAttributes?: RazorListAttributeRule[];
|
|
153
|
+
csharpEnumArguments?: CsharpEnumArgumentRule[];
|
|
119
154
|
}
|
|
120
155
|
|
|
121
156
|
/** A JSX prop whose one literal value becomes several props on the same element: `values` maps each old value to the props written in its place (a value of null drops the prop). Applies to the components' local names as imported from `package`. */
|