@deepdesk/deepdesk-sdk 19.6.2-beta.19 → 19.6.2-beta.20

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.d.mts CHANGED
@@ -2229,6 +2229,12 @@ declare class DeepdeskSDK {
2229
2229
  private floatingMenu;
2230
2230
  private widgetElement;
2231
2231
  private widgetRoot;
2232
+ /** Shared DialogOverlays root (SearchOverlay / CMD+K). Owned by mount and/or renderWidget. */
2233
+ private dialogOverlays;
2234
+ /** First `customStyles` passed to {@link ensureDialogOverlays} wins for the shared root. */
2235
+ private dialogOverlaysCustomStyles;
2236
+ /** OR of includeLoginOverlay across ensureDialogOverlays callers (mount can upgrade widget-only). */
2237
+ private dialogOverlaysIncludeLogin;
2232
2238
  private nicknameDialogUnsubscribe;
2233
2239
  private nicknameDialogFailed;
2234
2240
  private dynamicThunkObject;
@@ -3524,6 +3530,17 @@ declare class DeepdeskSDK {
3524
3530
  private renderInlineSuggestions;
3525
3531
  private renderAboveOrBelowSuggestions;
3526
3532
  private renderFloatingMenu;
3533
+ /**
3534
+ * Mount DialogOverlays (SearchOverlay / CMD+K) once per SDK instance.
3535
+ * Used by both {@link mount} and {@link renderWidget} so iframe-only widgets
3536
+ * (Content Guru, Dimelo) get search without attaching to a host input.
3537
+ *
3538
+ * `customStyles`: first caller wins (later `mount` / `renderWidget` styles are ignored).
3539
+ * `includeLoginOverlay`: OR'd across callers — `mount` can upgrade a widget-only root
3540
+ * by re-rendering into the **existing** React root (preserves SearchOverlay local state).
3541
+ */
3542
+ private ensureDialogOverlays;
3543
+ private disposeDialogOverlays;
3527
3544
  private renderOverlays;
3528
3545
  /**
3529
3546
  * Renders the Deepdesk widget in a container element.
@@ -3535,6 +3552,11 @@ declare class DeepdeskSDK {
3535
3552
  * **Important:** Make sure to set the container element to a fixed or minimum size
3536
3553
  * (height and width) as the widget will grow to fill the container.
3537
3554
  *
3555
+ * Also mounts dialog overlays (search command palette / CMD+K) so iframe-only
3556
+ * integrations that never call {@link mount} still get search. Shared with `mount()` —
3557
+ * only one overlays root exists per SDK instance. Does **not** mount `LoginOverlay`
3558
+ * (iframe apps use their own sign-in); `mount()` still can.
3559
+ *
3538
3560
  * **Note:** Only one widget can be rendered per SDK instance.
3539
3561
  *
3540
3562
  * @param containerElement - Element to render widget in
package/dist/index.d.ts CHANGED
@@ -2229,6 +2229,12 @@ declare class DeepdeskSDK {
2229
2229
  private floatingMenu;
2230
2230
  private widgetElement;
2231
2231
  private widgetRoot;
2232
+ /** Shared DialogOverlays root (SearchOverlay / CMD+K). Owned by mount and/or renderWidget. */
2233
+ private dialogOverlays;
2234
+ /** First `customStyles` passed to {@link ensureDialogOverlays} wins for the shared root. */
2235
+ private dialogOverlaysCustomStyles;
2236
+ /** OR of includeLoginOverlay across ensureDialogOverlays callers (mount can upgrade widget-only). */
2237
+ private dialogOverlaysIncludeLogin;
2232
2238
  private nicknameDialogUnsubscribe;
2233
2239
  private nicknameDialogFailed;
2234
2240
  private dynamicThunkObject;
@@ -3524,6 +3530,17 @@ declare class DeepdeskSDK {
3524
3530
  private renderInlineSuggestions;
3525
3531
  private renderAboveOrBelowSuggestions;
3526
3532
  private renderFloatingMenu;
3533
+ /**
3534
+ * Mount DialogOverlays (SearchOverlay / CMD+K) once per SDK instance.
3535
+ * Used by both {@link mount} and {@link renderWidget} so iframe-only widgets
3536
+ * (Content Guru, Dimelo) get search without attaching to a host input.
3537
+ *
3538
+ * `customStyles`: first caller wins (later `mount` / `renderWidget` styles are ignored).
3539
+ * `includeLoginOverlay`: OR'd across callers — `mount` can upgrade a widget-only root
3540
+ * by re-rendering into the **existing** React root (preserves SearchOverlay local state).
3541
+ */
3542
+ private ensureDialogOverlays;
3543
+ private disposeDialogOverlays;
3527
3544
  private renderOverlays;
3528
3545
  /**
3529
3546
  * Renders the Deepdesk widget in a container element.
@@ -3535,6 +3552,11 @@ declare class DeepdeskSDK {
3535
3552
  * **Important:** Make sure to set the container element to a fixed or minimum size
3536
3553
  * (height and width) as the widget will grow to fill the container.
3537
3554
  *
3555
+ * Also mounts dialog overlays (search command palette / CMD+K) so iframe-only
3556
+ * integrations that never call {@link mount} still get search. Shared with `mount()` —
3557
+ * only one overlays root exists per SDK instance. Does **not** mount `LoginOverlay`
3558
+ * (iframe apps use their own sign-in); `mount()` still can.
3559
+ *
3538
3560
  * **Note:** Only one widget can be rendered per SDK instance.
3539
3561
  *
3540
3562
  * @param containerElement - Element to render widget in