@inappstory/slide-api 0.1.50 → 0.1.52
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.cjs +241 -44
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +28 -5
- package/dist/index.d.ts +28 -5
- package/dist/index.js +241 -44
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -130,7 +130,9 @@ declare class WidgetTimer extends WidgetBase<WidgetTimerOptions> {
|
|
|
130
130
|
};
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
-
type WidgetBarcodeOptions = WidgetOptionsBase
|
|
133
|
+
type WidgetBarcodeOptions = WidgetOptionsBase & {
|
|
134
|
+
layers: Array<HTMLElement>;
|
|
135
|
+
};
|
|
134
136
|
|
|
135
137
|
declare class WidgetBarcode extends WidgetBase<WidgetBarcodeOptions> {
|
|
136
138
|
static DEFAULTS: WidgetBarcodeOptions;
|
|
@@ -148,6 +150,9 @@ declare class WidgetBarcode extends WidgetBase<WidgetBarcodeOptions> {
|
|
|
148
150
|
private readonly msgNoMoreCodes;
|
|
149
151
|
private readonly msgTryAgain;
|
|
150
152
|
private readonly msgBarcodeRenderError;
|
|
153
|
+
private readonly promocodeExhaustedAction;
|
|
154
|
+
private readonly promocodeExhaustedNotificationText;
|
|
155
|
+
private readonly layers;
|
|
151
156
|
constructor(element: HTMLElement, options: Partial<WidgetBarcodeOptions>, widgetCallbacks: WidgetCallbacks, widgetDeps: WidgetDeps);
|
|
152
157
|
/**
|
|
153
158
|
* Start or restart widget
|
|
@@ -170,17 +175,22 @@ declare class WidgetBarcode extends WidgetBase<WidgetBarcodeOptions> {
|
|
|
170
175
|
copyToClipboard(element: HTMLElement): void;
|
|
171
176
|
private completeWidget;
|
|
172
177
|
isDone(): boolean;
|
|
178
|
+
doPromocodeExhaustedAction(): void;
|
|
179
|
+
private showPromocodeExhaustedNotification;
|
|
180
|
+
private showPromocodeExhaustedLayer;
|
|
173
181
|
static api: {
|
|
174
182
|
widgetClassName: string;
|
|
175
183
|
onRefreshUserData: typeof WidgetBase.onRefreshUserData;
|
|
176
|
-
init: (element: HTMLElement, localData: Record<string, any>, widgetCallbacks: WidgetCallbacks, widgetDeps: WidgetDeps) => void;
|
|
184
|
+
init: (element: HTMLElement, layers: Array<HTMLElement>, localData: Record<string, any>, widgetCallbacks: WidgetCallbacks, widgetDeps: WidgetDeps) => void;
|
|
177
185
|
onStart: (element: HTMLElement) => void;
|
|
178
186
|
onStop: (element: HTMLElement) => void;
|
|
179
187
|
click: (element: HTMLElement) => boolean;
|
|
180
188
|
};
|
|
181
189
|
}
|
|
182
190
|
|
|
183
|
-
type WidgetCopyOptions = WidgetOptionsBase
|
|
191
|
+
type WidgetCopyOptions = WidgetOptionsBase & {
|
|
192
|
+
layers: Array<HTMLElement>;
|
|
193
|
+
};
|
|
184
194
|
|
|
185
195
|
declare class WidgetCopy extends WidgetBase<WidgetCopyOptions> {
|
|
186
196
|
static DEFAULTS: WidgetCopyOptions;
|
|
@@ -197,6 +207,9 @@ declare class WidgetCopy extends WidgetBase<WidgetCopyOptions> {
|
|
|
197
207
|
private readonly geometry;
|
|
198
208
|
private readonly resultLayer;
|
|
199
209
|
private readonly resultLayerGeometry;
|
|
210
|
+
private readonly promocodeExhaustedAction;
|
|
211
|
+
private readonly promocodeExhaustedNotificationText;
|
|
212
|
+
private readonly layers;
|
|
200
213
|
constructor(element: HTMLElement, options: Partial<WidgetCopyOptions>, widgetCallbacks: WidgetCallbacks, widgetDeps: WidgetDeps);
|
|
201
214
|
/**
|
|
202
215
|
* Start or restart widget
|
|
@@ -216,17 +229,22 @@ declare class WidgetCopy extends WidgetBase<WidgetCopyOptions> {
|
|
|
216
229
|
copyToClipboard(element: HTMLElement): void;
|
|
217
230
|
private completeWidget;
|
|
218
231
|
isDone(): boolean;
|
|
232
|
+
doPromocodeExhaustedAction(): void;
|
|
233
|
+
private showPromocodeExhaustedNotification;
|
|
234
|
+
private showPromocodeExhaustedLayer;
|
|
219
235
|
static api: {
|
|
220
236
|
widgetClassName: string;
|
|
221
237
|
onRefreshUserData: typeof WidgetBase.onRefreshUserData;
|
|
222
|
-
init: (element: HTMLElement, localData: Record<string, any>, widgetCallbacks: WidgetCallbacks, widgetDeps: WidgetDeps) => void;
|
|
238
|
+
init: (element: HTMLElement, layers: Array<HTMLElement>, localData: Record<string, any>, widgetCallbacks: WidgetCallbacks, widgetDeps: WidgetDeps) => void;
|
|
223
239
|
onStart: (element: HTMLElement) => void;
|
|
224
240
|
onStop: (element: HTMLElement) => void;
|
|
225
241
|
click: (element: HTMLElement) => boolean;
|
|
226
242
|
};
|
|
227
243
|
}
|
|
228
244
|
|
|
229
|
-
type WidgetDataInputOptions = WidgetOptionsBase
|
|
245
|
+
type WidgetDataInputOptions = WidgetOptionsBase & {
|
|
246
|
+
layers: Array<HTMLElement>;
|
|
247
|
+
};
|
|
230
248
|
|
|
231
249
|
declare class WidgetDataInput extends WidgetBase<WidgetDataInputOptions> {
|
|
232
250
|
static DEFAULTS: {
|
|
@@ -489,6 +507,8 @@ declare class WidgetProducts extends WidgetBase<WidgetProductsOptions> {
|
|
|
489
507
|
closeProductsView(): void;
|
|
490
508
|
private createCardView;
|
|
491
509
|
private showProductDetails;
|
|
510
|
+
private statEventGoToCart;
|
|
511
|
+
private statEventAddToCart;
|
|
492
512
|
private createScrollView;
|
|
493
513
|
private createProductsView;
|
|
494
514
|
private scrollViewRef;
|
|
@@ -565,6 +585,9 @@ declare class WidgetProductCarousel extends WidgetBase<WidgetProductCarouselOpti
|
|
|
565
585
|
private addToCart;
|
|
566
586
|
private getBottomSheetParams;
|
|
567
587
|
private statEventWidgetCardClick;
|
|
588
|
+
private statEventClickPurchaseButton;
|
|
589
|
+
private statEventAddToCart;
|
|
590
|
+
private statEventGoToCart;
|
|
568
591
|
private isCartSupported;
|
|
569
592
|
private disableHostUIInteraction;
|
|
570
593
|
private enableHostUIInteraction;
|
package/dist/index.d.ts
CHANGED
|
@@ -130,7 +130,9 @@ declare class WidgetTimer extends WidgetBase<WidgetTimerOptions> {
|
|
|
130
130
|
};
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
-
type WidgetBarcodeOptions = WidgetOptionsBase
|
|
133
|
+
type WidgetBarcodeOptions = WidgetOptionsBase & {
|
|
134
|
+
layers: Array<HTMLElement>;
|
|
135
|
+
};
|
|
134
136
|
|
|
135
137
|
declare class WidgetBarcode extends WidgetBase<WidgetBarcodeOptions> {
|
|
136
138
|
static DEFAULTS: WidgetBarcodeOptions;
|
|
@@ -148,6 +150,9 @@ declare class WidgetBarcode extends WidgetBase<WidgetBarcodeOptions> {
|
|
|
148
150
|
private readonly msgNoMoreCodes;
|
|
149
151
|
private readonly msgTryAgain;
|
|
150
152
|
private readonly msgBarcodeRenderError;
|
|
153
|
+
private readonly promocodeExhaustedAction;
|
|
154
|
+
private readonly promocodeExhaustedNotificationText;
|
|
155
|
+
private readonly layers;
|
|
151
156
|
constructor(element: HTMLElement, options: Partial<WidgetBarcodeOptions>, widgetCallbacks: WidgetCallbacks, widgetDeps: WidgetDeps);
|
|
152
157
|
/**
|
|
153
158
|
* Start or restart widget
|
|
@@ -170,17 +175,22 @@ declare class WidgetBarcode extends WidgetBase<WidgetBarcodeOptions> {
|
|
|
170
175
|
copyToClipboard(element: HTMLElement): void;
|
|
171
176
|
private completeWidget;
|
|
172
177
|
isDone(): boolean;
|
|
178
|
+
doPromocodeExhaustedAction(): void;
|
|
179
|
+
private showPromocodeExhaustedNotification;
|
|
180
|
+
private showPromocodeExhaustedLayer;
|
|
173
181
|
static api: {
|
|
174
182
|
widgetClassName: string;
|
|
175
183
|
onRefreshUserData: typeof WidgetBase.onRefreshUserData;
|
|
176
|
-
init: (element: HTMLElement, localData: Record<string, any>, widgetCallbacks: WidgetCallbacks, widgetDeps: WidgetDeps) => void;
|
|
184
|
+
init: (element: HTMLElement, layers: Array<HTMLElement>, localData: Record<string, any>, widgetCallbacks: WidgetCallbacks, widgetDeps: WidgetDeps) => void;
|
|
177
185
|
onStart: (element: HTMLElement) => void;
|
|
178
186
|
onStop: (element: HTMLElement) => void;
|
|
179
187
|
click: (element: HTMLElement) => boolean;
|
|
180
188
|
};
|
|
181
189
|
}
|
|
182
190
|
|
|
183
|
-
type WidgetCopyOptions = WidgetOptionsBase
|
|
191
|
+
type WidgetCopyOptions = WidgetOptionsBase & {
|
|
192
|
+
layers: Array<HTMLElement>;
|
|
193
|
+
};
|
|
184
194
|
|
|
185
195
|
declare class WidgetCopy extends WidgetBase<WidgetCopyOptions> {
|
|
186
196
|
static DEFAULTS: WidgetCopyOptions;
|
|
@@ -197,6 +207,9 @@ declare class WidgetCopy extends WidgetBase<WidgetCopyOptions> {
|
|
|
197
207
|
private readonly geometry;
|
|
198
208
|
private readonly resultLayer;
|
|
199
209
|
private readonly resultLayerGeometry;
|
|
210
|
+
private readonly promocodeExhaustedAction;
|
|
211
|
+
private readonly promocodeExhaustedNotificationText;
|
|
212
|
+
private readonly layers;
|
|
200
213
|
constructor(element: HTMLElement, options: Partial<WidgetCopyOptions>, widgetCallbacks: WidgetCallbacks, widgetDeps: WidgetDeps);
|
|
201
214
|
/**
|
|
202
215
|
* Start or restart widget
|
|
@@ -216,17 +229,22 @@ declare class WidgetCopy extends WidgetBase<WidgetCopyOptions> {
|
|
|
216
229
|
copyToClipboard(element: HTMLElement): void;
|
|
217
230
|
private completeWidget;
|
|
218
231
|
isDone(): boolean;
|
|
232
|
+
doPromocodeExhaustedAction(): void;
|
|
233
|
+
private showPromocodeExhaustedNotification;
|
|
234
|
+
private showPromocodeExhaustedLayer;
|
|
219
235
|
static api: {
|
|
220
236
|
widgetClassName: string;
|
|
221
237
|
onRefreshUserData: typeof WidgetBase.onRefreshUserData;
|
|
222
|
-
init: (element: HTMLElement, localData: Record<string, any>, widgetCallbacks: WidgetCallbacks, widgetDeps: WidgetDeps) => void;
|
|
238
|
+
init: (element: HTMLElement, layers: Array<HTMLElement>, localData: Record<string, any>, widgetCallbacks: WidgetCallbacks, widgetDeps: WidgetDeps) => void;
|
|
223
239
|
onStart: (element: HTMLElement) => void;
|
|
224
240
|
onStop: (element: HTMLElement) => void;
|
|
225
241
|
click: (element: HTMLElement) => boolean;
|
|
226
242
|
};
|
|
227
243
|
}
|
|
228
244
|
|
|
229
|
-
type WidgetDataInputOptions = WidgetOptionsBase
|
|
245
|
+
type WidgetDataInputOptions = WidgetOptionsBase & {
|
|
246
|
+
layers: Array<HTMLElement>;
|
|
247
|
+
};
|
|
230
248
|
|
|
231
249
|
declare class WidgetDataInput extends WidgetBase<WidgetDataInputOptions> {
|
|
232
250
|
static DEFAULTS: {
|
|
@@ -489,6 +507,8 @@ declare class WidgetProducts extends WidgetBase<WidgetProductsOptions> {
|
|
|
489
507
|
closeProductsView(): void;
|
|
490
508
|
private createCardView;
|
|
491
509
|
private showProductDetails;
|
|
510
|
+
private statEventGoToCart;
|
|
511
|
+
private statEventAddToCart;
|
|
492
512
|
private createScrollView;
|
|
493
513
|
private createProductsView;
|
|
494
514
|
private scrollViewRef;
|
|
@@ -565,6 +585,9 @@ declare class WidgetProductCarousel extends WidgetBase<WidgetProductCarouselOpti
|
|
|
565
585
|
private addToCart;
|
|
566
586
|
private getBottomSheetParams;
|
|
567
587
|
private statEventWidgetCardClick;
|
|
588
|
+
private statEventClickPurchaseButton;
|
|
589
|
+
private statEventAddToCart;
|
|
590
|
+
private statEventGoToCart;
|
|
568
591
|
private isCartSupported;
|
|
569
592
|
private disableHostUIInteraction;
|
|
570
593
|
private enableHostUIInteraction;
|