@servicetitan/dte-unlayer 0.128.0 → 0.130.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.
package/src/editor.tsx CHANGED
@@ -129,6 +129,7 @@ export const UnlayerEditor = forwardRef<UnlayerRef, UnlayerEditorProps>((props,
129
129
  <div id={props.id ?? 'editor'} style={style} ref={containerRef} />
130
130
  {props.opts.displayConditions && (
131
131
  <DisplayConditionModal
132
+ portalContainer={props.opts.displayConditionModalPortalContainer}
132
133
  schema={props.opts.schema}
133
134
  onConditionalsOpen={props.opts.onConditionalsOpen}
134
135
  onConditionFormSelect={props.opts.onConditionFormSelect}
@@ -82,6 +82,8 @@ export interface CreateUnlayerEditorProps {
82
82
  hideContentControls?: boolean;
83
83
  hideBodyMenuItem?: boolean;
84
84
  displayConditions?: boolean;
85
+ /** Override portal target for the display-conditions dialog (defaults: shadow root when embedded, else `document.body`). */
86
+ displayConditionModalPortalContainer?: Element | DocumentFragment | null;
85
87
  enableHTMLEditing?: boolean;
86
88
  enableHTMLEditingReadonly?: boolean;
87
89
  imageValidation?: {