@orderingstack/front-hooks 3.6.0 → 3.7.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.
@@ -1,4 +1,4 @@
1
- import { IProduct, TMediaSize } from '@orderingstack/ordering-types';
1
+ import { IProduct } from '@orderingstack/ordering-types';
2
2
  /**
3
3
  *
4
4
  * @param originalMenu
@@ -7,5 +7,5 @@ import { IProduct, TMediaSize } from '@orderingstack/ordering-types';
7
7
  * @param interval - availability checking interval [seconds]
8
8
  * @param prefetchImageSizes - images sizes to be pre-fetched from OST media storage on menu loaded
9
9
  */
10
- export declare function useAvailability(originalMenu?: IProduct[], markOnly?: boolean, timeZone?: string | undefined, interval?: number, prefetchImageSizes?: TMediaSize[] | undefined): IProduct[] | undefined;
10
+ export declare function useAvailability(originalMenu?: IProduct[], markOnly?: boolean, timeZone?: string | undefined, interval?: number): IProduct[] | undefined;
11
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,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAQrE;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAC7B,YAAY,CAAC,EAAE,QAAQ,EAAE,EACzB,QAAQ,UAAQ,EAChB,QAAQ,GAAE,MAAM,GAAG,SAAqB,EACxC,QAAQ,SAAK,EACb,kBAAkB,GAAE,UAAU,EAAE,GAAG,SAAqB,GACvD,QAAQ,EAAE,GAAG,SAAS,CAkDxB"}
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,4 +1,5 @@
1
1
  import { IOrderLine, IDiscount } from '@orderingstack/ordering-types';
2
2
  export declare function addDiscounts(discounts: IDiscount[] | undefined): number;
3
3
  export declare function summarizeLineDiscounts(line: IOrderLine): number;
4
+ export declare function formatPrice(value: string | number, currency?: string | null, separator?: string, decimals?: number): string;
4
5
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAEtE,wBAAgB,YAAY,CAAC,SAAS,EAAE,SAAS,EAAE,GAAG,SAAS,GAAG,MAAM,CAIvE;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,CAE/D"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAEtE,wBAAgB,YAAY,CAAC,SAAS,EAAE,SAAS,EAAE,GAAG,SAAS,GAAG,MAAM,CAIvE;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,CAE/D;AAED,wBAAgB,WAAW,CACzB,KAAK,EAAE,MAAM,GAAG,MAAM,EACtB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,EACxB,SAAS,SAAM,EACf,QAAQ,SAAI,GACX,MAAM,CAKR"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orderingstack/front-hooks",
3
- "version": "3.6.0",
3
+ "version": "3.7.0",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.es.js",
@@ -22,11 +22,12 @@
22
22
  "query-string": "7.1.3"
23
23
  },
24
24
  "peerDependencies": {
25
- "@orderingstack/ordering-core-react": "^0.5.1",
25
+ "@orderingstack/ordering-core-react": "^1.0.0",
26
26
  "react": ">=16.8.0",
27
27
  "react-i18next": "^12.1.1"
28
28
  },
29
29
  "devDependencies": {
30
+ "@orderingstack/ordering-core-react": "^1.0.0",
30
31
  "@types/node": "^17.0.8",
31
32
  "@types/react": "^17.0.38",
32
33
  "@vitejs/plugin-react": "^1.1.4",