@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.
@@ -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
  };