@schematichq/schematic-components 1.9.0 → 2.0.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.
- package/LICENSE +21 -0
- package/dist/schematic-components.cjs.js +1802 -1167
- package/dist/schematic-components.d.ts +18 -19
- package/dist/schematic-components.esm.js +1652 -1010
- package/package.json +34 -19
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ButtonHTMLAttributes } from 'react';
|
|
2
|
+
import { ClassAttributes } from 'react';
|
|
2
3
|
import { Context } from 'react';
|
|
3
4
|
import { DetailedHTMLProps } from 'react';
|
|
4
5
|
import { FastOmit } from 'styled-components';
|
|
@@ -1779,7 +1780,7 @@ declare interface BillingSubscriptionView {
|
|
|
1779
1780
|
trialEndSetting?: string | null;
|
|
1780
1781
|
}
|
|
1781
1782
|
|
|
1782
|
-
export declare const Box: IStyledComponentBase<"web", Substitute<
|
|
1783
|
+
export declare const Box: IStyledComponentBase<"web", Substitute<ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement>, BoxProps>> & string;
|
|
1783
1784
|
|
|
1784
1785
|
export declare type BoxProps = ComponentProps & {
|
|
1785
1786
|
$viewport?: {
|
|
@@ -3954,7 +3955,7 @@ declare interface DesignProps_9 {
|
|
|
3954
3955
|
};
|
|
3955
3956
|
}
|
|
3956
3957
|
|
|
3957
|
-
declare const Element_2: IStyledComponentBase<"web", FastOmit<FastOmit<
|
|
3958
|
+
declare const Element_2: IStyledComponentBase<"web", FastOmit<FastOmit<ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement>, keyof ComponentProps | "$viewport"> & ComponentProps & {
|
|
3958
3959
|
$viewport?: {
|
|
3959
3960
|
sm?: TransientCSSProperties;
|
|
3960
3961
|
md?: TransientCSSProperties;
|
|
@@ -3976,9 +3977,9 @@ export declare const EmbedContext: Context<EmbedContextProps>;
|
|
|
3976
3977
|
|
|
3977
3978
|
export declare interface EmbedContextProps extends EmbedState {
|
|
3978
3979
|
hydratePublic: () => DebouncedApiPromise<PublicPlansResponseData>;
|
|
3979
|
-
hydrate: () => DebouncedApiPromise<
|
|
3980
|
-
hydrateComponent: (id: string) => DebouncedApiPromise<
|
|
3981
|
-
hydrateExternal: (fn: () => Promise<
|
|
3980
|
+
hydrate: () => DebouncedApiPromise<HydrateDataWithCompanyContext>;
|
|
3981
|
+
hydrateComponent: (id: string) => DebouncedApiPromise<HydrateDataWithCompanyContext>;
|
|
3982
|
+
hydrateExternal: (fn: () => Promise<HydrateDataWithCompanyContext>) => DebouncedApiPromise<HydrateDataWithCompanyContext>;
|
|
3982
3983
|
getUpcomingInvoice: (id: string) => DebouncedApiPromise<HydrateUpcomingInvoiceResponse>;
|
|
3983
3984
|
getCustomerBalance: () => DebouncedApiPromise<FetchCustomerBalanceResponse>;
|
|
3984
3985
|
listInvoices: () => DebouncedApiPromise<ListInvoicesResponse>;
|
|
@@ -3993,7 +3994,7 @@ export declare interface EmbedContextProps extends EmbedState {
|
|
|
3993
3994
|
setError: (error: Error) => void;
|
|
3994
3995
|
setLayout: (layout: EmbedLayout) => void;
|
|
3995
3996
|
setCheckoutState: (state: CheckoutState) => void;
|
|
3996
|
-
setData: (data:
|
|
3997
|
+
setData: (data: HydrateDataWithCompanyContext) => void;
|
|
3997
3998
|
updateSettings: (settings: DeepPartial<EmbedSettings>, options?: {
|
|
3998
3999
|
update?: boolean;
|
|
3999
4000
|
}) => void;
|
|
@@ -4032,7 +4033,7 @@ export declare interface EmbedState {
|
|
|
4032
4033
|
isPending: boolean;
|
|
4033
4034
|
stale: boolean;
|
|
4034
4035
|
accessToken?: string;
|
|
4035
|
-
data?:
|
|
4036
|
+
data?: HydrateDataWithCompanyContext;
|
|
4036
4037
|
error?: Error;
|
|
4037
4038
|
settings: EmbedSettings;
|
|
4038
4039
|
layout: EmbedLayout;
|
|
@@ -5304,7 +5305,7 @@ declare interface FlagDetailResponseData_2 {
|
|
|
5304
5305
|
updatedAt: Date;
|
|
5305
5306
|
}
|
|
5306
5307
|
|
|
5307
|
-
export declare const Flex: IStyledComponentBase<"web", FastOmit<FastOmit<
|
|
5308
|
+
export declare const Flex: IStyledComponentBase<"web", FastOmit<FastOmit<ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement>, keyof ComponentProps | "$viewport"> & ComponentProps & {
|
|
5308
5309
|
$viewport?: {
|
|
5309
5310
|
sm?: TransientCSSProperties;
|
|
5310
5311
|
md?: TransientCSSProperties;
|
|
@@ -5317,7 +5318,7 @@ xl?: TransientCSSProperties;
|
|
|
5317
5318
|
|
|
5318
5319
|
export declare type FontStyle = keyof ThemeSettings["typography"];
|
|
5319
5320
|
|
|
5320
|
-
export declare const FussyChild: IStyledComponentBase<"web", FastOmit<FastOmit<FastOmit<
|
|
5321
|
+
export declare const FussyChild: IStyledComponentBase<"web", FastOmit<FastOmit<FastOmit<ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement>, keyof ComponentProps | "$viewport"> & ComponentProps & {
|
|
5321
5322
|
$viewport?: {
|
|
5322
5323
|
sm?: TransientCSSProperties;
|
|
5323
5324
|
md?: TransientCSSProperties;
|
|
@@ -5399,7 +5400,7 @@ declare type HTTPQuery = {
|
|
|
5399
5400
|
[key: string]: string | number | null | boolean | Array<string | number | null | boolean> | Set<string | number | null | boolean> | HTTPQuery;
|
|
5400
5401
|
};
|
|
5401
5402
|
|
|
5402
|
-
declare type
|
|
5403
|
+
declare type HydrateDataWithCompanyContext = ComponentHydrateResponseData;
|
|
5403
5404
|
|
|
5404
5405
|
/**
|
|
5405
5406
|
*
|
|
@@ -5465,7 +5466,7 @@ export declare const initialContext: {
|
|
|
5465
5466
|
isPending: boolean;
|
|
5466
5467
|
stale: boolean;
|
|
5467
5468
|
accessToken?: string;
|
|
5468
|
-
data?:
|
|
5469
|
+
data?: HydrateDataWithCompanyContext;
|
|
5469
5470
|
error?: Error;
|
|
5470
5471
|
settings: EmbedSettings;
|
|
5471
5472
|
layout: EmbedLayout;
|
|
@@ -5703,7 +5704,7 @@ declare interface ModalProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
5703
5704
|
|
|
5704
5705
|
export declare type ModalSize = "sm" | "md" | "lg" | "auto";
|
|
5705
5706
|
|
|
5706
|
-
export declare const Notice: IStyledComponentBase<"web", FastOmit<FastOmit<
|
|
5707
|
+
export declare const Notice: IStyledComponentBase<"web", FastOmit<FastOmit<ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement>, keyof ComponentProps | "$viewport"> & ComponentProps & {
|
|
5707
5708
|
$viewport?: {
|
|
5708
5709
|
sm?: TransientCSSProperties;
|
|
5709
5710
|
md?: TransientCSSProperties;
|
|
@@ -5860,7 +5861,7 @@ declare interface PaymentMethodResponseData {
|
|
|
5860
5861
|
updatedAt: Date;
|
|
5861
5862
|
}
|
|
5862
5863
|
|
|
5863
|
-
declare type Plan = CompanyPlanDetailResponseData
|
|
5864
|
+
declare type Plan = CompanyPlanDetailResponseData;
|
|
5864
5865
|
|
|
5865
5866
|
/**
|
|
5866
5867
|
* Schematic API
|
|
@@ -7285,7 +7286,7 @@ export declare type PricingTableOptions = {
|
|
|
7285
7286
|
onCallToAction?: (plan: PlanViewPublicResponseData | CompanyPlanDetailResponseData) => unknown;
|
|
7286
7287
|
};
|
|
7287
7288
|
|
|
7288
|
-
export declare type PricingTableProps = DesignProps_7
|
|
7289
|
+
export declare type PricingTableProps = DesignProps_7;
|
|
7289
7290
|
|
|
7290
7291
|
export declare const ProgressBar: ForwardRefExoticComponent<ProgressBarProps & RefAttributes<HTMLDivElement>>;
|
|
7291
7292
|
|
|
@@ -7371,7 +7372,7 @@ declare interface ResponseContext {
|
|
|
7371
7372
|
export declare const Root: ForwardRefExoticComponent<Omit<RootProps, "ref"> & RefAttributes<HTMLDivElement | null>>;
|
|
7372
7373
|
|
|
7373
7374
|
export declare interface RootProps extends Omit<React.HTMLProps<HTMLDivElement>, "data"> {
|
|
7374
|
-
data?:
|
|
7375
|
+
data?: HydrateDataWithCompanyContext;
|
|
7375
7376
|
settings?: EmbedSettings;
|
|
7376
7377
|
}
|
|
7377
7378
|
|
|
@@ -8197,7 +8198,7 @@ declare type TransientCSSProperties = {
|
|
|
8197
8198
|
[Property in keyof React.CSSProperties as `$${string & Property}`]: React.CSSProperties[Property];
|
|
8198
8199
|
};
|
|
8199
8200
|
|
|
8200
|
-
export declare const TransitionBox: IStyledComponentBase<"web", Substitute<FastOmit<
|
|
8201
|
+
export declare const TransitionBox: IStyledComponentBase<"web", Substitute<FastOmit<ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement>, keyof ComponentProps | "$viewport"> & ComponentProps & {
|
|
8201
8202
|
$viewport?: {
|
|
8202
8203
|
sm?: TransientCSSProperties;
|
|
8203
8204
|
md?: TransientCSSProperties;
|
|
@@ -8456,8 +8457,6 @@ declare interface UsePaymentConfirmationReturn {
|
|
|
8456
8457
|
reset: () => void;
|
|
8457
8458
|
}
|
|
8458
8459
|
|
|
8459
|
-
export declare function usePrevious<T>(value: T): T | undefined;
|
|
8460
|
-
|
|
8461
8460
|
export declare function useRequest<TData>(fn: () => Promise<{
|
|
8462
8461
|
data: TData;
|
|
8463
8462
|
}> | undefined): [RequestState<TData>, () => Promise<void>];
|
|
@@ -8467,7 +8466,7 @@ export declare function useTrialEnd(): {
|
|
|
8467
8466
|
formatted: string | undefined;
|
|
8468
8467
|
};
|
|
8469
8468
|
|
|
8470
|
-
export declare function useWrapChildren(
|
|
8469
|
+
export declare function useWrapChildren(ref: React.RefObject<HTMLElement[]>): boolean;
|
|
8471
8470
|
|
|
8472
8471
|
export declare const Viewport: ForwardRefExoticComponent<Omit<ViewportProps, "ref"> & RefAttributes<HTMLDivElement | null>>;
|
|
8473
8472
|
|