@tripian/react 9.1.11 → 9.1.13

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/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@tripian/react",
3
- "version": "9.1.11",
3
+ "version": "9.1.13",
4
4
  "description": "Tripian Inc React Components",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
7
7
  "dependencies": {
8
8
  "@react-google-maps/api": "^2.12.0",
9
- "@tripian/model": "9.1.11",
9
+ "@tripian/model": "9.1.13",
10
10
  "external-svg-loader": "^1.6.1",
11
11
  "moment": "^2.24.0",
12
12
  "react": "^18.1.0",
@@ -17,6 +17,7 @@ interface IBooking {
17
17
  getHoldIt: (hold: Providers.Yelp.HoldRequest) => Promise<Providers.Yelp.Hold>;
18
18
  reservationRequest: (reservation: Providers.Yelp.ReservationRequest) => Promise<Providers.Yelp.Reservation>;
19
19
  bookingCallback: (provider: string, poi: Model.Poi, bookingDetails: Providers.Yelp.ReservationRequest, response?: Providers.Yelp.Reservation) => void;
20
+ t: (value: Model.TranslationKey) => string;
20
21
  }
21
22
  declare const Booking: React.FC<IBooking>;
22
23
  export default Booking;
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import Model from '@tripian/model';
2
3
  interface IOpeningsForm {
3
4
  defaultUserInfo?: {
4
5
  firstName: string;
@@ -8,6 +9,7 @@ interface IOpeningsForm {
8
9
  note?: string;
9
10
  };
10
11
  openingsFormCallback: (firstName: string, lastName: string, email: string, phone: string, note?: string) => void;
12
+ t: (value: Model.TranslationKey) => string;
11
13
  }
12
14
  declare const OpeningsForm: React.FC<IOpeningsForm>;
13
15
  export default OpeningsForm;
@@ -1,9 +1,10 @@
1
1
  import React from 'react';
2
- import { Providers } from '@tripian/model';
2
+ import Model, { Providers } from '@tripian/model';
3
3
  interface IOpeningsSelection {
4
4
  openingTimes: Providers.Yelp.OpeningTime[];
5
5
  clicked: (time: string) => void;
6
6
  bookingHour: string;
7
+ t: (value: Model.TranslationKey) => string;
7
8
  }
8
9
  declare const OpeningsSelection: React.FC<IOpeningsSelection>;
9
10
  export default OpeningsSelection;
@@ -1,7 +1,8 @@
1
1
  import React from 'react';
2
- import { Providers } from '@tripian/model';
2
+ import Model, { Providers } from '@tripian/model';
3
3
  interface IReservationDetails {
4
4
  reservationInfo: Providers.Yelp.ReservationInfo;
5
+ t: (value: Model.TranslationKey) => string;
5
6
  }
6
7
  declare const ReservationDetails: React.FC<IReservationDetails>;
7
8
  export default ReservationDetails;
@@ -1,9 +1,11 @@
1
1
  import React from 'react';
2
+ import Model from '@tripian/model';
2
3
  interface ITableSearch {
3
4
  tableSearchCallback: (date: string, time: string, covers: number) => void;
4
5
  stepDate: string;
5
6
  covers: number;
6
7
  defaultHour: string;
8
+ t: (value: Model.TranslationKey) => string;
7
9
  }
8
10
  declare const TableSearch: React.FC<ITableSearch>;
9
11
  export default TableSearch;
@@ -1,4 +1,5 @@
1
- declare const peopleCountOptions: {
1
+ import Model from '@tripian/model';
2
+ declare const peopleCountOptions: (t: (value: Model.TranslationKey) => string) => {
2
3
  value: number;
3
4
  label: string;
4
5
  }[];