@makeswift/runtime 0.0.10 → 0.0.11
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/builder.cjs.js +2 -0
- package/dist/builder.cjs.js.map +1 -1
- package/dist/builder.es.js +1 -1
- package/dist/control-serialization.cjs.js +11 -3
- package/dist/control-serialization.cjs.js.map +1 -1
- package/dist/control-serialization.es.js +10 -4
- package/dist/control-serialization.es.js.map +1 -1
- package/dist/index.cjs.js +12 -13
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +12 -13
- package/dist/index.es.js.map +1 -1
- package/dist/react-builder-preview.es.js +1 -1
- package/dist/text-input.cjs.js.map +1 -1
- package/dist/text-input.es.js.map +1 -1
- package/dist/types/builder/serialization/control-serialization.d.ts +2 -0
- package/dist/types/builder/serialization/control-serialization.d.ts.map +1 -1
- package/dist/types/builder/serialization/controls/list.d.ts.map +1 -1
- package/dist/types/components/builtin/Button/Button.d.ts.map +1 -1
- package/dist/types/controls/shape.d.ts +0 -1
- package/dist/types/controls/shape.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -2136,7 +2136,8 @@ const Button$1 = forwardRef(function Button2(_m, ref) {
|
|
|
2136
2136
|
color,
|
|
2137
2137
|
textStyle,
|
|
2138
2138
|
width,
|
|
2139
|
-
margin
|
|
2139
|
+
margin,
|
|
2140
|
+
className
|
|
2140
2141
|
} = _n, restOfProps = __objRest(_n, [
|
|
2141
2142
|
"id",
|
|
2142
2143
|
"children",
|
|
@@ -2148,12 +2149,13 @@ const Button$1 = forwardRef(function Button2(_m, ref) {
|
|
|
2148
2149
|
"color",
|
|
2149
2150
|
"textStyle",
|
|
2150
2151
|
"width",
|
|
2151
|
-
"margin"
|
|
2152
|
+
"margin",
|
|
2153
|
+
"className"
|
|
2152
2154
|
]);
|
|
2153
2155
|
return /* @__PURE__ */ jsx(StyledButton$1, __spreadProps(__spreadValues({}, restOfProps), {
|
|
2154
2156
|
ref,
|
|
2155
2157
|
id,
|
|
2156
|
-
className: cx(css$1(responsiveWidth(width, "auto"))),
|
|
2158
|
+
className: cx(css$1(responsiveWidth(width, "auto")), className),
|
|
2157
2159
|
color,
|
|
2158
2160
|
link,
|
|
2159
2161
|
margin,
|
|
@@ -8242,7 +8244,7 @@ function ShapeControlValue({
|
|
|
8242
8244
|
data,
|
|
8243
8245
|
children
|
|
8244
8246
|
}) {
|
|
8245
|
-
return Object.entries(definition.config.type).
|
|
8247
|
+
return Object.entries(definition.config.type).reduceRight((renderFn, [key, controlDefinition]) => (shapeControlValue) => /* @__PURE__ */ jsx(ControlValue, {
|
|
8246
8248
|
definition: controlDefinition,
|
|
8247
8249
|
data: data == null ? void 0 : data[key],
|
|
8248
8250
|
children: (value) => renderFn(__spreadProps(__spreadValues({}, shapeControlValue), {
|
|
@@ -8388,11 +8390,9 @@ function PropsValue({
|
|
|
8388
8390
|
function suppressWarningAndFindDomNode(instance) {
|
|
8389
8391
|
const error = console.error;
|
|
8390
8392
|
console.error = (...args) => {
|
|
8391
|
-
|
|
8392
|
-
|
|
8393
|
-
|
|
8394
|
-
error.apply(console, args);
|
|
8395
|
-
}
|
|
8393
|
+
if (typeof args[0] === "string" && args[0].includes("%s is deprecated in StrictMode."))
|
|
8394
|
+
return;
|
|
8395
|
+
return error.apply(console, args);
|
|
8396
8396
|
};
|
|
8397
8397
|
const foundDomNode = findDOMNode(instance);
|
|
8398
8398
|
console.error = error;
|
|
@@ -8550,11 +8550,10 @@ function useSuppressRefWarning(ownerName) {
|
|
|
8550
8550
|
const patchedRef = useRef(false);
|
|
8551
8551
|
if (patchedRef.current === false) {
|
|
8552
8552
|
console.error = (...args) => {
|
|
8553
|
-
|
|
8554
|
-
|
|
8555
|
-
if (!text.includes("Function components cannot be given refs.") || !text.includes(`Check the render method of \`${ownerName}\`.`)) {
|
|
8556
|
-
originalErrorRef.current(...args);
|
|
8553
|
+
if (typeof args[0] === "string" && args[0].includes("Function components cannot be given refs.") && args[0].includes(`Check the render method of \`${ownerName}\`.`)) {
|
|
8554
|
+
return;
|
|
8557
8555
|
}
|
|
8556
|
+
return originalErrorRef.current(...args);
|
|
8558
8557
|
};
|
|
8559
8558
|
patchedRef.current = true;
|
|
8560
8559
|
}
|