@yahoo/uds-create-config 5.94.2 → 5.94.4
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/__fixtures__/yos-native.d.ts +6 -0
- package/dist/configs/react-native-system.d.ts +6 -0
- package/dist/configs/system.js +2 -0
- package/dist/entities/native/NativeSettings.d.ts +6 -0
- package/dist/entities/system/Modifier.d.ts +1 -1
- package/dist/entities/system/Settings.d.ts +12 -0
- package/dist/entities/system/Settings.js +6 -0
- package/dist/framework/Config.d.ts +1 -1
- package/dist/framework/Config.js +1 -1
- package/dist/framework/schema-version.d.ts +1 -1
- package/dist/framework/schema-version.js +5 -5
- package/dist/lint/context.d.ts +9 -0
- package/dist/lint/context.js +1 -1
- package/dist/lint/edits.d.ts +2 -0
- package/dist/lint/edits.js +2 -0
- package/dist/lint/lint.js +2 -0
- package/dist/lint/native-style-keys.d.ts +7 -0
- package/dist/lint/native-style-keys.js +170 -0
- package/dist/lint/rules.d.ts +11 -0
- package/dist/lint/rules.js +9 -0
- package/dist/migrations/20261112145536_native_lint_locations.d.ts +5 -0
- package/dist/migrations/20261112145536_native_lint_locations.js +10 -0
- package/dist/react-native/style-keys.generated.d.ts +2 -4
- package/dist/react-native/style-keys.generated.js +150 -5
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
//#region src/react-native/style-keys.generated.ts
|
|
2
2
|
/**
|
|
3
|
-
* GENERATED — do not edit. `bun scripts/generate-rn-style-keys.ts`
|
|
4
|
-
* Native
|
|
5
|
-
* `TextStyle` and `ImageStyle` accept, including inherited interfaces. `NativeStyleProperty`
|
|
6
|
-
* validates against this, so the native style vocabulary is React Native's, not a hand-kept list.
|
|
3
|
+
* GENERATED — do not edit. Run `bun scripts/generate-rn-style-keys.ts` in packages/config.
|
|
4
|
+
* React Native 0.86.3: ViewStyle, TextStyle, ImageStyle, and exported host prop declarations.
|
|
7
5
|
*/
|
|
8
6
|
const RN_STYLE_KEYS = [
|
|
9
7
|
"alignContent",
|
|
@@ -163,5 +161,152 @@ const RN_STYLE_KEYS = [
|
|
|
163
161
|
"writingDirection",
|
|
164
162
|
"zIndex"
|
|
165
163
|
];
|
|
164
|
+
/** Host props that can also be native style keys. Other props stay open. */
|
|
165
|
+
const RN_HOST_STYLE_PROPS = {
|
|
166
|
+
ActivityIndicator: ["color", "pointerEvents"],
|
|
167
|
+
Button: ["color"],
|
|
168
|
+
DrawerLayoutAndroid: ["pointerEvents"],
|
|
169
|
+
FlatList: ["pointerEvents"],
|
|
170
|
+
Image: [
|
|
171
|
+
"borderBottomLeftRadius",
|
|
172
|
+
"borderBottomRightRadius",
|
|
173
|
+
"borderRadius",
|
|
174
|
+
"borderTopLeftRadius",
|
|
175
|
+
"borderTopRightRadius",
|
|
176
|
+
"height",
|
|
177
|
+
"resizeMode",
|
|
178
|
+
"tintColor",
|
|
179
|
+
"width"
|
|
180
|
+
],
|
|
181
|
+
ImageBackground: [
|
|
182
|
+
"borderBottomLeftRadius",
|
|
183
|
+
"borderBottomRightRadius",
|
|
184
|
+
"borderRadius",
|
|
185
|
+
"borderTopLeftRadius",
|
|
186
|
+
"borderTopRightRadius",
|
|
187
|
+
"height",
|
|
188
|
+
"resizeMode",
|
|
189
|
+
"tintColor",
|
|
190
|
+
"width"
|
|
191
|
+
],
|
|
192
|
+
InputAccessoryView: ["backgroundColor"],
|
|
193
|
+
KeyboardAvoidingView: ["pointerEvents"],
|
|
194
|
+
Modal: ["pointerEvents"],
|
|
195
|
+
Pressable: ["pointerEvents"],
|
|
196
|
+
ProgressBarAndroid: ["color", "pointerEvents"],
|
|
197
|
+
RefreshControl: ["pointerEvents", "tintColor"],
|
|
198
|
+
ScrollView: ["pointerEvents"],
|
|
199
|
+
SectionList: ["pointerEvents"],
|
|
200
|
+
StatusBar: ["backgroundColor"],
|
|
201
|
+
Switch: ["pointerEvents", "tintColor"],
|
|
202
|
+
Text: ["pointerEvents"],
|
|
203
|
+
TextInput: [
|
|
204
|
+
"pointerEvents",
|
|
205
|
+
"textAlign",
|
|
206
|
+
"textAlignVertical",
|
|
207
|
+
"verticalAlign"
|
|
208
|
+
],
|
|
209
|
+
TouchableHighlight: [],
|
|
210
|
+
TouchableNativeFeedback: [],
|
|
211
|
+
TouchableOpacity: [],
|
|
212
|
+
TouchableWithoutFeedback: [],
|
|
213
|
+
View: ["pointerEvents"],
|
|
214
|
+
VirtualizedList: ["pointerEvents"],
|
|
215
|
+
_View: ["pointerEvents"],
|
|
216
|
+
_Image: [
|
|
217
|
+
"borderBottomLeftRadius",
|
|
218
|
+
"borderBottomRightRadius",
|
|
219
|
+
"borderRadius",
|
|
220
|
+
"borderTopLeftRadius",
|
|
221
|
+
"borderTopRightRadius",
|
|
222
|
+
"height",
|
|
223
|
+
"resizeMode",
|
|
224
|
+
"tintColor",
|
|
225
|
+
"width"
|
|
226
|
+
],
|
|
227
|
+
_Text: ["pointerEvents"],
|
|
228
|
+
_ScrollView: ["pointerEvents"],
|
|
229
|
+
ActivityIndicatorComponent: ["color", "pointerEvents"],
|
|
230
|
+
ActivityIndicatorBase: ["color", "pointerEvents"],
|
|
231
|
+
DrawerLayoutAndroidComponent: ["pointerEvents"],
|
|
232
|
+
DrawerLayoutAndroidBase: ["pointerEvents"],
|
|
233
|
+
KeyboardAvoidingViewComponent: ["pointerEvents"],
|
|
234
|
+
KeyboardAvoidingViewBase: ["pointerEvents"],
|
|
235
|
+
ProgressBarAndroidComponent: ["color", "pointerEvents"],
|
|
236
|
+
ProgressBarAndroidBase: ["color", "pointerEvents"],
|
|
237
|
+
RefreshControlComponent: ["pointerEvents", "tintColor"],
|
|
238
|
+
RefreshControlBase: ["pointerEvents", "tintColor"],
|
|
239
|
+
SafeAreaViewComponent: ["pointerEvents"],
|
|
240
|
+
SafeAreaViewBase: ["pointerEvents"],
|
|
241
|
+
SafeAreaView: ["pointerEvents"],
|
|
242
|
+
ScrollViewComponent: ["pointerEvents"],
|
|
243
|
+
ScrollViewBase: ["pointerEvents"],
|
|
244
|
+
SwitchComponent: ["pointerEvents", "tintColor"],
|
|
245
|
+
SwitchBase: ["pointerEvents", "tintColor"],
|
|
246
|
+
TextInputComponent: [
|
|
247
|
+
"pointerEvents",
|
|
248
|
+
"textAlign",
|
|
249
|
+
"textAlignVertical",
|
|
250
|
+
"verticalAlign"
|
|
251
|
+
],
|
|
252
|
+
TextInputBase: [
|
|
253
|
+
"pointerEvents",
|
|
254
|
+
"textAlign",
|
|
255
|
+
"textAlignVertical",
|
|
256
|
+
"verticalAlign"
|
|
257
|
+
],
|
|
258
|
+
TouchableNativeFeedbackComponent: [],
|
|
259
|
+
TouchableNativeFeedbackBase: [],
|
|
260
|
+
TouchableWithoutFeedbackComponent: [],
|
|
261
|
+
TouchableWithoutFeedbackBase: [],
|
|
262
|
+
ViewComponent: ["pointerEvents"],
|
|
263
|
+
ViewBase: ["pointerEvents"],
|
|
264
|
+
ImageComponent: [
|
|
265
|
+
"borderBottomLeftRadius",
|
|
266
|
+
"borderBottomRightRadius",
|
|
267
|
+
"borderRadius",
|
|
268
|
+
"borderTopLeftRadius",
|
|
269
|
+
"borderTopRightRadius",
|
|
270
|
+
"height",
|
|
271
|
+
"resizeMode",
|
|
272
|
+
"tintColor",
|
|
273
|
+
"width"
|
|
274
|
+
],
|
|
275
|
+
ImageBase: [
|
|
276
|
+
"borderBottomLeftRadius",
|
|
277
|
+
"borderBottomRightRadius",
|
|
278
|
+
"borderRadius",
|
|
279
|
+
"borderTopLeftRadius",
|
|
280
|
+
"borderTopRightRadius",
|
|
281
|
+
"height",
|
|
282
|
+
"resizeMode",
|
|
283
|
+
"tintColor",
|
|
284
|
+
"width"
|
|
285
|
+
],
|
|
286
|
+
ImageBackgroundComponent: [
|
|
287
|
+
"borderBottomLeftRadius",
|
|
288
|
+
"borderBottomRightRadius",
|
|
289
|
+
"borderRadius",
|
|
290
|
+
"borderTopLeftRadius",
|
|
291
|
+
"borderTopRightRadius",
|
|
292
|
+
"height",
|
|
293
|
+
"resizeMode",
|
|
294
|
+
"tintColor",
|
|
295
|
+
"width"
|
|
296
|
+
],
|
|
297
|
+
ImageBackgroundBase: [
|
|
298
|
+
"borderBottomLeftRadius",
|
|
299
|
+
"borderBottomRightRadius",
|
|
300
|
+
"borderRadius",
|
|
301
|
+
"borderTopLeftRadius",
|
|
302
|
+
"borderTopRightRadius",
|
|
303
|
+
"height",
|
|
304
|
+
"resizeMode",
|
|
305
|
+
"tintColor",
|
|
306
|
+
"width"
|
|
307
|
+
],
|
|
308
|
+
TextComponent: ["pointerEvents"],
|
|
309
|
+
TextBase: ["pointerEvents"]
|
|
310
|
+
};
|
|
166
311
|
//#endregion
|
|
167
|
-
export { RN_STYLE_KEYS };
|
|
312
|
+
export { RN_HOST_STYLE_PROPS, RN_STYLE_KEYS };
|