@orderingstack/front-hooks 6.3.1 → 6.5.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 +27 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +5732 -1938
- package/dist/index.es.js.map +1 -1
- package/dist/packages/escpos-encoder/src/index.d.ts +18 -2
- package/dist/packages/escpos-encoder/src/index.d.ts.map +1 -1
- package/dist/packages/hooks/dist/index.cjs.d.ts +58 -44
- package/dist/packages/hooks/dist/index.cjs.d.ts.map +1 -1
- package/dist/packages/hooks/dist/index.es.d.ts +58 -44
- package/dist/packages/hooks/dist/index.es.d.ts.map +1 -1
- package/dist/packages/menu/vite.config.d.ts.map +1 -1
- package/dist/src/utils/build.d.ts +0 -1
- package/dist/src/utils/build.d.ts.map +1 -1
- package/dist/types/__tests__/order.test.d.ts +2 -0
- package/dist/types/__tests__/order.test.d.ts.map +1 -0
- package/dist/types/utils.d.ts +24 -1
- package/dist/types/utils.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/packages/analytics-plugin/dist/index.cjs.d.ts +0 -49
- package/dist/packages/analytics-plugin/dist/index.cjs.d.ts.map +0 -1
- package/dist/packages/analytics-plugin/dist/index.es.d.ts +0 -48
- package/dist/packages/analytics-plugin/dist/index.es.d.ts.map +0 -1
- package/dist/packages/auth/dist/deps/AuthProvider.cjs.d.ts +0 -73
- package/dist/packages/auth/dist/deps/AuthProvider.cjs.d.ts.map +0 -1
- package/dist/packages/auth/dist/deps/AuthProvider.es.d.ts +0 -71
- package/dist/packages/auth/dist/deps/AuthProvider.es.d.ts.map +0 -1
- package/dist/packages/auth/dist/deps/web.cjs.d.ts +0 -10
- package/dist/packages/auth/dist/deps/web.cjs.d.ts.map +0 -1
- package/dist/packages/auth/dist/deps/web.cjs2.d.ts +0 -16
- package/dist/packages/auth/dist/deps/web.cjs2.d.ts.map +0 -1
- package/dist/packages/auth/dist/deps/web.cjs3.d.ts +0 -40
- package/dist/packages/auth/dist/deps/web.cjs3.d.ts.map +0 -1
- package/dist/packages/auth/dist/deps/web.cjs4.d.ts +0 -27
- package/dist/packages/auth/dist/deps/web.cjs4.d.ts.map +0 -1
- package/dist/packages/auth/dist/deps/web.cjs5.d.ts +0 -35
- package/dist/packages/auth/dist/deps/web.cjs5.d.ts.map +0 -1
- package/dist/packages/auth/dist/deps/web.es.d.ts +0 -10
- package/dist/packages/auth/dist/deps/web.es.d.ts.map +0 -1
- package/dist/packages/auth/dist/deps/web.es2.d.ts +0 -16
- package/dist/packages/auth/dist/deps/web.es2.d.ts.map +0 -1
- package/dist/packages/auth/dist/deps/web.es3.d.ts +0 -40
- package/dist/packages/auth/dist/deps/web.es3.d.ts.map +0 -1
- package/dist/packages/auth/dist/deps/web.es4.d.ts +0 -27
- package/dist/packages/auth/dist/deps/web.es4.d.ts.map +0 -1
- package/dist/packages/auth/dist/deps/web.es5.d.ts +0 -35
- package/dist/packages/auth/dist/deps/web.es5.d.ts.map +0 -1
- package/dist/packages/auth/dist/legacy.cjs.d.ts +0 -7
- package/dist/packages/auth/dist/legacy.cjs.d.ts.map +0 -1
- package/dist/packages/auth/dist/legacy.es.d.ts +0 -8
- package/dist/packages/auth/dist/legacy.es.d.ts.map +0 -1
- package/dist/packages/auth/dist/v6.cjs.d.ts +0 -6
- package/dist/packages/auth/dist/v6.cjs.d.ts.map +0 -1
- package/dist/packages/auth/dist/v6.es.d.ts +0 -8
- package/dist/packages/auth/dist/v6.es.d.ts.map +0 -1
- package/dist/packages/config/dist/index.cjs.d.ts +0 -73
- package/dist/packages/config/dist/index.cjs.d.ts.map +0 -1
- package/dist/packages/config/dist/index.es.d.ts +0 -72
- package/dist/packages/config/dist/index.es.d.ts.map +0 -1
- package/dist/packages/escpos-encoder/dist/index.d.cts +0 -358
- package/dist/packages/escpos-encoder/dist/index.d.cts.map +0 -1
- package/dist/packages/escpos-encoder/dist/index.es.d.ts +0 -596
- package/dist/packages/escpos-encoder/dist/index.es.d.ts.map +0 -1
- package/dist/packages/menu/dist/index.cjs.d.ts +0 -22
- package/dist/packages/menu/dist/index.cjs.d.ts.map +0 -1
- package/dist/packages/menu/dist/index.es.d.ts +0 -22
- package/dist/packages/menu/dist/index.es.d.ts.map +0 -1
- package/dist/packages/mparticle-plugin/dist/index.cjs.d.ts +0 -14
- package/dist/packages/mparticle-plugin/dist/index.cjs.d.ts.map +0 -1
- package/dist/packages/mparticle-plugin/dist/index.es.d.ts +0 -14
- package/dist/packages/mparticle-plugin/dist/index.es.d.ts.map +0 -1
- package/dist/packages/phone-input/dist/index.cjs.d.ts +0 -16
- package/dist/packages/phone-input/dist/index.cjs.d.ts.map +0 -1
- package/dist/packages/phone-input/dist/index.es.d.ts +0 -16
- package/dist/packages/phone-input/dist/index.es.d.ts.map +0 -1
|
@@ -114,11 +114,11 @@ export declare class EscPosEncoder {
|
|
|
114
114
|
text(value: string, wrap?: number): EscPosEncoder;
|
|
115
115
|
/**
|
|
116
116
|
* Print a newline
|
|
117
|
-
*
|
|
117
|
+
* @param count {int} - number of newlines to print, defaults to 1
|
|
118
118
|
* @return {EscPosEncoder} Return the object, for easy chaining commands
|
|
119
119
|
*
|
|
120
120
|
*/
|
|
121
|
-
newline(): EscPosEncoder;
|
|
121
|
+
newline(count?: number): EscPosEncoder;
|
|
122
122
|
/**
|
|
123
123
|
* Print text, followed by a newline
|
|
124
124
|
*
|
|
@@ -128,6 +128,16 @@ export declare class EscPosEncoder {
|
|
|
128
128
|
*
|
|
129
129
|
*/
|
|
130
130
|
line(value: string, wrap?: number): EscPosEncoder;
|
|
131
|
+
/**
|
|
132
|
+
* Print text justified, followed by a newline
|
|
133
|
+
*
|
|
134
|
+
* @param {string} leftText Left text
|
|
135
|
+
* @param {string} rightText Text that needs to be printed
|
|
136
|
+
* @param {Size} charWidth Width of the characters
|
|
137
|
+
* @return {EscPosEncoder} Return the object, for easy chaining commands
|
|
138
|
+
*
|
|
139
|
+
*/
|
|
140
|
+
lineJustified(leftText: string, rightText: string, charWidth?: Size): EscPosEncoder;
|
|
131
141
|
/**
|
|
132
142
|
* Encodes text line with special formatting characters (&c, &b)
|
|
133
143
|
* @param line
|
|
@@ -135,6 +145,12 @@ export declare class EscPosEncoder {
|
|
|
135
145
|
* @returns {EscPosEncoder}
|
|
136
146
|
*/
|
|
137
147
|
lineFormatted(line: string, wrap?: boolean): EscPosEncoder;
|
|
148
|
+
/**
|
|
149
|
+
* Set left margin
|
|
150
|
+
* @param units {number} - margin in horizontal motion units
|
|
151
|
+
* @returns {EscPosEncoder}
|
|
152
|
+
*/
|
|
153
|
+
marginLeft(units: number): EscPosEncoder;
|
|
138
154
|
/**
|
|
139
155
|
* Underline text
|
|
140
156
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../escpos-encoder/src/index.ts"],"names":[],"mappings":"AAOA,cAAc,SAAS,CAAC;AACxB,OAAO,EAEL,eAAe,EACf,YAAY,EACZ,mBAAmB,EACpB,MAAM,SAAS,CAAC;AAEjB,UAAU,OAAO;IACf,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,eAAe,EAAE,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1D,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,YAAY,GAAG,MAAM,CAAC;IAChC,kBAAkB,EAAE,MAAM,EAAE,CAAC;CAC9B;AAED,UAAU,UAAU;IAClB,KAAK,EAAE,SAAS,CAAC;IACjB,KAAK,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM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,aAAa;IAyDhB;;;;;;;;;OASG;IACH,MAAM,CACJ,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,CAAC,GAAG,CAAC,EACZ,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,gBAAgB,GAC3B,aAAa;IA0GhB;;;;;;OAMG;IACH,GAAG,CAAC,KAAK,CAAC,EAAE,OAAO,GAAG,aAAa;IAgBnC;;;;;;;;OAQG;IACH,KAAK,CAAC,MAAM,GAAE,CAAC,GAAG,CAAK,EAAE,EAAE,SAAM,EAAE,GAAG,SAAM,GAAG,aAAa;IAyB5D;;;;;;OAMG;IACH,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,aAAa;IAMlC;;;;;OAKG;IACH,MAAM,IAAI,UAAU;CA+BrB"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
declare let
|
|
1
|
+
declare let ri: {
|
|
2
2
|
new (): {};
|
|
3
3
|
getInstance(): {};
|
|
4
4
|
instance: {} | undefined;
|
|
5
5
|
};
|
|
6
|
-
declare function
|
|
7
|
-
declare function
|
|
8
|
-
declare function
|
|
6
|
+
declare function lc(r: any): number;
|
|
7
|
+
declare function _a(r: any, a: any): any;
|
|
8
|
+
declare function xI({ product: r, state: a, selected: i, cheapestGroupOptionsProduct: c, basePrice: p, dangerouslyOverwritePrice: g }: {
|
|
9
9
|
product: any;
|
|
10
10
|
state: any;
|
|
11
11
|
selected: any;
|
|
@@ -18,35 +18,49 @@ declare function dg({ 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
|
|
21
|
+
declare function hc(r: any, a: any): void;
|
|
22
|
+
declare function cc(r: any, a?: undefined, i?: undefined, c?: boolean): any[];
|
|
23
|
+
declare function OA(r: any, a: any, i?: string, c?: number): string;
|
|
24
|
+
declare function gO(r: any): any[] | null;
|
|
25
|
+
declare function mO({ items: r, locale: a, venue: i }: {
|
|
25
26
|
items: any;
|
|
26
27
|
locale: any;
|
|
27
28
|
venue: any;
|
|
28
29
|
}): any;
|
|
29
|
-
declare function
|
|
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
|
|
30
|
+
declare function Je(r: any, a: any): any;
|
|
31
|
+
declare function $O(r: any, a: any, i: any): any;
|
|
32
|
+
declare function Kc(r: any, a?: number): any;
|
|
33
|
+
declare function LA(r: any, a: any): any;
|
|
34
|
+
declare function xA(r: any): any;
|
|
35
|
+
declare function RA(r: any, a: any): any;
|
|
36
|
+
declare function CA(r: any): any[] | undefined;
|
|
37
|
+
declare function da(r: any, a: any): any;
|
|
38
|
+
declare function va(r: any): any[];
|
|
39
|
+
declare function ei(r: any): boolean;
|
|
40
|
+
declare function ze(r: any, a: any): any;
|
|
41
|
+
declare function ra(r: any, a: any): any;
|
|
42
|
+
declare function SA(r: any, a: any): boolean;
|
|
43
|
+
declare function ia(r: any, a: any): any;
|
|
44
|
+
declare function aa(r: any): boolean;
|
|
45
|
+
declare function ua(r: any): boolean;
|
|
46
|
+
declare function ta(r: any, a: any): any;
|
|
47
|
+
declare function sa(r: any): boolean;
|
|
48
|
+
declare function Xe(r: any, a: any): void;
|
|
49
|
+
declare function SI(r: any, a: any): void;
|
|
50
|
+
declare function ea(r: any, a: any, i?: number): any;
|
|
51
|
+
declare function gc(r: any, a: any, i?: number): {
|
|
52
|
+
modified: boolean;
|
|
53
|
+
product: any;
|
|
54
|
+
};
|
|
55
|
+
declare function IA(r: any): number;
|
|
56
|
+
declare function Pc(r: any, a?: boolean, i?: undefined, c?: number): never[];
|
|
57
|
+
declare function pi(r: any, a: number | undefined, i: boolean | undefined, c: any, p: any): {
|
|
44
58
|
value: any;
|
|
45
59
|
isError: boolean;
|
|
46
60
|
isLoading: boolean;
|
|
47
|
-
refresh: (
|
|
61
|
+
refresh: (b: any) => Promise<any>;
|
|
48
62
|
};
|
|
49
|
-
declare function
|
|
63
|
+
declare function bO({ id: r, intervalSeconds: a, withLocalStorage: i }: {
|
|
50
64
|
id: any;
|
|
51
65
|
intervalSeconds: any;
|
|
52
66
|
withLocalStorage: any;
|
|
@@ -54,9 +68,9 @@ declare function od({ id: t, intervalSeconds: e, withLocalStorage: r }: {
|
|
|
54
68
|
value: any;
|
|
55
69
|
isError: boolean;
|
|
56
70
|
isLoading: boolean;
|
|
57
|
-
refresh: (
|
|
71
|
+
refresh: (b: any) => Promise<any>;
|
|
58
72
|
};
|
|
59
|
-
declare function
|
|
73
|
+
declare function Uc({ product: r, state: a, selected: i, cheapestGroupOptionsProduct: c, basePrice: p, dangerouslyOverwritePrice: g }: {
|
|
60
74
|
product: any;
|
|
61
75
|
state: any;
|
|
62
76
|
selected: any;
|
|
@@ -69,14 +83,14 @@ declare function an({ product: t, state: e, selected: r, cheapestGroupOptionsPro
|
|
|
69
83
|
calculatedPriceDefaultProductState: any;
|
|
70
84
|
calculatedChildrensBasePrice: any;
|
|
71
85
|
};
|
|
72
|
-
declare function
|
|
73
|
-
declare function
|
|
74
|
-
declare function
|
|
86
|
+
declare function hO(r: any): any[];
|
|
87
|
+
declare function ii(r: any, a: any): () => void;
|
|
88
|
+
declare function IO(r: any): {
|
|
75
89
|
dineInOpen: any;
|
|
76
90
|
takeAwayOpen: any;
|
|
77
91
|
loaded: boolean;
|
|
78
92
|
};
|
|
79
|
-
declare function
|
|
93
|
+
declare function Wc({ kioskMediaId: r, kioskMediaType: a, intervalSeconds: i, withLocalStorage: c, baseUrl: p, tenant: g, venue: _, locale: $ }: {
|
|
80
94
|
kioskMediaId: any;
|
|
81
95
|
kioskMediaType: any;
|
|
82
96
|
intervalSeconds?: number | undefined;
|
|
@@ -92,9 +106,9 @@ declare function cn({ kioskMediaId: t, kioskMediaType: e, intervalSeconds: r, wi
|
|
|
92
106
|
isError: boolean;
|
|
93
107
|
isLoading: boolean;
|
|
94
108
|
imageDisplayTime: any;
|
|
95
|
-
refresh: (
|
|
109
|
+
refresh: (b: any) => Promise<any>;
|
|
96
110
|
};
|
|
97
|
-
declare function
|
|
111
|
+
declare function TO({ kioskMediaId: r, kioskMediaType: a, venue: i, language: c, intervalSeconds: p, withLocalStorage: g }: {
|
|
98
112
|
kioskMediaId: any;
|
|
99
113
|
kioskMediaType: any;
|
|
100
114
|
venue: any;
|
|
@@ -108,35 +122,35 @@ declare function cd({ kioskMediaId: t, kioskMediaType: e, venue: r, language: n,
|
|
|
108
122
|
isError: boolean;
|
|
109
123
|
isLoading: boolean;
|
|
110
124
|
imageDisplayTime: any;
|
|
111
|
-
refresh: (
|
|
125
|
+
refresh: (b: any) => Promise<any>;
|
|
112
126
|
};
|
|
113
|
-
declare function
|
|
127
|
+
declare function EO(r: any, a: any, i: any, c?: number, p?: boolean): {
|
|
114
128
|
url: any;
|
|
115
129
|
fallbackUrl: any;
|
|
116
130
|
isError: boolean;
|
|
117
131
|
mediaType: any;
|
|
118
|
-
refresh: (
|
|
132
|
+
refresh: (b: any) => Promise<any>;
|
|
119
133
|
};
|
|
120
|
-
declare function
|
|
134
|
+
declare function Bc(r: any, a: any, i: any, c: number | undefined, p: boolean | undefined, g: any, _: any): {
|
|
121
135
|
url: any;
|
|
122
136
|
fallbackUrl: any;
|
|
123
137
|
isError: boolean;
|
|
124
138
|
mediaType: any;
|
|
125
|
-
refresh: (
|
|
139
|
+
refresh: (b: any) => Promise<any>;
|
|
126
140
|
};
|
|
127
|
-
declare function
|
|
128
|
-
declare function
|
|
141
|
+
declare function PO(r: any, a?: number): any;
|
|
142
|
+
declare function OI({ originalMenu: r, markOnly: a, timeZone: i, interval: c, enableKeys: p }: {
|
|
129
143
|
originalMenu: any;
|
|
130
144
|
markOnly?: boolean | undefined;
|
|
131
145
|
timeZone: any;
|
|
132
146
|
interval?: number | undefined;
|
|
133
147
|
enableKeys?: any[] | undefined;
|
|
134
148
|
}): never[];
|
|
135
|
-
declare function
|
|
136
|
-
declare function
|
|
149
|
+
declare function wO(r: any, a: any): void;
|
|
150
|
+
declare function Fc(r: any, a: number | undefined, i: boolean | undefined, c: any, p: any, g: any): {
|
|
137
151
|
value: any;
|
|
138
152
|
isError: boolean;
|
|
139
|
-
refresh: (
|
|
153
|
+
refresh: (b: any) => Promise<any>;
|
|
140
154
|
};
|
|
141
|
-
export {
|
|
155
|
+
export { ri as MediaProxy, lc as addDiscounts, _a as availabilityCustomizer, xI as calculateDisplayPrice, hc as extractLiteralsByLanguage, cc as filterTimeAvailabilityOfProducts, OA as formatPrice, gO as getGroupedBucketLines, mO as getLocalizedVenueItem, Je as getLocalizedVenueMediaFromArray, $O as getLocalizedVenueMediaUrl, Kc as getMediaUrl, LA as getMenuItemsWithProcessLocks, xA as getProductAcronym, RA as getReadOnlyMenuItemsWithProcessLocks, CA as getUnusedCouponsKeysFromOrder, da as getUrlFromLocalizedVenueMedia, va as groupOrderLines, ei as isAvailable, ze as isChannelOpen, ra as isFreeForLocks, SA as isHiddenByEnableKey, ia as isLocked, aa as isOptionGroup, ua as isProduct, ta as isProductEnabled, sa as isVitalOptionGroup, Xe as markHiddenByEnableKey, SI as markItemsHiddenByEnableKey, ea as processLocks, gc as processReadOnlyProductWithLocks, IA as summarizeLineDiscounts, Pc as useAvailability, pi as useCms, bO as useCmsInConfigContext, Uc as useDisplayPrice, hO as useGroupOrderLines, ii as useInterval, IO as useKioskChannelsAvailability, Wc as useKioskMediaCms, TO as useKioskMediaCmsWithContext, EO as useLocalizedVenueMedia, Bc as useLocalizedVenueMediaLegacy, PO as useMediaUrl, OI as useMenu, wO as useOnClickOutside, Fc as useVenueCms };
|
|
142
156
|
//# 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":"AA0Bmq8C;;;;EAAU;AAA/omC,oCAAkF;AAAq7hB,yCAA6W;AAAirB;;;;;;;;;;;;EAAg/C;AAA3wkB,0CAAmc;AA1BwqK,8EAAymB;AA0Bt2O,oEAAuF;AAAmuqB,0CAAqE;AAAy6C;;;;QAA4Z;AAAt3B,yCAAua;AAAC,iDAAkD;AAA+uY,6CAAyD;AAA3/iC,yCAAuE;AAA53C,iCAA4T;AAA6zC,yCAAkI;AAA/7C,+CAAsjB;AAA4rqB,yCAAua;AAA5wE,mCAAqzB;AAA8nB,qCAAkb;AA1Bv+d,yCAAoJ;AA0B79J,yCAA2H;AAAz5E,6CAAgC;AAAy3E,yCAAgI;AAA0D,qCAA0D;AAApH,qCAA0D;AAA5vF,yCAAyK;AAA6oF,qCAAkF;AAA6xc,0CAAwK;AAAxK,0CAAwK;AAAxwf,qDAA6P;AAAkI;;;EAAmgB;AAApkF,oCAAsC;AAAwohB,6EAAuQ;AAAqzM;;;;;EAA+rC;AAAA;;;;;;;;;EAAmM;AAAzpN;;;;;;;;;;;;EAAg/C;AAAi4D,mCAA4B;AA1BpngC,gDAA8R;AA0Bu6qC;;;;EAAuZ;AAA5rD;;;;;;;;;;;;;;;;;EAA0rB;AAAA;;;;;;;;;;;;;;;EAA2U;AAArsD;;;;;;EAA4K;AAAA;;;;;;EAAohB;AAA0+S,6CAAoC;AAAhtjB;;;;;;YAA8H;AAAykS,0CAAgS;AAAr0E;;;;EAAgW"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
declare let
|
|
1
|
+
declare let Zu: {
|
|
2
2
|
new (): {};
|
|
3
3
|
getInstance(): {};
|
|
4
4
|
instance: {} | undefined;
|
|
5
5
|
};
|
|
6
|
-
declare function
|
|
7
|
-
declare function
|
|
8
|
-
declare function
|
|
6
|
+
declare function my(r: any): number;
|
|
7
|
+
declare function xc(r: any, a: any): any;
|
|
8
|
+
declare function RS({ product: r, state: a, selected: i, cheapestGroupOptionsProduct: c, basePrice: _, dangerouslyOverwritePrice: g }: {
|
|
9
9
|
product: any;
|
|
10
10
|
state: any;
|
|
11
11
|
selected: any;
|
|
@@ -18,35 +18,49 @@ declare function pv({ product: t, state: r, selected: e, cheapestGroupOptionsPro
|
|
|
18
18
|
calculatedPriceDefaultProductState: any;
|
|
19
19
|
calculatedChildrensBasePrice: any;
|
|
20
20
|
};
|
|
21
|
-
declare function
|
|
22
|
-
declare function
|
|
23
|
-
declare function
|
|
24
|
-
declare function
|
|
21
|
+
declare function by(r: any, a: any): void;
|
|
22
|
+
declare function yy(r: any, a?: undefined, i?: undefined, c?: boolean): any[];
|
|
23
|
+
declare function ES(r: any, a: any, i?: string, c?: number): string;
|
|
24
|
+
declare function NS(r: any): any[] | null;
|
|
25
|
+
declare function US({ items: r, locale: a, venue: i }: {
|
|
25
26
|
items: any;
|
|
26
27
|
locale: any;
|
|
27
28
|
venue: any;
|
|
28
29
|
}): any;
|
|
29
|
-
declare function
|
|
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
|
|
30
|
+
declare function Zr(r: any, a: any): any;
|
|
31
|
+
declare function PS(r: any, a: any, i: any): any;
|
|
32
|
+
declare function AS(r: any, a?: number): any;
|
|
33
|
+
declare function OS(r: any, a: any): any;
|
|
34
|
+
declare function IS(r: any): any;
|
|
35
|
+
declare function xS(r: any, a: any): any;
|
|
36
|
+
declare function SS(r: any): any[] | undefined;
|
|
37
|
+
declare function Dc(r: any, a: any): any;
|
|
38
|
+
declare function Lc(r: any): any[];
|
|
39
|
+
declare function qu(r: any): boolean;
|
|
40
|
+
declare function Kr(r: any, a: any): any;
|
|
41
|
+
declare function ic(r: any, a: any): any;
|
|
42
|
+
declare function wS(r: any, a: any): boolean;
|
|
43
|
+
declare function uc(r: any, a: any): any;
|
|
44
|
+
declare function fc(r: any): boolean;
|
|
45
|
+
declare function ac(r: any): boolean;
|
|
46
|
+
declare function ec(r: any, a: any): any;
|
|
47
|
+
declare function sc(r: any): boolean;
|
|
48
|
+
declare function ni(r: any, a: any): void;
|
|
49
|
+
declare function LS(r: any, a: any): void;
|
|
50
|
+
declare function rc(r: any, a: any, i?: number): any;
|
|
51
|
+
declare function Ty(r: any, a: any, i?: number): {
|
|
52
|
+
modified: boolean;
|
|
53
|
+
product: any;
|
|
54
|
+
};
|
|
55
|
+
declare function TS(r: any): number;
|
|
56
|
+
declare function AI(r: any, a?: boolean, i?: undefined, c?: number): never[];
|
|
57
|
+
declare function oa(r: any, a: number | undefined, i: boolean | undefined, c: any, _: any): {
|
|
44
58
|
value: any;
|
|
45
59
|
isError: boolean;
|
|
46
60
|
isLoading: boolean;
|
|
47
|
-
refresh: (
|
|
61
|
+
refresh: (b: any) => Promise<boolean | void>;
|
|
48
62
|
};
|
|
49
|
-
declare function
|
|
63
|
+
declare function MS({ id: r, intervalSeconds: a, withLocalStorage: i }: {
|
|
50
64
|
id: any;
|
|
51
65
|
intervalSeconds: any;
|
|
52
66
|
withLocalStorage: any;
|
|
@@ -54,9 +68,9 @@ declare function mv({ id: t, intervalSeconds: r, withLocalStorage: e }: {
|
|
|
54
68
|
value: any;
|
|
55
69
|
isError: boolean;
|
|
56
70
|
isLoading: boolean;
|
|
57
|
-
refresh: (
|
|
71
|
+
refresh: (b: any) => Promise<boolean | void>;
|
|
58
72
|
};
|
|
59
|
-
declare function
|
|
73
|
+
declare function yI({ product: r, state: a, selected: i, cheapestGroupOptionsProduct: c, basePrice: _, dangerouslyOverwritePrice: g }: {
|
|
60
74
|
product: any;
|
|
61
75
|
state: any;
|
|
62
76
|
selected: any;
|
|
@@ -69,14 +83,14 @@ declare function og({ product: t, state: r, selected: e, cheapestGroupOptionsPro
|
|
|
69
83
|
calculatedPriceDefaultProductState: any;
|
|
70
84
|
calculatedChildrensBasePrice: any;
|
|
71
85
|
};
|
|
72
|
-
declare function
|
|
73
|
-
declare function
|
|
74
|
-
declare function
|
|
86
|
+
declare function DS(r: any): any[];
|
|
87
|
+
declare function Xu(r: any, a: any): () => void;
|
|
88
|
+
declare function GS(r: any): {
|
|
75
89
|
dineInOpen: any;
|
|
76
90
|
takeAwayOpen: any;
|
|
77
91
|
loaded: boolean;
|
|
78
92
|
};
|
|
79
|
-
declare function
|
|
93
|
+
declare function cS({ kioskMediaId: r, kioskMediaType: a, intervalSeconds: i, withLocalStorage: c, baseUrl: _, tenant: g, venue: p, locale: $ }: {
|
|
80
94
|
kioskMediaId: any;
|
|
81
95
|
kioskMediaType: any;
|
|
82
96
|
intervalSeconds?: number | undefined;
|
|
@@ -92,9 +106,9 @@ declare function Qg({ kioskMediaId: t, kioskMediaType: r, intervalSeconds: e, wi
|
|
|
92
106
|
isError: boolean;
|
|
93
107
|
isLoading: boolean;
|
|
94
108
|
imageDisplayTime: any;
|
|
95
|
-
refresh: (
|
|
109
|
+
refresh: (b: any) => Promise<boolean | void>;
|
|
96
110
|
};
|
|
97
|
-
declare function
|
|
111
|
+
declare function BS({ kioskMediaId: r, kioskMediaType: a, venue: i, language: c, intervalSeconds: _, withLocalStorage: g }: {
|
|
98
112
|
kioskMediaId: any;
|
|
99
113
|
kioskMediaType: any;
|
|
100
114
|
venue: any;
|
|
@@ -108,35 +122,35 @@ declare function Ev({ kioskMediaId: t, kioskMediaType: r, venue: e, language: n,
|
|
|
108
122
|
isError: boolean;
|
|
109
123
|
isLoading: boolean;
|
|
110
124
|
imageDisplayTime: any;
|
|
111
|
-
refresh: (
|
|
125
|
+
refresh: (b: any) => Promise<boolean | void>;
|
|
112
126
|
};
|
|
113
|
-
declare function
|
|
127
|
+
declare function FS(r: any, a: any, i: any, c?: number, _?: boolean): {
|
|
114
128
|
url: any;
|
|
115
129
|
fallbackUrl: any;
|
|
116
130
|
isError: boolean;
|
|
117
131
|
mediaType: any;
|
|
118
|
-
refresh: (
|
|
132
|
+
refresh: (b: any) => Promise<boolean | void>;
|
|
119
133
|
};
|
|
120
|
-
declare function
|
|
134
|
+
declare function oS(r: any, a: any, i: any, c: number | undefined, _: boolean | undefined, g: any, p: any): {
|
|
121
135
|
url: any;
|
|
122
136
|
fallbackUrl: any;
|
|
123
137
|
isError: boolean;
|
|
124
138
|
mediaType: any;
|
|
125
|
-
refresh: (
|
|
139
|
+
refresh: (b: any) => Promise<boolean | void>;
|
|
126
140
|
};
|
|
127
|
-
declare function
|
|
128
|
-
declare function
|
|
141
|
+
declare function HS(r: any, a?: number): any;
|
|
142
|
+
declare function CS({ originalMenu: r, markOnly: a, timeZone: i, interval: c, enableKeys: _ }: {
|
|
129
143
|
originalMenu: any;
|
|
130
144
|
markOnly?: boolean | undefined;
|
|
131
145
|
timeZone: any;
|
|
132
146
|
interval?: number | undefined;
|
|
133
147
|
enableKeys?: any[] | undefined;
|
|
134
148
|
}): never[];
|
|
135
|
-
declare function
|
|
136
|
-
declare function
|
|
149
|
+
declare function WS(r: any, a: any): void;
|
|
150
|
+
declare function sS(r: any, a: number | undefined, i: boolean | undefined, c: any, _: any, g: any): {
|
|
137
151
|
value: any;
|
|
138
152
|
isError: boolean;
|
|
139
|
-
refresh: (
|
|
153
|
+
refresh: (b: any) => Promise<boolean | void>;
|
|
140
154
|
};
|
|
141
|
-
export {
|
|
155
|
+
export { Zu as MediaProxy, my as addDiscounts, xc as availabilityCustomizer, RS as calculateDisplayPrice, by as extractLiteralsByLanguage, yy as filterTimeAvailabilityOfProducts, ES as formatPrice, NS as getGroupedBucketLines, US as getLocalizedVenueItem, Zr as getLocalizedVenueMediaFromArray, PS as getLocalizedVenueMediaUrl, AS as getMediaUrl, OS as getMenuItemsWithProcessLocks, IS as getProductAcronym, xS as getReadOnlyMenuItemsWithProcessLocks, SS as getUnusedCouponsKeysFromOrder, Dc as getUrlFromLocalizedVenueMedia, Lc as groupOrderLines, qu as isAvailable, Kr as isChannelOpen, ic as isFreeForLocks, wS as isHiddenByEnableKey, uc as isLocked, fc as isOptionGroup, ac as isProduct, ec as isProductEnabled, sc as isVitalOptionGroup, ni as markHiddenByEnableKey, LS as markItemsHiddenByEnableKey, rc as processLocks, Ty as processReadOnlyProductWithLocks, TS as summarizeLineDiscounts, AI as useAvailability, oa as useCms, MS as useCmsInConfigContext, yI as useDisplayPrice, DS as useGroupOrderLines, Xu as useInterval, GS as useKioskChannelsAvailability, cS as useKioskMediaCms, BS as useKioskMediaCmsWithContext, FS as useLocalizedVenueMedia, oS as useLocalizedVenueMediaLegacy, HS as useMediaUrl, CS as useMenu, WS as useOnClickOutside, sS as useVenueCms };
|
|
142
156
|
//# 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":"AA27LA;;;;EAAY;AA9kDZ,oCAGC;AAkxBD,yCASC;AAuCD;;;;;;;;;;;;EA4DU;AA11BV,0CAcC;AA3vHD,8EAsCC;AAuqHD,oEAEC;AA89BD,0CAEC;AAqDD;;;;QAcC;AA5BD,yCASC;AACD,iDAGC;AAkjBD,6CAEC;AA3hDD,yCAEC;AAtCD,iCAIC;AAoDD,yCASC;AA5DD,+CAeC;AA0+BD,yCASC;AAlFD,mCA4BC;AA8BD,qCAcC;AA9qJD,yCAMC;AAuwHD,yCAGC;AAlGD,6CAEC;AAiGD,yCAKC;AAID,qCAEC;AALD,qCAEC;AAhHD,yCAIC;AAgHD,qCAGC;AA8pBD,0CASC;AATD,0CASC;AA/uBD,qDAgBC;AAWD;;;EAyBC;AAzGD,oCAEC;AA+vBD,6EAeC;AAyRD;;;;;EAsDC;AACD;;;;;;;;;EAeC;AA9SD;;;;;;;;;;;;EA4DU;AAmGV,mCAEC;AA70KD,gDAkBC;AAylLD;;;;EAaC;AAzGD;;;;;;;;;;;;;;;;;EAkDC;AACD;;;;;;;;;;;;;;;EAqBC;AA3GD;;;;;;EAaC;AACD;;;;;;EAoBC;AA2aD,6CAEC;AA3yBD;;;;;;YASC;AA+bD,0CAkBC;AA/ID;;;;EAgBC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vite.config.d.ts","sourceRoot":"","sources":["../../../../menu/vite.config.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"vite.config.d.ts","sourceRoot":"","sources":["../../../../menu/vite.config.ts"],"names":[],"mappings":";AA0BA,wBAkCG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../../../src/utils/build.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../../../src/utils/build.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,qBAAqB,SAAmB,MAAM,SAc1D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"order.test.d.ts","sourceRoot":"","sources":["../../../../../src/__tests__/order.test.ts"],"names":[],"mappings":""}
|
package/dist/types/utils.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IOrderLine, IDiscount, IProduct } from '@orderingstack/ordering-types';
|
|
1
|
+
import { IOrderLine, IDiscount, IProduct, IOrder, IOrderCoupon, EChannelName } 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;
|
|
@@ -6,4 +6,27 @@ export declare function formatPrice(value: string | number, currency?: string |
|
|
|
6
6
|
export declare function isProductEnabled(item: IProduct, enableKeys?: string[]): boolean;
|
|
7
7
|
export declare function isHiddenByEnableKey(item: IProduct, enableKeys?: string[]): boolean;
|
|
8
8
|
export declare function getProductAcronym(product: IProduct): string;
|
|
9
|
+
export declare function getUnusedCouponsKeysFromOrder(order: IOrder): IOrderCoupon[] | undefined;
|
|
10
|
+
export declare function extractLiteralsByLanguage(product: IProduct, lang: string): void;
|
|
11
|
+
export interface IMenuLock {
|
|
12
|
+
id: string;
|
|
13
|
+
products?: string[];
|
|
14
|
+
instances?: string[];
|
|
15
|
+
lockedInChannel?: Record<EChannelName, boolean>;
|
|
16
|
+
description?: string;
|
|
17
|
+
plannedLockExpirationDate?: string;
|
|
18
|
+
lockReason?: string;
|
|
19
|
+
}
|
|
20
|
+
export declare function getMenuItemsWithProcessLocks(items: IProduct[], locks?: IMenuLock[]): IProduct[];
|
|
21
|
+
export declare function processLocks(product: IProduct, locks: IMenuLock[], nestedLvl?: number): IProduct | null;
|
|
22
|
+
export declare function getReadOnlyMenuItemsWithProcessLocks(items: IProduct[], locks?: IMenuLock[]): IProduct[];
|
|
23
|
+
export declare function processReadOnlyProductWithLocks(product: IProduct, locks: IMenuLock[], nestedLvl?: number): {
|
|
24
|
+
modified: boolean;
|
|
25
|
+
product: IProduct | null;
|
|
26
|
+
};
|
|
27
|
+
export declare function isFreeForLocks(product: IProduct, locks: IMenuLock[]): any;
|
|
28
|
+
export declare function isLocked(product: IProduct, locks: IMenuLock[]): boolean | IProduct;
|
|
29
|
+
export declare function isProduct(product: IProduct): boolean;
|
|
30
|
+
export declare function isOptionGroup(product: IProduct): boolean;
|
|
31
|
+
export declare function isVitalOptionGroup(product: IProduct): boolean;
|
|
9
32
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/utils.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 @@
|
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@orderingstack/ordering-core-react": "^2.6.1",
|
|
33
|
-
"@orderingstack/ordering-types": "^1.
|
|
33
|
+
"@orderingstack/ordering-types": "^1.27.3",
|
|
34
34
|
"@testing-library/react-hooks": "^8.0.1",
|
|
35
35
|
"@types/node": "^20.12.7",
|
|
36
36
|
"@types/react": "^17.0.38",
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
export default y;
|
|
2
|
-
declare function y(e: any): {
|
|
3
|
-
name: string;
|
|
4
|
-
page: ({ payload: o }: {
|
|
5
|
-
payload: any;
|
|
6
|
-
}) => void;
|
|
7
|
-
track: ({ payload: o }: {
|
|
8
|
-
payload: any;
|
|
9
|
-
}) => void;
|
|
10
|
-
loaded: () => boolean;
|
|
11
|
-
};
|
|
12
|
-
declare namespace b {
|
|
13
|
-
function reset({ config: e }: {
|
|
14
|
-
config: any;
|
|
15
|
-
}): void;
|
|
16
|
-
}
|
|
17
|
-
declare namespace g {
|
|
18
|
-
export { _ as mapItemToGaItem };
|
|
19
|
-
export { k as mapSelectedMenuToViewItemList };
|
|
20
|
-
export { v as mapOrderToPayload };
|
|
21
|
-
export { T as linesToGaCartItems };
|
|
22
|
-
export { f as couponToGaPromotion };
|
|
23
|
-
}
|
|
24
|
-
declare function _(e: any): {
|
|
25
|
-
item_id: any;
|
|
26
|
-
item_name: any;
|
|
27
|
-
item_fiscal: any;
|
|
28
|
-
item_extra: any;
|
|
29
|
-
};
|
|
30
|
-
declare function k(e: any): {
|
|
31
|
-
item_list_id: any;
|
|
32
|
-
item_list_name: any;
|
|
33
|
-
items: any;
|
|
34
|
-
};
|
|
35
|
-
declare function v(e: any, t: any, o: any, i: any): {
|
|
36
|
-
currency: any;
|
|
37
|
-
value: number;
|
|
38
|
-
items: any[];
|
|
39
|
-
};
|
|
40
|
-
declare function T(e: any, t: any, o: any, i: any): {
|
|
41
|
-
value: number;
|
|
42
|
-
items: any[];
|
|
43
|
-
};
|
|
44
|
-
declare function f(e: any): {
|
|
45
|
-
coupon: any;
|
|
46
|
-
promotion_name: any;
|
|
47
|
-
};
|
|
48
|
-
export { b as googleAnalyticsResetExtension, g as utils };
|
|
49
|
-
//# sourceMappingURL=index.cjs.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs.d.ts","sourceRoot":"","sources":["../../../../../analytics-plugin/dist/index.cjs.js"],"names":[],"mappings":";AAA0J;;;;;;;;;EAAoY;;IAAe;;aAAoU;;;;;;;;;AAAE;;;;;EAA6T;AAAA;;;;EAAuK;AAA6xB;;;;EAA0O;AAAA;;;EAAiM;AAAxsC;;;EAA0F"}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
declare function v(t: any): {
|
|
2
|
-
name: string;
|
|
3
|
-
page: ({ payload: o }: {
|
|
4
|
-
payload: any;
|
|
5
|
-
}) => void;
|
|
6
|
-
track: ({ payload: o }: {
|
|
7
|
-
payload: any;
|
|
8
|
-
}) => void;
|
|
9
|
-
loaded: () => boolean;
|
|
10
|
-
};
|
|
11
|
-
declare namespace x {
|
|
12
|
-
function reset({ config: t }: {
|
|
13
|
-
config: any;
|
|
14
|
-
}): void;
|
|
15
|
-
}
|
|
16
|
-
declare namespace E {
|
|
17
|
-
export { _ as mapItemToGaItem };
|
|
18
|
-
export { k as mapSelectedMenuToViewItemList };
|
|
19
|
-
export { y as mapOrderToPayload };
|
|
20
|
-
export { T as linesToGaCartItems };
|
|
21
|
-
export { f as couponToGaPromotion };
|
|
22
|
-
}
|
|
23
|
-
declare function _(t: any): {
|
|
24
|
-
item_id: any;
|
|
25
|
-
item_name: any;
|
|
26
|
-
item_fiscal: any;
|
|
27
|
-
item_extra: any;
|
|
28
|
-
};
|
|
29
|
-
declare function k(t: any): {
|
|
30
|
-
item_list_id: any;
|
|
31
|
-
item_list_name: any;
|
|
32
|
-
items: any;
|
|
33
|
-
};
|
|
34
|
-
declare function y(t: any, e: any, o: any, a: any): {
|
|
35
|
-
currency: any;
|
|
36
|
-
value: number;
|
|
37
|
-
items: any[];
|
|
38
|
-
};
|
|
39
|
-
declare function T(t: any, e: any, o: any, a: any): {
|
|
40
|
-
value: number;
|
|
41
|
-
items: any[];
|
|
42
|
-
};
|
|
43
|
-
declare function f(t: any): {
|
|
44
|
-
coupon: any;
|
|
45
|
-
promotion_name: any;
|
|
46
|
-
};
|
|
47
|
-
export { v as default, x as googleAnalyticsResetExtension, E as utils };
|
|
48
|
-
//# sourceMappingURL=index.es.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.es.d.ts","sourceRoot":"","sources":["../../../../../analytics-plugin/dist/index.es.js"],"names":[],"mappings":"AACA;;;;;;;;;EA2BC;;IAEQ;;aAON;;;;;;;;;AAEH;;;;;EASC;AACD;;;;EAOC;AAmCD;;;;EAgBC;AACD;;;EAWC;AA9DD;;;EAMC"}
|