@orderingstack/front-hooks 6.1.0-beta.4 → 6.1.0-beta.5
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 +591 -591
- package/dist/index.es.js.map +1 -1
- package/dist/types/useAvailability.d.ts +1 -1
- package/dist/types/useAvailability.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -8,7 +8,7 @@ import { IProduct } from '@orderingstack/ordering-types';
|
|
|
8
8
|
* @param interval - availability checking interval [seconds]
|
|
9
9
|
*/
|
|
10
10
|
export declare function useAvailability(originalMenu?: IProduct[], markOnly?: boolean, timeZone?: string | undefined, interval?: number): IProduct[] | undefined;
|
|
11
|
-
export declare function availabilityCustomizer(value: IProduct[] | IProduct, otherValue: IProduct[] | IProduct): boolean | undefined;
|
|
11
|
+
export declare function availabilityCustomizer(value: IProduct[] | IProduct, otherValue: IProduct[] | IProduct | undefined): boolean | undefined;
|
|
12
12
|
export declare function markHiddenByEnableKey(product?: IProduct | IProduct[], enableKeys?: string[]): void;
|
|
13
13
|
export declare function useMenu({ originalMenu, markOnly, timeZone, interval, enableKeys, }: {
|
|
14
14
|
originalMenu?: IProduct[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAvailability.d.ts","sourceRoot":"","sources":["../../../../src/useAvailability.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAQzD;;;;;;GAMG;AACH,wBAAgB,eAAe,CAC7B,YAAY,CAAC,EAAE,QAAQ,EAAE,EACzB,QAAQ,UAAQ,EAChB,QAAQ,GAAE,MAAM,GAAG,SAAqB,EACxC,QAAQ,SAAK,GACZ,QAAQ,EAAE,GAAG,SAAS,
|
|
1
|
+
{"version":3,"file":"useAvailability.d.ts","sourceRoot":"","sources":["../../../../src/useAvailability.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAQzD;;;;;;GAMG;AACH,wBAAgB,eAAe,CAC7B,YAAY,CAAC,EAAE,QAAQ,EAAE,EACzB,QAAQ,UAAQ,EAChB,QAAQ,GAAE,MAAM,GAAG,SAAqB,EACxC,QAAQ,SAAK,GACZ,QAAQ,EAAE,GAAG,SAAS,CA8BxB;AAED,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,QAAQ,EAAE,GAAG,QAAQ,EAC5B,UAAU,EAAE,QAAQ,EAAE,GAAG,QAAQ,GAAG,SAAS,GAC5C,OAAO,GAAG,SAAS,CAmBrB;AAED,wBAAgB,qBAAqB,CACnC,OAAO,CAAC,EAAE,QAAQ,GAAG,QAAQ,EAAE,EAC/B,UAAU,CAAC,EAAE,MAAM,EAAE,GACpB,IAAI,CAkBN;AAED,wBAAgB,OAAO,CAAC,EACtB,YAAY,EACZ,QAAgB,EAChB,QAAQ,EACR,QAAa,EACb,UAAe,GAChB,EAAE;IACD,YAAY,CAAC,EAAE,QAAQ,EAAE,CAAC;IAC1B,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;CACvB,0BAIA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orderingstack/front-hooks",
|
|
3
|
-
"version": "6.1.0-beta.
|
|
3
|
+
"version": "6.1.0-beta.5",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"packageManager": "pnpm@8.15.6",
|
|
6
6
|
"main": "dist/index.cjs.js",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"scripts": {
|
|
13
13
|
"dev": "vite",
|
|
14
14
|
"build": "vite build",
|
|
15
|
-
"test": "
|
|
15
|
+
"test": "vitest"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@orderingstack/ordering-core": "^1.0.1",
|