@orderingstack/front-hooks 6.9.0 → 6.10.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 +1541 -1361
- package/dist/index.es.js.map +1 -1
- package/dist/packages/hooks/dist/index.cjs.d.ts +62 -48
- package/dist/packages/hooks/dist/index.cjs.d.ts.map +1 -1
- package/dist/packages/hooks/dist/index.es.d.ts +62 -48
- package/dist/packages/hooks/dist/index.es.d.ts.map +1 -1
- package/dist/types/index.d.ts +2 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/useMediaUrl.d.ts.map +1 -1
- package/dist/types/utils/menu.d.ts +20 -0
- package/dist/types/utils/menu.d.ts.map +1 -0
- package/package.json +2 -2
|
@@ -1,11 +1,25 @@
|
|
|
1
|
-
declare let
|
|
1
|
+
declare let Ue: {
|
|
2
2
|
new (): {};
|
|
3
3
|
getInstance(): {};
|
|
4
4
|
instance: {} | undefined;
|
|
5
5
|
};
|
|
6
|
-
declare
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
declare namespace Y {
|
|
7
|
+
function isLocked(e: any, t: any): any;
|
|
8
|
+
function isProduct(e: any): boolean;
|
|
9
|
+
function isOptionGroup(e: any): boolean;
|
|
10
|
+
function isVitalOptionGroup(e: any): boolean;
|
|
11
|
+
function findGroupBySelCtxInProductItems(e: any, t: any): any;
|
|
12
|
+
function findProductInProductItems(e: any, t: any): any;
|
|
13
|
+
function getMenuProductWithReplacedLockedProducts(e: any): any;
|
|
14
|
+
function processLocks(e: any, t: any, r: number | undefined, n: any): any;
|
|
15
|
+
function getMenuItemsWithProcessLocks(e: any, t: any): any;
|
|
16
|
+
function getMenuWithProperLiterals(e: any, t: any): any;
|
|
17
|
+
function getProductWithProperLiterals(e: any, t: any): any;
|
|
18
|
+
function extractLiteralsByLanguage(e: any, t: any): void;
|
|
19
|
+
}
|
|
20
|
+
declare function Mr(e: any): number;
|
|
21
|
+
declare function pt(e: any, t: any): any;
|
|
22
|
+
declare function yh({ product: e, state: t, selected: r, cheapestGroupOptionsProduct: n, basePrice: i, dangerouslyOverwritePrice: a }: {
|
|
9
23
|
product: any;
|
|
10
24
|
state: any;
|
|
11
25
|
selected: any;
|
|
@@ -18,39 +32,39 @@ declare function $d({ product: t, state: e, selected: r, cheapestGroupOptionsPro
|
|
|
18
32
|
calculatedPriceDefaultProductState: any;
|
|
19
33
|
calculatedChildrensBasePrice: any;
|
|
20
34
|
};
|
|
21
|
-
declare function
|
|
22
|
-
declare function Ur(
|
|
23
|
-
declare function
|
|
24
|
-
declare function tg(
|
|
25
|
-
declare function
|
|
35
|
+
declare function Le(e: any, t?: undefined, r?: undefined, n?: boolean): any;
|
|
36
|
+
declare function Ur(e: any, t?: undefined, r?: undefined, n?: boolean): any[];
|
|
37
|
+
declare function gs(e: any, t: any, r?: string, n?: number): string;
|
|
38
|
+
declare function tg(e: any): any[] | null;
|
|
39
|
+
declare function cg({ items: e, locale: t, venue: r }: {
|
|
26
40
|
items: any;
|
|
27
41
|
locale: any;
|
|
28
42
|
venue: any;
|
|
29
43
|
}): any;
|
|
30
|
-
declare function
|
|
31
|
-
declare function
|
|
32
|
-
declare function hn(
|
|
33
|
-
declare function
|
|
34
|
-
declare function
|
|
35
|
-
declare function
|
|
36
|
-
declare function
|
|
37
|
-
declare function
|
|
38
|
-
declare function
|
|
39
|
-
declare function
|
|
40
|
-
declare function
|
|
41
|
-
declare function
|
|
42
|
-
declare function
|
|
43
|
-
declare function
|
|
44
|
-
declare function
|
|
45
|
-
declare function hs(
|
|
46
|
-
declare function
|
|
47
|
-
declare function
|
|
44
|
+
declare function $e(e: any, t: any): any;
|
|
45
|
+
declare function ug(e: any, t: any, r: any): any;
|
|
46
|
+
declare function hn(e: any, t?: number): any;
|
|
47
|
+
declare function $s(e: any): any;
|
|
48
|
+
declare function ys(e: any): any[] | undefined;
|
|
49
|
+
declare function _t(e: any, t: any): any;
|
|
50
|
+
declare function bt(e: any): any[];
|
|
51
|
+
declare function ps(e: any): boolean;
|
|
52
|
+
declare function pe(e: any): boolean;
|
|
53
|
+
declare function ve(e: any, t: any): any;
|
|
54
|
+
declare function vs(e: any, t: any): boolean;
|
|
55
|
+
declare function De(e: any, t: any, r: any): boolean;
|
|
56
|
+
declare function lt(e: any, t: any): any;
|
|
57
|
+
declare function ye(e: any, t: any): void;
|
|
58
|
+
declare function $h(e: any, t: any): void;
|
|
59
|
+
declare function hs(e: any): number;
|
|
60
|
+
declare function nn(e: any, t?: boolean, r?: undefined, n?: number): never[];
|
|
61
|
+
declare function qe(e: any, t: number | undefined, r: boolean | undefined, n: any, i: any): {
|
|
48
62
|
value: any;
|
|
49
63
|
isError: boolean;
|
|
50
64
|
isLoading: boolean;
|
|
51
|
-
refresh: (
|
|
65
|
+
refresh: (l: any) => Promise<any>;
|
|
52
66
|
};
|
|
53
|
-
declare function
|
|
67
|
+
declare function fg({ id: e, intervalSeconds: t, withLocalStorage: r }: {
|
|
54
68
|
id: any;
|
|
55
69
|
intervalSeconds: any;
|
|
56
70
|
withLocalStorage: any;
|
|
@@ -58,9 +72,9 @@ declare function cg({ id: t, intervalSeconds: e, withLocalStorage: r }: {
|
|
|
58
72
|
value: any;
|
|
59
73
|
isError: boolean;
|
|
60
74
|
isLoading: boolean;
|
|
61
|
-
refresh: (
|
|
75
|
+
refresh: (l: any) => Promise<any>;
|
|
62
76
|
};
|
|
63
|
-
declare function
|
|
77
|
+
declare function sn({ product: e, state: t, selected: r, cheapestGroupOptionsProduct: n, basePrice: i, dangerouslyOverwritePrice: a }: {
|
|
64
78
|
product: any;
|
|
65
79
|
state: any;
|
|
66
80
|
selected: any;
|
|
@@ -73,14 +87,14 @@ declare function an({ product: t, state: e, selected: r, cheapestGroupOptionsPro
|
|
|
73
87
|
calculatedPriceDefaultProductState: any;
|
|
74
88
|
calculatedChildrensBasePrice: any;
|
|
75
89
|
};
|
|
76
|
-
declare function
|
|
77
|
-
declare function
|
|
78
|
-
declare function
|
|
90
|
+
declare function eg(e: any): any[];
|
|
91
|
+
declare function Me(e: any, t: any): () => void;
|
|
92
|
+
declare function gg(e: any): {
|
|
79
93
|
dineInOpen: any;
|
|
80
94
|
takeAwayOpen: any;
|
|
81
95
|
loaded: boolean;
|
|
82
96
|
};
|
|
83
|
-
declare function
|
|
97
|
+
declare function fn({ kioskMediaId: e, kioskMediaType: t, intervalSeconds: r, withLocalStorage: n, baseUrl: i, tenant: a, venue: s, locale: u }: {
|
|
84
98
|
kioskMediaId: any;
|
|
85
99
|
kioskMediaType: any;
|
|
86
100
|
intervalSeconds?: number | undefined;
|
|
@@ -96,9 +110,9 @@ declare function cn({ kioskMediaId: t, kioskMediaType: e, intervalSeconds: r, wi
|
|
|
96
110
|
isError: boolean;
|
|
97
111
|
isLoading: boolean;
|
|
98
112
|
imageDisplayTime: any;
|
|
99
|
-
refresh: (
|
|
113
|
+
refresh: (l: any) => Promise<any>;
|
|
100
114
|
};
|
|
101
|
-
declare function
|
|
115
|
+
declare function dg({ kioskMediaId: e, kioskMediaType: t, venue: r, language: n, intervalSeconds: i, withLocalStorage: a }: {
|
|
102
116
|
kioskMediaId: any;
|
|
103
117
|
kioskMediaType: any;
|
|
104
118
|
venue: any;
|
|
@@ -112,35 +126,35 @@ declare function lg({ kioskMediaId: t, kioskMediaType: e, venue: r, language: n,
|
|
|
112
126
|
isError: boolean;
|
|
113
127
|
isLoading: boolean;
|
|
114
128
|
imageDisplayTime: any;
|
|
115
|
-
refresh: (
|
|
129
|
+
refresh: (l: any) => Promise<any>;
|
|
116
130
|
};
|
|
117
|
-
declare function
|
|
131
|
+
declare function lg(e: any, t: any, r: any, n?: number, i?: boolean): {
|
|
118
132
|
url: any;
|
|
119
133
|
fallbackUrl: any;
|
|
120
134
|
isError: boolean;
|
|
121
135
|
mediaType: any;
|
|
122
|
-
refresh: (
|
|
136
|
+
refresh: (l: any) => Promise<any>;
|
|
123
137
|
};
|
|
124
|
-
declare function
|
|
138
|
+
declare function cn(e: any, t: any, r: any, n: number | undefined, i: boolean | undefined, a: any, s: any): {
|
|
125
139
|
url: any;
|
|
126
140
|
fallbackUrl: any;
|
|
127
141
|
isError: boolean;
|
|
128
142
|
mediaType: any;
|
|
129
|
-
refresh: (
|
|
143
|
+
refresh: (l: any) => Promise<any>;
|
|
130
144
|
};
|
|
131
|
-
declare function
|
|
132
|
-
declare function
|
|
145
|
+
declare function mg(e: any, t?: number): any;
|
|
146
|
+
declare function vh({ originalMenu: e, markOnly: t, timeZone: r, interval: n, enableKeys: i }: {
|
|
133
147
|
originalMenu: any;
|
|
134
148
|
markOnly?: boolean | undefined;
|
|
135
149
|
timeZone: any;
|
|
136
150
|
interval?: number | undefined;
|
|
137
151
|
enableKeys?: never[] | undefined;
|
|
138
152
|
}): never[];
|
|
139
|
-
declare function hg(
|
|
140
|
-
declare function
|
|
153
|
+
declare function hg(e: any, t: any): void;
|
|
154
|
+
declare function un(e: any, t: number | undefined, r: boolean | undefined, n: any, i: any, a: any): {
|
|
141
155
|
value: any;
|
|
142
156
|
isError: boolean;
|
|
143
|
-
refresh: (
|
|
157
|
+
refresh: (l: any) => Promise<any>;
|
|
144
158
|
};
|
|
145
|
-
export {
|
|
159
|
+
export { Ue as MediaProxy, Y as MenuUtils, Mr as addDiscounts, pt as availabilityCustomizer, yh as calculateDisplayPrice, Le as filterTimeAvailabilityOfItems, Ur as filterTimeAvailabilityOfProducts, gs as formatPrice, tg as getGroupedBucketLines, cg as getLocalizedVenueItem, $e as getLocalizedVenueMediaFromArray, ug as getLocalizedVenueMediaUrl, hn as getMediaUrl, $s as getProductAcronym, ys as getUnusedCouponsKeysFromOrder, _t as getUrlFromLocalizedVenueMedia, bt as groupOrderLines, ps as isAnyGroupKind, pe as isAvailable, ve as isChannelOpen, vs as isHiddenByEnableKey, De as isProductAvailable, lt as isProductEnabled, ye as markHiddenByEnableKey, $h as markItemsHiddenByEnableKey, hs as summarizeLineDiscounts, nn as useAvailability, qe as useCms, fg as useCmsInConfigContext, sn as useDisplayPrice, eg as useGroupOrderLines, Me as useInterval, gg as useKioskChannelsAvailability, fn as useKioskMediaCms, dg as useKioskMediaCmsWithContext, lg as useLocalizedVenueMedia, cn as useLocalizedVenueMediaLegacy, mg as useMediaUrl, vh as useMenu, hg as useOnClickOutside, un as useVenueCms };
|
|
146
160
|
//# 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":"AAA4wvD;;;;EAAS;;IAA+G,uCAAsG;IAAW,oCAAsC;IAAe,wCAAsC;IAAoB,6CAAuE;IAAiC,8DAA4M;IAA2B,wDAAkM;IAA0C,+DAA6zC;IAAc,0EAAujB;IAA8B,2DAA4H;IAA2B,wDAAuF;IAA8B,2DAAgE;IAA2B,yDAAmwB;;AAAt3rC,oCAAkF;AAAipe,yCAA6W;AAA6tB;;;;;;;;;;;;EAA0nD;AAAznsB,4EAAsrB;AAAtrB,8EAAsrB;AAAopH,oEAAuF;AAAs/nB,0CAAqE;AAA86C;;;;QAA4Z;AAAn4B,yCAAob;AAAC,iDAAkD;AAA0yY,6CAAyD;AAAnojC,iCAA4T;AAAA,+CAAoiB;AAAy9nB,yCAAob;AAAnpF,mCAAurC;AAAj7lB,qCAA4F;AAA+8mB,qCAA8a;AAA5uxB,yCAAmJ;AAAgwH,6CAAgC;AAAxjK,qDAA8c;AAAi6I,yCAAyK;AAAwte,0CAAwK;AAAxK,0CAAwK;AAAtqf,oCAAsC;AAAs2d,6EAAqQ;AAAi3N;;;;;EAA0rC;AAAA;;;;;;;;;EAAkM;AAAnqO;;;;;;;;;;;;EAA0nD;AAAkwE,mCAA4B;AAAlqzC,gDAA0R;AAAk99C;;;;EAAoZ;AAAprD;;;;;;;;;;;;;;;;;EAAurB;AAAA;;;;;;;;;;;;;;;EAA0U;AAAhsD;;;;;;EAA2K;AAAA;;;;;;EAAohB;AAA4iT,6CAAoC;AAAv0kB;;;;;;YAA8H;AAA0nT,0CAA+R;AAA/zE;;;;EAAgW"}
|
|
@@ -1,11 +1,25 @@
|
|
|
1
|
-
declare let
|
|
1
|
+
declare let ne: {
|
|
2
2
|
new (): {};
|
|
3
3
|
getInstance(): {};
|
|
4
4
|
instance: {} | undefined;
|
|
5
5
|
};
|
|
6
|
-
declare
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
declare namespace Y {
|
|
7
|
+
function isLocked(t: any, e: any): any;
|
|
8
|
+
function isProduct(t: any): boolean;
|
|
9
|
+
function isOptionGroup(t: any): boolean;
|
|
10
|
+
function isVitalOptionGroup(t: any): boolean;
|
|
11
|
+
function findGroupBySelCtxInProductItems(t: any, e: any): any;
|
|
12
|
+
function findProductInProductItems(t: any, e: any): any;
|
|
13
|
+
function getMenuProductWithReplacedLockedProducts(t: any): any;
|
|
14
|
+
function processLocks(t: any, e: any, r: number | undefined, n: any): any;
|
|
15
|
+
function getMenuItemsWithProcessLocks(t: any, e: any): any;
|
|
16
|
+
function getMenuWithProperLiterals(t: any, e: any): any;
|
|
17
|
+
function getProductWithProperLiterals(t: any, e: any): any;
|
|
18
|
+
function extractLiteralsByLanguage(t: any, e: any): void;
|
|
19
|
+
}
|
|
20
|
+
declare function fi(t: any): number;
|
|
21
|
+
declare function tn(t: any, e: any): any;
|
|
22
|
+
declare function bg({ product: t, state: e, selected: r, cheapestGroupOptionsProduct: n, basePrice: s, dangerouslyOverwritePrice: a }: {
|
|
9
23
|
product: any;
|
|
10
24
|
state: any;
|
|
11
25
|
selected: any;
|
|
@@ -18,39 +32,39 @@ declare function _d({ product: t, state: e, selected: r, cheapestGroupOptionsPro
|
|
|
18
32
|
calculatedPriceDefaultProductState: any;
|
|
19
33
|
calculatedChildrensBasePrice: any;
|
|
20
34
|
};
|
|
21
|
-
declare function
|
|
22
|
-
declare function
|
|
23
|
-
declare function
|
|
24
|
-
declare function
|
|
25
|
-
declare function
|
|
35
|
+
declare function Qt(t: any, e?: undefined, r?: undefined, n?: boolean): any;
|
|
36
|
+
declare function ui(t: any, e?: undefined, r?: undefined, n?: boolean): any[];
|
|
37
|
+
declare function dg(t: any, e: any, r?: string, n?: number): string;
|
|
38
|
+
declare function mg(t: any): any[] | null;
|
|
39
|
+
declare function Eg({ items: t, locale: e, venue: r }: {
|
|
26
40
|
items: any;
|
|
27
41
|
locale: any;
|
|
28
42
|
venue: any;
|
|
29
43
|
}): any;
|
|
30
|
-
declare function
|
|
31
|
-
declare function
|
|
32
|
-
declare function
|
|
33
|
-
declare function
|
|
34
|
-
declare function
|
|
35
|
-
declare function
|
|
36
|
-
declare function
|
|
37
|
-
declare function
|
|
38
|
-
declare function
|
|
39
|
-
declare function
|
|
40
|
-
declare function
|
|
41
|
-
declare function
|
|
42
|
-
declare function
|
|
43
|
-
declare function
|
|
44
|
-
declare function
|
|
45
|
-
declare function
|
|
46
|
-
declare function
|
|
47
|
-
declare function
|
|
44
|
+
declare function Et(t: any, e: any): any;
|
|
45
|
+
declare function Tg(t: any, e: any, r: any): any;
|
|
46
|
+
declare function og(t: any, e?: number): any;
|
|
47
|
+
declare function $g(t: any): any;
|
|
48
|
+
declare function vg(t: any): any[] | undefined;
|
|
49
|
+
declare function an(t: any, e: any): any;
|
|
50
|
+
declare function rn(t: any): any[];
|
|
51
|
+
declare function yg(t: any): boolean;
|
|
52
|
+
declare function Pt(t: any): boolean;
|
|
53
|
+
declare function At(t: any, e: any): any;
|
|
54
|
+
declare function gg(t: any, e: any): boolean;
|
|
55
|
+
declare function Xt(t: any, e: any, r: any): boolean;
|
|
56
|
+
declare function Pr(t: any, e: any): any;
|
|
57
|
+
declare function Lt(t: any, e: any): void;
|
|
58
|
+
declare function _g(t: any, e: any): void;
|
|
59
|
+
declare function hg(t: any): number;
|
|
60
|
+
declare function od(t: any, e?: boolean, r?: undefined, n?: number): never[];
|
|
61
|
+
declare function pe(t: any, e: number | undefined, r: boolean | undefined, n: any, s: any): {
|
|
48
62
|
value: any;
|
|
49
63
|
isError: boolean;
|
|
50
64
|
isLoading: boolean;
|
|
51
|
-
refresh: (
|
|
65
|
+
refresh: (l: any) => Promise<boolean | void>;
|
|
52
66
|
};
|
|
53
|
-
declare function
|
|
67
|
+
declare function Ig({ id: t, intervalSeconds: e, withLocalStorage: r }: {
|
|
54
68
|
id: any;
|
|
55
69
|
intervalSeconds: any;
|
|
56
70
|
withLocalStorage: any;
|
|
@@ -58,9 +72,9 @@ declare function Ed({ id: t, intervalSeconds: e, withLocalStorage: r }: {
|
|
|
58
72
|
value: any;
|
|
59
73
|
isError: boolean;
|
|
60
74
|
isLoading: boolean;
|
|
61
|
-
refresh: (
|
|
75
|
+
refresh: (l: any) => Promise<boolean | void>;
|
|
62
76
|
};
|
|
63
|
-
declare function
|
|
77
|
+
declare function ud({ product: t, state: e, selected: r, cheapestGroupOptionsProduct: n, basePrice: s, dangerouslyOverwritePrice: a }: {
|
|
64
78
|
product: any;
|
|
65
79
|
state: any;
|
|
66
80
|
selected: any;
|
|
@@ -73,14 +87,14 @@ declare function og({ product: t, state: e, selected: r, cheapestGroupOptionsPro
|
|
|
73
87
|
calculatedPriceDefaultProductState: any;
|
|
74
88
|
calculatedChildrensBasePrice: any;
|
|
75
89
|
};
|
|
76
|
-
declare function
|
|
77
|
-
declare function
|
|
78
|
-
declare function
|
|
90
|
+
declare function Ag(t: any): any[];
|
|
91
|
+
declare function ie(t: any, e: any): () => void;
|
|
92
|
+
declare function Cg(t: any): {
|
|
79
93
|
dineInOpen: any;
|
|
80
94
|
takeAwayOpen: any;
|
|
81
95
|
loaded: boolean;
|
|
82
96
|
};
|
|
83
|
-
declare function
|
|
97
|
+
declare function Qd({ kioskMediaId: t, kioskMediaType: e, intervalSeconds: r, withLocalStorage: n, baseUrl: s, tenant: a, venue: i, locale: u }: {
|
|
84
98
|
kioskMediaId: any;
|
|
85
99
|
kioskMediaType: any;
|
|
86
100
|
intervalSeconds?: number | undefined;
|
|
@@ -96,9 +110,9 @@ declare function Xg({ kioskMediaId: t, kioskMediaType: e, intervalSeconds: r, wi
|
|
|
96
110
|
isError: boolean;
|
|
97
111
|
isLoading: boolean;
|
|
98
112
|
imageDisplayTime: any;
|
|
99
|
-
refresh: (
|
|
113
|
+
refresh: (l: any) => Promise<boolean | void>;
|
|
100
114
|
};
|
|
101
|
-
declare function
|
|
115
|
+
declare function Sg({ kioskMediaId: t, kioskMediaType: e, venue: r, language: n, intervalSeconds: s, withLocalStorage: a }: {
|
|
102
116
|
kioskMediaId: any;
|
|
103
117
|
kioskMediaType: any;
|
|
104
118
|
venue: any;
|
|
@@ -112,35 +126,35 @@ declare function Od({ kioskMediaId: t, kioskMediaType: e, venue: r, language: n,
|
|
|
112
126
|
isError: boolean;
|
|
113
127
|
isLoading: boolean;
|
|
114
128
|
imageDisplayTime: any;
|
|
115
|
-
refresh: (
|
|
129
|
+
refresh: (l: any) => Promise<boolean | void>;
|
|
116
130
|
};
|
|
117
|
-
declare function
|
|
131
|
+
declare function Og(t: any, e: any, r: any, n?: number, s?: boolean): {
|
|
118
132
|
url: any;
|
|
119
133
|
fallbackUrl: any;
|
|
120
134
|
isError: boolean;
|
|
121
135
|
mediaType: any;
|
|
122
|
-
refresh: (
|
|
136
|
+
refresh: (l: any) => Promise<boolean | void>;
|
|
123
137
|
};
|
|
124
|
-
declare function
|
|
138
|
+
declare function Xd(t: any, e: any, r: any, n: number | undefined, s: boolean | undefined, a: any, i: any): {
|
|
125
139
|
url: any;
|
|
126
140
|
fallbackUrl: any;
|
|
127
141
|
isError: boolean;
|
|
128
142
|
mediaType: any;
|
|
129
|
-
refresh: (
|
|
143
|
+
refresh: (l: any) => Promise<boolean | void>;
|
|
130
144
|
};
|
|
131
|
-
declare function
|
|
132
|
-
declare function
|
|
145
|
+
declare function Lg(t: any, e?: number): any;
|
|
146
|
+
declare function pg({ originalMenu: t, markOnly: e, timeZone: r, interval: n, enableKeys: s }: {
|
|
133
147
|
originalMenu: any;
|
|
134
148
|
markOnly?: boolean | undefined;
|
|
135
149
|
timeZone: any;
|
|
136
150
|
interval?: number | undefined;
|
|
137
151
|
enableKeys?: never[] | undefined;
|
|
138
152
|
}): never[];
|
|
139
|
-
declare function
|
|
140
|
-
declare function
|
|
153
|
+
declare function Dg(t: any, e: any): void;
|
|
154
|
+
declare function kd(t: any, e: number | undefined, r: boolean | undefined, n: any, s: any, a: any): {
|
|
141
155
|
value: any;
|
|
142
156
|
isError: boolean;
|
|
143
|
-
refresh: (
|
|
157
|
+
refresh: (l: any) => Promise<boolean | void>;
|
|
144
158
|
};
|
|
145
|
-
export {
|
|
159
|
+
export { ne as MediaProxy, Y as MenuUtils, fi as addDiscounts, tn as availabilityCustomizer, bg as calculateDisplayPrice, Qt as filterTimeAvailabilityOfItems, ui as filterTimeAvailabilityOfProducts, dg as formatPrice, mg as getGroupedBucketLines, Eg as getLocalizedVenueItem, Et as getLocalizedVenueMediaFromArray, Tg as getLocalizedVenueMediaUrl, og as getMediaUrl, $g as getProductAcronym, vg as getUnusedCouponsKeysFromOrder, an as getUrlFromLocalizedVenueMedia, rn as groupOrderLines, yg as isAnyGroupKind, Pt as isAvailable, At as isChannelOpen, gg as isHiddenByEnableKey, Xt as isProductAvailable, Pr as isProductEnabled, Lt as markHiddenByEnableKey, _g as markItemsHiddenByEnableKey, hg as summarizeLineDiscounts, od as useAvailability, pe as useCms, Ig as useCmsInConfigContext, ud as useDisplayPrice, Ag as useGroupOrderLines, ie as useInterval, Cg as useKioskChannelsAvailability, Qd as useKioskMediaCms, Sg as useKioskMediaCmsWithContext, Og as useLocalizedVenueMedia, Xd as useLocalizedVenueMediaLegacy, Lg as useMediaUrl, pg as useMenu, Dg as useOnClickOutside, kd as useVenueCms };
|
|
146
160
|
//# sourceMappingURL=index.es.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es.d.ts","sourceRoot":"","sources":["../../../index.es.js"],"names":[],"mappings":"AA2yEA;;;;EAAW;
|
|
1
|
+
{"version":3,"file":"index.es.d.ts","sourceRoot":"","sources":["../../../index.es.js"],"names":[],"mappings":"AA2yEA;;;;EAAW;;IAQC,uCAGR;IACS,oCAAkD;IAC9C,wCAAkD;IAC7C,6CAGnB;IACgC,8DAehC;IAC0B,wDAY1B;IACyC,+DA+DzC;IACa,0EA0Bb;IAC6B,2DAS7B;IAC0B,wDAK1B;IAC6B,2DAG7B;IAC0B,yDAkB1B;;AAnuDH,oCAGC;AAmsBD,yCASC;AAuCD;;;;;;;;;;;;EAuGU;AAx8BV,4EAuCC;AAvCD,8EAuCC;AA2ED,oEAEC;AAo8BD,0CAEC;AAyDD;;;;QAcC;AAhCD,yCAaC;AACD,iDAGC;AA6iBD,6CAEC;AApiDD,iCAIC;AACD,+CAmBC;AA48BD,yCAaC;AAjGD,mCAuCC;AA95BD,qCAOC;AAq7BD,qCAcC;AAxjCD,yCAMC;AA4ED,6CAEC;AAvID,qDAUC;AAsHD,yCAIC;AAksBD,0CASC;AATD,0CASC;AArtBD,oCAEC;AAgrBD,6EAeC;AAkVD;;;;;EAsDC;AACD;;;;;;;;;EAeC;AAvWD;;;;;;;;;;;;EAuGU;AA6GV,mCAEC;AA9rDD,gDAkBC;AAw8DD;;;;EAaC;AAnGD;;;;;;;;;;;;;;;;;EA4CC;AACD;;;;;;;;;;;;;;;EAqBC;AArGD;;;;;;EAaC;AACD;;;;;;EAoBC;AAsaD,6CAEC;AA/1BD;;;;;;YASC;AAkfD,0CAkBC;AAzID;;;;EAgBC"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -7,7 +7,8 @@ export * from './useOnClickOutside';
|
|
|
7
7
|
export * from './useChannelAvailability';
|
|
8
8
|
export * from './useMediaUrl';
|
|
9
9
|
export * from './utils';
|
|
10
|
-
export
|
|
10
|
+
export * from './utils/menu';
|
|
11
|
+
export { filterTimeAvailabilityOfProducts, isProductAvailable, filterTimeAvailabilityOfItems, } from './utils/timeAvailabilityFilter';
|
|
11
12
|
export { isChannelOpen } from './utils/timeAvailabilityFilter';
|
|
12
13
|
export * from './utils/cms';
|
|
13
14
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,UAAU,CAAC;AACzB,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,UAAU,CAAC;AACzB,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,OAAO,EACL,gCAAgC,EAChC,kBAAkB,EAClB,6BAA6B,GAC9B,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,cAAc,aAAa,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,CA+CP;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"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { IMenuLock, IProduct } from '@orderingstack/ordering-types';
|
|
2
|
+
|
|
3
|
+
export declare const MenuUtils: {
|
|
4
|
+
isLocked: (product: IProduct, locks: IMenuLock[]) => boolean;
|
|
5
|
+
isProduct: (product: IProduct) => boolean;
|
|
6
|
+
isOptionGroup: (product: IProduct) => boolean;
|
|
7
|
+
isVitalOptionGroup: (product: IProduct) => boolean;
|
|
8
|
+
findGroupBySelCtxInProductItems: (selCtx: string, items: IProduct[]) => IProduct | null;
|
|
9
|
+
findProductInProductItems: (id: string, menu: IProduct[]) => IProduct | null;
|
|
10
|
+
getMenuProductWithReplacedLockedProducts: (item: IProduct) => IProduct;
|
|
11
|
+
processLocks: (product: IProduct, locks: IMenuLock[], nestedLvl?: number, isMenuProduct?: boolean) => {
|
|
12
|
+
modified: boolean;
|
|
13
|
+
product: IProduct | null;
|
|
14
|
+
};
|
|
15
|
+
getMenuItemsWithProcessLocks: (items: IProduct[], locks?: IMenuLock[]) => IProduct[];
|
|
16
|
+
getMenuWithProperLiterals: (items: IProduct[], lang: string) => IProduct[];
|
|
17
|
+
getProductWithProperLiterals: (product: IProduct, lang: string) => IProduct;
|
|
18
|
+
extractLiteralsByLanguage: (product: IProduct, lang: string) => void;
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=menu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../../../../src/utils/menu.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,SAAS,EACT,QAAQ,EACT,MAAM,+BAA+B,CAAC;AAIvC,eAAO,MAAM,SAAS;wBACA,QAAQ,SAAS,SAAS,EAAE;yBAM3B,QAAQ;6BAGJ,QAAQ;kCAGH,QAAQ;8CAI5B,MAAM,SACP,QAAQ,EAAE,KAChB,QAAQ,GAAG,IAAI;oCAmBZ,MAAM,QACJ,QAAQ,EAAE,KACf,QAAQ,GAAG,IAAI;qDAe+B,QAAQ,KAAG,QAAQ;4BA6EzD,QAAQ,SACV,SAAS,EAAE,sCAEF,OAAO,KACtB;QAAE,QAAQ,EAAE,OAAO,CAAC;QAAC,OAAO,EAAE,QAAQ,GAAG,IAAI,CAAA;KAAE;0CA+CzC,QAAQ,EAAE,UACT,SAAS,EAAE,KAClB,QAAQ,EAAE;uCAasB,QAAQ,EAAE,QAAQ,MAAM,KAAG,QAAQ,EAAE;4CAOhC,QAAQ,QAAQ,MAAM,KAAG,QAAQ;yCAMpC,QAAQ,QAAQ,MAAM;CAwC5D,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orderingstack/front-hooks",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.10.0-beta.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"packageManager": "pnpm@9.12.2",
|
|
6
6
|
"main": "dist/index.cjs.js",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@orderingstack/ordering-core-react": "^3.3.2",
|
|
33
|
-
"@orderingstack/ordering-types": "^1.
|
|
33
|
+
"@orderingstack/ordering-types": "^1.39.0",
|
|
34
34
|
"@testing-library/react-hooks": "^8.0.1",
|
|
35
35
|
"@types/node": "^20.12.7",
|
|
36
36
|
"@types/react": "^17.0.38",
|