@dialpad/dialtone 9.169.0 → 9.171.0

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.
@@ -3156,6 +3156,17 @@ const xs = /* @__PURE__ */ q(gs, [["render", vs]]), Ts = {
3156
3156
  type: Boolean,
3157
3157
  default: !1
3158
3158
  },
3159
+ /**
3160
+ * Controls how whitespace is handled when parsing HTML content.
3161
+ * - 'full': All whitespace is preserved
3162
+ * - true: Whitespace in inline content is preserved, whitespace-only nodes between blocks are removed
3163
+ * - false: Standard HTML whitespace collapsing
3164
+ * @values full, true, false
3165
+ */
3166
+ preserveWhitespace: {
3167
+ type: [Boolean, String],
3168
+ default: "full"
3169
+ },
3159
3170
  /**
3160
3171
  * Show text in HTML div tags instead of paragraph tags
3161
3172
  */
@@ -3561,7 +3572,7 @@ ${n.textContent}
3561
3572
  extensions: this.extensions,
3562
3573
  shouldRerenderOnTransaction: !1,
3563
3574
  parseOptions: {
3564
- preserveWhitespace: "full"
3575
+ preserveWhitespace: this.preserveWhitespace
3565
3576
  },
3566
3577
  editorProps: {
3567
3578
  attributes: {
@@ -3633,7 +3644,10 @@ ${n.textContent}
3633
3644
  const n = new RegExp(`(${ge})`, "g");
3634
3645
  t = t == null ? void 0 : t.replace(n, '<emoji-component code="$1"></emoji-component>');
3635
3646
  }
3636
- this.editor.commands.setContent(t, { emitUpdate: !1, parseOptions: { preserveWhitespace: "full" } });
3647
+ this.editor.commands.setContent(t, {
3648
+ emitUpdate: !1,
3649
+ parseOptions: { preserveWhitespace: this.preserveWhitespace }
3650
+ });
3637
3651
  }
3638
3652
  },
3639
3653
  destroyEditor() {