@tripian/react 8.0.4 → 8.0.7

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
 
@@ -8218,6 +8218,7 @@ var $concat = bind.call(Function.call, Array.prototype.concat);
8218
8218
  var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
8219
8219
  var $replace = bind.call(Function.call, String.prototype.replace);
8220
8220
  var $strSlice = bind.call(Function.call, String.prototype.slice);
8221
+ var $exec = bind.call(Function.call, RegExp.prototype.exec);
8221
8222
 
8222
8223
  /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
8223
8224
  var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
@@ -8273,6 +8274,9 @@ module.exports = function GetIntrinsic(name, allowMissing) {
8273
8274
  throw new $TypeError('"allowMissing" argument must be a boolean');
8274
8275
  }
8275
8276
 
8277
+ if ($exec(/^%?[^%]*%?$/g, name) === null) {
8278
+ throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
8279
+ }
8276
8280
  var parts = stringToPath(name);
8277
8281
  var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
8278
8282
 
@@ -25723,9 +25727,9 @@ var PoiRefCard_scss_1 = __importDefault(__webpack_require__(816));
25723
25727
  var PoiRefCard = function (_a) {
25724
25728
  var poi = _a.poi, inStep = _a.inStep, isRecommendation = _a.isRecommendation, dayNumbers = _a.dayNumbers, buttonType = _a.buttonType, poiCardClicked = _a.poiCardClicked, addRemoveAlternativePoi = _a.addRemoveAlternativePoi, TOUR_PROVIDER_IDS = _a.TOUR_PROVIDER_IDS, TICKET_PROVIDER_IDS = _a.TICKET_PROVIDER_IDS, RESTAURANT_RESERVATION_PROVIDER_IDS = _a.RESTAURANT_RESERVATION_PROVIDER_IDS, _b = _a.hideReservationIcon, hideReservationIcon = _b === void 0 ? false : _b, _c = _a.hideTourTicketIcons, hideTourTicketIcons = _c === void 0 ? false : _c, hideOfferIcon = _a.hideOfferIcon;
25725
25729
  var PoiImage = model_1.helper.imgUrl("".concat(poi.image.url), 84, 84);
25726
- var buton;
25730
+ var actionButton;
25727
25731
  if (buttonType === 0) {
25728
- buton = (react_1.default.createElement(Replace_1.default
25732
+ actionButton = (react_1.default.createElement(Replace_1.default
25729
25733
  // color="primary"
25730
25734
  , {
25731
25735
  // color="primary"
@@ -25736,7 +25740,7 @@ var PoiRefCard = function (_a) {
25736
25740
  } }));
25737
25741
  }
25738
25742
  else if (buttonType === -1 || inStep) {
25739
- buton = (react_1.default.createElement(Remove_1.default
25743
+ actionButton = (react_1.default.createElement(Remove_1.default
25740
25744
  // color="primary"
25741
25745
  , {
25742
25746
  // color="primary"
@@ -25747,7 +25751,7 @@ var PoiRefCard = function (_a) {
25747
25751
  } }));
25748
25752
  }
25749
25753
  else if (buttonType === +1) {
25750
- buton = (react_1.default.createElement(Add_1.default, { type: ButtonTypes_1.default.OUTLINED,
25754
+ actionButton = (react_1.default.createElement(Add_1.default, { type: ButtonTypes_1.default.OUTLINED,
25751
25755
  // color="primary"
25752
25756
  onClick: function (event) {
25753
25757
  event.stopPropagation();
@@ -25790,7 +25794,7 @@ var PoiRefCard = function (_a) {
25790
25794
  model_1.helper.offerAvailable(poi.offers) && !hideOfferIcon && (react_1.default.createElement("div", { className: PoiRefCard_scss_1.default.poiAbilityItem },
25791
25795
  react_1.default.createElement(Offer_1.default, null)))))),
25792
25796
  isRecommendation ? react_1.default.createElement("div", { className: PoiRefCard_scss_1.default.correct }) : null),
25793
- buttonType && react_1.default.createElement("div", { className: PoiRefCard_scss_1.default.button }, buton)))));
25797
+ actionButton && react_1.default.createElement("div", { className: PoiRefCard_scss_1.default.button }, actionButton)))));
25794
25798
  };
25795
25799
  exports.default = PoiRefCard;
25796
25800