@schematichq/schematic-react 0.2.0-rc.4 → 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.
- package/dist/schematic-react.cjs.js +878 -742
- package/dist/schematic-react.d.ts +18 -21
- package/dist/schematic-react.esm.js +827 -697
- package/package.json +1 -1
@@ -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';
|
@@ -2055,6 +2052,12 @@ declare interface InvoiceResponseData {
|
|
2055
2052
|
* @memberof InvoiceResponseData
|
2056
2053
|
*/
|
2057
2054
|
id: string;
|
2055
|
+
/**
|
2056
|
+
*
|
2057
|
+
* @type {string}
|
2058
|
+
* @memberof InvoiceResponseData
|
2059
|
+
*/
|
2060
|
+
paymentMethodExternalId?: string | null;
|
2058
2061
|
/**
|
2059
2062
|
*
|
2060
2063
|
* @type {string}
|
@@ -2102,28 +2105,22 @@ declare interface Middleware {
|
|
2102
2105
|
onError?(context: ErrorContext): Promise<Response | void>;
|
2103
2106
|
}
|
2104
2107
|
|
2105
|
-
declare
|
2108
|
+
export declare const Modal: ({ children, onClose }: ModalProps) => JSX_2.Element;
|
2109
|
+
|
2110
|
+
export declare const ModalHeader: ({ children, onClose }: ModalHeaderProps) => JSX_2.Element;
|
2106
2111
|
|
2107
|
-
|
2108
|
-
children: ReactNode;
|
2112
|
+
declare interface ModalHeaderProps {
|
2113
|
+
children: React.ReactNode;
|
2109
2114
|
onClose?: () => void;
|
2110
|
-
}
|
2111
|
-
|
2112
|
-
|
2113
|
-
|
2114
|
-
setPricePeriod: Dispatch<SetStateAction<"month" | "year">>;
|
2115
|
-
checkoutStage: "plan" | "checkout";
|
2116
|
-
setCheckoutStage: Dispatch<SetStateAction<"plan" | "checkout">>;
|
2117
|
-
currentPlan?: BillingPlan;
|
2118
|
-
selectedPlan?: CompanyPlanDetailResponseData;
|
2119
|
-
paymentMethodId?: string;
|
2120
|
-
}) => JSX_2.Element;
|
2121
|
-
|
2122
|
-
export declare const OverlayWrapper: ({ children, size, onClose, }: {
|
2123
|
-
children: ReactNode;
|
2115
|
+
}
|
2116
|
+
|
2117
|
+
declare interface ModalProps {
|
2118
|
+
children: React.ReactNode;
|
2124
2119
|
size?: "md" | "lg";
|
2125
2120
|
onClose?: () => void;
|
2126
|
-
}
|
2121
|
+
}
|
2122
|
+
|
2123
|
+
declare type ModelPropertyNaming = "camelCase" | "snake_case" | "PascalCase" | "original";
|
2127
2124
|
|
2128
2125
|
export declare const PaymentMethod: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps_5> & HTMLAttributes<HTMLDivElement> & {
|
2129
2126
|
portal?: HTMLElement | null;
|