ordering-ui-external 10.7.1 → 10.7.3

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.
Files changed (16) hide show
  1. package/_bundles/{0.ordering-ui.8670629bfc482a9fb0a3.js → 0.ordering-ui.a76fd8ee0910722be95f.js} +1 -1
  2. package/_bundles/{1.ordering-ui.8670629bfc482a9fb0a3.js → 1.ordering-ui.a76fd8ee0910722be95f.js} +1 -1
  3. package/_bundles/{2.ordering-ui.8670629bfc482a9fb0a3.js → 2.ordering-ui.a76fd8ee0910722be95f.js} +1 -1
  4. package/_bundles/{4.ordering-ui.8670629bfc482a9fb0a3.js → 4.ordering-ui.a76fd8ee0910722be95f.js} +1 -1
  5. package/_bundles/{5.ordering-ui.8670629bfc482a9fb0a3.js → 5.ordering-ui.a76fd8ee0910722be95f.js} +1 -1
  6. package/_bundles/{6.ordering-ui.8670629bfc482a9fb0a3.js → 6.ordering-ui.a76fd8ee0910722be95f.js} +1 -1
  7. package/_bundles/{7.ordering-ui.8670629bfc482a9fb0a3.js → 7.ordering-ui.a76fd8ee0910722be95f.js} +2 -2
  8. package/_bundles/{8.ordering-ui.8670629bfc482a9fb0a3.js → 8.ordering-ui.a76fd8ee0910722be95f.js} +1 -1
  9. package/_bundles/{9.ordering-ui.8670629bfc482a9fb0a3.js → 9.ordering-ui.a76fd8ee0910722be95f.js} +1 -1
  10. package/_bundles/ordering-ui.a76fd8ee0910722be95f.js +2 -0
  11. package/_bundles/{ordering-ui.8670629bfc482a9fb0a3.js.LICENSE.txt → ordering-ui.a76fd8ee0910722be95f.js.LICENSE.txt} +0 -2
  12. package/_modules/themes/callcenterOriginal/src/components/Header/index.js +12 -2
  13. package/package.json +2 -2
  14. package/src/themes/callcenterOriginal/src/components/Header/index.js +12 -1
  15. package/_bundles/ordering-ui.8670629bfc482a9fb0a3.js +0 -2
  16. /package/_bundles/{7.ordering-ui.8670629bfc482a9fb0a3.js.LICENSE.txt → 7.ordering-ui.a76fd8ee0910722be95f.js.LICENSE.txt} +0 -0
@@ -34,8 +34,6 @@ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
34
34
  PERFORMANCE OF THIS SOFTWARE.
35
35
  ***************************************************************************** */
36
36
 
37
- /*! https://mths.be/utf8js v2.1.2 by @mathias */
38
-
39
37
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
40
38
 
41
39
  /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
@@ -52,7 +52,8 @@ var Header = function Header(props) {
52
52
  location = props.location,
53
53
  isShowOrderOptions = props.isShowOrderOptions,
54
54
  isHideSignup = props.isHideSignup,
55
- isCustomerMode = props.isCustomerMode;
55
+ isCustomerMode = props.isCustomerMode,
56
+ isShowRedirectButton = props.isShowRedirectButton;
56
57
  var _useLocation = (0, _reactRouterDom.useLocation)(),
57
58
  pathname = _useLocation.pathname;
58
59
  var _useEvent = (0, _orderingComponentsExternal.useEvent)(),
@@ -249,7 +250,16 @@ var Header = function Header(props) {
249
250
  onClose: function onClose() {
250
251
  return handleClosePopover('admin');
251
252
  }
252
- })), onlineStatus && /*#__PURE__*/_react.default.createElement(_styles.RightHeader, null, /*#__PURE__*/_react.default.createElement(_styles.Menu, null, !auth && windowSize.width > 920 && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles.MenuLink, {
253
+ })), onlineStatus && /*#__PURE__*/_react.default.createElement(_styles.RightHeader, null, /*#__PURE__*/_react.default.createElement(_styles.Menu, null, isShowRedirectButton && /*#__PURE__*/_react.default.createElement(_styles.MenuLink, {
254
+ onClick: function onClick() {
255
+ return window.open("".concat(t('CALL_CENTER_REDIRECT_URL', '#')));
256
+ },
257
+ highlight: 1,
258
+ style: {
259
+ whiteSpace: 'nowrap'
260
+ },
261
+ name: "redirect"
262
+ }, t('CALL_CENTER_REDIRECT_BUTTON', 'Call Center')), !auth && windowSize.width > 920 && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles.MenuLink, {
253
263
  onClick: function onClick() {
254
264
  return handleOpenLoginSignUp('login');
255
265
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ordering-ui-external",
3
- "version": "10.7.1",
3
+ "version": "10.7.3",
4
4
  "description": "Ordering UI Components",
5
5
  "main": "./_modules/index.js",
6
6
  "exports": {
@@ -88,7 +88,7 @@
88
88
  "lodash": "^4.17.19",
89
89
  "moment": "^2.29.4",
90
90
  "nanoid": "^4.0.0",
91
- "ordering-components-external": "9.7.1",
91
+ "ordering-components-external": "9.7.2",
92
92
  "payment": "^2.4.6",
93
93
  "polished": "^3.6.6",
94
94
  "react-bootstrap-icons": "^1.7.2",
@@ -50,7 +50,8 @@ export const Header = (props) => {
50
50
  location,
51
51
  isShowOrderOptions,
52
52
  isHideSignup,
53
- isCustomerMode
53
+ isCustomerMode,
54
+ isShowRedirectButton
54
55
  } = props
55
56
 
56
57
  const { pathname } = useLocation()
@@ -225,6 +226,16 @@ export const Header = (props) => {
225
226
  {onlineStatus && (
226
227
  <RightHeader>
227
228
  <Menu>
229
+ {isShowRedirectButton && (
230
+ <MenuLink
231
+ onClick={() => window.open(`${t('CALL_CENTER_REDIRECT_URL', '#')}`)}
232
+ highlight={1}
233
+ style={{ whiteSpace: 'nowrap' }}
234
+ name='redirect'
235
+ >
236
+ {t('CALL_CENTER_REDIRECT_BUTTON', 'Call Center')}
237
+ </MenuLink>
238
+ )}
228
239
  {
229
240
  !auth && windowSize.width > 920 && (
230
241
  <>