@makeswift/runtime 0.0.17 → 0.0.20
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/api.cjs.js +1 -0
- package/dist/api.cjs.js.map +1 -1
- package/dist/api.es.js +1 -0
- package/dist/api.es.js.map +1 -1
- package/dist/components.cjs.js +6 -4
- package/dist/components.cjs.js.map +1 -1
- package/dist/components.es.js +6 -4
- package/dist/components.es.js.map +1 -1
- package/dist/constants.cjs.js +10 -363
- package/dist/constants.cjs.js.map +1 -1
- package/dist/constants.es.js +1 -354
- package/dist/constants.es.js.map +1 -1
- package/dist/controls.cjs.js +5 -4
- package/dist/controls.cjs.js.map +1 -1
- package/dist/controls.es.js +2 -1
- package/dist/controls.es.js.map +1 -1
- package/dist/graphql.cjs.js +365 -0
- package/dist/graphql.cjs.js.map +1 -0
- package/dist/graphql.es.js +356 -0
- package/dist/graphql.es.js.map +1 -0
- package/dist/image.cjs.js +14 -0
- package/dist/image.cjs.js.map +1 -0
- package/dist/image.es.js +10 -0
- package/dist/image.es.js.map +1 -0
- package/dist/index.cjs.js +439 -167
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +430 -158
- package/dist/index.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 -0
- package/dist/main.es.js.map +1 -1
- package/dist/next.cjs.js +6 -4
- package/dist/next.cjs.js.map +1 -1
- package/dist/next.es.js +6 -4
- package/dist/next.es.js.map +1 -1
- package/dist/react-builder-preview.cjs.js +8 -6
- package/dist/react-builder-preview.cjs.js.map +1 -1
- package/dist/react-builder-preview.es.js +9 -7
- package/dist/react-builder-preview.es.js.map +1 -1
- package/dist/react-page.cjs.js +260 -0
- package/dist/react-page.cjs.js.map +1 -1
- package/dist/react-page.es.js +254 -1
- package/dist/react-page.es.js.map +1 -1
- package/dist/react.cjs.js +6 -4
- package/dist/react.cjs.js.map +1 -1
- package/dist/react.es.js +6 -4
- package/dist/react.es.js.map +1 -1
- package/dist/text-input.cjs.js +0 -12
- package/dist/text-input.cjs.js.map +1 -1
- package/dist/text-input.es.js +1 -9
- package/dist/text-input.es.js.map +1 -1
- package/dist/types/api/introspection.d.ts +10 -0
- package/dist/types/api/introspection.d.ts.map +1 -0
- package/dist/types/api/react.d.ts +0 -1
- package/dist/types/api/react.d.ts.map +1 -1
- package/dist/types/components/builtin/Box/Box.d.ts.map +1 -1
- package/dist/types/components/builtin/Button/Button.d.ts.map +1 -1
- package/dist/types/components/builtin/Carousel/Carousel.d.ts.map +1 -1
- package/dist/types/components/builtin/Countdown/Countdown.d.ts.map +1 -1
- package/dist/types/components/builtin/Divider/Divider.d.ts.map +1 -1
- package/dist/types/components/builtin/Embed/Embed.d.ts.map +1 -1
- package/dist/types/components/builtin/Form/Form.d.ts.map +1 -1
- package/dist/types/components/builtin/Form/components/Field/components/Checkbox/index.d.ts.map +1 -1
- package/dist/types/components/builtin/Form/components/Field/components/Input/index.d.ts +1 -1
- package/dist/types/components/builtin/Form/components/Field/components/Input/index.d.ts.map +1 -1
- package/dist/types/components/builtin/Form/components/Field/components/Label/index.d.ts.map +1 -1
- package/dist/types/components/builtin/Form/components/Field/components/PlaceholderTableField/index.d.ts.map +1 -1
- package/dist/types/components/builtin/Form/components/Field/components/RadioButton/index.d.ts.map +1 -1
- package/dist/types/components/builtin/Form/components/Field/components/SingleSelectTableField/components/TableColumnSingleSelect/index.d.ts.map +1 -1
- package/dist/types/components/builtin/Form/components/Field/components/TextArea/index.d.ts.map +1 -1
- package/dist/types/components/builtin/Form/components/Field/services/cssField.d.ts +1 -1
- package/dist/types/components/builtin/Form/components/Placeholder/index.d.ts.map +1 -1
- package/dist/types/components/builtin/Image/Image.d.ts.map +1 -1
- package/dist/types/components/builtin/Navigation/Navigation.d.ts.map +1 -1
- package/dist/types/components/builtin/Navigation/components/DropDownButton/index.d.ts.map +1 -1
- package/dist/types/components/builtin/Navigation/components/LinksPlaceholder/index.d.ts.map +1 -1
- package/dist/types/components/builtin/Navigation/components/MobileMenu/components/MobileDropDownButton/index.d.ts.map +1 -1
- package/dist/types/components/builtin/Navigation/components/MobileMenu/index.d.ts.map +1 -1
- package/dist/types/components/builtin/Root/Root.d.ts.map +1 -1
- package/dist/types/components/builtin/SocialLinks/SocialLinks.d.ts.map +1 -1
- package/dist/types/components/builtin/SocialLinks/options.d.ts +5 -0
- package/dist/types/components/builtin/SocialLinks/options.d.ts.map +1 -1
- package/dist/types/components/builtin/Text/Text.d.ts.map +1 -1
- package/dist/types/components/builtin/Video/Video.d.ts.map +1 -1
- package/dist/types/components/hooks/useIsomorphicLayoutEffect.d.ts +3 -0
- package/dist/types/components/hooks/useIsomorphicLayoutEffect.d.ts.map +1 -0
- package/dist/types/components/hooks/useMediaQuery.d.ts.map +1 -1
- package/dist/types/components/shared/BackgroundsContainer/components/BackgroundVideo/index.d.ts.map +1 -1
- package/dist/types/components/shared/BackgroundsContainer/components/Backgrounds/index.d.ts.map +1 -1
- package/dist/types/components/shared/BackgroundsContainer/components/Parallax/index.d.ts.map +1 -1
- package/dist/types/components/utils/queries.d.ts +2 -0
- package/dist/types/components/utils/queries.d.ts.map +1 -1
- package/dist/types/prop-controllers/introspection.d.ts +5 -0
- package/dist/types/prop-controllers/introspection.d.ts.map +1 -1
- package/dist/types/runtimes/react/index.d.ts +1 -1
- package/dist/types/runtimes/react/index.d.ts.map +1 -1
- package/dist/types/state/react-page.d.ts +1 -0
- package/dist/types/state/react-page.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -37,24 +37,27 @@ var __publicField = (obj, key, value) => {
|
|
|
37
37
|
var _ea;
|
|
38
38
|
var React = require("react");
|
|
39
39
|
var withSelector = require("use-sync-external-store/shim/with-selector");
|
|
40
|
-
var client = require("@apollo/client");
|
|
41
40
|
var reactPage = require("./react-page.cjs.js");
|
|
42
41
|
var actions = require("./actions.cjs.js");
|
|
43
42
|
var styled = require("styled-components");
|
|
44
43
|
var framerMotion = require("framer-motion");
|
|
45
44
|
var css = require("@emotion/css");
|
|
46
|
-
var
|
|
45
|
+
var client = require("@apollo/client");
|
|
46
|
+
var batchHttp = require("@apollo/client/link/batch-http");
|
|
47
47
|
var slate = require("slate");
|
|
48
|
-
var
|
|
48
|
+
var graphql = require("./graphql.cjs.js");
|
|
49
|
+
var shape = require("./shape.cjs.js");
|
|
50
|
+
var style = require("./style.cjs.js");
|
|
51
|
+
var descriptors = require("./descriptors.cjs.js");
|
|
49
52
|
var jsxRuntime = require("react/jsx-runtime");
|
|
50
53
|
var parse = require("html-react-parser");
|
|
51
54
|
var Head = require("next/head");
|
|
52
|
-
var descriptors = require("./descriptors.cjs.js");
|
|
53
55
|
var ColorHelper = require("color");
|
|
54
56
|
var scrollIntoView = require("scroll-into-view-if-needed");
|
|
55
57
|
var NextLink = require("next/link");
|
|
56
58
|
var reactUseGesture = require("react-use-gesture");
|
|
57
59
|
var popcorn = require("@popmotion/popcorn");
|
|
60
|
+
var uuid = require("uuid/v4");
|
|
58
61
|
var NextImage = require("next/image");
|
|
59
62
|
var formik = require("formik");
|
|
60
63
|
var boxModels = require("./box-models.cjs.js");
|
|
@@ -66,8 +69,7 @@ var isHotkey = require("is-hotkey");
|
|
|
66
69
|
var slateReact = require("slate-react");
|
|
67
70
|
var Lists = require("@convertkit/slate-lists");
|
|
68
71
|
var textInput = require("./text-input.cjs.js");
|
|
69
|
-
var
|
|
70
|
-
var style = require("./style.cjs.js");
|
|
72
|
+
var image = require("./image.cjs.js");
|
|
71
73
|
var reactDom = require("react-dom");
|
|
72
74
|
function _interopDefaultLegacy(e) {
|
|
73
75
|
return e && typeof e === "object" && "default" in e ? e : { "default": e };
|
|
@@ -94,12 +96,12 @@ function _interopNamespace(e) {
|
|
|
94
96
|
}
|
|
95
97
|
var React__namespace = /* @__PURE__ */ _interopNamespace(React);
|
|
96
98
|
var styled__default = /* @__PURE__ */ _interopDefaultLegacy(styled);
|
|
97
|
-
var uuid__default = /* @__PURE__ */ _interopDefaultLegacy(uuid);
|
|
98
99
|
var parse__default = /* @__PURE__ */ _interopDefaultLegacy(parse);
|
|
99
100
|
var Head__default = /* @__PURE__ */ _interopDefaultLegacy(Head);
|
|
100
101
|
var ColorHelper__default = /* @__PURE__ */ _interopDefaultLegacy(ColorHelper);
|
|
101
102
|
var scrollIntoView__default = /* @__PURE__ */ _interopDefaultLegacy(scrollIntoView);
|
|
102
103
|
var NextLink__default = /* @__PURE__ */ _interopDefaultLegacy(NextLink);
|
|
104
|
+
var uuid__default = /* @__PURE__ */ _interopDefaultLegacy(uuid);
|
|
103
105
|
var NextImage__default = /* @__PURE__ */ _interopDefaultLegacy(NextImage);
|
|
104
106
|
var ReactPlayer__default = /* @__PURE__ */ _interopDefaultLegacy(ReactPlayer);
|
|
105
107
|
var Hotkeys__default = /* @__PURE__ */ _interopDefaultLegacy(Hotkeys);
|
|
@@ -252,9 +254,165 @@ const TABLE_BY_ID = client.gql`
|
|
|
252
254
|
}
|
|
253
255
|
}
|
|
254
256
|
`;
|
|
257
|
+
const ELEMENT_REFERENCE_GLOBAL_ELEMENT = client.gql`
|
|
258
|
+
query ElementReferenceGlobalElement($id: ID!) {
|
|
259
|
+
globalElement(id: $id) {
|
|
260
|
+
id
|
|
261
|
+
data
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
`;
|
|
265
|
+
const INTROSPECTION_QUERY = client.gql`
|
|
266
|
+
query Introspection(
|
|
267
|
+
$swatchIds: [ID!]!
|
|
268
|
+
$fileIds: [ID!]!
|
|
269
|
+
$pageIds: [ID!]!
|
|
270
|
+
$typographyIds: [ID!]!
|
|
271
|
+
$tableIds: [ID!]!
|
|
272
|
+
) {
|
|
273
|
+
swatches(ids: $swatchIds) {
|
|
274
|
+
id
|
|
275
|
+
hue
|
|
276
|
+
saturation
|
|
277
|
+
lightness
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
files(ids: $fileIds) {
|
|
281
|
+
id
|
|
282
|
+
name
|
|
283
|
+
publicUrl
|
|
284
|
+
extension
|
|
285
|
+
dimensions {
|
|
286
|
+
width
|
|
287
|
+
height
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
pagePathnamesById(ids: $pageIds) {
|
|
292
|
+
id
|
|
293
|
+
pathname
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
typographies(ids: $typographyIds) {
|
|
297
|
+
...Typography
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
tables(ids: $tableIds) {
|
|
301
|
+
id
|
|
302
|
+
name
|
|
303
|
+
columns {
|
|
304
|
+
id
|
|
305
|
+
name
|
|
306
|
+
... on MultipleSelectTableColumn {
|
|
307
|
+
options {
|
|
308
|
+
id
|
|
309
|
+
name
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
... on SingleSelectTableColumn {
|
|
313
|
+
options {
|
|
314
|
+
id
|
|
315
|
+
name
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
${TYPOGRAPHY_FRAGMENT}
|
|
323
|
+
`;
|
|
255
324
|
function isNonNullable(value) {
|
|
256
325
|
return value != null;
|
|
257
326
|
}
|
|
327
|
+
async function introspect(element, client2, store) {
|
|
328
|
+
var _a, _b, _c;
|
|
329
|
+
const descriptors$1 = reactPage.getPropControllerDescriptors(store.getState());
|
|
330
|
+
const swatchIds = /* @__PURE__ */ new Set();
|
|
331
|
+
const fileIds = /* @__PURE__ */ new Set();
|
|
332
|
+
const typographyIds = /* @__PURE__ */ new Set();
|
|
333
|
+
const tableIds = /* @__PURE__ */ new Set();
|
|
334
|
+
const pageIds = /* @__PURE__ */ new Set();
|
|
335
|
+
const remaining = [element];
|
|
336
|
+
let current;
|
|
337
|
+
while (current = remaining.pop()) {
|
|
338
|
+
let getResourcesFromElementDescriptors = function(elementDescriptors2, props) {
|
|
339
|
+
Object.entries(elementDescriptors2).forEach(([propName, descriptor]) => {
|
|
340
|
+
reactPage.getElementSwatchIds(descriptor, props[propName]).forEach((swatchId) => {
|
|
341
|
+
swatchIds.add(swatchId);
|
|
342
|
+
});
|
|
343
|
+
reactPage.getFileIds(descriptor, props[propName]).forEach((fileId) => fileIds.add(fileId));
|
|
344
|
+
reactPage.getTypographyIds(descriptor, props[propName]).forEach((typographyId) => typographyIds.add(typographyId));
|
|
345
|
+
reactPage.getTableIds(descriptor, props[propName]).forEach((tableId) => tableIds.add(tableId));
|
|
346
|
+
reactPage.getPageIds(descriptor, props[propName]).forEach((pageId) => pageIds.add(pageId));
|
|
347
|
+
reactPage.getElementChildren(descriptor, props[propName]).forEach((child) => remaining.push(child));
|
|
348
|
+
if (descriptor.type === shape.ShapeControlType) {
|
|
349
|
+
const prop = props[propName];
|
|
350
|
+
if (prop == null)
|
|
351
|
+
return;
|
|
352
|
+
getResourcesFromElementDescriptors(descriptor.config.type, prop);
|
|
353
|
+
}
|
|
354
|
+
if (descriptor.type === shape.ListControlType) {
|
|
355
|
+
const prop = props[propName];
|
|
356
|
+
if (prop == null)
|
|
357
|
+
return;
|
|
358
|
+
prop.forEach((item) => {
|
|
359
|
+
getResourcesFromElementDescriptors({ propName: descriptor.config.type }, { propName: item.value });
|
|
360
|
+
});
|
|
361
|
+
}
|
|
362
|
+
if (descriptor.type === descriptors.Types.Shape) {
|
|
363
|
+
const prop = props[propName];
|
|
364
|
+
if (prop == null)
|
|
365
|
+
return;
|
|
366
|
+
getResourcesFromElementDescriptors(descriptor.options.type, prop);
|
|
367
|
+
}
|
|
368
|
+
if (descriptor.type === descriptors.Types.List) {
|
|
369
|
+
const prop = props[propName];
|
|
370
|
+
if (prop == null)
|
|
371
|
+
return;
|
|
372
|
+
prop.forEach((item) => {
|
|
373
|
+
getResourcesFromElementDescriptors({ propName: descriptor.options.type }, { propName: item.value });
|
|
374
|
+
});
|
|
375
|
+
}
|
|
376
|
+
});
|
|
377
|
+
};
|
|
378
|
+
let element2;
|
|
379
|
+
if (reactPage.isElementReference(current)) {
|
|
380
|
+
const query = await client2.query({
|
|
381
|
+
query: ELEMENT_REFERENCE_GLOBAL_ELEMENT,
|
|
382
|
+
variables: { id: current.value }
|
|
383
|
+
});
|
|
384
|
+
const elementData = (_b = (_a = query.data) == null ? void 0 : _a.globalElement) == null ? void 0 : _b.data;
|
|
385
|
+
if (elementData == null)
|
|
386
|
+
continue;
|
|
387
|
+
element2 = elementData;
|
|
388
|
+
} else {
|
|
389
|
+
element2 = current;
|
|
390
|
+
}
|
|
391
|
+
const elementDescriptors = descriptors$1.get(element2.type);
|
|
392
|
+
if (elementDescriptors == null)
|
|
393
|
+
continue;
|
|
394
|
+
getResourcesFromElementDescriptors(elementDescriptors, element2.props);
|
|
395
|
+
}
|
|
396
|
+
const typographiesResult = await client2.query({
|
|
397
|
+
query: TYPOGRAPHIES_BY_ID,
|
|
398
|
+
variables: { ids: [...typographyIds] }
|
|
399
|
+
});
|
|
400
|
+
(_c = typographiesResult == null ? void 0 : typographiesResult.data) == null ? void 0 : _c.typographies.forEach((typography) => {
|
|
401
|
+
typography.style.forEach((style2) => {
|
|
402
|
+
var _a2;
|
|
403
|
+
const swatchId = (_a2 = style2.value.color) == null ? void 0 : _a2.swatchId;
|
|
404
|
+
if (swatchId != null)
|
|
405
|
+
swatchIds.add(swatchId);
|
|
406
|
+
});
|
|
407
|
+
});
|
|
408
|
+
return {
|
|
409
|
+
swatchIds: [...swatchIds],
|
|
410
|
+
fileIds: [...fileIds],
|
|
411
|
+
typographyIds: [...typographyIds],
|
|
412
|
+
tableIds: [...tableIds],
|
|
413
|
+
pageIds: [...pageIds]
|
|
414
|
+
};
|
|
415
|
+
}
|
|
258
416
|
const typePolicies = {
|
|
259
417
|
Query: {
|
|
260
418
|
fields: {
|
|
@@ -342,10 +500,6 @@ const typePolicies = {
|
|
|
342
500
|
}
|
|
343
501
|
}
|
|
344
502
|
};
|
|
345
|
-
const PrefetchContext = React.createContext(false);
|
|
346
|
-
function useIsPrefetching() {
|
|
347
|
-
return React.useContext(PrefetchContext);
|
|
348
|
-
}
|
|
349
503
|
function createApolloClient({
|
|
350
504
|
uri,
|
|
351
505
|
cacheData
|
|
@@ -356,7 +510,10 @@ function createApolloClient({
|
|
|
356
510
|
if (cacheData)
|
|
357
511
|
cache.restore(cacheData);
|
|
358
512
|
return new client.ApolloClient({
|
|
359
|
-
|
|
513
|
+
link: new batchHttp.BatchHttpLink({
|
|
514
|
+
uri,
|
|
515
|
+
batchMax: 100
|
|
516
|
+
}),
|
|
360
517
|
cache
|
|
361
518
|
});
|
|
362
519
|
}
|
|
@@ -372,17 +529,20 @@ class MakeswiftClient {
|
|
|
372
529
|
});
|
|
373
530
|
}
|
|
374
531
|
async prefetch(element) {
|
|
375
|
-
const
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
532
|
+
const introspectionData = await introspect(element, this.apolloClient, storeContextDefaultValue);
|
|
533
|
+
const res = await this.apolloClient.query({
|
|
534
|
+
query: INTROSPECTION_QUERY,
|
|
535
|
+
variables: introspectionData
|
|
536
|
+
});
|
|
537
|
+
res.data.pagePathnamesById.forEach((pagePathnameSlice) => {
|
|
538
|
+
const id = Buffer.from(`Page:${pagePathnameSlice.id}`).toString("base64");
|
|
539
|
+
this.apolloClient.cache.writeFragment({
|
|
540
|
+
fragment: graphql.PagePathnameSliceFragmentDoc,
|
|
541
|
+
data: __spreadProps(__spreadValues({}, pagePathnameSlice), {
|
|
542
|
+
id
|
|
383
543
|
})
|
|
384
|
-
})
|
|
385
|
-
})
|
|
544
|
+
});
|
|
545
|
+
});
|
|
386
546
|
slate.KeyUtils.resetGenerator();
|
|
387
547
|
return this.apolloClient.cache.extract();
|
|
388
548
|
}
|
|
@@ -664,10 +824,12 @@ const getDeviceMediaQuery = (device) => {
|
|
|
664
824
|
}
|
|
665
825
|
return parts.join(" and ");
|
|
666
826
|
};
|
|
827
|
+
const isSSR = typeof window === "undefined" || /ServerSideRendering/.test(window.navigator && window.navigator.userAgent);
|
|
828
|
+
const useIsomorphicLayoutEffect = isSSR ? React.useEffect : React.useLayoutEffect;
|
|
667
829
|
function useMediaQuery(responsiveValue) {
|
|
668
830
|
const [deviceId, setDeviceId] = React.useState(DEVICES[0].id);
|
|
669
831
|
const { value } = findDeviceOverride(responsiveValue, deviceId) || {};
|
|
670
|
-
|
|
832
|
+
useIsomorphicLayoutEffect(() => {
|
|
671
833
|
if (responsiveValue == null || window == null)
|
|
672
834
|
return () => {
|
|
673
835
|
};
|
|
@@ -1182,7 +1344,7 @@ function Parallax(_g2) {
|
|
|
1182
1344
|
const container = React.useRef(null);
|
|
1183
1345
|
const [containerScrollTop, setContainerScrollTop] = React.useState(strength == null ? 0 : strength);
|
|
1184
1346
|
const lastScrollParentScrollTop = React.useRef(0);
|
|
1185
|
-
|
|
1347
|
+
useIsomorphicLayoutEffect(() => {
|
|
1186
1348
|
if (!container.current || strength == null || strength === 0)
|
|
1187
1349
|
return void 0;
|
|
1188
1350
|
const containerDocument = container.current.ownerDocument;
|
|
@@ -1296,7 +1458,7 @@ function BackgroundVideo({
|
|
|
1296
1458
|
const [ready, setReady] = React.useState(false);
|
|
1297
1459
|
const [scale, setScale] = React.useState(1);
|
|
1298
1460
|
const container = React.useRef(null);
|
|
1299
|
-
|
|
1461
|
+
useIsomorphicLayoutEffect(() => {
|
|
1300
1462
|
const {
|
|
1301
1463
|
current: containerEl
|
|
1302
1464
|
} = container;
|
|
@@ -1403,9 +1565,6 @@ const BackgroundsContainer$1 = styled__default["default"](Container$c)`
|
|
|
1403
1565
|
function Backgrounds({
|
|
1404
1566
|
backgrounds
|
|
1405
1567
|
}) {
|
|
1406
|
-
const isPrefetching = useIsPrefetching();
|
|
1407
|
-
if (isPrefetching)
|
|
1408
|
-
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {});
|
|
1409
1568
|
if (backgrounds == null)
|
|
1410
1569
|
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {});
|
|
1411
1570
|
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
@@ -1540,7 +1699,9 @@ var BackgroundsContainer = React.forwardRef(function BackgroundsContainer2(_i, r
|
|
|
1540
1699
|
}), React.Children.only(children)]
|
|
1541
1700
|
}));
|
|
1542
1701
|
});
|
|
1543
|
-
const StyledBackgroundsContainer = styled__default["default"](BackgroundsContainer)
|
|
1702
|
+
const StyledBackgroundsContainer = styled__default["default"](BackgroundsContainer).withConfig({
|
|
1703
|
+
shouldForwardProp: (prop) => !["margin", "borderRadius", "alignSelf"].includes(prop.toString())
|
|
1704
|
+
})`
|
|
1544
1705
|
display: flex;
|
|
1545
1706
|
${cssMargin()}
|
|
1546
1707
|
${cssBorderRadius()}
|
|
@@ -1548,7 +1709,9 @@ const StyledBackgroundsContainer = styled__default["default"](BackgroundsContain
|
|
|
1548
1709
|
alignSelf
|
|
1549
1710
|
}))}
|
|
1550
1711
|
`;
|
|
1551
|
-
const Grid$1 = styled__default["default"](framerMotion.motion.div)
|
|
1712
|
+
const Grid$1 = styled__default["default"](framerMotion.motion.div).withConfig({
|
|
1713
|
+
shouldForwardProp: (prop) => !["padding", "border", "boxShadow", "alignContent"].includes(prop)
|
|
1714
|
+
})`
|
|
1552
1715
|
display: flex;
|
|
1553
1716
|
flex-wrap: wrap;
|
|
1554
1717
|
width: 100%;
|
|
@@ -1559,7 +1722,9 @@ const Grid$1 = styled__default["default"](framerMotion.motion.div)`
|
|
|
1559
1722
|
alignContent
|
|
1560
1723
|
}))}
|
|
1561
1724
|
`;
|
|
1562
|
-
const GridItem$2 = styled__default["default"](framerMotion.motion.div)
|
|
1725
|
+
const GridItem$2 = styled__default["default"](framerMotion.motion.div).withConfig({
|
|
1726
|
+
shouldForwardProp: (prop) => !["grid", "alignItems", "index", "columnGap", "rowGap"].includes(prop)
|
|
1727
|
+
})`
|
|
1563
1728
|
display: flex;
|
|
1564
1729
|
|
|
1565
1730
|
/* IE11 doesn't recognize space-between and treats it as stretch, so we fall back to flex-start */
|
|
@@ -1987,7 +2152,9 @@ function responsiveWidth(widthData, defaultValue = "100%") {
|
|
|
1987
2152
|
width: typeof width === "object" ? `${width.value}${width.unit}` : width
|
|
1988
2153
|
})));
|
|
1989
2154
|
}
|
|
1990
|
-
const StyledButton$1 = styled__default["default"](Link)
|
|
2155
|
+
const StyledButton$1 = styled__default["default"](Link).withConfig({
|
|
2156
|
+
shouldForwardProp: (prop) => !["margin", "variant", "shape", "size", "textColor", "color", "textStyle"].includes(prop.toString())
|
|
2157
|
+
})`
|
|
1991
2158
|
display: table;
|
|
1992
2159
|
border: 0;
|
|
1993
2160
|
outline: 0;
|
|
@@ -2033,7 +2200,6 @@ const StyledButton$1 = styled__default["default"](Link)`
|
|
|
2033
2200
|
large: "16px 20px"
|
|
2034
2201
|
}[size]};
|
|
2035
2202
|
font-size: ${`${fontSize.value}${fontSize.unit}`};
|
|
2036
|
-
|
|
2037
2203
|
${{
|
|
2038
2204
|
flat: styled.css`
|
|
2039
2205
|
background: ${colorToString(color)};
|
|
@@ -2176,7 +2342,7 @@ const StyledButton$1 = styled__default["default"](Link)`
|
|
|
2176
2342
|
}[variant]}
|
|
2177
2343
|
`;
|
|
2178
2344
|
})}
|
|
2179
|
-
|
|
2345
|
+
${cssTextStyle()}
|
|
2180
2346
|
`;
|
|
2181
2347
|
const Button$1 = React.forwardRef(function Button2(_m, ref) {
|
|
2182
2348
|
var _n = _m, {
|
|
@@ -2331,10 +2497,10 @@ const placeholders = {
|
|
|
2331
2497
|
};
|
|
2332
2498
|
function loadImage(src) {
|
|
2333
2499
|
return new Promise((resolve, reject) => {
|
|
2334
|
-
const
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2500
|
+
const image2 = new Image();
|
|
2501
|
+
image2.onload = () => resolve(image2);
|
|
2502
|
+
image2.onerror = reject;
|
|
2503
|
+
image2.src = src;
|
|
2338
2504
|
});
|
|
2339
2505
|
}
|
|
2340
2506
|
function imageSizes(width) {
|
|
@@ -2348,7 +2514,9 @@ function imageSizes(width) {
|
|
|
2348
2514
|
return `(max-width: ${device.maxWidth}px) ${Math.min(device.maxWidth, override.value.value)}px`;
|
|
2349
2515
|
}).filter((size) => size != null).reduce((sourceSizes, sourceSize) => `${sourceSize}, ${sourceSizes}`, baseWidthSize);
|
|
2350
2516
|
}
|
|
2351
|
-
const ImageContainer = styled__default["default"].div
|
|
2517
|
+
const ImageContainer = styled__default["default"].div.withConfig({
|
|
2518
|
+
shouldForwardProp: (prop) => !["margin", "padding", "border", "borderRadius", "boxShadow", "opacity", "dimensions"].includes(prop.toString())
|
|
2519
|
+
})`
|
|
2352
2520
|
line-height: 0;
|
|
2353
2521
|
overflow: hidden;
|
|
2354
2522
|
${cssMargin()}
|
|
@@ -2385,16 +2553,15 @@ const ImageComponent = React.forwardRef(function Image2({
|
|
|
2385
2553
|
const dataDimensions = (fileData == null ? void 0 : fileData.publicUrl) ? fileData == null ? void 0 : fileData.dimensions : placeholder2.dimensions;
|
|
2386
2554
|
const [measuredDimensions, setMeasuredDimensions] = React.useState(null);
|
|
2387
2555
|
const isInBuilder = useIsInBuilder();
|
|
2388
|
-
const isPrefetching = useIsPrefetching();
|
|
2389
2556
|
React.useEffect(() => {
|
|
2390
2557
|
if (dataDimensions)
|
|
2391
2558
|
return;
|
|
2392
2559
|
let cleanedUp = false;
|
|
2393
|
-
loadImage(imageSrc).then((
|
|
2560
|
+
loadImage(imageSrc).then((image2) => {
|
|
2394
2561
|
if (!cleanedUp) {
|
|
2395
2562
|
setMeasuredDimensions({
|
|
2396
|
-
width:
|
|
2397
|
-
height:
|
|
2563
|
+
width: image2.naturalWidth,
|
|
2564
|
+
height: image2.naturalHeight
|
|
2398
2565
|
});
|
|
2399
2566
|
}
|
|
2400
2567
|
}).catch(console.error);
|
|
@@ -2406,8 +2573,6 @@ const ImageComponent = React.forwardRef(function Image2({
|
|
|
2406
2573
|
if (!dimensions)
|
|
2407
2574
|
return null;
|
|
2408
2575
|
const widthClass = css.css(responsiveWidth(width, `${dimensions.width}px`));
|
|
2409
|
-
if (isPrefetching)
|
|
2410
|
-
return null;
|
|
2411
2576
|
return /* @__PURE__ */ jsxRuntime.jsx(ImageContainer, {
|
|
2412
2577
|
as: link ? Link : "div",
|
|
2413
2578
|
link,
|
|
@@ -2486,7 +2651,9 @@ const Container$b = styled__default["default"].div`
|
|
|
2486
2651
|
position: relative;
|
|
2487
2652
|
height: 100%;
|
|
2488
2653
|
`;
|
|
2489
|
-
const Wrapper = styled__default["default"].div
|
|
2654
|
+
const Wrapper = styled__default["default"].div.withConfig({
|
|
2655
|
+
shouldForwardProp: (prop) => !["margin"].includes(prop)
|
|
2656
|
+
})`
|
|
2490
2657
|
position: relative;
|
|
2491
2658
|
display: flex;
|
|
2492
2659
|
flex-direction: column;
|
|
@@ -2496,7 +2663,9 @@ const Wrapper = styled__default["default"].div`
|
|
|
2496
2663
|
outline: 0;
|
|
2497
2664
|
}
|
|
2498
2665
|
`;
|
|
2499
|
-
const Arrow = styled__default["default"].div
|
|
2666
|
+
const Arrow = styled__default["default"].div.withConfig({
|
|
2667
|
+
shouldForwardProp: (prop) => !["background"].includes(prop)
|
|
2668
|
+
})`
|
|
2500
2669
|
padding: 10px;
|
|
2501
2670
|
border-radius: 50%;
|
|
2502
2671
|
outline: 0;
|
|
@@ -2524,7 +2693,9 @@ const Arrow = styled__default["default"].div`
|
|
|
2524
2693
|
stroke: currentColor;
|
|
2525
2694
|
}
|
|
2526
2695
|
`;
|
|
2527
|
-
const Slop = styled__default["default"].div
|
|
2696
|
+
const Slop = styled__default["default"].div.withConfig({
|
|
2697
|
+
shouldForwardProp: (prop) => !["color"].includes(prop)
|
|
2698
|
+
})`
|
|
2528
2699
|
position: absolute;
|
|
2529
2700
|
top: 0;
|
|
2530
2701
|
bottom: 0;
|
|
@@ -2543,7 +2714,9 @@ const Slop = styled__default["default"].div`
|
|
|
2543
2714
|
color: ${colorToString(color)};
|
|
2544
2715
|
`)}
|
|
2545
2716
|
`;
|
|
2546
|
-
const Slide = styled__default["default"](framerMotion.motion.div)
|
|
2717
|
+
const Slide = styled__default["default"](framerMotion.motion.div).withConfig({
|
|
2718
|
+
shouldForwardProp: (prop) => !["pageSize", "alignItems"].includes(prop)
|
|
2719
|
+
})`
|
|
2547
2720
|
display: flex;
|
|
2548
2721
|
${(p) => cssMediaRules([p.pageSize], ([pageSize = 1]) => styled.css`
|
|
2549
2722
|
flex-basis: ${100 / pageSize}%;
|
|
@@ -2555,7 +2728,9 @@ const Slide = styled__default["default"](framerMotion.motion.div)`
|
|
|
2555
2728
|
alignItems
|
|
2556
2729
|
}))}
|
|
2557
2730
|
`;
|
|
2558
|
-
const Reel = styled__default["default"](framerMotion.motion.div)
|
|
2731
|
+
const Reel = styled__default["default"](framerMotion.motion.div).withConfig({
|
|
2732
|
+
shouldForwardProp: (prop) => !["gap"].includes(prop)
|
|
2733
|
+
})`
|
|
2559
2734
|
display: flex;
|
|
2560
2735
|
position: relative;
|
|
2561
2736
|
flex-wrap: nowrap;
|
|
@@ -2574,7 +2749,9 @@ const Page$1 = styled__default["default"](framerMotion.motion.div)`
|
|
|
2574
2749
|
position: relative;
|
|
2575
2750
|
width: 100%;
|
|
2576
2751
|
`;
|
|
2577
|
-
const LeftSlop = styled__default["default"](Slop)
|
|
2752
|
+
const LeftSlop = styled__default["default"](Slop).withConfig({
|
|
2753
|
+
shouldForwardProp: (prop) => !["position"].includes(prop)
|
|
2754
|
+
})`
|
|
2578
2755
|
${(p) => cssMediaRules([p.position], ([position = "inside"]) => {
|
|
2579
2756
|
switch (position) {
|
|
2580
2757
|
case "inside":
|
|
@@ -2599,7 +2776,9 @@ const LeftSlop = styled__default["default"](Slop)`
|
|
|
2599
2776
|
}
|
|
2600
2777
|
}
|
|
2601
2778
|
`;
|
|
2602
|
-
const RightSlop = styled__default["default"](Slop)
|
|
2779
|
+
const RightSlop = styled__default["default"](Slop).withConfig({
|
|
2780
|
+
shouldForwardProp: (prop) => !["position"].includes(prop)
|
|
2781
|
+
})`
|
|
2603
2782
|
${(p) => cssMediaRules([p.position], ([position = "inside"]) => {
|
|
2604
2783
|
switch (position) {
|
|
2605
2784
|
case "inside":
|
|
@@ -2627,7 +2806,9 @@ const RightSlop = styled__default["default"](Slop)`
|
|
|
2627
2806
|
const ClipMask = styled__default["default"].div`
|
|
2628
2807
|
overflow: hidden;
|
|
2629
2808
|
`;
|
|
2630
|
-
const Dots = styled__default["default"].div
|
|
2809
|
+
const Dots = styled__default["default"].div.withConfig({
|
|
2810
|
+
shouldForwardProp: (prop) => !["color"].includes(prop)
|
|
2811
|
+
})`
|
|
2631
2812
|
display: ${(props) => props.hidden ? "none" : "flex"};
|
|
2632
2813
|
justify-content: center;
|
|
2633
2814
|
margin-top: 20px;
|
|
@@ -2642,7 +2823,9 @@ const Dots = styled__default["default"].div`
|
|
|
2642
2823
|
color: ${colorToString(color)};
|
|
2643
2824
|
`)}
|
|
2644
2825
|
`;
|
|
2645
|
-
const Dot = styled__default["default"].div
|
|
2826
|
+
const Dot = styled__default["default"].div.withConfig({
|
|
2827
|
+
shouldForwardProp: (prop) => !["active"].includes(prop)
|
|
2828
|
+
})`
|
|
2646
2829
|
position: relative;
|
|
2647
2830
|
margin: 0 6px;
|
|
2648
2831
|
border-radius: 50%;
|
|
@@ -3002,7 +3185,9 @@ const Segment = styled__default["default"].div`
|
|
|
3002
3185
|
flex: 1;
|
|
3003
3186
|
text-align: center;
|
|
3004
3187
|
`;
|
|
3005
|
-
const Container$a = styled__default["default"].div
|
|
3188
|
+
const Container$a = styled__default["default"].div.withConfig({
|
|
3189
|
+
shouldForwardProp: (prop) => !["margin", "variant", "size", "shape", "gap", "labelColor", "numberFont", "numberColor", "blockColor", "labelFont"].includes(prop)
|
|
3190
|
+
})`
|
|
3006
3191
|
display: flex;
|
|
3007
3192
|
${cssMargin()}
|
|
3008
3193
|
${(p) => cssMediaRules([p.size], ([size = "medium"]) => {
|
|
@@ -3098,7 +3283,7 @@ const Container$a = styled__default["default"].div`
|
|
|
3098
3283
|
z-index: 1;
|
|
3099
3284
|
}
|
|
3100
3285
|
|
|
3101
|
-
|
|
3286
|
+
::before {
|
|
3102
3287
|
content: '';
|
|
3103
3288
|
position: absolute;
|
|
3104
3289
|
top: 0;
|
|
@@ -3110,7 +3295,7 @@ const Container$a = styled__default["default"].div`
|
|
|
3110
3295
|
background: ${colorToString(blockColor)};
|
|
3111
3296
|
}
|
|
3112
3297
|
|
|
3113
|
-
|
|
3298
|
+
::after {
|
|
3114
3299
|
content: '';
|
|
3115
3300
|
position: absolute;
|
|
3116
3301
|
left: 0;
|
|
@@ -3141,7 +3326,7 @@ const Container$a = styled__default["default"].div`
|
|
|
3141
3326
|
z-index: 1;
|
|
3142
3327
|
}
|
|
3143
3328
|
|
|
3144
|
-
|
|
3329
|
+
::before {
|
|
3145
3330
|
content: '';
|
|
3146
3331
|
position: absolute;
|
|
3147
3332
|
top: 50%;
|
|
@@ -3421,7 +3606,9 @@ function registerComponent$8(runtime) {
|
|
|
3421
3606
|
}
|
|
3422
3607
|
});
|
|
3423
3608
|
}
|
|
3424
|
-
const IE11MinHeightContainer = styled__default["default"].div
|
|
3609
|
+
const IE11MinHeightContainer = styled__default["default"].div.withConfig({
|
|
3610
|
+
shouldForwardProp: (prop) => !["margin"].includes(prop)
|
|
3611
|
+
})`
|
|
3425
3612
|
display: flex;
|
|
3426
3613
|
width: 100%;
|
|
3427
3614
|
${cssMargin()}
|
|
@@ -3433,7 +3620,9 @@ const Container$9 = styled__default["default"].div`
|
|
|
3433
3620
|
min-height: 40px;
|
|
3434
3621
|
width: 100%;
|
|
3435
3622
|
`;
|
|
3436
|
-
const Line = styled__default["default"].div
|
|
3623
|
+
const Line = styled__default["default"].div.withConfig({
|
|
3624
|
+
shouldForwardProp: (prop) => !["variant", "color", "thickness"].includes(prop)
|
|
3625
|
+
})`
|
|
3437
3626
|
${(p) => cssMediaRules([p.variant, p.thickness, p.color], ([variant = "solid", thickness = {
|
|
3438
3627
|
value: 1,
|
|
3439
3628
|
unit: "px"
|
|
@@ -3545,7 +3734,9 @@ function registerComponent$7(runtime) {
|
|
|
3545
3734
|
}
|
|
3546
3735
|
});
|
|
3547
3736
|
}
|
|
3548
|
-
const Container$8 = styled__default["default"].div
|
|
3737
|
+
const Container$8 = styled__default["default"].div.withConfig({
|
|
3738
|
+
shouldForwardProp: (prop) => !["margin"].includes(prop)
|
|
3739
|
+
})`
|
|
3549
3740
|
min-height: 15px;
|
|
3550
3741
|
${cssMargin()}
|
|
3551
3742
|
`;
|
|
@@ -3581,7 +3772,7 @@ const Embed = React.forwardRef(function Embed2({
|
|
|
3581
3772
|
}, ref) {
|
|
3582
3773
|
const [container, setContainer] = React.useState(null);
|
|
3583
3774
|
const [shouldRender, setShouldRender] = React.useState(false);
|
|
3584
|
-
|
|
3775
|
+
useIsomorphicLayoutEffect(() => {
|
|
3585
3776
|
setShouldRender(true);
|
|
3586
3777
|
}, []);
|
|
3587
3778
|
React.useImperativeHandle(ref, () => container, [container]);
|
|
@@ -3652,9 +3843,9 @@ function registerComponent$6(runtime) {
|
|
|
3652
3843
|
}
|
|
3653
3844
|
});
|
|
3654
3845
|
}
|
|
3655
|
-
var _path$
|
|
3656
|
-
function _extends$
|
|
3657
|
-
_extends$
|
|
3846
|
+
var _path$u;
|
|
3847
|
+
function _extends$v() {
|
|
3848
|
+
_extends$v = Object.assign || function(target) {
|
|
3658
3849
|
for (var i = 1; i < arguments.length; i++) {
|
|
3659
3850
|
var source = arguments[i];
|
|
3660
3851
|
for (var key in source) {
|
|
@@ -3665,15 +3856,15 @@ function _extends$u() {
|
|
|
3665
3856
|
}
|
|
3666
3857
|
return target;
|
|
3667
3858
|
};
|
|
3668
|
-
return _extends$
|
|
3859
|
+
return _extends$v.apply(this, arguments);
|
|
3669
3860
|
}
|
|
3670
3861
|
var SvgCheck12 = function SvgCheck122(props) {
|
|
3671
|
-
return /* @__PURE__ */ React__namespace.createElement("svg", _extends$
|
|
3862
|
+
return /* @__PURE__ */ React__namespace.createElement("svg", _extends$v({
|
|
3672
3863
|
width: 12,
|
|
3673
3864
|
height: 12,
|
|
3674
3865
|
viewBox: "0 0 12 12",
|
|
3675
3866
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3676
|
-
}, props), _path$
|
|
3867
|
+
}, props), _path$u || (_path$u = /* @__PURE__ */ React__namespace.createElement("path", {
|
|
3677
3868
|
fillRule: "evenodd",
|
|
3678
3869
|
clipRule: "evenodd",
|
|
3679
3870
|
d: "M11.7071 1.79289C12.0976 2.18342 12.0976 2.81658 11.7071 3.20711L4.70711 10.2071C4.31658 10.5976 3.68342 10.5976 3.29289 10.2071L0.292893 7.20711C-0.0976311 6.81658 -0.0976311 6.18342 0.292893 5.79289C0.683417 5.40237 1.31658 5.40237 1.70711 5.79289L4 8.08579L10.2929 1.79289C10.6834 1.40237 11.3166 1.40237 11.7071 1.79289Z"
|
|
@@ -3829,7 +4020,9 @@ function getSizeHeight$1(size) {
|
|
|
3829
4020
|
throw new Error(`Invalid form size "${size}"`);
|
|
3830
4021
|
}
|
|
3831
4022
|
}
|
|
3832
|
-
const Base$2 = styled__default["default"].input
|
|
4023
|
+
const Base$2 = styled__default["default"].input.withConfig({
|
|
4024
|
+
shouldForwardProp: (prop, defaultValidator) => !["shape", "size", "contrast", "brandColor", "error"].includes(prop.toString()) && defaultValidator(prop)
|
|
4025
|
+
})`
|
|
3833
4026
|
${cssField()}
|
|
3834
4027
|
${(props) => cssMediaRules([props.size], ([size = Sizes.MEDIUM]) => styled.css`
|
|
3835
4028
|
min-height: ${getSizeHeight$1(size)}px;
|
|
@@ -3859,7 +4052,9 @@ var Input$2 = React.forwardRef(function Input2(_o, ref) {
|
|
|
3859
4052
|
brandColor
|
|
3860
4053
|
}));
|
|
3861
4054
|
});
|
|
3862
|
-
const Container$7 = styled__default["default"].div
|
|
4055
|
+
const Container$7 = styled__default["default"].div.withConfig({
|
|
4056
|
+
shouldForwardProp: (prop) => !["width", "margin"].includes(prop.toString())
|
|
4057
|
+
})`
|
|
3863
4058
|
display: flex;
|
|
3864
4059
|
flex-direction: column;
|
|
3865
4060
|
${cssMargin()};
|
|
@@ -3943,7 +4138,9 @@ function getContrastColor(contrast) {
|
|
|
3943
4138
|
throw new Error(`Invalid form contrast "${contrast}"`);
|
|
3944
4139
|
}
|
|
3945
4140
|
}
|
|
3946
|
-
const Base$1 = styled__default["default"].label
|
|
4141
|
+
const Base$1 = styled__default["default"].label.withConfig({
|
|
4142
|
+
shouldForwardProp: (prop, defaultValidator) => !["contrast", "size", "textStyle", "textColor"].includes(prop.toString()) && defaultValidator(prop)
|
|
4143
|
+
})`
|
|
3947
4144
|
display: block;
|
|
3948
4145
|
margin: 0 0 0.25em 0;
|
|
3949
4146
|
${cssTextStyle()}
|
|
@@ -3994,7 +4191,9 @@ var SingleLineTextTableField = React.forwardRef(function SingleLineTextTableFiel
|
|
|
3994
4191
|
}))]
|
|
3995
4192
|
});
|
|
3996
4193
|
});
|
|
3997
|
-
const Base = styled__default["default"].textarea
|
|
4194
|
+
const Base = styled__default["default"].textarea.withConfig({
|
|
4195
|
+
shouldForwardProp: (prop, defaultValidator) => !["error", "shape", "size", "contrast", "brandColor"].includes(prop.toString()) && defaultValidator(prop)
|
|
4196
|
+
})`
|
|
3998
4197
|
resize: vertical;
|
|
3999
4198
|
${cssField()}
|
|
4000
4199
|
`;
|
|
@@ -4060,14 +4259,18 @@ function getCheckmarkColor$1({
|
|
|
4060
4259
|
l
|
|
4061
4260
|
}).alpha(a).isLight() ? "rgba(0, 0, 0, 0.7)" : "rgba(255, 255, 255, 0.95)";
|
|
4062
4261
|
}
|
|
4063
|
-
const Container$6 = styled__default["default"].div
|
|
4262
|
+
const Container$6 = styled__default["default"].div.withConfig({
|
|
4263
|
+
shouldForwardProp: (prop) => !["size"].includes(prop)
|
|
4264
|
+
})`
|
|
4064
4265
|
position: relative;
|
|
4065
4266
|
${(props) => cssMediaRules([props.size], ([size = Sizes.MEDIUM]) => styled.css`
|
|
4066
4267
|
height: ${getSizeHeight(size)}px;
|
|
4067
4268
|
width: ${getSizeHeight(size)}px;
|
|
4068
4269
|
`)}
|
|
4069
4270
|
`;
|
|
4070
|
-
const FakeCheckbox = styled__default["default"].div
|
|
4271
|
+
const FakeCheckbox = styled__default["default"].div.withConfig({
|
|
4272
|
+
shouldForwardProp: (prop) => !["contrast", "error"].includes(prop)
|
|
4273
|
+
})`
|
|
4071
4274
|
position: absolute;
|
|
4072
4275
|
width: 100%;
|
|
4073
4276
|
height: 100%;
|
|
@@ -4080,7 +4283,9 @@ const FakeCheckbox = styled__default["default"].div`
|
|
|
4080
4283
|
background-color: ${getContrastBackgroundColor(contrast)};
|
|
4081
4284
|
`)}
|
|
4082
4285
|
`;
|
|
4083
|
-
const HiddenCheckbox = styled__default["default"].input
|
|
4286
|
+
const HiddenCheckbox = styled__default["default"].input.withConfig({
|
|
4287
|
+
shouldForwardProp: (prop, defaultValidator) => !["size", "brandColor", "contrast", "error"].includes(prop) && defaultValidator(prop)
|
|
4288
|
+
})`
|
|
4084
4289
|
position: absolute;
|
|
4085
4290
|
opacity: 0;
|
|
4086
4291
|
width: 100%;
|
|
@@ -4323,14 +4528,18 @@ function getCheckmarkColor({
|
|
|
4323
4528
|
l
|
|
4324
4529
|
}).alpha(a).isLight() ? "rgba(0, 0, 0, 0.7)" : "rgba(255, 255, 255, 0.95)";
|
|
4325
4530
|
}
|
|
4326
|
-
const Container$5 = styled__default["default"].div
|
|
4531
|
+
const Container$5 = styled__default["default"].div.withConfig({
|
|
4532
|
+
shouldForwardProp: (prop) => !["size"].includes(prop.toString())
|
|
4533
|
+
})`
|
|
4327
4534
|
position: relative;
|
|
4328
4535
|
${(props) => cssMediaRules([props.size], ([size = Sizes.MEDIUM]) => styled.css`
|
|
4329
4536
|
height: ${getSizeHeight(size)}px;
|
|
4330
4537
|
width: ${getSizeHeight(size)}px;
|
|
4331
4538
|
`)}
|
|
4332
4539
|
`;
|
|
4333
|
-
const FakeRadioButton = styled__default["default"].div
|
|
4540
|
+
const FakeRadioButton = styled__default["default"].div.withConfig({
|
|
4541
|
+
shouldForwardProp: (prop) => !["contrast", "error"].includes(prop.toString())
|
|
4542
|
+
})`
|
|
4334
4543
|
position: absolute;
|
|
4335
4544
|
width: 100%;
|
|
4336
4545
|
height: 100%;
|
|
@@ -4343,7 +4552,9 @@ const FakeRadioButton = styled__default["default"].div`
|
|
|
4343
4552
|
background-color: ${getContrastBackgroundColor(contrast)};
|
|
4344
4553
|
`)}
|
|
4345
4554
|
`;
|
|
4346
|
-
const HiddenRadioButton = styled__default["default"].input.
|
|
4555
|
+
const HiddenRadioButton = styled__default["default"].input.withConfig({
|
|
4556
|
+
shouldForwardProp: (prop) => !["brandColor", "contrast", "error"].includes(prop.toString())
|
|
4557
|
+
}).attrs({
|
|
4347
4558
|
type: "radio"
|
|
4348
4559
|
})`
|
|
4349
4560
|
position: absolute;
|
|
@@ -4508,7 +4719,9 @@ var TableColumnRadioButtonGroup = React.forwardRef(function TableColumnRadioButt
|
|
|
4508
4719
|
}, option.id))]
|
|
4509
4720
|
});
|
|
4510
4721
|
});
|
|
4511
|
-
const Container$4 = styled__default["default"].div
|
|
4722
|
+
const Container$4 = styled__default["default"].div.withConfig({
|
|
4723
|
+
shouldForwardProp: (prop) => !["error", "shape", "size", "contrast", "brandColor"].includes(prop.toString())
|
|
4724
|
+
})`
|
|
4512
4725
|
${cssField()}
|
|
4513
4726
|
display: flex;
|
|
4514
4727
|
align-items: center;
|
|
@@ -4721,7 +4934,9 @@ var NumberTableField = React.forwardRef(function NumberTableField2(_Q, ref) {
|
|
|
4721
4934
|
}))]
|
|
4722
4935
|
});
|
|
4723
4936
|
});
|
|
4724
|
-
const Label = styled__default["default"].div
|
|
4937
|
+
const Label = styled__default["default"].div.withConfig({
|
|
4938
|
+
shouldForwardProp: (prop) => !["size"].includes(prop.toString())
|
|
4939
|
+
})`
|
|
4725
4940
|
display: block;
|
|
4726
4941
|
max-width: 120px;
|
|
4727
4942
|
min-width: 60px;
|
|
@@ -4734,7 +4949,9 @@ const Label = styled__default["default"].div`
|
|
|
4734
4949
|
max-height: ${0.5 * getSizeHeight(size)}px;
|
|
4735
4950
|
`)}
|
|
4736
4951
|
`;
|
|
4737
|
-
const Input = styled__default["default"].div
|
|
4952
|
+
const Input = styled__default["default"].div.withConfig({
|
|
4953
|
+
shouldForwardProp: (prop) => !["shape", "size"].includes(prop.toString())
|
|
4954
|
+
})`
|
|
4738
4955
|
display: block;
|
|
4739
4956
|
width: 100%;
|
|
4740
4957
|
border-width: 2px;
|
|
@@ -4855,8 +5072,8 @@ function Field({
|
|
|
4855
5072
|
});
|
|
4856
5073
|
}
|
|
4857
5074
|
var _g;
|
|
4858
|
-
function _extends$
|
|
4859
|
-
_extends$
|
|
5075
|
+
function _extends$u() {
|
|
5076
|
+
_extends$u = Object.assign || function(target) {
|
|
4860
5077
|
for (var i = 1; i < arguments.length; i++) {
|
|
4861
5078
|
var source = arguments[i];
|
|
4862
5079
|
for (var key in source) {
|
|
@@ -4867,10 +5084,10 @@ function _extends$t() {
|
|
|
4867
5084
|
}
|
|
4868
5085
|
return target;
|
|
4869
5086
|
};
|
|
4870
|
-
return _extends$
|
|
5087
|
+
return _extends$u.apply(this, arguments);
|
|
4871
5088
|
}
|
|
4872
5089
|
var SvgSpinner20 = function SvgSpinner202(props) {
|
|
4873
|
-
return /* @__PURE__ */ React__namespace.createElement("svg", _extends$
|
|
5090
|
+
return /* @__PURE__ */ React__namespace.createElement("svg", _extends$u({
|
|
4874
5091
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4875
5092
|
width: 20,
|
|
4876
5093
|
height: 20
|
|
@@ -4952,7 +5169,9 @@ const Alignments = {
|
|
|
4952
5169
|
CENTER: "center",
|
|
4953
5170
|
RIGHT: "right"
|
|
4954
5171
|
};
|
|
4955
|
-
const GridForm = styled__default["default"].form
|
|
5172
|
+
const GridForm = styled__default["default"].form.withConfig({
|
|
5173
|
+
shouldForwardProp: (prop) => !["size", "width", "margin"].includes(prop)
|
|
5174
|
+
})`
|
|
4956
5175
|
display: flex;
|
|
4957
5176
|
flex-wrap: wrap;
|
|
4958
5177
|
width: 100%;
|
|
@@ -4961,7 +5180,9 @@ const GridForm = styled__default["default"].form`
|
|
|
4961
5180
|
`)}
|
|
4962
5181
|
${cssMargin()}
|
|
4963
5182
|
`;
|
|
4964
|
-
const GridItem$1 = styled__default["default"].div
|
|
5183
|
+
const GridItem$1 = styled__default["default"].div.withConfig({
|
|
5184
|
+
shouldForwardProp: (prop) => !["grid", "index", "rowGap", "columnGap"].includes(prop)
|
|
5185
|
+
})`
|
|
4965
5186
|
align-self: flex-end;
|
|
4966
5187
|
flex-direction: column;
|
|
4967
5188
|
${cssGridItem()}
|
|
@@ -4978,7 +5199,9 @@ function getAlignmentMargin(alignment) {
|
|
|
4978
5199
|
}
|
|
4979
5200
|
const StyledButton = styled__default["default"]((props) => /* @__PURE__ */ jsxRuntime.jsx(Button$1, __spreadProps(__spreadValues({}, props), {
|
|
4980
5201
|
as: "button"
|
|
4981
|
-
})))
|
|
5202
|
+
}))).withConfig({
|
|
5203
|
+
shouldForwardProp: (prop) => !["alignment"].includes(prop.toString())
|
|
5204
|
+
})`
|
|
4982
5205
|
display: flex;
|
|
4983
5206
|
align-items: center;
|
|
4984
5207
|
justify-content: center;
|
|
@@ -5448,9 +5671,9 @@ function registerComponent$5(runtime) {
|
|
|
5448
5671
|
}
|
|
5449
5672
|
});
|
|
5450
5673
|
}
|
|
5451
|
-
var _path$
|
|
5452
|
-
function _extends$
|
|
5453
|
-
_extends$
|
|
5674
|
+
var _path$t;
|
|
5675
|
+
function _extends$t() {
|
|
5676
|
+
_extends$t = Object.assign || function(target) {
|
|
5454
5677
|
for (var i = 1; i < arguments.length; i++) {
|
|
5455
5678
|
var source = arguments[i];
|
|
5456
5679
|
for (var key in source) {
|
|
@@ -5461,14 +5684,14 @@ function _extends$s() {
|
|
|
5461
5684
|
}
|
|
5462
5685
|
return target;
|
|
5463
5686
|
};
|
|
5464
|
-
return _extends$
|
|
5687
|
+
return _extends$t.apply(this, arguments);
|
|
5465
5688
|
}
|
|
5466
5689
|
var SvgMobileMenu28 = function SvgMobileMenu282(props) {
|
|
5467
|
-
return /* @__PURE__ */ React__namespace.createElement("svg", _extends$
|
|
5690
|
+
return /* @__PURE__ */ React__namespace.createElement("svg", _extends$t({
|
|
5468
5691
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5469
5692
|
width: 28,
|
|
5470
5693
|
height: 28
|
|
5471
|
-
}, props), _path$
|
|
5694
|
+
}, props), _path$t || (_path$t = /* @__PURE__ */ React__namespace.createElement("path", {
|
|
5472
5695
|
d: "M27 15H1a1 1 0 0 1-1-1 1 1 0 0 1 1-1h26a1 1 0 0 1 1 1 1 1 0 0 1-1 1zm0-10H1a1 1 0 0 0-1 1 1 1 0 0 0 1 1h26a1 1 0 0 0 1-1 1 1 0 0 0-1-1zm0 16H1a1 1 0 0 0-1 1 1 1 0 0 0 1 1h26a1 1 0 0 0 1-1 1 1 0 0 0-1-1z"
|
|
5473
5696
|
})));
|
|
5474
5697
|
};
|
|
@@ -5481,7 +5704,9 @@ const GutterContainer = styled__default["default"].div`
|
|
|
5481
5704
|
padding-right: ${p.last ? "0px" : `${gutter.value / 2}${gutter.unit}`};
|
|
5482
5705
|
`)}
|
|
5483
5706
|
`;
|
|
5484
|
-
const PlaceholderLink$1 = styled__default["default"].div
|
|
5707
|
+
const PlaceholderLink$1 = styled__default["default"].div.withConfig({
|
|
5708
|
+
shouldForwardProp: (prop) => !["width", "button"].includes(prop.toString())
|
|
5709
|
+
})`
|
|
5485
5710
|
width: ${(props) => props.width}px;
|
|
5486
5711
|
height: ${(props) => props.button === true ? 32 : 8}px;
|
|
5487
5712
|
background-color: #a1a8c2;
|
|
@@ -5510,9 +5735,9 @@ function LinksPlaceholder({
|
|
|
5510
5735
|
}, i))
|
|
5511
5736
|
});
|
|
5512
5737
|
}
|
|
5513
|
-
var _path$
|
|
5514
|
-
function _extends$
|
|
5515
|
-
_extends$
|
|
5738
|
+
var _path$s;
|
|
5739
|
+
function _extends$s() {
|
|
5740
|
+
_extends$s = Object.assign || function(target) {
|
|
5516
5741
|
for (var i = 1; i < arguments.length; i++) {
|
|
5517
5742
|
var source = arguments[i];
|
|
5518
5743
|
for (var key in source) {
|
|
@@ -5523,20 +5748,20 @@ function _extends$r() {
|
|
|
5523
5748
|
}
|
|
5524
5749
|
return target;
|
|
5525
5750
|
};
|
|
5526
|
-
return _extends$
|
|
5751
|
+
return _extends$s.apply(this, arguments);
|
|
5527
5752
|
}
|
|
5528
5753
|
var SvgCaretDown8 = function SvgCaretDown82(props) {
|
|
5529
|
-
return /* @__PURE__ */ React__namespace.createElement("svg", _extends$
|
|
5754
|
+
return /* @__PURE__ */ React__namespace.createElement("svg", _extends$s({
|
|
5530
5755
|
width: 8,
|
|
5531
5756
|
height: 8,
|
|
5532
5757
|
xmlns: "http://www.w3.org/2000/svg"
|
|
5533
|
-
}, props), _path$
|
|
5758
|
+
}, props), _path$s || (_path$s = /* @__PURE__ */ React__namespace.createElement("path", {
|
|
5534
5759
|
d: "M1 2a1 1 0 0 0-.707 1.707l3 3a1 1 0 0 0 1.414 0l3-3A1 1 0 0 0 7 2H1z"
|
|
5535
5760
|
})));
|
|
5536
5761
|
};
|
|
5537
|
-
var _path$
|
|
5538
|
-
function _extends$
|
|
5539
|
-
_extends$
|
|
5762
|
+
var _path$r;
|
|
5763
|
+
function _extends$r() {
|
|
5764
|
+
_extends$r = Object.assign || function(target) {
|
|
5540
5765
|
for (var i = 1; i < arguments.length; i++) {
|
|
5541
5766
|
var source = arguments[i];
|
|
5542
5767
|
for (var key in source) {
|
|
@@ -5547,20 +5772,20 @@ function _extends$q() {
|
|
|
5547
5772
|
}
|
|
5548
5773
|
return target;
|
|
5549
5774
|
};
|
|
5550
|
-
return _extends$
|
|
5775
|
+
return _extends$r.apply(this, arguments);
|
|
5551
5776
|
}
|
|
5552
5777
|
var SvgPlus8 = function SvgPlus82(props) {
|
|
5553
|
-
return /* @__PURE__ */ React__namespace.createElement("svg", _extends$
|
|
5778
|
+
return /* @__PURE__ */ React__namespace.createElement("svg", _extends$r({
|
|
5554
5779
|
width: 8,
|
|
5555
5780
|
height: 8,
|
|
5556
5781
|
xmlns: "http://www.w3.org/2000/svg"
|
|
5557
|
-
}, props), _path$
|
|
5782
|
+
}, props), _path$r || (_path$r = /* @__PURE__ */ React__namespace.createElement("path", {
|
|
5558
5783
|
d: "M4 0a1 1 0 0 0-1 1v2H1a1 1 0 1 0 0 2h2v2a1 1 0 0 0 2 0V5h2a1 1 0 0 0 0-2H5V1a1 1 0 0 0-1-1z"
|
|
5559
5784
|
})));
|
|
5560
5785
|
};
|
|
5561
|
-
var _path$
|
|
5562
|
-
function _extends$
|
|
5563
|
-
_extends$
|
|
5786
|
+
var _path$q;
|
|
5787
|
+
function _extends$q() {
|
|
5788
|
+
_extends$q = Object.assign || function(target) {
|
|
5564
5789
|
for (var i = 1; i < arguments.length; i++) {
|
|
5565
5790
|
var source = arguments[i];
|
|
5566
5791
|
for (var key in source) {
|
|
@@ -5571,20 +5796,20 @@ function _extends$p() {
|
|
|
5571
5796
|
}
|
|
5572
5797
|
return target;
|
|
5573
5798
|
};
|
|
5574
|
-
return _extends$
|
|
5799
|
+
return _extends$q.apply(this, arguments);
|
|
5575
5800
|
}
|
|
5576
5801
|
var SvgArrowDown8 = function SvgArrowDown82(props) {
|
|
5577
|
-
return /* @__PURE__ */ React__namespace.createElement("svg", _extends$
|
|
5802
|
+
return /* @__PURE__ */ React__namespace.createElement("svg", _extends$q({
|
|
5578
5803
|
width: 8,
|
|
5579
5804
|
height: 8,
|
|
5580
5805
|
xmlns: "http://www.w3.org/2000/svg"
|
|
5581
|
-
}, props), _path$
|
|
5806
|
+
}, props), _path$q || (_path$q = /* @__PURE__ */ React__namespace.createElement("path", {
|
|
5582
5807
|
d: "M5 1a1 1 0 0 0-2 0v3.586l-.293-.293a1 1 0 0 0-1.414 1.414l2 2a1 1 0 0 0 1.414 0l2-2a1 1 0 0 0-1.414-1.414L5 4.586V1z"
|
|
5583
5808
|
})));
|
|
5584
5809
|
};
|
|
5585
|
-
var _path$
|
|
5586
|
-
function _extends$
|
|
5587
|
-
_extends$
|
|
5810
|
+
var _path$p;
|
|
5811
|
+
function _extends$p() {
|
|
5812
|
+
_extends$p = Object.assign || function(target) {
|
|
5588
5813
|
for (var i = 1; i < arguments.length; i++) {
|
|
5589
5814
|
var source = arguments[i];
|
|
5590
5815
|
for (var key in source) {
|
|
@@ -5595,21 +5820,23 @@ function _extends$o() {
|
|
|
5595
5820
|
}
|
|
5596
5821
|
return target;
|
|
5597
5822
|
};
|
|
5598
|
-
return _extends$
|
|
5823
|
+
return _extends$p.apply(this, arguments);
|
|
5599
5824
|
}
|
|
5600
5825
|
var SvgChevronDown8 = function SvgChevronDown82(props) {
|
|
5601
|
-
return /* @__PURE__ */ React__namespace.createElement("svg", _extends$
|
|
5826
|
+
return /* @__PURE__ */ React__namespace.createElement("svg", _extends$p({
|
|
5602
5827
|
width: 8,
|
|
5603
5828
|
height: 8,
|
|
5604
5829
|
xmlns: "http://www.w3.org/2000/svg"
|
|
5605
|
-
}, props), _path$
|
|
5830
|
+
}, props), _path$p || (_path$p = /* @__PURE__ */ React__namespace.createElement("path", {
|
|
5606
5831
|
fillRule: "evenodd",
|
|
5607
5832
|
clipRule: "evenodd",
|
|
5608
5833
|
d: "M.293 2.293a1 1 0 0 1 1.414 0L4 4.586l2.293-2.293a1 1 0 0 1 1.414 1.414l-3 3a1 1 0 0 1-1.414 0l-3-3a1 1 0 0 1 0-1.414z"
|
|
5609
5834
|
})));
|
|
5610
5835
|
};
|
|
5611
5836
|
const DROP_DOWN_MENU_WIDTH = 200;
|
|
5612
|
-
const DropDownMenu$1 = styled__default["default"].div
|
|
5837
|
+
const DropDownMenu$1 = styled__default["default"].div.withConfig({
|
|
5838
|
+
shouldForwardProp: (prop) => !["position"].includes(prop.toString())
|
|
5839
|
+
})`
|
|
5613
5840
|
position: absolute;
|
|
5614
5841
|
top: 100%;
|
|
5615
5842
|
left: ${(props) => props.position === "left" ? 0 : "auto"};
|
|
@@ -5646,7 +5873,9 @@ const DropDownContainer = styled__default["default"].div`
|
|
|
5646
5873
|
animation: ${dropIn} 0.25s;
|
|
5647
5874
|
}
|
|
5648
5875
|
`;
|
|
5649
|
-
const StyledDropDownItem = styled__default["default"](Link)
|
|
5876
|
+
const StyledDropDownItem = styled__default["default"](Link).withConfig({
|
|
5877
|
+
shouldForwardProp: (prop) => !["color", "textStyle"].includes(prop.toString())
|
|
5878
|
+
})`
|
|
5650
5879
|
display: block;
|
|
5651
5880
|
text-decoration: none;
|
|
5652
5881
|
line-height: 1.4;
|
|
@@ -5704,7 +5933,7 @@ function DropDownButton(_U) {
|
|
|
5704
5933
|
]);
|
|
5705
5934
|
const container = React.useRef(null);
|
|
5706
5935
|
const [position, setPosition] = React.useState("left");
|
|
5707
|
-
|
|
5936
|
+
useIsomorphicLayoutEffect(() => {
|
|
5708
5937
|
if (container.current && container.current.ownerDocument.defaultView.innerWidth < container.current.offsetLeft + DROP_DOWN_MENU_WIDTH) {
|
|
5709
5938
|
setPosition("right");
|
|
5710
5939
|
} else {
|
|
@@ -5745,9 +5974,9 @@ function DropDownButton(_U) {
|
|
|
5745
5974
|
})]
|
|
5746
5975
|
});
|
|
5747
5976
|
}
|
|
5748
|
-
var _path$
|
|
5749
|
-
function _extends$
|
|
5750
|
-
_extends$
|
|
5977
|
+
var _path$o;
|
|
5978
|
+
function _extends$o() {
|
|
5979
|
+
_extends$o = Object.assign || function(target) {
|
|
5751
5980
|
for (var i = 1; i < arguments.length; i++) {
|
|
5752
5981
|
var source = arguments[i];
|
|
5753
5982
|
for (var key in source) {
|
|
@@ -5758,20 +5987,22 @@ function _extends$n() {
|
|
|
5758
5987
|
}
|
|
5759
5988
|
return target;
|
|
5760
5989
|
};
|
|
5761
|
-
return _extends$
|
|
5990
|
+
return _extends$o.apply(this, arguments);
|
|
5762
5991
|
}
|
|
5763
5992
|
var SvgTimes16 = function SvgTimes162(props) {
|
|
5764
|
-
return /* @__PURE__ */ React__namespace.createElement("svg", _extends$
|
|
5993
|
+
return /* @__PURE__ */ React__namespace.createElement("svg", _extends$o({
|
|
5765
5994
|
width: 16,
|
|
5766
5995
|
height: 16,
|
|
5767
5996
|
xmlns: "http://www.w3.org/2000/svg"
|
|
5768
|
-
}, props), _path$
|
|
5997
|
+
}, props), _path$o || (_path$o = /* @__PURE__ */ React__namespace.createElement("path", {
|
|
5769
5998
|
fillRule: "evenodd",
|
|
5770
5999
|
clipRule: "evenodd",
|
|
5771
6000
|
d: "M13.707 3.707a1 1 0 0 0-1.414-1.414L8 6.586 3.707 2.293a1 1 0 0 0-1.414 1.414L6.586 8l-4.293 4.293a1 1 0 1 0 1.414 1.414L8 9.414l4.293 4.293a1 1 0 0 0 1.414-1.414L9.414 8l4.293-4.293Z"
|
|
5772
6001
|
})));
|
|
5773
6002
|
};
|
|
5774
|
-
const DropDownMenu = styled__default["default"].div
|
|
6003
|
+
const DropDownMenu = styled__default["default"].div.withConfig({
|
|
6004
|
+
shouldForwardProp: (prop) => !["open"].includes(prop.toString())
|
|
6005
|
+
})`
|
|
5775
6006
|
display: ${(props) => props.open ? "flex" : "none"};
|
|
5776
6007
|
flex-direction: column;
|
|
5777
6008
|
padding: 8px;
|
|
@@ -5779,7 +6010,9 @@ const DropDownMenu = styled__default["default"].div`
|
|
|
5779
6010
|
const ButtonLink$1 = styled__default["default"](Button$1)`
|
|
5780
6011
|
margin: 8px 0;
|
|
5781
6012
|
`;
|
|
5782
|
-
const StyledLink$2 = styled__default["default"](Link)
|
|
6013
|
+
const StyledLink$2 = styled__default["default"](Link).withConfig({
|
|
6014
|
+
shouldForwardProp: (prop) => !["textStyle", "color"].includes(prop.toString())
|
|
6015
|
+
})`
|
|
5783
6016
|
text-decoration: none;
|
|
5784
6017
|
line-height: 1.4;
|
|
5785
6018
|
padding: 8px 16px;
|
|
@@ -5870,7 +6103,9 @@ function NavigationButton$1(props) {
|
|
|
5870
6103
|
const ButtonLink = styled__default["default"](NavigationButton$1)`
|
|
5871
6104
|
margin: 8px 0;
|
|
5872
6105
|
`;
|
|
5873
|
-
const Container$3 = styled__default["default"].div
|
|
6106
|
+
const Container$3 = styled__default["default"].div.withConfig({
|
|
6107
|
+
shouldForwardProp: (prop) => !["animation", "backgroundColor", "open"].includes(prop.toString())
|
|
6108
|
+
})`
|
|
5874
6109
|
position: fixed;
|
|
5875
6110
|
flex-direction: column;
|
|
5876
6111
|
width: 100%;
|
|
@@ -5902,7 +6137,9 @@ const Container$3 = styled__default["default"].div`
|
|
|
5902
6137
|
}[animation]}
|
|
5903
6138
|
`)}
|
|
5904
6139
|
`;
|
|
5905
|
-
const CloseIconContainer = styled__default["default"].button
|
|
6140
|
+
const CloseIconContainer = styled__default["default"].button.withConfig({
|
|
6141
|
+
shouldForwardProp: (prop) => !["color"].includes(prop.toString())
|
|
6142
|
+
})`
|
|
5906
6143
|
position: absolute;
|
|
5907
6144
|
top: 15px;
|
|
5908
6145
|
right: 15px;
|
|
@@ -5950,7 +6187,9 @@ function MobileMenu({
|
|
|
5950
6187
|
})]
|
|
5951
6188
|
});
|
|
5952
6189
|
}
|
|
5953
|
-
const Container$2 = styled__default["default"].nav
|
|
6190
|
+
const Container$2 = styled__default["default"].nav.withConfig({
|
|
6191
|
+
shouldForwardProp: (prop) => !["margin", "textStyle", "gutter"].includes(prop.toString())
|
|
6192
|
+
})`
|
|
5954
6193
|
display: flex;
|
|
5955
6194
|
align-items: center;
|
|
5956
6195
|
${cssMargin()}
|
|
@@ -5962,7 +6201,9 @@ const Container$2 = styled__default["default"].nav`
|
|
|
5962
6201
|
gap: ${gutter.value}${gutter.unit};
|
|
5963
6202
|
`)}
|
|
5964
6203
|
`;
|
|
5965
|
-
const LinksContainer = styled__default["default"].div
|
|
6204
|
+
const LinksContainer = styled__default["default"].div.withConfig({
|
|
6205
|
+
shouldForwardProp: (prop) => !["alignment", "mobileMenuAnimation"].includes(prop.toString())
|
|
6206
|
+
})`
|
|
5966
6207
|
display: flex;
|
|
5967
6208
|
align-items: center;
|
|
5968
6209
|
flex-grow: 1;
|
|
@@ -5971,7 +6212,9 @@ const LinksContainer = styled__default["default"].div`
|
|
|
5971
6212
|
justify-content: ${alignment};
|
|
5972
6213
|
`)}
|
|
5973
6214
|
`;
|
|
5974
|
-
const OpenIconContainer = styled__default["default"].button
|
|
6215
|
+
const OpenIconContainer = styled__default["default"].button.withConfig({
|
|
6216
|
+
shouldForwardProp: (prop) => !["mobileMenuAnimation", "alignment", "color"].includes(prop.toString())
|
|
6217
|
+
})`
|
|
5975
6218
|
display: none;
|
|
5976
6219
|
flex-grow: 1;
|
|
5977
6220
|
align-items: center;
|
|
@@ -6252,7 +6495,9 @@ const Grid = styled__default["default"].div`
|
|
|
6252
6495
|
flex-wrap: wrap;
|
|
6253
6496
|
width: 100%;
|
|
6254
6497
|
`;
|
|
6255
|
-
const GridItem = styled__default["default"].div
|
|
6498
|
+
const GridItem = styled__default["default"].div.withConfig({
|
|
6499
|
+
shouldForwardProp: (prop) => !["grid", "index", "rowGap", "columnGap"].includes(prop.toString())
|
|
6500
|
+
})`
|
|
6256
6501
|
display: flex;
|
|
6257
6502
|
align-items: flex-start;
|
|
6258
6503
|
${cssGridItem()}
|
|
@@ -6297,6 +6542,31 @@ function registerComponent$3(runtime) {
|
|
|
6297
6542
|
}
|
|
6298
6543
|
});
|
|
6299
6544
|
}
|
|
6545
|
+
var _path$n;
|
|
6546
|
+
function _extends$n() {
|
|
6547
|
+
_extends$n = Object.assign || function(target) {
|
|
6548
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
6549
|
+
var source = arguments[i];
|
|
6550
|
+
for (var key in source) {
|
|
6551
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
6552
|
+
target[key] = source[key];
|
|
6553
|
+
}
|
|
6554
|
+
}
|
|
6555
|
+
}
|
|
6556
|
+
return target;
|
|
6557
|
+
};
|
|
6558
|
+
return _extends$n.apply(this, arguments);
|
|
6559
|
+
}
|
|
6560
|
+
var SvgLogoAngellist20 = function SvgLogoAngellist202(props) {
|
|
6561
|
+
return /* @__PURE__ */ React__namespace.createElement("svg", _extends$n({
|
|
6562
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6563
|
+
width: 20,
|
|
6564
|
+
height: 20,
|
|
6565
|
+
viewBox: "0 0 20 20"
|
|
6566
|
+
}, props), _path$n || (_path$n = /* @__PURE__ */ React__namespace.createElement("path", {
|
|
6567
|
+
d: "M13.7412,8.2967 C14.3582,6.6297 14.8392,5.2547 15.1842,4.1687 C15.5292,3.0837 15.7022,2.4177 15.7022,2.1707 C15.7022,1.9047 15.6442,1.6987 15.5292,1.5517 C15.4142,1.4057 15.2562,1.3327 15.0532,1.3327 C14.7962,1.3327 14.5332,1.5457 14.2662,1.9707 C13.9992,2.3967 13.7052,3.0817 13.3832,4.0247 L12.0022,7.9947 L13.7412,8.2967 Z M11.9052,11.9917 C11.5102,11.9737 11.1342,11.9327 10.7802,11.8677 C10.4262,11.8047 10.0872,11.7127 9.7652,11.5937 C9.9122,11.8867 10.0432,12.1797 10.1582,12.4727 C10.2742,12.7657 10.3682,13.0547 10.4422,13.3387 C10.6622,13.0637 10.8952,12.8137 11.1382,12.5887 C11.3832,12.3647 11.6382,12.1657 11.9052,11.9917 L11.9052,11.9917 Z M10.3452,7.8297 L8.8542,3.5437 C8.4672,2.4547 8.1682,1.7427 7.9562,1.4077 C7.7442,1.0737 7.5142,0.9067 7.2662,0.9067 C7.0732,0.9067 6.9162,0.9797 6.7972,1.1267 C6.6772,1.2727 6.6172,1.4697 6.6172,1.7167 C6.6172,2.1387 6.7782,2.8707 7.1002,3.9147 C7.4232,4.9587 7.9062,6.3277 8.5502,8.0217 C8.6052,7.9217 8.6832,7.8507 8.7852,7.8087 C8.8862,7.7677 9.0242,7.7477 9.1992,7.7477 C9.2542,7.7477 9.3652,7.7527 9.5312,7.7607 C9.6962,7.7707 9.9682,7.7937 10.3452,7.8297 L10.3452,7.8297 Z M8.9922,14.4637 C9.1482,14.4637 9.2912,14.3937 9.4202,14.2517 C9.5492,14.1097 9.6132,13.9567 9.6132,13.7917 C9.6132,13.6177 9.4872,13.2127 9.2342,12.5757 C8.9802,11.9397 8.6652,11.3147 8.2882,10.7007 C8.0122,10.2427 7.7402,9.8977 7.4732,9.6637 C7.2062,9.4297 6.9532,9.3137 6.7142,9.3137 C6.5202,9.3137 6.3062,9.4347 6.0722,9.6767 C5.8372,9.9197 5.7202,10.1467 5.7202,10.3577 C5.7202,10.5767 5.8352,10.9067 6.0652,11.3457 C6.2952,11.7857 6.6032,12.2527 6.9902,12.7477 C7.3952,13.2877 7.7772,13.7087 8.1362,14.0107 C8.4952,14.3137 8.7802,14.4637 8.9922,14.4637 L8.9922,14.4637 Z M4.8502,14.1347 C4.9792,14.2907 5.1582,14.5197 5.3882,14.8217 C5.9962,15.6547 6.5572,16.0717 7.0732,16.0717 C7.2472,16.0717 7.4042,16.0167 7.5422,15.9067 C7.6802,15.7967 7.7492,15.6827 7.7492,15.5637 C7.7492,15.4257 7.6572,15.1967 7.4732,14.8767 C7.2892,14.5557 7.0362,14.1947 6.7142,13.7917 C6.3452,13.3247 6.0392,12.9837 5.7962,12.7677 C5.5522,12.5527 5.3562,12.4447 5.2092,12.4447 C4.8872,12.4447 4.5902,12.6167 4.3182,12.9607 C4.0472,13.3037 3.9112,13.7087 3.9112,14.1757 C3.9112,14.5517 4.0052,14.9707 4.1942,15.4327 C4.3832,15.8957 4.6572,16.3597 5.0152,16.8267 C5.5582,17.5507 6.2332,18.1067 7.0382,18.4957 C7.8442,18.8857 8.7342,19.0797 9.7102,19.0797 C11.5052,19.0797 13.0082,18.4137 14.2182,17.0817 C15.4282,15.7487 16.0332,14.0797 16.0332,12.0737 C16.0332,11.4607 15.9872,10.9737 15.8952,10.6107 C15.8042,10.2497 15.6512,9.9857 15.4392,9.8217 C15.0622,9.5097 14.3282,9.2307 13.2372,8.9837 C12.1462,8.7357 11.0082,8.6127 9.8202,8.6127 C9.4892,8.6127 9.2542,8.6677 9.1162,8.7777 C8.9782,8.8877 8.9092,9.0747 8.9092,9.3407 C8.9092,9.9637 9.2592,10.4147 9.9582,10.6937 C10.6582,10.9737 11.7902,11.1127 13.3552,11.1127 L13.9212,11.1127 C14.0502,11.1127 14.1532,11.1607 14.2312,11.2567 C14.3092,11.3527 14.3632,11.4977 14.3902,11.6897 C14.2332,11.8367 13.9122,12.0037 13.4242,12.1917 C12.9362,12.3787 12.5632,12.5647 12.3052,12.7477 C11.7542,13.1507 11.3092,13.6287 10.9732,14.1827 C10.6372,14.7367 10.4692,15.2607 10.4692,15.7557 C10.4692,16.0577 10.5402,16.4217 10.6832,16.8477 C10.8262,17.2737 10.8972,17.5367 10.8972,17.6377 L10.8972,17.7337 L10.8692,17.8577 C10.4652,17.8297 10.1452,17.5937 9.9102,17.1497 C9.6752,16.7057 9.5582,16.1127 9.5582,15.3707 L9.5582,15.2477 C9.4842,15.3117 9.4132,15.3577 9.3442,15.3847 C9.2752,15.4127 9.1992,15.4257 9.1162,15.4257 C9.0332,15.4257 8.9552,15.4197 8.8822,15.4047 C8.8072,15.3917 8.7252,15.3707 8.6332,15.3437 C8.6602,15.4447 8.6812,15.5427 8.6952,15.6387 C8.7092,15.7347 8.7162,15.8107 8.7162,15.8657 C8.7162,16.2047 8.5822,16.4957 8.3152,16.7377 C8.0482,16.9807 7.7312,17.1017 7.3632,17.1017 C6.7832,17.1017 6.1942,16.8197 5.5952,16.2567 C4.9972,15.6937 4.6982,15.1427 4.6982,14.6017 C4.6982,14.5007 4.7102,14.4117 4.7332,14.3337 C4.7552,14.2557 4.7952,14.1897 4.8502,14.1347 L4.8502,14.1347 Z M14.7352,8.5297 C15.5642,8.6867 16.1482,9.0337 16.4892,9.5737 C16.8292,10.1147 17.0002,10.9667 17.0002,12.1297 C17.0002,14.4367 16.3032,16.3257 14.9082,17.7957 C13.5132,19.2647 11.7302,19.9997 9.5582,19.9997 C8.7022,19.9997 7.8712,19.8467 7.0662,19.5397 C6.2602,19.2337 5.5682,18.8047 4.9882,18.2557 C4.3252,17.6507 3.8282,17.0127 3.4972,16.3397 C3.1652,15.6667 3.0002,14.9777 3.0002,14.2727 C3.0002,13.4847 3.1702,12.8757 3.5112,12.4447 C3.8512,12.0147 4.3892,11.7217 5.1262,11.5667 C4.9882,11.2457 4.8872,10.9757 4.8222,10.7557 C4.7582,10.5357 4.7252,10.3667 4.7252,10.2477 C4.7252,9.8357 4.9442,9.4147 5.3822,8.9837 C5.8192,8.5527 6.2312,8.3377 6.6172,8.3377 C6.7832,8.3377 6.9572,8.3677 7.1422,8.4267 C7.3262,8.4867 7.5372,8.5857 7.7772,8.7227 C7.0682,6.7267 6.5532,5.1857 6.2312,4.1007 C5.9082,3.0147 5.7472,2.2667 5.7472,1.8547 C5.7472,1.2867 5.8942,0.8357 6.1892,0.5017 C6.4842,0.1677 6.8842,-0.0003 7.3902,-0.0003 C8.2552,-0.0003 9.3512,1.9227 10.6762,5.7697 C10.9062,6.4287 11.0812,6.9367 11.2012,7.2947 C11.3032,7.0097 11.4452,6.6077 11.6292,6.0857 C12.9552,2.2757 14.0952,0.3707 15.0532,0.3707 C15.5222,0.3707 15.8972,0.5287 16.1792,0.8447 C16.4592,1.1607 16.5992,1.5847 16.5992,2.1157 C16.5992,2.5187 16.4452,3.2557 16.1372,4.3267 C15.8282,5.3987 15.3612,6.7997 14.7352,8.5297 L14.7352,8.5297 Z"
|
|
6568
|
+
})));
|
|
6569
|
+
};
|
|
6300
6570
|
var _path$m;
|
|
6301
6571
|
function _extends$m() {
|
|
6302
6572
|
_extends$m = Object.assign || function(target) {
|
|
@@ -6312,14 +6582,14 @@ function _extends$m() {
|
|
|
6312
6582
|
};
|
|
6313
6583
|
return _extends$m.apply(this, arguments);
|
|
6314
6584
|
}
|
|
6315
|
-
var
|
|
6585
|
+
var SvgLogoCodepen20 = function SvgLogoCodepen202(props) {
|
|
6316
6586
|
return /* @__PURE__ */ React__namespace.createElement("svg", _extends$m({
|
|
6317
6587
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6318
6588
|
width: 20,
|
|
6319
6589
|
height: 20,
|
|
6320
6590
|
viewBox: "0 0 20 20"
|
|
6321
6591
|
}, props), _path$m || (_path$m = /* @__PURE__ */ React__namespace.createElement("path", {
|
|
6322
|
-
d: "
|
|
6592
|
+
d: "M18.281,11.4383 L16.132,10.0003 L18.281,8.5623 L18.281,11.4383 Z M10.859,17.5343 L10.859,13.5263 L14.586,11.0343 L17.594,13.0453 L10.859,17.5343 Z M10,12.0333 L6.961,10.0003 L10,7.9663 L13.04,10.0003 L10,12.0333 Z M9.141,17.5343 L2.407,13.0453 L5.415,11.0343 L9.141,13.5263 L9.141,17.5343 Z M1.719,8.5623 L3.869,10.0003 L1.719,11.4383 L1.719,8.5623 Z M9.141,2.4653 L9.141,6.4743 L5.415,8.9663 L2.407,6.9543 L9.141,2.4653 Z M10.859,2.4653 L17.594,6.9543 L14.586,8.9663 L10.859,6.4743 L10.859,2.4653 Z M19.985,6.8033 C19.944,6.5803 19.812,6.3603 19.617,6.2383 L10.477,0.1443 C10.188,-0.0477 9.812,-0.0477 9.523,0.1443 L0.383,6.2383 C0.148,6.3943 0,6.6713 0,6.9533 L0,13.0463 C0,13.3283 0.148,13.6063 0.383,13.7613 L9.523,19.8553 C9.668,19.9523 9.834,20.0003 10,20.0003 C10.167,20.0003 10.333,19.9523 10.477,19.8553 L19.617,13.7613 C19.854,13.6133 20,13.3233 20,13.0463 L20,6.9533 C20.001,6.9023 19.996,6.8533 19.985,6.8033 L19.985,6.8033 Z"
|
|
6323
6593
|
})));
|
|
6324
6594
|
};
|
|
6325
6595
|
var _path$l;
|
|
@@ -6337,14 +6607,14 @@ function _extends$l() {
|
|
|
6337
6607
|
};
|
|
6338
6608
|
return _extends$l.apply(this, arguments);
|
|
6339
6609
|
}
|
|
6340
|
-
var
|
|
6610
|
+
var SvgLogoDiscord20 = function SvgLogoDiscord202(props) {
|
|
6341
6611
|
return /* @__PURE__ */ React__namespace.createElement("svg", _extends$l({
|
|
6342
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
6343
6612
|
width: 20,
|
|
6344
6613
|
height: 20,
|
|
6345
|
-
viewBox: "0 0 20 20"
|
|
6614
|
+
viewBox: "0 0 20 20",
|
|
6615
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
6346
6616
|
}, props), _path$l || (_path$l = /* @__PURE__ */ React__namespace.createElement("path", {
|
|
6347
|
-
d: "
|
|
6617
|
+
d: "M16.918 3.742a16.52 16.52 0 0 0-4.068-1.24.06.06 0 0 0-.065.03 11.12 11.12 0 0 0-.506 1.022 15.401 15.401 0 0 0-4.569 0 9.946 9.946 0 0 0-.515-1.022.059.059 0 0 0-.065-.03A16.586 16.586 0 0 0 3.046 3.75a.045.045 0 0 0-.011.014C.445 7.573-.265 11.287.082 14.957a.074.074 0 0 0 .028.047 16.708 16.708 0 0 0 4.988 2.493.065.065 0 0 0 .07-.022c.388-.52.73-1.07 1.025-1.645a.06.06 0 0 0 .003-.05.061.061 0 0 0-.037-.036 11.399 11.399 0 0 1-1.56-.731.063.063 0 0 1 0-.106l.31-.238a.057.057 0 0 1 .065 0 11.983 11.983 0 0 0 10.043 0 .06.06 0 0 1 .065 0c.101.083.206.164.31.241a.064.064 0 0 1 .028.053.063.063 0 0 1-.028.052c-.498.286-1.02.53-1.56.729a.067.067 0 0 0-.035.037.065.065 0 0 0 .002.051c.3.569.642 1.115 1.021 1.635a.065.065 0 0 0 .07.022 16.64 16.64 0 0 0 4.997-2.493.055.055 0 0 0 .026-.047 16.305 16.305 0 0 0-2.978-11.196.045.045 0 0 0-.017-.01ZM6.68 12.725c-.985 0-1.796-.892-1.796-1.983 0-1.092.794-1.986 1.796-1.986s1.81.897 1.796 1.983c-.014 1.085-.797 1.986-1.796 1.986Zm6.64 0c-.985 0-1.796-.892-1.796-1.983 0-1.092.794-1.986 1.796-1.986s1.81.897 1.796 1.983c-.014 1.085-.788 1.986-1.796 1.986Z"
|
|
6348
6618
|
})));
|
|
6349
6619
|
};
|
|
6350
6620
|
var _path$k;
|
|
@@ -6857,6 +7127,11 @@ const SocialLinksOptions = [{
|
|
|
6857
7127
|
label: "CodePen",
|
|
6858
7128
|
icon: /* @__PURE__ */ jsxRuntime.jsx(SvgLogoCodepen20, {}),
|
|
6859
7129
|
brandColor: "black"
|
|
7130
|
+
}, {
|
|
7131
|
+
type: "discord",
|
|
7132
|
+
label: "Discord",
|
|
7133
|
+
icon: /* @__PURE__ */ jsxRuntime.jsx(SvgLogoDiscord20, {}),
|
|
7134
|
+
brandColor: "#5865F2"
|
|
6860
7135
|
}, {
|
|
6861
7136
|
type: "dribbble",
|
|
6862
7137
|
label: "Dribbble",
|
|
@@ -6983,7 +7258,9 @@ function SocialLinksPlaceholder({
|
|
|
6983
7258
|
}, link.id))
|
|
6984
7259
|
});
|
|
6985
7260
|
}
|
|
6986
|
-
const Container$1 = styled__default["default"].div
|
|
7261
|
+
const Container$1 = styled__default["default"].div.withConfig({
|
|
7262
|
+
shouldForwardProp: (prop) => !["width", "margin", "alignment"].includes(prop.toString())
|
|
7263
|
+
})`
|
|
6987
7264
|
display: flex;
|
|
6988
7265
|
flex-direction: row;
|
|
6989
7266
|
flex-wrap: wrap;
|
|
@@ -6992,7 +7269,9 @@ const Container$1 = styled__default["default"].div`
|
|
|
6992
7269
|
justify-content: ${alignment};
|
|
6993
7270
|
`)}
|
|
6994
7271
|
`;
|
|
6995
|
-
const StyledLink$1 = styled__default["default"](Link)
|
|
7272
|
+
const StyledLink$1 = styled__default["default"](Link).withConfig({
|
|
7273
|
+
shouldForwardProp: (prop) => !["brandColor", "shape", "size", "hoverStyle", "fill", "backgroundColor"].includes(prop.toString())
|
|
7274
|
+
})`
|
|
6996
7275
|
display: block;
|
|
6997
7276
|
color: ${(props) => props.brandColor};
|
|
6998
7277
|
transition: transform, opacity 0.18s;
|
|
@@ -7560,7 +7839,9 @@ const RichTextEditor = styled__default["default"](React.forwardRef(function Rich
|
|
|
7560
7839
|
margin: 0;
|
|
7561
7840
|
}
|
|
7562
7841
|
`;
|
|
7563
|
-
const StyledRichTextEditor = styled__default["default"](RichTextEditor)
|
|
7842
|
+
const StyledRichTextEditor = styled__default["default"](RichTextEditor).withConfig({
|
|
7843
|
+
shouldForwardProp: (prop) => !["margin"].includes(prop.toString())
|
|
7844
|
+
})`
|
|
7564
7845
|
${cssMargin()}
|
|
7565
7846
|
`;
|
|
7566
7847
|
const defaultText = {
|
|
@@ -7744,7 +8025,9 @@ function registerComponent$1(runtime) {
|
|
|
7744
8025
|
}
|
|
7745
8026
|
});
|
|
7746
8027
|
}
|
|
7747
|
-
const Container = styled__default["default"].div
|
|
8028
|
+
const Container = styled__default["default"].div.withConfig({
|
|
8029
|
+
shouldForwardProp: (prop) => !["margin", "borderRadius"].includes(prop.toString())
|
|
8030
|
+
})`
|
|
7748
8031
|
display: flex;
|
|
7749
8032
|
flex-direction: column;
|
|
7750
8033
|
overflow: hidden;
|
|
@@ -8674,13 +8957,13 @@ function ControlValue({
|
|
|
8674
8957
|
parameters: [data, definition],
|
|
8675
8958
|
children: (value) => children(value)
|
|
8676
8959
|
}, definition.type);
|
|
8677
|
-
case
|
|
8960
|
+
case image.ColorControlType:
|
|
8678
8961
|
return /* @__PURE__ */ jsxRuntime.jsx(RenderHook, {
|
|
8679
8962
|
hook: useColorValue,
|
|
8680
8963
|
parameters: [data, definition],
|
|
8681
8964
|
children: (value) => children(value)
|
|
8682
8965
|
}, definition.type);
|
|
8683
|
-
case
|
|
8966
|
+
case image.ImageControlType:
|
|
8684
8967
|
return /* @__PURE__ */ jsxRuntime.jsx(RenderHook, {
|
|
8685
8968
|
hook: useImageControlValue,
|
|
8686
8969
|
parameters: [data],
|
|
@@ -8731,8 +9014,8 @@ function PropsValue({
|
|
|
8731
9014
|
case textInput.TextInputControlType:
|
|
8732
9015
|
case textInput.TextAreaControlType:
|
|
8733
9016
|
case textInput.SelectControlType:
|
|
8734
|
-
case
|
|
8735
|
-
case
|
|
9017
|
+
case image.ColorControlType:
|
|
9018
|
+
case image.ImageControlType:
|
|
8736
9019
|
case shape.ComboboxControlType:
|
|
8737
9020
|
case shape.ShapeControlType:
|
|
8738
9021
|
case shape.ListControlType:
|
|
@@ -8814,7 +9097,7 @@ const FindDomNode = React.forwardRef(function FindDomNode2(props, ref) {
|
|
|
8814
9097
|
innerRef: ref
|
|
8815
9098
|
}));
|
|
8816
9099
|
});
|
|
8817
|
-
const
|
|
9100
|
+
const storeContextDefaultValue = reactPage.configureStore();
|
|
8818
9101
|
function createReactRuntime(store) {
|
|
8819
9102
|
return {
|
|
8820
9103
|
registerComponent(component, {
|
|
@@ -8837,8 +9120,9 @@ function createReactRuntime(store) {
|
|
|
8837
9120
|
}
|
|
8838
9121
|
};
|
|
8839
9122
|
}
|
|
8840
|
-
const ReactRuntime = createReactRuntime(
|
|
8841
|
-
|
|
9123
|
+
const ReactRuntime = createReactRuntime(storeContextDefaultValue);
|
|
9124
|
+
registerBuiltinComponents(ReactRuntime);
|
|
9125
|
+
const Context = React.createContext(storeContextDefaultValue);
|
|
8842
9126
|
function RuntimeProvider({
|
|
8843
9127
|
client: client2,
|
|
8844
9128
|
children,
|
|
@@ -8846,16 +9130,11 @@ function RuntimeProvider({
|
|
|
8846
9130
|
}) {
|
|
8847
9131
|
const [store, setStore] = React.useState(() => {
|
|
8848
9132
|
const store2 = reactPage.configureStore({
|
|
8849
|
-
preloadedState:
|
|
9133
|
+
preloadedState: storeContextDefaultValue.getState(),
|
|
8850
9134
|
rootElements
|
|
8851
9135
|
});
|
|
8852
|
-
const runtime = createReactRuntime(store2);
|
|
8853
|
-
registerBuiltinComponents(runtime);
|
|
8854
9136
|
return store2;
|
|
8855
9137
|
});
|
|
8856
|
-
React.useEffect(() => {
|
|
8857
|
-
return registerBuiltinComponents(createReactRuntime(store));
|
|
8858
|
-
}, [store]);
|
|
8859
9138
|
React.useEffect(() => {
|
|
8860
9139
|
var _a;
|
|
8861
9140
|
const unregisterDocuments = Array.from((_a = rootElements == null ? void 0 : rootElements.entries()) != null ? _a : []).map(([documentKey, rootElement]) => store.dispatch(actions.registerDocumentEffect(reactPage.createDocument(documentKey, rootElement))));
|
|
@@ -8980,14 +9259,7 @@ const ElementReference = React.memo(React.forwardRef(function ElementReference2(
|
|
|
8980
9259
|
const {
|
|
8981
9260
|
error,
|
|
8982
9261
|
data
|
|
8983
|
-
} = useQuery(
|
|
8984
|
-
query ElementReferenceGlobalElement($id: ID!) {
|
|
8985
|
-
globalElement(id: $id) {
|
|
8986
|
-
id
|
|
8987
|
-
data
|
|
8988
|
-
}
|
|
8989
|
-
}
|
|
8990
|
-
`, {
|
|
9262
|
+
} = useQuery(ELEMENT_REFERENCE_GLOBAL_ELEMENT, {
|
|
8991
9263
|
variables: {
|
|
8992
9264
|
id: elementReference.value
|
|
8993
9265
|
}
|