@makeswift/runtime 0.11.11 → 0.11.12
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/index.cjs.js +1 -1
- package/dist/index.es.js +1 -1
- package/dist/react-page.cjs.js +2 -1
- package/dist/react-page.cjs.js.map +1 -1
- package/dist/react-page.es.js +2 -1
- package/dist/react-page.es.js.map +1 -1
- package/dist/types/src/controls/rich-text-v2/rich-text-v2.d.ts +1 -1
- package/dist/types/src/controls/rich-text-v2/rich-text-v2.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/react-page.es.js
CHANGED
|
@@ -3929,11 +3929,12 @@ const RichTextV2Mode = {
|
|
|
3929
3929
|
Block: "makeswift::controls::rich-text-v2::mode::block"
|
|
3930
3930
|
};
|
|
3931
3931
|
function RichText(config = {}) {
|
|
3932
|
+
var _a;
|
|
3932
3933
|
return {
|
|
3933
3934
|
type: RichTextV2ControlType,
|
|
3934
3935
|
config: {
|
|
3935
3936
|
mode: config.mode,
|
|
3936
|
-
defaultValue: (config == null ? void 0 : config.mode) === RichTextV2Mode.Inline ? "Edit this text" : ipsum(3),
|
|
3937
|
+
defaultValue: (_a = config.defaultValue) != null ? _a : (config == null ? void 0 : config.mode) === RichTextV2Mode.Inline ? "Edit this text" : ipsum(3),
|
|
3937
3938
|
plugins: (config == null ? void 0 : config.mode) === RichTextV2Mode.Inline ? [InlineModePlugin()] : [BlockPlugin(), TypographyPlugin(), TextAlignPlugin(), InlinePlugin(), LinkPlugin()]
|
|
3938
3939
|
}
|
|
3939
3940
|
};
|