@schematichq/schematic-components 2.15.0 → 2.16.1
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 +2761 -2998
- package/dist/schematic-components.d.ts +23 -5
- package/dist/schematic-components.esm.js +2646 -2883
- package/package.json +15 -15
|
@@ -4,7 +4,6 @@ import { Context } from 'react';
|
|
|
4
4
|
import { DetailedHTMLProps } from 'react';
|
|
5
5
|
import { FastOmit } from 'styled-components';
|
|
6
6
|
import { ForwardRefExoticComponent } from 'react';
|
|
7
|
-
import { HTMLAttributeAnchorTarget } from 'react';
|
|
8
7
|
import { HTMLAttributes } from 'react';
|
|
9
8
|
import { IconNames } from '@schematichq/schematic-icons';
|
|
10
9
|
import { IconProps as IconProps_2 } from '@schematichq/schematic-icons';
|
|
@@ -297,6 +296,7 @@ declare const BillingCreditGrantZeroedOutReason: {
|
|
|
297
296
|
readonly Manual: "manual";
|
|
298
297
|
readonly PlanChange: "plan_change";
|
|
299
298
|
readonly PlanPeriodReset: "plan_period_reset";
|
|
299
|
+
readonly Reconciled: "reconciled";
|
|
300
300
|
};
|
|
301
301
|
|
|
302
302
|
declare type BillingCreditGrantZeroedOutReason = (typeof BillingCreditGrantZeroedOutReason)[keyof typeof BillingCreditGrantZeroedOutReason];
|
|
@@ -3018,7 +3018,9 @@ declare const ChargeType_2: {
|
|
|
3018
3018
|
|
|
3019
3019
|
declare type ChargeType_2 = (typeof ChargeType_2)[keyof typeof ChargeType_2];
|
|
3020
3020
|
|
|
3021
|
-
export declare const
|
|
3021
|
+
export declare const Checkbox: IStyledComponentBase<"web", FastOmit<FastOmit<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, keyof ClassAttributes<HTMLInputElement> | keyof InputHTMLAttributes<HTMLInputElement>> & ClassAttributes<HTMLInputElement> & InputHTMLAttributes<HTMLInputElement>, "type"> & Partial<Pick<FastOmit<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, keyof ClassAttributes<HTMLInputElement> | keyof InputHTMLAttributes<HTMLInputElement>> & ClassAttributes<HTMLInputElement> & InputHTMLAttributes<HTMLInputElement>, "type">>> & string;
|
|
3022
|
+
|
|
3023
|
+
export declare const Checkout: ({ customCheckoutFields, customFieldValues, isPaymentMethodRequired, onCustomFieldChange, optInRequired, optInTitle, optInText, optInAccepted, setOptInAccepted, setPaymentMethodId, updatePromoCode, confirmPaymentIntentProps, financeData, onPaymentMethodSaved, }: CheckoutProps) => JSX.Element | null;
|
|
3022
3024
|
|
|
3023
3025
|
/**
|
|
3024
3026
|
* Host-provided initial values used to pre-populate the checkout payment form.
|
|
@@ -3145,7 +3147,15 @@ export declare interface CheckoutPrefill {
|
|
|
3145
3147
|
}
|
|
3146
3148
|
|
|
3147
3149
|
declare interface CheckoutProps {
|
|
3150
|
+
customCheckoutFields?: CheckoutFieldWithValue[];
|
|
3151
|
+
customFieldValues: Record<string, string>;
|
|
3148
3152
|
isPaymentMethodRequired: boolean;
|
|
3153
|
+
onCustomFieldChange: (fieldId: string, value: string) => void;
|
|
3154
|
+
optInRequired: boolean;
|
|
3155
|
+
optInTitle?: string | null;
|
|
3156
|
+
optInText?: string | null;
|
|
3157
|
+
optInAccepted: boolean;
|
|
3158
|
+
setOptInAccepted: (accepted: boolean) => void;
|
|
3149
3159
|
setPaymentMethodId: (id: string) => void;
|
|
3150
3160
|
updatePromoCode: (code: string) => void;
|
|
3151
3161
|
confirmPaymentIntentProps?: ConfirmPaymentIntentProps_2 | null | undefined;
|
|
@@ -4466,6 +4476,12 @@ declare interface CompanySubscriptionResponseData {
|
|
|
4466
4476
|
* @memberof CompanySubscriptionResponseData
|
|
4467
4477
|
*/
|
|
4468
4478
|
interval: string;
|
|
4479
|
+
/**
|
|
4480
|
+
*
|
|
4481
|
+
* @type {boolean}
|
|
4482
|
+
* @memberof CompanySubscriptionResponseData
|
|
4483
|
+
*/
|
|
4484
|
+
isInitial: boolean;
|
|
4469
4485
|
/**
|
|
4470
4486
|
*
|
|
4471
4487
|
* @type {InvoiceResponseData}
|
|
@@ -6319,6 +6335,7 @@ export declare interface EmbedContextProps extends EmbedState {
|
|
|
6319
6335
|
checkout: (changeSubscriptionRequestBody: ChangeSubscriptionRequestBody) => DebouncedApiPromise<CheckoutResponse>;
|
|
6320
6336
|
finishCheckout: (changeSubscriptionRequestBody: CheckoutResponseData) => void;
|
|
6321
6337
|
unsubscribe: () => DebouncedApiPromise<CheckoutUnsubscribeResponse>;
|
|
6338
|
+
updateCustomFieldValues: (values: Record<string, string>) => Promise<void> | undefined;
|
|
6322
6339
|
setAccessToken: (token: string) => void;
|
|
6323
6340
|
setError: (error: Error) => void;
|
|
6324
6341
|
setLayout: (layout: EmbedLayout) => void;
|
|
@@ -8260,6 +8277,7 @@ export declare const initialContext: {
|
|
|
8260
8277
|
previewCheckout: () => never;
|
|
8261
8278
|
checkout: () => never;
|
|
8262
8279
|
unsubscribe: () => never;
|
|
8280
|
+
updateCustomFieldValues: () => never;
|
|
8263
8281
|
setError: () => never;
|
|
8264
8282
|
setAccessToken: () => never;
|
|
8265
8283
|
setLayout: () => never;
|
|
@@ -8284,11 +8302,11 @@ export declare const initialContext: {
|
|
|
8284
8302
|
|
|
8285
8303
|
export declare const initialState: EmbedState;
|
|
8286
8304
|
|
|
8287
|
-
export declare const Input: IStyledComponentBase<"web", FastOmit<FastOmit<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "$color" | "$
|
|
8305
|
+
export declare const Input: IStyledComponentBase<"web", FastOmit<FastOmit<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "$color" | "$size" | "$variant"> & {
|
|
8288
8306
|
$size?: "xs" | "sm" | "md" | "lg" | "full";
|
|
8289
8307
|
$color?: "primary" | "secondary" | "danger";
|
|
8290
8308
|
$variant?: "filled" | "outline" | "ghost" | "text";
|
|
8291
|
-
}, never> & Partial<Pick<FastOmit<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "$color" | "$
|
|
8309
|
+
}, never> & Partial<Pick<FastOmit<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "$color" | "$size" | "$variant"> & {
|
|
8292
8310
|
$size?: "xs" | "sm" | "md" | "lg" | "full";
|
|
8293
8311
|
$color?: "primary" | "secondary" | "danger";
|
|
8294
8312
|
$variant?: "filled" | "outline" | "ghost" | "text";
|
|
@@ -11003,7 +11021,7 @@ export declare const PricingTable: ForwardRefExoticComponent<ElementProps & Deep
|
|
|
11003
11021
|
|
|
11004
11022
|
export declare type PricingTableOptions = {
|
|
11005
11023
|
callToActionUrl?: string;
|
|
11006
|
-
callToActionTarget?: HTMLAttributeAnchorTarget;
|
|
11024
|
+
callToActionTarget?: React.HTMLAttributeAnchorTarget;
|
|
11007
11025
|
onCallToAction?: (plan: PlanViewPublicResponseData | CompanyPlanDetailResponseData) => unknown;
|
|
11008
11026
|
};
|
|
11009
11027
|
|