@magicfeedback/popup-sdk 1.0.1 → 1.0.3

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
@@ -121,7 +121,7 @@ interface PopupRenderer {
121
121
  /** Preparar recursos si aplica */
122
122
  init?(): void;
123
123
  /** Mostrar popup */
124
- show(surveyId: string, productId: string, data: Record<string, unknown> | undefined, emit: (type: DeepdotsEventType, surveyId: string, data?: Record<string, unknown>) => void, onClose: () => void): void;
124
+ show(surveyId: string, productId: string, actions: PopupActions | undefined, emit: (type: DeepdotsEventType, surveyId: string, data?: Record<string, unknown>) => void, onClose: () => void): void;
125
125
  /** Ocultar popup */
126
126
  hide(): void;
127
127
  }
@@ -147,8 +147,12 @@ declare class DeepdotsPopups {
147
147
  autoLaunch(): void;
148
148
  /** Inicia los triggers configurados */
149
149
  private startTriggers;
150
- /** Show a popup immediately (by surveyId) */
151
- show(options: ShowOptions): void;
150
+ /** Show a popup immediately (supports legacy ShowOptions and new PopupDefinition) */
151
+ show(options: PopupDefinition | {
152
+ surveyId: string;
153
+ productId: string;
154
+ data?: Record<string, unknown>;
155
+ }): void;
152
156
  /** Mostrar popup por id de definición (usa surveyId interno) */
153
157
  showByPopupId(popupId: string): void;
154
158
  /** Configure triggers for auto-launching popups (manual) */
package/dist/index.d.ts CHANGED
@@ -121,7 +121,7 @@ interface PopupRenderer {
121
121
  /** Preparar recursos si aplica */
122
122
  init?(): void;
123
123
  /** Mostrar popup */
124
- show(surveyId: string, productId: string, data: Record<string, unknown> | undefined, emit: (type: DeepdotsEventType, surveyId: string, data?: Record<string, unknown>) => void, onClose: () => void): void;
124
+ show(surveyId: string, productId: string, actions: PopupActions | undefined, emit: (type: DeepdotsEventType, surveyId: string, data?: Record<string, unknown>) => void, onClose: () => void): void;
125
125
  /** Ocultar popup */
126
126
  hide(): void;
127
127
  }
@@ -147,8 +147,12 @@ declare class DeepdotsPopups {
147
147
  autoLaunch(): void;
148
148
  /** Inicia los triggers configurados */
149
149
  private startTriggers;
150
- /** Show a popup immediately (by surveyId) */
151
- show(options: ShowOptions): void;
150
+ /** Show a popup immediately (supports legacy ShowOptions and new PopupDefinition) */
151
+ show(options: PopupDefinition | {
152
+ surveyId: string;
153
+ productId: string;
154
+ data?: Record<string, unknown>;
155
+ }): void;
152
156
  /** Mostrar popup por id de definición (usa surveyId interno) */
153
157
  showByPopupId(popupId: string): void;
154
158
  /** Configure triggers for auto-launching popups (manual) */