babel-plugin-react-native-direct-imports 0.0.0-stage → 1.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.
Files changed (143) hide show
  1. package/README.md +107 -2
  2. package/index.js +126 -0
  3. package/maps/0.70.0.json +330 -0
  4. package/maps/0.70.1.json +330 -0
  5. package/maps/0.70.10.json +330 -0
  6. package/maps/0.70.11.json +330 -0
  7. package/maps/0.70.12.json +330 -0
  8. package/maps/0.70.13.json +330 -0
  9. package/maps/0.70.14.json +330 -0
  10. package/maps/0.70.15.json +330 -0
  11. package/maps/0.70.2.json +330 -0
  12. package/maps/0.70.3.json +330 -0
  13. package/maps/0.70.4.json +330 -0
  14. package/maps/0.70.5.json +330 -0
  15. package/maps/0.70.6.json +330 -0
  16. package/maps/0.70.7.json +330 -0
  17. package/maps/0.70.8.json +330 -0
  18. package/maps/0.70.9.json +330 -0
  19. package/maps/0.71.0.json +338 -0
  20. package/maps/0.71.1.json +338 -0
  21. package/maps/0.71.10.json +338 -0
  22. package/maps/0.71.11.json +338 -0
  23. package/maps/0.71.12.json +338 -0
  24. package/maps/0.71.13.json +338 -0
  25. package/maps/0.71.14.json +338 -0
  26. package/maps/0.71.15.json +338 -0
  27. package/maps/0.71.16.json +338 -0
  28. package/maps/0.71.17.json +338 -0
  29. package/maps/0.71.18.json +338 -0
  30. package/maps/0.71.19.json +338 -0
  31. package/maps/0.71.2.json +338 -0
  32. package/maps/0.71.3.json +338 -0
  33. package/maps/0.71.4.json +338 -0
  34. package/maps/0.71.5.json +338 -0
  35. package/maps/0.71.6.json +338 -0
  36. package/maps/0.71.7.json +338 -0
  37. package/maps/0.71.8.json +338 -0
  38. package/maps/0.71.9.json +338 -0
  39. package/maps/0.72.0.json +326 -0
  40. package/maps/0.72.1.json +326 -0
  41. package/maps/0.72.10.json +326 -0
  42. package/maps/0.72.11.json +326 -0
  43. package/maps/0.72.12.json +326 -0
  44. package/maps/0.72.13.json +326 -0
  45. package/maps/0.72.14.json +326 -0
  46. package/maps/0.72.15.json +326 -0
  47. package/maps/0.72.17.json +326 -0
  48. package/maps/0.72.2.json +326 -0
  49. package/maps/0.72.3.json +326 -0
  50. package/maps/0.72.4.json +326 -0
  51. package/maps/0.72.5.json +326 -0
  52. package/maps/0.72.6.json +326 -0
  53. package/maps/0.72.7.json +326 -0
  54. package/maps/0.72.8.json +326 -0
  55. package/maps/0.72.9.json +326 -0
  56. package/maps/0.73.0.json +326 -0
  57. package/maps/0.73.1.json +326 -0
  58. package/maps/0.73.10.json +326 -0
  59. package/maps/0.73.11.json +326 -0
  60. package/maps/0.73.2.json +326 -0
  61. package/maps/0.73.3.json +326 -0
  62. package/maps/0.73.4.json +326 -0
  63. package/maps/0.73.5.json +326 -0
  64. package/maps/0.73.6.json +326 -0
  65. package/maps/0.73.7.json +326 -0
  66. package/maps/0.73.8.json +326 -0
  67. package/maps/0.73.9.json +326 -0
  68. package/maps/0.74.0.json +314 -0
  69. package/maps/0.74.1.json +314 -0
  70. package/maps/0.74.2.json +314 -0
  71. package/maps/0.74.3.json +314 -0
  72. package/maps/0.74.4.json +314 -0
  73. package/maps/0.74.5.json +314 -0
  74. package/maps/0.74.6.json +314 -0
  75. package/maps/0.74.7.json +314 -0
  76. package/maps/0.75.0.json +314 -0
  77. package/maps/0.75.1.json +314 -0
  78. package/maps/0.75.2.json +314 -0
  79. package/maps/0.75.3.json +314 -0
  80. package/maps/0.75.4.json +314 -0
  81. package/maps/0.75.5.json +314 -0
  82. package/maps/0.76.0.json +314 -0
  83. package/maps/0.76.1.json +314 -0
  84. package/maps/0.76.2.json +314 -0
  85. package/maps/0.76.3.json +314 -0
  86. package/maps/0.76.4.json +314 -0
  87. package/maps/0.76.5.json +314 -0
  88. package/maps/0.76.6.json +314 -0
  89. package/maps/0.76.7.json +314 -0
  90. package/maps/0.76.8.json +314 -0
  91. package/maps/0.76.9.json +314 -0
  92. package/maps/0.77.0.json +318 -0
  93. package/maps/0.77.1.json +318 -0
  94. package/maps/0.77.2.json +318 -0
  95. package/maps/0.77.3.json +318 -0
  96. package/maps/0.78.0.json +322 -0
  97. package/maps/0.78.1.json +322 -0
  98. package/maps/0.78.2.json +322 -0
  99. package/maps/0.78.3.json +322 -0
  100. package/maps/0.79.0.json +318 -0
  101. package/maps/0.79.1.json +318 -0
  102. package/maps/0.79.2.json +318 -0
  103. package/maps/0.79.3.json +318 -0
  104. package/maps/0.79.4.json +318 -0
  105. package/maps/0.79.5.json +318 -0
  106. package/maps/0.79.6.json +318 -0
  107. package/maps/0.79.7.json +318 -0
  108. package/maps/0.80.0.json +326 -0
  109. package/maps/0.80.1.json +326 -0
  110. package/maps/0.80.2.json +326 -0
  111. package/maps/0.80.3.json +326 -0
  112. package/maps/0.81.0.json +338 -0
  113. package/maps/0.81.1.json +338 -0
  114. package/maps/0.81.2.json +338 -0
  115. package/maps/0.81.3.json +338 -0
  116. package/maps/0.81.4.json +338 -0
  117. package/maps/0.81.5.json +338 -0
  118. package/maps/0.81.6.json +338 -0
  119. package/maps/0.82.0.json +346 -0
  120. package/maps/0.82.1.json +346 -0
  121. package/maps/0.83.0.json +354 -0
  122. package/maps/0.83.1.json +354 -0
  123. package/maps/0.83.10.json +354 -0
  124. package/maps/0.83.2.json +354 -0
  125. package/maps/0.83.3.json +354 -0
  126. package/maps/0.83.4.json +354 -0
  127. package/maps/0.83.5.json +354 -0
  128. package/maps/0.83.6.json +354 -0
  129. package/maps/0.83.7.json +354 -0
  130. package/maps/0.83.8.json +354 -0
  131. package/maps/0.83.9.json +354 -0
  132. package/maps/0.84.0.json +358 -0
  133. package/maps/0.84.1.json +358 -0
  134. package/maps/0.85.0.json +370 -0
  135. package/maps/0.85.1.json +370 -0
  136. package/maps/0.85.2.json +370 -0
  137. package/maps/0.85.3.json +370 -0
  138. package/maps/0.86.0.json +394 -0
  139. package/maps/0.86.2.json +394 -0
  140. package/maps/0.86.3.json +394 -0
  141. package/maps/0.87.0.json +390 -0
  142. package/maps/0.87.1.json +390 -0
  143. package/package.json +38 -4
@@ -0,0 +1,390 @@
1
+ {
2
+ "ActivityIndicator": [
3
+ "Libraries/Components/ActivityIndicator/ActivityIndicator",
4
+ "default"
5
+ ],
6
+ "Button": [
7
+ "Libraries/Components/Button",
8
+ "default"
9
+ ],
10
+ "DrawerLayoutAndroid": [
11
+ "Libraries/Components/DrawerAndroid/DrawerLayoutAndroid",
12
+ "default"
13
+ ],
14
+ "EventEmitter": [
15
+ "Libraries/vendor/emitter/EventEmitter",
16
+ "default"
17
+ ],
18
+ "FlatList": [
19
+ "Libraries/Lists/FlatList",
20
+ "default"
21
+ ],
22
+ "Image": [
23
+ "Libraries/Image/Image",
24
+ "default"
25
+ ],
26
+ "ImageBackground": [
27
+ "Libraries/Image/ImageBackground",
28
+ "default"
29
+ ],
30
+ "InputAccessoryView": [
31
+ "Libraries/Components/TextInput/InputAccessoryView",
32
+ "default"
33
+ ],
34
+ "KeyboardAvoidingView": [
35
+ "Libraries/Components/Keyboard/KeyboardAvoidingView",
36
+ "default"
37
+ ],
38
+ "experimental_LayoutConformance": [
39
+ "Libraries/Components/LayoutConformance/LayoutConformance",
40
+ "default"
41
+ ],
42
+ "Modal": [
43
+ "Libraries/Modal/Modal",
44
+ "default"
45
+ ],
46
+ "unstable_NativeText": [
47
+ "Libraries/Text/TextNativeComponent",
48
+ "NativeText"
49
+ ],
50
+ "unstable_NativeView": [
51
+ "Libraries/Components/View/ViewNativeComponent",
52
+ "default"
53
+ ],
54
+ "Pressable": [
55
+ "Libraries/Components/Pressable/Pressable",
56
+ "default"
57
+ ],
58
+ "ProgressBarAndroid": [
59
+ "Libraries/Components/ProgressBarAndroid/ProgressBarAndroid",
60
+ "default"
61
+ ],
62
+ "RefreshControl": [
63
+ "Libraries/Components/RefreshControl/RefreshControl",
64
+ "default"
65
+ ],
66
+ "SafeAreaView": [
67
+ "Libraries/Components/SafeAreaView/SafeAreaView",
68
+ "default"
69
+ ],
70
+ "ScrollView": [
71
+ "Libraries/Components/ScrollView/ScrollView",
72
+ "default"
73
+ ],
74
+ "SectionList": [
75
+ "Libraries/Lists/SectionList",
76
+ "default"
77
+ ],
78
+ "StatusBar": [
79
+ "Libraries/Components/StatusBar/StatusBar",
80
+ "default"
81
+ ],
82
+ "Switch": [
83
+ "Libraries/Components/Switch/Switch",
84
+ "default"
85
+ ],
86
+ "Text": [
87
+ "Libraries/Text/Text",
88
+ "default"
89
+ ],
90
+ "unstable_TextAncestorContext": [
91
+ "Libraries/Text/TextAncestorContext",
92
+ "default"
93
+ ],
94
+ "TextInput": [
95
+ "Libraries/Components/TextInput/TextInput",
96
+ "default"
97
+ ],
98
+ "TouchableHighlight": [
99
+ "Libraries/Components/Touchable/TouchableHighlight",
100
+ "default"
101
+ ],
102
+ "TouchableNativeFeedback": [
103
+ "Libraries/Components/Touchable/TouchableNativeFeedback",
104
+ "default"
105
+ ],
106
+ "TouchableOpacity": [
107
+ "Libraries/Components/Touchable/TouchableOpacity",
108
+ "default"
109
+ ],
110
+ "TouchableWithoutFeedback": [
111
+ "Libraries/Components/Touchable/TouchableWithoutFeedback",
112
+ "default"
113
+ ],
114
+ "View": [
115
+ "Libraries/Components/View/View",
116
+ "default"
117
+ ],
118
+ "VirtualizedList": [
119
+ "Libraries/Lists/VirtualizedList",
120
+ "default"
121
+ ],
122
+ "VirtualizedSectionList": [
123
+ "Libraries/Lists/VirtualizedSectionList",
124
+ "default"
125
+ ],
126
+ "unstable_VirtualView": [
127
+ "src/private/components/virtualview/VirtualView",
128
+ "default"
129
+ ],
130
+ "unstable_VirtualArray": [
131
+ "src/private/components/virtualcollection/Virtual",
132
+ "VirtualArray"
133
+ ],
134
+ "unstable_createVirtualCollectionView": [
135
+ "src/private/components/virtualcollection/VirtualCollectionView",
136
+ "createVirtualCollectionView"
137
+ ],
138
+ "unstable_VirtualColumn": [
139
+ "src/private/components/virtualcollection/column/VirtualColumn",
140
+ "default"
141
+ ],
142
+ "unstable_VirtualColumnGenerator": [
143
+ "src/private/components/virtualcollection/column/VirtualColumnGenerator",
144
+ "default"
145
+ ],
146
+ "unstable_VirtualRow": [
147
+ "src/private/components/virtualcollection/row/VirtualRow",
148
+ "default"
149
+ ],
150
+ "unstable_getScrollParent": [
151
+ "src/private/components/virtualcollection/dom/getScrollParent",
152
+ "default"
153
+ ],
154
+ "unstable_DEFAULT_INITIAL_NUM_TO_RENDER": [
155
+ "src/private/components/virtualcollection/FlingConstants",
156
+ "DEFAULT_INITIAL_NUM_TO_RENDER"
157
+ ],
158
+ "AccessibilityInfo": [
159
+ "Libraries/Components/AccessibilityInfo/AccessibilityInfo",
160
+ "default"
161
+ ],
162
+ "ActionSheetIOS": [
163
+ "Libraries/ActionSheetIOS/ActionSheetIOS",
164
+ "default"
165
+ ],
166
+ "Alert": [
167
+ "Libraries/Alert/Alert",
168
+ "default"
169
+ ],
170
+ "Animated": [
171
+ "Libraries/Animated/Animated",
172
+ "default"
173
+ ],
174
+ "Appearance": [
175
+ "Libraries/Utilities/Appearance",
176
+ "*"
177
+ ],
178
+ "AppRegistry": [
179
+ "Libraries/ReactNative/AppRegistry",
180
+ "AppRegistry"
181
+ ],
182
+ "AppState": [
183
+ "Libraries/AppState/AppState",
184
+ "default"
185
+ ],
186
+ "AssetRegistry": [
187
+ "src/private/assets/AssetRegistry",
188
+ "AssetRegistry"
189
+ ],
190
+ "BackHandler": [
191
+ "Libraries/Utilities/BackHandler",
192
+ "default"
193
+ ],
194
+ "Clipboard": [
195
+ "Libraries/Components/Clipboard/Clipboard",
196
+ "default"
197
+ ],
198
+ "codegenNativeCommands": [
199
+ "Libraries/Utilities/codegenNativeCommands",
200
+ "default"
201
+ ],
202
+ "codegenNativeComponent": [
203
+ "Libraries/Utilities/codegenNativeComponent",
204
+ "default"
205
+ ],
206
+ "DeviceEventEmitter": [
207
+ "Libraries/EventEmitter/RCTDeviceEventEmitter",
208
+ "default"
209
+ ],
210
+ "DeviceInfo": [
211
+ "Libraries/Utilities/DeviceInfo",
212
+ "default"
213
+ ],
214
+ "DevMenu": [
215
+ "src/private/devsupport/devmenu/DevMenu",
216
+ "default"
217
+ ],
218
+ "DevSettings": [
219
+ "Libraries/Utilities/DevSettings",
220
+ "default"
221
+ ],
222
+ "Dimensions": [
223
+ "Libraries/Utilities/Dimensions",
224
+ "default"
225
+ ],
226
+ "DynamicColorIOS": [
227
+ "Libraries/StyleSheet/PlatformColorValueTypesIOS",
228
+ "DynamicColorIOS"
229
+ ],
230
+ "Easing": [
231
+ "Libraries/Animated/Easing",
232
+ "default"
233
+ ],
234
+ "findNodeHandle": [
235
+ "Libraries/ReactNative/RendererProxy",
236
+ "findNodeHandle"
237
+ ],
238
+ "I18nManager": [
239
+ "Libraries/ReactNative/I18nManager",
240
+ "default"
241
+ ],
242
+ "Keyboard": [
243
+ "Libraries/Components/Keyboard/Keyboard",
244
+ "default"
245
+ ],
246
+ "LayoutAnimation": [
247
+ "Libraries/LayoutAnimation/LayoutAnimation",
248
+ "default"
249
+ ],
250
+ "Linking": [
251
+ "Libraries/Linking/Linking",
252
+ "default"
253
+ ],
254
+ "LogBox": [
255
+ "Libraries/LogBox/LogBox",
256
+ "default"
257
+ ],
258
+ "NativeAppEventEmitter": [
259
+ "Libraries/EventEmitter/RCTNativeAppEventEmitter",
260
+ "default"
261
+ ],
262
+ "NativeComponentRegistry": [
263
+ "Libraries/NativeComponent/NativeComponentRegistry",
264
+ "*"
265
+ ],
266
+ "NativeEventEmitter": [
267
+ "Libraries/EventEmitter/NativeEventEmitter",
268
+ "default"
269
+ ],
270
+ "NativeModules": [
271
+ "Libraries/BatchedBridge/NativeModules",
272
+ "default"
273
+ ],
274
+ "Networking": [
275
+ "Libraries/Network/RCTNetworking",
276
+ "default"
277
+ ],
278
+ "PanResponder": [
279
+ "Libraries/Interaction/PanResponder",
280
+ "default"
281
+ ],
282
+ "PermissionsAndroid": [
283
+ "Libraries/PermissionsAndroid/PermissionsAndroid",
284
+ "default"
285
+ ],
286
+ "PixelRatio": [
287
+ "Libraries/Utilities/PixelRatio",
288
+ "default"
289
+ ],
290
+ "Platform": [
291
+ "Libraries/Utilities/Platform",
292
+ "default"
293
+ ],
294
+ "PlatformColor": [
295
+ "Libraries/StyleSheet/PlatformColorValueTypes",
296
+ "PlatformColor"
297
+ ],
298
+ "PushNotificationIOS": [
299
+ "Libraries/PushNotificationIOS/PushNotificationIOS",
300
+ "default"
301
+ ],
302
+ "processColor": [
303
+ "Libraries/StyleSheet/processColor",
304
+ "default"
305
+ ],
306
+ "registerCallableModule": [
307
+ "Libraries/Core/registerCallableModule",
308
+ "default"
309
+ ],
310
+ "requireNativeComponent": [
311
+ "Libraries/ReactNative/requireNativeComponent",
312
+ "default"
313
+ ],
314
+ "ReactNativeVersion": [
315
+ "Libraries/Core/ReactNativeVersion",
316
+ "default"
317
+ ],
318
+ "RootTagContext": [
319
+ "Libraries/ReactNative/RootTag",
320
+ "RootTagContext"
321
+ ],
322
+ "Settings": [
323
+ "Libraries/Settings/Settings",
324
+ "default"
325
+ ],
326
+ "Share": [
327
+ "Libraries/Share/Share",
328
+ "default"
329
+ ],
330
+ "StyleSheet": [
331
+ "Libraries/StyleSheet/StyleSheet",
332
+ "default"
333
+ ],
334
+ "Systrace": [
335
+ "Libraries/Performance/Systrace",
336
+ "*"
337
+ ],
338
+ "ToastAndroid": [
339
+ "Libraries/Components/ToastAndroid/ToastAndroid",
340
+ "default"
341
+ ],
342
+ "TurboModuleRegistry": [
343
+ "Libraries/TurboModule/TurboModuleRegistry",
344
+ "*"
345
+ ],
346
+ "UIManager": [
347
+ "Libraries/ReactNative/UIManager",
348
+ "default"
349
+ ],
350
+ "useAnimatedValue": [
351
+ "Libraries/Animated/useAnimatedValue",
352
+ "default"
353
+ ],
354
+ "useAnimatedValueXY": [
355
+ "Libraries/Animated/useAnimatedValueXY",
356
+ "default"
357
+ ],
358
+ "useAnimatedColor": [
359
+ "Libraries/Animated/useAnimatedColor",
360
+ "default"
361
+ ],
362
+ "useColorScheme": [
363
+ "Libraries/Utilities/useColorScheme",
364
+ "default"
365
+ ],
366
+ "usePressability": [
367
+ "Libraries/Pressability/usePressability",
368
+ "default"
369
+ ],
370
+ "useWindowDimensions": [
371
+ "Libraries/Utilities/useWindowDimensions",
372
+ "default"
373
+ ],
374
+ "UTFSequence": [
375
+ "Libraries/UTFSequence",
376
+ "default"
377
+ ],
378
+ "Vibration": [
379
+ "Libraries/Vibration/Vibration",
380
+ "default"
381
+ ],
382
+ "VirtualViewMode": [
383
+ "src/private/components/virtualview/VirtualView",
384
+ "VirtualViewMode"
385
+ ],
386
+ "Touchable": [
387
+ "Libraries/Components/Touchable/Touchable",
388
+ "default"
389
+ ]
390
+ }
package/package.json CHANGED
@@ -1,6 +1,40 @@
1
1
  {
2
2
  "name": "babel-plugin-react-native-direct-imports",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "1.0.0",
4
+ "description": "Babel plugin that rewrites `react-native` barrel imports into direct module imports",
5
+ "main": "index.js",
6
+ "files": [
7
+ "index.js",
8
+ "maps"
9
+ ],
10
+ "scripts": {
11
+ "test": "node --test",
12
+ "generate-maps": "node scripts/generate-maps.js"
13
+ },
14
+ "keywords": [
15
+ "babel",
16
+ "babel-plugin",
17
+ "react-native",
18
+ "metro",
19
+ "imports",
20
+ "tree-shaking"
21
+ ],
22
+ "peerDependencies": {
23
+ "@babel/core": "^7.0.0",
24
+ "react-native": ">=0.70.0"
25
+ },
26
+ "peerDependenciesMeta": {
27
+ "@babel/core": {
28
+ "optional": true
29
+ },
30
+ "react-native": {
31
+ "optional": true
32
+ }
33
+ },
34
+ "devDependencies": {
35
+ "@babel/core": "^7.26.10",
36
+ "hermes-parser": "^0.37.0"
37
+ },
38
+ "license": "MIT",
39
+ "packageManager": "yarn@4.18.1"
40
+ }