@makeswift/runtime 0.0.0-25251c0 → 0.0.0-2efc6ab
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/actions.cjs.js +5 -0
- package/dist/actions.cjs.js.map +1 -1
- package/dist/actions.es.js +5 -1
- package/dist/actions.es.js.map +1 -1
- package/dist/components.cjs.js +8 -0
- package/dist/components.cjs.js.map +1 -1
- package/dist/components.es.js +1 -1
- package/dist/control-serialization.cjs.js +4 -1
- package/dist/control-serialization.cjs.js.map +1 -1
- package/dist/control-serialization.es.js +4 -1
- package/dist/control-serialization.es.js.map +1 -1
- package/dist/descriptors.cjs.js +1 -0
- package/dist/descriptors.cjs.js.map +1 -1
- package/dist/descriptors.es.js +1 -1
- package/dist/descriptors.es.js.map +1 -1
- package/dist/main.cjs.js +1 -0
- package/dist/main.cjs.js.map +1 -1
- package/dist/main.es.js +1 -1
- package/dist/react-builder-preview.cjs.js +3 -0
- package/dist/react-builder-preview.cjs.js.map +1 -1
- package/dist/react-builder-preview.es.js +4 -1
- package/dist/react-builder-preview.es.js.map +1 -1
- package/dist/react-page.cjs.js +1 -1
- package/dist/react-page.cjs.js.map +1 -1
- package/dist/react-page.es.js +1 -1
- package/dist/react-page.es.js.map +1 -1
- package/dist/react.cjs2.js +243 -63
- package/dist/react.cjs2.js.map +1 -1
- package/dist/react.es2.js +233 -61
- package/dist/react.es2.js.map +1 -1
- package/dist/types/api/react.d.ts +6 -1
- package/dist/types/api/react.d.ts.map +1 -1
- package/dist/types/builder/serialization/control-serialization.d.ts +17 -11
- package/dist/types/builder/serialization/control-serialization.d.ts.map +1 -1
- package/dist/types/components/builtin/Video/Video.d.ts +15 -0
- package/dist/types/components/builtin/Video/Video.d.ts.map +1 -0
- package/dist/types/components/builtin/Video/index.d.ts +2 -0
- package/dist/types/components/builtin/Video/index.d.ts.map +1 -0
- package/dist/types/components/builtin/index.d.ts.map +1 -1
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/components/index.d.ts.map +1 -1
- package/dist/types/components/utils/placeholders.d.ts +7 -0
- package/dist/types/components/utils/placeholders.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/prop-controllers/descriptors.d.ts +5 -4
- package/dist/types/prop-controllers/descriptors.d.ts.map +1 -1
- package/dist/types/prop-controllers/index.d.ts +1 -1
- package/dist/types/prop-controllers/index.d.ts.map +1 -1
- package/dist/types/runtimes/react.d.ts.map +1 -1
- package/dist/types/state/actions.d.ts +9 -1
- package/dist/types/state/actions.d.ts.map +1 -1
- package/dist/types/state/react-builder-preview.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/types/components/builtin/Form/prop-controllers.d.ts +0 -1
- package/dist/types/components/builtin/Form/prop-controllers.d.ts.map +0 -1
- package/dist/types/components/hooks/useTableWorkspace.d.ts +0 -14
- package/dist/types/components/hooks/useTableWorkspace.d.ts.map +0 -1
- package/dist/types/components/utils/layout.d.ts +0 -16
- package/dist/types/components/utils/layout.d.ts.map +0 -1
- package/dist/types/components/utils/pollAnimationFrame.d.ts +0 -2
- package/dist/types/components/utils/pollAnimationFrame.d.ts.map +0 -1
- package/dist/types/components/utils/pollElementLayout.d.ts +0 -8
- package/dist/types/components/utils/pollElementLayout.d.ts.map +0 -1
- package/dist/types/components/utils/requestBatchedAnimationFrame.d.ts +0 -4
- package/dist/types/components/utils/requestBatchedAnimationFrame.d.ts.map +0 -1
package/dist/react.cjs2.js
CHANGED
|
@@ -261,6 +261,89 @@ function ApolloProvider({
|
|
|
261
261
|
children
|
|
262
262
|
});
|
|
263
263
|
}
|
|
264
|
+
const typePolicies = {
|
|
265
|
+
Query: {
|
|
266
|
+
fields: {
|
|
267
|
+
swatches(existingData, {
|
|
268
|
+
args,
|
|
269
|
+
toReference
|
|
270
|
+
}) {
|
|
271
|
+
return existingData != null ? existingData : args == null ? void 0 : args.ids.map((id) => toReference({
|
|
272
|
+
__typename: "Swatch",
|
|
273
|
+
id
|
|
274
|
+
}));
|
|
275
|
+
},
|
|
276
|
+
file(existingData, {
|
|
277
|
+
args,
|
|
278
|
+
toReference
|
|
279
|
+
}) {
|
|
280
|
+
return existingData != null ? existingData : toReference({
|
|
281
|
+
__typename: "File",
|
|
282
|
+
id: args == null ? void 0 : args.id
|
|
283
|
+
});
|
|
284
|
+
},
|
|
285
|
+
files(existingData, {
|
|
286
|
+
args,
|
|
287
|
+
toReference
|
|
288
|
+
}) {
|
|
289
|
+
return existingData != null ? existingData : args == null ? void 0 : args.ids.map((id) => toReference({
|
|
290
|
+
__typename: "File",
|
|
291
|
+
id
|
|
292
|
+
}));
|
|
293
|
+
},
|
|
294
|
+
typographies(existingData, {
|
|
295
|
+
args,
|
|
296
|
+
toReference
|
|
297
|
+
}) {
|
|
298
|
+
return existingData != null ? existingData : args == null ? void 0 : args.ids.map((id) => toReference({
|
|
299
|
+
__typename: "Typography",
|
|
300
|
+
id
|
|
301
|
+
}));
|
|
302
|
+
},
|
|
303
|
+
pagePathnamesById(existingData, {
|
|
304
|
+
args,
|
|
305
|
+
toReference
|
|
306
|
+
}) {
|
|
307
|
+
return existingData != null ? existingData : args == null ? void 0 : args.ids.map((id) => toReference({
|
|
308
|
+
__typename: "PagePathnameSlice",
|
|
309
|
+
id
|
|
310
|
+
}));
|
|
311
|
+
},
|
|
312
|
+
globalElement(existingData, {
|
|
313
|
+
args,
|
|
314
|
+
toReference
|
|
315
|
+
}) {
|
|
316
|
+
return existingData != null ? existingData : toReference({
|
|
317
|
+
__typename: "GlobalElement",
|
|
318
|
+
id: args == null ? void 0 : args.id
|
|
319
|
+
});
|
|
320
|
+
},
|
|
321
|
+
table(existingData, {
|
|
322
|
+
args,
|
|
323
|
+
toReference
|
|
324
|
+
}) {
|
|
325
|
+
return existingData != null ? existingData : toReference({
|
|
326
|
+
__typename: "Table",
|
|
327
|
+
id: args == null ? void 0 : args.id
|
|
328
|
+
});
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
};
|
|
333
|
+
function createApolloClient({
|
|
334
|
+
uri,
|
|
335
|
+
cacheData
|
|
336
|
+
}) {
|
|
337
|
+
const cache = new client.InMemoryCache({
|
|
338
|
+
typePolicies
|
|
339
|
+
});
|
|
340
|
+
if (cacheData)
|
|
341
|
+
cache.restore(cacheData);
|
|
342
|
+
return new client.ApolloClient({
|
|
343
|
+
uri,
|
|
344
|
+
cache
|
|
345
|
+
});
|
|
346
|
+
}
|
|
264
347
|
function useBackgrounds(value) {
|
|
265
348
|
const fileIds = value == null ? [] : value.map(({ value: backgrounds }) => backgrounds.map((background) => background.type === "image" && background.payload != null ? background.payload.imageId : null).filter(isNonNullable).reduce((a, b) => a.concat(b), [])).reduce((a, b) => a.concat(b), []);
|
|
266
349
|
const swatchIds = value == null ? [] : value.map(({ value: backgrounds }) => backgrounds.map((background) => {
|
|
@@ -1107,7 +1190,7 @@ function Parallax(_g2) {
|
|
|
1107
1190
|
children: children(getProps)
|
|
1108
1191
|
}));
|
|
1109
1192
|
}
|
|
1110
|
-
const Container$
|
|
1193
|
+
const Container$d = styled__default["default"].div`
|
|
1111
1194
|
position: absolute;
|
|
1112
1195
|
top: 0;
|
|
1113
1196
|
left: 0;
|
|
@@ -1161,7 +1244,7 @@ function BackgroundVideo({
|
|
|
1161
1244
|
}, [aspectRatio, zoom]);
|
|
1162
1245
|
if (!ReactPlayer__default["default"].canPlay(url))
|
|
1163
1246
|
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {});
|
|
1164
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(Container$
|
|
1247
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(Container$d, {
|
|
1165
1248
|
ref: container,
|
|
1166
1249
|
children: [container.current && /* @__PURE__ */ jsxRuntime.jsx(ReactPlayer__default["default"], {
|
|
1167
1250
|
url,
|
|
@@ -1240,10 +1323,10 @@ const AbsoluteFill = styled__default["default"].div`
|
|
|
1240
1323
|
right: 0;
|
|
1241
1324
|
bottom: 0;
|
|
1242
1325
|
`;
|
|
1243
|
-
const Container$
|
|
1326
|
+
const Container$c = styled__default["default"](AbsoluteFill)`
|
|
1244
1327
|
border-radius: inherit;
|
|
1245
1328
|
`;
|
|
1246
|
-
const BackgroundsContainer$1 = styled__default["default"](Container$
|
|
1329
|
+
const BackgroundsContainer$1 = styled__default["default"](Container$c)`
|
|
1247
1330
|
overflow: hidden;
|
|
1248
1331
|
${(p) => cssMediaRules([p.visibility], ([visibility]) => styled.css`
|
|
1249
1332
|
display: ${visibility === true ? "block" : "none"};
|
|
@@ -1267,7 +1350,7 @@ function Backgrounds({
|
|
|
1267
1350
|
visibility,
|
|
1268
1351
|
children: [...value].reverse().map((bg) => {
|
|
1269
1352
|
if (bg.type === "color") {
|
|
1270
|
-
return /* @__PURE__ */ jsxRuntime.jsx(Container$
|
|
1353
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Container$c, {
|
|
1271
1354
|
style: {
|
|
1272
1355
|
backgroundColor: getColor(bg.payload)
|
|
1273
1356
|
}
|
|
@@ -1303,7 +1386,7 @@ function Backgrounds({
|
|
|
1303
1386
|
}
|
|
1304
1387
|
return /* @__PURE__ */ jsxRuntime.jsx(Parallax, {
|
|
1305
1388
|
strength: parallax,
|
|
1306
|
-
children: (getParallaxProps) => /* @__PURE__ */ jsxRuntime.jsx(Container$
|
|
1389
|
+
children: (getParallaxProps) => /* @__PURE__ */ jsxRuntime.jsx(Container$c, __spreadValues({}, getParallaxProps({
|
|
1307
1390
|
style: {
|
|
1308
1391
|
backgroundImage: publicUrl != null ? `url('${publicUrl}')` : void 0,
|
|
1309
1392
|
backgroundPosition,
|
|
@@ -1321,7 +1404,7 @@ function Backgrounds({
|
|
|
1321
1404
|
isRadial
|
|
1322
1405
|
} = bg.payload;
|
|
1323
1406
|
const gradient = `${getStopsStyle(stops)}`;
|
|
1324
|
-
return /* @__PURE__ */ jsxRuntime.jsx(Container$
|
|
1407
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Container$c, {
|
|
1325
1408
|
style: {
|
|
1326
1409
|
background: isRadial ? `radial-gradient(${gradient})` : `linear-gradient(${angle}rad, ${gradient})`
|
|
1327
1410
|
}
|
|
@@ -1338,7 +1421,7 @@ function Backgrounds({
|
|
|
1338
1421
|
} = bg.payload;
|
|
1339
1422
|
return /* @__PURE__ */ jsxRuntime.jsx(Parallax, {
|
|
1340
1423
|
strength: parallax,
|
|
1341
|
-
children: (getParallaxProps) => /* @__PURE__ */ jsxRuntime.jsx(Container$
|
|
1424
|
+
children: (getParallaxProps) => /* @__PURE__ */ jsxRuntime.jsx(Container$c, __spreadProps(__spreadValues({}, getParallaxProps({})), {
|
|
1342
1425
|
children: /* @__PURE__ */ jsxRuntime.jsx(BackgroundVideo, {
|
|
1343
1426
|
url,
|
|
1344
1427
|
zoom,
|
|
@@ -1534,7 +1617,7 @@ const Box = React.forwardRef(function Box2({
|
|
|
1534
1617
|
})
|
|
1535
1618
|
}, key == null ? void 0 : key.container);
|
|
1536
1619
|
});
|
|
1537
|
-
function registerComponent$
|
|
1620
|
+
function registerComponent$c(runtime) {
|
|
1538
1621
|
return runtime.registerComponent(Box, {
|
|
1539
1622
|
type: "./components/Box/index.js",
|
|
1540
1623
|
label: "Box",
|
|
@@ -2032,7 +2115,7 @@ const Button$1 = React.forwardRef(function Button2(_m, ref) {
|
|
|
2032
2115
|
children: children == null ? "Button Text" : children
|
|
2033
2116
|
}));
|
|
2034
2117
|
});
|
|
2035
|
-
function registerComponent$
|
|
2118
|
+
function registerComponent$b(runtime) {
|
|
2036
2119
|
return runtime.registerComponent(Button$1, {
|
|
2037
2120
|
type: "./components/Button/index.js",
|
|
2038
2121
|
label: "Button",
|
|
@@ -2128,6 +2211,10 @@ const placeholders = {
|
|
|
2128
2211
|
image: {
|
|
2129
2212
|
src: "data:image/svg+xml,%3Csvg width='360' height='240' viewBox='0 0 360 240' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip0)'%3E%3Cpath d='M0 0H360V240H0V0Z' fill='%23A1A8C2' fill-opacity='0.18'/%3E%3Cpath d='M260 59C260 78.33 244.33 94 225 94C205.67 94 190 78.33 190 59C190 39.67 205.67 24 225 24C244.33 24 260 39.67 260 59Z' fill='%23A1A8C2' fill-opacity='0.25'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M319 250H417L291.485 124.485C286.799 119.799 279.201 119.799 274.515 124.485L234 165L319 250Z' fill='%23A1A8C2' fill-opacity='0.25'/%3E%3Cpath d='M311 250L-89 250L102.515 58.4853C107.201 53.799 114.799 53.799 119.485 58.4853L311 250Z' fill='%23A1A8C2' fill-opacity='0.25'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0'%3E%3Cpath d='M0 0H360V240H0V0Z' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E%0A",
|
|
2130
2213
|
dimensions: { width: 360, height: 240 }
|
|
2214
|
+
},
|
|
2215
|
+
video: {
|
|
2216
|
+
src: "data:image/svg+xml,%3Csvg width='712' height='400' viewBox='0 0 712 400' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M712 0H0V400H712V0ZM356 240C378.091 240 396 222.091 396 200C396 177.909 378.091 160 356 160C333.909 160 316 177.909 316 200C316 222.091 333.909 240 356 240Z' fill='%23A1A8C2' fill-opacity='0.18'/%3E%3Cpath d='M344 216.503V183.497C344 181.95 345.681 180.989 347.014 181.773L375.069 198.276C376.384 199.049 376.384 200.951 375.069 201.724L347.014 218.227C345.681 219.011 344 218.05 344 216.503Z' fill='%23A1A8C2' fill-opacity='0.4'/%3E%3C/svg%3E%0A",
|
|
2217
|
+
dimensions: { width: 712, height: 400 }
|
|
2131
2218
|
}
|
|
2132
2219
|
};
|
|
2133
2220
|
function loadImage(src) {
|
|
@@ -2233,7 +2320,7 @@ const ImageComponent = React.forwardRef(function Image2({
|
|
|
2233
2320
|
})
|
|
2234
2321
|
});
|
|
2235
2322
|
});
|
|
2236
|
-
function registerComponent$
|
|
2323
|
+
function registerComponent$a(runtime) {
|
|
2237
2324
|
return runtime.registerComponent(ImageComponent, {
|
|
2238
2325
|
type: "./components/Image/index.js",
|
|
2239
2326
|
label: "Image",
|
|
@@ -2282,7 +2369,7 @@ const RightChevron = () => /* @__PURE__ */ jsxRuntime.jsx("svg", {
|
|
|
2282
2369
|
strokeWidth: "2"
|
|
2283
2370
|
})
|
|
2284
2371
|
});
|
|
2285
|
-
const Container$
|
|
2372
|
+
const Container$b = styled__default["default"].div`
|
|
2286
2373
|
position: relative;
|
|
2287
2374
|
height: 100%;
|
|
2288
2375
|
`;
|
|
@@ -2582,7 +2669,7 @@ const Carousel = React.forwardRef(function Carousel2({
|
|
|
2582
2669
|
break;
|
|
2583
2670
|
}
|
|
2584
2671
|
},
|
|
2585
|
-
children: [/* @__PURE__ */ jsxRuntime.jsxs(Container$
|
|
2672
|
+
children: [/* @__PURE__ */ jsxRuntime.jsxs(Container$b, {
|
|
2586
2673
|
children: [/* @__PURE__ */ jsxRuntime.jsx(ClipMask, {
|
|
2587
2674
|
children: /* @__PURE__ */ jsxRuntime.jsx(Page, __spreadProps(__spreadValues({}, bindPage()), {
|
|
2588
2675
|
animate: animation,
|
|
@@ -2658,7 +2745,7 @@ const Carousel = React.forwardRef(function Carousel2({
|
|
|
2658
2745
|
})]
|
|
2659
2746
|
});
|
|
2660
2747
|
});
|
|
2661
|
-
function registerComponent$
|
|
2748
|
+
function registerComponent$9(runtime) {
|
|
2662
2749
|
return runtime.registerComponent(Carousel, {
|
|
2663
2750
|
type: "./components/Carousel/index.js",
|
|
2664
2751
|
label: "Carousel",
|
|
@@ -2785,7 +2872,7 @@ const Segment = styled__default["default"].div`
|
|
|
2785
2872
|
flex: 1;
|
|
2786
2873
|
text-align: center;
|
|
2787
2874
|
`;
|
|
2788
|
-
const Container$
|
|
2875
|
+
const Container$a = styled__default["default"].div`
|
|
2789
2876
|
display: flex;
|
|
2790
2877
|
${cssWidth("560px")}
|
|
2791
2878
|
${cssMargin()}
|
|
@@ -3025,7 +3112,7 @@ const Countdown = React.forwardRef(function Countdown2({
|
|
|
3025
3112
|
}, 1e3);
|
|
3026
3113
|
return () => clearInterval(intervalId);
|
|
3027
3114
|
}, [date]);
|
|
3028
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(Container$
|
|
3115
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(Container$a, {
|
|
3029
3116
|
ref,
|
|
3030
3117
|
id,
|
|
3031
3118
|
width,
|
|
@@ -3074,7 +3161,7 @@ const Countdown = React.forwardRef(function Countdown2({
|
|
|
3074
3161
|
})]
|
|
3075
3162
|
});
|
|
3076
3163
|
});
|
|
3077
|
-
function registerComponent$
|
|
3164
|
+
function registerComponent$8(runtime) {
|
|
3078
3165
|
return runtime.registerComponent(Countdown, {
|
|
3079
3166
|
type: "./components/Countdown/index.js",
|
|
3080
3167
|
label: "Countdown",
|
|
@@ -3210,7 +3297,7 @@ const IE11MinHeightContainer = styled__default["default"].div`
|
|
|
3210
3297
|
${cssWidth()}
|
|
3211
3298
|
${cssMargin()}
|
|
3212
3299
|
`;
|
|
3213
|
-
const Container$
|
|
3300
|
+
const Container$9 = styled__default["default"].div`
|
|
3214
3301
|
display: flex;
|
|
3215
3302
|
flex-direction: column;
|
|
3216
3303
|
justify-content: center;
|
|
@@ -3269,7 +3356,7 @@ const Divider = React.forwardRef(function Divider2({
|
|
|
3269
3356
|
id,
|
|
3270
3357
|
width,
|
|
3271
3358
|
margin,
|
|
3272
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(Container$
|
|
3359
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Container$9, {
|
|
3273
3360
|
children: /* @__PURE__ */ jsxRuntime.jsx(Line, {
|
|
3274
3361
|
variant,
|
|
3275
3362
|
thickness,
|
|
@@ -3278,7 +3365,7 @@ const Divider = React.forwardRef(function Divider2({
|
|
|
3278
3365
|
})
|
|
3279
3366
|
});
|
|
3280
3367
|
});
|
|
3281
|
-
function registerComponent$
|
|
3368
|
+
function registerComponent$7(runtime) {
|
|
3282
3369
|
return runtime.registerComponent(Divider, {
|
|
3283
3370
|
type: "./components/Divider/index.js",
|
|
3284
3371
|
label: "Divider",
|
|
@@ -3328,7 +3415,7 @@ function registerComponent$6(runtime) {
|
|
|
3328
3415
|
}
|
|
3329
3416
|
});
|
|
3330
3417
|
}
|
|
3331
|
-
const Container$
|
|
3418
|
+
const Container$8 = styled__default["default"].div`
|
|
3332
3419
|
min-height: 15px;
|
|
3333
3420
|
${cssWidth()}
|
|
3334
3421
|
${cssMargin()}
|
|
@@ -3408,7 +3495,7 @@ const Embed = React.forwardRef(function Embed2({
|
|
|
3408
3495
|
}, [container, html]);
|
|
3409
3496
|
if (shouldRender === false)
|
|
3410
3497
|
return null;
|
|
3411
|
-
return /* @__PURE__ */ jsxRuntime.jsx(Container$
|
|
3498
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Container$8, {
|
|
3412
3499
|
ref: setContainer,
|
|
3413
3500
|
id,
|
|
3414
3501
|
margin,
|
|
@@ -3418,7 +3505,7 @@ const Embed = React.forwardRef(function Embed2({
|
|
|
3418
3505
|
}
|
|
3419
3506
|
});
|
|
3420
3507
|
});
|
|
3421
|
-
function registerComponent$
|
|
3508
|
+
function registerComponent$6(runtime) {
|
|
3422
3509
|
return runtime.registerComponent(Embed, {
|
|
3423
3510
|
type: "./components/Embed/index.js",
|
|
3424
3511
|
label: "Embed",
|
|
@@ -3640,7 +3727,7 @@ var Input$2 = React.forwardRef(function Input2(_o, ref) {
|
|
|
3640
3727
|
brandColor
|
|
3641
3728
|
}));
|
|
3642
3729
|
});
|
|
3643
|
-
const Container$
|
|
3730
|
+
const Container$7 = styled__default["default"].div`
|
|
3644
3731
|
display: flex;
|
|
3645
3732
|
flex-direction: column;
|
|
3646
3733
|
${cssWidth()};
|
|
@@ -3675,7 +3762,7 @@ var Placeholder$1 = React.forwardRef(function Placeholder3({
|
|
|
3675
3762
|
width,
|
|
3676
3763
|
margin
|
|
3677
3764
|
}, ref) {
|
|
3678
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(Container$
|
|
3765
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(Container$7, {
|
|
3679
3766
|
ref,
|
|
3680
3767
|
width,
|
|
3681
3768
|
margin,
|
|
@@ -3842,7 +3929,7 @@ function getCheckmarkColor$1({
|
|
|
3842
3929
|
l
|
|
3843
3930
|
}).alpha(a).isLight() ? "rgba(0, 0, 0, 0.7)" : "rgba(255, 255, 255, 0.95)";
|
|
3844
3931
|
}
|
|
3845
|
-
const Container$
|
|
3932
|
+
const Container$6 = styled__default["default"].div`
|
|
3846
3933
|
position: relative;
|
|
3847
3934
|
${(props) => cssMediaRules([props.size], ([size = Sizes.MEDIUM]) => styled.css`
|
|
3848
3935
|
height: ${getSizeHeight(size)}px;
|
|
@@ -3962,7 +4049,7 @@ var Checkbox = React.forwardRef(function Checkbox2(_w, ref) {
|
|
|
3962
4049
|
contrast,
|
|
3963
4050
|
brandColor
|
|
3964
4051
|
} = useFormContext();
|
|
3965
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(Container$
|
|
4052
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(Container$6, {
|
|
3966
4053
|
size,
|
|
3967
4054
|
children: [/* @__PURE__ */ jsxRuntime.jsx(HiddenCheckbox, __spreadProps(__spreadValues({}, restOfProps), {
|
|
3968
4055
|
type: "checkbox",
|
|
@@ -4105,7 +4192,7 @@ function getCheckmarkColor({
|
|
|
4105
4192
|
l
|
|
4106
4193
|
}).alpha(a).isLight() ? "rgba(0, 0, 0, 0.7)" : "rgba(255, 255, 255, 0.95)";
|
|
4107
4194
|
}
|
|
4108
|
-
const Container$
|
|
4195
|
+
const Container$5 = styled__default["default"].div`
|
|
4109
4196
|
position: relative;
|
|
4110
4197
|
${(props) => cssMediaRules([props.size], ([size = Sizes.MEDIUM]) => styled.css`
|
|
4111
4198
|
height: ${getSizeHeight(size)}px;
|
|
@@ -4218,7 +4305,7 @@ var RadioButton = React.forwardRef(function RadioButton2(_C, ref) {
|
|
|
4218
4305
|
contrast,
|
|
4219
4306
|
brandColor
|
|
4220
4307
|
} = useFormContext();
|
|
4221
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(Container$
|
|
4308
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(Container$5, {
|
|
4222
4309
|
size,
|
|
4223
4310
|
children: [/* @__PURE__ */ jsxRuntime.jsx(HiddenRadioButton, __spreadProps(__spreadValues({}, restOfProps), {
|
|
4224
4311
|
ref,
|
|
@@ -4290,7 +4377,7 @@ var TableColumnRadioButtonGroup = React.forwardRef(function TableColumnRadioButt
|
|
|
4290
4377
|
}, option.id))]
|
|
4291
4378
|
});
|
|
4292
4379
|
});
|
|
4293
|
-
const Container$
|
|
4380
|
+
const Container$4 = styled__default["default"].div`
|
|
4294
4381
|
${cssField()}
|
|
4295
4382
|
display: flex;
|
|
4296
4383
|
align-items: center;
|
|
@@ -4355,7 +4442,7 @@ var TableColumnSingleSelect = React.forwardRef(function TableColumnSingleSelect2
|
|
|
4355
4442
|
children: [!hideLabel && /* @__PURE__ */ jsxRuntime.jsx(Label$1, {
|
|
4356
4443
|
htmlFor: id,
|
|
4357
4444
|
children: label
|
|
4358
|
-
}), /* @__PURE__ */ jsxRuntime.jsxs(Container$
|
|
4445
|
+
}), /* @__PURE__ */ jsxRuntime.jsxs(Container$4, {
|
|
4359
4446
|
error,
|
|
4360
4447
|
shape,
|
|
4361
4448
|
size,
|
|
@@ -5048,7 +5135,7 @@ const Form = React.forwardRef(function Form2({
|
|
|
5048
5135
|
})
|
|
5049
5136
|
});
|
|
5050
5137
|
});
|
|
5051
|
-
function registerComponent$
|
|
5138
|
+
function registerComponent$5(runtime) {
|
|
5052
5139
|
return runtime.registerComponent(Form, {
|
|
5053
5140
|
type: "./components/Form/index.js",
|
|
5054
5141
|
label: "Form",
|
|
@@ -5608,7 +5695,7 @@ function MobileDropDownButton(_Y) {
|
|
|
5608
5695
|
const ButtonLink = styled__default["default"](Button$1)`
|
|
5609
5696
|
margin: 8px 0;
|
|
5610
5697
|
`;
|
|
5611
|
-
const Container$
|
|
5698
|
+
const Container$3 = styled__default["default"].div`
|
|
5612
5699
|
position: fixed;
|
|
5613
5700
|
flex-direction: column;
|
|
5614
5701
|
width: 100%;
|
|
@@ -5662,7 +5749,7 @@ function MobileMenu({
|
|
|
5662
5749
|
onClose = () => {
|
|
5663
5750
|
}
|
|
5664
5751
|
}) {
|
|
5665
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(Container$
|
|
5752
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(Container$3, {
|
|
5666
5753
|
animation,
|
|
5667
5754
|
backgroundColor: useColor(backgroundColor),
|
|
5668
5755
|
open,
|
|
@@ -5688,7 +5775,7 @@ function MobileMenu({
|
|
|
5688
5775
|
})]
|
|
5689
5776
|
});
|
|
5690
5777
|
}
|
|
5691
|
-
const Container$
|
|
5778
|
+
const Container$2 = styled__default["default"].nav`
|
|
5692
5779
|
display: flex;
|
|
5693
5780
|
align-items: center;
|
|
5694
5781
|
${cssWidth()}
|
|
@@ -5745,7 +5832,7 @@ const Navigation = React.forwardRef(function Navigation2({
|
|
|
5745
5832
|
margin
|
|
5746
5833
|
}, ref) {
|
|
5747
5834
|
const [isOpen, setIsOpen] = React.useState(false);
|
|
5748
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(Container$
|
|
5835
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(Container$2, {
|
|
5749
5836
|
ref,
|
|
5750
5837
|
id,
|
|
5751
5838
|
margin,
|
|
@@ -5793,7 +5880,7 @@ const Navigation = React.forwardRef(function Navigation2({
|
|
|
5793
5880
|
})]
|
|
5794
5881
|
});
|
|
5795
5882
|
});
|
|
5796
|
-
function registerComponent$
|
|
5883
|
+
function registerComponent$4(runtime) {
|
|
5797
5884
|
return runtime.registerComponent(Navigation, {
|
|
5798
5885
|
type: "./components/Navigation/index.js",
|
|
5799
5886
|
label: "Navigation",
|
|
@@ -5970,7 +6057,7 @@ const Root = React.forwardRef(function Page2({
|
|
|
5970
6057
|
})]
|
|
5971
6058
|
});
|
|
5972
6059
|
});
|
|
5973
|
-
function registerComponent$
|
|
6060
|
+
function registerComponent$3(runtime) {
|
|
5974
6061
|
return runtime.registerComponent(Root, {
|
|
5975
6062
|
type: "./components/Root/index.js",
|
|
5976
6063
|
label: "Page",
|
|
@@ -6647,7 +6734,7 @@ function SocialLinksPlaceholder({
|
|
|
6647
6734
|
}, link.id))
|
|
6648
6735
|
});
|
|
6649
6736
|
}
|
|
6650
|
-
const Container = styled__default["default"].div`
|
|
6737
|
+
const Container$1 = styled__default["default"].div`
|
|
6651
6738
|
display: flex;
|
|
6652
6739
|
flex-direction: row;
|
|
6653
6740
|
flex-wrap: wrap;
|
|
@@ -6731,7 +6818,7 @@ const SocialLinks = React.forwardRef(function SocialLinks2({
|
|
|
6731
6818
|
}, ref) {
|
|
6732
6819
|
const fillData = useColor(fill);
|
|
6733
6820
|
const backgroundColorData = useColor(backgroundColor);
|
|
6734
|
-
return /* @__PURE__ */ jsxRuntime.jsx(Container, {
|
|
6821
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Container$1, {
|
|
6735
6822
|
ref,
|
|
6736
6823
|
id,
|
|
6737
6824
|
alignment,
|
|
@@ -6767,7 +6854,7 @@ const SocialLinks = React.forwardRef(function SocialLinks2({
|
|
|
6767
6854
|
})
|
|
6768
6855
|
});
|
|
6769
6856
|
});
|
|
6770
|
-
function registerComponent$
|
|
6857
|
+
function registerComponent$2(runtime) {
|
|
6771
6858
|
return runtime.registerComponent(SocialLinks, {
|
|
6772
6859
|
type: "./components/SocialLinks/index.js",
|
|
6773
6860
|
label: "Social Links",
|
|
@@ -7304,7 +7391,7 @@ const Text = React.forwardRef(function Text2({
|
|
|
7304
7391
|
onKeyDown: handleKeyDown
|
|
7305
7392
|
});
|
|
7306
7393
|
});
|
|
7307
|
-
function registerComponent(runtime) {
|
|
7394
|
+
function registerComponent$1(runtime) {
|
|
7308
7395
|
return runtime.registerComponent(Text, {
|
|
7309
7396
|
type: "./components/Text/index.js",
|
|
7310
7397
|
label: "Text",
|
|
@@ -7382,19 +7469,103 @@ function registerComponent(runtime) {
|
|
|
7382
7469
|
}
|
|
7383
7470
|
});
|
|
7384
7471
|
}
|
|
7472
|
+
const Container = styled__default["default"].div`
|
|
7473
|
+
display: flex;
|
|
7474
|
+
flex-direction: column;
|
|
7475
|
+
overflow: hidden;
|
|
7476
|
+
${cssWidth("560px")}
|
|
7477
|
+
${cssMargin()}
|
|
7478
|
+
${cssBorderRadius()}
|
|
7479
|
+
`;
|
|
7480
|
+
const ASPECT_RATIO = 16 / 9;
|
|
7481
|
+
const Video = React.forwardRef(function Video2({
|
|
7482
|
+
id,
|
|
7483
|
+
video,
|
|
7484
|
+
width,
|
|
7485
|
+
margin,
|
|
7486
|
+
borderRadius
|
|
7487
|
+
}, ref) {
|
|
7488
|
+
const canPlayUrl = video && video.url != null && ReactPlayer__default["default"].canPlay(video.url);
|
|
7489
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Container, {
|
|
7490
|
+
ref,
|
|
7491
|
+
id,
|
|
7492
|
+
width,
|
|
7493
|
+
margin,
|
|
7494
|
+
borderRadius,
|
|
7495
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
7496
|
+
style: {
|
|
7497
|
+
position: "relative",
|
|
7498
|
+
paddingTop: `${100 / ASPECT_RATIO}%`
|
|
7499
|
+
},
|
|
7500
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
7501
|
+
style: {
|
|
7502
|
+
position: "absolute",
|
|
7503
|
+
top: 0,
|
|
7504
|
+
left: 0,
|
|
7505
|
+
right: 0,
|
|
7506
|
+
bottom: 0
|
|
7507
|
+
},
|
|
7508
|
+
children: canPlayUrl === true ? /* @__PURE__ */ jsxRuntime.jsx(ReactPlayer__default["default"], __spreadProps(__spreadValues({}, video), {
|
|
7509
|
+
width: "100%",
|
|
7510
|
+
height: "100%",
|
|
7511
|
+
config: {
|
|
7512
|
+
vimeo: {
|
|
7513
|
+
playerOptions: {
|
|
7514
|
+
background: video != null && !video.controls
|
|
7515
|
+
}
|
|
7516
|
+
},
|
|
7517
|
+
wistia: {
|
|
7518
|
+
options: {
|
|
7519
|
+
endVideoBehavior: video != null && video.loop === true ? "loop" : "default"
|
|
7520
|
+
}
|
|
7521
|
+
}
|
|
7522
|
+
}
|
|
7523
|
+
})) : /* @__PURE__ */ jsxRuntime.jsx("img", {
|
|
7524
|
+
width: "100%",
|
|
7525
|
+
src: placeholders.video.src,
|
|
7526
|
+
alt: "Video Placeholder"
|
|
7527
|
+
})
|
|
7528
|
+
})
|
|
7529
|
+
})
|
|
7530
|
+
});
|
|
7531
|
+
});
|
|
7532
|
+
function registerComponent(runtime) {
|
|
7533
|
+
return runtime.registerComponent(Video, {
|
|
7534
|
+
type: "./components/Video/index.js",
|
|
7535
|
+
label: "Video",
|
|
7536
|
+
icon: "Video40",
|
|
7537
|
+
props: {
|
|
7538
|
+
id: descriptors.ElementID(),
|
|
7539
|
+
video: descriptors.Video({
|
|
7540
|
+
preset: {
|
|
7541
|
+
controls: true
|
|
7542
|
+
}
|
|
7543
|
+
}),
|
|
7544
|
+
width: descriptors.Width({
|
|
7545
|
+
defaultValue: {
|
|
7546
|
+
value: 560,
|
|
7547
|
+
unit: "px"
|
|
7548
|
+
}
|
|
7549
|
+
}),
|
|
7550
|
+
margin: descriptors.Margin(),
|
|
7551
|
+
borderRadius: descriptors.BorderRadius()
|
|
7552
|
+
}
|
|
7553
|
+
});
|
|
7554
|
+
}
|
|
7385
7555
|
function registerBuiltinComponents(runtime) {
|
|
7386
|
-
const unregisterBoxComponent = registerComponent$
|
|
7387
|
-
const unregisterButtonComponent = registerComponent$
|
|
7388
|
-
const unregisterCarouselComponent = registerComponent$
|
|
7389
|
-
const unregisterCountdownComponent = registerComponent$
|
|
7390
|
-
const unregisterDividerComponent = registerComponent$
|
|
7391
|
-
const unregisterEmbedComponent = registerComponent$
|
|
7392
|
-
const unregisterFormComponent = registerComponent$
|
|
7393
|
-
const unregisterImageComponent = registerComponent$
|
|
7394
|
-
const unregisterNavigationComponent = registerComponent$
|
|
7395
|
-
const unregisterRootComponent = registerComponent$
|
|
7396
|
-
const unregisterSocialLinksComponent = registerComponent$
|
|
7397
|
-
const unregisterTextComponent = registerComponent(runtime);
|
|
7556
|
+
const unregisterBoxComponent = registerComponent$c(runtime);
|
|
7557
|
+
const unregisterButtonComponent = registerComponent$b(runtime);
|
|
7558
|
+
const unregisterCarouselComponent = registerComponent$9(runtime);
|
|
7559
|
+
const unregisterCountdownComponent = registerComponent$8(runtime);
|
|
7560
|
+
const unregisterDividerComponent = registerComponent$7(runtime);
|
|
7561
|
+
const unregisterEmbedComponent = registerComponent$6(runtime);
|
|
7562
|
+
const unregisterFormComponent = registerComponent$5(runtime);
|
|
7563
|
+
const unregisterImageComponent = registerComponent$a(runtime);
|
|
7564
|
+
const unregisterNavigationComponent = registerComponent$4(runtime);
|
|
7565
|
+
const unregisterRootComponent = registerComponent$3(runtime);
|
|
7566
|
+
const unregisterSocialLinksComponent = registerComponent$2(runtime);
|
|
7567
|
+
const unregisterTextComponent = registerComponent$1(runtime);
|
|
7568
|
+
const unregisterVideoComponent = registerComponent(runtime);
|
|
7398
7569
|
return () => {
|
|
7399
7570
|
unregisterBoxComponent();
|
|
7400
7571
|
unregisterButtonComponent();
|
|
@@ -7408,6 +7579,8 @@ function registerBuiltinComponents(runtime) {
|
|
|
7408
7579
|
unregisterRootComponent();
|
|
7409
7580
|
unregisterSocialLinksComponent();
|
|
7410
7581
|
unregisterTextComponent();
|
|
7582
|
+
unregisterTextComponent();
|
|
7583
|
+
unregisterVideoComponent();
|
|
7411
7584
|
};
|
|
7412
7585
|
}
|
|
7413
7586
|
const contextDefaultValue = reactPage.configureStore();
|
|
@@ -7451,16 +7624,15 @@ function RuntimeProvider({
|
|
|
7451
7624
|
registerComponents == null ? void 0 : registerComponents(runtime);
|
|
7452
7625
|
return store2;
|
|
7453
7626
|
});
|
|
7454
|
-
const [
|
|
7455
|
-
uri: makeswiftApiEndpoint
|
|
7456
|
-
cache: new client.InMemoryCache()
|
|
7627
|
+
const [client2, setClient] = React.useState(createApolloClient({
|
|
7628
|
+
uri: makeswiftApiEndpoint
|
|
7457
7629
|
}));
|
|
7458
7630
|
React.useEffect(() => {
|
|
7459
7631
|
setClient(({
|
|
7460
7632
|
cache
|
|
7461
|
-
}) =>
|
|
7633
|
+
}) => createApolloClient({
|
|
7462
7634
|
uri: makeswiftApiEndpoint,
|
|
7463
|
-
cache
|
|
7635
|
+
cacheData: cache.extract()
|
|
7464
7636
|
}));
|
|
7465
7637
|
}, [makeswiftApiEndpoint]);
|
|
7466
7638
|
React.useEffect(() => {
|
|
@@ -7479,10 +7651,10 @@ function RuntimeProvider({
|
|
|
7479
7651
|
});
|
|
7480
7652
|
setStore((store2) => ReactBuilderPreview.configureStore({
|
|
7481
7653
|
preloadedState: store2.getState(),
|
|
7482
|
-
client:
|
|
7654
|
+
client: client2
|
|
7483
7655
|
}));
|
|
7484
7656
|
}
|
|
7485
|
-
}, [
|
|
7657
|
+
}, [client2]);
|
|
7486
7658
|
React.useEffect(() => {
|
|
7487
7659
|
const isInBuilder = window.parent !== window;
|
|
7488
7660
|
if (!isInBuilder)
|
|
@@ -7507,7 +7679,7 @@ function RuntimeProvider({
|
|
|
7507
7679
|
return /* @__PURE__ */ jsxRuntime.jsx(Context.Provider, {
|
|
7508
7680
|
value: store,
|
|
7509
7681
|
children: /* @__PURE__ */ jsxRuntime.jsx(ApolloProvider, {
|
|
7510
|
-
client:
|
|
7682
|
+
client: client2,
|
|
7511
7683
|
children
|
|
7512
7684
|
})
|
|
7513
7685
|
});
|
|
@@ -7722,7 +7894,15 @@ exports.cssPadding = cssPadding;
|
|
|
7722
7894
|
exports.cssTextStyle = cssTextStyle;
|
|
7723
7895
|
exports.cssWidth = cssWidth;
|
|
7724
7896
|
exports.registerBuiltinComponents = registerBuiltinComponents;
|
|
7725
|
-
exports.registerComponent = registerComponent$
|
|
7897
|
+
exports.registerComponent = registerComponent$c;
|
|
7898
|
+
exports.useBackgrounds = useBackgrounds;
|
|
7899
|
+
exports.useBorder = useBorder;
|
|
7900
|
+
exports.useBoxShadow = useBoxShadow;
|
|
7901
|
+
exports.useColor = useColor;
|
|
7902
|
+
exports.useFile = useFile;
|
|
7726
7903
|
exports.useIsInBuilder = useIsInBuilder;
|
|
7904
|
+
exports.useMediaQuery = useMediaQuery;
|
|
7905
|
+
exports.usePage = usePage;
|
|
7727
7906
|
exports.usePageId = usePageId;
|
|
7907
|
+
exports.useTable = useTable;
|
|
7728
7908
|
//# sourceMappingURL=react.cjs2.js.map
|