@orderingstack/front-hooks 6.3.0 → 6.4.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.
Files changed (85) hide show
  1. package/dist/index.cjs.js +27 -1
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.es.js +5649 -1920
  4. package/dist/index.es.js.map +1 -1
  5. package/dist/packages/auth/src/AuthContext.d.ts +1 -1
  6. package/dist/packages/auth/src/AuthContext.d.ts.map +1 -1
  7. package/dist/packages/auth/src/AuthProviderCommon.d.ts +2 -2
  8. package/dist/packages/auth/src/ConfigContext.d.ts.map +1 -1
  9. package/dist/packages/config/src/ThemeProvider.d.ts.map +1 -1
  10. package/dist/packages/escpos-encoder/__tests__/encoder.test.d.ts +2 -0
  11. package/dist/packages/escpos-encoder/__tests__/encoder.test.d.ts.map +1 -0
  12. package/dist/packages/escpos-encoder/src/const.d.ts +25 -0
  13. package/dist/packages/escpos-encoder/src/const.d.ts.map +1 -0
  14. package/dist/packages/escpos-encoder/src/index.d.ts +315 -0
  15. package/dist/packages/escpos-encoder/src/index.d.ts.map +1 -0
  16. package/dist/packages/escpos-encoder/vite.config.d.ts +3 -0
  17. package/dist/packages/escpos-encoder/vite.config.d.ts.map +1 -0
  18. package/dist/packages/menu/src/components/default/BottomNav.d.ts.map +1 -1
  19. package/dist/packages/menu/src/stories/Menu.stories.d.ts +1 -1
  20. package/dist/packages/menu/src/stories/Menu.stories.d.ts.map +1 -1
  21. package/dist/packages/menu/src/stories/MenuBK.stories.d.ts +1 -1
  22. package/dist/packages/menu/src/stories/MenuBK.stories.d.ts.map +1 -1
  23. package/dist/packages/menu/src/stories/MenuLumberjacks.stories.d.ts +1 -1
  24. package/dist/packages/menu/src/stories/MenuLumberjacks.stories.d.ts.map +1 -1
  25. package/dist/packages/menu/src/stories/MenuPasibus.stories.d.ts +1 -1
  26. package/dist/packages/menu/src/stories/MenuPasibus.stories.d.ts.map +1 -1
  27. package/dist/packages/menu/src/stories/MenuSamex.stories.d.ts +1 -1
  28. package/dist/packages/menu/src/stories/MenuSamex.stories.d.ts.map +1 -1
  29. package/dist/packages/menu/src/stories/ProductTile.stories.d.ts +1 -1
  30. package/dist/packages/menu/src/stories/ProductTile.stories.d.ts.map +1 -1
  31. package/dist/packages/menu/tailwind.config.d.ts +76 -1
  32. package/dist/packages/mparticle-plugin/src/index.d.ts.map +1 -1
  33. package/dist/packages/phone-input/src/stories/PhoneInput.stories.d.ts +1 -1
  34. package/dist/packages/phone-input/src/stories/PhoneInput.stories.d.ts.map +1 -1
  35. package/dist/types/__tests__/order.test.d.ts +2 -0
  36. package/dist/types/__tests__/order.test.d.ts.map +1 -0
  37. package/dist/types/useCms.d.ts +4 -4
  38. package/dist/types/useCms.d.ts.map +1 -1
  39. package/dist/types/useGroupOrderLines.d.ts +1 -1
  40. package/dist/types/useGroupOrderLines.d.ts.map +1 -1
  41. package/dist/types/useMediaUrl.d.ts.map +1 -1
  42. package/dist/types/utils/timeAvailabilityFilter.d.ts +1 -1
  43. package/dist/types/utils.d.ts +2 -1
  44. package/dist/types/utils.d.ts.map +1 -1
  45. package/package.json +3 -3
  46. package/dist/packages/auth/dist/deps/AuthProvider.cjs.d.ts +0 -73
  47. package/dist/packages/auth/dist/deps/AuthProvider.cjs.d.ts.map +0 -1
  48. package/dist/packages/auth/dist/deps/AuthProvider.es.d.ts +0 -71
  49. package/dist/packages/auth/dist/deps/AuthProvider.es.d.ts.map +0 -1
  50. package/dist/packages/auth/dist/deps/web.cjs.d.ts +0 -10
  51. package/dist/packages/auth/dist/deps/web.cjs.d.ts.map +0 -1
  52. package/dist/packages/auth/dist/deps/web.cjs2.d.ts +0 -16
  53. package/dist/packages/auth/dist/deps/web.cjs2.d.ts.map +0 -1
  54. package/dist/packages/auth/dist/deps/web.cjs3.d.ts +0 -40
  55. package/dist/packages/auth/dist/deps/web.cjs3.d.ts.map +0 -1
  56. package/dist/packages/auth/dist/deps/web.cjs4.d.ts +0 -27
  57. package/dist/packages/auth/dist/deps/web.cjs4.d.ts.map +0 -1
  58. package/dist/packages/auth/dist/deps/web.cjs5.d.ts +0 -35
  59. package/dist/packages/auth/dist/deps/web.cjs5.d.ts.map +0 -1
  60. package/dist/packages/auth/dist/deps/web.es.d.ts +0 -10
  61. package/dist/packages/auth/dist/deps/web.es.d.ts.map +0 -1
  62. package/dist/packages/auth/dist/deps/web.es2.d.ts +0 -16
  63. package/dist/packages/auth/dist/deps/web.es2.d.ts.map +0 -1
  64. package/dist/packages/auth/dist/deps/web.es3.d.ts +0 -40
  65. package/dist/packages/auth/dist/deps/web.es3.d.ts.map +0 -1
  66. package/dist/packages/auth/dist/deps/web.es4.d.ts +0 -27
  67. package/dist/packages/auth/dist/deps/web.es4.d.ts.map +0 -1
  68. package/dist/packages/auth/dist/deps/web.es5.d.ts +0 -35
  69. package/dist/packages/auth/dist/deps/web.es5.d.ts.map +0 -1
  70. package/dist/packages/auth/dist/legacy.cjs.d.ts +0 -7
  71. package/dist/packages/auth/dist/legacy.cjs.d.ts.map +0 -1
  72. package/dist/packages/auth/dist/legacy.es.d.ts +0 -8
  73. package/dist/packages/auth/dist/legacy.es.d.ts.map +0 -1
  74. package/dist/packages/auth/dist/v6.cjs.d.ts +0 -6
  75. package/dist/packages/auth/dist/v6.cjs.d.ts.map +0 -1
  76. package/dist/packages/auth/dist/v6.es.d.ts +0 -8
  77. package/dist/packages/auth/dist/v6.es.d.ts.map +0 -1
  78. package/dist/packages/hooks/dist/index.cjs.d.ts +0 -142
  79. package/dist/packages/hooks/dist/index.cjs.d.ts.map +0 -1
  80. package/dist/packages/hooks/dist/index.es.d.ts +0 -142
  81. package/dist/packages/hooks/dist/index.es.d.ts.map +0 -1
  82. package/dist/packages/mparticle-plugin/dist/index.cjs.d.ts +0 -14
  83. package/dist/packages/mparticle-plugin/dist/index.cjs.d.ts.map +0 -1
  84. package/dist/packages/mparticle-plugin/dist/index.es.d.ts +0 -14
  85. package/dist/packages/mparticle-plugin/dist/index.es.d.ts.map +0 -1
@@ -1,5 +1,5 @@
1
- import { IConfiguredAuthDataProvider, IEditableUserData } from '@orderingstack/ordering-core';
2
1
  import { Context } from 'react';
2
+ import { IConfiguredAuthDataProvider, IEditableUserData } from '@orderingstack/ordering-core';
3
3
 
4
4
  export interface IUserData {
5
5
  UUID: string;
@@ -1 +1 @@
1
- {"version":3,"file":"AuthContext.d.ts","sourceRoot":"","sources":["../../../../../auth/src/AuthContext.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,iBAAiB,EAClB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,OAAO,EAAiC,MAAM,OAAO,CAAC;AAE/D,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,GAAG,EAAE,CAAC;IACb,cAAc,EAAE,GAAG,EAAE,CAAC;IACtB,QAAQ,EAAE,GAAG,CAAC;IACd,UAAU,EAAE,GAAG,CAAC;CACjB;AAED,oBAAY,aAAa;IACvB,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,KAAK,YAAY;CAClB;AAED,MAAM,WAAW,KAAK;IACpB,QAAQ,EAAE,OAAO,CAAC;IAClB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,2BAA2B,CAAC;IAC3C,OAAO,CAAC,EAAE,CAAC,gBAAgB,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IAE/C,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE,iBAAiB,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IAC/D,UAA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AAK,OAAO,CAAC,OAAO,CAAC,CAAC;IAC/D,UAAU,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;IACnC,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,eAAO,MAAM,WAAW;;;;CAIvB,CAAC;AAEF,eAAO,MAAM,WAAW,gBAAoC,CAAC;AAC7D,eAAO,MAAM,cAAc,aAAgC,CAAC"}
@@ -1,6 +1,6 @@
1
- import { LoginProvider } from './AuthContext';
2
- import { AxiosResponse } from 'axios';
3
1
  import { default as React, Dispatch, SetStateAction } from 'react';
2
+ import { AxiosResponse } from 'axios';
3
+ import { LoginProvider } from './AuthContext';
4
4
 
5
5
  export declare enum ELoginStage {
6
6
  UNINITIALIZED = "uninitialized",
@@ -1 +1 @@
1
- {"version":3,"file":"ConfigContext.d.ts","sourceRoot":"","sources":["../../../../../auth/src/ConfigContext.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAc,MAAM,OAAO,CAAC;AAE5C,MAAM,WAAW,OAAO;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,gBAAgB,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,eAAe,CAAC,EAAE,KAAK,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;CACd;AAGD,eAAO,MAAM,aAAa,EAAwB,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC,CAAC;AAE1E,eAAO,MAAM,gBAAgB,sBAAkC,CAAC"}
1
+ {"version":3,"file":"ConfigContext.d.ts","sourceRoot":"","sources":["../../../../../auth/src/ConfigContext.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAc,MAAM,OAAO,CAAC;AAE5C,MAAM,WAAW,OAAO;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,gBAAgB,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,eAAe,CAAC,EAAE,KAAK,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;CACd;AAGD,eAAO,MAAM,aAAa,yBAA+C,CAAC;AAE1E,eAAO,MAAM,gBAAgB,sBAAkC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../../../../../config/src/ThemeProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAiB,MAAM,eAAe,CAAC;AAErD,UAAU,wBAAwB;IAChC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,KAAK,EAAE,KAAK,CAAC;CACd;AAED,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAGN,CAAC"}
1
+ {"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../../../../../config/src/ThemeProvider.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,EAAiB,MAAM,eAAe,CAAC;AAErD,UAAU,wBAAwB;IAChC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,KAAK,EAAE,KAAK,CAAC;CACd;AAED,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAGN,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=encoder.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"encoder.test.d.ts","sourceRoot":"","sources":["../../../../../escpos-encoder/__tests__/encoder.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,25 @@
1
+ declare const CODEPAGE_TYPES: readonly ["cp1098", "cp1118", "cp1119", "cp1125", "cp1251", "cp1252", "cp2001", "cp3001", "cp3002", "cp3011", "cp3012", "cp3021", "cp3041", "cp3840", "cp3843", "cp3844", "cp3845", "cp3846", "cp3847", "cp3848", "cp437", "cp720", "cp737", "cp775", "cp850", "cp851", "cp852", "cp853", "cp855", "cp857", "cp858", "cp860", "cp861", "cp862", "cp863", "cp864", "cp865", "cp866", "cp869", "cp874", "cp928", "cp936", "cp949", "cp950", "iso885915", "iso88592", "iso88596", "iso88597", "rk1048", "shiftjis", "windows1250", "windows1251", "windows1252", "windows1253", "windows1254", "windows1255", "windows1256", "windows1257", "windows1258", "windows775", "windows874"];
2
+ export type CodepageType = (typeof CODEPAGE_TYPES)[number];
3
+ declare const CODEPAGE_MAPPINGS: readonly ["epson", "zjiang", "bixolon", "star", "citizen", "sunmi", "zebra", "legacy"];
4
+ export type CodepageMapping = (typeof CODEPAGE_MAPPINGS)[number];
5
+ export declare const CODEPAGE_MAP: Record<CodepageMapping, Partial<Record<CodepageType, number>>>;
6
+ export declare const QR_CODE_SYMBOLOGIES: {
7
+ readonly upca: 0;
8
+ readonly upce: 1;
9
+ readonly ean13: 2;
10
+ readonly ean8: 3;
11
+ readonly code39: 4;
12
+ readonly coda39: 4;
13
+ readonly itf: 5;
14
+ readonly codabar: 6;
15
+ readonly code93: 72;
16
+ readonly code128: 73;
17
+ readonly 'gs1-128': 80;
18
+ readonly 'gs1-databar-omni': 81;
19
+ readonly 'gs1-databar-truncated': 82;
20
+ readonly 'gs1-databar-limited': 83;
21
+ readonly 'gs1-databar-expanded': 84;
22
+ readonly 'code128-auto': 85;
23
+ };
24
+ export {};
25
+ //# sourceMappingURL=const.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"const.d.ts","sourceRoot":"","sources":["../../../../../escpos-encoder/src/const.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,cAAc,qpBA8DV,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AAE3D,QAAA,MAAM,iBAAiB,wFASb,CAAC;AACX,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEjE,eAAO,MAAM,YAAY,EAAE,MAAM,CAC/B,eAAe,EACf,OAAO,CAAC,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC,CAuL7B,CAAC;AAEX,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;CAiBtB,CAAC"}
@@ -0,0 +1,315 @@
1
+ import { CodepageMapping, CodepageType, QR_CODE_SYMBOLOGIES } from './const';
2
+ export * from './const';
3
+ interface Options {
4
+ width: number;
5
+ embedded: boolean;
6
+ wordWrap: boolean;
7
+ autoWrap: boolean;
8
+ codepageMapping: CodepageMapping | Record<string, number>;
9
+ imageMode: string;
10
+ codepage: CodepageType | 'auto';
11
+ codepageCandidates: string[];
12
+ }
13
+ interface BoxOptions {
14
+ align: AlignType;
15
+ style: 'single' | 'double';
16
+ width: number;
17
+ marginLeft: number;
18
+ marginRight: number;
19
+ paddingLeft: number;
20
+ paddingRight: number;
21
+ }
22
+ type AlignType = 'left' | 'center' | 'right';
23
+ type SizeType = 'small' | 'normal';
24
+ type SymbologyType = keyof typeof QR_CODE_SYMBOLOGIES;
25
+ export type Size = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
26
+ export type QrErrorLevelType = 'l' | 'm' | 'q' | 'h';
27
+ type CutType = 'full' | 'partial';
28
+ type StyleType = 'single' | 'double';
29
+ /**
30
+ * Create a byte stream based on commands for ESC/POS printers
31
+ */
32
+ export declare class EscPosEncoder {
33
+ private _options;
34
+ private _embedded;
35
+ private _buffer;
36
+ private _queued;
37
+ private _cursor;
38
+ private _codepage;
39
+ private _state;
40
+ /**
41
+ * Create a new object
42
+ *
43
+ * @param {object} options Object containing configuration options
44
+ */
45
+ constructor(options: Partial<Options>);
46
+ /**
47
+ * Reset the state of the object
48
+ *
49
+ * @param {Options} options Object containing configuration options
50
+ */
51
+ private _reset;
52
+ /**
53
+ * Encode a string with the current code page
54
+ *
55
+ * @param {string} value String to encode
56
+ * @return {object} Encoded string as a ArrayBuffer
57
+ *
58
+ */
59
+ private _encode;
60
+ /**
61
+ * Add commands to the queue
62
+ *
63
+ * @param {array} value Add array of numbers, arrays, buffers or Uint8Arrays to add to the buffer
64
+ *
65
+ */
66
+ private _queue;
67
+ /**
68
+ * Flush current queue to the buffer
69
+ *
70
+ */
71
+ private _flush;
72
+ /**
73
+ * Wrap the text while respecting the position of the cursor
74
+ *
75
+ * @param {string} value String to wrap after the width of the paper has been reached
76
+ * @param {number} position Position on which to force a wrap
77
+ * @return {array} Array with each line
78
+ */
79
+ private _wrap;
80
+ /**
81
+ * Restore styles and codepages after drawing boxes or lines
82
+ */
83
+ private _restoreState;
84
+ /**
85
+ * Get code page identifier for the specified code page and mapping
86
+ *
87
+ * @param {string} codepage Required code page
88
+ * @return {number} Identifier for the current printer according to the specified mapping
89
+ */
90
+ private _getCodepageIdentifier;
91
+ /**
92
+ * Initialize the printer
93
+ *
94
+ * @return {EscPosEncoder} Return the object, for easy chaining commands
95
+ *
96
+ */
97
+ initialize(): EscPosEncoder;
98
+ /**
99
+ * Change the code page
100
+ *
101
+ * @param {CodepageType | 'auto'} codepage The codepage that we set the printer to
102
+ * @return {EscPosEncoder} Return the object, for easy chaining commands
103
+ *
104
+ */
105
+ codepage(codepage: CodepageType | 'auto'): EscPosEncoder;
106
+ /**
107
+ * Print text
108
+ *
109
+ * @param {string} value Text that needs to be printed
110
+ * @param {number} wrap Wrap text after this many positions
111
+ * @return {EscPosEncoder} Return the object, for easy chaining commands
112
+ *
113
+ */
114
+ text(value: string, wrap?: number): EscPosEncoder;
115
+ /**
116
+ * Print a newline
117
+ * @param count {int} - number of newlines to print, defaults to 1
118
+ * @return {EscPosEncoder} Return the object, for easy chaining commands
119
+ *
120
+ */
121
+ newline(count?: number): EscPosEncoder;
122
+ /**
123
+ * Print text, followed by a newline
124
+ *
125
+ * @param {string} value Text that needs to be printed
126
+ * @param {number} wrap Wrap text after this many positions
127
+ * @return {EscPosEncoder} Return the object, for easy chaining commands
128
+ *
129
+ */
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;
141
+ /**
142
+ * Encodes text line with special formatting characters (&c, &b)
143
+ * @param line
144
+ * @param wrap
145
+ * @returns {EscPosEncoder}
146
+ */
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;
154
+ /**
155
+ * Underline text
156
+ *
157
+ * @param {boolean|number} value true to turn on underline, false to turn off, or 2 for double underline
158
+ * @return {EscPosEncoder} Return the object, for easy chaining commands
159
+ *
160
+ */
161
+ underline(value: boolean | 2): EscPosEncoder;
162
+ /**
163
+ * Italic text
164
+ *
165
+ * @param {boolean} value true to turn on italic, false to turn off, undefined to toggle
166
+ * @return {EscPosEncoder} Return the object, for easy chaining commands
167
+ *
168
+ */
169
+ italic(value?: boolean): EscPosEncoder;
170
+ /**
171
+ * Bold text
172
+ *
173
+ * @param {boolean} value true to turn on bold, false to turn off, undefined to toggle
174
+ * @return {EscPosEncoder} Return the object, for easy chaining commands
175
+ *
176
+ */
177
+ bold(value?: boolean): EscPosEncoder;
178
+ /**
179
+ * Change width of text
180
+ *
181
+ * @param {Size} width The width of the text, 1 - 8
182
+ * @return {EscPosEncoder} Return the object, for easy chaining commands
183
+ *
184
+ */
185
+ width(width: Size): EscPosEncoder;
186
+ /**
187
+ * Change height of text
188
+ *
189
+ * @param {Size} height The height of the text, 1 - 8
190
+ * @return {EscPosEncoder} Return the object, for easy chaining commands
191
+ *
192
+ */
193
+ height(height: Size): EscPosEncoder;
194
+ /**
195
+ * Invert text
196
+ *
197
+ * @param {boolean} value true to turn on white text on black, false to turn off, undefined to toggle
198
+ * @return {EscPosEncoder} Return the object, for easy chaining commands
199
+ *
200
+ */
201
+ invert(value?: boolean): EscPosEncoder;
202
+ /**
203
+ * Change text size
204
+ *
205
+ * @param {string} value small or normal
206
+ * @return {EscPosEncoder} Return the object, for easy chaining commands
207
+ *
208
+ */
209
+ size(value: SizeType): EscPosEncoder;
210
+ /**
211
+ * Change text alignment
212
+ *
213
+ * @param {AlignType} value left, center or right
214
+ * @return {EscPosEncoder} Return the object, for easy chaining commands
215
+ *
216
+ */
217
+ align(value: AlignType): EscPosEncoder;
218
+ /**
219
+ * Insert a table
220
+ *
221
+ * @param {array} columns The column definitions
222
+ * @param {array} data Array containing rows. Each row is an array containing cells.
223
+ * Each cell can be a string value, or a callback function.
224
+ * The first parameter of the callback is the encoder object on
225
+ * which the function can call its methods.
226
+ * @return {EscPosEncoder} Return the object, for easy chaining commands
227
+ *
228
+ */
229
+ table(columns: Array<any>, data: Array<any>): EscPosEncoder;
230
+ /**
231
+ * Insert a horizontal rule
232
+ *
233
+ * @param {object} options And object with the following properties:
234
+ * - style: The style of the line, either single or double
235
+ * - width: The width of the line, by default the width of the paper
236
+ * @return {EscPosEncoder} Return the object, for easy chaining commands
237
+ *
238
+ */
239
+ rule(options: {
240
+ style: StyleType;
241
+ width?: number;
242
+ }): EscPosEncoder;
243
+ /**
244
+ * Insert a box
245
+ *
246
+ * @param {object} opts And object with the following properties:
247
+ * - style: The style of the border, either single or double
248
+ * - width: The width of the box, by default the width of the paper
249
+ * - marginLeft: Space between the left border and the left edge
250
+ * - marginRight: Space between the right border and the right edge
251
+ * - paddingLeft: Space between the contents and the left border of the box
252
+ * - paddingRight: Space between the contents and the right border of the box
253
+ * @param {string|function} contents A string value, or a callback function.
254
+ * The first parameter of the callback is the encoder object on
255
+ * which the function can call its methods.
256
+ * @return {EscPosEncoder} Return the object, for easy chaining commands
257
+ *
258
+ */
259
+ box(opts: Partial<BoxOptions>, contents: string | ((enc: EscPosEncoder) => void)): EscPosEncoder;
260
+ /**
261
+ * Barcode
262
+ *
263
+ * @param {string} value the value of the barcode
264
+ * @param {string} symbology the type of the barcode
265
+ * @param {number} height height of the barcode
266
+ * @return {EscPosEncoder} Return the object, for easy chaining commands
267
+ *
268
+ */
269
+ barcode(value: string, symbology: SymbologyType, height: number): EscPosEncoder;
270
+ /**
271
+ * QR code
272
+ *
273
+ * @param {string} value the value of the qr code
274
+ * @param {number} model model of the qrcode, either 1 or 2
275
+ * @param {Size} size size of the qrcode, a value between 1 and 8
276
+ * @param {QrErrorLevelType} errorlevel the amount of error correction used, either 'l', 'm', 'q', 'h'
277
+ * @return {EscPosEncoder} Return the object, for easy chaining commands
278
+ *
279
+ */
280
+ qrcode(value: string, model: 1 | 2, size: Size, errorlevel: QrErrorLevelType): EscPosEncoder;
281
+ /**
282
+ * Cut paper
283
+ *
284
+ * @param {string} value full or partial. When not specified a full cut will be assumed
285
+ * @return {EscPosEncoder} Return the object, for easy chaining commands
286
+ *
287
+ */
288
+ cut(value?: CutType): EscPosEncoder;
289
+ /**
290
+ * Pulse
291
+ *
292
+ * @param {number} device 0 or 1 for on which pin the device is connected, default of 0
293
+ * @param {number} on Time the pulse is on in milliseconds, default of 100
294
+ * @param {number} off Time the pulse is off in milliseconds, default of 500
295
+ * @return {EscPosEncoder} Return the object, for easy chaining commands
296
+ *
297
+ */
298
+ pulse(device?: 0 | 1, on?: number, off?: number): EscPosEncoder;
299
+ /**
300
+ * Add raw printer commands
301
+ *
302
+ * @param {array} data raw bytes to be included
303
+ * @return {EscPosEncoder} Return the object, for easy chaining commands
304
+ *
305
+ */
306
+ raw(data: number[]): EscPosEncoder;
307
+ /**
308
+ * Encode all previous commands
309
+ *
310
+ * @return {Uint8Array} Return the encoded bytes
311
+ *
312
+ */
313
+ encode(): Uint8Array;
314
+ }
315
+ //# sourceMappingURL=index.d.ts.map
@@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G,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"}
@@ -0,0 +1,3 @@
1
+ declare const _default: import('vite').UserConfig;
2
+ export default _default;
3
+ //# sourceMappingURL=vite.config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vite.config.d.ts","sourceRoot":"","sources":["../../../../escpos-encoder/vite.config.ts"],"names":[],"mappings":";AAOA,wBAgBG"}
@@ -1 +1 @@
1
- {"version":3,"file":"BottomNav.d.ts","sourceRoot":"","sources":["../../../../../../../menu/src/components/default/BottomNav.tsx"],"names":[],"mappings":"AAEA,OAAO,EAIL,mBAAmB,EAEpB,MAAM,+BAA+B,CAAC;AA6BvC,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,EAChC,YAAY,EACZ,KAAK,EACL,QAAQ,EACR,WAAW,EACX,cAAc,GACf,EAAE,mBAAmB,eA2HrB"}
1
+ {"version":3,"file":"BottomNav.d.ts","sourceRoot":"","sources":["../../../../../../../menu/src/components/default/BottomNav.tsx"],"names":[],"mappings":";AAEA,OAAO,EAIL,mBAAmB,EAEpB,MAAM,+BAA+B,CAAC;AA6BvC,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,EAChC,YAAY,EACZ,KAAK,EACL,QAAQ,EACR,WAAW,EACX,cAAc,GACf,EAAE,mBAAmB,eA2HrB"}
@@ -1,5 +1,5 @@
1
- import { ComponentStory, ComponentMeta } from '@storybook/react';
2
1
  import { Menu } from '../Menu';
2
+ import { ComponentStory, ComponentMeta } from '@storybook/react';
3
3
 
4
4
  declare const _default: ComponentMeta<typeof Menu>;
5
5
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"Menu.stories.d.ts","sourceRoot":"","sources":["../../../../../../menu/src/stories/Menu.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,gBAAgB,CAAC;AACxB,OAAO,sBAAsB,CAAC;wBAgBzB,aAAa,CAAC,OAAO,IAAI,CAAC;AAd/B,wBAcgC;AAIhC,eAAO,MAAM,OAAO,6BAAoB,CAAC"}
1
+ {"version":3,"file":"Menu.stories.d.ts","sourceRoot":"","sources":["../../../../../../menu/src/stories/Menu.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,gBAAgB,CAAC;AACxB,OAAO,sBAAsB,CAAC;;AAE9B,wBAcgC;AAIhC,eAAO,MAAM,OAAO,6BAAoB,CAAC"}
@@ -1,5 +1,5 @@
1
- import { ComponentStory, ComponentMeta } from '@storybook/react';
2
1
  import { Menu } from '../Menu';
2
+ import { ComponentStory, ComponentMeta } from '@storybook/react';
3
3
 
4
4
  declare const _default: ComponentMeta<typeof Menu>;
5
5
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"MenuBK.stories.d.ts","sourceRoot":"","sources":["../../../../../../menu/src/stories/MenuBK.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;wBA8B1B,aAAa,CAAC,OAAO,IAAI,CAAC;AAd/B,wBAcgC;AAIhC,eAAO,MAAM,UAAU,6BAAoB,CAAC"}
1
+ {"version":3,"file":"MenuBK.stories.d.ts","sourceRoot":"","sources":["../../../../../../menu/src/stories/MenuBK.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;;AAgB/B,wBAcgC;AAIhC,eAAO,MAAM,UAAU,6BAAoB,CAAC"}
@@ -1,5 +1,5 @@
1
- import { ComponentStory, ComponentMeta } from '@storybook/react';
2
1
  import { Menu } from '../Menu';
2
+ import { ComponentStory, ComponentMeta } from '@storybook/react';
3
3
 
4
4
  declare const _default: ComponentMeta<typeof Menu>;
5
5
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"MenuLumberjacks.stories.d.ts","sourceRoot":"","sources":["../../../../../../menu/src/stories/MenuLumberjacks.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAG/B,OAAO,0BAA0B,CAAC;wBAkB7B,aAAa,CAAC,OAAO,IAAI,CAAC;AAd/B,wBAcgC;AAIhC,eAAO,MAAM,WAAW,6BAAoB,CAAC"}
1
+ {"version":3,"file":"MenuLumberjacks.stories.d.ts","sourceRoot":"","sources":["../../../../../../menu/src/stories/MenuLumberjacks.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAG/B,OAAO,0BAA0B,CAAC;;AAIlC,wBAcgC;AAIhC,eAAO,MAAM,WAAW,6BAAoB,CAAC"}
@@ -1,5 +1,5 @@
1
- import { ComponentStory, ComponentMeta } from '@storybook/react';
2
1
  import { Menu } from '../Menu';
2
+ import { ComponentStory, ComponentMeta } from '@storybook/react';
3
3
 
4
4
  declare const _default: ComponentMeta<typeof Menu>;
5
5
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"MenuPasibus.stories.d.ts","sourceRoot":"","sources":["../../../../../../menu/src/stories/MenuPasibus.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;wBAoB1B,aAAa,CAAC,OAAO,IAAI,CAAC;AAd/B,wBAcgC;AAIhC,eAAO,MAAM,OAAO,6BAAoB,CAAC"}
1
+ {"version":3,"file":"MenuPasibus.stories.d.ts","sourceRoot":"","sources":["../../../../../../menu/src/stories/MenuPasibus.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;;AAM/B,wBAcgC;AAIhC,eAAO,MAAM,OAAO,6BAAoB,CAAC"}
@@ -1,5 +1,5 @@
1
- import { ComponentStory, ComponentMeta } from '@storybook/react';
2
1
  import { Menu } from '../Menu';
2
+ import { ComponentStory, ComponentMeta } from '@storybook/react';
3
3
 
4
4
  declare const _default: ComponentMeta<typeof Menu>;
5
5
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"MenuSamex.stories.d.ts","sourceRoot":"","sources":["../../../../../../menu/src/stories/MenuSamex.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAG/B,OAAO,0BAA0B,CAAC;wBAkB7B,aAAa,CAAC,OAAO,IAAI,CAAC;AAd/B,wBAcgC;AAIhC,eAAO,MAAM,KAAK,6BAAoB,CAAC"}
1
+ {"version":3,"file":"MenuSamex.stories.d.ts","sourceRoot":"","sources":["../../../../../../menu/src/stories/MenuSamex.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAG/B,OAAO,0BAA0B,CAAC;;AAIlC,wBAcgC;AAIhC,eAAO,MAAM,KAAK,6BAAoB,CAAC"}
@@ -1,5 +1,5 @@
1
- import { ComponentStory, ComponentMeta } from '@storybook/react';
2
1
  import { ProductTile } from '../components/default/ProductTile';
2
+ import { ComponentStory, ComponentMeta } from '@storybook/react';
3
3
 
4
4
  declare const _default: ComponentMeta<typeof ProductTile>;
5
5
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"ProductTile.stories.d.ts","sourceRoot":"","sources":["../../../../../../menu/src/stories/ProductTile.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;wBAgB3D,aAAa,CAAC,OAAO,WAAW,CAAC;AAVtC,wBAUuC;AAMvC,eAAO,MAAM,OAAO,oCAAoB,CAAC"}
1
+ {"version":3,"file":"ProductTile.stories.d.ts","sourceRoot":"","sources":["../../../../../../menu/src/stories/ProductTile.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;;AAMhE,wBAUuC;AAMvC,eAAO,MAAM,OAAO,oCAAoB,CAAC"}
@@ -1,3 +1,78 @@
1
- declare const _exports: any;
1
+ declare const _exports: {
2
+ theme: {
3
+ extend: {
4
+ fontFamily: {
5
+ sans: string[];
6
+ upper: string[];
7
+ price: string[];
8
+ cartProductItems: string[];
9
+ };
10
+ fontSize: {
11
+ menuProductName: (string | {
12
+ lineHeight: string;
13
+ fontWeight: string;
14
+ })[];
15
+ menuBottomCartProductName: (string | {
16
+ lineHeight: string;
17
+ fontWeight: string;
18
+ })[];
19
+ menuCategory: (string | {
20
+ lineHeight: string;
21
+ fontWeight: string;
22
+ })[];
23
+ };
24
+ colors: {
25
+ primary: {
26
+ light: string;
27
+ DEFAULT: string;
28
+ dark: string;
29
+ };
30
+ secondary: {
31
+ DEFAULT: string;
32
+ };
33
+ fontColor: {
34
+ DEFAULT: string;
35
+ btnPrimary: string;
36
+ btnSecondary: string;
37
+ btnDisabled: string;
38
+ bgPrimary: string;
39
+ btnTrash: string;
40
+ cartProductItems: string;
41
+ };
42
+ bgColor: {
43
+ DEFAULT: string;
44
+ btnPrimary: string;
45
+ btnSecondary: string;
46
+ btnDisabled: string;
47
+ btnTrash: string;
48
+ };
49
+ borderColor: {
50
+ DEFAULT: string;
51
+ };
52
+ facebook: {
53
+ light: string;
54
+ DEFAULT: string;
55
+ dark: string;
56
+ };
57
+ red: {
58
+ light: string;
59
+ DEFAULT: string;
60
+ };
61
+ black: string;
62
+ greys: {
63
+ light: string;
64
+ DEFAULT: string;
65
+ };
66
+ };
67
+ backgroundImage: {
68
+ 'tenant-pattern': string;
69
+ };
70
+ };
71
+ };
72
+ content: string[];
73
+ safelist: string[];
74
+ mode: string;
75
+ plugins: any[];
76
+ };
2
77
  export = _exports;
3
78
  //# sourceMappingURL=tailwind.config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../mparticle-plugin/src/index.ts"],"names":[],"mappings":"AAEA,UAAU,4BAA4B;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,iBAAiB,EAAE,OAAO,CAAC;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,iBAAS,4BAA4B,CACnC,YAAY,EAAE,4BAA4B;;;wBAwBpB;QAAE,OAAO,EAAE,GAAG,CAAA;KAAE;yBAOf;QAAE,OAAO,EAAE,GAAG,CAAA;KAAE;;;EA4IxC;AAoED,eAAe,4BAA4B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../mparticle-plugin/src/index.ts"],"names":[],"mappings":"AAEA,UAAU,4BAA4B;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,iBAAiB,EAAE,OAAO,CAAC;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,iBAAS,4BAA4B,CACnC,YAAY,EAAE,4BAA4B;;;wBAwBpB;QAAE,OAAO,EAAE,GAAG,CAAA;KAAE;yBAOf;QAAE,OAAO,EAAE,GAAG,CAAA;KAAE;;;EAuJxC;AAoED,eAAe,4BAA4B,CAAC"}
@@ -1,5 +1,5 @@
1
- import { ComponentStory, ComponentMeta } from '@storybook/react';
2
1
  import { PhoneInput as Comp } from '../index';
2
+ import { ComponentStory, ComponentMeta } from '@storybook/react';
3
3
 
4
4
  declare const _default: ComponentMeta<typeof Comp>;
5
5
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"PhoneInput.stories.d.ts","sourceRoot":"","sources":["../../../../../../phone-input/src/stories/PhoneInput.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAE,UAAU,IAAI,IAAI,EAAE,MAAM,UAAU,CAAC;AAI9C,OAAO,0BAA0B,CAAC;AAClC,OAAO,4BAA4B,CAAC;wBAuB/B,aAAa,CAAC,OAAO,IAAI,CAAC;AArB/B,wBAqBgC;AAIhC,eAAO,MAAM,KAAK,6BAAoB,CAAC;AAWvC,eAAO,MAAM,YAAY,6BAAoB,CAAC;AAW9C,eAAO,MAAM,iBAAiB,6BAAoB,CAAC"}
1
+ {"version":3,"file":"PhoneInput.stories.d.ts","sourceRoot":"","sources":["../../../../../../phone-input/src/stories/PhoneInput.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAE,UAAU,IAAI,IAAI,EAAE,MAAM,UAAU,CAAC;AAI9C,OAAO,0BAA0B,CAAC;AAClC,OAAO,4BAA4B,CAAC;;AAEpC,wBAqBgC;AAIhC,eAAO,MAAM,KAAK,6BAAoB,CAAC;AAWvC,eAAO,MAAM,YAAY,6BAAoB,CAAC;AAW9C,eAAO,MAAM,iBAAiB,6BAAoB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=order.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"order.test.d.ts","sourceRoot":"","sources":["../../../../../src/__tests__/order.test.ts"],"names":[],"mappings":""}
@@ -30,12 +30,12 @@ export declare function useCmsInConfigContext<T>({ id, intervalSeconds, withLoca
30
30
  value: T | null;
31
31
  isError: boolean;
32
32
  isLoading: boolean;
33
- refresh: (abortSignal?: AbortSignal) => Promise<boolean | undefined>;
33
+ refresh: (abortSignal?: AbortSignal | undefined) => Promise<boolean | undefined>;
34
34
  };
35
35
  export declare function useVenueCms<T extends IVenueId>(id: string, intervalSeconds?: number, withLocalStorage?: boolean, baseUrl?: string, tenant?: string, venue?: string): {
36
36
  value: T | null;
37
37
  isError: boolean;
38
- refresh: (abortSignal?: AbortSignal) => Promise<boolean | undefined>;
38
+ refresh: (abortSignal?: AbortSignal | undefined) => Promise<boolean | undefined>;
39
39
  };
40
40
  export declare function useLocalizedVenueMedia(id: string, venue: string, locale: string, intervalSeconds?: number, withLocalStorage?: boolean): {
41
41
  isError?: boolean;
@@ -74,7 +74,7 @@ export declare function useKioskMediaCms({ kioskMediaId, kioskMediaType, interva
74
74
  isError: boolean;
75
75
  isLoading: boolean;
76
76
  imageDisplayTime: number | undefined;
77
- refresh: (abortSignal?: AbortSignal) => Promise<boolean | undefined>;
77
+ refresh: (abortSignal?: AbortSignal | undefined) => Promise<boolean | undefined>;
78
78
  };
79
79
  export declare function useKioskMediaCmsWithContext({ kioskMediaId, kioskMediaType, venue, language, intervalSeconds, withLocalStorage, }: {
80
80
  kioskMediaId: string;
@@ -90,7 +90,7 @@ export declare function useKioskMediaCmsWithContext({ kioskMediaId, kioskMediaTy
90
90
  isError: boolean;
91
91
  isLoading: boolean;
92
92
  imageDisplayTime: number | undefined;
93
- refresh: (abortSignal?: AbortSignal) => Promise<boolean | undefined>;
93
+ refresh: (abortSignal?: AbortSignal | undefined) => Promise<boolean | undefined>;
94
94
  };
95
95
  export {};
96
96
  //# sourceMappingURL=useCms.d.ts.map