@ikas/loyalty-widget-renderer 1.0.0-alpha.82 → 1.0.0-alpha.83
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/build/injector.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import LoyaltyWidgetRenderer from "./renderer";
|
|
2
1
|
import { IkasLoyaltyWidgetConfig } from "./models/types";
|
|
2
|
+
import LoyaltyWidgetRenderer from "./renderer";
|
|
3
3
|
export declare function startIkasLoyaltyWidget(config?: IkasLoyaltyWidgetConfig): void;
|
|
4
4
|
export { LoyaltyWidgetRenderer };
|
|
5
5
|
export type { IkasLoyaltyWidgetConfig };
|
|
@@ -135,3 +135,11 @@ export type IkasLoyaltyWidgetConfig = {
|
|
|
135
135
|
isPreviewMode?: boolean;
|
|
136
136
|
onViewModelInitialized?: (viewModel: LoyaltyWidgetViewModel) => void;
|
|
137
137
|
};
|
|
138
|
+
declare global {
|
|
139
|
+
interface Window {
|
|
140
|
+
startIkasLoyaltyWidget?: (config?: IkasLoyaltyWidgetConfig) => void;
|
|
141
|
+
openIkasStorefrontWidget?: () => void;
|
|
142
|
+
closeIkasStorefrontWidget?: () => void;
|
|
143
|
+
ikasLoyaltyWidgetConfig?: IkasLoyaltyWidgetConfig;
|
|
144
|
+
}
|
|
145
|
+
}
|