@makeswift/runtime 0.4.0 → 0.4.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/index.es.js
CHANGED
|
@@ -36,7 +36,7 @@ var __publicField = (obj, key, value) => {
|
|
|
36
36
|
};
|
|
37
37
|
var _c;
|
|
38
38
|
import * as React from "react";
|
|
39
|
-
import { useEffect, createContext, useContext, useState, useMemo, useRef, Children, createElement, forwardRef, memo, useLayoutEffect, useCallback, Component, useImperativeHandle } from "react";
|
|
39
|
+
import { useEffect, createContext, useContext, useState, useMemo, useRef, Children, createElement, forwardRef, memo, useLayoutEffect, useCallback, Component, useImperativeHandle, Suspense } from "react";
|
|
40
40
|
import { useSyncExternalStoreWithSelector } from "use-sync-external-store/shim/with-selector";
|
|
41
41
|
import { g as getPropControllerDescriptors, i as isElementReference, a as getElementSwatchIds, b as getFileIds, d as getTypographyIds, e as getTableIds, f as getPageIds, h as getElementChildren, j as createDocumentReference, k as getBorderSwatchIds, l as isNonNullable, m as getBoxShadowsSwatchIds, n as getResponsiveColorSwatchIds, o as getComponentPropControllerDescriptors, p as getPropControllers, q as configureStore$1, r as getDocument, s as getElementId, t as getIsInBuilder, u as copyElementTree, c as createDocument, v as getReactComponent } from "./react-page.es.js";
|
|
42
42
|
import { A as ActionTypes, f as introspectedResourcesFulfilled, g as apiResourceFulfilled, t as typographiesFulfilled, h as restoreAPIResourcesCache, j as registerDocumentEffect, k as registerComponentHandleEffect, l as mountComponentEffect, n as registerComponentEffect, o as registerReactComponentEffect } from "./actions.es.js";
|
|
@@ -1050,7 +1050,7 @@ class Document$1 extends NextDocument {
|
|
|
1050
1050
|
});
|
|
1051
1051
|
}
|
|
1052
1052
|
}
|
|
1053
|
-
const version = "0.4.
|
|
1053
|
+
const version = "0.4.1";
|
|
1054
1054
|
function isErrorWithMessage(error) {
|
|
1055
1055
|
return typeof error === "object" && error !== null && "message" in error && typeof error.message === "string";
|
|
1056
1056
|
}
|
|
@@ -3842,14 +3842,16 @@ const ElementData = memo(forwardRef(function ElementData2({
|
|
|
3842
3842
|
text: "Component not found"
|
|
3843
3843
|
});
|
|
3844
3844
|
}
|
|
3845
|
-
return /* @__PURE__ */ jsx(
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
|
|
3850
|
-
|
|
3851
|
-
|
|
3852
|
-
|
|
3845
|
+
return /* @__PURE__ */ jsx(Suspense, {
|
|
3846
|
+
children: /* @__PURE__ */ jsx(FindDomNode, {
|
|
3847
|
+
ref: setFoundDomNode,
|
|
3848
|
+
children: /* @__PURE__ */ jsx(PropsValue, {
|
|
3849
|
+
element: elementData,
|
|
3850
|
+
children: (props) => /* @__PURE__ */ createElement(Component2, __spreadProps(__spreadValues({}, props), {
|
|
3851
|
+
key: elementData.key,
|
|
3852
|
+
ref: setHandle
|
|
3853
|
+
}))
|
|
3854
|
+
})
|
|
3853
3855
|
})
|
|
3854
3856
|
});
|
|
3855
3857
|
}));
|