@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.
Files changed (100) hide show
  1. package/dist/api.cjs.js +1 -0
  2. package/dist/api.cjs.js.map +1 -1
  3. package/dist/api.es.js +1 -0
  4. package/dist/api.es.js.map +1 -1
  5. package/dist/components.cjs.js +6 -4
  6. package/dist/components.cjs.js.map +1 -1
  7. package/dist/components.es.js +6 -4
  8. package/dist/components.es.js.map +1 -1
  9. package/dist/constants.cjs.js +10 -363
  10. package/dist/constants.cjs.js.map +1 -1
  11. package/dist/constants.es.js +1 -354
  12. package/dist/constants.es.js.map +1 -1
  13. package/dist/controls.cjs.js +5 -4
  14. package/dist/controls.cjs.js.map +1 -1
  15. package/dist/controls.es.js +2 -1
  16. package/dist/controls.es.js.map +1 -1
  17. package/dist/graphql.cjs.js +365 -0
  18. package/dist/graphql.cjs.js.map +1 -0
  19. package/dist/graphql.es.js +356 -0
  20. package/dist/graphql.es.js.map +1 -0
  21. package/dist/image.cjs.js +14 -0
  22. package/dist/image.cjs.js.map +1 -0
  23. package/dist/image.es.js +10 -0
  24. package/dist/image.es.js.map +1 -0
  25. package/dist/index.cjs.js +439 -167
  26. package/dist/index.cjs.js.map +1 -1
  27. package/dist/index.es.js +430 -158
  28. package/dist/index.es.js.map +1 -1
  29. package/dist/main.cjs.js +1 -0
  30. package/dist/main.cjs.js.map +1 -1
  31. package/dist/main.es.js +1 -0
  32. package/dist/main.es.js.map +1 -1
  33. package/dist/next.cjs.js +6 -4
  34. package/dist/next.cjs.js.map +1 -1
  35. package/dist/next.es.js +6 -4
  36. package/dist/next.es.js.map +1 -1
  37. package/dist/react-builder-preview.cjs.js +8 -6
  38. package/dist/react-builder-preview.cjs.js.map +1 -1
  39. package/dist/react-builder-preview.es.js +9 -7
  40. package/dist/react-builder-preview.es.js.map +1 -1
  41. package/dist/react-page.cjs.js +260 -0
  42. package/dist/react-page.cjs.js.map +1 -1
  43. package/dist/react-page.es.js +254 -1
  44. package/dist/react-page.es.js.map +1 -1
  45. package/dist/react.cjs.js +6 -4
  46. package/dist/react.cjs.js.map +1 -1
  47. package/dist/react.es.js +6 -4
  48. package/dist/react.es.js.map +1 -1
  49. package/dist/text-input.cjs.js +0 -12
  50. package/dist/text-input.cjs.js.map +1 -1
  51. package/dist/text-input.es.js +1 -9
  52. package/dist/text-input.es.js.map +1 -1
  53. package/dist/types/api/introspection.d.ts +10 -0
  54. package/dist/types/api/introspection.d.ts.map +1 -0
  55. package/dist/types/api/react.d.ts +0 -1
  56. package/dist/types/api/react.d.ts.map +1 -1
  57. package/dist/types/components/builtin/Box/Box.d.ts.map +1 -1
  58. package/dist/types/components/builtin/Button/Button.d.ts.map +1 -1
  59. package/dist/types/components/builtin/Carousel/Carousel.d.ts.map +1 -1
  60. package/dist/types/components/builtin/Countdown/Countdown.d.ts.map +1 -1
  61. package/dist/types/components/builtin/Divider/Divider.d.ts.map +1 -1
  62. package/dist/types/components/builtin/Embed/Embed.d.ts.map +1 -1
  63. package/dist/types/components/builtin/Form/Form.d.ts.map +1 -1
  64. package/dist/types/components/builtin/Form/components/Field/components/Checkbox/index.d.ts.map +1 -1
  65. package/dist/types/components/builtin/Form/components/Field/components/Input/index.d.ts +1 -1
  66. package/dist/types/components/builtin/Form/components/Field/components/Input/index.d.ts.map +1 -1
  67. package/dist/types/components/builtin/Form/components/Field/components/Label/index.d.ts.map +1 -1
  68. package/dist/types/components/builtin/Form/components/Field/components/PlaceholderTableField/index.d.ts.map +1 -1
  69. package/dist/types/components/builtin/Form/components/Field/components/RadioButton/index.d.ts.map +1 -1
  70. package/dist/types/components/builtin/Form/components/Field/components/SingleSelectTableField/components/TableColumnSingleSelect/index.d.ts.map +1 -1
  71. package/dist/types/components/builtin/Form/components/Field/components/TextArea/index.d.ts.map +1 -1
  72. package/dist/types/components/builtin/Form/components/Field/services/cssField.d.ts +1 -1
  73. package/dist/types/components/builtin/Form/components/Placeholder/index.d.ts.map +1 -1
  74. package/dist/types/components/builtin/Image/Image.d.ts.map +1 -1
  75. package/dist/types/components/builtin/Navigation/Navigation.d.ts.map +1 -1
  76. package/dist/types/components/builtin/Navigation/components/DropDownButton/index.d.ts.map +1 -1
  77. package/dist/types/components/builtin/Navigation/components/LinksPlaceholder/index.d.ts.map +1 -1
  78. package/dist/types/components/builtin/Navigation/components/MobileMenu/components/MobileDropDownButton/index.d.ts.map +1 -1
  79. package/dist/types/components/builtin/Navigation/components/MobileMenu/index.d.ts.map +1 -1
  80. package/dist/types/components/builtin/Root/Root.d.ts.map +1 -1
  81. package/dist/types/components/builtin/SocialLinks/SocialLinks.d.ts.map +1 -1
  82. package/dist/types/components/builtin/SocialLinks/options.d.ts +5 -0
  83. package/dist/types/components/builtin/SocialLinks/options.d.ts.map +1 -1
  84. package/dist/types/components/builtin/Text/Text.d.ts.map +1 -1
  85. package/dist/types/components/builtin/Video/Video.d.ts.map +1 -1
  86. package/dist/types/components/hooks/useIsomorphicLayoutEffect.d.ts +3 -0
  87. package/dist/types/components/hooks/useIsomorphicLayoutEffect.d.ts.map +1 -0
  88. package/dist/types/components/hooks/useMediaQuery.d.ts.map +1 -1
  89. package/dist/types/components/shared/BackgroundsContainer/components/BackgroundVideo/index.d.ts.map +1 -1
  90. package/dist/types/components/shared/BackgroundsContainer/components/Backgrounds/index.d.ts.map +1 -1
  91. package/dist/types/components/shared/BackgroundsContainer/components/Parallax/index.d.ts.map +1 -1
  92. package/dist/types/components/utils/queries.d.ts +2 -0
  93. package/dist/types/components/utils/queries.d.ts.map +1 -1
  94. package/dist/types/prop-controllers/introspection.d.ts +5 -0
  95. package/dist/types/prop-controllers/introspection.d.ts.map +1 -1
  96. package/dist/types/runtimes/react/index.d.ts +1 -1
  97. package/dist/types/runtimes/react/index.d.ts.map +1 -1
  98. package/dist/types/state/react-page.d.ts +1 -0
  99. package/dist/types/state/react-page.d.ts.map +1 -1
  100. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -35,26 +35,29 @@ var __publicField = (obj, key, value) => {
35
35
  };
36
36
  var _ea;
37
37
  import * as React from "react";
38
- import { forwardRef, createContext, useContext, useMemo, useState, useLayoutEffect, useCallback, useEffect, useRef, useImperativeHandle, Children, createElement, Fragment as Fragment$1, Component, memo } from "react";
38
+ import { forwardRef, createContext, useContext, useMemo, useEffect, useLayoutEffect, useState, useCallback, useRef, useImperativeHandle, Children, createElement, Fragment as Fragment$1, Component, memo } from "react";
39
39
  import { useSyncExternalStoreWithSelector } from "use-sync-external-store/shim/with-selector";
40
- import { gql, useQuery as useQuery$1, useMutation as useMutation$1, ApolloClient, InMemoryCache } from "@apollo/client";
41
- import { a as createDocumentReference, g as getComponentPropControllerDescriptors, b as getIsInBuilder, d as configureStore, e as getElementId, f as getReactComponent, h as getDocument, i as isElementReference, c as createDocument } from "./react-page.es.js";
40
+ import { g as getPropControllerDescriptors, i as isElementReference, a as getElementSwatchIds, b as getFileIds, d as getTypographyIds, e as getTableIds, f as getPageIds, h as getElementChildren, j as createDocumentReference, k as getComponentPropControllerDescriptors, l as getIsInBuilder, m as configureStore, n as getElementId, o as getReactComponent, p as getDocument, c as createDocument } from "./react-page.es.js";
42
41
  import { f as registerComponentHandleEffect, g as mountComponentEffect, h as registerComponentEffect, j as registerReactComponentEffect, k as registerDocumentEffect } from "./actions.es.js";
43
42
  import styled, { css, keyframes, createGlobalStyle } from "styled-components";
44
43
  import { useReducedMotion, useAnimation, motion } from "framer-motion";
45
44
  import { cx, css as css$1, cache } from "@emotion/css";
46
- import { getDataFromTree } from "@apollo/client/react/ssr";
45
+ import { gql, useQuery as useQuery$1, useMutation as useMutation$1, ApolloClient, InMemoryCache } from "@apollo/client";
46
+ import { BatchHttpLink } from "@apollo/client/link/batch-http";
47
47
  import { KeyUtils, Value } from "slate";
48
- import uuid from "uuid/v4";
48
+ import { P as PagePathnameSliceFragmentDoc } from "./graphql.es.js";
49
+ import { S as ShapeControlType, L as ListControlType, C as ComboboxControlType } from "./shape.es.js";
50
+ import { a as StyleControlProperty, S as StyleControlType } from "./style.es.js";
51
+ import { T as Types, E as ElementID, B as Backgrounds$1, W as Width, R as ResponsiveIconRadioGroup, M as Margin, P as Padding, a as Border, b as BorderRadius, S as Shadows, G as GapY, c as GapX, e as ResponsiveSelect, f as ResponsiveNumber, C as Checkbox$1, g as Grid$2, h as TextInput, L as Link$1, i as ResponsiveColor, j as TextStyle, I as Image$1, k as ResponsiveOpacity, l as Images, N as Number$1, D as Date$1, F as Font, m as ResponsiveLength, n as TextArea$1, o as Table, p as TableFormFields, q as NavigationLinks, r as SocialLinks$1, s as RichText, V as Video$1, t as WidthControlValueFormats } from "./descriptors.es.js";
49
52
  import { jsx, Fragment, jsxs } from "react/jsx-runtime";
50
53
  import parse$1 from "html-react-parser";
51
54
  import Head from "next/head";
52
- import { E as ElementID, B as Backgrounds$1, W as Width, R as ResponsiveIconRadioGroup, M as Margin, P as Padding, a as Border, b as BorderRadius, S as Shadows, G as GapY, c as GapX, e as ResponsiveSelect, f as ResponsiveNumber, C as Checkbox$1, g as Grid$2, h as TextInput, L as Link$1, i as ResponsiveColor, j as TextStyle, I as Image$1, k as ResponsiveOpacity, l as Images, N as Number$1, D as Date$1, F as Font, m as ResponsiveLength, n as TextArea$1, o as Table, p as TableFormFields, q as NavigationLinks, r as SocialLinks$1, s as RichText, V as Video$1, T as Types, t as WidthControlValueFormats } from "./descriptors.es.js";
53
55
  import ColorHelper from "color";
54
56
  import scrollIntoView from "scroll-into-view-if-needed";
55
57
  import NextLink from "next/link";
56
58
  import { useGesture } from "react-use-gesture";
57
59
  import { wrap } from "@popmotion/popcorn";
60
+ import uuid from "uuid/v4";
58
61
  import NextImage from "next/image";
59
62
  import { Field as Field$1, getIn, Formik } from "formik";
60
63
  import { p as parse, c as createBox, g as getBox } from "./box-models.es.js";
@@ -65,9 +68,8 @@ import ipsum from "corporate-ipsum";
65
68
  import { isHotkey } from "is-hotkey";
66
69
  import { Editor } from "slate-react";
67
70
  import Lists from "@convertkit/slate-lists";
68
- import { I as ImageControlType, C as ColorControlType, S as SelectControlType, T as TextAreaControlType, a as TextInputControlType, N as NumberControlType, b as CheckboxControlType } from "./text-input.es.js";
69
- import { L as ListControlType, S as ShapeControlType, C as ComboboxControlType } from "./shape.es.js";
70
- import { a as StyleControlProperty, S as StyleControlType } from "./style.es.js";
71
+ import { S as SelectControlType, T as TextAreaControlType, a as TextInputControlType, N as NumberControlType, C as CheckboxControlType } from "./text-input.es.js";
72
+ import { I as ImageControlType, C as ColorControlType } from "./image.es.js";
71
73
  import { findDOMNode } from "react-dom";
72
74
  const PlaceholderBase$1 = styled.div`
73
75
  width: 100%;
@@ -216,9 +218,165 @@ const TABLE_BY_ID = gql`
216
218
  }
217
219
  }
218
220
  `;
221
+ const ELEMENT_REFERENCE_GLOBAL_ELEMENT = gql`
222
+ query ElementReferenceGlobalElement($id: ID!) {
223
+ globalElement(id: $id) {
224
+ id
225
+ data
226
+ }
227
+ }
228
+ `;
229
+ const INTROSPECTION_QUERY = gql`
230
+ query Introspection(
231
+ $swatchIds: [ID!]!
232
+ $fileIds: [ID!]!
233
+ $pageIds: [ID!]!
234
+ $typographyIds: [ID!]!
235
+ $tableIds: [ID!]!
236
+ ) {
237
+ swatches(ids: $swatchIds) {
238
+ id
239
+ hue
240
+ saturation
241
+ lightness
242
+ }
243
+
244
+ files(ids: $fileIds) {
245
+ id
246
+ name
247
+ publicUrl
248
+ extension
249
+ dimensions {
250
+ width
251
+ height
252
+ }
253
+ }
254
+
255
+ pagePathnamesById(ids: $pageIds) {
256
+ id
257
+ pathname
258
+ }
259
+
260
+ typographies(ids: $typographyIds) {
261
+ ...Typography
262
+ }
263
+
264
+ tables(ids: $tableIds) {
265
+ id
266
+ name
267
+ columns {
268
+ id
269
+ name
270
+ ... on MultipleSelectTableColumn {
271
+ options {
272
+ id
273
+ name
274
+ }
275
+ }
276
+ ... on SingleSelectTableColumn {
277
+ options {
278
+ id
279
+ name
280
+ }
281
+ }
282
+ }
283
+ }
284
+ }
285
+
286
+ ${TYPOGRAPHY_FRAGMENT}
287
+ `;
219
288
  function isNonNullable(value) {
220
289
  return value != null;
221
290
  }
291
+ async function introspect(element, client, store) {
292
+ var _a, _b, _c;
293
+ const descriptors = getPropControllerDescriptors(store.getState());
294
+ const swatchIds = /* @__PURE__ */ new Set();
295
+ const fileIds = /* @__PURE__ */ new Set();
296
+ const typographyIds = /* @__PURE__ */ new Set();
297
+ const tableIds = /* @__PURE__ */ new Set();
298
+ const pageIds = /* @__PURE__ */ new Set();
299
+ const remaining = [element];
300
+ let current;
301
+ while (current = remaining.pop()) {
302
+ let getResourcesFromElementDescriptors = function(elementDescriptors2, props) {
303
+ Object.entries(elementDescriptors2).forEach(([propName, descriptor]) => {
304
+ getElementSwatchIds(descriptor, props[propName]).forEach((swatchId) => {
305
+ swatchIds.add(swatchId);
306
+ });
307
+ getFileIds(descriptor, props[propName]).forEach((fileId) => fileIds.add(fileId));
308
+ getTypographyIds(descriptor, props[propName]).forEach((typographyId) => typographyIds.add(typographyId));
309
+ getTableIds(descriptor, props[propName]).forEach((tableId) => tableIds.add(tableId));
310
+ getPageIds(descriptor, props[propName]).forEach((pageId) => pageIds.add(pageId));
311
+ getElementChildren(descriptor, props[propName]).forEach((child) => remaining.push(child));
312
+ if (descriptor.type === ShapeControlType) {
313
+ const prop = props[propName];
314
+ if (prop == null)
315
+ return;
316
+ getResourcesFromElementDescriptors(descriptor.config.type, prop);
317
+ }
318
+ if (descriptor.type === ListControlType) {
319
+ const prop = props[propName];
320
+ if (prop == null)
321
+ return;
322
+ prop.forEach((item) => {
323
+ getResourcesFromElementDescriptors({ propName: descriptor.config.type }, { propName: item.value });
324
+ });
325
+ }
326
+ if (descriptor.type === Types.Shape) {
327
+ const prop = props[propName];
328
+ if (prop == null)
329
+ return;
330
+ getResourcesFromElementDescriptors(descriptor.options.type, prop);
331
+ }
332
+ if (descriptor.type === Types.List) {
333
+ const prop = props[propName];
334
+ if (prop == null)
335
+ return;
336
+ prop.forEach((item) => {
337
+ getResourcesFromElementDescriptors({ propName: descriptor.options.type }, { propName: item.value });
338
+ });
339
+ }
340
+ });
341
+ };
342
+ let element2;
343
+ if (isElementReference(current)) {
344
+ const query = await client.query({
345
+ query: ELEMENT_REFERENCE_GLOBAL_ELEMENT,
346
+ variables: { id: current.value }
347
+ });
348
+ const elementData = (_b = (_a = query.data) == null ? void 0 : _a.globalElement) == null ? void 0 : _b.data;
349
+ if (elementData == null)
350
+ continue;
351
+ element2 = elementData;
352
+ } else {
353
+ element2 = current;
354
+ }
355
+ const elementDescriptors = descriptors.get(element2.type);
356
+ if (elementDescriptors == null)
357
+ continue;
358
+ getResourcesFromElementDescriptors(elementDescriptors, element2.props);
359
+ }
360
+ const typographiesResult = await client.query({
361
+ query: TYPOGRAPHIES_BY_ID,
362
+ variables: { ids: [...typographyIds] }
363
+ });
364
+ (_c = typographiesResult == null ? void 0 : typographiesResult.data) == null ? void 0 : _c.typographies.forEach((typography) => {
365
+ typography.style.forEach((style) => {
366
+ var _a2;
367
+ const swatchId = (_a2 = style.value.color) == null ? void 0 : _a2.swatchId;
368
+ if (swatchId != null)
369
+ swatchIds.add(swatchId);
370
+ });
371
+ });
372
+ return {
373
+ swatchIds: [...swatchIds],
374
+ fileIds: [...fileIds],
375
+ typographyIds: [...typographyIds],
376
+ tableIds: [...tableIds],
377
+ pageIds: [...pageIds]
378
+ };
379
+ }
222
380
  const typePolicies = {
223
381
  Query: {
224
382
  fields: {
@@ -306,10 +464,6 @@ const typePolicies = {
306
464
  }
307
465
  }
308
466
  };
309
- const PrefetchContext = createContext(false);
310
- function useIsPrefetching() {
311
- return useContext(PrefetchContext);
312
- }
313
467
  function createApolloClient({
314
468
  uri,
315
469
  cacheData
@@ -320,7 +474,10 @@ function createApolloClient({
320
474
  if (cacheData)
321
475
  cache2.restore(cacheData);
322
476
  return new ApolloClient({
323
- uri,
477
+ link: new BatchHttpLink({
478
+ uri,
479
+ batchMax: 100
480
+ }),
324
481
  cache: cache2
325
482
  });
326
483
  }
@@ -336,17 +493,20 @@ class MakeswiftClient {
336
493
  });
337
494
  }
338
495
  async prefetch(element) {
339
- const id = uuid();
340
- await getDataFromTree(/* @__PURE__ */ jsx(PrefetchContext.Provider, {
341
- value: true,
342
- children: /* @__PURE__ */ jsx(RuntimeProvider, {
343
- client: this,
344
- rootElements: /* @__PURE__ */ new Map([[id, element]]),
345
- children: /* @__PURE__ */ jsx(DocumentReference, {
346
- documentReference: createDocumentReference(id)
496
+ const introspectionData = await introspect(element, this.apolloClient, storeContextDefaultValue);
497
+ const res = await this.apolloClient.query({
498
+ query: INTROSPECTION_QUERY,
499
+ variables: introspectionData
500
+ });
501
+ res.data.pagePathnamesById.forEach((pagePathnameSlice) => {
502
+ const id = Buffer.from(`Page:${pagePathnameSlice.id}`).toString("base64");
503
+ this.apolloClient.cache.writeFragment({
504
+ fragment: PagePathnameSliceFragmentDoc,
505
+ data: __spreadProps(__spreadValues({}, pagePathnameSlice), {
506
+ id
347
507
  })
348
- })
349
- }));
508
+ });
509
+ });
350
510
  KeyUtils.resetGenerator();
351
511
  return this.apolloClient.cache.extract();
352
512
  }
@@ -628,10 +788,12 @@ const getDeviceMediaQuery = (device) => {
628
788
  }
629
789
  return parts.join(" and ");
630
790
  };
791
+ const isSSR = typeof window === "undefined" || /ServerSideRendering/.test(window.navigator && window.navigator.userAgent);
792
+ const useIsomorphicLayoutEffect = isSSR ? useEffect : useLayoutEffect;
631
793
  function useMediaQuery(responsiveValue) {
632
794
  const [deviceId, setDeviceId] = useState(DEVICES[0].id);
633
795
  const { value } = findDeviceOverride(responsiveValue, deviceId) || {};
634
- useLayoutEffect(() => {
796
+ useIsomorphicLayoutEffect(() => {
635
797
  if (responsiveValue == null || window == null)
636
798
  return () => {
637
799
  };
@@ -1146,7 +1308,7 @@ function Parallax(_g2) {
1146
1308
  const container = useRef(null);
1147
1309
  const [containerScrollTop, setContainerScrollTop] = useState(strength == null ? 0 : strength);
1148
1310
  const lastScrollParentScrollTop = useRef(0);
1149
- useLayoutEffect(() => {
1311
+ useIsomorphicLayoutEffect(() => {
1150
1312
  if (!container.current || strength == null || strength === 0)
1151
1313
  return void 0;
1152
1314
  const containerDocument = container.current.ownerDocument;
@@ -1260,7 +1422,7 @@ function BackgroundVideo({
1260
1422
  const [ready, setReady] = useState(false);
1261
1423
  const [scale, setScale] = useState(1);
1262
1424
  const container = useRef(null);
1263
- useLayoutEffect(() => {
1425
+ useIsomorphicLayoutEffect(() => {
1264
1426
  const {
1265
1427
  current: containerEl
1266
1428
  } = container;
@@ -1367,9 +1529,6 @@ const BackgroundsContainer$1 = styled(Container$c)`
1367
1529
  function Backgrounds({
1368
1530
  backgrounds
1369
1531
  }) {
1370
- const isPrefetching = useIsPrefetching();
1371
- if (isPrefetching)
1372
- return /* @__PURE__ */ jsx(Fragment, {});
1373
1532
  if (backgrounds == null)
1374
1533
  return /* @__PURE__ */ jsx(Fragment, {});
1375
1534
  return /* @__PURE__ */ jsx(Fragment, {
@@ -1504,7 +1663,9 @@ var BackgroundsContainer = forwardRef(function BackgroundsContainer2(_i, ref) {
1504
1663
  }), Children.only(children)]
1505
1664
  }));
1506
1665
  });
1507
- const StyledBackgroundsContainer = styled(BackgroundsContainer)`
1666
+ const StyledBackgroundsContainer = styled(BackgroundsContainer).withConfig({
1667
+ shouldForwardProp: (prop) => !["margin", "borderRadius", "alignSelf"].includes(prop.toString())
1668
+ })`
1508
1669
  display: flex;
1509
1670
  ${cssMargin()}
1510
1671
  ${cssBorderRadius()}
@@ -1512,7 +1673,9 @@ const StyledBackgroundsContainer = styled(BackgroundsContainer)`
1512
1673
  alignSelf
1513
1674
  }))}
1514
1675
  `;
1515
- const Grid$1 = styled(motion.div)`
1676
+ const Grid$1 = styled(motion.div).withConfig({
1677
+ shouldForwardProp: (prop) => !["padding", "border", "boxShadow", "alignContent"].includes(prop)
1678
+ })`
1516
1679
  display: flex;
1517
1680
  flex-wrap: wrap;
1518
1681
  width: 100%;
@@ -1523,7 +1686,9 @@ const Grid$1 = styled(motion.div)`
1523
1686
  alignContent
1524
1687
  }))}
1525
1688
  `;
1526
- const GridItem$2 = styled(motion.div)`
1689
+ const GridItem$2 = styled(motion.div).withConfig({
1690
+ shouldForwardProp: (prop) => !["grid", "alignItems", "index", "columnGap", "rowGap"].includes(prop)
1691
+ })`
1527
1692
  display: flex;
1528
1693
 
1529
1694
  /* IE11 doesn't recognize space-between and treats it as stretch, so we fall back to flex-start */
@@ -1951,7 +2116,9 @@ function responsiveWidth(widthData, defaultValue = "100%") {
1951
2116
  width: typeof width === "object" ? `${width.value}${width.unit}` : width
1952
2117
  })));
1953
2118
  }
1954
- const StyledButton$1 = styled(Link)`
2119
+ const StyledButton$1 = styled(Link).withConfig({
2120
+ shouldForwardProp: (prop) => !["margin", "variant", "shape", "size", "textColor", "color", "textStyle"].includes(prop.toString())
2121
+ })`
1955
2122
  display: table;
1956
2123
  border: 0;
1957
2124
  outline: 0;
@@ -1997,7 +2164,6 @@ const StyledButton$1 = styled(Link)`
1997
2164
  large: "16px 20px"
1998
2165
  }[size]};
1999
2166
  font-size: ${`${fontSize.value}${fontSize.unit}`};
2000
-
2001
2167
  ${{
2002
2168
  flat: css`
2003
2169
  background: ${colorToString(color)};
@@ -2140,7 +2306,7 @@ const StyledButton$1 = styled(Link)`
2140
2306
  }[variant]}
2141
2307
  `;
2142
2308
  })}
2143
- ${cssTextStyle()}
2309
+ ${cssTextStyle()}
2144
2310
  `;
2145
2311
  const Button$1 = forwardRef(function Button2(_m, ref) {
2146
2312
  var _n = _m, {
@@ -2312,7 +2478,9 @@ function imageSizes(width) {
2312
2478
  return `(max-width: ${device.maxWidth}px) ${Math.min(device.maxWidth, override.value.value)}px`;
2313
2479
  }).filter((size) => size != null).reduce((sourceSizes, sourceSize) => `${sourceSize}, ${sourceSizes}`, baseWidthSize);
2314
2480
  }
2315
- const ImageContainer = styled.div`
2481
+ const ImageContainer = styled.div.withConfig({
2482
+ shouldForwardProp: (prop) => !["margin", "padding", "border", "borderRadius", "boxShadow", "opacity", "dimensions"].includes(prop.toString())
2483
+ })`
2316
2484
  line-height: 0;
2317
2485
  overflow: hidden;
2318
2486
  ${cssMargin()}
@@ -2349,7 +2517,6 @@ const ImageComponent = forwardRef(function Image2({
2349
2517
  const dataDimensions = (fileData == null ? void 0 : fileData.publicUrl) ? fileData == null ? void 0 : fileData.dimensions : placeholder2.dimensions;
2350
2518
  const [measuredDimensions, setMeasuredDimensions] = useState(null);
2351
2519
  const isInBuilder = useIsInBuilder();
2352
- const isPrefetching = useIsPrefetching();
2353
2520
  useEffect(() => {
2354
2521
  if (dataDimensions)
2355
2522
  return;
@@ -2370,8 +2537,6 @@ const ImageComponent = forwardRef(function Image2({
2370
2537
  if (!dimensions)
2371
2538
  return null;
2372
2539
  const widthClass = css$1(responsiveWidth(width, `${dimensions.width}px`));
2373
- if (isPrefetching)
2374
- return null;
2375
2540
  return /* @__PURE__ */ jsx(ImageContainer, {
2376
2541
  as: link ? Link : "div",
2377
2542
  link,
@@ -2450,7 +2615,9 @@ const Container$b = styled.div`
2450
2615
  position: relative;
2451
2616
  height: 100%;
2452
2617
  `;
2453
- const Wrapper = styled.div`
2618
+ const Wrapper = styled.div.withConfig({
2619
+ shouldForwardProp: (prop) => !["margin"].includes(prop)
2620
+ })`
2454
2621
  position: relative;
2455
2622
  display: flex;
2456
2623
  flex-direction: column;
@@ -2460,7 +2627,9 @@ const Wrapper = styled.div`
2460
2627
  outline: 0;
2461
2628
  }
2462
2629
  `;
2463
- const Arrow = styled.div`
2630
+ const Arrow = styled.div.withConfig({
2631
+ shouldForwardProp: (prop) => !["background"].includes(prop)
2632
+ })`
2464
2633
  padding: 10px;
2465
2634
  border-radius: 50%;
2466
2635
  outline: 0;
@@ -2488,7 +2657,9 @@ const Arrow = styled.div`
2488
2657
  stroke: currentColor;
2489
2658
  }
2490
2659
  `;
2491
- const Slop = styled.div`
2660
+ const Slop = styled.div.withConfig({
2661
+ shouldForwardProp: (prop) => !["color"].includes(prop)
2662
+ })`
2492
2663
  position: absolute;
2493
2664
  top: 0;
2494
2665
  bottom: 0;
@@ -2507,7 +2678,9 @@ const Slop = styled.div`
2507
2678
  color: ${colorToString(color)};
2508
2679
  `)}
2509
2680
  `;
2510
- const Slide = styled(motion.div)`
2681
+ const Slide = styled(motion.div).withConfig({
2682
+ shouldForwardProp: (prop) => !["pageSize", "alignItems"].includes(prop)
2683
+ })`
2511
2684
  display: flex;
2512
2685
  ${(p) => cssMediaRules([p.pageSize], ([pageSize = 1]) => css`
2513
2686
  flex-basis: ${100 / pageSize}%;
@@ -2519,7 +2692,9 @@ const Slide = styled(motion.div)`
2519
2692
  alignItems
2520
2693
  }))}
2521
2694
  `;
2522
- const Reel = styled(motion.div)`
2695
+ const Reel = styled(motion.div).withConfig({
2696
+ shouldForwardProp: (prop) => !["gap"].includes(prop)
2697
+ })`
2523
2698
  display: flex;
2524
2699
  position: relative;
2525
2700
  flex-wrap: nowrap;
@@ -2538,7 +2713,9 @@ const Page$1 = styled(motion.div)`
2538
2713
  position: relative;
2539
2714
  width: 100%;
2540
2715
  `;
2541
- const LeftSlop = styled(Slop)`
2716
+ const LeftSlop = styled(Slop).withConfig({
2717
+ shouldForwardProp: (prop) => !["position"].includes(prop)
2718
+ })`
2542
2719
  ${(p) => cssMediaRules([p.position], ([position = "inside"]) => {
2543
2720
  switch (position) {
2544
2721
  case "inside":
@@ -2563,7 +2740,9 @@ const LeftSlop = styled(Slop)`
2563
2740
  }
2564
2741
  }
2565
2742
  `;
2566
- const RightSlop = styled(Slop)`
2743
+ const RightSlop = styled(Slop).withConfig({
2744
+ shouldForwardProp: (prop) => !["position"].includes(prop)
2745
+ })`
2567
2746
  ${(p) => cssMediaRules([p.position], ([position = "inside"]) => {
2568
2747
  switch (position) {
2569
2748
  case "inside":
@@ -2591,7 +2770,9 @@ const RightSlop = styled(Slop)`
2591
2770
  const ClipMask = styled.div`
2592
2771
  overflow: hidden;
2593
2772
  `;
2594
- const Dots = styled.div`
2773
+ const Dots = styled.div.withConfig({
2774
+ shouldForwardProp: (prop) => !["color"].includes(prop)
2775
+ })`
2595
2776
  display: ${(props) => props.hidden ? "none" : "flex"};
2596
2777
  justify-content: center;
2597
2778
  margin-top: 20px;
@@ -2606,7 +2787,9 @@ const Dots = styled.div`
2606
2787
  color: ${colorToString(color)};
2607
2788
  `)}
2608
2789
  `;
2609
- const Dot = styled.div`
2790
+ const Dot = styled.div.withConfig({
2791
+ shouldForwardProp: (prop) => !["active"].includes(prop)
2792
+ })`
2610
2793
  position: relative;
2611
2794
  margin: 0 6px;
2612
2795
  border-radius: 50%;
@@ -2966,7 +3149,9 @@ const Segment = styled.div`
2966
3149
  flex: 1;
2967
3150
  text-align: center;
2968
3151
  `;
2969
- const Container$a = styled.div`
3152
+ const Container$a = styled.div.withConfig({
3153
+ shouldForwardProp: (prop) => !["margin", "variant", "size", "shape", "gap", "labelColor", "numberFont", "numberColor", "blockColor", "labelFont"].includes(prop)
3154
+ })`
2970
3155
  display: flex;
2971
3156
  ${cssMargin()}
2972
3157
  ${(p) => cssMediaRules([p.size], ([size = "medium"]) => {
@@ -3062,7 +3247,7 @@ const Container$a = styled.div`
3062
3247
  z-index: 1;
3063
3248
  }
3064
3249
 
3065
- :before {
3250
+ ::before {
3066
3251
  content: '';
3067
3252
  position: absolute;
3068
3253
  top: 0;
@@ -3074,7 +3259,7 @@ const Container$a = styled.div`
3074
3259
  background: ${colorToString(blockColor)};
3075
3260
  }
3076
3261
 
3077
- :after {
3262
+ ::after {
3078
3263
  content: '';
3079
3264
  position: absolute;
3080
3265
  left: 0;
@@ -3105,7 +3290,7 @@ const Container$a = styled.div`
3105
3290
  z-index: 1;
3106
3291
  }
3107
3292
 
3108
- :before {
3293
+ ::before {
3109
3294
  content: '';
3110
3295
  position: absolute;
3111
3296
  top: 50%;
@@ -3385,7 +3570,9 @@ function registerComponent$8(runtime) {
3385
3570
  }
3386
3571
  });
3387
3572
  }
3388
- const IE11MinHeightContainer = styled.div`
3573
+ const IE11MinHeightContainer = styled.div.withConfig({
3574
+ shouldForwardProp: (prop) => !["margin"].includes(prop)
3575
+ })`
3389
3576
  display: flex;
3390
3577
  width: 100%;
3391
3578
  ${cssMargin()}
@@ -3397,7 +3584,9 @@ const Container$9 = styled.div`
3397
3584
  min-height: 40px;
3398
3585
  width: 100%;
3399
3586
  `;
3400
- const Line = styled.div`
3587
+ const Line = styled.div.withConfig({
3588
+ shouldForwardProp: (prop) => !["variant", "color", "thickness"].includes(prop)
3589
+ })`
3401
3590
  ${(p) => cssMediaRules([p.variant, p.thickness, p.color], ([variant = "solid", thickness = {
3402
3591
  value: 1,
3403
3592
  unit: "px"
@@ -3509,7 +3698,9 @@ function registerComponent$7(runtime) {
3509
3698
  }
3510
3699
  });
3511
3700
  }
3512
- const Container$8 = styled.div`
3701
+ const Container$8 = styled.div.withConfig({
3702
+ shouldForwardProp: (prop) => !["margin"].includes(prop)
3703
+ })`
3513
3704
  min-height: 15px;
3514
3705
  ${cssMargin()}
3515
3706
  `;
@@ -3545,7 +3736,7 @@ const Embed = forwardRef(function Embed2({
3545
3736
  }, ref) {
3546
3737
  const [container, setContainer] = useState(null);
3547
3738
  const [shouldRender, setShouldRender] = useState(false);
3548
- useLayoutEffect(() => {
3739
+ useIsomorphicLayoutEffect(() => {
3549
3740
  setShouldRender(true);
3550
3741
  }, []);
3551
3742
  useImperativeHandle(ref, () => container, [container]);
@@ -3616,9 +3807,9 @@ function registerComponent$6(runtime) {
3616
3807
  }
3617
3808
  });
3618
3809
  }
3619
- var _path$t;
3620
- function _extends$u() {
3621
- _extends$u = Object.assign || function(target) {
3810
+ var _path$u;
3811
+ function _extends$v() {
3812
+ _extends$v = Object.assign || function(target) {
3622
3813
  for (var i = 1; i < arguments.length; i++) {
3623
3814
  var source = arguments[i];
3624
3815
  for (var key in source) {
@@ -3629,15 +3820,15 @@ function _extends$u() {
3629
3820
  }
3630
3821
  return target;
3631
3822
  };
3632
- return _extends$u.apply(this, arguments);
3823
+ return _extends$v.apply(this, arguments);
3633
3824
  }
3634
3825
  var SvgCheck12 = function SvgCheck122(props) {
3635
- return /* @__PURE__ */ React.createElement("svg", _extends$u({
3826
+ return /* @__PURE__ */ React.createElement("svg", _extends$v({
3636
3827
  width: 12,
3637
3828
  height: 12,
3638
3829
  viewBox: "0 0 12 12",
3639
3830
  xmlns: "http://www.w3.org/2000/svg"
3640
- }, props), _path$t || (_path$t = /* @__PURE__ */ React.createElement("path", {
3831
+ }, props), _path$u || (_path$u = /* @__PURE__ */ React.createElement("path", {
3641
3832
  fillRule: "evenodd",
3642
3833
  clipRule: "evenodd",
3643
3834
  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"
@@ -3793,7 +3984,9 @@ function getSizeHeight$1(size) {
3793
3984
  throw new Error(`Invalid form size "${size}"`);
3794
3985
  }
3795
3986
  }
3796
- const Base$2 = styled.input`
3987
+ const Base$2 = styled.input.withConfig({
3988
+ shouldForwardProp: (prop, defaultValidator) => !["shape", "size", "contrast", "brandColor", "error"].includes(prop.toString()) && defaultValidator(prop)
3989
+ })`
3797
3990
  ${cssField()}
3798
3991
  ${(props) => cssMediaRules([props.size], ([size = Sizes.MEDIUM]) => css`
3799
3992
  min-height: ${getSizeHeight$1(size)}px;
@@ -3823,7 +4016,9 @@ var Input$2 = forwardRef(function Input(_o, ref) {
3823
4016
  brandColor
3824
4017
  }));
3825
4018
  });
3826
- const Container$7 = styled.div`
4019
+ const Container$7 = styled.div.withConfig({
4020
+ shouldForwardProp: (prop) => !["width", "margin"].includes(prop.toString())
4021
+ })`
3827
4022
  display: flex;
3828
4023
  flex-direction: column;
3829
4024
  ${cssMargin()};
@@ -3907,7 +4102,9 @@ function getContrastColor(contrast) {
3907
4102
  throw new Error(`Invalid form contrast "${contrast}"`);
3908
4103
  }
3909
4104
  }
3910
- const Base$1 = styled.label`
4105
+ const Base$1 = styled.label.withConfig({
4106
+ shouldForwardProp: (prop, defaultValidator) => !["contrast", "size", "textStyle", "textColor"].includes(prop.toString()) && defaultValidator(prop)
4107
+ })`
3911
4108
  display: block;
3912
4109
  margin: 0 0 0.25em 0;
3913
4110
  ${cssTextStyle()}
@@ -3958,7 +4155,9 @@ var SingleLineTextTableField = forwardRef(function SingleLineTextTableField2(_q,
3958
4155
  }))]
3959
4156
  });
3960
4157
  });
3961
- const Base = styled.textarea`
4158
+ const Base = styled.textarea.withConfig({
4159
+ shouldForwardProp: (prop, defaultValidator) => !["error", "shape", "size", "contrast", "brandColor"].includes(prop.toString()) && defaultValidator(prop)
4160
+ })`
3962
4161
  resize: vertical;
3963
4162
  ${cssField()}
3964
4163
  `;
@@ -4024,14 +4223,18 @@ function getCheckmarkColor$1({
4024
4223
  l
4025
4224
  }).alpha(a).isLight() ? "rgba(0, 0, 0, 0.7)" : "rgba(255, 255, 255, 0.95)";
4026
4225
  }
4027
- const Container$6 = styled.div`
4226
+ const Container$6 = styled.div.withConfig({
4227
+ shouldForwardProp: (prop) => !["size"].includes(prop)
4228
+ })`
4028
4229
  position: relative;
4029
4230
  ${(props) => cssMediaRules([props.size], ([size = Sizes.MEDIUM]) => css`
4030
4231
  height: ${getSizeHeight(size)}px;
4031
4232
  width: ${getSizeHeight(size)}px;
4032
4233
  `)}
4033
4234
  `;
4034
- const FakeCheckbox = styled.div`
4235
+ const FakeCheckbox = styled.div.withConfig({
4236
+ shouldForwardProp: (prop) => !["contrast", "error"].includes(prop)
4237
+ })`
4035
4238
  position: absolute;
4036
4239
  width: 100%;
4037
4240
  height: 100%;
@@ -4044,7 +4247,9 @@ const FakeCheckbox = styled.div`
4044
4247
  background-color: ${getContrastBackgroundColor(contrast)};
4045
4248
  `)}
4046
4249
  `;
4047
- const HiddenCheckbox = styled.input`
4250
+ const HiddenCheckbox = styled.input.withConfig({
4251
+ shouldForwardProp: (prop, defaultValidator) => !["size", "brandColor", "contrast", "error"].includes(prop) && defaultValidator(prop)
4252
+ })`
4048
4253
  position: absolute;
4049
4254
  opacity: 0;
4050
4255
  width: 100%;
@@ -4287,14 +4492,18 @@ function getCheckmarkColor({
4287
4492
  l
4288
4493
  }).alpha(a).isLight() ? "rgba(0, 0, 0, 0.7)" : "rgba(255, 255, 255, 0.95)";
4289
4494
  }
4290
- const Container$5 = styled.div`
4495
+ const Container$5 = styled.div.withConfig({
4496
+ shouldForwardProp: (prop) => !["size"].includes(prop.toString())
4497
+ })`
4291
4498
  position: relative;
4292
4499
  ${(props) => cssMediaRules([props.size], ([size = Sizes.MEDIUM]) => css`
4293
4500
  height: ${getSizeHeight(size)}px;
4294
4501
  width: ${getSizeHeight(size)}px;
4295
4502
  `)}
4296
4503
  `;
4297
- const FakeRadioButton = styled.div`
4504
+ const FakeRadioButton = styled.div.withConfig({
4505
+ shouldForwardProp: (prop) => !["contrast", "error"].includes(prop.toString())
4506
+ })`
4298
4507
  position: absolute;
4299
4508
  width: 100%;
4300
4509
  height: 100%;
@@ -4307,7 +4516,9 @@ const FakeRadioButton = styled.div`
4307
4516
  background-color: ${getContrastBackgroundColor(contrast)};
4308
4517
  `)}
4309
4518
  `;
4310
- const HiddenRadioButton = styled.input.attrs({
4519
+ const HiddenRadioButton = styled.input.withConfig({
4520
+ shouldForwardProp: (prop) => !["brandColor", "contrast", "error"].includes(prop.toString())
4521
+ }).attrs({
4311
4522
  type: "radio"
4312
4523
  })`
4313
4524
  position: absolute;
@@ -4472,7 +4683,9 @@ var TableColumnRadioButtonGroup = forwardRef(function TableColumnRadioButtonGrou
4472
4683
  }, option.id))]
4473
4684
  });
4474
4685
  });
4475
- const Container$4 = styled.div`
4686
+ const Container$4 = styled.div.withConfig({
4687
+ shouldForwardProp: (prop) => !["error", "shape", "size", "contrast", "brandColor"].includes(prop.toString())
4688
+ })`
4476
4689
  ${cssField()}
4477
4690
  display: flex;
4478
4691
  align-items: center;
@@ -4685,7 +4898,9 @@ var NumberTableField = forwardRef(function NumberTableField2(_Q, ref) {
4685
4898
  }))]
4686
4899
  });
4687
4900
  });
4688
- const Label = styled.div`
4901
+ const Label = styled.div.withConfig({
4902
+ shouldForwardProp: (prop) => !["size"].includes(prop.toString())
4903
+ })`
4689
4904
  display: block;
4690
4905
  max-width: 120px;
4691
4906
  min-width: 60px;
@@ -4698,7 +4913,9 @@ const Label = styled.div`
4698
4913
  max-height: ${0.5 * getSizeHeight(size)}px;
4699
4914
  `)}
4700
4915
  `;
4701
- const Input2 = styled.div`
4916
+ const Input2 = styled.div.withConfig({
4917
+ shouldForwardProp: (prop) => !["shape", "size"].includes(prop.toString())
4918
+ })`
4702
4919
  display: block;
4703
4920
  width: 100%;
4704
4921
  border-width: 2px;
@@ -4819,8 +5036,8 @@ function Field({
4819
5036
  });
4820
5037
  }
4821
5038
  var _g;
4822
- function _extends$t() {
4823
- _extends$t = Object.assign || function(target) {
5039
+ function _extends$u() {
5040
+ _extends$u = Object.assign || function(target) {
4824
5041
  for (var i = 1; i < arguments.length; i++) {
4825
5042
  var source = arguments[i];
4826
5043
  for (var key in source) {
@@ -4831,10 +5048,10 @@ function _extends$t() {
4831
5048
  }
4832
5049
  return target;
4833
5050
  };
4834
- return _extends$t.apply(this, arguments);
5051
+ return _extends$u.apply(this, arguments);
4835
5052
  }
4836
5053
  var SvgSpinner20 = function SvgSpinner202(props) {
4837
- return /* @__PURE__ */ React.createElement("svg", _extends$t({
5054
+ return /* @__PURE__ */ React.createElement("svg", _extends$u({
4838
5055
  xmlns: "http://www.w3.org/2000/svg",
4839
5056
  width: 20,
4840
5057
  height: 20
@@ -4916,7 +5133,9 @@ const Alignments = {
4916
5133
  CENTER: "center",
4917
5134
  RIGHT: "right"
4918
5135
  };
4919
- const GridForm = styled.form`
5136
+ const GridForm = styled.form.withConfig({
5137
+ shouldForwardProp: (prop) => !["size", "width", "margin"].includes(prop)
5138
+ })`
4920
5139
  display: flex;
4921
5140
  flex-wrap: wrap;
4922
5141
  width: 100%;
@@ -4925,7 +5144,9 @@ const GridForm = styled.form`
4925
5144
  `)}
4926
5145
  ${cssMargin()}
4927
5146
  `;
4928
- const GridItem$1 = styled.div`
5147
+ const GridItem$1 = styled.div.withConfig({
5148
+ shouldForwardProp: (prop) => !["grid", "index", "rowGap", "columnGap"].includes(prop)
5149
+ })`
4929
5150
  align-self: flex-end;
4930
5151
  flex-direction: column;
4931
5152
  ${cssGridItem()}
@@ -4942,7 +5163,9 @@ function getAlignmentMargin(alignment) {
4942
5163
  }
4943
5164
  const StyledButton = styled((props) => /* @__PURE__ */ jsx(Button$1, __spreadProps(__spreadValues({}, props), {
4944
5165
  as: "button"
4945
- })))`
5166
+ }))).withConfig({
5167
+ shouldForwardProp: (prop) => !["alignment"].includes(prop.toString())
5168
+ })`
4946
5169
  display: flex;
4947
5170
  align-items: center;
4948
5171
  justify-content: center;
@@ -5412,9 +5635,9 @@ function registerComponent$5(runtime) {
5412
5635
  }
5413
5636
  });
5414
5637
  }
5415
- var _path$s;
5416
- function _extends$s() {
5417
- _extends$s = Object.assign || function(target) {
5638
+ var _path$t;
5639
+ function _extends$t() {
5640
+ _extends$t = Object.assign || function(target) {
5418
5641
  for (var i = 1; i < arguments.length; i++) {
5419
5642
  var source = arguments[i];
5420
5643
  for (var key in source) {
@@ -5425,14 +5648,14 @@ function _extends$s() {
5425
5648
  }
5426
5649
  return target;
5427
5650
  };
5428
- return _extends$s.apply(this, arguments);
5651
+ return _extends$t.apply(this, arguments);
5429
5652
  }
5430
5653
  var SvgMobileMenu28 = function SvgMobileMenu282(props) {
5431
- return /* @__PURE__ */ React.createElement("svg", _extends$s({
5654
+ return /* @__PURE__ */ React.createElement("svg", _extends$t({
5432
5655
  xmlns: "http://www.w3.org/2000/svg",
5433
5656
  width: 28,
5434
5657
  height: 28
5435
- }, props), _path$s || (_path$s = /* @__PURE__ */ React.createElement("path", {
5658
+ }, props), _path$t || (_path$t = /* @__PURE__ */ React.createElement("path", {
5436
5659
  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"
5437
5660
  })));
5438
5661
  };
@@ -5445,7 +5668,9 @@ const GutterContainer = styled.div`
5445
5668
  padding-right: ${p.last ? "0px" : `${gutter.value / 2}${gutter.unit}`};
5446
5669
  `)}
5447
5670
  `;
5448
- const PlaceholderLink$1 = styled.div`
5671
+ const PlaceholderLink$1 = styled.div.withConfig({
5672
+ shouldForwardProp: (prop) => !["width", "button"].includes(prop.toString())
5673
+ })`
5449
5674
  width: ${(props) => props.width}px;
5450
5675
  height: ${(props) => props.button === true ? 32 : 8}px;
5451
5676
  background-color: #a1a8c2;
@@ -5474,9 +5699,9 @@ function LinksPlaceholder({
5474
5699
  }, i))
5475
5700
  });
5476
5701
  }
5477
- var _path$r;
5478
- function _extends$r() {
5479
- _extends$r = Object.assign || function(target) {
5702
+ var _path$s;
5703
+ function _extends$s() {
5704
+ _extends$s = Object.assign || function(target) {
5480
5705
  for (var i = 1; i < arguments.length; i++) {
5481
5706
  var source = arguments[i];
5482
5707
  for (var key in source) {
@@ -5487,20 +5712,20 @@ function _extends$r() {
5487
5712
  }
5488
5713
  return target;
5489
5714
  };
5490
- return _extends$r.apply(this, arguments);
5715
+ return _extends$s.apply(this, arguments);
5491
5716
  }
5492
5717
  var SvgCaretDown8 = function SvgCaretDown82(props) {
5493
- return /* @__PURE__ */ React.createElement("svg", _extends$r({
5718
+ return /* @__PURE__ */ React.createElement("svg", _extends$s({
5494
5719
  width: 8,
5495
5720
  height: 8,
5496
5721
  xmlns: "http://www.w3.org/2000/svg"
5497
- }, props), _path$r || (_path$r = /* @__PURE__ */ React.createElement("path", {
5722
+ }, props), _path$s || (_path$s = /* @__PURE__ */ React.createElement("path", {
5498
5723
  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"
5499
5724
  })));
5500
5725
  };
5501
- var _path$q;
5502
- function _extends$q() {
5503
- _extends$q = Object.assign || function(target) {
5726
+ var _path$r;
5727
+ function _extends$r() {
5728
+ _extends$r = Object.assign || function(target) {
5504
5729
  for (var i = 1; i < arguments.length; i++) {
5505
5730
  var source = arguments[i];
5506
5731
  for (var key in source) {
@@ -5511,20 +5736,20 @@ function _extends$q() {
5511
5736
  }
5512
5737
  return target;
5513
5738
  };
5514
- return _extends$q.apply(this, arguments);
5739
+ return _extends$r.apply(this, arguments);
5515
5740
  }
5516
5741
  var SvgPlus8 = function SvgPlus82(props) {
5517
- return /* @__PURE__ */ React.createElement("svg", _extends$q({
5742
+ return /* @__PURE__ */ React.createElement("svg", _extends$r({
5518
5743
  width: 8,
5519
5744
  height: 8,
5520
5745
  xmlns: "http://www.w3.org/2000/svg"
5521
- }, props), _path$q || (_path$q = /* @__PURE__ */ React.createElement("path", {
5746
+ }, props), _path$r || (_path$r = /* @__PURE__ */ React.createElement("path", {
5522
5747
  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"
5523
5748
  })));
5524
5749
  };
5525
- var _path$p;
5526
- function _extends$p() {
5527
- _extends$p = Object.assign || function(target) {
5750
+ var _path$q;
5751
+ function _extends$q() {
5752
+ _extends$q = Object.assign || function(target) {
5528
5753
  for (var i = 1; i < arguments.length; i++) {
5529
5754
  var source = arguments[i];
5530
5755
  for (var key in source) {
@@ -5535,20 +5760,20 @@ function _extends$p() {
5535
5760
  }
5536
5761
  return target;
5537
5762
  };
5538
- return _extends$p.apply(this, arguments);
5763
+ return _extends$q.apply(this, arguments);
5539
5764
  }
5540
5765
  var SvgArrowDown8 = function SvgArrowDown82(props) {
5541
- return /* @__PURE__ */ React.createElement("svg", _extends$p({
5766
+ return /* @__PURE__ */ React.createElement("svg", _extends$q({
5542
5767
  width: 8,
5543
5768
  height: 8,
5544
5769
  xmlns: "http://www.w3.org/2000/svg"
5545
- }, props), _path$p || (_path$p = /* @__PURE__ */ React.createElement("path", {
5770
+ }, props), _path$q || (_path$q = /* @__PURE__ */ React.createElement("path", {
5546
5771
  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"
5547
5772
  })));
5548
5773
  };
5549
- var _path$o;
5550
- function _extends$o() {
5551
- _extends$o = Object.assign || function(target) {
5774
+ var _path$p;
5775
+ function _extends$p() {
5776
+ _extends$p = Object.assign || function(target) {
5552
5777
  for (var i = 1; i < arguments.length; i++) {
5553
5778
  var source = arguments[i];
5554
5779
  for (var key in source) {
@@ -5559,21 +5784,23 @@ function _extends$o() {
5559
5784
  }
5560
5785
  return target;
5561
5786
  };
5562
- return _extends$o.apply(this, arguments);
5787
+ return _extends$p.apply(this, arguments);
5563
5788
  }
5564
5789
  var SvgChevronDown8 = function SvgChevronDown82(props) {
5565
- return /* @__PURE__ */ React.createElement("svg", _extends$o({
5790
+ return /* @__PURE__ */ React.createElement("svg", _extends$p({
5566
5791
  width: 8,
5567
5792
  height: 8,
5568
5793
  xmlns: "http://www.w3.org/2000/svg"
5569
- }, props), _path$o || (_path$o = /* @__PURE__ */ React.createElement("path", {
5794
+ }, props), _path$p || (_path$p = /* @__PURE__ */ React.createElement("path", {
5570
5795
  fillRule: "evenodd",
5571
5796
  clipRule: "evenodd",
5572
5797
  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"
5573
5798
  })));
5574
5799
  };
5575
5800
  const DROP_DOWN_MENU_WIDTH = 200;
5576
- const DropDownMenu$1 = styled.div`
5801
+ const DropDownMenu$1 = styled.div.withConfig({
5802
+ shouldForwardProp: (prop) => !["position"].includes(prop.toString())
5803
+ })`
5577
5804
  position: absolute;
5578
5805
  top: 100%;
5579
5806
  left: ${(props) => props.position === "left" ? 0 : "auto"};
@@ -5610,7 +5837,9 @@ const DropDownContainer = styled.div`
5610
5837
  animation: ${dropIn} 0.25s;
5611
5838
  }
5612
5839
  `;
5613
- const StyledDropDownItem = styled(Link)`
5840
+ const StyledDropDownItem = styled(Link).withConfig({
5841
+ shouldForwardProp: (prop) => !["color", "textStyle"].includes(prop.toString())
5842
+ })`
5614
5843
  display: block;
5615
5844
  text-decoration: none;
5616
5845
  line-height: 1.4;
@@ -5668,7 +5897,7 @@ function DropDownButton(_U) {
5668
5897
  ]);
5669
5898
  const container = useRef(null);
5670
5899
  const [position, setPosition] = useState("left");
5671
- useLayoutEffect(() => {
5900
+ useIsomorphicLayoutEffect(() => {
5672
5901
  if (container.current && container.current.ownerDocument.defaultView.innerWidth < container.current.offsetLeft + DROP_DOWN_MENU_WIDTH) {
5673
5902
  setPosition("right");
5674
5903
  } else {
@@ -5709,9 +5938,9 @@ function DropDownButton(_U) {
5709
5938
  })]
5710
5939
  });
5711
5940
  }
5712
- var _path$n;
5713
- function _extends$n() {
5714
- _extends$n = Object.assign || function(target) {
5941
+ var _path$o;
5942
+ function _extends$o() {
5943
+ _extends$o = Object.assign || function(target) {
5715
5944
  for (var i = 1; i < arguments.length; i++) {
5716
5945
  var source = arguments[i];
5717
5946
  for (var key in source) {
@@ -5722,20 +5951,22 @@ function _extends$n() {
5722
5951
  }
5723
5952
  return target;
5724
5953
  };
5725
- return _extends$n.apply(this, arguments);
5954
+ return _extends$o.apply(this, arguments);
5726
5955
  }
5727
5956
  var SvgTimes16 = function SvgTimes162(props) {
5728
- return /* @__PURE__ */ React.createElement("svg", _extends$n({
5957
+ return /* @__PURE__ */ React.createElement("svg", _extends$o({
5729
5958
  width: 16,
5730
5959
  height: 16,
5731
5960
  xmlns: "http://www.w3.org/2000/svg"
5732
- }, props), _path$n || (_path$n = /* @__PURE__ */ React.createElement("path", {
5961
+ }, props), _path$o || (_path$o = /* @__PURE__ */ React.createElement("path", {
5733
5962
  fillRule: "evenodd",
5734
5963
  clipRule: "evenodd",
5735
5964
  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"
5736
5965
  })));
5737
5966
  };
5738
- const DropDownMenu = styled.div`
5967
+ const DropDownMenu = styled.div.withConfig({
5968
+ shouldForwardProp: (prop) => !["open"].includes(prop.toString())
5969
+ })`
5739
5970
  display: ${(props) => props.open ? "flex" : "none"};
5740
5971
  flex-direction: column;
5741
5972
  padding: 8px;
@@ -5743,7 +5974,9 @@ const DropDownMenu = styled.div`
5743
5974
  const ButtonLink$1 = styled(Button$1)`
5744
5975
  margin: 8px 0;
5745
5976
  `;
5746
- const StyledLink$2 = styled(Link)`
5977
+ const StyledLink$2 = styled(Link).withConfig({
5978
+ shouldForwardProp: (prop) => !["textStyle", "color"].includes(prop.toString())
5979
+ })`
5747
5980
  text-decoration: none;
5748
5981
  line-height: 1.4;
5749
5982
  padding: 8px 16px;
@@ -5834,7 +6067,9 @@ function NavigationButton$1(props) {
5834
6067
  const ButtonLink = styled(NavigationButton$1)`
5835
6068
  margin: 8px 0;
5836
6069
  `;
5837
- const Container$3 = styled.div`
6070
+ const Container$3 = styled.div.withConfig({
6071
+ shouldForwardProp: (prop) => !["animation", "backgroundColor", "open"].includes(prop.toString())
6072
+ })`
5838
6073
  position: fixed;
5839
6074
  flex-direction: column;
5840
6075
  width: 100%;
@@ -5866,7 +6101,9 @@ const Container$3 = styled.div`
5866
6101
  }[animation]}
5867
6102
  `)}
5868
6103
  `;
5869
- const CloseIconContainer = styled.button`
6104
+ const CloseIconContainer = styled.button.withConfig({
6105
+ shouldForwardProp: (prop) => !["color"].includes(prop.toString())
6106
+ })`
5870
6107
  position: absolute;
5871
6108
  top: 15px;
5872
6109
  right: 15px;
@@ -5914,7 +6151,9 @@ function MobileMenu({
5914
6151
  })]
5915
6152
  });
5916
6153
  }
5917
- const Container$2 = styled.nav`
6154
+ const Container$2 = styled.nav.withConfig({
6155
+ shouldForwardProp: (prop) => !["margin", "textStyle", "gutter"].includes(prop.toString())
6156
+ })`
5918
6157
  display: flex;
5919
6158
  align-items: center;
5920
6159
  ${cssMargin()}
@@ -5926,7 +6165,9 @@ const Container$2 = styled.nav`
5926
6165
  gap: ${gutter.value}${gutter.unit};
5927
6166
  `)}
5928
6167
  `;
5929
- const LinksContainer = styled.div`
6168
+ const LinksContainer = styled.div.withConfig({
6169
+ shouldForwardProp: (prop) => !["alignment", "mobileMenuAnimation"].includes(prop.toString())
6170
+ })`
5930
6171
  display: flex;
5931
6172
  align-items: center;
5932
6173
  flex-grow: 1;
@@ -5935,7 +6176,9 @@ const LinksContainer = styled.div`
5935
6176
  justify-content: ${alignment};
5936
6177
  `)}
5937
6178
  `;
5938
- const OpenIconContainer = styled.button`
6179
+ const OpenIconContainer = styled.button.withConfig({
6180
+ shouldForwardProp: (prop) => !["mobileMenuAnimation", "alignment", "color"].includes(prop.toString())
6181
+ })`
5939
6182
  display: none;
5940
6183
  flex-grow: 1;
5941
6184
  align-items: center;
@@ -6216,7 +6459,9 @@ const Grid = styled.div`
6216
6459
  flex-wrap: wrap;
6217
6460
  width: 100%;
6218
6461
  `;
6219
- const GridItem = styled.div`
6462
+ const GridItem = styled.div.withConfig({
6463
+ shouldForwardProp: (prop) => !["grid", "index", "rowGap", "columnGap"].includes(prop.toString())
6464
+ })`
6220
6465
  display: flex;
6221
6466
  align-items: flex-start;
6222
6467
  ${cssGridItem()}
@@ -6261,6 +6506,31 @@ function registerComponent$3(runtime) {
6261
6506
  }
6262
6507
  });
6263
6508
  }
6509
+ var _path$n;
6510
+ function _extends$n() {
6511
+ _extends$n = Object.assign || function(target) {
6512
+ for (var i = 1; i < arguments.length; i++) {
6513
+ var source = arguments[i];
6514
+ for (var key in source) {
6515
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
6516
+ target[key] = source[key];
6517
+ }
6518
+ }
6519
+ }
6520
+ return target;
6521
+ };
6522
+ return _extends$n.apply(this, arguments);
6523
+ }
6524
+ var SvgLogoAngellist20 = function SvgLogoAngellist202(props) {
6525
+ return /* @__PURE__ */ React.createElement("svg", _extends$n({
6526
+ xmlns: "http://www.w3.org/2000/svg",
6527
+ width: 20,
6528
+ height: 20,
6529
+ viewBox: "0 0 20 20"
6530
+ }, props), _path$n || (_path$n = /* @__PURE__ */ React.createElement("path", {
6531
+ 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"
6532
+ })));
6533
+ };
6264
6534
  var _path$m;
6265
6535
  function _extends$m() {
6266
6536
  _extends$m = Object.assign || function(target) {
@@ -6276,14 +6546,14 @@ function _extends$m() {
6276
6546
  };
6277
6547
  return _extends$m.apply(this, arguments);
6278
6548
  }
6279
- var SvgLogoAngellist20 = function SvgLogoAngellist202(props) {
6549
+ var SvgLogoCodepen20 = function SvgLogoCodepen202(props) {
6280
6550
  return /* @__PURE__ */ React.createElement("svg", _extends$m({
6281
6551
  xmlns: "http://www.w3.org/2000/svg",
6282
6552
  width: 20,
6283
6553
  height: 20,
6284
6554
  viewBox: "0 0 20 20"
6285
6555
  }, props), _path$m || (_path$m = /* @__PURE__ */ React.createElement("path", {
6286
- 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"
6556
+ 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"
6287
6557
  })));
6288
6558
  };
6289
6559
  var _path$l;
@@ -6301,14 +6571,14 @@ function _extends$l() {
6301
6571
  };
6302
6572
  return _extends$l.apply(this, arguments);
6303
6573
  }
6304
- var SvgLogoCodepen20 = function SvgLogoCodepen202(props) {
6574
+ var SvgLogoDiscord20 = function SvgLogoDiscord202(props) {
6305
6575
  return /* @__PURE__ */ React.createElement("svg", _extends$l({
6306
- xmlns: "http://www.w3.org/2000/svg",
6307
6576
  width: 20,
6308
6577
  height: 20,
6309
- viewBox: "0 0 20 20"
6578
+ viewBox: "0 0 20 20",
6579
+ xmlns: "http://www.w3.org/2000/svg"
6310
6580
  }, props), _path$l || (_path$l = /* @__PURE__ */ React.createElement("path", {
6311
- 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"
6581
+ 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"
6312
6582
  })));
6313
6583
  };
6314
6584
  var _path$k;
@@ -6821,6 +7091,11 @@ const SocialLinksOptions = [{
6821
7091
  label: "CodePen",
6822
7092
  icon: /* @__PURE__ */ jsx(SvgLogoCodepen20, {}),
6823
7093
  brandColor: "black"
7094
+ }, {
7095
+ type: "discord",
7096
+ label: "Discord",
7097
+ icon: /* @__PURE__ */ jsx(SvgLogoDiscord20, {}),
7098
+ brandColor: "#5865F2"
6824
7099
  }, {
6825
7100
  type: "dribbble",
6826
7101
  label: "Dribbble",
@@ -6947,7 +7222,9 @@ function SocialLinksPlaceholder({
6947
7222
  }, link.id))
6948
7223
  });
6949
7224
  }
6950
- const Container$1 = styled.div`
7225
+ const Container$1 = styled.div.withConfig({
7226
+ shouldForwardProp: (prop) => !["width", "margin", "alignment"].includes(prop.toString())
7227
+ })`
6951
7228
  display: flex;
6952
7229
  flex-direction: row;
6953
7230
  flex-wrap: wrap;
@@ -6956,7 +7233,9 @@ const Container$1 = styled.div`
6956
7233
  justify-content: ${alignment};
6957
7234
  `)}
6958
7235
  `;
6959
- const StyledLink$1 = styled(Link)`
7236
+ const StyledLink$1 = styled(Link).withConfig({
7237
+ shouldForwardProp: (prop) => !["brandColor", "shape", "size", "hoverStyle", "fill", "backgroundColor"].includes(prop.toString())
7238
+ })`
6960
7239
  display: block;
6961
7240
  color: ${(props) => props.brandColor};
6962
7241
  transition: transform, opacity 0.18s;
@@ -7524,7 +7803,9 @@ const RichTextEditor = styled(forwardRef(function RichTextEditor2(_ca, ref) {
7524
7803
  margin: 0;
7525
7804
  }
7526
7805
  `;
7527
- const StyledRichTextEditor = styled(RichTextEditor)`
7806
+ const StyledRichTextEditor = styled(RichTextEditor).withConfig({
7807
+ shouldForwardProp: (prop) => !["margin"].includes(prop.toString())
7808
+ })`
7528
7809
  ${cssMargin()}
7529
7810
  `;
7530
7811
  const defaultText = {
@@ -7708,7 +7989,9 @@ function registerComponent$1(runtime) {
7708
7989
  }
7709
7990
  });
7710
7991
  }
7711
- const Container = styled.div`
7992
+ const Container = styled.div.withConfig({
7993
+ shouldForwardProp: (prop) => !["margin", "borderRadius"].includes(prop.toString())
7994
+ })`
7712
7995
  display: flex;
7713
7996
  flex-direction: column;
7714
7997
  overflow: hidden;
@@ -8778,7 +9061,7 @@ const FindDomNode = forwardRef(function FindDomNode2(props, ref) {
8778
9061
  innerRef: ref
8779
9062
  }));
8780
9063
  });
8781
- const contextDefaultValue = configureStore();
9064
+ const storeContextDefaultValue = configureStore();
8782
9065
  function createReactRuntime(store) {
8783
9066
  return {
8784
9067
  registerComponent(component, {
@@ -8801,8 +9084,9 @@ function createReactRuntime(store) {
8801
9084
  }
8802
9085
  };
8803
9086
  }
8804
- const ReactRuntime = createReactRuntime(contextDefaultValue);
8805
- const Context = createContext(contextDefaultValue);
9087
+ const ReactRuntime = createReactRuntime(storeContextDefaultValue);
9088
+ registerBuiltinComponents(ReactRuntime);
9089
+ const Context = createContext(storeContextDefaultValue);
8806
9090
  function RuntimeProvider({
8807
9091
  client,
8808
9092
  children,
@@ -8810,16 +9094,11 @@ function RuntimeProvider({
8810
9094
  }) {
8811
9095
  const [store, setStore] = useState(() => {
8812
9096
  const store2 = configureStore({
8813
- preloadedState: contextDefaultValue.getState(),
9097
+ preloadedState: storeContextDefaultValue.getState(),
8814
9098
  rootElements
8815
9099
  });
8816
- const runtime = createReactRuntime(store2);
8817
- registerBuiltinComponents(runtime);
8818
9100
  return store2;
8819
9101
  });
8820
- useEffect(() => {
8821
- return registerBuiltinComponents(createReactRuntime(store));
8822
- }, [store]);
8823
9102
  useEffect(() => {
8824
9103
  var _a;
8825
9104
  const unregisterDocuments = Array.from((_a = rootElements == null ? void 0 : rootElements.entries()) != null ? _a : []).map(([documentKey, rootElement]) => store.dispatch(registerDocumentEffect(createDocument(documentKey, rootElement))));
@@ -8942,14 +9221,7 @@ const ElementReference = memo(forwardRef(function ElementReference2({
8942
9221
  const {
8943
9222
  error,
8944
9223
  data
8945
- } = useQuery(gql`
8946
- query ElementReferenceGlobalElement($id: ID!) {
8947
- globalElement(id: $id) {
8948
- id
8949
- data
8950
- }
8951
- }
8952
- `, {
9224
+ } = useQuery(ELEMENT_REFERENCE_GLOBAL_ELEMENT, {
8953
9225
  variables: {
8954
9226
  id: elementReference.value
8955
9227
  }