@tripian/react 4.6.5 → 5.0.3
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/DatePicker/DatePicker.d.ts +2 -0
- package/components/FormTemplate/FormTemplateLogin/FormTemplateLogin.d.ts +9 -0
- package/components/FormTemplate/FormTemplateNewPassword/FormTemplateNewPassword.d.ts +8 -0
- package/components/FormTemplate/FormTemplateProfile/FormTemplateProfile.d.ts +1 -0
- package/components/FormTemplate/FormTemplateRegister/FormTemplateRegister.d.ts +2 -2
- package/components/FormTemplate/FormTemplateResetPassword/FormTemplateResetPassword.d.ts +8 -0
- package/components/OfferCard/OfferCard.d.ts +8 -0
- package/components/OfferRefCard/OfferRefCard.d.ts +9 -0
- package/components/PoiInfo/PoiInfo.d.ts +1 -0
- package/components/SocialLogin/SocialLogin.d.ts +9 -0
- package/components/base/CheckboxTree/CheckboxTree.d.ts +1 -1
- package/components/base/Svg/Icons/Apple.d.ts +8 -0
- package/components/base/Svg/Icons/Facebook.d.ts +8 -0
- package/components/base/Svg/Icons/Google.d.ts +8 -0
- package/components/base/Svg/Svg.d.ts +1 -1
- package/index.d.ts +3 -1
- package/index.js +1887 -1365
- package/index.js.map +1 -1
- package/min.css +1 -7898
- package/package.json +2 -2
- package/components/GoogleMaps/GMarker/Base/GMarkerCarRentBase/GMarkerCarRentBase.d.ts +0 -12
- package/components/GoogleMaps/GMarker/GMarkerCarRentProduct.d.ts +0 -12
- package/img/c333890c3b6ce527a1a114eb30958094.svg +0 -43
|
@@ -7,6 +7,8 @@ interface IDatePickerTemplate {
|
|
|
7
7
|
onchanged: (date: moment.Moment | null) => void;
|
|
8
8
|
startDate?: moment.Moment;
|
|
9
9
|
endDate?: moment.Moment;
|
|
10
|
+
openDirection?: 'down' | 'up';
|
|
11
|
+
showMonthSelection?: boolean;
|
|
10
12
|
}
|
|
11
13
|
declare const DatePicker: React.FC<IDatePickerTemplate>;
|
|
12
14
|
export default DatePicker;
|
|
@@ -5,6 +5,15 @@ interface IFormTemplateLogin {
|
|
|
5
5
|
successLogin: (token: Model.Token) => void;
|
|
6
6
|
reCaptchaSiteKey: string;
|
|
7
7
|
showCaptcha: boolean;
|
|
8
|
+
forgotPassword: () => void;
|
|
9
|
+
socialLogin: {
|
|
10
|
+
cognitoDomain: string;
|
|
11
|
+
region: string;
|
|
12
|
+
baseDomain: string;
|
|
13
|
+
clientId: string;
|
|
14
|
+
};
|
|
15
|
+
showRegister?: boolean;
|
|
16
|
+
signUpButtonCallBack: () => void;
|
|
8
17
|
}
|
|
9
18
|
declare const FormTemplateLogin: React.FC<IFormTemplateLogin>;
|
|
10
19
|
export default FormTemplateLogin;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Model from '@tripian/model';
|
|
3
|
+
interface IFormTemplateNewPassword {
|
|
4
|
+
passwordCallBack: (password: string) => Promise<Model.UserResetPassword>;
|
|
5
|
+
success: (user: Model.UserResetPassword) => void;
|
|
6
|
+
}
|
|
7
|
+
declare const FormTemplateNewPassword: React.FC<IFormTemplateNewPassword>;
|
|
8
|
+
export default FormTemplateNewPassword;
|
|
@@ -6,6 +6,7 @@ interface IFormTemplateProfile {
|
|
|
6
6
|
updateUser: (userUpdateRequest: Model.UserUpdateRequest) => Promise<Model.User>;
|
|
7
7
|
updateCallback: (updatedUser: Model.User) => void;
|
|
8
8
|
cancel: (value: Model.User) => void;
|
|
9
|
+
isSocialUser: boolean;
|
|
9
10
|
}
|
|
10
11
|
declare const FormTemplateProfile: React.FC<IFormTemplateProfile>;
|
|
11
12
|
export default FormTemplateProfile;
|
|
@@ -2,8 +2,8 @@ import React from 'react';
|
|
|
2
2
|
import Model from '@tripian/model';
|
|
3
3
|
interface IFormTemplateRegister {
|
|
4
4
|
profileQuestions?: Model.Question[];
|
|
5
|
-
register: (value: Model.
|
|
6
|
-
successRegister: (
|
|
5
|
+
register: (value: Model.RegisterRequest) => Promise<Model.Token>;
|
|
6
|
+
successRegister: (userEmail: string, token: Model.Token) => void;
|
|
7
7
|
reCaptchaSiteKey: string;
|
|
8
8
|
showProfileQuestions?: boolean;
|
|
9
9
|
showCaptcha: boolean;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Model from '@tripian/model';
|
|
3
|
+
interface IFormTemplateResetPassword {
|
|
4
|
+
emailCallBack: (email: string) => Promise<Model.UserResetPassword>;
|
|
5
|
+
success: (user: Model.UserResetPassword) => void;
|
|
6
|
+
}
|
|
7
|
+
declare const FormTemplateResetPassword: React.FC<IFormTemplateResetPassword>;
|
|
8
|
+
export default FormTemplateResetPassword;
|
|
@@ -21,6 +21,7 @@ interface IPoiInfo {
|
|
|
21
21
|
getTourInfo?: (productId: string) => void;
|
|
22
22
|
TOUR_PROVIDER_ID?: Model.PROVIDER_ID;
|
|
23
23
|
TICKET_PROVIDER_ID?: Model.PROVIDER_ID;
|
|
24
|
+
offerButtonClick?: (offerId: number, offerClaimDate: string) => void;
|
|
24
25
|
}
|
|
25
26
|
declare const PoiInfo: React.FC<IPoiInfo>;
|
|
26
27
|
export default PoiInfo;
|
|
@@ -3,7 +3,7 @@ import Model from '@tripian/model';
|
|
|
3
3
|
interface ICheckboxTree {
|
|
4
4
|
domId: string;
|
|
5
5
|
text: string;
|
|
6
|
-
subOptions: Array<Model.
|
|
6
|
+
subOptions: Array<Model.SubAnswer>;
|
|
7
7
|
style?: React.CSSProperties;
|
|
8
8
|
checkeds: Array<number>;
|
|
9
9
|
onChangeParent: (checked: boolean, domId: string) => void;
|
package/index.d.ts
CHANGED
|
@@ -24,8 +24,10 @@ import FlightCard from './components/FlightCard/FlightCard';
|
|
|
24
24
|
import FormTemplateAgent from './components/FormTemplate/FormTemplateAgent/FormTemplateAgent';
|
|
25
25
|
import FormTemplateCompanion from './components/FormTemplate/FormTemplateCompanion/FormTemplateCompanion';
|
|
26
26
|
import FormTemplateLogin from './components/FormTemplate/FormTemplateLogin/FormTemplateLogin';
|
|
27
|
+
import FormTemplateNewPassword from './components/FormTemplate/FormTemplateNewPassword/FormTemplateNewPassword';
|
|
27
28
|
import FormTemplateProfile from './components/FormTemplate/FormTemplateProfile/FormTemplateProfile';
|
|
28
29
|
import FormTemplateRegister from './components/FormTemplate/FormTemplateRegister/FormTemplateRegister';
|
|
30
|
+
import FormTemplateResetPassword from './components/FormTemplate/FormTemplateResetPassword/FormTemplateResetPassword';
|
|
29
31
|
import FormTemplateTrip from './components/FormTemplate/FormTemplateTrip/FormTemplateTrip';
|
|
30
32
|
import FormTemplateTrip2 from './components/FormTemplate/FormTemplateTrip2/FormTemplateTrip2';
|
|
31
33
|
import GoogleMaps from './components/GoogleMaps/GoogleMaps';
|
|
@@ -87,4 +89,4 @@ import UserCompanions from './components/UserCompanions/UserCompanions';
|
|
|
87
89
|
import QuestionTemplate from './components/QuestionTemplate/QuestionTemplate';
|
|
88
90
|
import BookingDetails from './providers/gyg/components/BookingDetails/BookingDetails';
|
|
89
91
|
import Accordion from './components/base/Accordion/Accordion';
|
|
90
|
-
export { Accordion, AccommendationCard, AccommendationInfo, Backdrop, BbAccommodationInfo, BbCarRentInfo, BbTourCard, BbTourInfo, Booking, BookingDetails, Button, ButtonIcons, BUTTON_TYPES, ButterflyCard, ButterflyCardSlider, CardSlider, Checkbox, CloseIconButton, ConfirmModalPopup, DatePicker, DateRangePicker, DirectionInfo, Dropdown, FlightCard, FormTemplateAgent, FormTemplateCompanion, FormTemplateLogin, FormTemplateProfile, FormTemplateRegister, FormTemplateTrip, FormTemplateTrip2, GlxTourCard, GlxTourInfo, GoogleMaps, GoogleMapsPoiInfo, GygTourCard, GygTourInfo, IconImage, Img, ImgLazy, Label, Loading, Modal, ModalFull, MustTryCard, NumberCounter, NumberInput, Notification, OpeningsForm, PageLoading, PlanChangeDay, PoiCategories, PoiInfo, PoiInfoImage, PoiInfoText, PoiListCard, PoiListSearch, PoiRefCard, PreLoading, Price, ProgressLoading, ProgressAppLoading, RadioButtonGroup, RatingStars, RefCard, ReservationDetails, RouteResult, RSelect, SearchThisArea, SideNavigation, StepAlternativeCard, StepCard, StepCardUserReaction, StepInfo, StepTimeframe, Svg, Switch, SvgIcons, QuestionTemplate, TabMenu, TasteCard, TasteCard2, TasteInfo, TextField, TourRefCard, TourRefCardProduct, TripCard, UserCompanions, };
|
|
92
|
+
export { Accordion, AccommendationCard, AccommendationInfo, Backdrop, BbAccommodationInfo, BbCarRentInfo, BbTourCard, BbTourInfo, Booking, BookingDetails, Button, ButtonIcons, BUTTON_TYPES, ButterflyCard, ButterflyCardSlider, CardSlider, Checkbox, CloseIconButton, ConfirmModalPopup, DatePicker, DateRangePicker, DirectionInfo, Dropdown, FlightCard, FormTemplateAgent, FormTemplateCompanion, FormTemplateLogin, FormTemplateNewPassword, FormTemplateProfile, FormTemplateRegister, FormTemplateResetPassword, FormTemplateTrip, FormTemplateTrip2, GlxTourCard, GlxTourInfo, GoogleMaps, GoogleMapsPoiInfo, GygTourCard, GygTourInfo, IconImage, Img, ImgLazy, Label, Loading, Modal, ModalFull, MustTryCard, NumberCounter, NumberInput, Notification, OpeningsForm, PageLoading, PlanChangeDay, PoiCategories, PoiInfo, PoiInfoImage, PoiInfoText, PoiListCard, PoiListSearch, PoiRefCard, PreLoading, Price, ProgressLoading, ProgressAppLoading, RadioButtonGroup, RatingStars, RefCard, ReservationDetails, RouteResult, RSelect, SearchThisArea, SideNavigation, StepAlternativeCard, StepCard, StepCardUserReaction, StepInfo, StepTimeframe, Svg, Switch, SvgIcons, QuestionTemplate, TabMenu, TasteCard, TasteCard2, TasteInfo, TextField, TourRefCard, TourRefCardProduct, TripCard, UserCompanions, };
|