@webority/tokens 0.156.0 → 0.158.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/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/renames.d.ts +24 -0
package/renames/renames.d.ts
CHANGED
|
@@ -93,6 +93,28 @@ 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
|
+
}
|
|
108
|
+
|
|
109
|
+
/** 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. */
|
|
110
|
+
export interface CsharpEnumArgumentRule {
|
|
111
|
+
call: string;
|
|
112
|
+
within?: string;
|
|
113
|
+
argument: number;
|
|
114
|
+
enum: string;
|
|
115
|
+
values: Readonly<Record<string, string>>;
|
|
116
|
+
}
|
|
117
|
+
|
|
96
118
|
export interface RenameTable {
|
|
97
119
|
version: string;
|
|
98
120
|
css: {
|
|
@@ -116,6 +138,8 @@ export interface RenameTable {
|
|
|
116
138
|
markup?: MarkupRules;
|
|
117
139
|
valueSplits?: ValueSplitRule[];
|
|
118
140
|
razorValueSplits?: RazorValueSplitRule[];
|
|
141
|
+
razorEnumAttributes?: RazorEnumAttributeRule[];
|
|
142
|
+
csharpEnumArguments?: CsharpEnumArgumentRule[];
|
|
119
143
|
}
|
|
120
144
|
|
|
121
145
|
/** 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`. */
|