@lynx-js/react 0.123.2 → 0.123.3
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/CHANGELOG.md +6 -0
- package/package.json +1 -1
- package/runtime/lib/snapshot/lynx/portals.d.ts +25 -3
- package/runtime/lib/snapshot/lynx/portals.js +24 -1
- package/runtime/lib/snapshot/lynx/portals.js.map +1 -1
- package/runtime/lib/tsconfig.tsbuildinfo +1 -1
- package/testing-library/dist/env/index.js +32 -19
- package/testing-library/dist/pure.js +1 -1
- package/testing-library/dist/rstest-config.js +1 -1
- package/transform/dist/wasm.cjs +1 -1
- package/transform/index.d.ts +20 -24
- /package/testing-library/dist/{0-@rstest/adapter-rsbuild.js → @rstest/adapter-rsbuild~0.js} +0 -0
- /package/testing-library/dist/{0-rslib-runtime.js → rslib-runtime-0.js} +0 -0
package/transform/index.d.ts
CHANGED
|
@@ -99,8 +99,7 @@ export interface CompatVisitorConfig {
|
|
|
99
99
|
* @public
|
|
100
100
|
* Specifies the list of component package names that need compatibility processing
|
|
101
101
|
*
|
|
102
|
-
* @
|
|
103
|
-
* Default value: `['@lynx-js/react-components']`
|
|
102
|
+
* @defaultValue `['@lynx-js/react-components']`
|
|
104
103
|
*
|
|
105
104
|
* @example
|
|
106
105
|
*
|
|
@@ -124,8 +123,7 @@ export interface CompatVisitorConfig {
|
|
|
124
123
|
* @public
|
|
125
124
|
* Specifies the list of old runtime package names that need compatibility processing
|
|
126
125
|
*
|
|
127
|
-
* @
|
|
128
|
-
* Default value: `['@lynx-js/react-runtime']`
|
|
126
|
+
* @defaultValue `['@lynx-js/react-runtime']`
|
|
129
127
|
*
|
|
130
128
|
* @example
|
|
131
129
|
*
|
|
@@ -149,8 +147,7 @@ export interface CompatVisitorConfig {
|
|
|
149
147
|
* @public
|
|
150
148
|
* Specifies the new runtime package name
|
|
151
149
|
*
|
|
152
|
-
* @
|
|
153
|
-
* Default value: `'@lynx-js/react'`
|
|
150
|
+
* @defaultValue `'@lynx-js/react'`
|
|
154
151
|
*
|
|
155
152
|
* @example
|
|
156
153
|
*
|
|
@@ -174,11 +171,11 @@ export interface CompatVisitorConfig {
|
|
|
174
171
|
* @public
|
|
175
172
|
* Specifies additional component attributes list, these attributes will be passed to the wrapped `<view>` instead of the component.
|
|
176
173
|
*
|
|
174
|
+
* @defaultValue `[]`
|
|
175
|
+
*
|
|
177
176
|
* @remarks
|
|
178
177
|
* This only takes effect when {@link CompatVisitorConfig.addComponentElement} is enabled.
|
|
179
178
|
*
|
|
180
|
-
* Default value: `[]`
|
|
181
|
-
*
|
|
182
179
|
* @example
|
|
183
180
|
*
|
|
184
181
|
* ```js
|
|
@@ -201,8 +198,7 @@ export interface CompatVisitorConfig {
|
|
|
201
198
|
* @public
|
|
202
199
|
* Controls whether to add wrapper elements for components
|
|
203
200
|
*
|
|
204
|
-
* @
|
|
205
|
-
* Default value: `false`
|
|
201
|
+
* @defaultValue `false`
|
|
206
202
|
*
|
|
207
203
|
* @example
|
|
208
204
|
*
|
|
@@ -259,8 +255,7 @@ export interface CompatVisitorConfig {
|
|
|
259
255
|
*
|
|
260
256
|
* Instead, use `background-only` on class methods for explicit and maintainable behavior
|
|
261
257
|
*
|
|
262
|
-
* @
|
|
263
|
-
* Default value: `false`
|
|
258
|
+
* @defaultValue `false`
|
|
264
259
|
*
|
|
265
260
|
* @example
|
|
266
261
|
*
|
|
@@ -288,8 +283,7 @@ export interface CompatVisitorConfig {
|
|
|
288
283
|
*
|
|
289
284
|
* If your code depends on this switch, when distributing it to other projects through npm packages or other means, you'll also need to enable this switch. This will lead to the proliferation of switches, which is not conducive to code reuse between different projects.
|
|
290
285
|
*
|
|
291
|
-
* @
|
|
292
|
-
* Default value: `None`
|
|
286
|
+
* @defaultValue `undefined`
|
|
293
287
|
*
|
|
294
288
|
* @example
|
|
295
289
|
*
|
|
@@ -313,8 +307,7 @@ export interface CompatVisitorConfig {
|
|
|
313
307
|
* @public
|
|
314
308
|
* Whether to disable deprecated warnings
|
|
315
309
|
*
|
|
316
|
-
* @
|
|
317
|
-
* Default value: `false`
|
|
310
|
+
* @defaultValue `false`
|
|
318
311
|
*
|
|
319
312
|
* @example
|
|
320
313
|
*
|
|
@@ -341,8 +334,7 @@ export interface CompatVisitorConfig {
|
|
|
341
334
|
* @deprecated
|
|
342
335
|
* Dark mode configuration
|
|
343
336
|
*
|
|
344
|
-
* @
|
|
345
|
-
* Default value: `None`
|
|
337
|
+
* @defaultValue `undefined`
|
|
346
338
|
*
|
|
347
339
|
* @example
|
|
348
340
|
*
|
|
@@ -477,8 +469,7 @@ export interface ExtractStrConfig {
|
|
|
477
469
|
* @public
|
|
478
470
|
* The minimum length of string literals to be extracted.
|
|
479
471
|
*
|
|
480
|
-
* @
|
|
481
|
-
* Default value: `20`.
|
|
472
|
+
* @defaultValue `20`
|
|
482
473
|
*
|
|
483
474
|
* @example
|
|
484
475
|
*
|
|
@@ -531,9 +522,11 @@ export interface ShakeVisitorConfig {
|
|
|
531
522
|
* })
|
|
532
523
|
* ```
|
|
533
524
|
*
|
|
525
|
+
* @defaultValue `['@lynx-js/react-runtime']`
|
|
526
|
+
*
|
|
534
527
|
* @remarks
|
|
535
|
-
* Default value: `['@lynx-js/react-runtime']`
|
|
536
528
|
* The provided values will be merged with the default values instead of replacing them.
|
|
529
|
+
*
|
|
537
530
|
* @public
|
|
538
531
|
*/
|
|
539
532
|
pkgName: Array<string>
|
|
@@ -556,8 +549,9 @@ export interface ShakeVisitorConfig {
|
|
|
556
549
|
* })
|
|
557
550
|
* ```
|
|
558
551
|
*
|
|
552
|
+
* @defaultValue `['constructor', 'render', 'getDerivedStateFromProps', 'state', 'defaultDataProcessor', 'dataProcessors', 'contextType', 'defaultProps']`
|
|
553
|
+
*
|
|
559
554
|
* @remarks
|
|
560
|
-
* Default value: `['constructor', 'render', 'getDerivedStateFromProps', 'state', 'defaultDataProcessor', 'dataProcessors', 'contextType', 'defaultProps']`
|
|
561
555
|
* The provided values will be merged with the default values instead of replacing them.
|
|
562
556
|
*
|
|
563
557
|
* @public
|
|
@@ -582,8 +576,9 @@ export interface ShakeVisitorConfig {
|
|
|
582
576
|
* })
|
|
583
577
|
* ```
|
|
584
578
|
*
|
|
579
|
+
* @defaultValue `['useEffect', 'useLayoutEffect', '__runInJS', 'useLynxGlobalEventListener', 'useImperativeHandle']`
|
|
580
|
+
*
|
|
585
581
|
* @remarks
|
|
586
|
-
* Default value: `['useEffect', 'useLayoutEffect', '__runInJS', 'useLynxGlobalEventListener', 'useImperativeHandle']`
|
|
587
582
|
* The provided values will be merged with the default values instead of replacing them.
|
|
588
583
|
*
|
|
589
584
|
* @public
|
|
@@ -608,8 +603,9 @@ export interface ShakeVisitorConfig {
|
|
|
608
603
|
* })
|
|
609
604
|
* ```
|
|
610
605
|
*
|
|
606
|
+
* @defaultValue `[]`
|
|
607
|
+
*
|
|
611
608
|
* @remarks
|
|
612
|
-
* Default value: `[]`
|
|
613
609
|
* The provided values will be merged with the default values instead of replacing them.
|
|
614
610
|
*
|
|
615
611
|
* @public
|
|
File without changes
|
|
File without changes
|