@rectify-dev/core 2.0.0 → 2.0.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/dist/chunk-2FA4QXYL.js +27 -0
- package/dist/chunk-2FA4QXYL.js.map +1 -0
- package/dist/chunk-AJJIEZ7G.cjs +31 -0
- package/dist/chunk-AJJIEZ7G.cjs.map +1 -0
- package/dist/index.cjs +164 -163
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -6
- package/dist/index.js.map +1 -1
- package/dist/jsx-runtime.cjs +4 -4
- package/dist/jsx-runtime.js +1 -1
- package/dist/runtime.cjs +3 -3
- package/dist/runtime.js +1 -1
- package/package.json +4 -2
- package/dist/chunk-3ZHJJ32B.js +0 -98
- package/dist/chunk-3ZHJJ32B.js.map +0 -1
- package/dist/chunk-S5YX7TXF.cjs +0 -112
- package/dist/chunk-S5YX7TXF.cjs.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { __name
|
|
2
|
-
export { Fragment, jsx } from './chunk-
|
|
1
|
+
import { __name } from './chunk-2FA4QXYL.js';
|
|
2
|
+
export { Fragment, jsx } from './chunk-2FA4QXYL.js';
|
|
3
|
+
import { isFunction, shallowEqual, createElementFromRectifyNode, isValidRectifyElement, isArray, isPlainObject, omit, RECTIFY_FRAGMENT_TYPE, RECTIFY_TEXT_TYPE, RECTIFY_ELEMENT_TYPE } from '@rectify-dev/shared';
|
|
4
|
+
export { FC } from '@rectify-dev/shared';
|
|
3
5
|
|
|
4
6
|
// ../rectify-dom-binding/src/events/RectifyEventRegistry.ts
|
|
5
7
|
var allNativeEvents = /* @__PURE__ */ new Set();
|
|
@@ -262,8 +264,6 @@ var HostRoot = /* @__PURE__ */ Symbol.for("rectify.host_root");
|
|
|
262
264
|
var FragmentComponent = /* @__PURE__ */ Symbol.for("rectify.fragment_component");
|
|
263
265
|
var ContextProvider = /* @__PURE__ */ Symbol.for("rectify.context_provider");
|
|
264
266
|
var MemoComponent = /* @__PURE__ */ Symbol.for("rectify.memo_component");
|
|
265
|
-
|
|
266
|
-
// ../rectify-reconciler/src/RectifyFiberService.ts
|
|
267
267
|
var addFlagToFiber = /* @__PURE__ */ __name((fiber, flag) => {
|
|
268
268
|
if (hasFlagOnFiber(fiber, flag)) return;
|
|
269
269
|
fiber.flags |= flag;
|
|
@@ -473,8 +473,6 @@ var withHooks = /* @__PURE__ */ __name((wip, Component) => {
|
|
|
473
473
|
}, "NewComponent");
|
|
474
474
|
return NewComponent;
|
|
475
475
|
}, "withHooks");
|
|
476
|
-
|
|
477
|
-
// ../rectify-hook/src/RectifyHookUseState.ts
|
|
478
476
|
var getInitialState = /* @__PURE__ */ __name((initialState) => isFunction(initialState) ? initialState() : initialState, "getInitialState");
|
|
479
477
|
var getState = /* @__PURE__ */ __name((update, prevState) => isFunction(update) ? update(prevState) : update, "getState");
|
|
480
478
|
function useState(initialState) {
|