@open-tender/store 1.1.238 → 1.1.239
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,8 +1,9 @@
|
|
|
1
1
|
import { Discount as DiscountType } from '@open-tender/types';
|
|
2
2
|
import { DiscountProps } from '@open-tender/ui';
|
|
3
3
|
import { ReactNode } from 'react';
|
|
4
|
-
declare const Discount: ({ discount, children }: {
|
|
4
|
+
declare const Discount: ({ discount, children, isSmall }: {
|
|
5
5
|
discount: DiscountType;
|
|
6
6
|
children: (props: DiscountProps) => ReactNode;
|
|
7
|
+
isSmall?: boolean;
|
|
7
8
|
}) => ReactNode;
|
|
8
9
|
export default Discount;
|
|
@@ -3,11 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
var hooks_1 = require("../app/hooks");
|
|
4
4
|
var slices_1 = require("../slices");
|
|
5
5
|
var Discount = function (_a) {
|
|
6
|
-
var discount = _a.discount, children = _a.children;
|
|
6
|
+
var discount = _a.discount, children = _a.children, isSmall = _a.isSmall;
|
|
7
7
|
var apiUrl = (0, hooks_1.useAppSelector)(slices_1.selectKioskApi);
|
|
8
8
|
var _b = (0, hooks_1.useAppSelector)(slices_1.selectKioskConfig), config = _b.discount, cardConfig = _b.card;
|
|
9
9
|
if (!config)
|
|
10
10
|
return null;
|
|
11
|
-
return children({ config: config, discount: discount, cardConfig: cardConfig, apiUrl: apiUrl });
|
|
11
|
+
return children({ config: config, discount: discount, cardConfig: cardConfig, apiUrl: apiUrl, isSmall: isSmall });
|
|
12
12
|
};
|
|
13
13
|
exports.default = Discount;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Discount as DiscountType } from '@open-tender/types';
|
|
2
2
|
import { DiscountProps } from '@open-tender/ui';
|
|
3
3
|
import { ReactNode } from 'react';
|
|
4
|
-
declare const Discount: ({ discount, children }: {
|
|
4
|
+
declare const Discount: ({ discount, children, isSmall }: {
|
|
5
5
|
discount: DiscountType;
|
|
6
6
|
children: (props: DiscountProps) => ReactNode;
|
|
7
|
+
isSmall?: boolean;
|
|
7
8
|
}) => ReactNode;
|
|
8
9
|
export default Discount;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { useAppSelector } from '../app/hooks';
|
|
2
2
|
import { selectKioskApi, selectKioskConfig } from '../slices';
|
|
3
3
|
var Discount = function (_a) {
|
|
4
|
-
var discount = _a.discount, children = _a.children;
|
|
4
|
+
var discount = _a.discount, children = _a.children, isSmall = _a.isSmall;
|
|
5
5
|
var apiUrl = useAppSelector(selectKioskApi);
|
|
6
6
|
var _b = useAppSelector(selectKioskConfig), config = _b.discount, cardConfig = _b.card;
|
|
7
7
|
if (!config)
|
|
8
8
|
return null;
|
|
9
|
-
return children({ config: config, discount: discount, cardConfig: cardConfig, apiUrl: apiUrl });
|
|
9
|
+
return children({ config: config, discount: discount, cardConfig: cardConfig, apiUrl: apiUrl, isSmall: isSmall });
|
|
10
10
|
};
|
|
11
11
|
export default Discount;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-tender/store",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.239",
|
|
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.98",
|
|
65
|
-
"@open-tender/ui": "^0.4.
|
|
65
|
+
"@open-tender/ui": "^0.4.32",
|
|
66
66
|
"@open-tender/utils": "^0.4.71",
|
|
67
67
|
"@reduxjs/toolkit": "^2.0.1",
|
|
68
68
|
"date-fns": "2.30.0",
|