@makeswift/runtime 0.1.4 → 0.1.7
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/Box.cjs.js +4 -3
- package/dist/Box.cjs.js.map +1 -1
- package/dist/Box.es.js +5 -4
- package/dist/Box.es.js.map +1 -1
- package/dist/Button.cjs.js +5 -3
- package/dist/Button.cjs.js.map +1 -1
- package/dist/Button.es.js +16 -14
- package/dist/Button.es.js.map +1 -1
- package/dist/Carousel.cjs.js +4 -3
- package/dist/Carousel.cjs.js.map +1 -1
- package/dist/Carousel.es.js +5 -4
- package/dist/Carousel.es.js.map +1 -1
- package/dist/Countdown.cjs.js +4 -3
- package/dist/Countdown.cjs.js.map +1 -1
- package/dist/Countdown.es.js +5 -4
- package/dist/Countdown.es.js.map +1 -1
- package/dist/Divider.cjs.js +4 -3
- package/dist/Divider.cjs.js.map +1 -1
- package/dist/Divider.es.js +5 -4
- package/dist/Divider.es.js.map +1 -1
- package/dist/Embed.cjs.js +4 -3
- package/dist/Embed.cjs.js.map +1 -1
- package/dist/Embed.es.js +5 -4
- package/dist/Embed.es.js.map +1 -1
- package/dist/Form.cjs.js +7 -3
- package/dist/Form.cjs.js.map +1 -1
- package/dist/Form.es.js +9 -5
- package/dist/Form.es.js.map +1 -1
- package/dist/Image.cjs2.js +6 -4
- package/dist/Image.cjs2.js.map +1 -1
- package/dist/Image.es2.js +10 -8
- package/dist/Image.es2.js.map +1 -1
- package/dist/Navigation.cjs.js +4 -3
- package/dist/Navigation.cjs.js.map +1 -1
- package/dist/Navigation.es.js +5 -4
- package/dist/Navigation.es.js.map +1 -1
- package/dist/SocialLinks.cjs.js +3 -2
- package/dist/SocialLinks.cjs.js.map +1 -1
- package/dist/SocialLinks.es.js +4 -3
- package/dist/SocialLinks.es.js.map +1 -1
- package/dist/Text.cjs.js +4 -3
- package/dist/Text.cjs.js.map +1 -1
- package/dist/Text.es.js +6 -5
- package/dist/Text.es.js.map +1 -1
- package/dist/Video.cjs.js +4 -3
- package/dist/Video.cjs.js.map +1 -1
- package/dist/Video.es.js +5 -4
- package/dist/Video.es.js.map +1 -1
- package/dist/components.cjs.js +1 -1
- package/dist/components.es.js +1 -1
- package/dist/cssMediaRules.es.js +1 -1
- package/dist/index.cjs.js +13 -32
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +14 -32
- package/dist/index.es.js.map +1 -1
- package/dist/index.es2.js +1 -1
- package/dist/index.es3.js +1 -1
- package/dist/next.es.js +1 -1
- package/dist/react-builder-preview.es.js +1 -1
- package/dist/types/api/react.d.ts.map +1 -1
- package/dist/types/components/builtin/Box/Box.d.ts +2 -2
- package/dist/types/components/builtin/Box/Box.d.ts.map +1 -1
- package/dist/types/components/builtin/Button/Button.d.ts +2 -1
- package/dist/types/components/builtin/Button/Button.d.ts.map +1 -1
- package/dist/types/components/builtin/Carousel/Carousel.d.ts +2 -2
- package/dist/types/components/builtin/Carousel/Carousel.d.ts.map +1 -1
- package/dist/types/components/builtin/Carousel/register.d.ts.map +1 -1
- package/dist/types/components/builtin/Countdown/Countdown.d.ts +2 -2
- package/dist/types/components/builtin/Countdown/Countdown.d.ts.map +1 -1
- package/dist/types/components/builtin/Countdown/register.d.ts.map +1 -1
- package/dist/types/components/builtin/Divider/Divider.d.ts +2 -2
- package/dist/types/components/builtin/Divider/Divider.d.ts.map +1 -1
- package/dist/types/components/builtin/Divider/register.d.ts.map +1 -1
- package/dist/types/components/builtin/Embed/Embed.d.ts +2 -2
- package/dist/types/components/builtin/Embed/Embed.d.ts.map +1 -1
- package/dist/types/components/builtin/Form/Form.d.ts +2 -2
- package/dist/types/components/builtin/Form/Form.d.ts.map +1 -1
- package/dist/types/components/builtin/Form/components/Placeholder/index.d.ts +2 -1
- package/dist/types/components/builtin/Form/components/Placeholder/index.d.ts.map +1 -1
- package/dist/types/components/builtin/Form/register.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 +2 -2
- package/dist/types/components/builtin/Navigation/Navigation.d.ts.map +1 -1
- package/dist/types/components/builtin/Navigation/register.d.ts.map +1 -1
- package/dist/types/components/builtin/SocialLinks/SocialLinks.d.ts +2 -2
- package/dist/types/components/builtin/SocialLinks/SocialLinks.d.ts.map +1 -1
- package/dist/types/components/builtin/SocialLinks/register.d.ts.map +1 -1
- package/dist/types/components/builtin/Text/Text.d.ts +2 -2
- package/dist/types/components/builtin/Text/Text.d.ts.map +1 -1
- package/dist/types/components/builtin/Text/register.d.ts.map +1 -1
- package/dist/types/components/builtin/Video/Video.d.ts +2 -2
- package/dist/types/components/builtin/Video/Video.d.ts.map +1 -1
- package/dist/types/components/builtin/Video/register.d.ts.map +1 -1
- package/dist/useBoxShadow.es.js +1 -1
- package/dist/useMediaQuery.es.js +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -448,6 +448,8 @@ class MakeswiftClient {
|
|
|
448
448
|
variables: introspectionData
|
|
449
449
|
});
|
|
450
450
|
res.data.pagePathnamesById.forEach((pagePathnameSlice) => {
|
|
451
|
+
if (pagePathnameSlice == null)
|
|
452
|
+
return;
|
|
451
453
|
const id = Buffer.from(`Page:${pagePathnameSlice.id}`).toString("base64");
|
|
452
454
|
this.apolloClient.cache.writeFragment({
|
|
453
455
|
fragment: PagePathnameSliceFragmentDoc,
|
|
@@ -773,13 +775,13 @@ function Page$1({
|
|
|
773
775
|
content: socialImage.publicUrl
|
|
774
776
|
}), /* @__PURE__ */ jsx("meta", {
|
|
775
777
|
property: "og:image:type",
|
|
776
|
-
content: socialImage.
|
|
778
|
+
content: socialImage.mimetype
|
|
777
779
|
}), /* @__PURE__ */ jsx("meta", {
|
|
778
780
|
name: "twitter:image",
|
|
779
781
|
content: socialImage.publicUrl
|
|
780
782
|
}), /* @__PURE__ */ jsx("meta", {
|
|
781
783
|
name: "twitter:card",
|
|
782
|
-
content:
|
|
784
|
+
content: "summary_large_image"
|
|
783
785
|
}), /* @__PURE__ */ jsx("meta", {
|
|
784
786
|
itemProp: "image",
|
|
785
787
|
content: socialImage.publicUrl
|
|
@@ -1091,7 +1093,7 @@ function registerComponent$c(runtime) {
|
|
|
1091
1093
|
props: {
|
|
1092
1094
|
id: ElementID(),
|
|
1093
1095
|
backgrounds: Backgrounds(),
|
|
1094
|
-
width: Width(
|
|
1096
|
+
width: Width(),
|
|
1095
1097
|
height: ResponsiveIconRadioGroup({
|
|
1096
1098
|
label: "Height",
|
|
1097
1099
|
options: [
|
|
@@ -1295,10 +1297,7 @@ function registerComponent$a(runtime) {
|
|
|
1295
1297
|
{ key: uuid(), props: {} }
|
|
1296
1298
|
]
|
|
1297
1299
|
}),
|
|
1298
|
-
width: Width({
|
|
1299
|
-
format: Width.Formats.ClassName,
|
|
1300
|
-
defaultValue: { value: 400, unit: "px" }
|
|
1301
|
-
}),
|
|
1300
|
+
width: Width({ defaultValue: { value: 400, unit: "px" } }),
|
|
1302
1301
|
margin: Margin(),
|
|
1303
1302
|
pageSize: ResponsiveNumber((props) => {
|
|
1304
1303
|
var _a;
|
|
@@ -1448,10 +1447,7 @@ function registerComponent$9(runtime) {
|
|
|
1448
1447
|
label: "Label color",
|
|
1449
1448
|
placeholder: "black"
|
|
1450
1449
|
}),
|
|
1451
|
-
width: Width({
|
|
1452
|
-
format: Width.Formats.ClassName,
|
|
1453
|
-
defaultValue: { value: 560, unit: "px" }
|
|
1454
|
-
}),
|
|
1450
|
+
width: Width({ defaultValue: { value: 560, unit: "px" } }),
|
|
1455
1451
|
margin: Margin(),
|
|
1456
1452
|
daysLabel: TextInput({ label: "Days label", placeholder: "Days" }),
|
|
1457
1453
|
hoursLabel: TextInput({ label: "Hours label", placeholder: "Hours" }),
|
|
@@ -1490,10 +1486,7 @@ function registerComponent$8(runtime) {
|
|
|
1490
1486
|
options: [{ value: "px", label: "Pixels", icon: "Px16" }]
|
|
1491
1487
|
}),
|
|
1492
1488
|
color: ResponsiveColor({ placeholder: "black" }),
|
|
1493
|
-
width: Width({
|
|
1494
|
-
format: Width.Formats.ClassName,
|
|
1495
|
-
defaultValue: { value: 100, unit: "%" }
|
|
1496
|
-
}),
|
|
1489
|
+
width: Width({ defaultValue: { value: 100, unit: "%" } }),
|
|
1497
1490
|
margin: Margin()
|
|
1498
1491
|
}
|
|
1499
1492
|
});
|
|
@@ -1506,7 +1499,7 @@ function registerComponent$7(runtime) {
|
|
|
1506
1499
|
props: {
|
|
1507
1500
|
id: ElementID(),
|
|
1508
1501
|
html: TextArea({ label: "Code", rows: 20 }),
|
|
1509
|
-
width: Width({
|
|
1502
|
+
width: Width({}),
|
|
1510
1503
|
margin: Margin()
|
|
1511
1504
|
}
|
|
1512
1505
|
});
|
|
@@ -1643,7 +1636,6 @@ function registerComponent$6(runtime) {
|
|
|
1643
1636
|
hidden: props.tableId == null
|
|
1644
1637
|
})),
|
|
1645
1638
|
width: Width({
|
|
1646
|
-
format: Width.Formats.ClassName,
|
|
1647
1639
|
preset: [{ deviceId: "desktop", value: { value: 550, unit: "px" } }],
|
|
1648
1640
|
defaultValue: { value: 100, unit: "%" }
|
|
1649
1641
|
}),
|
|
@@ -1757,10 +1749,7 @@ function registerComponent$4(runtime) {
|
|
|
1757
1749
|
hidden
|
|
1758
1750
|
};
|
|
1759
1751
|
}),
|
|
1760
|
-
width: Width({
|
|
1761
|
-
format: Width.Formats.ClassName,
|
|
1762
|
-
defaultValue: { value: 100, unit: "%" }
|
|
1763
|
-
}),
|
|
1752
|
+
width: Width({ defaultValue: { value: 100, unit: "%" } }),
|
|
1764
1753
|
margin: Margin()
|
|
1765
1754
|
}
|
|
1766
1755
|
});
|
|
@@ -1880,10 +1869,7 @@ function registerComponent$2(runtime) {
|
|
|
1880
1869
|
step: 1,
|
|
1881
1870
|
defaultValue: { value: 0, unit: "px" }
|
|
1882
1871
|
}),
|
|
1883
|
-
width: Width({
|
|
1884
|
-
format: Width.Formats.ClassName,
|
|
1885
|
-
defaultValue: { value: 100, unit: "%" }
|
|
1886
|
-
}),
|
|
1872
|
+
width: Width({ defaultValue: { value: 100, unit: "%" } }),
|
|
1887
1873
|
margin: Margin({
|
|
1888
1874
|
preset: [
|
|
1889
1875
|
{
|
|
@@ -1950,7 +1936,6 @@ function registerComponent$1(runtime) {
|
|
|
1950
1936
|
}
|
|
1951
1937
|
})),
|
|
1952
1938
|
width: Width({
|
|
1953
|
-
format: Width.Formats.ClassName,
|
|
1954
1939
|
preset: [{ deviceId: "desktop", value: { value: 700, unit: "px" } }],
|
|
1955
1940
|
defaultValue: { value: 100, unit: "%" }
|
|
1956
1941
|
}),
|
|
@@ -1978,10 +1963,7 @@ function registerComponent(runtime) {
|
|
|
1978
1963
|
props: {
|
|
1979
1964
|
id: ElementID(),
|
|
1980
1965
|
video: Video({ preset: { controls: true } }),
|
|
1981
|
-
width: Width({
|
|
1982
|
-
format: Width.Formats.ClassName,
|
|
1983
|
-
defaultValue: { value: 560, unit: "px" }
|
|
1984
|
-
}),
|
|
1966
|
+
width: Width({ defaultValue: { value: 560, unit: "px" } }),
|
|
1985
1967
|
margin: Margin(),
|
|
1986
1968
|
borderRadius: BorderRadius()
|
|
1987
1969
|
}
|
|
@@ -2973,7 +2955,7 @@ const ElementData = memo(forwardRef(function ElementData2({
|
|
|
2973
2955
|
suppressRefWarning(`\`ForwardRef(${ElementData2.name})\``);
|
|
2974
2956
|
if (Component2 == null) {
|
|
2975
2957
|
return /* @__PURE__ */ jsx(FallbackComponent, {
|
|
2976
|
-
ref,
|
|
2958
|
+
ref: setHandle,
|
|
2977
2959
|
text: "Component not found"
|
|
2978
2960
|
});
|
|
2979
2961
|
}
|
|
@@ -3079,5 +3061,5 @@ const DocumentReference = memo(forwardRef(function DocumentReference2({
|
|
|
3079
3061
|
document: document2
|
|
3080
3062
|
});
|
|
3081
3063
|
}));
|
|
3082
|
-
export { Alignments as A,
|
|
3064
|
+
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, isNonNullable as K, FILES_BY_ID as L, useElementId as M, deepEqual as N, MakeswiftClient as O, PageProvider as P, Document$1 as Q, RuntimeProvider as R, SITE_FONTS_QUERY as S, TABLE_BY_ID as T, getServerSideProps as U, getStaticProps as V, getStaticPaths as W, Page as X, forwardNextDynamicRef as Y, 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 };
|
|
3083
3065
|
//# sourceMappingURL=index.es.js.map
|