@orderingstack/front-hooks 3.5.0 → 3.6.2
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.
|
@@ -5,6 +5,7 @@ import { IProduct } from '@orderingstack/ordering-types';
|
|
|
5
5
|
* @param markOnly - boolean to only mark products with "outsideAvailabilitySlot" flag, if false removes products
|
|
6
6
|
* @param timeZone - venue timezone
|
|
7
7
|
* @param interval - availability checking interval [seconds]
|
|
8
|
+
* @param prefetchImageSizes - images sizes to be pre-fetched from OST media storage on menu loaded
|
|
8
9
|
*/
|
|
9
10
|
export declare function useAvailability(originalMenu?: IProduct[], markOnly?: boolean, timeZone?: string | undefined, interval?: number): IProduct[] | undefined;
|
|
10
11
|
//# sourceMappingURL=useAvailability.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAvailability.d.ts","sourceRoot":"","sources":["useAvailability.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAMzD
|
|
1
|
+
{"version":3,"file":"useAvailability.d.ts","sourceRoot":"","sources":["useAvailability.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAMzD;;;;;;;GAOG;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,CAiCxB"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
declare type TMediaSize = typeof sizes[number];
|
|
1
|
+
import { TMediaSize } from '@orderingstack/ordering-types';
|
|
3
2
|
/**
|
|
4
3
|
* @function getMediaUrl
|
|
5
4
|
* Checks if given url is a supported image format from orderingstackmedia azure blob and returns resized image url OR original url. Defaults to 500px.
|
|
@@ -10,5 +9,4 @@ export declare function getMediaUrl(url: string, size?: TMediaSize): string;
|
|
|
10
9
|
* Checks if given url is a supported image format from orderingstackmedia azure blob and returns resized image url OR original url. Defaults to 500px.
|
|
11
10
|
*/
|
|
12
11
|
export declare function useMediaUrl(url: string, size?: TMediaSize): string;
|
|
13
|
-
export {};
|
|
14
12
|
//# sourceMappingURL=useMediaUrl.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMediaUrl.d.ts","sourceRoot":"","sources":["useMediaUrl.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useMediaUrl.d.ts","sourceRoot":"","sources":["useMediaUrl.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAI3D;;;GAGG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,GAAE,UAAgB,GAAG,MAAM,CA8BvE;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,GAAE,UAAgB,GAAG,MAAM,CAEvE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orderingstack/front-hooks",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.6.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.es.js",
|
|
@@ -11,11 +11,12 @@
|
|
|
11
11
|
"scripts": {
|
|
12
12
|
"dev": "vite",
|
|
13
13
|
"build": "vite build",
|
|
14
|
-
"test": "jest"
|
|
14
|
+
"test": "jest",
|
|
15
|
+
"prepublishOnly": "npm run build"
|
|
15
16
|
},
|
|
16
17
|
"dependencies": {
|
|
17
18
|
"@orderingstack/ordering-core": "^0.3.0",
|
|
18
|
-
"@orderingstack/ordering-types": "^1.0.
|
|
19
|
+
"@orderingstack/ordering-types": "^1.0.15",
|
|
19
20
|
"dayjs": "^1.11.3",
|
|
20
21
|
"lodash": "^4.17.21",
|
|
21
22
|
"query-string": "7.1.3"
|