@jotul/jotul-widgets 1.1.0 → 1.2.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/dist/JotulWidget.css +1 -1
- package/dist/JotulWidget.d.ts +2 -2
- package/dist/JotulWidget.js +8 -6
- package/dist/api.js +9 -0
- package/dist/components/FindDealerDrawerWidget.d.ts +4 -2
- package/dist/components/FindDealerDrawerWidget.js +14 -10
- package/dist/components/ProductPageWidget.d.ts +4 -2
- package/dist/components/ProductPageWidget.js +19 -27
- package/dist/components/product-page/CampaignStatus.d.ts +6 -0
- package/dist/components/product-page/CampaignStatus.js +48 -0
- package/dist/components/product-page/DealerList.d.ts +4 -2
- package/dist/components/product-page/DealerList.js +12 -4
- package/dist/components/product-page/StatusBanner.d.ts +1 -1
- package/dist/components/product-page/StatusBanner.js +3 -1
- package/dist/i18n/locales/cz.json +5 -1
- package/dist/i18n/locales/de.json +5 -1
- package/dist/i18n/locales/en.json +5 -1
- package/dist/i18n/locales/fi.json +5 -1
- package/dist/i18n/locales/fr.json +5 -1
- package/dist/i18n/locales/nl.json +5 -1
- package/dist/i18n/locales/no.json +5 -1
- package/dist/i18n/locales/pl.json +5 -1
- package/dist/i18n/locales/se.json +5 -1
- package/dist/i18n/widgetStrings.d.ts +4 -0
- package/dist/images/dealer-pin-ildstedet.svg +31 -0
- package/dist/images/ildstedet-dealer.svg +702 -0
- package/dist/index.d.ts +1 -1
- package/dist/types.d.ts +15 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { checkWidgetAuthorization, DEFAULT_WIDGET_LOCALE_TAG, normalizeWidgetLocale, resolveWidgetUiLocale, searchDealersByCoordinates, searchDealersByPostalCode, JotulWidget, type CheckWidgetAuthorizationOptions, type DealerSearchResponse, type JotulWidgetButtonStyling, type JotulWidgetLocale, type JotulWidgetProps, type JotulWidgetStyling, type JotulWidgetType, type WidgetAuthClientResponse, } from './JotulWidget';
|
|
1
|
+
export { checkWidgetAuthorization, DEFAULT_WIDGET_LOCALE_TAG, normalizeWidgetLocale, resolveWidgetUiLocale, searchDealersByCoordinates, searchDealersByPostalCode, JotulWidget, type CheckWidgetAuthorizationOptions, type DealerSearchResponse, type JotulWidgetBorderStyling, type JotulWidgetButtonStyling, type JotulWidgetLocale, type JotulWidgetProps, type JotulWidgetStyling, type JotulWidgetType, type WidgetAuthClientResponse, } from './JotulWidget';
|
package/dist/types.d.ts
CHANGED
|
@@ -22,6 +22,13 @@ export type DealerSearchResponse = {
|
|
|
22
22
|
};
|
|
23
23
|
total?: number;
|
|
24
24
|
dealers?: Array<Record<string, unknown>>;
|
|
25
|
+
campaign?: {
|
|
26
|
+
name?: string | null;
|
|
27
|
+
slug?: string | null;
|
|
28
|
+
salesMessage?: string | null;
|
|
29
|
+
from?: string | null;
|
|
30
|
+
to?: string | null;
|
|
31
|
+
} | null;
|
|
25
32
|
error?: string;
|
|
26
33
|
};
|
|
27
34
|
export type LocationSuggestion = {
|
|
@@ -43,6 +50,8 @@ export type CheckWidgetAuthorizationOptions = {
|
|
|
43
50
|
/** ISO 3166-1 alpha-2 market/country (e.g. `NO`, `SE`) sent to the API as `market`. */
|
|
44
51
|
market?: string;
|
|
45
52
|
brands?: string[];
|
|
53
|
+
/** Optional Sanity campaign slug used to limit dealer results to campaign dealers. */
|
|
54
|
+
campaignSlug?: string;
|
|
46
55
|
};
|
|
47
56
|
/** CSS values for primary CTAs; also used for map cluster bubbles (`backgroundColor` fill, `textColor` on the count). */
|
|
48
57
|
export type JotulWidgetButtonStyling = {
|
|
@@ -50,8 +59,12 @@ export type JotulWidgetButtonStyling = {
|
|
|
50
59
|
backgroundColor?: string;
|
|
51
60
|
textColor?: string;
|
|
52
61
|
};
|
|
62
|
+
export type JotulWidgetBorderStyling = {
|
|
63
|
+
borderColor?: string;
|
|
64
|
+
};
|
|
53
65
|
export type JotulWidgetStyling = {
|
|
54
66
|
button?: JotulWidgetButtonStyling;
|
|
67
|
+
border?: JotulWidgetBorderStyling;
|
|
55
68
|
};
|
|
56
69
|
export type WidgetTriggerRenderProps = {
|
|
57
70
|
onOpen: () => void;
|
|
@@ -70,6 +83,8 @@ export type JotulWidgetProps = {
|
|
|
70
83
|
/** ISO 3166-1 alpha-2 market filter for dealers and geocoder country bias (`NO`, `SE`, …). */
|
|
71
84
|
market?: string;
|
|
72
85
|
brands?: string[];
|
|
86
|
+
/** Optional Sanity campaign slug used to limit dealer results to campaign dealers. */
|
|
87
|
+
campaignSlug?: string;
|
|
73
88
|
styling?: JotulWidgetStyling;
|
|
74
89
|
/**
|
|
75
90
|
* Optional custom trigger for widgets with an open action (`productPage`, `findDealerDrawer`).
|