@tripian/react 8.2.5 → 8.3.0

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.
@@ -27,7 +27,7 @@ interface IGoogleMaps {
27
27
  carRentOffers?: Providers.Bb.SearchCarRentOffer[];
28
28
  cityBounds: google.maps.LatLngBoundsLiteral;
29
29
  setLegs: (legs: ILeg[]) => void;
30
- focusMarkerStepOrPoiId?: number;
30
+ focusMarkerStepOrPoiId?: number | string;
31
31
  focusMarkerProviderPoiCode?: string;
32
32
  focusMarkerCarRentLocationCode?: string;
33
33
  mapClicked: (e: any) => void;
@@ -1,14 +1,15 @@
1
1
  import React from 'react';
2
2
  interface IOPenedHours {
3
- hourStr: string | null;
3
+ hourStr: string;
4
4
  planDate?: string;
5
5
  }
6
- export declare const HourItem: React.FC<{
6
+ interface IHourItem {
7
7
  hour: {
8
8
  day: string;
9
9
  clock: string[];
10
10
  };
11
- lineHeight?: React.Key;
12
- }>;
11
+ lineHeight?: string;
12
+ }
13
+ export declare const HourItem: React.FC<IHourItem>;
13
14
  declare const OpenedHours: React.FC<IOPenedHours>;
14
15
  export default OpenedHours;
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
 
@@ -75041,7 +75045,7 @@ var GoogleMaps = function (_a) {
75041
75045
  react_1.default.createElement(api_1.GoogleMap, { id: "tripian-map", options: googleMapsOptions, onCenterChanged: onCenterChanged, onZoomChanged: onZoomChanged, onClick: onClick, onLoad: onMapLoad },
75042
75046
  stepMarkers,
75043
75047
  GRouteMemo,
75044
- alternativePois.map(function (alternativePoi) { return (react_1.default.createElement(GMarker_1.default, { key: "alternative_marker_".concat(alternativePoi.id), poi: alternativePoi, markerPoiClicked: markerAlternativeClicked, animation: focusMarkerStepOrPoiId === alternativePoi.id ? 1 : 2 })); }),
75048
+ alternativePois.map(function (alternativePoi) { return (react_1.default.createElement(GMarker_1.default, { key: "alternative_marker_".concat(alternativePoi.id), poi: alternativePoi, markerPoiClicked: markerAlternativeClicked, animation: (focusMarkerStepOrPoiId === null || focusMarkerStepOrPoiId === void 0 ? void 0 : focusMarkerStepOrPoiId.toString()) === alternativePoi.id ? 1 : 2 })); }),
75045
75049
  searchPoi && alternativePois.findIndex(function (alternativePoi) { return alternativePoi.id === searchPoi.id; }) === -1 ? react_1.default.createElement(GMarker_1.default, { key: "search_poi_marker_".concat(searchPoi.id), poi: searchPoi, animation: 1 }) : 2,
75046
75050
  searchAreaPois ? (react_1.default.createElement(api_1.MarkerClusterer, { options: { imagePath: markerClustererIconsImagePath } }, function (clusterer) { return (react_1.default.createElement(react_1.default.Fragment, null, searchAreaPois.map(function (searchAreaPoi) { return (react_1.default.createElement(GMarker_1.default, { key: "marker_cluster_".concat(searchAreaPoi.id), poi: searchAreaPoi, clusterer: clusterer, markerPoiClicked: markerSearchThisAreaClicked })); }))); })) : null,
75047
75051
  providersPois &&