@lynx-js/react 0.123.0 → 0.123.1
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 +10 -0
- package/components/lib/DeferredListItem.d.ts +8 -2
- package/components/lib/DeferredListItem.jsx.map +1 -1
- package/components/src/DeferredListItem.tsx +7 -2
- package/package.json +4 -4
- package/refresh/dist/index.js +4 -2
- package/runtime/lib/index.d.ts +1 -0
- package/runtime/lib/index.js.map +1 -1
- package/runtime/lib/snapshot/lynx/element.d.ts +28 -5
- package/runtime/lib/snapshot/lynx/element.js +9 -5
- package/runtime/lib/snapshot/lynx/element.js.map +1 -1
- package/runtime/lib/snapshot/snapshot/list.js +8 -1
- package/runtime/lib/snapshot/snapshot/list.js.map +1 -1
- package/runtime/lib/tsconfig.tsbuildinfo +1 -1
- package/testing-library/dist/index.d.ts +2 -2
- package/testing-library/dist/pure.js +1 -1
- package/testing-library/dist/rstest-config.js +1 -1
- package/transform/dist/wasm.cjs +5 -5
- package/types/react.docs.d.ts +22 -2
- /package/testing-library/dist/{0~@rstest → 0-@rstest}/adapter-rsbuild.js +0 -0
- /package/testing-library/dist/{0~rslib-runtime.js → 0-rslib-runtime.js} +0 -0
package/types/react.docs.d.ts
CHANGED
|
@@ -82,9 +82,9 @@ export { Fragment, Suspense } from 'react';
|
|
|
82
82
|
* Legacy React APIs
|
|
83
83
|
* @see https://react.dev/reference/react/legacy
|
|
84
84
|
*/
|
|
85
|
-
export { Component, PureComponent,
|
|
85
|
+
export { Component, PureComponent, createRef, isValidElement } from 'react';
|
|
86
86
|
|
|
87
|
-
export type { ReactLynxChildren } from '../runtime/lib/index.js';
|
|
87
|
+
export type { CloneElement, CreateElement, ReactLynxChildren } from '../runtime/lib/index.js';
|
|
88
88
|
|
|
89
89
|
/**
|
|
90
90
|
* ReactLynx children utilities.
|
|
@@ -103,6 +103,26 @@ export const Children: ReactLynxChildren;
|
|
|
103
103
|
*/
|
|
104
104
|
export { createPortal } from '../runtime/lib/index.js';
|
|
105
105
|
|
|
106
|
+
/**
|
|
107
|
+
* Creates a ReactLynx element from a Lynx intrinsic element name or a
|
|
108
|
+
* component type. Lynx intrinsic elements are processed by the ReactLynx
|
|
109
|
+
* snapshot runtime.
|
|
110
|
+
*
|
|
111
|
+
* @see https://react.dev/reference/react/createElement
|
|
112
|
+
* @public
|
|
113
|
+
*/
|
|
114
|
+
export { createElement } from '../runtime/lib/index.js';
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Clones an existing ReactLynx element and applies new props through the
|
|
118
|
+
* ReactLynx runtime. Runtime-created elements and components may also receive
|
|
119
|
+
* replacement children.
|
|
120
|
+
*
|
|
121
|
+
* @see https://react.dev/reference/react/cloneElement
|
|
122
|
+
* @public
|
|
123
|
+
*/
|
|
124
|
+
export { cloneElement } from '../runtime/lib/index.js';
|
|
125
|
+
|
|
106
126
|
/**
|
|
107
127
|
* RL-defined Lynx APIs
|
|
108
128
|
*/
|
|
File without changes
|
|
File without changes
|