@open-tender/store 0.1.305 → 0.1.307

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 }: {
3
+ declare const CheckoutContainer: ({ handlers, title, subtitle, headerContent, content, backTitle, proceedTitle, showFooter, showBottomText, renderHeader, renderTotals, children, showViewOrder, isScrollable }: {
4
4
  handlers: Handlers;
5
5
  title: string;
6
6
  subtitle?: string | null;
@@ -17,6 +17,8 @@ declare const CheckoutContainer: ({ handlers, title, subtitle, headerContent, co
17
17
  showFooter?: boolean;
18
18
  showBottomText?: boolean;
19
19
  showViewOrder?: boolean;
20
+ isScrollable?: boolean;
20
21
  }) => ReactNode;
22
+ isScrollable?: boolean;
21
23
  }) => ReactNode;
22
24
  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;
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;
7
7
  var config = (0, hooks_1.useAppSelector)(slices_1.selectKioskConfig).checkout;
8
8
  if (!config)
9
9
  return null;
@@ -19,6 +19,7 @@ var CheckoutContainer = function (_a) {
19
19
  showFooter: showFooter,
20
20
  showBottomText: showBottomText,
21
21
  showViewOrder: showViewOrder,
22
+ isScrollable: isScrollable,
22
23
  renderHeader: renderHeader,
23
24
  renderTotals: renderTotals
24
25
  });
@@ -1,6 +1,6 @@
1
1
  import { HeaderProps, SignInButtonProps, TagsButtonProps, CartButtonProps, CancelButtonProps, ScreenConfig, Handlers } from '@open-tender/ui';
2
2
  import React, { ReactNode } from 'react';
3
- declare const Header: ({ to, backText, showImage, backAction, pathname, navigate, children, SignInButtonView, TagsButtonView, CartButton, CancelButton, AccessibilityButton, startOverCallback }: {
3
+ declare const Header: ({ to, backText, showImage, backAction, pathname, navigate, children, SignInButtonView, TagsButtonView, CartButton, CancelButton, AccessibilityButton, startOverCallback, BackButton }: {
4
4
  to?: string;
5
5
  backText?: string;
6
6
  showImage?: boolean;
@@ -13,6 +13,7 @@ declare const Header: ({ to, backText, showImage, backAction, pathname, navigate
13
13
  renderCartButton?: () => ReactNode;
14
14
  renderCancelButton?: () => ReactNode;
15
15
  renderAccessibilityButton?: () => ReactNode;
16
+ BackButton?: () => ReactNode;
16
17
  }) => ReactNode;
17
18
  SignInButtonView: (props: SignInButtonProps) => ReactNode;
18
19
  TagsButtonView?: (props: TagsButtonProps) => ReactNode;
@@ -23,5 +24,6 @@ declare const Header: ({ to, backText, showImage, backAction, pathname, navigate
23
24
  isAccessibilityOn?: boolean;
24
25
  handlers: Handlers;
25
26
  }) => ReactNode;
27
+ BackButton?: () => ReactNode;
26
28
  }) => React.ReactNode;
27
29
  export default Header;
@@ -10,7 +10,7 @@ var CartButton_1 = tslib_1.__importDefault(require("./CartButton"));
10
10
  var SignInButton_1 = tslib_1.__importDefault(require("./SignInButton"));
11
11
  var TagsButton_1 = tslib_1.__importDefault(require("./TagsButton"));
12
12
  var Header = function (_a) {
13
- var to = _a.to, _b = _a.backText, backText = _b === void 0 ? 'Back' : _b, _c = _a.showImage, showImage = _c === void 0 ? true : _c, backAction = _a.backAction, pathname = _a.pathname, navigate = _a.navigate, children = _a.children, SignInButtonView = _a.SignInButtonView, TagsButtonView = _a.TagsButtonView, CartButton = _a.CartButton, CancelButton = _a.CancelButton, AccessibilityButton = _a.AccessibilityButton, startOverCallback = _a.startOverCallback;
13
+ var to = _a.to, _b = _a.backText, backText = _b === void 0 ? 'Back' : _b, _c = _a.showImage, showImage = _c === void 0 ? true : _c, backAction = _a.backAction, pathname = _a.pathname, navigate = _a.navigate, children = _a.children, SignInButtonView = _a.SignInButtonView, TagsButtonView = _a.TagsButtonView, CartButton = _a.CartButton, CancelButton = _a.CancelButton, AccessibilityButton = _a.AccessibilityButton, startOverCallback = _a.startOverCallback, BackButton = _a.BackButton;
14
14
  var dispatch = (0, hooks_1.useAppDispatch)();
15
15
  var config = ((0, hooks_1.useAppSelector)(slices_1.selectKioskConfig) || {}).header;
16
16
  var showButtons = !!(backAction || to);
@@ -60,7 +60,8 @@ var Header = function (_a) {
60
60
  renderCancelButton: CancelButton ? renderCancelButton : undefined,
61
61
  renderAccessibilityButton: AccessibilityButton
62
62
  ? renderAccessibilityButton
63
- : undefined
63
+ : undefined,
64
+ BackButton: BackButton
64
65
  });
65
66
  };
66
67
  exports.default = Header;
@@ -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 }: {
3
+ declare const CheckoutContainer: ({ handlers, title, subtitle, headerContent, content, backTitle, proceedTitle, showFooter, showBottomText, renderHeader, renderTotals, children, showViewOrder, isScrollable }: {
4
4
  handlers: Handlers;
5
5
  title: string;
6
6
  subtitle?: string | null;
@@ -17,6 +17,8 @@ declare const CheckoutContainer: ({ handlers, title, subtitle, headerContent, co
17
17
  showFooter?: boolean;
18
18
  showBottomText?: boolean;
19
19
  showViewOrder?: boolean;
20
+ isScrollable?: boolean;
20
21
  }) => ReactNode;
22
+ isScrollable?: boolean;
21
23
  }) => ReactNode;
22
24
  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;
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;
5
5
  var config = useAppSelector(selectKioskConfig).checkout;
6
6
  if (!config)
7
7
  return null;
@@ -17,6 +17,7 @@ var CheckoutContainer = function (_a) {
17
17
  showFooter: showFooter,
18
18
  showBottomText: showBottomText,
19
19
  showViewOrder: showViewOrder,
20
+ isScrollable: isScrollable,
20
21
  renderHeader: renderHeader,
21
22
  renderTotals: renderTotals
22
23
  });
@@ -1,6 +1,6 @@
1
1
  import { HeaderProps, SignInButtonProps, TagsButtonProps, CartButtonProps, CancelButtonProps, ScreenConfig, Handlers } from '@open-tender/ui';
2
2
  import React, { ReactNode } from 'react';
3
- declare const Header: ({ to, backText, showImage, backAction, pathname, navigate, children, SignInButtonView, TagsButtonView, CartButton, CancelButton, AccessibilityButton, startOverCallback }: {
3
+ declare const Header: ({ to, backText, showImage, backAction, pathname, navigate, children, SignInButtonView, TagsButtonView, CartButton, CancelButton, AccessibilityButton, startOverCallback, BackButton }: {
4
4
  to?: string;
5
5
  backText?: string;
6
6
  showImage?: boolean;
@@ -13,6 +13,7 @@ declare const Header: ({ to, backText, showImage, backAction, pathname, navigate
13
13
  renderCartButton?: () => ReactNode;
14
14
  renderCancelButton?: () => ReactNode;
15
15
  renderAccessibilityButton?: () => ReactNode;
16
+ BackButton?: () => ReactNode;
16
17
  }) => ReactNode;
17
18
  SignInButtonView: (props: SignInButtonProps) => ReactNode;
18
19
  TagsButtonView?: (props: TagsButtonProps) => ReactNode;
@@ -23,5 +24,6 @@ declare const Header: ({ to, backText, showImage, backAction, pathname, navigate
23
24
  isAccessibilityOn?: boolean;
24
25
  handlers: Handlers;
25
26
  }) => ReactNode;
27
+ BackButton?: () => ReactNode;
26
28
  }) => React.ReactNode;
27
29
  export default Header;
@@ -7,7 +7,7 @@ import { default as CartButtonContainer } from './CartButton';
7
7
  import { default as SignInButtonContainer } from './SignInButton';
8
8
  import { default as TagsButtonContainer } from './TagsButton';
9
9
  var Header = function (_a) {
10
- var to = _a.to, _b = _a.backText, backText = _b === void 0 ? 'Back' : _b, _c = _a.showImage, showImage = _c === void 0 ? true : _c, backAction = _a.backAction, pathname = _a.pathname, navigate = _a.navigate, children = _a.children, SignInButtonView = _a.SignInButtonView, TagsButtonView = _a.TagsButtonView, CartButton = _a.CartButton, CancelButton = _a.CancelButton, AccessibilityButton = _a.AccessibilityButton, startOverCallback = _a.startOverCallback;
10
+ var to = _a.to, _b = _a.backText, backText = _b === void 0 ? 'Back' : _b, _c = _a.showImage, showImage = _c === void 0 ? true : _c, backAction = _a.backAction, pathname = _a.pathname, navigate = _a.navigate, children = _a.children, SignInButtonView = _a.SignInButtonView, TagsButtonView = _a.TagsButtonView, CartButton = _a.CartButton, CancelButton = _a.CancelButton, AccessibilityButton = _a.AccessibilityButton, startOverCallback = _a.startOverCallback, BackButton = _a.BackButton;
11
11
  var dispatch = useAppDispatch();
12
12
  var config = (useAppSelector(selectKioskConfig) || {}).header;
13
13
  var showButtons = !!(backAction || to);
@@ -57,7 +57,8 @@ var Header = function (_a) {
57
57
  renderCancelButton: CancelButton ? renderCancelButton : undefined,
58
58
  renderAccessibilityButton: AccessibilityButton
59
59
  ? renderAccessibilityButton
60
- : undefined
60
+ : undefined,
61
+ BackButton: BackButton
61
62
  });
62
63
  };
63
64
  export default Header;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/store",
3
- "version": "0.1.305",
3
+ "version": "0.1.307",
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",