@schematichq/schematic-components 0.4.5 → 0.4.7
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-components.cjs.js +753 -305
- package/dist/schematic-components.d.ts +119 -4
- package/dist/schematic-components.esm.js +730 -282
- package/package.json +1 -1
|
@@ -516,6 +516,18 @@ declare interface BillingSubscriptionDiscountView {
|
|
|
516
516
|
* @interface BillingSubscriptionResponseData
|
|
517
517
|
*/
|
|
518
518
|
declare interface BillingSubscriptionResponseData {
|
|
519
|
+
/**
|
|
520
|
+
*
|
|
521
|
+
* @type {number}
|
|
522
|
+
* @memberof BillingSubscriptionResponseData
|
|
523
|
+
*/
|
|
524
|
+
cancelAt?: number | null;
|
|
525
|
+
/**
|
|
526
|
+
*
|
|
527
|
+
* @type {boolean}
|
|
528
|
+
* @memberof BillingSubscriptionResponseData
|
|
529
|
+
*/
|
|
530
|
+
cancelAtPeriodEnd: boolean;
|
|
519
531
|
/**
|
|
520
532
|
*
|
|
521
533
|
* @type {string}
|
|
@@ -614,6 +626,18 @@ declare interface BillingSubscriptionResponseData {
|
|
|
614
626
|
* @interface BillingSubscriptionView
|
|
615
627
|
*/
|
|
616
628
|
declare interface BillingSubscriptionView {
|
|
629
|
+
/**
|
|
630
|
+
*
|
|
631
|
+
* @type {number}
|
|
632
|
+
* @memberof BillingSubscriptionView
|
|
633
|
+
*/
|
|
634
|
+
cancelAt?: number | null;
|
|
635
|
+
/**
|
|
636
|
+
*
|
|
637
|
+
* @type {boolean}
|
|
638
|
+
* @memberof BillingSubscriptionView
|
|
639
|
+
*/
|
|
640
|
+
cancelAtPeriodEnd: boolean;
|
|
617
641
|
/**
|
|
618
642
|
*
|
|
619
643
|
* @type {string}
|
|
@@ -837,6 +861,14 @@ declare class CheckoutexternalApi extends runtime.BaseAPI {
|
|
|
837
861
|
* Checkout
|
|
838
862
|
*/
|
|
839
863
|
checkout(requestParameters: CheckoutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CheckoutResponse>;
|
|
864
|
+
/**
|
|
865
|
+
* Checkout unsubscribe
|
|
866
|
+
*/
|
|
867
|
+
checkoutUnsubscribeRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CheckoutUnsubscribeResponse>>;
|
|
868
|
+
/**
|
|
869
|
+
* Checkout unsubscribe
|
|
870
|
+
*/
|
|
871
|
+
checkoutUnsubscribe(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CheckoutUnsubscribeResponse>;
|
|
840
872
|
/**
|
|
841
873
|
* Get setup intent
|
|
842
874
|
*/
|
|
@@ -903,6 +935,26 @@ declare interface CheckoutResponse {
|
|
|
903
935
|
params: object;
|
|
904
936
|
}
|
|
905
937
|
|
|
938
|
+
/**
|
|
939
|
+
*
|
|
940
|
+
* @export
|
|
941
|
+
* @interface CheckoutUnsubscribeResponse
|
|
942
|
+
*/
|
|
943
|
+
declare interface CheckoutUnsubscribeResponse {
|
|
944
|
+
/**
|
|
945
|
+
*
|
|
946
|
+
* @type {DeleteResponse}
|
|
947
|
+
* @memberof CheckoutUnsubscribeResponse
|
|
948
|
+
*/
|
|
949
|
+
data: DeleteResponse;
|
|
950
|
+
/**
|
|
951
|
+
* Input parameters
|
|
952
|
+
* @type {object}
|
|
953
|
+
* @memberof CheckoutUnsubscribeResponse
|
|
954
|
+
*/
|
|
955
|
+
params: object;
|
|
956
|
+
}
|
|
957
|
+
|
|
906
958
|
declare const COLLECTION_FORMATS: {
|
|
907
959
|
csv: string;
|
|
908
960
|
ssv: string;
|
|
@@ -1330,6 +1382,18 @@ declare interface CompanyPlanWithBillingSubView {
|
|
|
1330
1382
|
* @interface CompanySubscriptionResponseData
|
|
1331
1383
|
*/
|
|
1332
1384
|
declare interface CompanySubscriptionResponseData {
|
|
1385
|
+
/**
|
|
1386
|
+
*
|
|
1387
|
+
* @type {Date}
|
|
1388
|
+
* @memberof CompanySubscriptionResponseData
|
|
1389
|
+
*/
|
|
1390
|
+
cancelAt?: Date | null;
|
|
1391
|
+
/**
|
|
1392
|
+
*
|
|
1393
|
+
* @type {boolean}
|
|
1394
|
+
* @memberof CompanySubscriptionResponseData
|
|
1395
|
+
*/
|
|
1396
|
+
cancelAtPeriodEnd: boolean;
|
|
1333
1397
|
/**
|
|
1334
1398
|
*
|
|
1335
1399
|
* @type {string}
|
|
@@ -1576,6 +1640,8 @@ declare interface ComponentResponseData {
|
|
|
1576
1640
|
updatedAt: Date;
|
|
1577
1641
|
}
|
|
1578
1642
|
|
|
1643
|
+
declare type ComponentStyle = "primary" | "secondary" | "tertiary";
|
|
1644
|
+
|
|
1579
1645
|
declare class Configuration {
|
|
1580
1646
|
private configuration;
|
|
1581
1647
|
constructor(configuration?: ConfigurationParameters);
|
|
@@ -1779,6 +1845,31 @@ export declare const defaultSettings: EmbedSettings;
|
|
|
1779
1845
|
|
|
1780
1846
|
export declare const defaultTheme: EmbedThemeSettings;
|
|
1781
1847
|
|
|
1848
|
+
/**
|
|
1849
|
+
* Schematic API
|
|
1850
|
+
* Schematic API
|
|
1851
|
+
*
|
|
1852
|
+
* The version of the OpenAPI document: 0.1
|
|
1853
|
+
*
|
|
1854
|
+
*
|
|
1855
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1856
|
+
* https://openapi-generator.tech
|
|
1857
|
+
* Do not edit the class manually.
|
|
1858
|
+
*/
|
|
1859
|
+
/**
|
|
1860
|
+
*
|
|
1861
|
+
* @export
|
|
1862
|
+
* @interface DeleteResponse
|
|
1863
|
+
*/
|
|
1864
|
+
declare interface DeleteResponse {
|
|
1865
|
+
/**
|
|
1866
|
+
* Whether the delete was successful
|
|
1867
|
+
* @type {boolean}
|
|
1868
|
+
* @memberof DeleteResponse
|
|
1869
|
+
*/
|
|
1870
|
+
deleted?: boolean;
|
|
1871
|
+
}
|
|
1872
|
+
|
|
1782
1873
|
export declare interface DesignProps {
|
|
1783
1874
|
header: {
|
|
1784
1875
|
isVisible: boolean;
|
|
@@ -1944,6 +2035,16 @@ declare interface DesignProps_7 {
|
|
|
1944
2035
|
};
|
|
1945
2036
|
}
|
|
1946
2037
|
|
|
2038
|
+
declare interface DesignProps_8 {
|
|
2039
|
+
button: {
|
|
2040
|
+
text: string;
|
|
2041
|
+
style: ComponentStyle;
|
|
2042
|
+
size: ButtonSizeTypes;
|
|
2043
|
+
fullWidth: boolean;
|
|
2044
|
+
alignment: EmbedButtonAlignment;
|
|
2045
|
+
};
|
|
2046
|
+
}
|
|
2047
|
+
|
|
1947
2048
|
declare const Element_2: IStyledComponentBase<"web", FastOmit<FastOmit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ComponentProps | "$viewport"> & ComponentProps & {
|
|
1948
2049
|
$viewport?: {
|
|
1949
2050
|
sm?: TransientCSSProperties;
|
|
@@ -1963,11 +2064,19 @@ declare interface ElementProps {
|
|
|
1963
2064
|
}
|
|
1964
2065
|
|
|
1965
2066
|
export declare const EmbedButton: IStyledComponentBase<"web", Substitute<ButtonProps & RefAttributes<HTMLButtonElement>, {
|
|
1966
|
-
$size?:
|
|
1967
|
-
$color?:
|
|
1968
|
-
$variant?:
|
|
2067
|
+
$size?: ButtonSizeTypes;
|
|
2068
|
+
$color?: EmbedButtonColor;
|
|
2069
|
+
$variant?: EmbedButtonVariant;
|
|
2070
|
+
$alignment?: EmbedButtonAlignment;
|
|
2071
|
+
$fullWidth?: boolean;
|
|
1969
2072
|
}>> & string & Omit<ForwardRefExoticComponent<ButtonProps & RefAttributes<HTMLButtonElement>>, keyof Component<any, {}, any>>;
|
|
1970
2073
|
|
|
2074
|
+
export declare type EmbedButtonAlignment = "start" | "center" | "end";
|
|
2075
|
+
|
|
2076
|
+
export declare type EmbedButtonColor = "primary" | "secondary" | "danger";
|
|
2077
|
+
|
|
2078
|
+
export declare type EmbedButtonVariant = "filled" | "outline" | "ghost" | "text";
|
|
2079
|
+
|
|
1971
2080
|
export declare const EmbedContext: Context<EmbedContextProps>;
|
|
1972
2081
|
|
|
1973
2082
|
export declare interface EmbedContextProps {
|
|
@@ -1987,7 +2096,7 @@ export declare interface EmbedContextProps {
|
|
|
1987
2096
|
setSelected: (selected: EmbedSelected) => void;
|
|
1988
2097
|
}
|
|
1989
2098
|
|
|
1990
|
-
export declare type EmbedLayout = "portal" | "checkout" | "payment" | "success" | "disabled";
|
|
2099
|
+
export declare type EmbedLayout = "portal" | "checkout" | "payment" | "unsubscribe" | "success" | "disabled";
|
|
1991
2100
|
|
|
1992
2101
|
export declare type EmbedMode = "edit" | "view";
|
|
1993
2102
|
|
|
@@ -4263,6 +4372,12 @@ export declare interface TypographySettings {
|
|
|
4263
4372
|
color: string;
|
|
4264
4373
|
}
|
|
4265
4374
|
|
|
4375
|
+
export declare const UnsubscribeButton: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps_8> & HTMLAttributes<HTMLDivElement> & {
|
|
4376
|
+
portal?: HTMLElement | null;
|
|
4377
|
+
} & RefAttributes<HTMLDivElement | null>>;
|
|
4378
|
+
|
|
4379
|
+
export declare type UnsubscribeButtonProps = DesignProps_8;
|
|
4380
|
+
|
|
4266
4381
|
export declare const UpcomingBill: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps_7> & HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement | null>>;
|
|
4267
4382
|
|
|
4268
4383
|
export declare type UpcomingBillProps = DesignProps_7;
|