@open-tender/store 0.1.311 → 0.1.313

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,6 @@
1
1
  import { CheckoutProps, Handlers } from '@open-tender/ui';
2
2
  import { ReactNode } from 'react';
3
- declare const CheckoutContainer: ({ handlers, title, subtitle, headerContent, content, backTitle, proceedTitle, showFooter, showBottomText, renderHeader, renderTotals, children, showViewOrder, isScrollable }: {
3
+ declare const CheckoutContainer: ({ handlers, title, subtitle, headerContent, content, backTitle, proceedTitle, showFooter, showBottomText, renderHeader, renderTotals, children, showViewOrder, isScrollable, hasError }: {
4
4
  handlers: Handlers;
5
5
  title: string;
6
6
  subtitle?: string | null;
@@ -18,7 +18,9 @@ declare const CheckoutContainer: ({ handlers, title, subtitle, headerContent, co
18
18
  showBottomText?: boolean;
19
19
  showViewOrder?: boolean;
20
20
  isScrollable?: boolean;
21
+ hasError?: boolean;
21
22
  }) => ReactNode;
22
23
  isScrollable?: boolean;
24
+ hasError?: boolean;
23
25
  }) => ReactNode;
24
26
  export default CheckoutContainer;
@@ -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 CheckoutContainer = function (_a) {
6
- var handlers = _a.handlers, title = _a.title, subtitle = _a.subtitle, headerContent = _a.headerContent, content = _a.content, backTitle = _a.backTitle, proceedTitle = _a.proceedTitle, showFooter = _a.showFooter, showBottomText = _a.showBottomText, renderHeader = _a.renderHeader, renderTotals = _a.renderTotals, children = _a.children, showViewOrder = _a.showViewOrder, isScrollable = _a.isScrollable;
6
+ var handlers = _a.handlers, title = _a.title, subtitle = _a.subtitle, headerContent = _a.headerContent, content = _a.content, backTitle = _a.backTitle, proceedTitle = _a.proceedTitle, showFooter = _a.showFooter, showBottomText = _a.showBottomText, renderHeader = _a.renderHeader, renderTotals = _a.renderTotals, children = _a.children, showViewOrder = _a.showViewOrder, isScrollable = _a.isScrollable, hasError = _a.hasError;
7
7
  var config = (0, hooks_1.useAppSelector)(slices_1.selectKioskConfig).checkout;
8
8
  if (!config)
9
9
  return null;
@@ -20,6 +20,7 @@ var CheckoutContainer = function (_a) {
20
20
  showBottomText: showBottomText,
21
21
  showViewOrder: showViewOrder,
22
22
  isScrollable: isScrollable,
23
+ hasError: hasError,
23
24
  renderHeader: renderHeader,
24
25
  renderTotals: renderTotals
25
26
  });
@@ -10,6 +10,8 @@ declare const ModalContent: ({ title, subtitle, content, submit, submitText, can
10
10
  cancelText?: string;
11
11
  style?: Styles;
12
12
  error?: string;
13
- children: (props: ModalContentProps) => ReactNode;
13
+ children: (props: ModalContentProps & {
14
+ isAccessibilityOn?: boolean;
15
+ }) => ReactNode;
14
16
  }) => ReactNode;
15
17
  export default ModalContent;
@@ -5,6 +5,7 @@ var slices_1 = require("../slices");
5
5
  var ModalContent = function (_a) {
6
6
  var title = _a.title, subtitle = _a.subtitle, content = _a.content, submit = _a.submit, submitText = _a.submitText, cancel = _a.cancel, cancelText = _a.cancelText, style = _a.style, error = _a.error, children = _a.children;
7
7
  var config = (0, hooks_1.useAppSelector)(slices_1.selectKioskConfig).modalContent;
8
+ var isAccessibilityOn = (0, hooks_1.useAppSelector)(slices_1.selectAccessibility);
8
9
  if (!config)
9
10
  return null;
10
11
  return children({
@@ -17,7 +18,8 @@ var ModalContent = function (_a) {
17
18
  cancel: cancel,
18
19
  cancelText: cancelText,
19
20
  style: style,
20
- error: error
21
+ error: error,
22
+ isAccessibilityOn: isAccessibilityOn
21
23
  });
22
24
  };
23
25
  exports.default = ModalContent;
@@ -1,6 +1,6 @@
1
1
  import { CheckoutProps, Handlers } from '@open-tender/ui';
2
2
  import { ReactNode } from 'react';
3
- declare const CheckoutContainer: ({ handlers, title, subtitle, headerContent, content, backTitle, proceedTitle, showFooter, showBottomText, renderHeader, renderTotals, children, showViewOrder, isScrollable }: {
3
+ declare const CheckoutContainer: ({ handlers, title, subtitle, headerContent, content, backTitle, proceedTitle, showFooter, showBottomText, renderHeader, renderTotals, children, showViewOrder, isScrollable, hasError }: {
4
4
  handlers: Handlers;
5
5
  title: string;
6
6
  subtitle?: string | null;
@@ -18,7 +18,9 @@ declare const CheckoutContainer: ({ handlers, title, subtitle, headerContent, co
18
18
  showBottomText?: boolean;
19
19
  showViewOrder?: boolean;
20
20
  isScrollable?: boolean;
21
+ hasError?: boolean;
21
22
  }) => ReactNode;
22
23
  isScrollable?: boolean;
24
+ hasError?: boolean;
23
25
  }) => ReactNode;
24
26
  export default CheckoutContainer;
@@ -1,7 +1,7 @@
1
1
  import { useAppSelector } from '../app/hooks';
2
2
  import { selectKioskConfig } from '../slices';
3
3
  var CheckoutContainer = function (_a) {
4
- var handlers = _a.handlers, title = _a.title, subtitle = _a.subtitle, headerContent = _a.headerContent, content = _a.content, backTitle = _a.backTitle, proceedTitle = _a.proceedTitle, showFooter = _a.showFooter, showBottomText = _a.showBottomText, renderHeader = _a.renderHeader, renderTotals = _a.renderTotals, children = _a.children, showViewOrder = _a.showViewOrder, isScrollable = _a.isScrollable;
4
+ var handlers = _a.handlers, title = _a.title, subtitle = _a.subtitle, headerContent = _a.headerContent, content = _a.content, backTitle = _a.backTitle, proceedTitle = _a.proceedTitle, showFooter = _a.showFooter, showBottomText = _a.showBottomText, renderHeader = _a.renderHeader, renderTotals = _a.renderTotals, children = _a.children, showViewOrder = _a.showViewOrder, isScrollable = _a.isScrollable, hasError = _a.hasError;
5
5
  var config = useAppSelector(selectKioskConfig).checkout;
6
6
  if (!config)
7
7
  return null;
@@ -18,6 +18,7 @@ var CheckoutContainer = function (_a) {
18
18
  showBottomText: showBottomText,
19
19
  showViewOrder: showViewOrder,
20
20
  isScrollable: isScrollable,
21
+ hasError: hasError,
21
22
  renderHeader: renderHeader,
22
23
  renderTotals: renderTotals
23
24
  });
@@ -10,6 +10,8 @@ declare const ModalContent: ({ title, subtitle, content, submit, submitText, can
10
10
  cancelText?: string;
11
11
  style?: Styles;
12
12
  error?: string;
13
- children: (props: ModalContentProps) => ReactNode;
13
+ children: (props: ModalContentProps & {
14
+ isAccessibilityOn?: boolean;
15
+ }) => ReactNode;
14
16
  }) => ReactNode;
15
17
  export default ModalContent;
@@ -1,8 +1,9 @@
1
1
  import { useAppSelector } from '../app/hooks';
2
- import { selectKioskConfig } from '../slices';
2
+ import { selectAccessibility, selectKioskConfig } from '../slices';
3
3
  var ModalContent = function (_a) {
4
4
  var title = _a.title, subtitle = _a.subtitle, content = _a.content, submit = _a.submit, submitText = _a.submitText, cancel = _a.cancel, cancelText = _a.cancelText, style = _a.style, error = _a.error, children = _a.children;
5
5
  var config = useAppSelector(selectKioskConfig).modalContent;
6
+ var isAccessibilityOn = useAppSelector(selectAccessibility);
6
7
  if (!config)
7
8
  return null;
8
9
  return children({
@@ -15,7 +16,8 @@ var ModalContent = function (_a) {
15
16
  cancel: cancel,
16
17
  cancelText: cancelText,
17
18
  style: style,
18
- error: error
19
+ error: error,
20
+ isAccessibilityOn: isAccessibilityOn
19
21
  });
20
22
  };
21
23
  export default ModalContent;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/store",
3
- "version": "0.1.311",
3
+ "version": "0.1.313",
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",