@orderingstack/front-hooks 6.6.3-beta-0 → 6.6.3-beta.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.
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
declare let
|
|
1
|
+
declare let Nt: {
|
|
2
2
|
new (): {};
|
|
3
3
|
getInstance(): {};
|
|
4
4
|
instance: {} | undefined;
|
|
5
5
|
};
|
|
6
6
|
declare function Ur(t: any): number;
|
|
7
|
-
declare function
|
|
7
|
+
declare function $e(t: any, e: any): any;
|
|
8
|
+
declare function vg({ product: t, state: e, selected: r, cheapestGroupOptionsProduct: n, basePrice: s, dangerouslyOverwritePrice: a }: {
|
|
8
9
|
product: any;
|
|
9
10
|
state: any;
|
|
10
11
|
selected: any;
|
|
@@ -17,22 +18,38 @@ declare function kh({ product: t, state: e, selected: r, cheapestGroupOptionsPro
|
|
|
17
18
|
calculatedPriceDefaultProductState: any;
|
|
18
19
|
calculatedChildrensBasePrice: any;
|
|
19
20
|
};
|
|
20
|
-
declare function
|
|
21
|
-
declare function
|
|
22
|
-
declare function
|
|
23
|
-
declare function
|
|
24
|
-
declare function
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
declare function
|
|
21
|
+
declare function St(t: any, e?: undefined, r?: undefined, n?: boolean): any;
|
|
22
|
+
declare function Rr(t: any, e?: undefined, r?: undefined, n?: boolean): any[];
|
|
23
|
+
declare function gs(t: any, e: any, r?: string, n?: number): string;
|
|
24
|
+
declare function Qg(t: any): any[] | null;
|
|
25
|
+
declare function od({ items: t, locale: e, venue: r }: {
|
|
26
|
+
items: any;
|
|
27
|
+
locale: any;
|
|
28
|
+
venue: any;
|
|
29
|
+
}): any;
|
|
30
|
+
declare function gt(t: any, e: any): any;
|
|
31
|
+
declare function sd(t: any, e: any, r: any): any;
|
|
32
|
+
declare function hn(t: any, e?: number): any;
|
|
33
|
+
declare function vs(t: any): any;
|
|
34
|
+
declare function $s(t: any): any[] | undefined;
|
|
35
|
+
declare function pe(t: any, e: any): any;
|
|
36
|
+
declare function ye(t: any): any[];
|
|
37
|
+
declare function vt(t: any): boolean;
|
|
38
|
+
declare function ht(t: any, e: any): any;
|
|
39
|
+
declare function ds(t: any, e: any): boolean;
|
|
40
|
+
declare function Ot(t: any, e: any, r: any): boolean;
|
|
41
|
+
declare function ce(t: any, e: any): any;
|
|
42
|
+
declare function dt(t: any, e: any): void;
|
|
43
|
+
declare function dg(t: any, e: any): void;
|
|
44
|
+
declare function hs(t: any): number;
|
|
45
|
+
declare function rn(t: any, e?: boolean, r?: undefined, n?: number): never[];
|
|
46
|
+
declare function Kt(t: any, e: number | undefined, r: boolean | undefined, n: any, s: any): {
|
|
30
47
|
value: any;
|
|
31
48
|
isError: boolean;
|
|
32
49
|
isLoading: boolean;
|
|
33
|
-
refresh: (
|
|
50
|
+
refresh: (u: any) => Promise<any>;
|
|
34
51
|
};
|
|
35
|
-
declare function
|
|
52
|
+
declare function cd({ id: t, intervalSeconds: e, withLocalStorage: r }: {
|
|
36
53
|
id: any;
|
|
37
54
|
intervalSeconds: any;
|
|
38
55
|
withLocalStorage: any;
|
|
@@ -40,9 +57,9 @@ declare function Fg({ id: t, intervalSeconds: e, withLocalStorage: r }: {
|
|
|
40
57
|
value: any;
|
|
41
58
|
isError: boolean;
|
|
42
59
|
isLoading: boolean;
|
|
43
|
-
refresh: (
|
|
60
|
+
refresh: (u: any) => Promise<any>;
|
|
44
61
|
};
|
|
45
|
-
declare function
|
|
62
|
+
declare function an({ product: t, state: e, selected: r, cheapestGroupOptionsProduct: n, basePrice: s, dangerouslyOverwritePrice: a }: {
|
|
46
63
|
product: any;
|
|
47
64
|
state: any;
|
|
48
65
|
selected: any;
|
|
@@ -55,14 +72,14 @@ declare function Vr({ product: t, state: e, selected: r, cheapestGroupOptionsPro
|
|
|
55
72
|
calculatedPriceDefaultProductState: any;
|
|
56
73
|
calculatedChildrensBasePrice: any;
|
|
57
74
|
};
|
|
58
|
-
declare function
|
|
59
|
-
declare function
|
|
60
|
-
declare function
|
|
75
|
+
declare function Xg(t: any): any[];
|
|
76
|
+
declare function jt(t: any, e: any): () => void;
|
|
77
|
+
declare function hd(t: any): {
|
|
61
78
|
dineInOpen: any;
|
|
62
79
|
takeAwayOpen: any;
|
|
63
80
|
loaded: boolean;
|
|
64
81
|
};
|
|
65
|
-
declare function
|
|
82
|
+
declare function un({ kioskMediaId: t, kioskMediaType: e, intervalSeconds: r, withLocalStorage: n, baseUrl: s, tenant: a, venue: i, locale: c }: {
|
|
66
83
|
kioskMediaId: any;
|
|
67
84
|
kioskMediaType: any;
|
|
68
85
|
intervalSeconds?: number | undefined;
|
|
@@ -78,9 +95,9 @@ declare function Zr({ kioskMediaId: t, kioskMediaType: e, intervalSeconds: r, wi
|
|
|
78
95
|
isError: boolean;
|
|
79
96
|
isLoading: boolean;
|
|
80
97
|
imageDisplayTime: any;
|
|
81
|
-
refresh: (
|
|
98
|
+
refresh: (u: any) => Promise<any>;
|
|
82
99
|
};
|
|
83
|
-
declare function
|
|
100
|
+
declare function fd({ kioskMediaId: t, kioskMediaType: e, venue: r, language: n, intervalSeconds: s, withLocalStorage: a }: {
|
|
84
101
|
kioskMediaId: any;
|
|
85
102
|
kioskMediaType: any;
|
|
86
103
|
venue: any;
|
|
@@ -94,35 +111,35 @@ declare function Gg({ kioskMediaId: t, kioskMediaType: e, venue: r, language: n,
|
|
|
94
111
|
isError: boolean;
|
|
95
112
|
isLoading: boolean;
|
|
96
113
|
imageDisplayTime: any;
|
|
97
|
-
refresh: (
|
|
114
|
+
refresh: (u: any) => Promise<any>;
|
|
98
115
|
};
|
|
99
|
-
declare function
|
|
116
|
+
declare function ud(t: any, e: any, r: any, n?: number, s?: boolean): {
|
|
100
117
|
url: any;
|
|
101
118
|
fallbackUrl: any;
|
|
102
119
|
isError: boolean;
|
|
103
120
|
mediaType: any;
|
|
104
|
-
refresh: (
|
|
121
|
+
refresh: (u: any) => Promise<any>;
|
|
105
122
|
};
|
|
106
|
-
declare function
|
|
123
|
+
declare function cn(t: any, e: any, r: any, n: number | undefined, s: boolean | undefined, a: any, i: any): {
|
|
107
124
|
url: any;
|
|
108
125
|
fallbackUrl: any;
|
|
109
126
|
isError: boolean;
|
|
110
127
|
mediaType: any;
|
|
111
|
-
refresh: (
|
|
128
|
+
refresh: (u: any) => Promise<any>;
|
|
112
129
|
};
|
|
113
|
-
declare function
|
|
114
|
-
declare function
|
|
130
|
+
declare function bd(t: any, e?: number): any;
|
|
131
|
+
declare function gg({ originalMenu: t, markOnly: e, timeZone: r, interval: n, enableKeys: s }: {
|
|
115
132
|
originalMenu: any;
|
|
116
133
|
markOnly?: boolean | undefined;
|
|
117
134
|
timeZone: any;
|
|
118
135
|
interval?: number | undefined;
|
|
119
136
|
enableKeys?: any[] | undefined;
|
|
120
|
-
}):
|
|
121
|
-
declare function
|
|
122
|
-
declare function
|
|
137
|
+
}): never[];
|
|
138
|
+
declare function ld(t: any, e: any): void;
|
|
139
|
+
declare function on(t: any, e: number | undefined, r: boolean | undefined, n: any, s: any, a: any): {
|
|
123
140
|
value: any;
|
|
124
141
|
isError: boolean;
|
|
125
|
-
refresh: (
|
|
142
|
+
refresh: (u: any) => Promise<any>;
|
|
126
143
|
};
|
|
127
|
-
export {
|
|
144
|
+
export { Nt as MediaProxy, Ur as addDiscounts, $e as availabilityCustomizer, vg as calculateDisplayPrice, St as filterTimeAvailabilityOfItems, Rr as filterTimeAvailabilityOfProducts, gs as formatPrice, Qg as getGroupedBucketLines, od as getLocalizedVenueItem, gt as getLocalizedVenueMediaFromArray, sd as getLocalizedVenueMediaUrl, hn as getMediaUrl, vs as getProductAcronym, $s as getUnusedCouponsKeysFromOrder, pe as getUrlFromLocalizedVenueMedia, ye as groupOrderLines, vt as isAvailable, ht as isChannelOpen, ds as isHiddenByEnableKey, Ot as isProductAvailable, ce as isProductEnabled, dt as markHiddenByEnableKey, dg as markItemsHiddenByEnableKey, hs as summarizeLineDiscounts, rn as useAvailability, Kt as useCms, cd as useCmsInConfigContext, an as useDisplayPrice, Xg as useGroupOrderLines, jt as useInterval, hd as useKioskChannelsAvailability, un as useKioskMediaCms, fd as useKioskMediaCmsWithContext, ud as useLocalizedVenueMedia, cn as useLocalizedVenueMediaLegacy, bd as useMediaUrl, gg as useMenu, ld as useOnClickOutside, on as useVenueCms };
|
|
128
145
|
//# sourceMappingURL=index.cjs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs.d.ts","sourceRoot":"","sources":["../../../index.cjs.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs.d.ts","sourceRoot":"","sources":["../../../index.cjs.js"],"names":[],"mappings":"AAA0iuD;;;;EAAS;AAAj9oC,oCAAkF;AAAuje,yCAA6W;AAA6xH;;;;;;;;;;;;EAA4nD;AAA95rB,4EAAsrB;AAAtrB,8EAAsrB;AAAid,oEAAuF;AAA4ltB,0CAAqE;AAAk7C;;;;QAA4Z;AAAt4B,yCAAub;AAAC,iDAAkD;AAA+qY,6CAAyD;AAAlnoC,iCAA4T;AAAA,+CAAsiB;AAA8jtB,yCAAub;AAArxE,mCAAqzB;AAA0nB,qCAA+a;AAAhpwB,yCAAmJ;AAA6jB,6CAAgC;AAAt3D,qDAA+c;AAA8tC,yCAAyK;AAA8ne,0CAAwK;AAAxK,0CAAwK;AAA5kf,oCAAsC;AAA4wd,6EAAqQ;AAAqjT;;;;;EAA2rC;AAAA;;;;;;;;;EAAkM;AAAxyN;;;;;;;;;;;;EAA4nD;AAAg4D,mCAA4B;AAAnjyC,gDAA0R;AAAw28C;;;;EAAoZ;AAAprD;;;;;;;;;;;;;;;;;EAAurB;AAAA;;;;;;;;;;;;;;;EAA0U;AAAhsD;;;;;;EAA2K;AAAA;;;;;;EAAohB;AAAg7S,6CAAoC;AAAh5pB;;;;;;YAA8H;AAA+zY,0CAA+R;AAA/zE;;;;EAAgW"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
declare let
|
|
1
|
+
declare let tr: {
|
|
2
2
|
new (): {};
|
|
3
3
|
getInstance(): {};
|
|
4
4
|
instance: {} | undefined;
|
|
5
5
|
};
|
|
6
|
-
declare function
|
|
7
|
-
declare function
|
|
6
|
+
declare function us(t: any): number;
|
|
7
|
+
declare function Qe(t: any, r: any): any;
|
|
8
|
+
declare function pv({ product: t, state: r, selected: e, cheapestGroupOptionsProduct: n, basePrice: s, dangerouslyOverwritePrice: a }: {
|
|
8
9
|
product: any;
|
|
9
10
|
state: any;
|
|
10
11
|
selected: any;
|
|
@@ -17,22 +18,38 @@ declare function Zg({ product: t, state: r, selected: e, cheapestGroupOptionsPro
|
|
|
17
18
|
calculatedPriceDefaultProductState: any;
|
|
18
19
|
calculatedChildrensBasePrice: any;
|
|
19
20
|
};
|
|
20
|
-
declare function
|
|
21
|
-
declare function
|
|
22
|
-
declare function
|
|
23
|
-
declare function
|
|
24
|
-
declare function
|
|
21
|
+
declare function Jt(t: any, r?: undefined, e?: undefined, n?: boolean): any;
|
|
22
|
+
declare function os(t: any, r?: undefined, e?: undefined, n?: boolean): any[];
|
|
23
|
+
declare function hv(t: any, r: any, e?: string, n?: number): string;
|
|
24
|
+
declare function bv(t: any): any[] | null;
|
|
25
|
+
declare function mv({ items: t, locale: r, venue: e }: {
|
|
26
|
+
items: any;
|
|
27
|
+
locale: any;
|
|
28
|
+
venue: any;
|
|
29
|
+
}): any;
|
|
30
|
+
declare function At(t: any, r: any): any;
|
|
31
|
+
declare function Av(t: any, r: any, e: any): any;
|
|
32
|
+
declare function sv(t: any, r?: number): any;
|
|
33
|
+
declare function vv(t: any): any;
|
|
34
|
+
declare function $v(t: any): any[] | undefined;
|
|
35
|
+
declare function nn(t: any, r: any): any;
|
|
36
|
+
declare function rn(t: any): any[];
|
|
37
|
+
declare function wt(t: any): boolean;
|
|
25
38
|
declare function pt(t: any, r: any): any;
|
|
26
|
-
declare function
|
|
27
|
-
declare function
|
|
28
|
-
declare function
|
|
29
|
-
declare function
|
|
39
|
+
declare function gv(t: any, r: any): boolean;
|
|
40
|
+
declare function zt(t: any, r: any, e: any): boolean;
|
|
41
|
+
declare function Le(t: any, r: any): any;
|
|
42
|
+
declare function St(t: any, r: any): void;
|
|
43
|
+
declare function yv(t: any, r: any): void;
|
|
44
|
+
declare function lv(t: any): number;
|
|
45
|
+
declare function sg(t: any, r?: boolean, e?: undefined, n?: number): never[];
|
|
46
|
+
declare function dr(t: any, r: number | undefined, e: boolean | undefined, n: any, s: any): {
|
|
30
47
|
value: any;
|
|
31
48
|
isError: boolean;
|
|
32
49
|
isLoading: boolean;
|
|
33
|
-
refresh: (
|
|
50
|
+
refresh: (u: any) => Promise<boolean | void>;
|
|
34
51
|
};
|
|
35
|
-
declare function
|
|
52
|
+
declare function Tv({ id: t, intervalSeconds: r, withLocalStorage: e }: {
|
|
36
53
|
id: any;
|
|
37
54
|
intervalSeconds: any;
|
|
38
55
|
withLocalStorage: any;
|
|
@@ -40,9 +57,9 @@ declare function kg({ id: t, intervalSeconds: r, withLocalStorage: e }: {
|
|
|
40
57
|
value: any;
|
|
41
58
|
isError: boolean;
|
|
42
59
|
isLoading: boolean;
|
|
43
|
-
refresh: (
|
|
60
|
+
refresh: (u: any) => Promise<boolean | void>;
|
|
44
61
|
};
|
|
45
|
-
declare function
|
|
62
|
+
declare function og({ product: t, state: r, selected: e, cheapestGroupOptionsProduct: n, basePrice: s, dangerouslyOverwritePrice: a }: {
|
|
46
63
|
product: any;
|
|
47
64
|
state: any;
|
|
48
65
|
selected: any;
|
|
@@ -55,14 +72,14 @@ declare function Vh({ product: t, state: r, selected: e, cheapestGroupOptionsPro
|
|
|
55
72
|
calculatedPriceDefaultProductState: any;
|
|
56
73
|
calculatedChildrensBasePrice: any;
|
|
57
74
|
};
|
|
58
|
-
declare function
|
|
59
|
-
declare function
|
|
60
|
-
declare function
|
|
75
|
+
declare function _v(t: any): any[];
|
|
76
|
+
declare function nr(t: any, r: any): () => void;
|
|
77
|
+
declare function Sv(t: any): {
|
|
61
78
|
dineInOpen: any;
|
|
62
79
|
takeAwayOpen: any;
|
|
63
80
|
loaded: boolean;
|
|
64
81
|
};
|
|
65
|
-
declare function
|
|
82
|
+
declare function Xg({ kioskMediaId: t, kioskMediaType: r, intervalSeconds: e, withLocalStorage: n, baseUrl: s, tenant: a, venue: i, locale: c }: {
|
|
66
83
|
kioskMediaId: any;
|
|
67
84
|
kioskMediaType: any;
|
|
68
85
|
intervalSeconds?: number | undefined;
|
|
@@ -78,9 +95,9 @@ declare function Ng({ kioskMediaId: t, kioskMediaType: r, intervalSeconds: e, wi
|
|
|
78
95
|
isError: boolean;
|
|
79
96
|
isLoading: boolean;
|
|
80
97
|
imageDisplayTime: any;
|
|
81
|
-
refresh: (
|
|
98
|
+
refresh: (u: any) => Promise<boolean | void>;
|
|
82
99
|
};
|
|
83
|
-
declare function
|
|
100
|
+
declare function Iv({ kioskMediaId: t, kioskMediaType: r, venue: e, language: n, intervalSeconds: s, withLocalStorage: a }: {
|
|
84
101
|
kioskMediaId: any;
|
|
85
102
|
kioskMediaType: any;
|
|
86
103
|
venue: any;
|
|
@@ -94,35 +111,35 @@ declare function r$({ kioskMediaId: t, kioskMediaType: r, venue: e, language: n,
|
|
|
94
111
|
isError: boolean;
|
|
95
112
|
isLoading: boolean;
|
|
96
113
|
imageDisplayTime: any;
|
|
97
|
-
refresh: (
|
|
114
|
+
refresh: (u: any) => Promise<boolean | void>;
|
|
98
115
|
};
|
|
99
|
-
declare function
|
|
116
|
+
declare function Ev(t: any, r: any, e: any, n?: number, s?: boolean): {
|
|
100
117
|
url: any;
|
|
101
118
|
fallbackUrl: any;
|
|
102
119
|
isError: boolean;
|
|
103
120
|
mediaType: any;
|
|
104
|
-
refresh: (
|
|
121
|
+
refresh: (u: any) => Promise<boolean | void>;
|
|
105
122
|
};
|
|
106
|
-
declare function
|
|
123
|
+
declare function kg(t: any, r: any, e: any, n: number | undefined, s: boolean | undefined, a: any, i: any): {
|
|
107
124
|
url: any;
|
|
108
125
|
fallbackUrl: any;
|
|
109
126
|
isError: boolean;
|
|
110
127
|
mediaType: any;
|
|
111
|
-
refresh: (
|
|
128
|
+
refresh: (u: any) => Promise<boolean | void>;
|
|
112
129
|
};
|
|
113
|
-
declare function
|
|
114
|
-
declare function
|
|
130
|
+
declare function Dv(t: any, r?: number): any;
|
|
131
|
+
declare function dv({ originalMenu: t, markOnly: r, timeZone: e, interval: n, enableKeys: s }: {
|
|
115
132
|
originalMenu: any;
|
|
116
133
|
markOnly?: boolean | undefined;
|
|
117
134
|
timeZone: any;
|
|
118
135
|
interval?: number | undefined;
|
|
119
136
|
enableKeys?: any[] | undefined;
|
|
120
|
-
}):
|
|
121
|
-
declare function
|
|
122
|
-
declare function
|
|
137
|
+
}): never[];
|
|
138
|
+
declare function Ov(t: any, r: any): void;
|
|
139
|
+
declare function Jg(t: any, r: number | undefined, e: boolean | undefined, n: any, s: any, a: any): {
|
|
123
140
|
value: any;
|
|
124
141
|
isError: boolean;
|
|
125
|
-
refresh: (
|
|
142
|
+
refresh: (u: any) => Promise<boolean | void>;
|
|
126
143
|
};
|
|
127
|
-
export {
|
|
144
|
+
export { tr as MediaProxy, us as addDiscounts, Qe 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, rn as groupOrderLines, wt as isAvailable, pt as isChannelOpen, gv as isHiddenByEnableKey, zt as isProductAvailable, Le as isProductEnabled, St as markHiddenByEnableKey, yv as markItemsHiddenByEnableKey, lv as summarizeLineDiscounts, sg as useAvailability, dr as useCms, Tv as useCmsInConfigContext, og as useDisplayPrice, _v as useGroupOrderLines, nr 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 };
|
|
128
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":"AA+wEA;;;;EAAW;AArjDX,oCAGC;AA2rBD,yCASC;AA+FD;;;;;;;;;;;;EAkEU;AA35BV,4EAuCC;AAvCD,8EAuCC;AAmBD,oEAEC;AAq8BD,0CAEC;AAqDD;;;;QAcC;AA5BD,yCASC;AACD,iDAGC;AAkjBD,6CAEC;AAtiDD,iCAIC;AACD,+CAmBC;AA68BD,yCASC;AAlFD,mCA4BC;AA8BD,qCAcC;AAjgCD,yCAMC;AAoBD,6CAEC;AAjFD,qDAYC;AA8DD,yCAIC;AA0rBD,0CASC;AATD,0CASC;AA7sBD,oCAEC;AAwqBD,6EAeC;AAuVD;;;;;EAsDC;AACD;;;;;;;;;EAeC;AApTD;;;;;;;;;;;;EAkEU;AAmGV,mCAEC;AAjqDD,gDAkBC;AA66DD;;;;EAaC;AAzGD;;;;;;;;;;;;;;;;;EAkDC;AACD;;;;;;;;;;;;;;;EAqBC;AA3GD;;;;;;EAaC;AACD;;;;;;EAoBC;AA2aD,6CAEC;AAz2BD;;;;;;YASC;AA6fD,0CAkBC;AA/ID;;;;EAgBC"}
|