@duffel/components 3.7.1--canary.0 → 3.7.2

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 (29) hide show
  1. package/components/DuffelAncillaries/DuffelAncillariesCustomElement.d.ts +0 -1
  2. package/components/DuffelCardForm/lib/postMessageToCreateCardForTemporaryUse.d.ts +0 -1
  3. package/components/DuffelCardForm/lib/postMessageToSaveCard.d.ts +0 -1
  4. package/components/DuffelCardForm/lib/postMessageWithStyles.d.ts +0 -1
  5. package/components/DuffelPayments/DuffelPaymentsCustomElement.d.ts +0 -1
  6. package/components/MapboxPlacesLookup/MapboxPlacesLookup.d.ts +1 -0
  7. package/components/MapboxPlacesLookup/MapboxPlacesLookupCustomElement.d.ts +0 -1
  8. package/components/OfferSlice/OfferSliceConditions.d.ts +0 -1
  9. package/components/OfferSlice/OfferSliceDetailTravelItem.d.ts +0 -1
  10. package/components/OfferSliceModal/OfferSliceModal.d.ts +0 -1
  11. package/components/Stays/StaysAmenitiesCustomElement.d.ts +0 -1
  12. package/components/Stays/StaysRatingCustomElement.d.ts +0 -1
  13. package/components/Stays/StaysRoomRateCard.d.ts +2 -0
  14. package/components/Stays/StaysRoomRateCardCustomElement.d.ts +0 -1
  15. package/components/Stays/StaysSummary.d.ts +0 -1
  16. package/components/Stays/StaysSummaryCustomElement.d.ts +0 -1
  17. package/components/shared/ErrorBoundary.d.ts +1 -1
  18. package/custom-elements.d.ts +0 -1
  19. package/custom-elements.js +36 -4902
  20. package/custom-elements.js.map +4 -4
  21. package/index.js +2 -2
  22. package/index.js.map +3 -3
  23. package/package.json +8 -10
  24. package/stories/MapboxPlacesLookup.stories.d.ts +1 -0
  25. package/stories/NGSShelfInfoCard.stories.d.ts +0 -1
  26. package/stories/StaysSummary.stories.d.ts +1 -0
  27. package/tsconfig.tsbuildinfo +1 -1
  28. package/components/StreamChat/StreamChat.d.ts +0 -6
  29. package/components/StreamChat/StreamChatCustomElement.d.ts +0 -15
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DuffelAncillariesPropsWithClientKeyAndOfferId, DuffelAncillariesPropsWithOfferIdForFixture, DuffelAncillariesPropsWithOffersAndSeatMaps, DuffelAncillariesPropWithOfferAndClientKey, OnPayloadReady } from "../../types/DuffelAncillariesProps";
3
2
  declare global {
4
3
  namespace JSX {
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare function postMessageToCreateCardForTemporaryUse(iFrameReference: React.RefObject<HTMLIFrameElement>, baseUrl: URL): void;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare function postMessageToSaveCard(iFrameReference: React.RefObject<HTMLIFrameElement>, baseUrl: URL): void;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { DuffelCardFormStyles } from "./types";
3
2
  export declare function postMessageWithStyles(iFrameReference: React.RefObject<HTMLIFrameElement>, baseUrl: URL, styles: DuffelCardFormStyles | undefined): void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DuffelPaymentsProps } from "./DuffelPayments";
3
2
  declare global {
4
3
  namespace JSX {
@@ -6,6 +6,7 @@ export interface MapboxPlacesLookupProps {
6
6
  placeholder?: string;
7
7
  inputClassName?: string;
8
8
  popupClassName?: string;
9
+ highlightedPopupItemClassName?: string;
9
10
  inputValue?: string;
10
11
  }
11
12
  export declare const MapboxPlacesLookup: React.FC<MapboxPlacesLookupProps>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { MapboxPlacesLookupProps } from "./MapboxPlacesLookup";
3
2
  declare const CUSTOM_ELEMENT_TAG = "duffel-mapbox-places-lookup";
4
3
  declare global {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /// <reference types="@duffel/api" />
3
2
  import { OfferSlice } from "@duffel/api/types";
4
3
  interface OfferSliceConditionsProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SliceDetailItemChangeStatus, TravelDetails } from "src/types/TravelDetails";
3
2
  export interface SliceDetailsTravelItemProps {
4
3
  changeStatus?: SliceDetailItemChangeStatus;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { OfferSliceProps } from "@components/OfferSlice/OfferSlice";
3
2
  import { ModalProps } from "@components/shared/Modal";
4
3
  interface OfferSliceModalProps extends Pick<ModalProps, "isOpen" | "onClose"> {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { StaysAmenitiesProps } from "./StaysAmenities";
3
2
  declare const CUSTOM_ELEMENT_TAG = "duffel-stays-amenities";
4
3
  type CustomElementRenderArguments = StaysAmenitiesProps;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { StaysRatingProps } from "./StaysRating";
3
2
  declare const CUSTOM_ELEMENT_TAG = "duffel-stays-rating";
4
3
  type CustomElementRenderArguments = StaysRatingProps & {
@@ -7,5 +7,7 @@ export interface StaysRoomRateCardProps {
7
7
  numberOfNights: number;
8
8
  selected: boolean;
9
9
  onSelectRate: (rateId: string) => void;
10
+ hidePaymentMethod?: boolean;
11
+ hideSource?: boolean;
10
12
  }
11
13
  export declare const StaysRoomRateCard: React.FC<StaysRoomRateCardProps>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { StaysRoomRateCardProps } from "./StaysRoomRateCard";
3
2
  declare const CUSTOM_ELEMENT_TAG = "duffel-stays-room-rate-card";
4
3
  type CustomElementRenderArguments = StaysRoomRateCardProps & {
@@ -1,5 +1,4 @@
1
1
  /// <reference types="@duffel/api" />
2
- /// <reference types="react" />
3
2
  import { StaysAccommodation, StaysBooking } from "@duffel/api/types";
4
3
  export interface StaysSummaryProps {
5
4
  accommodation: StaysAccommodation;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { StaysSummaryProps } from "./StaysSummary";
3
2
  declare const CUSTOM_ELEMENT_TAG = "duffel-stays-summary";
4
3
  type CustomElementRenderArguments = StaysSummaryProps;
@@ -9,5 +9,5 @@ export declare class ErrorBoundary extends React.Component<{
9
9
  hasError: boolean;
10
10
  };
11
11
  componentDidCatch(error: Error): void;
12
- render(): string | number | boolean | import("react/jsx-runtime").JSX.Element | Iterable<React.ReactNode> | null | undefined;
12
+ render(): string | number | boolean | Iterable<React.ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
13
13
  }
@@ -10,4 +10,3 @@ export { renderDuffelStaysAmenitiesCustomElement } from "./components/Stays/Stay
10
10
  export { renderDuffelStaysRatingCustomElement } from "./components/Stays/StaysRatingCustomElement";
11
11
  export { renderDuffelStaysRoomRateCardCustomElement } from "./components/Stays/StaysRoomRateCardCustomElement";
12
12
  export { renderDuffelStaysSummaryCustomElement } from "./components/Stays/StaysSummaryCustomElement";
13
- export { renderStreamChatCustomElement } from "./components/StreamChat/StreamChatCustomElement";