ordering-ui-external 7.0.1 → 7.0.2

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.
@@ -58,7 +58,7 @@ var RedeemGiftCardUI = function RedeemGiftCardUI(props) {
58
58
  string = string.replace(/-/g, '');
59
59
  if (!string) return;
60
60
  var codeSlices = string.match(/.{1,4}/g);
61
- string = codeSlices.join('-');
61
+ string = codeSlices.join('-').toUpperCase();
62
62
  codeRef.current.value = string;
63
63
  };
64
64
  (0, _react.useEffect)(function () {
@@ -92,7 +92,7 @@ var RedeemGiftCardUI = function RedeemGiftCardUI(props) {
92
92
  autoComplete: "off",
93
93
  ref: codeRef,
94
94
  onChange: function onChange(e) {
95
- _onChange(e.target.value);
95
+ _onChange(e.target.value.toUpperCase());
96
96
  handleChangeCode(e);
97
97
  }
98
98
  });
@@ -89,7 +89,8 @@ var LastOrders = function LastOrders(props) {
89
89
  initialPage: 1,
90
90
  pageSize: 1,
91
91
  controlType: 'infinity'
92
- }
92
+ },
93
+ noGiftCardOrders: true
93
94
  });
94
95
  return /*#__PURE__*/_react.default.createElement(_orderingComponentsExternal.OrderList, lastOrdersProps);
95
96
  };
@@ -117,6 +117,7 @@ var OrderProgress = function OrderProgress(props) {
117
117
  UIComponent: OrderProgressUI,
118
118
  orderStatus: [0, 3, 4, 7, 8, 9, 13, 14, 18, 19, 20, 21, 22, 23],
119
119
  useDefualtSessionManager: true,
120
+ noGiftCardOrders: true,
120
121
  paginationSettings: {
121
122
  initialPage: 1,
122
123
  pageSize: 10,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ordering-ui-external",
3
- "version": "7.0.1",
3
+ "version": "7.0.2",
4
4
  "description": "Ordering UI Components",
5
5
  "main": "./_modules/index.js",
6
6
  "exports": {
@@ -87,7 +87,7 @@
87
87
  "lodash": "^4.17.19",
88
88
  "moment": "^2.29.4",
89
89
  "nanoid": "^4.0.0",
90
- "ordering-components-external": "6.0.0",
90
+ "ordering-components-external": "6.0.1",
91
91
  "payment": "^2.4.6",
92
92
  "polished": "^3.6.6",
93
93
  "react-bootstrap-icons": "^1.7.2",
@@ -35,7 +35,7 @@ const RedeemGiftCardUI = (props) => {
35
35
  string = string.replace(/-/g, '')
36
36
  if (!string) return
37
37
  const codeSlices = string.match(/.{1,4}/g)
38
- string = codeSlices.join('-')
38
+ string = codeSlices.join('-').toUpperCase()
39
39
  codeRef.current.value = string
40
40
  }
41
41
 
@@ -73,7 +73,7 @@ const RedeemGiftCardUI = (props) => {
73
73
  autoComplete='off'
74
74
  ref={codeRef}
75
75
  onChange={e => {
76
- onChange(e.target.value)
76
+ onChange((e.target.value).toUpperCase())
77
77
  handleChangeCode(e)
78
78
  }}
79
79
  />
@@ -83,7 +83,8 @@ export const LastOrders = (props) => {
83
83
  initialPage: 1,
84
84
  pageSize: 1,
85
85
  controlType: 'infinity'
86
- }
86
+ },
87
+ noGiftCardOrders: true
87
88
  }
88
89
  return <OrderListController {...lastOrdersProps} />
89
90
  }
@@ -137,6 +137,7 @@ export const OrderProgress = (props) => {
137
137
  UIComponent: OrderProgressUI,
138
138
  orderStatus: [0, 3, 4, 7, 8, 9, 13, 14, 18, 19, 20, 21, 22, 23],
139
139
  useDefualtSessionManager: true,
140
+ noGiftCardOrders: true,
140
141
  paginationSettings: {
141
142
  initialPage: 1,
142
143
  pageSize: 10,