@tripian/react 6.0.49 → 6.0.51

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.
package/index.js CHANGED
@@ -96,7 +96,7 @@ module.exports = require("react");
96
96
  /***/ (function(module, exports, __webpack_require__) {
97
97
 
98
98
  /* WEBPACK VAR INJECTION */(function(module) {var require;//! moment.js
99
- //! version : 2.29.3
99
+ //! version : 2.29.4
100
100
  //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
101
101
  //! license : MIT
102
102
  //! momentjs.com
@@ -2550,7 +2550,7 @@ module.exports = require("react");
2550
2550
  function preprocessRFC2822(s) {
2551
2551
  // Remove comments and folding whitespace and replace multiple-spaces with a single space
2552
2552
  return s
2553
- .replace(/\([^)]*\)|[\n\t]/g, ' ')
2553
+ .replace(/\([^()]*\)|[\n\t]/g, ' ')
2554
2554
  .replace(/(\s\s+)/g, ' ')
2555
2555
  .replace(/^\s\s*/, '')
2556
2556
  .replace(/\s\s*$/, '');
@@ -5731,7 +5731,7 @@ module.exports = require("react");
5731
5731
 
5732
5732
  //! moment.js
5733
5733
 
5734
- hooks.version = '2.29.3';
5734
+ hooks.version = '2.29.4';
5735
5735
 
5736
5736
  setHookCallback(createLocal);
5737
5737
 
@@ -6234,6 +6234,7 @@ var $concat = bind.call(Function.call, Array.prototype.concat);
6234
6234
  var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
6235
6235
  var $replace = bind.call(Function.call, String.prototype.replace);
6236
6236
  var $strSlice = bind.call(Function.call, String.prototype.slice);
6237
+ var $exec = bind.call(Function.call, RegExp.prototype.exec);
6237
6238
 
6238
6239
  /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
6239
6240
  var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
@@ -6289,6 +6290,9 @@ module.exports = function GetIntrinsic(name, allowMissing) {
6289
6290
  throw new $TypeError('"allowMissing" argument must be a boolean');
6290
6291
  }
6291
6292
 
6293
+ if ($exec(/^%?[^%]*%?$/g, name) === null) {
6294
+ throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
6295
+ }
6292
6296
  var parts = stringToPath(name);
6293
6297
  var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
6294
6298
 
@@ -75484,7 +75488,7 @@ var OpenedHours = function (_a) {
75484
75488
  var date = planDate ? (0, moment_1.default)(planDate).format('ddd') : (0, moment_1.default)().format('ddd');
75485
75489
  var findToday = hours === null || hours === void 0 ? void 0 : hours.find(function (hour) { return hour.day === date; });
75486
75490
  return (react_1.default.createElement("div", { className: OpenedHours_scss_1.default.openedHours },
75487
- react_1.default.createElement("div", null, showHours ? hours.map(function (h, i) { return react_1.default.createElement(exports.HourItem, { key: "".concat(h.day, "-").concat(i), hour: h, lineHeight: "35px" }); }) : react_1.default.createElement(exports.HourItem, { hour: findToday || hours[0] })),
75491
+ react_1.default.createElement("div", { className: OpenedHours_scss_1.default.hourContent }, showHours ? hours.map(function (h, i) { return react_1.default.createElement(exports.HourItem, { key: "".concat(h.day, "-").concat(i), hour: h, lineHeight: "35px" }); }) : react_1.default.createElement(exports.HourItem, { hour: findToday || hours[0] })),
75488
75492
  react_1.default.createElement("div", { className: OpenedHours_scss_1.default.exploreButton, role: "button", tabIndex: 0, onKeyPress: function () { }, onClick: function () { return setShowHours(!showHours); } }, showHours ? 'Close' : 'Explore')));
75489
75493
  };
75490
75494
  exports.default = OpenedHours;
@@ -75495,7 +75499,7 @@ exports.default = OpenedHours;
75495
75499
  /***/ (function(module, exports, __webpack_require__) {
75496
75500
 
75497
75501
  // extracted by mini-css-extract-plugin
75498
- module.exports = {"openedHours":"components-PoiInfo-PoiInfoText-OpenedHours-OpenedHours__openedHours--2aBMP","hourItem":"components-PoiInfo-PoiInfoText-OpenedHours-OpenedHours__hourItem--UgCwA","day":"components-PoiInfo-PoiInfoText-OpenedHours-OpenedHours__day--2myKO","clock":"components-PoiInfo-PoiInfoText-OpenedHours-OpenedHours__clock--2YPBt","exploreButton":"components-PoiInfo-PoiInfoText-OpenedHours-OpenedHours__exploreButton--1kGGI"};
75502
+ module.exports = {"openedHours":"components-PoiInfo-PoiInfoText-OpenedHours-OpenedHours__openedHours--2aBMP","hourContent":"components-PoiInfo-PoiInfoText-OpenedHours-OpenedHours__hourContent--L-tp8","hourItem":"components-PoiInfo-PoiInfoText-OpenedHours-OpenedHours__hourItem--UgCwA","day":"components-PoiInfo-PoiInfoText-OpenedHours-OpenedHours__day--2myKO","clock":"components-PoiInfo-PoiInfoText-OpenedHours-OpenedHours__clock--2YPBt","exploreButton":"components-PoiInfo-PoiInfoText-OpenedHours-OpenedHours__exploreButton--1kGGI"};
75499
75503
 
75500
75504
  /***/ }),
75501
75505
  /* 767 */