@qite/tide-booking-component 1.4.59 → 1.4.60

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.
Files changed (26) hide show
  1. package/build/build-cjs/index.js +4048 -386
  2. package/build/build-cjs/src/booking-wizard/features/sidebar/sidebar-util.d.ts +1 -0
  3. package/build/build-cjs/src/booking-wizard/types.d.ts +1 -0
  4. package/build/build-cjs/src/content/login/confirm-component.d.ts +4 -0
  5. package/build/build-cjs/src/content/login/index.d.ts +4 -0
  6. package/build/build-cjs/src/content/login/login-component.d.ts +4 -0
  7. package/build/build-cjs/src/content/login/login-services.d.ts +11 -0
  8. package/build/build-cjs/src/content/login/reset-password-component.d.ts +4 -0
  9. package/build/build-cjs/src/content/login/types.d.ts +24 -0
  10. package/build/build-cjs/src/index.d.ts +3 -1
  11. package/build/build-cjs/src/shared/utils/localization-util.d.ts +34 -0
  12. package/build/build-esm/index.js +4034 -389
  13. package/build/build-esm/src/booking-wizard/features/sidebar/sidebar-util.d.ts +1 -0
  14. package/build/build-esm/src/booking-wizard/types.d.ts +1 -0
  15. package/build/build-esm/src/content/login/confirm-component.d.ts +4 -0
  16. package/build/build-esm/src/content/login/index.d.ts +4 -0
  17. package/build/build-esm/src/content/login/login-component.d.ts +4 -0
  18. package/build/build-esm/src/content/login/login-services.d.ts +11 -0
  19. package/build/build-esm/src/content/login/reset-password-component.d.ts +4 -0
  20. package/build/build-esm/src/content/login/types.d.ts +24 -0
  21. package/build/build-esm/src/index.d.ts +3 -1
  22. package/build/build-esm/src/shared/utils/localization-util.d.ts +34 -0
  23. package/package.json +1 -1
  24. package/src/booking-wizard/features/sidebar/sidebar.tsx +0 -3
  25. package/src/qsm/components/QSMContainer/qsm-container.tsx +1 -1
  26. package/src/shared/components/flyin.tsx +8 -2
@@ -12,3 +12,4 @@ export declare const getFlightText: (firstFlight: FlightLine | undefined, lastFl
12
12
  export declare const getAirlines: (flightLines: FlightLine[] | undefined) => string;
13
13
  export declare const getFlightHours: (firstFlight: FlightLine | undefined, lastFlight: FlightLine | undefined) => string;
14
14
  export declare const parseFlightLines: (metaDatas: BookingPackageFlightMetaData) => FlightLine[] | undefined;
15
+ export declare const getPaxTypeTranslation: (translations: Record<string, any>, paxType: string, numberOfPax: number) => string;
@@ -294,4 +294,5 @@ export interface PriceDetailsPerPaxType {
294
294
  numberOfPax: number;
295
295
  description: string;
296
296
  price: number;
297
+ paxIds: number[];
297
298
  }
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { LoginComponentProps } from './types';
3
+ declare const ConfirmComponent: React.FC<LoginComponentProps>;
4
+ export default ConfirmComponent;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { LoginProps } from './types';
3
+ declare const Login: React.FC<LoginProps>;
4
+ export default Login;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { LoginComponentProps } from './types';
3
+ declare const LoginComponent: React.FC<LoginComponentProps>;
4
+ export default LoginComponent;
@@ -0,0 +1,11 @@
1
+ import { TideClientConfig, MemberInfo } from '@qite/tide-client';
2
+ export declare const loginMember: (
3
+ username: string,
4
+ password: string,
5
+ tideClientConfig: TideClientConfig,
6
+ portalId: number
7
+ ) => Promise<import('@qite/tide-client').MemberLoginResponse>;
8
+ export declare const confirmMember: (token: string, password: string, hasAgreed: boolean, tideClientConfig: TideClientConfig) => Promise<Response>;
9
+ export declare const passwordForgotten: (username: string, tideClientConfig: TideClientConfig, portalId: number) => Promise<boolean>;
10
+ export declare const newPassword: (token: string, password: string, tideClientConfig: TideClientConfig) => Promise<boolean>;
11
+ export declare const decodeTokenToMemberInfo: (token: string | null) => MemberInfo | undefined;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { LoginComponentProps } from './types';
3
+ declare const ResetPasswordComponent: React.FC<LoginComponentProps>;
4
+ export default ResetPasswordComponent;
@@ -0,0 +1,24 @@
1
+ import { MemberInfo, TideClientConfig } from '@qite/tide-client';
2
+ export interface LoginProps {
3
+ tideClientConfig: TideClientConfig;
4
+ portalId: number;
5
+ languageCode: string;
6
+ imageSrc?: string;
7
+ logo?: React.ReactNode;
8
+ isLoginPage: boolean;
9
+ isMemberConfirmation: boolean;
10
+ isResetPassword: boolean;
11
+ member?: MemberInfo;
12
+ setMember: (member: MemberInfo) => void;
13
+ handleBackToHome: () => void;
14
+ handleBackToLogin: () => void;
15
+ }
16
+ export interface LoginComponentProps {
17
+ tideClientConfig: TideClientConfig;
18
+ portalId: number;
19
+ languageCode: string;
20
+ member?: MemberInfo;
21
+ setMember: (member: MemberInfo) => void;
22
+ handleBackToHome: () => void;
23
+ handleBackToLogin: () => void;
24
+ }
@@ -6,11 +6,13 @@ import Footer from './content/footer';
6
6
  import QSM from './qsm';
7
7
  import SearchResults from './search-results';
8
8
  import ImageCardGrid from './content/image-card-grid';
9
+ import Login from './content/login';
9
10
  export * from './content/navbar/types';
10
11
  export * from './content/header/types';
11
12
  export * from './content/footer/types';
12
13
  export * from './content/image-card-grid/types';
14
+ export * from './content/login/types';
13
15
  export * from './search-results/types';
14
16
  export * from './qsm/types';
15
17
  export * from './shared/types';
16
- export { BookingProduct, BookingWizard, QSM, SearchResults, Navbar, Header, Footer, ImageCardGrid };
18
+ export { BookingProduct, BookingWizard, QSM, SearchResults, Navbar, Header, Footer, ImageCardGrid, Login };
@@ -107,6 +107,8 @@ export declare const getTranslations: (language: string) => {
107
107
  TRAVELERS_ADULT: string;
108
108
  TRAVELERS_CHILDREN: string;
109
109
  TRAVELERS_CHILD: string;
110
+ TRAVELERS_INFANTS: string;
111
+ TRAVELERS_INFANT: string;
110
112
  DEPARTURE: string;
111
113
  DEPARTURE_SINGLE: string;
112
114
  ARRIVAL: string;
@@ -257,6 +259,38 @@ export declare const getTranslations: (language: string) => {
257
259
  NAVBAR: {
258
260
  SEARCH: string;
259
261
  };
262
+ LOGIN: {
263
+ LOGIN_INTO: string;
264
+ EMAIL: string;
265
+ ENTER_YOUR_EMAIL: string;
266
+ EMAIL_REQUIRED: string;
267
+ EMAIL_INVALID: string;
268
+ ENTER_VALID_EMAIL: string;
269
+ PASSWORD: string;
270
+ ENTER_YOUR_PASSWORD: string;
271
+ RESET_PASSWORD_LABEL: string;
272
+ RESET_REPEAT_PASSWORD_LABEL: string;
273
+ PASSWORD_REQUIRED: string;
274
+ INVALID_CREDENTIALS: string;
275
+ LOGIN: string;
276
+ FORGOT_PASSWORD: string;
277
+ LOGGING_IN: string;
278
+ WELCOME_X: string;
279
+ FORGOT_PASSWORD_EMAIL_SUBMIT_LABEL: string;
280
+ RESET_REQUESTED: string;
281
+ BACK_TO_HOMEPAGE: string;
282
+ BACK_TO_LOGIN: string;
283
+ RESET_PASSWORD_TITLE: string;
284
+ PASSWORD_COMPLEXITY: string;
285
+ REPEAT_PASSWORD_REQUIRED: string;
286
+ PASSWORDS_DO_NOT_MATCH: string;
287
+ RESET_PASSWORD_SUBMIT_LABEL: string;
288
+ RESET_PASSWORD_SUCCESSFUL_MESSAGE: string;
289
+ RESET_PASSWORD_INVALID_TOKEN_TITLE: string;
290
+ RESET_PASSWORD_INVALID_TOKEN_DESCRIPTION: string;
291
+ RECEIVED_REQUEST: string;
292
+ ACCOUNT_ACTIVATED_LOGIN: string;
293
+ };
260
294
  QSM: {
261
295
  DEPARTURE: string;
262
296
  CHOOSE_DEPARTURE: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qite/tide-booking-component",
3
- "version": "1.4.59",
3
+ "version": "1.4.60",
4
4
  "description": "React Booking wizard & Booking product component for Tide",
5
5
  "main": "build/build-cjs/index.js",
6
6
  "types": "build/build-cjs/src/index.d.ts",
@@ -75,9 +75,6 @@ const Sidebar: React.FC<SidebarProps> = ({
75
75
  setActive(!active);
76
76
  };
77
77
 
78
- console.log('basePricePerPaxType', basePricePerPaxType);
79
- console.log('seperateExtraPricePerPaxType', seperateExtraPricePerPaxType);
80
-
81
78
  return (
82
79
  <div className={buildClassName(['booking__sidebar', active && 'booking__sidebar--active'])}>
83
80
  {headerComponent}
@@ -321,7 +321,7 @@ const QSMContainer: React.FC = () => {
321
321
  {qsmType == 'flight' && tripType == 'openjaw' && openJawReturnDestinationField && (
322
322
  <DoubleSearchInputGroup fieldConfig={openJawReturnDestinationField} showReverse={openJawReturnDestinationField.showReverse} />
323
323
  )}
324
- {qsmType == 'hotel' && destination && <SearchInputGroup fieldConfig={destination} />}
324
+ {(qsmType == 'hotel' || qsmType == 'hotel-flight') && destination && <SearchInputGroup fieldConfig={destination} />}
325
325
 
326
326
  <Dates value={dateRange} onChange={handleDateChange} />
327
327
 
@@ -354,7 +354,10 @@ const FlyIn: React.FC<FlyInProps> = ({ srpType, isOpen, setIsOpen, className = '
354
354
  const fareCode = flightOption.outward.segments?.[0]?.metaData?.fareCode;
355
355
  setSelectedOutwardFareCode(fareCode ?? null);
356
356
  }}>
357
- <div className="cta cta--selected"> {selectedOutwardFareCode === firstSegment.metaData?.fareCode ? 'Selected' : 'Select'}</div>
357
+ <div className={`cta ${selectedOutwardFareCode === firstSegment.metaData.fareCode ? 'cta--selected' : ''}`}>
358
+ {' '}
359
+ {selectedOutwardFareCode === firstSegment.metaData.fareCode ? 'Selected' : 'Select'}
360
+ </div>
358
361
  </div>
359
362
  </div>
360
363
  );
@@ -513,7 +516,10 @@ const FlyIn: React.FC<FlyInProps> = ({ srpType, isOpen, setIsOpen, className = '
513
516
  const fareCode = flightOption.return.segments?.[0]?.metaData?.fareCode;
514
517
  setSelectedReturnFareCode(fareCode ?? null);
515
518
  }}>
516
- <div className="cta cta--selected"> {selectedOutwardFareCode === firstSegment.metaData?.fareCode ? 'Selected' : 'Select'}</div>
519
+ <div className={`cta ${selectedReturnFareCode === firstSegment.metaData.fareCode ? 'cta--selected' : ''}`}>
520
+ {' '}
521
+ {selectedReturnFareCode === firstSegment.metaData.fareCode ? 'Selected' : 'Select'}
522
+ </div>
517
523
  </div>
518
524
  </div>
519
525
  );