@orderingstack/front-hooks 6.9.0-beta.1 → 6.10.0-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.
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +1538 -1366
- package/dist/index.es.js.map +1 -1
- package/dist/packages/hooks/dist/index.cjs.d.ts +31 -30
- package/dist/packages/hooks/dist/index.cjs.d.ts.map +1 -1
- package/dist/packages/hooks/dist/index.es.d.ts +30 -29
- 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/utils/menu.d.ts +20 -0
- package/dist/types/utils/menu.d.ts.map +1 -0
- package/package.json +2 -2
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
declare let
|
|
1
|
+
declare let jt: {
|
|
2
2
|
new (): {};
|
|
3
3
|
getInstance(): {};
|
|
4
4
|
instance: {} | undefined;
|
|
5
5
|
};
|
|
6
|
-
declare function
|
|
7
|
-
declare function
|
|
8
|
-
declare function
|
|
6
|
+
declare function Rr(t: any): number;
|
|
7
|
+
declare function ye(t: any, e: any): any;
|
|
8
|
+
declare function $d({ 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,39 @@ declare function vg({ product: t, state: e, selected: r, cheapestGroupOptionsPro
|
|
|
18
18
|
calculatedPriceDefaultProductState: any;
|
|
19
19
|
calculatedChildrensBasePrice: any;
|
|
20
20
|
};
|
|
21
|
-
declare function
|
|
22
|
-
declare function
|
|
23
|
-
declare function
|
|
24
|
-
declare function
|
|
25
|
-
declare function
|
|
21
|
+
declare function Dt(t: any, e?: undefined, r?: undefined, n?: boolean): any;
|
|
22
|
+
declare function Ur(t: any, e?: undefined, r?: undefined, n?: boolean): any[];
|
|
23
|
+
declare function ds(t: any, e: any, r?: string, n?: number): string;
|
|
24
|
+
declare function tg(t: any): any[] | null;
|
|
25
|
+
declare function ug({ items: t, locale: e, venue: r }: {
|
|
26
26
|
items: any;
|
|
27
27
|
locale: any;
|
|
28
28
|
venue: any;
|
|
29
29
|
}): any;
|
|
30
30
|
declare function gt(t: any, e: any): any;
|
|
31
|
-
declare function
|
|
31
|
+
declare function og(t: any, e: any, r: any): any;
|
|
32
32
|
declare function hn(t: any, e?: number): any;
|
|
33
33
|
declare function vs(t: any): any;
|
|
34
34
|
declare function $s(t: any): any[] | undefined;
|
|
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
|
|
35
|
+
declare function _e(t: any, e: any): any;
|
|
36
|
+
declare function pe(t: any): any[];
|
|
37
|
+
declare function ys(t: any): boolean;
|
|
38
|
+
declare function $t(t: any): boolean;
|
|
39
|
+
declare function dt(t: any, e: any): any;
|
|
40
|
+
declare function gs(t: any, e: any): boolean;
|
|
41
|
+
declare function St(t: any, e: any, r: any): boolean;
|
|
42
|
+
declare function ce(t: any, e: any): any;
|
|
43
|
+
declare function vt(t: any, e: any): void;
|
|
44
|
+
declare function vd(t: any, e: any): void;
|
|
44
45
|
declare function hs(t: any): number;
|
|
45
46
|
declare function rn(t: any, e?: boolean, r?: undefined, n?: number): never[];
|
|
46
|
-
declare function
|
|
47
|
+
declare function Wt(t: any, e: number | undefined, r: boolean | undefined, n: any, i: any): {
|
|
47
48
|
value: any;
|
|
48
49
|
isError: boolean;
|
|
49
50
|
isLoading: boolean;
|
|
50
51
|
refresh: (c: any) => Promise<any>;
|
|
51
52
|
};
|
|
52
|
-
declare function
|
|
53
|
+
declare function cg({ id: t, intervalSeconds: e, withLocalStorage: r }: {
|
|
53
54
|
id: any;
|
|
54
55
|
intervalSeconds: any;
|
|
55
56
|
withLocalStorage: any;
|
|
@@ -72,9 +73,9 @@ declare function an({ product: t, state: e, selected: r, cheapestGroupOptionsPro
|
|
|
72
73
|
calculatedPriceDefaultProductState: any;
|
|
73
74
|
calculatedChildrensBasePrice: any;
|
|
74
75
|
};
|
|
75
|
-
declare function
|
|
76
|
-
declare function
|
|
77
|
-
declare function
|
|
76
|
+
declare function Qd(t: any): any[];
|
|
77
|
+
declare function Ut(t: any, e: any): () => void;
|
|
78
|
+
declare function dg(t: any): {
|
|
78
79
|
dineInOpen: any;
|
|
79
80
|
takeAwayOpen: any;
|
|
80
81
|
loaded: boolean;
|
|
@@ -97,7 +98,7 @@ declare function cn({ kioskMediaId: t, kioskMediaType: e, intervalSeconds: r, wi
|
|
|
97
98
|
imageDisplayTime: any;
|
|
98
99
|
refresh: (c: any) => Promise<any>;
|
|
99
100
|
};
|
|
100
|
-
declare function
|
|
101
|
+
declare function lg({ kioskMediaId: t, kioskMediaType: e, venue: r, language: n, intervalSeconds: i, withLocalStorage: a }: {
|
|
101
102
|
kioskMediaId: any;
|
|
102
103
|
kioskMediaType: any;
|
|
103
104
|
venue: any;
|
|
@@ -113,7 +114,7 @@ declare function fd({ kioskMediaId: t, kioskMediaType: e, venue: r, language: n,
|
|
|
113
114
|
imageDisplayTime: any;
|
|
114
115
|
refresh: (c: any) => Promise<any>;
|
|
115
116
|
};
|
|
116
|
-
declare function
|
|
117
|
+
declare function fg(t: any, e: any, r: any, n?: number, i?: boolean): {
|
|
117
118
|
url: any;
|
|
118
119
|
fallbackUrl: any;
|
|
119
120
|
isError: boolean;
|
|
@@ -127,19 +128,19 @@ declare function un(t: any, e: any, r: any, n: number | undefined, i: boolean |
|
|
|
127
128
|
mediaType: any;
|
|
128
129
|
refresh: (c: any) => Promise<any>;
|
|
129
130
|
};
|
|
130
|
-
declare function
|
|
131
|
-
declare function
|
|
131
|
+
declare function Ag(t: any, e?: number): any;
|
|
132
|
+
declare function gd({ originalMenu: t, markOnly: e, timeZone: r, interval: n, enableKeys: i }: {
|
|
132
133
|
originalMenu: any;
|
|
133
134
|
markOnly?: boolean | undefined;
|
|
134
135
|
timeZone: any;
|
|
135
136
|
interval?: number | undefined;
|
|
136
137
|
enableKeys?: never[] | undefined;
|
|
137
138
|
}): never[];
|
|
138
|
-
declare function
|
|
139
|
+
declare function hg(t: any, e: any): void;
|
|
139
140
|
declare function on(t: any, e: number | undefined, r: boolean | undefined, n: any, i: any, a: any): {
|
|
140
141
|
value: any;
|
|
141
142
|
isError: boolean;
|
|
142
143
|
refresh: (c: any) => Promise<any>;
|
|
143
144
|
};
|
|
144
|
-
export {
|
|
145
|
+
export { jt as MediaProxy, Rr as addDiscounts, ye as availabilityCustomizer, $d as calculateDisplayPrice, Dt as filterTimeAvailabilityOfItems, Ur as filterTimeAvailabilityOfProducts, ds as formatPrice, tg as getGroupedBucketLines, ug as getLocalizedVenueItem, gt as getLocalizedVenueMediaFromArray, og as getLocalizedVenueMediaUrl, hn as getMediaUrl, vs as getProductAcronym, $s as getUnusedCouponsKeysFromOrder, _e as getUrlFromLocalizedVenueMedia, pe as groupOrderLines, ys as isAnyGroupKind, $t as isAvailable, dt as isChannelOpen, gs as isHiddenByEnableKey, St as isProductAvailable, ce as isProductEnabled, vt as markHiddenByEnableKey, vd as markItemsHiddenByEnableKey, hs as summarizeLineDiscounts, rn as useAvailability, Wt as useCms, cg as useCmsInConfigContext, an as useDisplayPrice, Qd as useGroupOrderLines, Ut as useInterval, dg as useKioskChannelsAvailability, cn as useKioskMediaCms, lg as useKioskMediaCmsWithContext, fg as useLocalizedVenueMedia, un as useLocalizedVenueMediaLegacy, Ag as useMediaUrl, gd as useMenu, hg as useOnClickOutside, on as useVenueCms };
|
|
145
146
|
//# 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":"AAA0uvD;;;;EAAS;AAAx+jC,oCAAkF;AAAmpe,yCAA6W;AAA6tB;;;;;;;;;;;;EAA4nD;AAAnmsB,4EAAsrB;AAAtrB,8EAAsrB;AAA0nH,oEAAuF;AAA0/nB,0CAAqE;AAA+6C;;;;QAA4Z;AAAn4B,yCAAob;AAAC,iDAAkD;AAA2yY,6CAAyD;AAAzojC,iCAA4T;AAAA,+CAAsiB;AAA49nB,yCAAob;AAAppF,mCAAurC;AAAn7lB,qCAA4F;AAAi9mB,qCAA+a;AAAvtxB,yCAAmJ;AAAsuH,6CAAgC;AAA/hK,qDAA+c;AAAu4I,yCAAyK;AAA0te,0CAAwK;AAAxK,0CAAwK;AAAxqf,oCAAsC;AAAw2d,6EAAqQ;AAAo3N;;;;;EAA2rC;AAAA;;;;;;;;;EAAkM;AAAvqO;;;;;;;;;;;;EAA4nD;AAAkwE,mCAA4B;AAA9nzC,gDAA0R;AAAg79C;;;;EAAoZ;AAAprD;;;;;;;;;;;;;;;;;EAAurB;AAAA;;;;;;;;;;;;;;;EAA0U;AAAhsD;;;;;;EAA2K;AAAA;;;;;;EAAohB;AAA4iT,6CAAoC;AAA30kB;;;;;;YAA8H;AAA8nT,0CAA+R;AAA/zE;;;;EAAgW"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
declare let
|
|
1
|
+
declare let ee: {
|
|
2
2
|
new (): {};
|
|
3
3
|
getInstance(): {};
|
|
4
4
|
instance: {} | undefined;
|
|
5
5
|
};
|
|
6
6
|
declare function us(t: any): number;
|
|
7
7
|
declare function Qr(t: any, e: any): any;
|
|
8
|
-
declare function
|
|
8
|
+
declare function _d({ 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,39 @@ declare function pv({ product: t, state: e, selected: r, cheapestGroupOptionsPro
|
|
|
18
18
|
calculatedPriceDefaultProductState: any;
|
|
19
19
|
calculatedChildrensBasePrice: any;
|
|
20
20
|
};
|
|
21
|
-
declare function
|
|
21
|
+
declare function kt(t: any, e?: undefined, r?: undefined, n?: boolean): any;
|
|
22
22
|
declare function os(t: any, e?: undefined, r?: undefined, n?: boolean): any[];
|
|
23
|
-
declare function
|
|
24
|
-
declare function
|
|
25
|
-
declare function
|
|
23
|
+
declare function hd(t: any, e: any, r?: string, n?: number): string;
|
|
24
|
+
declare function Ad(t: any): any[] | null;
|
|
25
|
+
declare function Td({ items: t, locale: e, venue: r }: {
|
|
26
26
|
items: any;
|
|
27
27
|
locale: any;
|
|
28
28
|
venue: any;
|
|
29
29
|
}): any;
|
|
30
|
-
declare function
|
|
31
|
-
declare function
|
|
32
|
-
declare function
|
|
33
|
-
declare function
|
|
34
|
-
declare function
|
|
30
|
+
declare function mt(t: any, e: any): any;
|
|
31
|
+
declare function md(t: any, e: any, r: any): any;
|
|
32
|
+
declare function sd(t: any, e?: number): any;
|
|
33
|
+
declare function dd(t: any): any;
|
|
34
|
+
declare function vd(t: any): any[] | undefined;
|
|
35
35
|
declare function nn(t: any, e: any): any;
|
|
36
36
|
declare function en(t: any): any[];
|
|
37
|
-
declare function
|
|
38
|
-
declare function
|
|
39
|
-
declare function
|
|
40
|
-
declare function
|
|
37
|
+
declare function $d(t: any): boolean;
|
|
38
|
+
declare function Nt(t: any): boolean;
|
|
39
|
+
declare function _t(t: any, e: any): any;
|
|
40
|
+
declare function gd(t: any, e: any): boolean;
|
|
41
|
+
declare function Jt(t: any, e: any, r: any): boolean;
|
|
41
42
|
declare function Lr(t: any, e: any): any;
|
|
42
|
-
declare function
|
|
43
|
-
declare function
|
|
44
|
-
declare function
|
|
43
|
+
declare function Dt(t: any, e: any): void;
|
|
44
|
+
declare function pd(t: any, e: any): void;
|
|
45
|
+
declare function ld(t: any): number;
|
|
45
46
|
declare function sg(t: any, e?: boolean, r?: undefined, n?: number): never[];
|
|
46
|
-
declare function
|
|
47
|
+
declare function ye(t: any, e: number | undefined, r: boolean | undefined, n: any, i: any): {
|
|
47
48
|
value: any;
|
|
48
49
|
isError: boolean;
|
|
49
50
|
isLoading: boolean;
|
|
50
51
|
refresh: (u: any) => Promise<boolean | void>;
|
|
51
52
|
};
|
|
52
|
-
declare function
|
|
53
|
+
declare function Ed({ id: t, intervalSeconds: e, withLocalStorage: r }: {
|
|
53
54
|
id: any;
|
|
54
55
|
intervalSeconds: any;
|
|
55
56
|
withLocalStorage: any;
|
|
@@ -72,9 +73,9 @@ declare function og({ product: t, state: e, selected: r, cheapestGroupOptionsPro
|
|
|
72
73
|
calculatedPriceDefaultProductState: any;
|
|
73
74
|
calculatedChildrensBasePrice: any;
|
|
74
75
|
};
|
|
75
|
-
declare function
|
|
76
|
-
declare function
|
|
77
|
-
declare function
|
|
76
|
+
declare function bd(t: any): any[];
|
|
77
|
+
declare function ae(t: any, e: any): () => void;
|
|
78
|
+
declare function Dd(t: any): {
|
|
78
79
|
dineInOpen: any;
|
|
79
80
|
takeAwayOpen: any;
|
|
80
81
|
loaded: boolean;
|
|
@@ -97,7 +98,7 @@ declare function Xg({ kioskMediaId: t, kioskMediaType: e, intervalSeconds: r, wi
|
|
|
97
98
|
imageDisplayTime: any;
|
|
98
99
|
refresh: (u: any) => Promise<boolean | void>;
|
|
99
100
|
};
|
|
100
|
-
declare function
|
|
101
|
+
declare function Od({ kioskMediaId: t, kioskMediaType: e, venue: r, language: n, intervalSeconds: i, withLocalStorage: a }: {
|
|
101
102
|
kioskMediaId: any;
|
|
102
103
|
kioskMediaType: any;
|
|
103
104
|
venue: any;
|
|
@@ -113,7 +114,7 @@ declare function Iv({ kioskMediaId: t, kioskMediaType: e, venue: r, language: n,
|
|
|
113
114
|
imageDisplayTime: any;
|
|
114
115
|
refresh: (u: any) => Promise<boolean | void>;
|
|
115
116
|
};
|
|
116
|
-
declare function
|
|
117
|
+
declare function Id(t: any, e: any, r: any, n?: number, i?: boolean): {
|
|
117
118
|
url: any;
|
|
118
119
|
fallbackUrl: any;
|
|
119
120
|
isError: boolean;
|
|
@@ -127,19 +128,19 @@ declare function kg(t: any, e: any, r: any, n: number | undefined, i: boolean |
|
|
|
127
128
|
mediaType: any;
|
|
128
129
|
refresh: (u: any) => Promise<boolean | void>;
|
|
129
130
|
};
|
|
130
|
-
declare function
|
|
131
|
-
declare function
|
|
131
|
+
declare function Cd(t: any, e?: number): any;
|
|
132
|
+
declare function yd({ originalMenu: t, markOnly: e, timeZone: r, interval: n, enableKeys: i }: {
|
|
132
133
|
originalMenu: any;
|
|
133
134
|
markOnly?: boolean | undefined;
|
|
134
135
|
timeZone: any;
|
|
135
136
|
interval?: number | undefined;
|
|
136
137
|
enableKeys?: never[] | undefined;
|
|
137
138
|
}): never[];
|
|
138
|
-
declare function
|
|
139
|
+
declare function Sd(t: any, e: any): void;
|
|
139
140
|
declare function Jg(t: any, e: number | undefined, r: boolean | undefined, n: any, i: any, a: any): {
|
|
140
141
|
value: any;
|
|
141
142
|
isError: boolean;
|
|
142
143
|
refresh: (u: any) => Promise<boolean | void>;
|
|
143
144
|
};
|
|
144
|
-
export {
|
|
145
|
+
export { ee as MediaProxy, us as addDiscounts, Qr as availabilityCustomizer, _d as calculateDisplayPrice, kt as filterTimeAvailabilityOfItems, os as filterTimeAvailabilityOfProducts, hd as formatPrice, Ad as getGroupedBucketLines, Td as getLocalizedVenueItem, mt as getLocalizedVenueMediaFromArray, md as getLocalizedVenueMediaUrl, sd as getMediaUrl, dd as getProductAcronym, vd as getUnusedCouponsKeysFromOrder, nn as getUrlFromLocalizedVenueMedia, en as groupOrderLines, $d as isAnyGroupKind, Nt as isAvailable, _t as isChannelOpen, gd as isHiddenByEnableKey, Jt as isProductAvailable, Lr as isProductEnabled, Dt as markHiddenByEnableKey, pd as markItemsHiddenByEnableKey, ld as summarizeLineDiscounts, sg as useAvailability, ye as useCms, Ed as useCmsInConfigContext, og as useDisplayPrice, bd as useGroupOrderLines, ae as useInterval, Dd as useKioskChannelsAvailability, Xg as useKioskMediaCms, Od as useKioskMediaCmsWithContext, Id as useLocalizedVenueMedia, kg as useLocalizedVenueMediaLegacy, Cd as useMediaUrl, yd as useMenu, Sd as useOnClickOutside, Jg as useVenueCms };
|
|
145
146
|
//# 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":"AA2yEA;;;;EAAW;AAnjDX,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"}
|
|
@@ -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.0",
|
|
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",
|