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

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.
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DuffelAncillariesPropsWithClientKeyAndOfferId, DuffelAncillariesPropsWithOfferIdForFixture, DuffelAncillariesPropsWithOffersAndSeatMaps, DuffelAncillariesPropWithOfferAndClientKey, OnPayloadReady } from "../../types/DuffelAncillariesProps";
2
3
  declare global {
3
4
  namespace JSX {
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare function postMessageToCreateCardForTemporaryUse(iFrameReference: React.RefObject<HTMLIFrameElement>, baseUrl: URL): void;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare function postMessageToSaveCard(iFrameReference: React.RefObject<HTMLIFrameElement>, baseUrl: URL): void;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { DuffelCardFormStyles } from "./types";
2
3
  export declare function postMessageWithStyles(iFrameReference: React.RefObject<HTMLIFrameElement>, baseUrl: URL, styles: DuffelCardFormStyles | undefined): void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DuffelPaymentsProps } from "./DuffelPayments";
2
3
  declare global {
3
4
  namespace JSX {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { MapboxPlacesLookupProps } from "./MapboxPlacesLookup";
2
3
  declare const CUSTOM_ELEMENT_TAG = "duffel-mapbox-places-lookup";
3
4
  declare global {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  /// <reference types="@duffel/api" />
2
3
  import { OfferSlice } from "@duffel/api/types";
3
4
  interface OfferSliceConditionsProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SliceDetailItemChangeStatus, TravelDetails } from "src/types/TravelDetails";
2
3
  export interface SliceDetailsTravelItemProps {
3
4
  changeStatus?: SliceDetailItemChangeStatus;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { OfferSliceProps } from "@components/OfferSlice/OfferSlice";
2
3
  import { ModalProps } from "@components/shared/Modal";
3
4
  interface OfferSliceModalProps extends Pick<ModalProps, "isOpen" | "onClose"> {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { StaysAmenitiesProps } from "./StaysAmenities";
2
3
  declare const CUSTOM_ELEMENT_TAG = "duffel-stays-amenities";
3
4
  type CustomElementRenderArguments = StaysAmenitiesProps;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { StaysRatingProps } from "./StaysRating";
2
3
  declare const CUSTOM_ELEMENT_TAG = "duffel-stays-rating";
3
4
  type CustomElementRenderArguments = StaysRatingProps & {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { StaysRoomRateCardProps } from "./StaysRoomRateCard";
2
3
  declare const CUSTOM_ELEMENT_TAG = "duffel-stays-room-rate-card";
3
4
  type CustomElementRenderArguments = StaysRoomRateCardProps & {
@@ -1,4 +1,5 @@
1
1
  /// <reference types="@duffel/api" />
2
+ /// <reference types="react" />
2
3
  import { StaysAccommodation, StaysBooking } from "@duffel/api/types";
3
4
  export interface StaysSummaryProps {
4
5
  accommodation: StaysAccommodation;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { StaysSummaryProps } from "./StaysSummary";
2
3
  declare const CUSTOM_ELEMENT_TAG = "duffel-stays-summary";
3
4
  type CustomElementRenderArguments = StaysSummaryProps;
@@ -0,0 +1,6 @@
1
+ import * as React from "react";
2
+ export interface StreamChatProps {
3
+ resourceId: string;
4
+ userId: string;
5
+ }
6
+ export declare const StreamChat: React.FC<StreamChatProps>;
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ import { StreamChatProps } from "./StreamChat";
3
+ declare const CUSTOM_ELEMENT_TAG = "stream-chat";
4
+ type CustomElementRenderArguments = StreamChatProps & {
5
+ elementId: string;
6
+ };
7
+ declare global {
8
+ namespace JSX {
9
+ interface IntrinsicElements {
10
+ [CUSTOM_ELEMENT_TAG]: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
11
+ }
12
+ }
13
+ }
14
+ export declare function renderStreamChatCustomElement(props: CustomElementRenderArguments): void;
15
+ export {};
@@ -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 | Iterable<React.ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
12
+ render(): string | number | boolean | import("react/jsx-runtime").JSX.Element | Iterable<React.ReactNode> | null | undefined;
13
13
  }
@@ -10,3 +10,4 @@ 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";