@open-tender/store 0.1.285 → 0.1.286
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,6 +1,8 @@
|
|
|
1
1
|
import { NotificationsProps } from '@open-tender/ui';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
declare const Notifications: ({ children }: {
|
|
4
|
-
children: (props: NotificationsProps
|
|
4
|
+
children: (props: NotificationsProps & {
|
|
5
|
+
isAccesibilityOn?: boolean;
|
|
6
|
+
}) => ReactNode;
|
|
5
7
|
}) => ReactNode;
|
|
6
8
|
export default Notifications;
|
|
@@ -6,8 +6,9 @@ var Notifications = function (_a) {
|
|
|
6
6
|
var children = _a.children;
|
|
7
7
|
var config = (0, hooks_1.useAppSelector)(slices_1.selectKioskConfig).notifications;
|
|
8
8
|
var messages = (0, hooks_1.useAppSelector)(slices_1.selectNotifications);
|
|
9
|
+
var isAccesibilityOn = (0, hooks_1.useAppSelector)(slices_1.selectAccessibility);
|
|
9
10
|
if (!config)
|
|
10
11
|
return null;
|
|
11
|
-
return children({ config: config, messages: messages });
|
|
12
|
+
return children({ config: config, messages: messages, isAccesibilityOn: isAccesibilityOn });
|
|
12
13
|
};
|
|
13
14
|
exports.default = Notifications;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { NotificationsProps } from '@open-tender/ui';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
declare const Notifications: ({ children }: {
|
|
4
|
-
children: (props: NotificationsProps
|
|
4
|
+
children: (props: NotificationsProps & {
|
|
5
|
+
isAccesibilityOn?: boolean;
|
|
6
|
+
}) => ReactNode;
|
|
5
7
|
}) => ReactNode;
|
|
6
8
|
export default Notifications;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { useAppSelector } from '../app/hooks';
|
|
2
|
-
import { selectKioskConfig, selectNotifications } from '../slices';
|
|
2
|
+
import { selectAccessibility, selectKioskConfig, selectNotifications } from '../slices';
|
|
3
3
|
var Notifications = function (_a) {
|
|
4
4
|
var children = _a.children;
|
|
5
5
|
var config = useAppSelector(selectKioskConfig).notifications;
|
|
6
6
|
var messages = useAppSelector(selectNotifications);
|
|
7
|
+
var isAccesibilityOn = useAppSelector(selectAccessibility);
|
|
7
8
|
if (!config)
|
|
8
9
|
return null;
|
|
9
|
-
return children({ config: config, messages: messages });
|
|
10
|
+
return children({ config: config, messages: messages, isAccesibilityOn: isAccesibilityOn });
|
|
10
11
|
};
|
|
11
12
|
export default Notifications;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-tender/store",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.286",
|
|
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",
|