@schematichq/schematic-react 0.2.0-rc.3 → 0.2.0-rc.5

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,7 +1,6 @@
1
1
  import { Context } from 'react';
2
2
  import * as Craft from '@craftjs/core';
3
3
  import { DetailedHTMLProps } from 'react';
4
- import { Dispatch } from 'react';
5
4
  import { DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES } from 'react';
6
5
  import { Event as Event_2 } from '@schematichq/schematic-js';
7
6
  import { EventBody } from '@schematichq/schematic-js';
@@ -16,14 +15,12 @@ import { HTMLAttributes } from 'react';
16
15
  import { IStyledComponentBase } from 'styled-components/dist/types';
17
16
  import { JSX as JSX_2 } from 'react/jsx-runtime';
18
17
  import { Keys } from '@schematichq/schematic-js';
19
- import { ReactNode } from 'react';
20
18
  import { RefAttributes } from 'react';
21
19
  import { RefObject } from 'react';
22
20
  import { Schematic } from '@schematichq/schematic-js';
23
21
  import { SchematicContext } from '@schematichq/schematic-js';
24
22
  import * as SchematicJS from '@schematichq/schematic-js';
25
23
  import { SchematicOptions } from '@schematichq/schematic-js';
26
- import { SetStateAction } from 'react';
27
24
  import { Stripe } from '@stripe/stripe-js';
28
25
  import { Substitute } from 'styled-components/dist/types';
29
26
  import { Traits } from '@schematichq/schematic-js';
@@ -450,6 +447,12 @@ declare interface ChangeSubscriptionRequestBody {
450
447
  * @memberof ChangeSubscriptionRequestBody
451
448
  */
452
449
  newPriceId: string;
450
+ /**
451
+ *
452
+ * @type {string}
453
+ * @memberof ChangeSubscriptionRequestBody
454
+ */
455
+ paymentMethodId?: string | null;
453
456
  }
454
457
 
455
458
  /**
@@ -2049,6 +2052,12 @@ declare interface InvoiceResponseData {
2049
2052
  * @memberof InvoiceResponseData
2050
2053
  */
2051
2054
  id: string;
2055
+ /**
2056
+ *
2057
+ * @type {string}
2058
+ * @memberof InvoiceResponseData
2059
+ */
2060
+ paymentMethodExternalId?: string | null;
2052
2061
  /**
2053
2062
  *
2054
2063
  * @type {string}
@@ -2096,26 +2105,22 @@ declare interface Middleware {
2096
2105
  onError?(context: ErrorContext): Promise<Response | void>;
2097
2106
  }
2098
2107
 
2099
- declare type ModelPropertyNaming = "camelCase" | "snake_case" | "PascalCase" | "original";
2108
+ export declare const Modal: ({ children, onClose }: ModalProps) => JSX_2.Element;
2109
+
2110
+ export declare const ModalHeader: ({ children, onClose }: ModalHeaderProps) => JSX_2.Element;
2100
2111
 
2101
- export declare const OverlayHeader: ({ children, onClose, }: {
2102
- children: ReactNode;
2112
+ declare interface ModalHeaderProps {
2113
+ children: React.ReactNode;
2103
2114
  onClose?: () => void;
2104
- }) => JSX_2.Element;
2105
-
2106
- export declare const OverlaySideBar: ({ pricePeriod, setPricePeriod, checkoutStage, setCheckoutStage, currentPlan, selectedPlan, }: {
2107
- pricePeriod: "month" | "year";
2108
- setPricePeriod: Dispatch<SetStateAction<"month" | "year">>;
2109
- checkoutStage: "plan" | "checkout";
2110
- setCheckoutStage: Dispatch<SetStateAction<"plan" | "checkout">>;
2111
- currentPlan?: BillingPlan;
2112
- selectedPlan?: CompanyPlanDetailResponseData;
2113
- }) => JSX_2.Element;
2114
-
2115
- export declare const OverlayWrapper: ({ children, size, }: {
2116
- children: ReactNode;
2115
+ }
2116
+
2117
+ declare interface ModalProps {
2118
+ children: React.ReactNode;
2117
2119
  size?: "md" | "lg";
2118
- }) => JSX_2.Element;
2120
+ onClose?: () => void;
2121
+ }
2122
+
2123
+ declare type ModelPropertyNaming = "camelCase" | "snake_case" | "PascalCase" | "original";
2119
2124
 
2120
2125
  export declare const PaymentMethod: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps_5> & HTMLAttributes<HTMLDivElement> & {
2121
2126
  portal?: HTMLElement | null;
@@ -2907,6 +2912,12 @@ declare interface StripeEmbedInfo {
2907
2912
  * @memberof StripeEmbedInfo
2908
2913
  */
2909
2914
  publishableKey: string;
2915
+ /**
2916
+ *
2917
+ * @type {string}
2918
+ * @memberof StripeEmbedInfo
2919
+ */
2920
+ setupIntentClientSecret?: string | null;
2910
2921
  }
2911
2922
 
2912
2923
  declare const Text_2: IStyledComponentBase<"web", Substitute<DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, TextProps>> & string;