@makeswift/runtime 0.0.0-20230206202113 → 0.0.0-20230207210847
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.cjs.js +5 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +5 -5
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1083,7 +1083,7 @@ class Document$1 extends NextDocument__default["default"] {
|
|
|
1083
1083
|
});
|
|
1084
1084
|
}
|
|
1085
1085
|
}
|
|
1086
|
-
const version = "0.0.0-
|
|
1086
|
+
const version = "0.0.0-20230207210847";
|
|
1087
1087
|
function isErrorWithMessage(error) {
|
|
1088
1088
|
return typeof error === "object" && error !== null && "message" in error && typeof error.message === "string";
|
|
1089
1089
|
}
|
|
@@ -3297,16 +3297,16 @@ const Text = forwardNextDynamicRef((patch) => dynamic__default["default"](() =>
|
|
|
3297
3297
|
return require("./index.cjs5.js");
|
|
3298
3298
|
}))));
|
|
3299
3299
|
function useRichText(data, control2) {
|
|
3300
|
-
const
|
|
3300
|
+
const textCallbackRef = React.useCallback((handle) => {
|
|
3301
3301
|
var _a;
|
|
3302
|
-
if (constants.isPropControllersHandle(
|
|
3303
|
-
(_a =
|
|
3302
|
+
if (constants.isPropControllersHandle(handle))
|
|
3303
|
+
(_a = handle == null ? void 0 : handle.setPropControllers) == null ? void 0 : _a.call(handle, control2 == null ? null : {
|
|
3304
3304
|
text: control2
|
|
3305
3305
|
});
|
|
3306
3306
|
}, [control2]);
|
|
3307
3307
|
return /* @__PURE__ */ jsxRuntime.jsx(Text, {
|
|
3308
3308
|
text: data,
|
|
3309
|
-
ref:
|
|
3309
|
+
ref: textCallbackRef
|
|
3310
3310
|
});
|
|
3311
3311
|
}
|
|
3312
3312
|
function useWidthStyle(value, descriptor) {
|