@makeswift/runtime 0.1.11 → 0.1.12

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 (33) hide show
  1. package/dist/components.cjs.js +1 -0
  2. package/dist/components.cjs.js.map +1 -1
  3. package/dist/components.es.js +1 -1
  4. package/dist/index.cjs.js +29 -13
  5. package/dist/index.cjs.js.map +1 -1
  6. package/dist/index.es.js +29 -14
  7. package/dist/index.es.js.map +1 -1
  8. package/dist/index.es2.js +1 -1
  9. package/dist/index.es3.js +1 -1
  10. package/dist/next.es.js +1 -1
  11. package/dist/react-builder-preview.es.js +1 -1
  12. package/dist/shape.cjs.js.map +1 -1
  13. package/dist/shape.es.js.map +1 -1
  14. package/dist/types/components/builtin/Box/register.d.ts.map +1 -1
  15. package/dist/types/components/builtin/Button/register.d.ts.map +1 -1
  16. package/dist/types/components/builtin/Carousel/register.d.ts.map +1 -1
  17. package/dist/types/components/builtin/Countdown/register.d.ts.map +1 -1
  18. package/dist/types/components/builtin/Divider/register.d.ts.map +1 -1
  19. package/dist/types/components/builtin/Embed/register.d.ts.map +1 -1
  20. package/dist/types/components/builtin/Form/register.d.ts.map +1 -1
  21. package/dist/types/components/builtin/Image/register.d.ts.map +1 -1
  22. package/dist/types/components/builtin/Navigation/register.d.ts.map +1 -1
  23. package/dist/types/components/builtin/Root/register.d.ts.map +1 -1
  24. package/dist/types/components/builtin/SocialLinks/register.d.ts.map +1 -1
  25. package/dist/types/components/builtin/Text/register.d.ts.map +1 -1
  26. package/dist/types/components/builtin/Video/register.d.ts.map +1 -1
  27. package/dist/types/components/builtin/constants.d.ts +20 -0
  28. package/dist/types/components/builtin/constants.d.ts.map +1 -0
  29. package/dist/types/components/builtin/index.d.ts +1 -0
  30. package/dist/types/components/builtin/index.d.ts.map +1 -1
  31. package/dist/types/controls/combobox.d.ts +1 -1
  32. package/dist/types/controls/combobox.d.ts.map +1 -1
  33. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -1072,6 +1072,21 @@ const getDeviceMediaQuery = (device) => {
1072
1072
  }
1073
1073
  return parts.join(" and ");
1074
1074
  };
1075
+ const MakeswiftComponentType = {
1076
+ Box: "./components/Box/index.js",
1077
+ Button: "./components/Button/index.js",
1078
+ Carousel: "./components/Carousel/index.js",
1079
+ Countdown: "./components/Countdown/index.js",
1080
+ Divider: "./components/Divider/index.js",
1081
+ Embed: "./components/Embed/index.js",
1082
+ Form: "./components/Form/index.js",
1083
+ Image: "./components/Image/index.js",
1084
+ Navigation: "./components/Navigation/index.js",
1085
+ Root: "./components/Root/index.js",
1086
+ SocialLinks: "./components/SocialLinks/index.js",
1087
+ Text: "./components/Text/index.js",
1088
+ Video: "./components/Video/index.js"
1089
+ };
1075
1090
  const DEFAULT_BOX_ANIMATE_TYPE = "none";
1076
1091
  const DEFAULT_BOX_ANIMATE_DELAY = 0;
1077
1092
  const DEFAULT_BOX_ANIMATE_DURATION = 0.75;
@@ -1088,7 +1103,7 @@ function registerComponent$c(runtime) {
1088
1103
  const isHiddenBasedOnBoxAnimation = (props, deviceId) => isHiddenBasedOnAnimationType(props, deviceId, "boxAnimateType");
1089
1104
  const isHiddenBasedOnItemAnimation = (props, deviceId) => isHiddenBasedOnAnimationType(props, deviceId, "itemAnimateType");
1090
1105
  return runtime.registerComponent(forwardNextDynamicRef((patch) => dynamic(() => patch(import("./Box.es.js")))), {
1091
- type: "./components/Box/index.js",
1106
+ type: MakeswiftComponentType.Box,
1092
1107
  label: "Box",
1093
1108
  props: {
1094
1109
  id: ElementID(),
@@ -1221,7 +1236,7 @@ function registerComponent$c(runtime) {
1221
1236
  }
1222
1237
  function registerComponent$b(runtime) {
1223
1238
  return runtime.registerComponent(forwardNextDynamicRef((patch) => dynamic(() => patch(import("./Button.es.js")))), {
1224
- type: "./components/Button/index.js",
1239
+ type: MakeswiftComponentType.Button,
1225
1240
  label: "Button",
1226
1241
  props: {
1227
1242
  id: ElementID(),
@@ -1285,7 +1300,7 @@ function registerComponent$b(runtime) {
1285
1300
  }
1286
1301
  function registerComponent$a(runtime) {
1287
1302
  return runtime.registerComponent(forwardNextDynamicRef((patch) => dynamic(() => patch(import("./Carousel.es.js")))), {
1288
- type: "./components/Carousel/index.js",
1303
+ type: MakeswiftComponentType.Carousel,
1289
1304
  label: "Carousel",
1290
1305
  icon: "Carousel40",
1291
1306
  props: {
@@ -1380,7 +1395,7 @@ function registerComponent$a(runtime) {
1380
1395
  }
1381
1396
  function registerComponent$9(runtime) {
1382
1397
  return runtime.registerComponent(forwardNextDynamicRef((patch) => dynamic(() => patch(import("./Countdown.es.js")))), {
1383
- type: "./components/Countdown/index.js",
1398
+ type: MakeswiftComponentType.Countdown,
1384
1399
  label: "Countdown",
1385
1400
  icon: "Countdown40",
1386
1401
  props: {
@@ -1464,7 +1479,7 @@ function registerComponent$9(runtime) {
1464
1479
  }
1465
1480
  function registerComponent$8(runtime) {
1466
1481
  return runtime.registerComponent(forwardNextDynamicRef((patch) => dynamic(() => patch(import("./Divider.es.js")))), {
1467
- type: "./components/Divider/index.js",
1482
+ type: MakeswiftComponentType.Divider,
1468
1483
  label: "Divider",
1469
1484
  icon: "Divider40",
1470
1485
  props: {
@@ -1493,7 +1508,7 @@ function registerComponent$8(runtime) {
1493
1508
  }
1494
1509
  function registerComponent$7(runtime) {
1495
1510
  return runtime.registerComponent(forwardNextDynamicRef((patch) => dynamic(() => patch(import("./Embed.es.js")))), {
1496
- type: "./components/Embed/index.js",
1511
+ type: MakeswiftComponentType.Embed,
1497
1512
  label: "Embed",
1498
1513
  icon: "Code40",
1499
1514
  props: {
@@ -1530,7 +1545,7 @@ function useFormContext() {
1530
1545
  const { Provider } = Context$1;
1531
1546
  function registerComponent$6(runtime) {
1532
1547
  return runtime.registerComponent(forwardNextDynamicRef((patch) => dynamic(() => patch(import("./Form.es.js")))), {
1533
- type: "./components/Form/index.js",
1548
+ type: MakeswiftComponentType.Form,
1534
1549
  label: "Form",
1535
1550
  icon: "Form40",
1536
1551
  props: {
@@ -1645,7 +1660,7 @@ function registerComponent$6(runtime) {
1645
1660
  }
1646
1661
  function registerComponent$5(runtime) {
1647
1662
  return runtime.registerComponent(forwardNextDynamicRef((patch) => dynamic(() => patch(import("./Image.es2.js")))), {
1648
- type: "./components/Image/index.js",
1663
+ type: MakeswiftComponentType.Image,
1649
1664
  label: "Image",
1650
1665
  props: {
1651
1666
  id: ElementID(),
@@ -1664,7 +1679,7 @@ function registerComponent$5(runtime) {
1664
1679
  }
1665
1680
  function registerComponent$4(runtime) {
1666
1681
  return runtime.registerComponent(forwardNextDynamicRef((patch) => dynamic(() => patch(import("./Navigation.es.js")))), {
1667
- type: "./components/Navigation/index.js",
1682
+ type: MakeswiftComponentType.Navigation,
1668
1683
  label: "Navigation",
1669
1684
  icon: "Navigation40",
1670
1685
  props: {
@@ -1756,7 +1771,7 @@ function registerComponent$4(runtime) {
1756
1771
  }
1757
1772
  function registerComponent$3(runtime) {
1758
1773
  return runtime.registerComponent(forwardNextDynamicRef((patch) => dynamic(() => patch(import("./Root.es.js")))), {
1759
- type: "./components/Root/index.js",
1774
+ type: MakeswiftComponentType.Root,
1760
1775
  label: "Page",
1761
1776
  hidden: true,
1762
1777
  props: {
@@ -1769,7 +1784,7 @@ function registerComponent$3(runtime) {
1769
1784
  }
1770
1785
  function registerComponent$2(runtime) {
1771
1786
  return runtime.registerComponent(forwardNextDynamicRef((patch) => dynamic(() => patch(import("./SocialLinks.es.js")))), {
1772
- type: "./components/SocialLinks/index.js",
1787
+ type: MakeswiftComponentType.SocialLinks,
1773
1788
  label: "Social Links",
1774
1789
  icon: "SocialLinks40",
1775
1790
  props: {
@@ -1888,7 +1903,7 @@ function registerComponent$2(runtime) {
1888
1903
  }
1889
1904
  function registerComponent$1(runtime) {
1890
1905
  return runtime.registerComponent(forwardNextDynamicRef((patch) => dynamic(() => patch(import("./Text.es.js")))), {
1891
- type: "./components/Text/index.js",
1906
+ type: MakeswiftComponentType.Text,
1892
1907
  label: "Text",
1893
1908
  props: {
1894
1909
  id: ElementID(),
@@ -1957,7 +1972,7 @@ function registerComponent$1(runtime) {
1957
1972
  }
1958
1973
  function registerComponent(runtime) {
1959
1974
  return runtime.registerComponent(forwardNextDynamicRef((patch) => dynamic(() => patch(import("./Video.es.js")))), {
1960
- type: "./components/Video/index.js",
1975
+ type: MakeswiftComponentType.Video,
1961
1976
  label: "Video",
1962
1977
  icon: "Video40",
1963
1978
  props: {
@@ -3255,5 +3270,5 @@ const DocumentReference = memo(forwardRef(function DocumentReference2({
3255
3270
  document: document2
3256
3271
  });
3257
3272
  }));
3258
- export { Alignments as A, TYPOGRAPHIES_BY_ID as B, Contrasts as C, DocumentReference as D, Element as E, SWATCHES_BY_ID as F, shallowMergeFallbacks as G, join as H, getDevice as I, getDeviceMediaQuery as J, getIndexes as K, isNonNullable as L, FILES_BY_ID as M, useElementId as N, deepEqual as O, PageProvider as P, MakeswiftClient as Q, RuntimeProvider as R, SITE_FONTS_QUERY as S, TABLE_BY_ID as T, Document$1 as U, getServerSideProps as V, getStaticProps as W, getStaticPaths as X, Page as Y, forwardNextDynamicRef as Z, ReactRuntime as a, usePageId as b, DEFAULT_BOX_ANIMATE_TYPE as c, DEFAULT_BOX_ANIMATE_DELAY as d, DEFAULT_BOX_ANIMATE_DURATION as e, DEFAULT_ITEM_ANIMATE_TYPE as f, DEFAULT_ITEM_ANIMATE_DELAY as g, DEFAULT_ITEM_ANIMATE_DURATION as h, DEFAULT_ITEM_STAGGER_DURATION as i, useBorder as j, useResponsiveColor as k, useFile as l, usePage as m, PAGE_SNIPPETS_QUERY as n, Page$1 as o, colorToString as p, useIsomorphicLayoutEffect as q, Shapes as r, Sizes as s, useFormContext as t, useIsInBuilder as u, useQuery as v, useMutation as w, Provider as x, DEVICES as y, findDeviceOverride as z };
3273
+ export { Alignments as A, TYPOGRAPHIES_BY_ID as B, Contrasts as C, DocumentReference as D, Element as E, SWATCHES_BY_ID as F, shallowMergeFallbacks as G, join as H, getDevice as I, getDeviceMediaQuery as J, getIndexes as K, isNonNullable as L, MakeswiftComponentType as M, FILES_BY_ID as N, useElementId as O, PageProvider as P, deepEqual as Q, RuntimeProvider as R, SITE_FONTS_QUERY as S, TABLE_BY_ID as T, MakeswiftClient as U, Document$1 as V, getServerSideProps as W, getStaticProps as X, getStaticPaths as Y, Page as Z, forwardNextDynamicRef as _, ReactRuntime as a, usePageId as b, DEFAULT_BOX_ANIMATE_TYPE as c, DEFAULT_BOX_ANIMATE_DELAY as d, DEFAULT_BOX_ANIMATE_DURATION as e, DEFAULT_ITEM_ANIMATE_TYPE as f, DEFAULT_ITEM_ANIMATE_DELAY as g, DEFAULT_ITEM_ANIMATE_DURATION as h, DEFAULT_ITEM_STAGGER_DURATION as i, useBorder as j, useResponsiveColor as k, useFile as l, usePage as m, PAGE_SNIPPETS_QUERY as n, Page$1 as o, colorToString as p, useIsomorphicLayoutEffect as q, Shapes as r, Sizes as s, useFormContext as t, useIsInBuilder as u, useQuery as v, useMutation as w, Provider as x, DEVICES as y, findDeviceOverride as z };
3259
3274
  //# sourceMappingURL=index.es.js.map