@orderingstack/front-hooks 6.8.0 → 6.9.0-beta.1
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.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +942 -889
- package/dist/index.es.js.map +1 -1
- package/dist/packages/analytics-plugin/dist/index.cjs.d.ts +49 -0
- package/dist/packages/analytics-plugin/dist/index.cjs.d.ts.map +1 -0
- package/dist/packages/analytics-plugin/dist/index.es.d.ts +48 -0
- package/dist/packages/analytics-plugin/dist/index.es.d.ts.map +1 -0
- package/dist/packages/auth/dist/deps/AuthProvider.cjs.d.ts +75 -0
- package/dist/packages/auth/dist/deps/AuthProvider.cjs.d.ts.map +1 -0
- package/dist/packages/auth/dist/deps/AuthProvider.es.d.ts +71 -0
- package/dist/packages/auth/dist/deps/AuthProvider.es.d.ts.map +1 -0
- package/dist/packages/auth/dist/deps/web.cjs.d.ts +10 -0
- package/dist/packages/auth/dist/deps/web.cjs.d.ts.map +1 -0
- package/dist/packages/auth/dist/deps/web.cjs2.d.ts +16 -0
- package/dist/packages/auth/dist/deps/web.cjs2.d.ts.map +1 -0
- package/dist/packages/auth/dist/deps/web.cjs3.d.ts +143 -0
- package/dist/packages/auth/dist/deps/web.cjs3.d.ts.map +1 -0
- package/dist/packages/auth/dist/deps/web.cjs4.d.ts +27 -0
- package/dist/packages/auth/dist/deps/web.cjs4.d.ts.map +1 -0
- package/dist/packages/auth/dist/deps/web.cjs5.d.ts +35 -0
- package/dist/packages/auth/dist/deps/web.cjs5.d.ts.map +1 -0
- package/dist/packages/auth/dist/deps/web.es.d.ts +10 -0
- package/dist/packages/auth/dist/deps/web.es.d.ts.map +1 -0
- package/dist/packages/auth/dist/deps/web.es2.d.ts +16 -0
- package/dist/packages/auth/dist/deps/web.es2.d.ts.map +1 -0
- package/dist/packages/auth/dist/deps/web.es3.d.ts +143 -0
- package/dist/packages/auth/dist/deps/web.es3.d.ts.map +1 -0
- package/dist/packages/auth/dist/deps/web.es4.d.ts +27 -0
- package/dist/packages/auth/dist/deps/web.es4.d.ts.map +1 -0
- package/dist/packages/auth/dist/deps/web.es5.d.ts +35 -0
- package/dist/packages/auth/dist/deps/web.es5.d.ts.map +1 -0
- package/dist/packages/auth/dist/legacy.cjs.d.ts +10 -0
- package/dist/packages/auth/dist/legacy.cjs.d.ts.map +1 -0
- package/dist/packages/auth/dist/legacy.es.d.ts +8 -0
- package/dist/packages/auth/dist/legacy.es.d.ts.map +1 -0
- package/dist/packages/auth/dist/v6.cjs.d.ts +6 -0
- package/dist/packages/auth/dist/v6.cjs.d.ts.map +1 -0
- package/dist/packages/auth/dist/v6.es.d.ts +8 -0
- package/dist/packages/auth/dist/v6.es.d.ts.map +1 -0
- package/dist/packages/config/dist/index.cjs.d.ts +73 -0
- package/dist/packages/config/dist/index.cjs.d.ts.map +1 -0
- package/dist/packages/config/dist/index.es.d.ts +72 -0
- package/dist/packages/config/dist/index.es.d.ts.map +1 -0
- package/dist/packages/escpos-encoder/dist/index.d.cts +366 -0
- package/dist/packages/escpos-encoder/dist/index.d.cts.map +1 -0
- package/dist/packages/escpos-encoder/dist/index.es.d.ts +633 -0
- package/dist/packages/escpos-encoder/dist/index.es.d.ts.map +1 -0
- package/dist/packages/hooks/dist/index.cjs.d.ts +2 -2
- package/dist/packages/hooks/dist/index.cjs.d.ts.map +1 -1
- package/dist/packages/hooks/dist/index.es.d.ts +38 -38
- package/dist/packages/hooks/dist/index.es.d.ts.map +1 -1
- package/dist/packages/menu/dist/index.cjs.d.ts +22 -0
- package/dist/packages/menu/dist/index.cjs.d.ts.map +1 -0
- package/dist/packages/menu/dist/index.es.d.ts +22 -0
- package/dist/packages/menu/dist/index.es.d.ts.map +1 -0
- package/dist/packages/mparticle-plugin/dist/index.cjs.d.ts +14 -0
- package/dist/packages/mparticle-plugin/dist/index.cjs.d.ts.map +1 -0
- package/dist/packages/mparticle-plugin/dist/index.es.d.ts +14 -0
- package/dist/packages/mparticle-plugin/dist/index.es.d.ts.map +1 -0
- package/dist/packages/phone-input/dist/index.cjs.d.ts +16 -0
- package/dist/packages/phone-input/dist/index.cjs.d.ts.map +1 -0
- package/dist/packages/phone-input/dist/index.es.d.ts +16 -0
- package/dist/packages/phone-input/dist/index.es.d.ts.map +1 -0
- package/dist/types/useDisplayPrice.d.ts +2 -2
- package/dist/types/useDisplayPrice.d.ts.map +1 -1
- package/dist/types/useMediaUrl.d.ts.map +1 -1
- package/dist/types/utils.d.ts +2 -1
- package/dist/types/utils.d.ts.map +1 -1
- package/package.json +3 -4
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
declare let
|
|
1
|
+
declare let te: {
|
|
2
2
|
new (): {};
|
|
3
3
|
getInstance(): {};
|
|
4
4
|
instance: {} | undefined;
|
|
5
5
|
};
|
|
6
6
|
declare function us(t: any): number;
|
|
7
|
-
declare function
|
|
8
|
-
declare function
|
|
7
|
+
declare function Qr(t: any, e: any): any;
|
|
8
|
+
declare function pv({ product: t, state: e, selected: r, cheapestGroupOptionsProduct: n, basePrice: i, dangerouslyOverwritePrice: a }: {
|
|
9
9
|
product: any;
|
|
10
10
|
state: any;
|
|
11
11
|
selected: any;
|
|
@@ -18,38 +18,38 @@ declare function pd({ product: t, state: r, selected: e, cheapestGroupOptionsPro
|
|
|
18
18
|
calculatedPriceDefaultProductState: any;
|
|
19
19
|
calculatedChildrensBasePrice: any;
|
|
20
20
|
};
|
|
21
|
-
declare function Jt(t: any,
|
|
22
|
-
declare function os(t: any,
|
|
23
|
-
declare function
|
|
24
|
-
declare function
|
|
25
|
-
declare function
|
|
21
|
+
declare function Jt(t: any, e?: undefined, r?: undefined, n?: boolean): any;
|
|
22
|
+
declare function os(t: any, e?: undefined, r?: undefined, n?: boolean): any[];
|
|
23
|
+
declare function hv(t: any, e: any, r?: string, n?: number): string;
|
|
24
|
+
declare function bv(t: any): any[] | null;
|
|
25
|
+
declare function mv({ items: t, locale: e, venue: r }: {
|
|
26
26
|
items: any;
|
|
27
27
|
locale: any;
|
|
28
28
|
venue: any;
|
|
29
29
|
}): any;
|
|
30
|
-
declare function At(t: any,
|
|
31
|
-
declare function
|
|
32
|
-
declare function
|
|
33
|
-
declare function
|
|
34
|
-
declare function
|
|
35
|
-
declare function nn(t: any,
|
|
36
|
-
declare function
|
|
30
|
+
declare function At(t: any, e: any): any;
|
|
31
|
+
declare function Av(t: any, e: any, r: any): any;
|
|
32
|
+
declare function sv(t: any, e?: number): any;
|
|
33
|
+
declare function vv(t: any): any;
|
|
34
|
+
declare function $v(t: any): any[] | undefined;
|
|
35
|
+
declare function nn(t: any, e: any): any;
|
|
36
|
+
declare function en(t: any): any[];
|
|
37
37
|
declare function wt(t: any): boolean;
|
|
38
|
-
declare function pt(t: any,
|
|
39
|
-
declare function
|
|
40
|
-
declare function zt(t: any,
|
|
41
|
-
declare function
|
|
42
|
-
declare function St(t: any,
|
|
43
|
-
declare function
|
|
44
|
-
declare function
|
|
45
|
-
declare function sg(t: any,
|
|
46
|
-
declare function
|
|
38
|
+
declare function pt(t: any, e: any): any;
|
|
39
|
+
declare function gv(t: any, e: any): boolean;
|
|
40
|
+
declare function zt(t: any, e: any, r: any): boolean;
|
|
41
|
+
declare function Lr(t: any, e: any): any;
|
|
42
|
+
declare function St(t: any, e: any): void;
|
|
43
|
+
declare function yv(t: any, e: any): void;
|
|
44
|
+
declare function lv(t: any): number;
|
|
45
|
+
declare function sg(t: any, e?: boolean, r?: undefined, n?: number): never[];
|
|
46
|
+
declare function de(t: any, e: number | undefined, r: boolean | undefined, n: any, i: any): {
|
|
47
47
|
value: any;
|
|
48
48
|
isError: boolean;
|
|
49
49
|
isLoading: boolean;
|
|
50
50
|
refresh: (u: any) => Promise<boolean | void>;
|
|
51
51
|
};
|
|
52
|
-
declare function
|
|
52
|
+
declare function Tv({ id: t, intervalSeconds: e, withLocalStorage: r }: {
|
|
53
53
|
id: any;
|
|
54
54
|
intervalSeconds: any;
|
|
55
55
|
withLocalStorage: any;
|
|
@@ -59,7 +59,7 @@ declare function Td({ id: t, intervalSeconds: r, withLocalStorage: e }: {
|
|
|
59
59
|
isLoading: boolean;
|
|
60
60
|
refresh: (u: any) => Promise<boolean | void>;
|
|
61
61
|
};
|
|
62
|
-
declare function og({ product: t, state:
|
|
62
|
+
declare function og({ product: t, state: e, selected: r, cheapestGroupOptionsProduct: n, basePrice: i, dangerouslyOverwritePrice: a }: {
|
|
63
63
|
product: any;
|
|
64
64
|
state: any;
|
|
65
65
|
selected: any;
|
|
@@ -72,14 +72,14 @@ declare function og({ product: t, state: r, selected: e, cheapestGroupOptionsPro
|
|
|
72
72
|
calculatedPriceDefaultProductState: any;
|
|
73
73
|
calculatedChildrensBasePrice: any;
|
|
74
74
|
};
|
|
75
|
-
declare function
|
|
76
|
-
declare function
|
|
77
|
-
declare function
|
|
75
|
+
declare function _v(t: any): any[];
|
|
76
|
+
declare function ne(t: any, e: any): () => void;
|
|
77
|
+
declare function Sv(t: any): {
|
|
78
78
|
dineInOpen: any;
|
|
79
79
|
takeAwayOpen: any;
|
|
80
80
|
loaded: boolean;
|
|
81
81
|
};
|
|
82
|
-
declare function Xg({ kioskMediaId: t, kioskMediaType:
|
|
82
|
+
declare function Xg({ kioskMediaId: t, kioskMediaType: e, intervalSeconds: r, withLocalStorage: n, baseUrl: i, tenant: a, venue: s, locale: c }: {
|
|
83
83
|
kioskMediaId: any;
|
|
84
84
|
kioskMediaType: any;
|
|
85
85
|
intervalSeconds?: number | undefined;
|
|
@@ -97,7 +97,7 @@ declare function Xg({ kioskMediaId: t, kioskMediaType: r, intervalSeconds: e, wi
|
|
|
97
97
|
imageDisplayTime: any;
|
|
98
98
|
refresh: (u: any) => Promise<boolean | void>;
|
|
99
99
|
};
|
|
100
|
-
declare function
|
|
100
|
+
declare function Iv({ kioskMediaId: t, kioskMediaType: e, venue: r, language: n, intervalSeconds: i, withLocalStorage: a }: {
|
|
101
101
|
kioskMediaId: any;
|
|
102
102
|
kioskMediaType: any;
|
|
103
103
|
venue: any;
|
|
@@ -113,33 +113,33 @@ declare function Id({ kioskMediaId: t, kioskMediaType: r, venue: e, language: n,
|
|
|
113
113
|
imageDisplayTime: any;
|
|
114
114
|
refresh: (u: any) => Promise<boolean | void>;
|
|
115
115
|
};
|
|
116
|
-
declare function
|
|
116
|
+
declare function Ev(t: any, e: any, r: any, n?: number, i?: boolean): {
|
|
117
117
|
url: any;
|
|
118
118
|
fallbackUrl: any;
|
|
119
119
|
isError: boolean;
|
|
120
120
|
mediaType: any;
|
|
121
121
|
refresh: (u: any) => Promise<boolean | void>;
|
|
122
122
|
};
|
|
123
|
-
declare function kg(t: any,
|
|
123
|
+
declare function kg(t: any, e: any, r: any, n: number | undefined, i: boolean | undefined, a: any, s: any): {
|
|
124
124
|
url: any;
|
|
125
125
|
fallbackUrl: any;
|
|
126
126
|
isError: boolean;
|
|
127
127
|
mediaType: any;
|
|
128
128
|
refresh: (u: any) => Promise<boolean | void>;
|
|
129
129
|
};
|
|
130
|
-
declare function
|
|
131
|
-
declare function
|
|
130
|
+
declare function Dv(t: any, e?: number): any;
|
|
131
|
+
declare function dv({ originalMenu: t, markOnly: e, timeZone: r, interval: n, enableKeys: i }: {
|
|
132
132
|
originalMenu: any;
|
|
133
133
|
markOnly?: boolean | undefined;
|
|
134
134
|
timeZone: any;
|
|
135
135
|
interval?: number | undefined;
|
|
136
136
|
enableKeys?: never[] | undefined;
|
|
137
137
|
}): never[];
|
|
138
|
-
declare function
|
|
139
|
-
declare function Jg(t: any,
|
|
138
|
+
declare function Ov(t: any, e: any): void;
|
|
139
|
+
declare function Jg(t: any, e: number | undefined, r: boolean | undefined, n: any, i: any, a: any): {
|
|
140
140
|
value: any;
|
|
141
141
|
isError: boolean;
|
|
142
142
|
refresh: (u: any) => Promise<boolean | void>;
|
|
143
143
|
};
|
|
144
|
-
export {
|
|
144
|
+
export { te as MediaProxy, us as addDiscounts, Qr as availabilityCustomizer, pv as calculateDisplayPrice, Jt as filterTimeAvailabilityOfItems, os as filterTimeAvailabilityOfProducts, hv as formatPrice, bv as getGroupedBucketLines, mv as getLocalizedVenueItem, At as getLocalizedVenueMediaFromArray, Av as getLocalizedVenueMediaUrl, sv as getMediaUrl, vv as getProductAcronym, $v as getUnusedCouponsKeysFromOrder, nn as getUrlFromLocalizedVenueMedia, en as groupOrderLines, wt as isAvailable, pt as isChannelOpen, gv as isHiddenByEnableKey, zt as isProductAvailable, Lr as isProductEnabled, St as markHiddenByEnableKey, yv as markItemsHiddenByEnableKey, lv as summarizeLineDiscounts, sg as useAvailability, de as useCms, Tv as useCmsInConfigContext, og as useDisplayPrice, _v as useGroupOrderLines, ne as useInterval, Sv as useKioskChannelsAvailability, Xg as useKioskMediaCms, Iv as useKioskMediaCmsWithContext, Ev as useLocalizedVenueMedia, kg as useLocalizedVenueMediaLegacy, Dv as useMediaUrl, dv as useMenu, Ov as useOnClickOutside, Jg as useVenueCms };
|
|
145
145
|
//# sourceMappingURL=index.es.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es.d.ts","sourceRoot":"","sources":["../../../index.es.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.es.d.ts","sourceRoot":"","sources":["../../../index.es.js"],"names":[],"mappings":"AA4uEA;;;;EAAW;AA5iDX,oCAGC;AA2rBD,yCASC;AA+FD;;;;;;;;;;;;EA4DU;AAr5BV,4EAuCC;AAvCD,8EAuCC;AAmBD,oEAEC;AA87BD,0CAEC;AAyDD;;;;QAcC;AAhCD,yCAaC;AACD,iDAGC;AA4iBD,6CAEC;AA7hDD,iCAIC;AACD,+CAmBC;AAs8BD,yCAaC;AAtFD,mCA4BC;AA8BD,qCAcC;AA1/BD,yCAMC;AAoBD,6CAEC;AA/ED,qDAUC;AA8DD,yCAIC;AA0rBD,0CASC;AATD,0CASC;AA7sBD,oCAEC;AAwqBD,6EAeC;AAoVD;;;;;EAsDC;AACD;;;;;;;;;EAeC;AAjTD;;;;;;;;;;;;EA4DU;AAkGV,mCAEC;AAhoDD,gDAkBC;AA04DD;;;;EAaC;AAnGD;;;;;;;;;;;;;;;;;EA4CC;AACD;;;;;;;;;;;;;;;EAqBC;AArGD;;;;;;EAaC;AACD;;;;;;EAoBC;AAqaD,6CAEC;AAh2BD;;;;;;YASC;AAofD,0CAkBC;AAzID;;;;EAgBC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export { sl as Menu };
|
|
2
|
+
declare function sl({ menu: e, handleSelectProduct: t, fallbackImg: r, lazyLoadImg: n, currency: i, timeZone: s, availabilityMarkOnly: a, availabilityCheckInterval: l, cols: d, colsLg: c, transitionProps: v, stacking: h, onMenuCategoryViewed: P, goToCheckout: A, goToStart: _, order: x, changeQuantity: N, components: R }: {
|
|
3
|
+
menu: any;
|
|
4
|
+
handleSelectProduct: any;
|
|
5
|
+
fallbackImg?: string | undefined;
|
|
6
|
+
lazyLoadImg: any;
|
|
7
|
+
currency: any;
|
|
8
|
+
timeZone: any;
|
|
9
|
+
availabilityMarkOnly: any;
|
|
10
|
+
availabilityCheckInterval: any;
|
|
11
|
+
cols: any;
|
|
12
|
+
colsLg: any;
|
|
13
|
+
transitionProps: any;
|
|
14
|
+
stacking?: string | undefined;
|
|
15
|
+
onMenuCategoryViewed: any;
|
|
16
|
+
goToCheckout: any;
|
|
17
|
+
goToStart: any;
|
|
18
|
+
order: any;
|
|
19
|
+
changeQuantity: any;
|
|
20
|
+
components: any;
|
|
21
|
+
}): any;
|
|
22
|
+
//# sourceMappingURL=index.cjs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs.d.ts","sourceRoot":"","sources":["../../../../../menu/dist/index.cjs.js"],"names":[],"mappings":";AA0B++sG;;;;;;;;;;;;;;;;;;;QAA88I"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export { El as Menu };
|
|
2
|
+
declare function El({ menu: e, handleSelectProduct: t, fallbackImg: r, lazyLoadImg: n, currency: i, timeZone: s, availabilityMarkOnly: a, availabilityCheckInterval: l, cols: d, colsLg: c, transitionProps: v, stacking: h, onMenuCategoryViewed: P, goToCheckout: A, goToStart: _, order: x, changeQuantity: N, components: R }: {
|
|
3
|
+
menu: any;
|
|
4
|
+
handleSelectProduct: any;
|
|
5
|
+
fallbackImg?: string | undefined;
|
|
6
|
+
lazyLoadImg: any;
|
|
7
|
+
currency: any;
|
|
8
|
+
timeZone: any;
|
|
9
|
+
availabilityMarkOnly: any;
|
|
10
|
+
availabilityCheckInterval: any;
|
|
11
|
+
cols: any;
|
|
12
|
+
colsLg: any;
|
|
13
|
+
transitionProps: any;
|
|
14
|
+
stacking?: string | undefined;
|
|
15
|
+
onMenuCategoryViewed: any;
|
|
16
|
+
goToCheckout: any;
|
|
17
|
+
goToStart: any;
|
|
18
|
+
order: any;
|
|
19
|
+
changeQuantity: any;
|
|
20
|
+
components: any;
|
|
21
|
+
}): any;
|
|
22
|
+
//# sourceMappingURL=index.es.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.es.d.ts","sourceRoot":"","sources":["../../../../../menu/dist/index.es.js"],"names":[],"mappings":";AAsiJA;;;;;;;;;;;;;;;;;;;QAiMC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export = en;
|
|
2
|
+
declare function en(e: any): {
|
|
3
|
+
name: string;
|
|
4
|
+
initialize: () => void;
|
|
5
|
+
page: ({ payload: n }: {
|
|
6
|
+
payload: any;
|
|
7
|
+
}) => void;
|
|
8
|
+
track: ({ payload: n }: {
|
|
9
|
+
payload: any;
|
|
10
|
+
}) => void;
|
|
11
|
+
loaded: () => boolean;
|
|
12
|
+
reset: () => void;
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=index.cjs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs.d.ts","sourceRoot":"","sources":["../../../../../mparticle-plugin/dist/index.cjs.js"],"names":[],"mappings":";AAAqpG;;;;;;;;;;;EAAimR"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export { nn as default };
|
|
2
|
+
declare function nn(e: any): {
|
|
3
|
+
name: string;
|
|
4
|
+
initialize: () => void;
|
|
5
|
+
page: ({ payload: n }: {
|
|
6
|
+
payload: any;
|
|
7
|
+
}) => void;
|
|
8
|
+
track: ({ payload: n }: {
|
|
9
|
+
payload: any;
|
|
10
|
+
}) => void;
|
|
11
|
+
loaded: () => boolean;
|
|
12
|
+
reset: () => void;
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=index.es.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.es.d.ts","sourceRoot":"","sources":["../../../../../mparticle-plugin/dist/index.es.js"],"names":[],"mappings":";AAwDA;;;;;;;;;;;EAwVC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export { mo as PhoneInput };
|
|
2
|
+
declare function mo({ disabled: e, notEditing: t, countries: A, label: g, required: I, initialValue: s, onChange: o, missingErrorMessage: l, invalidErrorMessage: C, inputLabelProps: r, sx: n, inputProps: a }: {
|
|
3
|
+
disabled: any;
|
|
4
|
+
notEditing: any;
|
|
5
|
+
countries: any;
|
|
6
|
+
label: any;
|
|
7
|
+
required: any;
|
|
8
|
+
initialValue: any;
|
|
9
|
+
onChange: any;
|
|
10
|
+
missingErrorMessage: any;
|
|
11
|
+
invalidErrorMessage: any;
|
|
12
|
+
inputLabelProps: any;
|
|
13
|
+
sx: any;
|
|
14
|
+
inputProps: any;
|
|
15
|
+
}): any;
|
|
16
|
+
//# sourceMappingURL=index.cjs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs.d.ts","sourceRoot":"","sources":["../../../../../phone-input/dist/index.cjs.js"],"names":[],"mappings":";AAmC+72B;;;;;;;;;;;;;QAA29D"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export { Oo as PhoneInput };
|
|
2
|
+
declare function Oo({ disabled: e, notEditing: t, countries: A, label: g, required: I, initialValue: s, onChange: o, missingErrorMessage: l, invalidErrorMessage: C, inputLabelProps: r, sx: n, inputProps: a }: {
|
|
3
|
+
disabled: any;
|
|
4
|
+
notEditing: any;
|
|
5
|
+
countries: any;
|
|
6
|
+
label: any;
|
|
7
|
+
required: any;
|
|
8
|
+
initialValue: any;
|
|
9
|
+
onChange: any;
|
|
10
|
+
missingErrorMessage: any;
|
|
11
|
+
invalidErrorMessage: any;
|
|
12
|
+
inputLabelProps: any;
|
|
13
|
+
sx: any;
|
|
14
|
+
inputProps: any;
|
|
15
|
+
}): any;
|
|
16
|
+
//# sourceMappingURL=index.es.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.es.d.ts","sourceRoot":"","sources":["../../../../../phone-input/dist/index.es.js"],"names":[],"mappings":";AAwxHA;;;;;;;;;;;;;QA0GC"}
|
|
@@ -8,13 +8,13 @@ interface UseDisplayPriceProps {
|
|
|
8
8
|
basePrice?: boolean;
|
|
9
9
|
dangerouslyOverwritePrice?: (product: IProduct) => number | undefined;
|
|
10
10
|
}
|
|
11
|
-
export declare const useDisplayPrice: ({ product, state, selected, cheapestGroupOptionsProduct, basePrice, dangerouslyOverwritePrice }: UseDisplayPriceProps) => {
|
|
11
|
+
export declare const useDisplayPrice: ({ product, state, selected, cheapestGroupOptionsProduct, basePrice, dangerouslyOverwritePrice, }: UseDisplayPriceProps) => {
|
|
12
12
|
displayPrice: number;
|
|
13
13
|
showAsMinPrice: boolean | "" | undefined;
|
|
14
14
|
calculatedPriceDefaultProductState: number;
|
|
15
15
|
calculatedChildrensBasePrice: number | undefined;
|
|
16
16
|
};
|
|
17
|
-
export declare const calculateDisplayPrice: ({ product, state, selected, cheapestGroupOptionsProduct, basePrice, dangerouslyOverwritePrice }: UseDisplayPriceProps) => {
|
|
17
|
+
export declare const calculateDisplayPrice: ({ product, state, selected, cheapestGroupOptionsProduct, basePrice, dangerouslyOverwritePrice, }: UseDisplayPriceProps) => {
|
|
18
18
|
displayPrice: number;
|
|
19
19
|
showAsMinPrice: boolean | "" | undefined;
|
|
20
20
|
calculatedPriceDefaultProductState: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDisplayPrice.d.ts","sourceRoot":"","sources":["../../../../src/useDisplayPrice.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"useDisplayPrice.d.ts","sourceRoot":"","sources":["../../../../src/useDisplayPrice.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,QAAQ,EACR,aAAa,EACd,MAAM,+BAA+B,CAAC;AAwKvC,UAAU,oBAAoB;IAC5B,OAAO,EAAE,QAAQ,CAAC;IAClB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,yBAAyB,CAAC,EAAE,CAAC,OAAO,EAAE,QAAQ,KAAK,MAAM,GAAG,SAAS,CAAC;CACvE;AAED,eAAO,MAAM,eAAe,GAAI,kGAO7B,oBAAoB;;;;;CA6CtB,CAAC;AAEF,eAAO,MAAM,qBAAqB,qGA/C/B,oBAAoB;;;;;CA+C6B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMediaUrl.d.ts","sourceRoot":"","sources":["../../../../src/useMediaUrl.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAK3D,qBAAa,UAAU;IACrB,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAa;IACpC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAS;IAChC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAS;IAC9B,OAAO,CAAC,MAAM,CAAC,QAAQ,CAA+B;WAExC,WAAW;IAOlB,MAAM,GAAI,KAAK,MAAM,EAAE,OAAO,UAAU,KAAG,MAAM,CAMtD;IAEF,OAAc,gBAAgB,GAC5B,KAAK,MAAM,EACX,OAAM,UAAgB,KACrB,MAAM,
|
|
1
|
+
{"version":3,"file":"useMediaUrl.d.ts","sourceRoot":"","sources":["../../../../src/useMediaUrl.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAK3D,qBAAa,UAAU;IACrB,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAa;IACpC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAS;IAChC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAS;IAC9B,OAAO,CAAC,MAAM,CAAC,QAAQ,CAA+B;WAExC,WAAW;IAOlB,MAAM,GAAI,KAAK,MAAM,EAAE,OAAO,UAAU,KAAG,MAAM,CAMtD;IAEF,OAAc,gBAAgB,GAC5B,KAAK,MAAM,EACX,OAAM,UAAgB,KACrB,MAAM,CAiCP;IAEF,OAAO,CAAC,MAAM,CAAC,WAAW,CAUxB;IAEF,OAAc,SAAS,gBAA2B;IAG3C,WAAW,GAAU,KAAK,MAAM,KAAG,OAAO,CAAC,OAAO,CAAC,CAUxD;CACH;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,GAAE,UAAgB,GAAG,MAAM,CAEvE;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,GAAE,UAAgB,GAAG,MAAM,CAEvE"}
|
package/dist/types/utils.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IOrderLine, IDiscount, IProduct, IOrder, IOrderCoupon } from '@orderingstack/ordering-types';
|
|
1
|
+
import { IOrderLine, IDiscount, IProduct, IOrder, IOrderCoupon, EProductKind, EProductKindBucket } from '@orderingstack/ordering-types';
|
|
2
2
|
|
|
3
3
|
export declare function addDiscounts(discounts: IDiscount[] | undefined): number;
|
|
4
4
|
export declare function summarizeLineDiscounts(line: IOrderLine): number;
|
|
@@ -7,4 +7,5 @@ export declare function isProductEnabled(item: IProduct, enableKeys?: string[]):
|
|
|
7
7
|
export declare function isHiddenByEnableKey(item: IProduct, enableKeys?: string[]): boolean;
|
|
8
8
|
export declare function getProductAcronym(product: IProduct): string;
|
|
9
9
|
export declare function getUnusedCouponsKeysFromOrder(order: IOrder): IOrderCoupon[] | undefined;
|
|
10
|
+
export declare function isAnyGroupKind(kind: EProductKind | EProductKindBucket): boolean;
|
|
10
11
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,SAAS,EACT,QAAQ,EACR,MAAM,EACN,YAAY,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,SAAS,EACT,QAAQ,EACR,MAAM,EACN,YAAY,EACZ,YAAY,EACZ,kBAAkB,EACnB,MAAM,+BAA+B,CAAC;AAGvC,wBAAgB,YAAY,CAAC,SAAS,EAAE,SAAS,EAAE,GAAG,SAAS,GAAG,MAAM,CAIvE;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,CAE/D;AAED,wBAAgB,WAAW,CACzB,KAAK,EAAE,MAAM,GAAG,MAAM,EACtB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,EACxB,SAAS,SAAM,EACf,QAAQ,SAAI,GACX,MAAM,CAKR;AAED,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,QAAQ,EACd,UAAU,CAAC,EAAE,MAAM,EAAE,GACpB,OAAO,CAQT;AAED,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,QAAQ,EACd,UAAU,CAAC,EAAE,MAAM,EAAE,GACpB,OAAO,CAET;AAED,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,QAAQ,GAAG,MAAM,CAY3D;AAED,wBAAgB,6BAA6B,CAC3C,KAAK,EAAE,MAAM,GACZ,YAAY,EAAE,GAAG,SAAS,CAsB5B;AAED,wBAAgB,cAAc,CAC5B,IAAI,EAAE,YAAY,GAAG,kBAAkB,GACtC,OAAO,CAUT"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orderingstack/front-hooks",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.9.0-beta.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"packageManager": "pnpm@9.12.2",
|
|
6
6
|
"main": "dist/index.cjs.js",
|
|
@@ -12,8 +12,7 @@
|
|
|
12
12
|
"scripts": {
|
|
13
13
|
"dev": "vite",
|
|
14
14
|
"build": "vite build",
|
|
15
|
-
"test": "vitest"
|
|
16
|
-
"prepublishOnly": "npm run build"
|
|
15
|
+
"test": "vitest"
|
|
17
16
|
},
|
|
18
17
|
"dependencies": {
|
|
19
18
|
"@orderingstack/ordering-core": "^1.13.0",
|
|
@@ -31,7 +30,7 @@
|
|
|
31
30
|
},
|
|
32
31
|
"devDependencies": {
|
|
33
32
|
"@orderingstack/ordering-core-react": "^3.3.2",
|
|
34
|
-
"@orderingstack/ordering-types": "^1.
|
|
33
|
+
"@orderingstack/ordering-types": "^1.37.0",
|
|
35
34
|
"@testing-library/react-hooks": "^8.0.1",
|
|
36
35
|
"@types/node": "^20.12.7",
|
|
37
36
|
"@types/react": "^17.0.38",
|