@open-tender/store 0.1.305 → 0.1.306

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 { 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 { 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.306",
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",