@mobielnl/elements 0.12.25 → 0.12.26
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/elements.css +1 -1
- package/dist/elements.js +1 -1
- package/dist/elements.umd.cjs +69 -69
- package/dist/{index-BkgkTFrf.js → index-C85ws3HF.js} +3592 -3567
- package/dist/{index-CSAejUDF.js → index-YciEToXc.js} +1 -1
- package/dist/index.d.ts +120 -14
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { n as ne, i as Ot, a as z, m as ie, r as $e, h as je, b as Ft, w as se, c as Te, d as Ce, e as qe, f as de, g as De, t as L, j as Rt, k as H, l as E, o as $, p as Kt, s as R, v as Lt, M as j, W as ze, q as xe, N as Et, u as Bt, x as Gt, y as Nt, z as Ht, K as Xe, A as _t, B as Ae, C as Wt, D as Ut, E as $t, F as jt, G as Ye, H as qt, I as zt, J as Xt, L as Pe, O as ke, P as Y, Q as Ie, R as Yt, V as Zt, S as Jt, T as Qt, U as en, X as tn, Y as nn, Z as Ze, _ as sn, $ as rn, a0 as on, a1 as an, a2 as cn, a3 as Je, a4 as Qe, a5 as et, a6 as tt, a7 as ln } from "./index-
|
|
2
|
+
import { n as ne, i as Ot, a as z, m as ie, r as $e, h as je, b as Ft, w as se, c as Te, d as Ce, e as qe, f as de, g as De, t as L, j as Rt, k as H, l as E, o as $, p as Kt, s as R, v as Lt, M as j, W as ze, q as xe, N as Et, u as Bt, x as Gt, y as Nt, z as Ht, K as Xe, A as _t, B as Ae, C as Wt, D as Ut, E as $t, F as jt, G as Ye, H as qt, I as zt, J as Xt, L as Pe, O as ke, P as Y, Q as Ie, R as Yt, V as Zt, S as Jt, T as Qt, U as en, X as tn, Y as nn, Z as Ze, _ as sn, $ as rn, a0 as on, a1 as an, a2 as cn, a3 as Je, a4 as Qe, a5 as et, a6 as tt, a7 as ln } from "./index-C85ws3HF.js";
|
|
3
3
|
import { Fragment as un } from "react";
|
|
4
4
|
var It = typeof globalThis < "u" && globalThis.process ? globalThis.process : { env: { NODE_ENV: "production" } };
|
|
5
5
|
const re = (...t) => t.reduce((e, n) => (i) => n(e(i))), nt = /* @__NO_SIDE_EFFECTS__ */ (t, e, n) => {
|
package/dist/index.d.ts
CHANGED
|
@@ -105,6 +105,15 @@ export declare type Block = {
|
|
|
105
105
|
amount: number;
|
|
106
106
|
};
|
|
107
107
|
|
|
108
|
+
export declare type BundleInfoViewedEvent = {
|
|
109
|
+
type: 'bundle_info_viewed';
|
|
110
|
+
/** The bundle group with bundle options */
|
|
111
|
+
bundleTypeSet: BundleTypeSet;
|
|
112
|
+
/** The bundle option within the bundle group
|
|
113
|
+
* @note if this is `undefined`, the user clicked the info icon for the bundle group label */
|
|
114
|
+
bundleSet?: BundleSet;
|
|
115
|
+
};
|
|
116
|
+
|
|
108
117
|
/**
|
|
109
118
|
* ClassNames for styling different parts of the `BundleModal` component
|
|
110
119
|
*/
|
|
@@ -173,6 +182,10 @@ declare type BundleSelectorClassNames = {
|
|
|
173
182
|
bundleTypeSetCheckboxGroup?: CheckboxGroupClassNames;
|
|
174
183
|
};
|
|
175
184
|
|
|
185
|
+
export declare type BundleSet = BundleTypeSet['bundleSets'][number];
|
|
186
|
+
|
|
187
|
+
export declare type BundleTypeSet = NonNullable<NonNullable<PropositionSelectorQuery['propositionSelector']>['bundleTypeSets']>[number];
|
|
188
|
+
|
|
176
189
|
/**
|
|
177
190
|
* ClassNames for styling different parts of the `Carousel` component
|
|
178
191
|
*/
|
|
@@ -1951,22 +1964,26 @@ export declare type PropositionSelectorProps = {
|
|
|
1951
1964
|
* Callback function fired when user actions occur.
|
|
1952
1965
|
*
|
|
1953
1966
|
* Events:
|
|
1954
|
-
* - `details_viewed`: User opened proposition details modal
|
|
1955
1967
|
* - `add_to_cart`: User clicked the add-to-cart CTA
|
|
1968
|
+
* - `bundle_info_viewed`: User clicked the info icon for the bundle group or bundle option
|
|
1969
|
+
* - `details_viewed`: User opened proposition details modal
|
|
1956
1970
|
* - `profile_changed`: User profile changed (includes from/to values)
|
|
1957
1971
|
*
|
|
1958
1972
|
* @example
|
|
1959
1973
|
* onAction={(event) => {
|
|
1960
1974
|
* switch(event.type) {
|
|
1961
|
-
*
|
|
1962
|
-
*
|
|
1963
|
-
*
|
|
1964
|
-
*
|
|
1965
|
-
*
|
|
1966
|
-
*
|
|
1967
|
-
*
|
|
1968
|
-
*
|
|
1969
|
-
*
|
|
1975
|
+
* case 'add_to_cart':
|
|
1976
|
+
* console.log(event.proposition)
|
|
1977
|
+
* break
|
|
1978
|
+
* case 'bundle_info_viewed':
|
|
1979
|
+
* console.log(event.bundleTypeSet, event.bundleSet)
|
|
1980
|
+
* break
|
|
1981
|
+
* case 'details_viewed':
|
|
1982
|
+
* console.log(event.proposition, event.tab)
|
|
1983
|
+
* break
|
|
1984
|
+
* case 'profile_changed':
|
|
1985
|
+
* console.log(event.from, event.to)
|
|
1986
|
+
* break
|
|
1970
1987
|
* }
|
|
1971
1988
|
* }}
|
|
1972
1989
|
*/
|
|
@@ -1986,6 +2003,97 @@ export declare type PropositionSelectorProps = {
|
|
|
1986
2003
|
hideRetentionOnFilledProfile?: boolean;
|
|
1987
2004
|
};
|
|
1988
2005
|
|
|
2006
|
+
declare type PropositionSelectorQuery = {
|
|
2007
|
+
__typename?: 'RootQueryType';
|
|
2008
|
+
propositionSelector?: {
|
|
2009
|
+
__typename?: 'BundleSelector';
|
|
2010
|
+
key: string;
|
|
2011
|
+
planVariantKey: string;
|
|
2012
|
+
phoneVariantKey?: string | null;
|
|
2013
|
+
modificationKey?: string | null;
|
|
2014
|
+
providerSlug: string;
|
|
2015
|
+
handsetCreditKeys: Array<string>;
|
|
2016
|
+
phoneVariantKeys: Array<string>;
|
|
2017
|
+
modificationDescription?: string | null;
|
|
2018
|
+
modificationInfoUrl?: string | null;
|
|
2019
|
+
hasModifications: boolean;
|
|
2020
|
+
basePrice: number;
|
|
2021
|
+
creditFee: number;
|
|
2022
|
+
planVariant: {
|
|
2023
|
+
__typename?: 'BundleSelectorPlanVariant';
|
|
2024
|
+
contractType: string;
|
|
2025
|
+
};
|
|
2026
|
+
alternatePlanVariant?: {
|
|
2027
|
+
__typename?: 'BundleSelectorPlanVariant';
|
|
2028
|
+
unitKey: string;
|
|
2029
|
+
} | null;
|
|
2030
|
+
provider: {
|
|
2031
|
+
__typename?: 'Provider';
|
|
2032
|
+
name: string;
|
|
2033
|
+
slug: string;
|
|
2034
|
+
};
|
|
2035
|
+
planVariants: Array<{
|
|
2036
|
+
__typename?: 'BundleSelectorPlanVariant';
|
|
2037
|
+
unitKey: string;
|
|
2038
|
+
contractTerm: number;
|
|
2039
|
+
contractType: string;
|
|
2040
|
+
plan: string;
|
|
2041
|
+
}>;
|
|
2042
|
+
bundleTypeSets: Array<{
|
|
2043
|
+
__typename?: 'BundleSelectorBundleTypeSet';
|
|
2044
|
+
unitKey: string;
|
|
2045
|
+
name: string;
|
|
2046
|
+
required: boolean;
|
|
2047
|
+
multiSelect: boolean;
|
|
2048
|
+
requiredBundleTypeSetId?: string | null;
|
|
2049
|
+
infoUrl?: string | null;
|
|
2050
|
+
bundleTypes: Array<string>;
|
|
2051
|
+
bundleSets: Array<{
|
|
2052
|
+
__typename?: 'BundleSelectorBundleSet';
|
|
2053
|
+
infoUrl?: string | null;
|
|
2054
|
+
imageUrl?: string | null;
|
|
2055
|
+
unitKey: string;
|
|
2056
|
+
name: string;
|
|
2057
|
+
label: string;
|
|
2058
|
+
usps: Array<string>;
|
|
2059
|
+
requiredBundleTypeSetId?: string | null;
|
|
2060
|
+
requiredModificationGroupId?: string | null;
|
|
2061
|
+
baseMonthlyFee: number;
|
|
2062
|
+
lifetimeMonthlyFee: number;
|
|
2063
|
+
monthlyFees: Array<number>;
|
|
2064
|
+
content: {
|
|
2065
|
+
__typename?: 'PropositionContent';
|
|
2066
|
+
data: number;
|
|
2067
|
+
minutes: number;
|
|
2068
|
+
sms: number;
|
|
2069
|
+
sharedCredits?: Array<string | null> | null;
|
|
2070
|
+
dataSpeedDown: number;
|
|
2071
|
+
dataSpeedUp: number;
|
|
2072
|
+
channels: Array<string>;
|
|
2073
|
+
hdChannels: Array<string>;
|
|
2074
|
+
receivers: number;
|
|
2075
|
+
};
|
|
2076
|
+
modifications?: {
|
|
2077
|
+
__typename?: 'BundleSelectorModifications';
|
|
2078
|
+
name?: string | null;
|
|
2079
|
+
monthlyFees: Array<number>;
|
|
2080
|
+
content: {
|
|
2081
|
+
__typename?: 'PropositionContent';
|
|
2082
|
+
data: number;
|
|
2083
|
+
minutes: number;
|
|
2084
|
+
sms: number;
|
|
2085
|
+
};
|
|
2086
|
+
} | null;
|
|
2087
|
+
}>;
|
|
2088
|
+
}>;
|
|
2089
|
+
blacklists: Array<{
|
|
2090
|
+
__typename?: 'BundleSelectorBlacklist';
|
|
2091
|
+
unitKey: string;
|
|
2092
|
+
blacklist: Array<string>;
|
|
2093
|
+
}>;
|
|
2094
|
+
} | null;
|
|
2095
|
+
};
|
|
2096
|
+
|
|
1989
2097
|
export declare type ProviderOption = {
|
|
1990
2098
|
slug: string;
|
|
1991
2099
|
name: string;
|
|
@@ -2189,10 +2297,8 @@ declare type SelectFilterClassNames = {
|
|
|
2189
2297
|
/**
|
|
2190
2298
|
* Union type of all PropositionSelector action events.
|
|
2191
2299
|
*
|
|
2192
|
-
* Re-uses `DetailsViewedEvent` and `ProfileChangedEvent` from `ProductResults`
|
|
2193
|
-
|
|
2194
|
-
*/
|
|
2195
|
-
export declare type SelectorActionEvent = AddToCartEvent | DetailsViewedEvent | ProfileChangedEvent;
|
|
2300
|
+
* Re-uses `DetailsViewedEvent` and `ProfileChangedEvent` from `ProductResults` */
|
|
2301
|
+
export declare type SelectorActionEvent = AddToCartEvent | BundleInfoViewedEvent | DetailsViewedEvent | ProfileChangedEvent;
|
|
2196
2302
|
|
|
2197
2303
|
/**
|
|
2198
2304
|
* ClassNames for styling different parts of the `Selector` component
|