@open-tender/store 1.1.96 → 1.1.98

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,10 +1,11 @@
1
1
  import { MenuItem, MenuItemFavorite } from '@open-tender/types';
2
2
  import { CategoryItemProps } from '@open-tender/ui';
3
3
  import { ReactNode } from 'react';
4
- declare const CategoryItem: ({ item, favorite, allergenAlerts, navigate, children }: {
4
+ declare const CategoryItem: ({ item, favorite, allergenAlerts, placeholder, navigate, children }: {
5
5
  item: MenuItem;
6
6
  favorite?: MenuItemFavorite;
7
7
  allergenAlerts?: string[];
8
+ placeholder?: string;
8
9
  navigate: (route: string) => void;
9
10
  children: (props: CategoryItemProps) => ReactNode;
10
11
  }) => ReactNode;
@@ -5,7 +5,7 @@ var utils_1 = require("@open-tender/utils");
5
5
  var hooks_1 = require("../app/hooks");
6
6
  var slices_1 = require("../slices");
7
7
  var CategoryItem = function (_a) {
8
- var item = _a.item, favorite = _a.favorite, allergenAlerts = _a.allergenAlerts, navigate = _a.navigate, children = _a.children;
8
+ var item = _a.item, favorite = _a.favorite, allergenAlerts = _a.allergenAlerts, placeholder = _a.placeholder, navigate = _a.navigate, children = _a.children;
9
9
  var dispatch = (0, hooks_1.useAppDispatch)();
10
10
  var apiUrl = (0, hooks_1.useAppSelector)(slices_1.selectKioskApi);
11
11
  var categoryItem = (0, hooks_1.useAppSelector)(slices_1.selectKioskConfig).categoryItem;
@@ -23,6 +23,12 @@ var CategoryItem = function (_a) {
23
23
  navigate('/menu/item');
24
24
  };
25
25
  var handlers = { browse: browse };
26
- return children({ item: cartItem, config: categoryItem, handlers: handlers, apiUrl: apiUrl });
26
+ return children({
27
+ item: cartItem,
28
+ config: categoryItem,
29
+ handlers: handlers,
30
+ apiUrl: apiUrl,
31
+ placeholder: placeholder
32
+ });
27
33
  };
28
34
  exports.default = CategoryItem;
@@ -1,11 +1,12 @@
1
1
  import { CartItemGroup, CartItemOption, CartLevels } from '@open-tender/types';
2
2
  import { Handlers, ItemOptionProps } from '@open-tender/ui';
3
3
  import { ReactNode } from 'react';
4
- declare const ItemOption: ({ handlers, group, option, levels, children }: {
4
+ declare const ItemOption: ({ handlers, group, option, levels, placeholder, children }: {
5
5
  handlers: Handlers;
6
6
  group: CartItemGroup;
7
7
  option: CartItemOption;
8
8
  levels: CartLevels;
9
+ placeholder?: string;
9
10
  children: (props: ItemOptionProps) => ReactNode;
10
11
  }) => ReactNode;
11
12
  export default ItemOption;
@@ -4,7 +4,7 @@ var utils_1 = require("@open-tender/utils");
4
4
  var hooks_1 = require("../app/hooks");
5
5
  var slices_1 = require("../slices");
6
6
  var ItemOption = function (_a) {
7
- var handlers = _a.handlers, group = _a.group, option = _a.option, levels = _a.levels, children = _a.children;
7
+ var handlers = _a.handlers, group = _a.group, option = _a.option, levels = _a.levels, placeholder = _a.placeholder, children = _a.children;
8
8
  var dispatch = (0, hooks_1.useAppDispatch)();
9
9
  var apiUrl = (0, hooks_1.useAppSelector)(slices_1.selectKioskApi);
10
10
  var config = (0, hooks_1.useAppSelector)(slices_1.selectKioskConfig).itemOption;
@@ -27,7 +27,8 @@ var ItemOption = function (_a) {
27
27
  handlers: { showNested: showNested },
28
28
  group: group,
29
29
  option: modifier,
30
- apiUrl: apiUrl
30
+ apiUrl: apiUrl,
31
+ placeholder: placeholder
31
32
  });
32
33
  };
33
34
  exports.default = ItemOption;
@@ -22,7 +22,7 @@ var guest = {
22
22
  classes: 'object-cover',
23
23
  props: {
24
24
  src: 'https://res.cloudinary.com/dlpitjizv/video/upload/v1676582896/Beggars_Web_1728x940_Pizza_V2_2_MB_985d6b0daf.mp4',
25
- alt: 'Open Tender Landing'
25
+ alt: 'Checkmate Landing'
26
26
  },
27
27
  style: {
28
28
  position: 'absolute',
@@ -50,7 +50,7 @@ var guest = {
50
50
  classes: '',
51
51
  props: {
52
52
  src: 'https://io-opentender.s3.amazonaws.com/logos/open-tender-logo-white.png',
53
- alt: 'Open Tender Logo'
53
+ alt: 'Checkmate Logo'
54
54
  },
55
55
  style: {
56
56
  width: 480,
@@ -52,7 +52,7 @@ var header = {
52
52
  classes: '',
53
53
  props: {
54
54
  src: 'https://s3.amazonaws.com/betterboh/u/img/staging/2/1712337883_open-tender-logo-confluence.png',
55
- alt: 'Open Tender Logo'
55
+ alt: 'Checkmate Logo'
56
56
  },
57
57
  style: {
58
58
  width: 160
@@ -18,36 +18,36 @@ exports.errorsApi = {
18
18
  code: 'parse_error',
19
19
  status: 422,
20
20
  title: 'Cannot Read File',
21
- detail: 'There was an error reading this file. Please contact Open Tender Support.'
21
+ detail: 'There was an error reading this file. Please contact Checkmate Support.'
22
22
  },
23
23
  internalServerError: {
24
24
  code: 'internal_server_error',
25
25
  status: 500,
26
26
  title: 'Internal Server Error',
27
- detail: 'Internal server error. Please contact Open Tender Support.'
27
+ detail: 'Internal server error. Please contact Checkmate Support.'
28
28
  },
29
29
  notImplemented: {
30
30
  code: 'not_implemented',
31
31
  status: 501,
32
32
  title: 'Servers Overloaded',
33
- detail: 'Servers temporarily overloaded. Please retry your request. If this issue persists, please contact Open Tender Support.'
33
+ detail: 'Servers temporarily overloaded. Please retry your request. If this issue persists, please contact Checkmate Support.'
34
34
  },
35
35
  badGateway: {
36
36
  code: 'bad_gateway',
37
37
  status: 502,
38
38
  title: 'Bad Gateway',
39
- detail: 'Temporary gateway error. Please retry your request. If this issue persists, please contact Open Tender Support.'
39
+ detail: 'Temporary gateway error. Please retry your request. If this issue persists, please contact Checkmate Support.'
40
40
  },
41
41
  tempUnavailable: {
42
42
  code: 'temporarily_unavailable',
43
43
  status: 503,
44
44
  title: 'Service Temporarily Unavailable',
45
- detail: 'Service Temporarily Unavailable. Please retry your request. If this issue persists, please contact Open Tender Support.'
45
+ detail: 'Service Temporarily Unavailable. Please retry your request. If this issue persists, please contact Checkmate Support.'
46
46
  },
47
47
  gatewayTimeout: {
48
48
  code: 'gateway_timeout',
49
49
  status: 504,
50
50
  title: 'Gateway Timeout',
51
- detail: 'Gateway Timeout. Please contact Open Tender Support.'
51
+ detail: 'Gateway Timeout. Please contact Checkmate Support.'
52
52
  }
53
53
  };
@@ -1,10 +1,11 @@
1
1
  import { MenuItem, MenuItemFavorite } from '@open-tender/types';
2
2
  import { CategoryItemProps } from '@open-tender/ui';
3
3
  import { ReactNode } from 'react';
4
- declare const CategoryItem: ({ item, favorite, allergenAlerts, navigate, children }: {
4
+ declare const CategoryItem: ({ item, favorite, allergenAlerts, placeholder, navigate, children }: {
5
5
  item: MenuItem;
6
6
  favorite?: MenuItemFavorite;
7
7
  allergenAlerts?: string[];
8
+ placeholder?: string;
8
9
  navigate: (route: string) => void;
9
10
  children: (props: CategoryItemProps) => ReactNode;
10
11
  }) => ReactNode;
@@ -3,7 +3,7 @@ import { makeOrderItem, rehydrateOrderItem, useOrderItem } from '@open-tender/ut
3
3
  import { useAppDispatch, useAppSelector } from '../app/hooks';
4
4
  import { selectCartCounts, selectKioskApi, selectKioskConfig, selectMenu, setCurrentItem } from '../slices';
5
5
  var CategoryItem = function (_a) {
6
- var item = _a.item, favorite = _a.favorite, allergenAlerts = _a.allergenAlerts, navigate = _a.navigate, children = _a.children;
6
+ var item = _a.item, favorite = _a.favorite, allergenAlerts = _a.allergenAlerts, placeholder = _a.placeholder, navigate = _a.navigate, children = _a.children;
7
7
  var dispatch = useAppDispatch();
8
8
  var apiUrl = useAppSelector(selectKioskApi);
9
9
  var categoryItem = useAppSelector(selectKioskConfig).categoryItem;
@@ -21,6 +21,12 @@ var CategoryItem = function (_a) {
21
21
  navigate('/menu/item');
22
22
  };
23
23
  var handlers = { browse: browse };
24
- return children({ item: cartItem, config: categoryItem, handlers: handlers, apiUrl: apiUrl });
24
+ return children({
25
+ item: cartItem,
26
+ config: categoryItem,
27
+ handlers: handlers,
28
+ apiUrl: apiUrl,
29
+ placeholder: placeholder
30
+ });
25
31
  };
26
32
  export default CategoryItem;
@@ -1,11 +1,12 @@
1
1
  import { CartItemGroup, CartItemOption, CartLevels } from '@open-tender/types';
2
2
  import { Handlers, ItemOptionProps } from '@open-tender/ui';
3
3
  import { ReactNode } from 'react';
4
- declare const ItemOption: ({ handlers, group, option, levels, children }: {
4
+ declare const ItemOption: ({ handlers, group, option, levels, placeholder, children }: {
5
5
  handlers: Handlers;
6
6
  group: CartItemGroup;
7
7
  option: CartItemOption;
8
8
  levels: CartLevels;
9
+ placeholder?: string;
9
10
  children: (props: ItemOptionProps) => ReactNode;
10
11
  }) => ReactNode;
11
12
  export default ItemOption;
@@ -2,7 +2,7 @@ import { useModifier } from '@open-tender/utils';
2
2
  import { useAppDispatch, useAppSelector } from '../app/hooks';
3
3
  import { selectKioskApi, selectKioskConfig, setCurrentOption } from '../slices';
4
4
  var ItemOption = function (_a) {
5
- var handlers = _a.handlers, group = _a.group, option = _a.option, levels = _a.levels, children = _a.children;
5
+ var handlers = _a.handlers, group = _a.group, option = _a.option, levels = _a.levels, placeholder = _a.placeholder, children = _a.children;
6
6
  var dispatch = useAppDispatch();
7
7
  var apiUrl = useAppSelector(selectKioskApi);
8
8
  var config = useAppSelector(selectKioskConfig).itemOption;
@@ -25,7 +25,8 @@ var ItemOption = function (_a) {
25
25
  handlers: { showNested: showNested },
26
26
  group: group,
27
27
  option: modifier,
28
- apiUrl: apiUrl
28
+ apiUrl: apiUrl,
29
+ placeholder: placeholder
29
30
  });
30
31
  };
31
32
  export default ItemOption;
@@ -20,7 +20,7 @@ var guest = {
20
20
  classes: 'object-cover',
21
21
  props: {
22
22
  src: 'https://res.cloudinary.com/dlpitjizv/video/upload/v1676582896/Beggars_Web_1728x940_Pizza_V2_2_MB_985d6b0daf.mp4',
23
- alt: 'Open Tender Landing'
23
+ alt: 'Checkmate Landing'
24
24
  },
25
25
  style: {
26
26
  position: 'absolute',
@@ -48,7 +48,7 @@ var guest = {
48
48
  classes: '',
49
49
  props: {
50
50
  src: 'https://io-opentender.s3.amazonaws.com/logos/open-tender-logo-white.png',
51
- alt: 'Open Tender Logo'
51
+ alt: 'Checkmate Logo'
52
52
  },
53
53
  style: {
54
54
  width: 480,
@@ -50,7 +50,7 @@ var header = {
50
50
  classes: '',
51
51
  props: {
52
52
  src: 'https://s3.amazonaws.com/betterboh/u/img/staging/2/1712337883_open-tender-logo-confluence.png',
53
- alt: 'Open Tender Logo'
53
+ alt: 'Checkmate Logo'
54
54
  },
55
55
  style: {
56
56
  width: 160
@@ -15,36 +15,36 @@ export var errorsApi = {
15
15
  code: 'parse_error',
16
16
  status: 422,
17
17
  title: 'Cannot Read File',
18
- detail: 'There was an error reading this file. Please contact Open Tender Support.'
18
+ detail: 'There was an error reading this file. Please contact Checkmate Support.'
19
19
  },
20
20
  internalServerError: {
21
21
  code: 'internal_server_error',
22
22
  status: 500,
23
23
  title: 'Internal Server Error',
24
- detail: 'Internal server error. Please contact Open Tender Support.'
24
+ detail: 'Internal server error. Please contact Checkmate Support.'
25
25
  },
26
26
  notImplemented: {
27
27
  code: 'not_implemented',
28
28
  status: 501,
29
29
  title: 'Servers Overloaded',
30
- detail: 'Servers temporarily overloaded. Please retry your request. If this issue persists, please contact Open Tender Support.'
30
+ detail: 'Servers temporarily overloaded. Please retry your request. If this issue persists, please contact Checkmate Support.'
31
31
  },
32
32
  badGateway: {
33
33
  code: 'bad_gateway',
34
34
  status: 502,
35
35
  title: 'Bad Gateway',
36
- detail: 'Temporary gateway error. Please retry your request. If this issue persists, please contact Open Tender Support.'
36
+ detail: 'Temporary gateway error. Please retry your request. If this issue persists, please contact Checkmate Support.'
37
37
  },
38
38
  tempUnavailable: {
39
39
  code: 'temporarily_unavailable',
40
40
  status: 503,
41
41
  title: 'Service Temporarily Unavailable',
42
- detail: 'Service Temporarily Unavailable. Please retry your request. If this issue persists, please contact Open Tender Support.'
42
+ detail: 'Service Temporarily Unavailable. Please retry your request. If this issue persists, please contact Checkmate Support.'
43
43
  },
44
44
  gatewayTimeout: {
45
45
  code: 'gateway_timeout',
46
46
  status: 504,
47
47
  title: 'Gateway Timeout',
48
- detail: 'Gateway Timeout. Please contact Open Tender Support.'
48
+ detail: 'Gateway Timeout. Please contact Checkmate Support.'
49
49
  }
50
50
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/store",
3
- "version": "1.1.96",
3
+ "version": "1.1.98",
4
4
  "description": "A library of hooks, reducers, utility functions, and types for use with Open Tender applications that utilize our in-store POS API",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",
@@ -62,7 +62,7 @@
62
62
  "peerDependencies": {
63
63
  "@emotion/react": "^11.11.1",
64
64
  "@open-tender/types": "^0.4.60",
65
- "@open-tender/ui": "^0.3.79",
65
+ "@open-tender/ui": "^0.3.80",
66
66
  "@open-tender/utils": "^0.4.39",
67
67
  "@reduxjs/toolkit": "^2.0.1",
68
68
  "date-fns": "2.30.0",