@tripian/react 8.2.5 → 9.0.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.
- package/components/DestinationSelect/DestinationSelect.d.ts +1 -1
- package/components/FormTemplate/FormTemplateTripNext/model.d.ts +2 -2
- package/components/FormTemplate/FormTemplateTripNextWidget/model.d.ts +2 -2
- package/components/GoogleMaps/GoogleMaps.d.ts +1 -1
- package/components/PoiInfo/PoiInfoText/OpenedHours/OpenedHours.d.ts +5 -4
- package/components/PoiInfo/PoiInfoText/PoiInfoTextRow/PoiInfoTextRow.d.ts +1 -1
- package/components/SocialLogin/SocialLogin.d.ts +1 -1
- package/components/SocialLoginEx/SocialLogin.d.ts +1 -1
- package/components/base/CustomPopover/CustomPopover.d.ts +1 -1
- package/components/base/InfoBox/InfoBox.d.ts +1 -1
- package/components/base/RSelect/RSelect.d.ts +1 -1
- package/components/base/Required/Required.d.ts +1 -1
- package/index.js +9 -5
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/providers/gyg/components/GygTourInfo/GygTourShoppingForm/timezones.d.ts +1 -1
- package/providers/gyg/components/GygTourInfoEx/GygTourInfoForm/GygTourShoppingForm/timezones.d.ts +1 -1
- /package/components/{Feedback → FeedBack}/Feedback.d.ts +0 -0
- /package/components/{Feedback → FeedBack}/UserFeedbacks/UserFeedbacks.d.ts +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import Model from '@tripian/model';
|
|
2
|
-
|
|
2
|
+
type QuestionAnswerNext = {
|
|
3
3
|
id: number;
|
|
4
4
|
name: string;
|
|
5
5
|
description: string;
|
|
6
6
|
subAnswers: Model.SubAnswer[];
|
|
7
7
|
};
|
|
8
|
-
export
|
|
8
|
+
export type QuestionNext = {
|
|
9
9
|
id: number;
|
|
10
10
|
name: string;
|
|
11
11
|
order: number;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import Model from '@tripian/model';
|
|
2
|
-
|
|
2
|
+
type QuestionAnswerNext = {
|
|
3
3
|
id: number;
|
|
4
4
|
name: string;
|
|
5
5
|
description: string;
|
|
6
6
|
subAnswers: Model.SubAnswer[];
|
|
7
7
|
};
|
|
8
|
-
export
|
|
8
|
+
export type QuestionNext = {
|
|
9
9
|
id: number;
|
|
10
10
|
name: string;
|
|
11
11
|
order: number;
|
|
@@ -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
|
|
3
|
+
hourStr: string;
|
|
4
4
|
planDate?: string;
|
|
5
5
|
}
|
|
6
|
-
|
|
6
|
+
interface IHourItem {
|
|
7
7
|
hour: {
|
|
8
8
|
day: string;
|
|
9
9
|
clock: string[];
|
|
10
10
|
};
|
|
11
|
-
lineHeight?:
|
|
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;
|
|
@@ -7,6 +7,6 @@ interface ICustomPopover {
|
|
|
7
7
|
content: JSX.Element;
|
|
8
8
|
children: JSX.Element;
|
|
9
9
|
}
|
|
10
|
-
export
|
|
10
|
+
export type Ref = HTMLButtonElement;
|
|
11
11
|
declare const CustomPopover: React.ForwardRefExoticComponent<ICustomPopover & React.RefAttributes<HTMLButtonElement>>;
|
|
12
12
|
export default CustomPopover;
|
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.
|
|
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.
|
|
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
|
|
|
@@ -22525,7 +22529,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
22525
22529
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
22526
22530
|
function step(op) {
|
|
22527
22531
|
if (f) throw new TypeError("Generator is already executing.");
|
|
22528
|
-
while (_) try {
|
|
22532
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
22529
22533
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
22530
22534
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
22531
22535
|
switch (op[0]) {
|
|
@@ -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 &&
|