@makeswift/runtime 0.9.3 → 0.9.4

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 (115) hide show
  1. package/dist/Box.cjs.js +1 -1
  2. package/dist/Box.es.js +2 -2
  3. package/dist/Button.cjs.js +1 -1
  4. package/dist/Button.es.js +2 -2
  5. package/dist/Carousel.cjs.js +1 -1
  6. package/dist/Carousel.es.js +2 -2
  7. package/dist/Countdown.cjs.js +1 -1
  8. package/dist/Countdown.es.js +2 -2
  9. package/dist/Divider.cjs.js +1 -1
  10. package/dist/Divider.es.js +2 -2
  11. package/dist/Embed.es.js +1 -1
  12. package/dist/Form.cjs.js +1 -1
  13. package/dist/Form.es.js +2 -2
  14. package/dist/Image.cjs.js +1 -1
  15. package/dist/Image.es.js +2 -2
  16. package/dist/LiveProvider.cjs.js +1 -1
  17. package/dist/LiveProvider.es.js +1 -1
  18. package/dist/Navigation.cjs.js +1 -1
  19. package/dist/Navigation.es.js +2 -2
  20. package/dist/PreviewProvider.cjs.js +1 -1
  21. package/dist/PreviewProvider.es.js +2 -2
  22. package/dist/ReadOnlyText.cjs.js +3 -4
  23. package/dist/ReadOnlyText.cjs.js.map +1 -1
  24. package/dist/ReadOnlyText.es.js +3 -4
  25. package/dist/ReadOnlyText.es.js.map +1 -1
  26. package/dist/ReadOnlyTextV2.cjs.js +10 -11
  27. package/dist/ReadOnlyTextV2.cjs.js.map +1 -1
  28. package/dist/ReadOnlyTextV2.es.js +9 -10
  29. package/dist/ReadOnlyTextV2.es.js.map +1 -1
  30. package/dist/Root.cjs.js +1 -1
  31. package/dist/Root.es.js +2 -2
  32. package/dist/SocialLinks.cjs.js +1 -1
  33. package/dist/SocialLinks.es.js +2 -2
  34. package/dist/Text.cjs.js +1 -1
  35. package/dist/Text.es.js +1 -1
  36. package/dist/Video.es.js +1 -1
  37. package/dist/components.cjs.js +1 -1
  38. package/dist/components.es.js +1 -1
  39. package/dist/control-serialization.es.js +1 -1
  40. package/dist/controls.cjs.js +18 -14
  41. package/dist/controls.cjs.js.map +1 -1
  42. package/dist/controls.es.js +2 -2
  43. package/dist/index.cjs.js +161 -49
  44. package/dist/index.cjs.js.map +1 -1
  45. package/dist/index.cjs10.js +22 -10
  46. package/dist/index.cjs10.js.map +1 -1
  47. package/dist/index.cjs5.js +99 -5
  48. package/dist/index.cjs5.js.map +1 -1
  49. package/dist/index.cjs8.js +1 -1
  50. package/dist/index.cjs9.js +1 -1
  51. package/dist/index.es.js +148 -37
  52. package/dist/index.es.js.map +1 -1
  53. package/dist/index.es10.js +23 -11
  54. package/dist/index.es10.js.map +1 -1
  55. package/dist/index.es2.js +1 -1
  56. package/dist/index.es4.js +1 -1
  57. package/dist/index.es5.js +91 -2
  58. package/dist/index.es5.js.map +1 -1
  59. package/dist/index.es6.js +1 -1
  60. package/dist/index.es8.js +1 -1
  61. package/dist/index.es9.js +2 -2
  62. package/dist/next.cjs.js +1 -1
  63. package/dist/next.es.js +2 -2
  64. package/dist/react-page.cjs.js +97 -8
  65. package/dist/react-page.cjs.js.map +1 -1
  66. package/dist/react-page.es.js +95 -8
  67. package/dist/react-page.es.js.map +1 -1
  68. package/dist/react.cjs.js +1 -1
  69. package/dist/react.es.js +1 -1
  70. package/dist/slate.cjs.js +17 -70
  71. package/dist/slate.cjs.js.map +1 -1
  72. package/dist/slate.es.js +20 -74
  73. package/dist/slate.es.js.map +1 -1
  74. package/dist/types/src/components/builtin/Button/Button.d.ts +1 -1
  75. package/dist/types/src/components/builtin/Form/components/Field/components/Checkbox/index.d.ts +1 -1
  76. package/dist/types/src/components/builtin/Text/ReadOnlyText.d.ts.map +1 -1
  77. package/dist/types/src/components/builtin/Text/components/Leaf/leaf.d.ts +0 -17
  78. package/dist/types/src/components/builtin/Text/components/Leaf/leaf.d.ts.map +1 -1
  79. package/dist/types/src/controls/control.d.ts +3 -2
  80. package/dist/types/src/controls/control.d.ts.map +1 -1
  81. package/dist/types/src/controls/index.d.ts +1 -0
  82. package/dist/types/src/controls/index.d.ts.map +1 -1
  83. package/dist/types/src/controls/list.d.ts +2 -0
  84. package/dist/types/src/controls/list.d.ts.map +1 -1
  85. package/dist/types/src/controls/shape.d.ts +2 -0
  86. package/dist/types/src/controls/shape.d.ts.map +1 -1
  87. package/dist/types/src/controls/typography.d.ts +31 -0
  88. package/dist/types/src/controls/typography.d.ts.map +1 -0
  89. package/dist/types/src/next/client.d.ts.map +1 -1
  90. package/dist/types/src/prop-controllers/descriptors.d.ts +6 -3
  91. package/dist/types/src/prop-controllers/descriptors.d.ts.map +1 -1
  92. package/dist/types/src/prop-controllers/introspection.d.ts +1 -1
  93. package/dist/types/src/prop-controllers/introspection.d.ts.map +1 -1
  94. package/dist/types/src/runtimes/react/controls/control.d.ts +3 -2
  95. package/dist/types/src/runtimes/react/controls/control.d.ts.map +1 -1
  96. package/dist/types/src/runtimes/react/controls/rich-text-v2/ReadOnlyTextV2.d.ts.map +1 -1
  97. package/dist/types/src/runtimes/react/controls/typography.d.ts +21 -0
  98. package/dist/types/src/runtimes/react/controls/typography.d.ts.map +1 -0
  99. package/dist/types/src/runtimes/react/controls.d.ts.map +1 -1
  100. package/dist/types/src/slate/TypographyPlugin/index.d.ts +9 -0
  101. package/dist/types/src/slate/TypographyPlugin/index.d.ts.map +1 -1
  102. package/dist/types.cjs2.js +5 -5
  103. package/dist/types.cjs2.js.map +1 -1
  104. package/dist/types.es2.js +2 -2
  105. package/dist/{text-input.cjs.js → typography.cjs.js} +9 -1
  106. package/dist/typography.cjs.js.map +1 -0
  107. package/dist/{text-input.es.js → typography.es.js} +8 -2
  108. package/dist/typography.es.js.map +1 -0
  109. package/package.json +1 -1
  110. package/dist/leaf.cjs.js +0 -182
  111. package/dist/leaf.cjs.js.map +0 -1
  112. package/dist/leaf.es.js +0 -179
  113. package/dist/leaf.es.js.map +0 -1
  114. package/dist/text-input.cjs.js.map +0 -1
  115. package/dist/text-input.es.js.map +0 -1
package/dist/index.es.js CHANGED
@@ -38,17 +38,17 @@ import * as React from "react";
38
38
  import { useEffect, createContext, useContext, useState, useMemo, useRef, Children, createElement, forwardRef, memo, useId, useCallback, useImperativeHandle, Component, Suspense } from "react";
39
39
  import { useSyncExternalStoreWithSelector } from "use-sync-external-store/shim/with-selector";
40
40
  import dynamic from "next/dynamic";
41
- import { a as createDocumentReference, g as getPropControllerDescriptors, b as isElementReference, e as getElementSwatchIds, f as getFileIds, h as getTypographyIds, j as getTableIds, k as getPageIds, l as getElementChildren, S as ShapeControlType, L as ListControlType, m as Types, E as ElementID, B as Backgrounds, W as Width, n as ResponsiveIconRadioGroup, M as Margin, P as Padding, o as Border, p as BorderRadius, q as Shadows, G as GapY, r as GapX, s as ResponsiveSelect, t as ResponsiveNumber, u as Checkbox, v as Grid, w as TextInput, x as Link, y as ResponsiveColor, z as TextStyle, C as ComponentIcon, I as Images, N as Number$1, D as Date$1, F as Font, A as ResponsiveLength, H as TextArea, J as Table, K as TableFormFields, O as Image, Q as ResponsiveOpacity, U as NavigationLinks, V as SocialLinks, X as RichText, Y as Video, Z as useStyle, _ as getBorderSwatchIds, $ as isNonNullable, a0 as getBoxShadowsSwatchIds, a1 as getResponsiveColorSwatchIds, a2 as StyleControlProperty, a3 as ImageControlValueFormat, a4 as isPropControllersHandle, a5 as StyleControlType, a6 as RichTextV2ControlType, a7 as RichTextControlType, a8 as SlotControlType, a9 as StyleV2ControlType, aa as LinkControlType, ab as ImageControlType, ac as ColorControlType, ad as getComponentPropControllerDescriptors, ae as getPropControllers, af as BorderPropControllerFormat, ag as ShadowsPropControllerFormat, ah as BorderRadiusPropControllerFormat, ai as MarginPropControllerFormat, aj as PaddingPropControllerFormat, ak as WidthPropControllerFormat, al as configureStore$1, am as copyElementTree, an as getBreakpoints, ao as getDocument, ap as getElementId, aq as getIsPreview, ar as getIsInBuilder, as as getReactComponent, at as getBuilderEditMode } from "./react-page.es.js";
41
+ import { a as createDocumentReference, g as getPropControllerDescriptors, b as isElementReference, e as getSwatchIds, f as getFileIds, h as getTypographyIds, j as getTableIds, k as getPageIds, l as getElementChildren, E as ElementID, B as Backgrounds, W as Width, m as ResponsiveIconRadioGroup, M as Margin, P as Padding, n as Border, o as BorderRadius, S as Shadows, G as GapY, p as GapX, q as ResponsiveSelect, r as ResponsiveNumber, s as Checkbox, t as Grid, u as TextInput, L as Link, v as ResponsiveColor, w as TextStyle, C as ComponentIcon, I as Images, N as Number$1, D as Date$1, F as Font, x as ResponsiveLength, y as TextArea, z as Table, A as TableFormFields, H as Image, J as ResponsiveOpacity, K as NavigationLinks, O as SocialLinks, Q as RichText, V as Video, U as useStyle, X as getBorderSwatchIds, Y as isNonNullable$1, Z as getBoxShadowsSwatchIds, _ as getResponsiveColorSwatchIds, $ as StyleControlProperty, a0 as ImageControlValueFormat, a1 as isPropControllersHandle, a2 as StyleControlType, a3 as RichTextV2ControlType, a4 as RichTextControlType, a5 as SlotControlType, a6 as StyleV2ControlType, a7 as ListControlType, a8 as ShapeControlType, a9 as LinkControlType, aa as ImageControlType, ab as ColorControlType, ac as getComponentPropControllerDescriptors, ad as getPropControllers, ae as Types, af as BorderPropControllerFormat, ag as ShadowsPropControllerFormat, ah as BorderRadiusPropControllerFormat, ai as MarginPropControllerFormat, aj as PaddingPropControllerFormat, ak as WidthPropControllerFormat, al as configureStore$1, am as copyElementTree, an as getBreakpoints, ao as getDocument, ap as getElementId, aq as getIsPreview, ar as getIsInBuilder, as as getReactComponent, at as getBuilderEditMode } from "./react-page.es.js";
42
42
  import { A as ActionTypes, n as apiResourceFulfilled, o as registerComponentEffect, p as registerReactComponentEffect, q as registerComponentHandleEffect, t as mountComponentEffect } from "./actions.es.js";
43
43
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
44
- import { I as IconRadioGroupControlType, S as SelectControlType, T as TextAreaControlType, a as TextInputControlType, N as NumberControlType, C as CheckboxControlType } from "./text-input.es.js";
44
+ import { T as TypographyControlType, I as IconRadioGroupControlType, S as SelectControlType, a as TextAreaControlType, b as TextInputControlType, N as NumberControlType, C as CheckboxControlType } from "./typography.es.js";
45
45
  import { C as ComboboxControlType } from "./combobox.es.js";
46
46
  import "slate";
47
47
  import { useSyncExternalStore } from "use-sync-external-store/shim";
48
48
  import { createStore, applyMiddleware } from "redux";
49
49
  import thunk from "redux-thunk";
50
50
  import { A as APIResourceType } from "./types.es.js";
51
- import { getBaseBreakpoint, findBreakpointOverride, DefaultBreakpointID, join, getBreakpoint, getBreakpointMediaQuery, parseBreakpointsInput } from "./state/breakpoints.es.js";
51
+ import { getBaseBreakpoint, findBreakpointOverride, DefaultBreakpointID, join, getBreakpoint, getBreakpointMediaQuery, shallowMergeFallbacks, parseBreakpointsInput } from "./state/breakpoints.es.js";
52
52
  import { g as getBox, i as isMeasurable, m as measure } from "./box-models.es.js";
53
53
  import ColorHelper from "color";
54
54
  import { cache, cx } from "@emotion/css";
@@ -925,7 +925,7 @@ Received "${apiKey}" instead.`);
925
925
  while (current = remaining.pop()) {
926
926
  let getResourcesFromElementDescriptors = function(elementDescriptors2, props) {
927
927
  Object.entries(elementDescriptors2).forEach(([propName, descriptor]) => {
928
- getElementSwatchIds(descriptor, props[propName]).forEach((swatchId) => {
928
+ getSwatchIds(descriptor, props[propName]).forEach((swatchId) => {
929
929
  swatchIds.add(swatchId);
930
930
  });
931
931
  getFileIds(descriptor, props[propName]).forEach((fileId) => fileIds.add(fileId));
@@ -938,34 +938,6 @@ Received "${apiKey}" instead.`);
938
938
  remaining.push(child);
939
939
  }
940
940
  });
941
- if (descriptor.type === ShapeControlType) {
942
- const prop = props[propName];
943
- if (prop == null)
944
- return;
945
- getResourcesFromElementDescriptors(descriptor.config.type, prop);
946
- }
947
- if (descriptor.type === ListControlType) {
948
- const prop = props[propName];
949
- if (prop == null)
950
- return;
951
- prop.forEach((item) => {
952
- getResourcesFromElementDescriptors({ propName: descriptor.config.type }, { propName: item.value });
953
- });
954
- }
955
- if (descriptor.type === Types.Shape) {
956
- const prop = props[propName];
957
- if (prop == null)
958
- return;
959
- getResourcesFromElementDescriptors(descriptor.options.type, prop);
960
- }
961
- if (descriptor.type === Types.List) {
962
- const prop = props[propName];
963
- if (prop == null)
964
- return;
965
- prop.forEach((item) => {
966
- getResourcesFromElementDescriptors({ propName: descriptor.options.type }, { propName: item.value });
967
- });
968
- }
969
941
  });
970
942
  };
971
943
  let element2;
@@ -1148,7 +1120,7 @@ async function fonts(_req, res, { getFonts } = {}) {
1148
1120
  const fonts2 = (_a = await (getFonts == null ? void 0 : getFonts())) != null ? _a : [];
1149
1121
  return res.json(fonts2);
1150
1122
  }
1151
- const version = "0.9.3";
1123
+ const version = "0.9.4";
1152
1124
  async function handler(req, res, { apiKey, unstable_siteVersions }) {
1153
1125
  if (req.query.secret !== apiKey) {
1154
1126
  return res.status(401).json({ message: "Unauthorized" });
@@ -2568,7 +2540,7 @@ function mapSideColor(swatches, _e) {
2568
2540
  return __spreadProps(__spreadValues({}, restOfSide), {
2569
2541
  color: color && {
2570
2542
  alpha: color.alpha,
2571
- swatch: swatches.filter(isNonNullable).find((s) => s && s.id === color.swatchId)
2543
+ swatch: swatches.filter(isNonNullable$1).find((s) => s && s.id === color.swatchId)
2572
2544
  }
2573
2545
  });
2574
2546
  }
@@ -2614,7 +2586,7 @@ function useBoxShadow(value) {
2614
2586
  return __spreadProps(__spreadValues({}, restOfShadow), {
2615
2587
  payload: {
2616
2588
  color: color != null ? {
2617
- swatch: swatches.filter(isNonNullable).find((s) => s && s.id === color.swatchId),
2589
+ swatch: swatches.filter(isNonNullable$1).find((s) => s && s.id === color.swatchId),
2618
2590
  alpha: color.alpha
2619
2591
  } : null,
2620
2592
  inset: inset != null ? inset : ShadowDefaultValue.inset,
@@ -2638,7 +2610,7 @@ function useResponsiveColor(color) {
2638
2610
  const { swatchId, alpha } = v;
2639
2611
  const swatch = swatches.find((s) => s && s.id === swatchId);
2640
2612
  return swatch == null ? null : __spreadProps(__spreadValues({}, rest), { value: { swatch, alpha } });
2641
- }).filter(isNonNullable);
2613
+ }).filter(isNonNullable$1);
2642
2614
  }
2643
2615
  const getIndexes = (spans, index) => {
2644
2616
  const flattened = spans.reduce((a, s) => a.concat(s), []);
@@ -3346,6 +3318,138 @@ function useTextAreaValue(data, definition) {
3346
3318
  function useTextInputValue(data, definition) {
3347
3319
  return data != null ? data : definition.config.defaultValue;
3348
3320
  }
3321
+ function isNonNullable(value) {
3322
+ return value != null;
3323
+ }
3324
+ function typographyFragementToTypographyControlData(typography) {
3325
+ if (typography == null)
3326
+ return void 0;
3327
+ return {
3328
+ id: typography.id,
3329
+ style: typography.style.map(({ deviceId, value }) => {
3330
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
3331
+ return {
3332
+ deviceId,
3333
+ value: {
3334
+ fontFamily: (_a = value.fontFamily) != null ? _a : void 0,
3335
+ lineHeight: (_b = value.lineHeight) != null ? _b : void 0,
3336
+ letterSpacing: (_c = value.letterSpacing) != null ? _c : void 0,
3337
+ fontWeight: (_d = value.fontWeight) != null ? _d : void 0,
3338
+ textAlign: (_e = value.textAlign) != null ? _e : void 0,
3339
+ uppercase: (_f = value.uppercase) != null ? _f : void 0,
3340
+ underline: (_g = value.underline) != null ? _g : void 0,
3341
+ strikethrough: (_h = value.strikethrough) != null ? _h : void 0,
3342
+ italic: (_i = value.italic) != null ? _i : void 0,
3343
+ fontSize: (_j = value.fontSize) != null ? _j : void 0,
3344
+ color: (_k = value.color) != null ? _k : void 0
3345
+ }
3346
+ };
3347
+ })
3348
+ };
3349
+ }
3350
+ function getTypographyStyleSwatchIds(style) {
3351
+ var _a;
3352
+ return (_a = style == null ? void 0 : style.map((override) => override.value).flatMap((typographyStyle) => {
3353
+ var _a2;
3354
+ return (_a2 = typographyStyle.color) == null ? void 0 : _a2.swatchId;
3355
+ }).filter(isNonNullable)) != null ? _a : [];
3356
+ }
3357
+ const withColor = (swatches) => (deviceRawTypographyValue) => {
3358
+ var _b, _c;
3359
+ const { value, deviceId } = deviceRawTypographyValue;
3360
+ if (value.color == null) {
3361
+ const _a = value, { color } = _a, nextValue = __objRest(_a, ["color"]);
3362
+ return {
3363
+ deviceId,
3364
+ value: nextValue
3365
+ };
3366
+ }
3367
+ return {
3368
+ deviceId,
3369
+ value: __spreadProps(__spreadValues({}, value), {
3370
+ color: {
3371
+ swatch: swatches.find((s) => {
3372
+ var _a2;
3373
+ return s && s.id === ((_a2 = value.color) == null ? void 0 : _a2.swatchId);
3374
+ }),
3375
+ alpha: (_c = (_b = value.color) == null ? void 0 : _b.alpha) != null ? _c : void 0
3376
+ }
3377
+ })
3378
+ };
3379
+ };
3380
+ const getDeviceId = ({ deviceId }) => deviceId;
3381
+ function useEnhancedTypography(value) {
3382
+ var _a, _b, _c;
3383
+ const typography = typographyFragementToTypographyControlData(useTypography((_a = value == null ? void 0 : value.id) != null ? _a : null));
3384
+ const source = (_b = typography == null ? void 0 : typography.style) != null ? _b : [];
3385
+ const override = (_c = value == null ? void 0 : value.style) != null ? _c : [];
3386
+ const breakpoints = useBreakpoints();
3387
+ const swatchIds = [
3388
+ ...getTypographyStyleSwatchIds(value == null ? void 0 : value.style),
3389
+ ...getTypographyStyleSwatchIds(typography == null ? void 0 : typography.style)
3390
+ ];
3391
+ const swatches = useSwatches(swatchIds).filter(isNonNullable);
3392
+ const enhancedSource = source.map(withColor(swatches));
3393
+ const enhancedOverride = override.map(withColor(swatches));
3394
+ const devices = [
3395
+ ...new Set(enhancedSource.map(getDeviceId).concat(enhancedOverride.map(getDeviceId)))
3396
+ ];
3397
+ return devices.map((deviceId) => {
3398
+ var _a2, _b2;
3399
+ const deviceSource = (_a2 = findBreakpointOverride(breakpoints, enhancedSource, deviceId)) == null ? void 0 : _a2.value;
3400
+ const deviceOverride = (_b2 = findBreakpointOverride(breakpoints, enhancedOverride, deviceId, (v) => v)) == null ? void 0 : _b2.value;
3401
+ if (deviceSource && deviceOverride) {
3402
+ return {
3403
+ deviceId,
3404
+ value: __spreadValues(__spreadValues({}, deviceSource), deviceOverride)
3405
+ };
3406
+ } else if (deviceOverride) {
3407
+ return {
3408
+ deviceId,
3409
+ value: deviceOverride
3410
+ };
3411
+ } else if (deviceSource) {
3412
+ return {
3413
+ deviceId,
3414
+ value: deviceSource
3415
+ };
3416
+ }
3417
+ return null;
3418
+ }).filter(isNonNullable);
3419
+ }
3420
+ function useTypographyClassName(value) {
3421
+ return useStyle(useResponsiveStyle([value], ([value2]) => {
3422
+ if (value2 === void 0)
3423
+ return {};
3424
+ let styles = {};
3425
+ if (value2.color != null)
3426
+ styles.color = colorToString(value2.color);
3427
+ if (value2.fontFamily != null)
3428
+ styles.fontFamily = value2.fontFamily;
3429
+ if (value2.fontSize != null && value2.fontSize.value != null && value2.fontSize.unit != null)
3430
+ styles.fontSize = `${value2.fontSize.value}${value2.fontSize.unit}`;
3431
+ if (value2.fontWeight != null)
3432
+ styles.fontWeight = value2.fontWeight;
3433
+ if (value2.lineHeight != null)
3434
+ styles.lineHeight = value2.lineHeight;
3435
+ if (value2.letterSpacing != null)
3436
+ styles.letterSpacing = `${value2.letterSpacing / 10}em`;
3437
+ if (value2.uppercase != null)
3438
+ styles.textTransform = value2.uppercase === true ? "uppercase" : "initial";
3439
+ if (value2.underline != null || value2.strikethrough != null)
3440
+ styles.textDecoration = [
3441
+ Boolean(value2.underline) && "underline",
3442
+ Boolean(value2.strikethrough) && "line-through"
3443
+ ].filter(Boolean).join(" ");
3444
+ if (value2.italic != null)
3445
+ styles.fontStyle = value2.italic === true ? "italic" : "initial";
3446
+ return styles;
3447
+ }, shallowMergeFallbacks));
3448
+ }
3449
+ function useTypographyValue(data) {
3450
+ const enhancedTypography = useEnhancedTypography(data);
3451
+ return useTypographyClassName(enhancedTypography);
3452
+ }
3349
3453
  function ControlValue({
3350
3454
  data,
3351
3455
  definition,
@@ -3458,6 +3562,12 @@ function ControlValue({
3458
3562
  parameters: [data, definition, control],
3459
3563
  children: (value) => children(value)
3460
3564
  }, definition.type);
3565
+ case TypographyControlType:
3566
+ return /* @__PURE__ */ jsx(RenderHook, {
3567
+ hook: useTypographyValue,
3568
+ parameters: [data],
3569
+ children: (value) => children(value)
3570
+ }, definition.type);
3461
3571
  default:
3462
3572
  return children(data);
3463
3573
  }
@@ -3512,6 +3622,7 @@ function PropsValue({
3512
3622
  case ListControlType:
3513
3623
  case LinkControlType:
3514
3624
  case StyleV2ControlType:
3625
+ case TypographyControlType:
3515
3626
  return /* @__PURE__ */ jsx(ControlValue, {
3516
3627
  definition: descriptor,
3517
3628
  data: props[propName],
@@ -4005,5 +4116,5 @@ const DocumentReference = memo(forwardRef(function DocumentReference2({
4005
4116
  document: document2
4006
4117
  });
4007
4118
  }));
4008
- export { Document$1 as $, Alignments as A, forwardNextDynamicRef as B, Contrasts as C, DocumentReference as D, Element$1 as E, useIsPreview as F, useFiles as G, useSwatches as H, usePagePathnameSlice as I, useElementId as J, deepEqual as K, ElementImperativeHandle as L, StoreContext as M, MakeswiftProvider as N, ControlValue as O, PageProvider as P, useBuilderEditMode as Q, RuntimeProvider as R, Shapes as S, pollBoxModel as T, useTypography as U, getStaticPaths as V, getStaticProps as W, getServerSideProps as X, Page as Y, Makeswift as Z, PreviewModeScript as _, ReactRuntime as a, MakeswiftApiHandler as a0, 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, useBoxShadow as k, useResponsiveColor as l, Page$1 as m, useResponsiveStyle as n, useResponsiveWidth as o, useResponsiveTextStyle as p, colorToString as q, useBreakpoints as r, Sizes as s, useFormContext as t, useIsInBuilder as u, useResponsiveGridItem as v, useTable as w, useMakeswiftClient as x, Provider as y, useFile as z };
4119
+ export { PreviewModeScript as $, Alignments as A, forwardNextDynamicRef as B, Contrasts as C, DocumentReference as D, Element$1 as E, useIsPreview as F, useFiles as G, useSwatches as H, usePagePathnameSlice as I, useElementId as J, deepEqual as K, ElementImperativeHandle as L, StoreContext as M, MakeswiftProvider as N, ControlValue as O, PageProvider as P, useBuilderEditMode as Q, RuntimeProvider as R, Shapes as S, pollBoxModel as T, useEnhancedTypography as U, useTypographyClassName as V, getStaticPaths as W, getStaticProps as X, getServerSideProps as Y, Page as Z, Makeswift as _, ReactRuntime as a, Document$1 as a0, MakeswiftApiHandler as a1, 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, useBoxShadow as k, useResponsiveColor as l, Page$1 as m, useResponsiveStyle as n, useResponsiveWidth as o, useResponsiveTextStyle as p, colorToString as q, useBreakpoints as r, Sizes as s, useFormContext as t, useIsInBuilder as u, useResponsiveGridItem as v, useTable as w, useMakeswiftClient as x, Provider as y, useFile as z };
4009
4120
  //# sourceMappingURL=index.es.js.map