@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.
- package/dist/LiveProvider.es.js +1 -1
- package/dist/PreviewProvider.es.js +1 -1
- package/dist/ReadOnlyText.es.js +1 -1
- package/dist/ReadOnlyTextV2.es.js +1 -1
- package/dist/control-serialization.es.js +1 -1
- package/dist/controls.cjs.js +1 -0
- package/dist/controls.cjs.js.map +1 -1
- package/dist/controls.es.js +1 -1
- package/dist/index.cjs.js +9 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +8 -2
- package/dist/index.es.js.map +1 -1
- package/dist/index.es10.js +1 -1
- package/dist/index.es2.js +1 -1
- package/dist/index.es5.js +1 -1
- package/dist/index.es6.js +1 -1
- package/dist/index.es9.js +1 -1
- package/dist/react-page.cjs.js +6 -0
- package/dist/react-page.cjs.js.map +1 -1
- package/dist/react-page.es.js +6 -1
- package/dist/react-page.es.js.map +1 -1
- package/dist/slate.es.js +2 -2
- package/dist/types/src/controls/rich-text-v2/rich-text-v2.d.ts +2 -0
- package/dist/types/src/controls/rich-text-v2/rich-text-v2.d.ts.map +1 -1
- package/dist/types/src/prop-controllers/introspection.d.ts.map +1 -1
- package/dist/types/src/runtimes/react/controls/rich-text-v2/rich-text-v2.d.ts +2 -2
- package/dist/types/src/runtimes/react/controls/rich-text-v2/rich-text-v2.d.ts.map +1 -1
- package/dist/types.es2.js +1 -1
- package/package.json +1 -1
package/dist/react-page.es.js
CHANGED
|
@@ -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,
|
|
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
|