@makeswift/runtime 0.9.6 → 0.9.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.
@@ -2363,6 +2363,9 @@ class RichTextV2Control extends PropController {
2363
2363
  this.send({ type: RichTextV2ControlMessageType.CHANGE_BOX_MODEL, payload: { boxModel } });
2364
2364
  }
2365
2365
  }
2366
+ function isRichTextV1Data(value) {
2367
+ return value !== void 0 && typeof value === "object" && !Array.isArray(value);
2368
+ }
2366
2369
  function isNonNullable(value) {
2367
2370
  return value != null;
2368
2371
  }
@@ -2530,6 +2533,8 @@ function getSwatchIds(descriptor, prop) {
2530
2533
  };
2531
2534
  const descendants = prop;
2532
2535
  const plugins = descriptor.config.plugins;
2536
+ if (isRichTextV1Data(descendants))
2537
+ return [];
2533
2538
  return descendants.flatMap((d) => getDescendantSwatchIds(d));
2534
2539
  }
2535
2540
  case ShapeControlType: {
@@ -2946,5 +2951,5 @@ function configureStore({
2946
2951
  locales: getInitialState(locales != null ? locales : preloadedState == null ? void 0 : preloadedState.locales)
2947
2952
  }), applyMiddleware(thunk));
2948
2953
  }
2949
- export { StyleControlProperty as $, TableFormFields as A, Backgrounds as B, ComponentIcon as C, Date as D, ElementID as E, Font as F, GapY as G, Image$1 as H, Images as I, ResponsiveOpacity as J, NavigationLinks as K, Link$1 as L, Margin as M, Number as N, SocialLinks as O, Padding as P, RichText$1 as Q, RichTextPropControllerMessageType as R, Shadows as S, TableFormFieldsMessageType as T, useStyle as U, Video as V, Width as W, getBorderSwatchIds as X, isNonNullable as Y, getBoxShadowsSwatchIds as Z, getResponsiveColorSwatchIds as _, createDocumentReference as a, StyleV2Control as a$, ImageControlValueFormat as a0, isPropControllersHandle as a1, StyleControlType as a2, RichTextV2ControlType as a3, RichTextControlType as a4, SlotControlType as a5, StyleV2ControlType as a6, ListControlType as a7, ShapeControlType as a8, LinkControlType as a9, merge as aA, Image as aB, copyImageData as aC, Link as aD, copyLinkData as aE, List as aF, ListControlMessageType as aG, ListControl as aH, copyListData as aI, introspectListData as aJ, Shape as aK, ShapeControlMessageType as aL, ShapeControl as aM, copyShapeData as aN, introspectShapeData as aO, Slot as aP, SlotControlMessageType as aQ, SlotControl as aR, copySlotData as aS, mergeSlotData as aT, Style as aU, StyleControlMessageType as aV, StyleControl as aW, copyStyleData as aX, unstable_useStyleV2ClassName as aY, unstable_StyleV2 as aZ, StyleV2ControlMessageType as a_, ImageControlType as aa, ColorControlType as ab, getComponentPropControllerDescriptors as ac, getPropControllers as ad, Types as ae, BorderPropControllerFormat as af, ShadowsPropControllerFormat as ag, BorderRadiusPropControllerFormat as ah, MarginPropControllerFormat as ai, PaddingPropControllerFormat as aj, WidthPropControllerFormat as ak, configureStore as al, copyElementTree as am, getBreakpoints as an, parseLocalesInput as ao, getDocument as ap, getElementId as aq, getIsPreview as ar, getIsInBuilder as as, getReactComponent as at, getBuilderEditMode as au, getBackgroundsFileIds as av, getBackgroundsSwatchIds as aw, Color as ax, copyColorData as ay, copy as az, isElementReference as b, ObjectType as b0, RichText as b1, RichTextControlMessageType as b2, RichTextControl as b3, richTextDTOtoSelection as b4, richTextDTOtoDAO as b5, toSelectionDTO as b6, richTextDAOToDTO as b7, RichTextV2Mode as b8, createRichTextV2Plugin as b9, reducer$3 as bA, reducer$2 as bB, reducer$1 as bC, getInitialState$2 as bD, unstable_RichTextV2 as ba, RichTextV2ControlMessageType as bb, RichTextV2Control as bc, InlineType as bd, RootBlockType as be, BlockType as bf, BlockTextAlignment as bg, getInitialState$7 as bh, reducer$8 as bi, getDocument$1 as bj, getComponentsMeta as bk, getComponentPropControllerDescriptors$1 as bl, getLocales as bm, getDefaultLocale as bn, BuilderEditMode as bo, getDocumentKeysSortedByDepth as bp, getPropController as bq, getPropControllersHandle as br, getElement as bs, getElementPropControllerDescriptors as bt, createPropController as bu, reducer$7 as bv, reducer$9 as bw, reducer$6 as bx, reducer$5 as by, reducer$4 as bz, createDocument as c, descriptors as d, getSwatchIds as e, getFileIds as f, getPropControllerDescriptors as g, getTypographyIds as h, introspection as i, getTableIds as j, getPageIds as k, getElementChildren as l, ResponsiveIconRadioGroup as m, Border as n, BorderRadius as o, GapX as p, ResponsiveSelect as q, ResponsiveNumber as r, Checkbox as s, Grid as t, TextInput as u, ResponsiveColor as v, TextStyle as w, ResponsiveLength as x, TextArea as y, Table as z };
2954
+ export { StyleControlProperty as $, TableFormFields as A, Backgrounds as B, ComponentIcon as C, Date as D, ElementID as E, Font as F, GapY as G, Image$1 as H, Images as I, ResponsiveOpacity as J, NavigationLinks as K, Link$1 as L, Margin as M, Number as N, SocialLinks as O, Padding as P, RichText$1 as Q, RichTextPropControllerMessageType as R, Shadows as S, TableFormFieldsMessageType as T, useStyle as U, Video as V, Width as W, getBorderSwatchIds as X, isNonNullable as Y, getBoxShadowsSwatchIds as Z, getResponsiveColorSwatchIds as _, createDocumentReference as a, StyleV2ControlMessageType as a$, ImageControlValueFormat as a0, isPropControllersHandle as a1, isRichTextV1Data as a2, StyleControlType as a3, RichTextV2ControlType as a4, RichTextControlType as a5, SlotControlType as a6, StyleV2ControlType as a7, ListControlType as a8, ShapeControlType as a9, copy as aA, merge as aB, Image as aC, copyImageData as aD, Link as aE, copyLinkData as aF, List as aG, ListControlMessageType as aH, ListControl as aI, copyListData as aJ, introspectListData as aK, Shape as aL, ShapeControlMessageType as aM, ShapeControl as aN, copyShapeData as aO, introspectShapeData as aP, Slot as aQ, SlotControlMessageType as aR, SlotControl as aS, copySlotData as aT, mergeSlotData as aU, Style as aV, StyleControlMessageType as aW, StyleControl as aX, copyStyleData as aY, unstable_useStyleV2ClassName as aZ, unstable_StyleV2 as a_, LinkControlType as aa, ImageControlType as ab, ColorControlType as ac, getComponentPropControllerDescriptors as ad, getPropControllers as ae, Types as af, BorderPropControllerFormat as ag, ShadowsPropControllerFormat as ah, BorderRadiusPropControllerFormat as ai, MarginPropControllerFormat as aj, PaddingPropControllerFormat as ak, WidthPropControllerFormat as al, configureStore as am, copyElementTree as an, getBreakpoints as ao, parseLocalesInput as ap, getDocument as aq, getElementId as ar, getIsPreview as as, getIsInBuilder as at, getReactComponent as au, getBuilderEditMode as av, getBackgroundsFileIds as aw, getBackgroundsSwatchIds as ax, Color as ay, copyColorData as az, isElementReference as b, StyleV2Control as b0, ObjectType as b1, RichText as b2, RichTextControlMessageType as b3, RichTextControl as b4, richTextDTOtoSelection as b5, richTextDTOtoDAO as b6, toSelectionDTO as b7, richTextDAOToDTO as b8, RichTextV2Mode as b9, reducer$4 as bA, reducer$3 as bB, reducer$2 as bC, reducer$1 as bD, getInitialState$2 as bE, createRichTextV2Plugin as ba, unstable_RichTextV2 as bb, RichTextV2ControlMessageType as bc, RichTextV2Control as bd, InlineType as be, RootBlockType as bf, BlockType as bg, BlockTextAlignment as bh, getInitialState$7 as bi, reducer$8 as bj, getDocument$1 as bk, getComponentsMeta as bl, getComponentPropControllerDescriptors$1 as bm, getLocales as bn, getDefaultLocale as bo, BuilderEditMode as bp, getDocumentKeysSortedByDepth as bq, getPropController as br, getPropControllersHandle as bs, getElement as bt, getElementPropControllerDescriptors as bu, createPropController as bv, reducer$7 as bw, reducer$9 as bx, reducer$6 as by, reducer$5 as bz, createDocument as c, descriptors as d, getSwatchIds as e, getFileIds as f, getPropControllerDescriptors as g, getTypographyIds as h, introspection as i, getTableIds as j, getPageIds as k, getElementChildren as l, ResponsiveIconRadioGroup as m, Border as n, BorderRadius as o, GapX as p, ResponsiveSelect as q, ResponsiveNumber as r, Checkbox as s, Grid as t, TextInput as u, ResponsiveColor as v, TextStyle as w, ResponsiveLength as x, TextArea as y, Table as z };
2950
2955
  //# sourceMappingURL=react-page.es.js.map