@open-tender/store 1.1.38 → 1.1.39
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,9 +1,10 @@
|
|
|
1
1
|
import { MenuItem } from '@open-tender/types';
|
|
2
2
|
import { MenuOtherProps } from '@open-tender/ui';
|
|
3
3
|
import { ReactNode } from 'react';
|
|
4
|
-
declare const MenuOther: ({ title, subtitle, path, item, children, navigate, apiUrl }: {
|
|
4
|
+
declare const MenuOther: ({ title, subtitle, showSubtitle, path, item, children, navigate, apiUrl }: {
|
|
5
5
|
title: string;
|
|
6
|
-
subtitle
|
|
6
|
+
subtitle?: string | null;
|
|
7
|
+
showSubtitle?: boolean;
|
|
7
8
|
path: string;
|
|
8
9
|
item: MenuItem;
|
|
9
10
|
navigate: (route: string) => void;
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
var hooks_1 = require("../app/hooks");
|
|
4
4
|
var slices_1 = require("../slices");
|
|
5
5
|
var MenuOther = function (_a) {
|
|
6
|
-
var title = _a.title, subtitle = _a.subtitle, path = _a.path, item = _a.item, children = _a.children, navigate = _a.navigate, apiUrl = _a.apiUrl;
|
|
6
|
+
var title = _a.title, subtitle = _a.subtitle, _b = _a.showSubtitle, showSubtitle = _b === void 0 ? true : _b, path = _a.path, item = _a.item, children = _a.children, navigate = _a.navigate, apiUrl = _a.apiUrl;
|
|
7
7
|
var dispatch = (0, hooks_1.useAppDispatch)();
|
|
8
8
|
var menuCategory = (0, hooks_1.useAppSelector)(slices_1.selectKioskConfig).menuCategory;
|
|
9
9
|
var browse = function () {
|
|
@@ -16,6 +16,7 @@ var MenuOther = function (_a) {
|
|
|
16
16
|
handlers: handlers,
|
|
17
17
|
title: title,
|
|
18
18
|
subtitle: subtitle,
|
|
19
|
+
showSubtitle: showSubtitle,
|
|
19
20
|
item: item,
|
|
20
21
|
apiUrl: apiUrl
|
|
21
22
|
});
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { MenuItem } from '@open-tender/types';
|
|
2
2
|
import { MenuOtherProps } from '@open-tender/ui';
|
|
3
3
|
import { ReactNode } from 'react';
|
|
4
|
-
declare const MenuOther: ({ title, subtitle, path, item, children, navigate, apiUrl }: {
|
|
4
|
+
declare const MenuOther: ({ title, subtitle, showSubtitle, path, item, children, navigate, apiUrl }: {
|
|
5
5
|
title: string;
|
|
6
|
-
subtitle
|
|
6
|
+
subtitle?: string | null;
|
|
7
|
+
showSubtitle?: boolean;
|
|
7
8
|
path: string;
|
|
8
9
|
item: MenuItem;
|
|
9
10
|
navigate: (route: string) => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useAppDispatch, useAppSelector } from '../app/hooks';
|
|
2
2
|
import { selectKioskConfig, setCurrentCategory } from '../slices';
|
|
3
3
|
var MenuOther = function (_a) {
|
|
4
|
-
var title = _a.title, subtitle = _a.subtitle, path = _a.path, item = _a.item, children = _a.children, navigate = _a.navigate, apiUrl = _a.apiUrl;
|
|
4
|
+
var title = _a.title, subtitle = _a.subtitle, _b = _a.showSubtitle, showSubtitle = _b === void 0 ? true : _b, path = _a.path, item = _a.item, children = _a.children, navigate = _a.navigate, apiUrl = _a.apiUrl;
|
|
5
5
|
var dispatch = useAppDispatch();
|
|
6
6
|
var menuCategory = useAppSelector(selectKioskConfig).menuCategory;
|
|
7
7
|
var browse = function () {
|
|
@@ -14,6 +14,7 @@ var MenuOther = function (_a) {
|
|
|
14
14
|
handlers: handlers,
|
|
15
15
|
title: title,
|
|
16
16
|
subtitle: subtitle,
|
|
17
|
+
showSubtitle: showSubtitle,
|
|
17
18
|
item: item,
|
|
18
19
|
apiUrl: apiUrl
|
|
19
20
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-tender/store",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.39",
|
|
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.57",
|
|
65
|
-
"@open-tender/ui": "^0.3.
|
|
65
|
+
"@open-tender/ui": "^0.3.43",
|
|
66
66
|
"@open-tender/utils": "^0.4.31",
|
|
67
67
|
"@reduxjs/toolkit": "^2.0.1",
|
|
68
68
|
"date-fns": "2.30.0",
|