@makeswift/runtime 0.12.3 → 0.12.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.
- 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 +8 -1
- package/dist/controls.cjs.js.map +1 -1
- package/dist/controls.es.js +2 -2
- package/dist/index.cjs.js +14 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +16 -8
- package/dist/index.es.js.map +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.es8.js +1 -1
- package/dist/index.es9.js +1 -1
- package/dist/number.cjs.js +11 -2
- package/dist/number.cjs.js.map +1 -1
- package/dist/number.es.js +8 -3
- package/dist/number.es.js.map +1 -1
- package/dist/react-page.cjs.js +11 -3
- package/dist/react-page.cjs.js.map +1 -1
- package/dist/react-page.es.js +8 -4
- package/dist/react-page.es.js.map +1 -1
- package/dist/slate.es.js +1 -1
- package/dist/toText.es.js +1 -1
- package/dist/types/src/controls/checkbox.d.ts +9 -1
- package/dist/types/src/controls/checkbox.d.ts.map +1 -1
- package/dist/types/src/controls/color.d.ts +1 -2
- package/dist/types/src/controls/color.d.ts.map +1 -1
- package/dist/types/src/controls/control-data-type-key.d.ts +2 -0
- package/dist/types/src/controls/control-data-type-key.d.ts.map +1 -0
- package/dist/types/src/controls/number.d.ts +9 -1
- package/dist/types/src/controls/number.d.ts.map +1 -1
- package/dist/types/src/controls/text-area.d.ts +9 -1
- package/dist/types/src/controls/text-area.d.ts.map +1 -1
- package/dist/types/src/controls/text-input.d.ts +10 -1
- package/dist/types/src/controls/text-input.d.ts.map +1 -1
- package/dist/types/src/runtimes/react/controls/checkbox.d.ts.map +1 -1
- package/dist/types/src/runtimes/react/controls/number.d.ts +2 -2
- package/dist/types/src/runtimes/react/controls/number.d.ts.map +1 -1
- package/dist/types/src/runtimes/react/controls/text-area.d.ts.map +1 -1
- package/dist/types/src/runtimes/react/controls/text-input.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/react-page.es.js
CHANGED
|
@@ -286,7 +286,7 @@ function Color(config = {}) {
|
|
|
286
286
|
function copyColorData(value, context) {
|
|
287
287
|
if (value == null)
|
|
288
288
|
return value;
|
|
289
|
-
return match(value).with({ [
|
|
289
|
+
return match(value).with({ [ColorControlDataTypeKey]: ColorControlDataTypeValueV1 }, (val) => {
|
|
290
290
|
var _a;
|
|
291
291
|
return __spreadProps(__spreadValues({}, val), {
|
|
292
292
|
swatchId: (_a = context.replacementContext.swatchIds.get(val.swatchId)) != null ? _a : val.swatchId
|
|
@@ -1165,13 +1165,17 @@ function mergeShapeTranslatedData(definition2, data, translatedData, context) {
|
|
|
1165
1165
|
mergeTranslatedData(definition22, data[key], translatedData[key], context)
|
|
1166
1166
|
]));
|
|
1167
1167
|
}
|
|
1168
|
+
const TextAreaControlDataTypeKey = ControlDataTypeKey;
|
|
1169
|
+
const TextAreaControlDataTypeValueV1 = "text-area::v1";
|
|
1168
1170
|
const TextAreaControlType = "makeswift::controls::text-area";
|
|
1169
1171
|
function TextArea(config = {}) {
|
|
1170
|
-
return { type: TextAreaControlType, config };
|
|
1172
|
+
return { type: TextAreaControlType, config, version: 1 };
|
|
1171
1173
|
}
|
|
1174
|
+
const TextInputControlDataTypeKey = ControlDataTypeKey;
|
|
1175
|
+
const TextInputControlDataTypeValueV1 = "text-input::v1";
|
|
1172
1176
|
const TextInputControlType = "makeswift::controls::text-input";
|
|
1173
1177
|
function TextInput(config = {}) {
|
|
1174
|
-
return { type: TextInputControlType, config };
|
|
1178
|
+
return { type: TextInputControlType, config, version: 1 };
|
|
1175
1179
|
}
|
|
1176
1180
|
const SlotControlType = "makeswift::controls::slot";
|
|
1177
1181
|
function Slot() {
|
|
@@ -5120,5 +5124,5 @@ function configureStore({
|
|
|
5120
5124
|
breakpoints: getInitialState$8(breakpoints != null ? breakpoints : preloadedState == null ? void 0 : preloadedState.breakpoints)
|
|
5121
5125
|
}), applyMiddleware(thunk));
|
|
5122
5126
|
}
|
|
5123
|
-
export { getBorderSwatchIds as $, TextStyle as A, Backgrounds as B, ComponentIcon as C, Date as D, ElementID as E, Font as F, GapY as G, ResponsiveLength as H, Images as I, TextArea$1 as J, Table as K, Link$1 as L, Margin as M, Number as N, TableFormFields as O, Padding as P, Image$1 as Q, RichTextPropControllerMessageType as R, Shadows as S, TableFormFieldsMessageType as T, ResponsiveOpacity as U, NavigationLinks as V, Width as W, SocialLinks as X, RichText as Y, Video as Z, useStyle as _, copy$9 as a,
|
|
5127
|
+
export { getBorderSwatchIds as $, TextStyle as A, Backgrounds as B, ComponentIcon as C, Date as D, ElementID as E, Font as F, GapY as G, ResponsiveLength as H, Images as I, TextArea$1 as J, Table as K, Link$1 as L, Margin as M, Number as N, TableFormFields as O, Padding as P, Image$1 as Q, RichTextPropControllerMessageType as R, Shadows as S, TableFormFieldsMessageType as T, ResponsiveOpacity as U, NavigationLinks as V, Width as W, SocialLinks as X, RichText as Y, Video as Z, useStyle as _, copy$9 as a, List as a$, getBoxShadowsSwatchIds as a0, getResponsiveColorSwatchIds as a1, StyleControlProperty as a2, ImageControlValueFormat as a3, isPropControllersHandle as a4, isRichTextV1Data as a5, TextAreaControlDataTypeKey as a6, TextAreaControlDataTypeValueV1 as a7, TextInputControlDataTypeKey as a8, TextInputControlDataTypeValueV1 as a9, copyElementTree as aA, getBreakpoints as aB, getElementTreeTranslatableData as aC, mergeElementTreeTranslatedData as aD, getDocument as aE, getElementId as aF, getIsInBuilder as aG, getReactComponent as aH, getBuilderEditMode as aI, getIsPreview as aJ, ControlDataTypeKey as aK, getBackgroundsFileIds as aL, getBackgroundsSwatchIds as aM, ColorControlDataTypeKey as aN, ColorControlDataTypeValueV1 as aO, Color as aP, copyColorData as aQ, copy as aR, merge as aS, getTranslatableData as aT, mergeTranslatedData as aU, unstable_IconRadioGroupIcon as aV, unstable_IconRadioGroup as aW, Image as aX, copyImageData as aY, Link as aZ, copyLinkData as a_, isNonNullable as aa, TypographyControlType as ab, StyleControlType as ac, RichTextV2ControlType as ad, RichTextControlType as ae, SlotControlType as af, StyleV2ControlType as ag, ListControlType as ah, ShapeControlType as ai, LinkControlType as aj, ImageControlType as ak, IconRadioGroupControlType as al, ColorControlType as am, SelectControlType as an, TextAreaControlType as ao, TextInputControlType as ap, getComponentPropControllerDescriptors as aq, getPropControllers as ar, Types as as, BorderPropControllerFormat as at, ShadowsPropControllerFormat as au, BorderRadiusPropControllerFormat as av, MarginPropControllerFormat as aw, PaddingPropControllerFormat as ax, WidthPropControllerFormat as ay, configureStore as az, copy$8 as b, BlockPlugin as b$, ListControlMessageType as b0, ListControl as b1, copyListData as b2, getListElementChildren as b3, getListSwatchIds as b4, getListFileIds as b5, getListTypographyIds as b6, getListPageIds as b7, getListTranslatableData as b8, mergeListTranslatedData as b9, TextArea as bA, TextInput as bB, copyRichTextData as bC, ObjectType as bD, RichTextControlMessageType as bE, RichTextControl as bF, richTextDTOtoSelection as bG, richTextDTOtoDAO as bH, toSelectionDTO as bI, richTextDAOToDTO as bJ, RichTextV2Mode as bK, RichTextV2ControlMessageType as bL, RichTextV2Control as bM, richTextV2DataToDescendents as bN, richTextV2DescendentsToData as bO, createRichTextV2Plugin as bP, unstable_Typography as bQ, getTypographySwatchIds as bR, getTypographyTypographyIds as bS, TypographyActions as bT, TYPOGRAPHY_KEY as bU, withTypography as bV, TypographyPlugin as bW, BlockActions as bX, ListActions as bY, onKeyDown as bZ, withBlock as b_, Select as ba, Shape as bb, ShapeControlMessageType as bc, ShapeControl as bd, copyShapeData as be, getShapeElementChildren as bf, getShapeSwatchIds as bg, getShapeTypographyIds as bh, getShapePageIds as bi, getShapeFileIds as bj, getShapeTranslatableData as bk, mergeShapeTranslatedData as bl, Slot as bm, SlotControlMessageType as bn, SlotControl as bo, copySlotData as bp, mergeSlotData as bq, mergeSlotControlTranslatedData as br, Style as bs, StyleControlMessageType as bt, StyleControl as bu, copyStyleData as bv, unstable_useStyleV2ClassName as bw, unstable_StyleV2 as bx, StyleV2ControlMessageType as by, StyleV2Control as bz, createDocument as c, withInlineMode as c0, InlineModePlugin as c1, withTextAlign as c2, TextAlignPlugin as c3, RootBlockType as c4, BlockType as c5, InlineType as c6, BlockTextAlignment as c7, withInline as c8, InlinePlugin as c9, ElementUtils as ca, onChange$1 as cb, getValue$3 as cc, isLinkElement as cd, getInitialState$6 as ce, reducer$7 as cf, getDocument$1 as cg, getComponentsMeta as ch, getComponentPropControllerDescriptors$1 as ci, BuilderEditMode as cj, getDocumentKeysSortedByDepth as ck, getPropController as cl, getPropControllersHandle as cm, getElement as cn, getElementPropControllerDescriptors as co, createPropController as cp, reducer$6 as cq, reducer$8 as cr, reducer$5 as cs, reducer$4 as ct, reducer$3 as cu, reducer$2 as cv, reducer$1 as cw, getInitialState$1 as cx, descriptors as d, copy$e as e, deepEqual as f, createDocumentReference as g, getPropControllerDescriptors as h, introspection as i, isElementReference as j, getSwatchIds as k, getFileIds as l, getTypographyIds as m, getTableIds as n, getPageIds as o, getElementChildren as p, ResponsiveIconRadioGroup as q, Border as r, BorderRadius as s, GapX as t, ResponsiveSelect as u, ResponsiveNumber as v, Checkbox as w, Grid as x, TextInput$1 as y, ResponsiveColor as z };
|
|
5124
5128
|
//# sourceMappingURL=react-page.es.js.map
|