@qite/tide-booking-component 1.4.59 → 1.4.61

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 (50) hide show
  1. package/build/build-cjs/index.js +4094 -387
  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/content/navbar/placeholderData.d.ts +2 -0
  11. package/build/build-cjs/src/content/navbar/types.d.ts +4 -0
  12. package/build/build-cjs/src/index.d.ts +3 -1
  13. package/build/build-cjs/src/shared/utils/localization-util.d.ts +35 -0
  14. package/build/build-esm/index.js +4078 -390
  15. package/build/build-esm/src/booking-wizard/features/sidebar/sidebar-util.d.ts +1 -0
  16. package/build/build-esm/src/booking-wizard/types.d.ts +1 -0
  17. package/build/build-esm/src/content/login/confirm-component.d.ts +4 -0
  18. package/build/build-esm/src/content/login/index.d.ts +4 -0
  19. package/build/build-esm/src/content/login/login-component.d.ts +4 -0
  20. package/build/build-esm/src/content/login/login-services.d.ts +11 -0
  21. package/build/build-esm/src/content/login/reset-password-component.d.ts +4 -0
  22. package/build/build-esm/src/content/login/types.d.ts +24 -0
  23. package/build/build-esm/src/content/navbar/placeholderData.d.ts +2 -0
  24. package/build/build-esm/src/content/navbar/types.d.ts +4 -0
  25. package/build/build-esm/src/index.d.ts +3 -1
  26. package/build/build-esm/src/shared/utils/localization-util.d.ts +35 -0
  27. package/package.json +1 -1
  28. package/src/booking-wizard/features/sidebar/sidebar.tsx +0 -3
  29. package/src/content/navbar/index.tsx +38 -1
  30. package/src/content/navbar/placeholderData.tsx +15 -4
  31. package/src/content/navbar/types.ts +6 -0
  32. package/src/qsm/components/QSMContainer/qsm-container.tsx +1 -1
  33. package/src/shared/components/flyin.tsx +8 -2
  34. package/src/shared/translations/ar-SA.json +1 -0
  35. package/src/shared/translations/da-DK.json +1 -0
  36. package/src/shared/translations/de-DE.json +1 -0
  37. package/src/shared/translations/en-GB.json +1 -0
  38. package/src/shared/translations/es-ES.json +1 -0
  39. package/src/shared/translations/fr-BE.json +1 -0
  40. package/src/shared/translations/fr-FR.json +1 -0
  41. package/src/shared/translations/is-IS.json +1 -0
  42. package/src/shared/translations/it-IT.json +1 -0
  43. package/src/shared/translations/ja-JP.json +1 -0
  44. package/src/shared/translations/nl-BE.json +1 -0
  45. package/src/shared/translations/nl-NL.json +1 -0
  46. package/src/shared/translations/no-NO.json +1 -0
  47. package/src/shared/translations/pl-PL.json +1 -0
  48. package/src/shared/translations/pt-PT.json +1 -0
  49. package/src/shared/translations/sv-SE.json +1 -0
  50. package/styles/components/_navbar.scss +18 -0
@@ -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
+ }
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import { Language, NavItem } from './types';
3
+ import { MemberInfo } from '@qite/tide-client';
3
4
  export declare const language: Language;
4
5
  export declare const languages: Language[];
5
6
  export declare const topLinks: {
@@ -8,3 +9,4 @@ export declare const topLinks: {
8
9
  }[];
9
10
  export declare const navItems: NavItem[];
10
11
  export declare const TideLogo: () => React.JSX.Element;
12
+ export declare const placeholderMember: MemberInfo;
@@ -1,3 +1,4 @@
1
+ import { MemberInfo } from '@qite/tide-client';
1
2
  export interface Language {
2
3
  code: string;
3
4
  label: string;
@@ -24,4 +25,7 @@ export interface NavbarProps {
24
25
  languages: Language[];
25
26
  onLanguageChange: (lang: string) => void;
26
27
  onSearch: (query: string) => void;
28
+ member?: MemberInfo;
29
+ onLogin?: () => void;
30
+ onLogout?: () => void;
27
31
  }
@@ -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,39 @@ 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
+ LOGOUT: string;
277
+ FORGOT_PASSWORD: string;
278
+ LOGGING_IN: string;
279
+ WELCOME_X: string;
280
+ FORGOT_PASSWORD_EMAIL_SUBMIT_LABEL: string;
281
+ RESET_REQUESTED: string;
282
+ BACK_TO_HOMEPAGE: string;
283
+ BACK_TO_LOGIN: string;
284
+ RESET_PASSWORD_TITLE: string;
285
+ PASSWORD_COMPLEXITY: string;
286
+ REPEAT_PASSWORD_REQUIRED: string;
287
+ PASSWORDS_DO_NOT_MATCH: string;
288
+ RESET_PASSWORD_SUBMIT_LABEL: string;
289
+ RESET_PASSWORD_SUCCESSFUL_MESSAGE: string;
290
+ RESET_PASSWORD_INVALID_TOKEN_TITLE: string;
291
+ RESET_PASSWORD_INVALID_TOKEN_DESCRIPTION: string;
292
+ RECEIVED_REQUEST: string;
293
+ ACCOUNT_ACTIVATED_LOGIN: string;
294
+ };
260
295
  QSM: {
261
296
  DEPARTURE: string;
262
297
  CHOOSE_DEPARTURE: string;