@schematichq/schematic-components 2.18.0 → 2.19.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/README.md +26 -0
- package/dist/schematic-components.browser.cjs.js +28708 -0
- package/dist/schematic-components.browser.esm.js +28736 -0
- package/dist/schematic-components.cjs.js +3593 -3147
- package/dist/schematic-components.d.ts +110 -1
- package/dist/schematic-components.esm.js +632 -439
- package/package.json +33 -12
|
@@ -318,7 +318,9 @@ declare type BillingCreditGrantReason = (typeof BillingCreditGrantReason)[keyof
|
|
|
318
318
|
* @export
|
|
319
319
|
*/
|
|
320
320
|
declare const BillingCreditGrantZeroedOutReason: {
|
|
321
|
+
readonly CustomerArchived: "customer_archived";
|
|
321
322
|
readonly Expired: "expired";
|
|
323
|
+
readonly IntegrationUninstalled: "integration_uninstalled";
|
|
322
324
|
readonly Manual: "manual";
|
|
323
325
|
readonly PlanChange: "plan_change";
|
|
324
326
|
readonly PlanPeriodReset: "plan_period_reset";
|
|
@@ -909,7 +911,9 @@ declare interface BillingLinkedResourceResponseData_2 {
|
|
|
909
911
|
*/
|
|
910
912
|
declare const BillingPlanCreditGrantResetCadence: {
|
|
911
913
|
readonly Daily: "daily";
|
|
914
|
+
readonly Every6Months: "every_6_months";
|
|
912
915
|
readonly Monthly: "monthly";
|
|
916
|
+
readonly Quarterly: "quarterly";
|
|
913
917
|
readonly Weekly: "weekly";
|
|
914
918
|
readonly Yearly: "yearly";
|
|
915
919
|
};
|
|
@@ -922,7 +926,9 @@ declare type BillingPlanCreditGrantResetCadence = (typeof BillingPlanCreditGrant
|
|
|
922
926
|
*/
|
|
923
927
|
declare const BillingPlanCreditGrantResetCadence_2: {
|
|
924
928
|
readonly Daily: "daily";
|
|
929
|
+
readonly Every6Months: "every_6_months";
|
|
925
930
|
readonly Monthly: "monthly";
|
|
931
|
+
readonly Quarterly: "quarterly";
|
|
926
932
|
readonly Weekly: "weekly";
|
|
927
933
|
readonly Yearly: "yearly";
|
|
928
934
|
};
|
|
@@ -2954,6 +2960,19 @@ export declare interface BypassConfig {
|
|
|
2954
2960
|
* { planId: "plan_abc", payInAdvanceQuantities: { feat_seats: 3 } }
|
|
2955
2961
|
*/
|
|
2956
2962
|
payInAdvanceQuantities?: Record<string, number>;
|
|
2963
|
+
/**
|
|
2964
|
+
* Promotion code to pre-apply to the checkout (a Stripe promotion code such
|
|
2965
|
+
* as "SUMMER20" — the customer-facing code, not the underlying coupon id).
|
|
2966
|
+
*
|
|
2967
|
+
* The discount is applied on load: the previewed charges reflect it and it is
|
|
2968
|
+
* sent with the final checkout request. The customer can still change or
|
|
2969
|
+
* clear it via the discount field in the checkout form. Invalid codes are
|
|
2970
|
+
* rejected by the backend the same way a manually entered code would be.
|
|
2971
|
+
*
|
|
2972
|
+
* @example
|
|
2973
|
+
* { planId: "plan_abc", promoCode: "SUMMER20" }
|
|
2974
|
+
*/
|
|
2975
|
+
promoCode?: string;
|
|
2957
2976
|
}
|
|
2958
2977
|
|
|
2959
2978
|
export declare const Card: ForwardRefExoticComponent<CardProps & RefAttributes<HTMLDivElement | null>>;
|
|
@@ -3079,7 +3098,7 @@ declare type ChargeType_2 = (typeof ChargeType_2)[keyof typeof ChargeType_2];
|
|
|
3079
3098
|
|
|
3080
3099
|
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;
|
|
3081
3100
|
|
|
3082
|
-
export declare const Checkout: ({ customCheckoutFields, customFieldValues, isPaymentMethodRequired, onCustomFieldChange, optInRequired, optInTitle, optInText, optInAccepted, setOptInAccepted, setPaymentMethodId, updatePromoCode, confirmPaymentIntentProps, financeData, onPaymentMethodSaved, }: CheckoutProps) => JSX.Element | null;
|
|
3101
|
+
export declare const Checkout: ({ customCheckoutFields, customFieldValues, isPaymentMethodRequired, onCustomFieldChange, optInRequired, optInTitle, optInText, optInAccepted, setOptInAccepted, setPaymentMethodId, promoCode, updatePromoCode, confirmPaymentIntentProps, financeData, onPaymentMethodSaved, }: CheckoutProps) => JSX.Element | null;
|
|
3083
3102
|
|
|
3084
3103
|
/**
|
|
3085
3104
|
* Host-provided initial values used to pre-populate the checkout payment form.
|
|
@@ -3216,6 +3235,7 @@ declare interface CheckoutProps {
|
|
|
3216
3235
|
optInAccepted: boolean;
|
|
3217
3236
|
setOptInAccepted: (accepted: boolean) => void;
|
|
3218
3237
|
setPaymentMethodId: (id: string) => void;
|
|
3238
|
+
promoCode?: string | null;
|
|
3219
3239
|
updatePromoCode: (code: string) => void;
|
|
3220
3240
|
confirmPaymentIntentProps?: ConfirmPaymentIntentProps_2 | null | undefined;
|
|
3221
3241
|
financeData?: PreviewSubscriptionFinanceResponseData | null;
|
|
@@ -3492,6 +3512,7 @@ export declare type CheckoutState = {
|
|
|
3492
3512
|
showCurrencySelector?: boolean;
|
|
3493
3513
|
startTrialIfAvailable?: boolean;
|
|
3494
3514
|
payInAdvanceQuantities?: Record<string, number>;
|
|
3515
|
+
promoCode?: string;
|
|
3495
3516
|
};
|
|
3496
3517
|
|
|
3497
3518
|
/**
|
|
@@ -6442,6 +6463,7 @@ export declare interface EmbedContextProps extends EmbedState {
|
|
|
6442
6463
|
setCheckoutState: (state: CheckoutState) => void;
|
|
6443
6464
|
clearCheckoutState: () => void;
|
|
6444
6465
|
initializeWithPlan: (config: string | BypassConfig) => void;
|
|
6466
|
+
requestUnsubscribe: () => void;
|
|
6445
6467
|
setData: (data: HydrateDataWithCompanyContext) => void;
|
|
6446
6468
|
updateSettings: (settings: DeepPartial<EmbedSettings>, options?: {
|
|
6447
6469
|
update?: boolean;
|
|
@@ -8396,6 +8418,7 @@ export declare const initialContext: {
|
|
|
8396
8418
|
setCheckoutState: () => never;
|
|
8397
8419
|
clearCheckoutState: () => never;
|
|
8398
8420
|
initializeWithPlan: () => never;
|
|
8421
|
+
requestUnsubscribe: () => never;
|
|
8399
8422
|
setData: () => never;
|
|
8400
8423
|
updateSettings: () => never;
|
|
8401
8424
|
debug: () => never;
|
|
@@ -9862,6 +9885,12 @@ declare interface PlanEntitlementResponseData {
|
|
|
9862
9885
|
* @memberof PlanEntitlementResponseData
|
|
9863
9886
|
*/
|
|
9864
9887
|
valueType: EntitlementValueType;
|
|
9888
|
+
/**
|
|
9889
|
+
*
|
|
9890
|
+
* @type {Array<WarningTierResponseData>}
|
|
9891
|
+
* @memberof PlanEntitlementResponseData
|
|
9892
|
+
*/
|
|
9893
|
+
warningTiers: Array<WarningTierResponseData>;
|
|
9865
9894
|
}
|
|
9866
9895
|
|
|
9867
9896
|
/**
|
|
@@ -10044,6 +10073,12 @@ declare interface PlanEntitlementResponseData_2 {
|
|
|
10044
10073
|
* @memberof PlanEntitlementResponseData
|
|
10045
10074
|
*/
|
|
10046
10075
|
valueType: EntitlementValueType_2;
|
|
10076
|
+
/**
|
|
10077
|
+
*
|
|
10078
|
+
* @type {Array<WarningTierResponseData>}
|
|
10079
|
+
* @memberof PlanEntitlementResponseData
|
|
10080
|
+
*/
|
|
10081
|
+
warningTiers: Array<WarningTierResponseData_2>;
|
|
10047
10082
|
}
|
|
10048
10083
|
|
|
10049
10084
|
/**
|
|
@@ -12656,4 +12691,78 @@ export declare interface ViewportProps extends React.HTMLProps<HTMLDivElement> {
|
|
|
12656
12691
|
portal?: HTMLElement | null;
|
|
12657
12692
|
}
|
|
12658
12693
|
|
|
12694
|
+
/**
|
|
12695
|
+
* Schematic API
|
|
12696
|
+
* Schematic API
|
|
12697
|
+
*
|
|
12698
|
+
* The version of the OpenAPI document: 0.1
|
|
12699
|
+
*
|
|
12700
|
+
*
|
|
12701
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12702
|
+
* https://openapi-generator.tech
|
|
12703
|
+
* Do not edit the class manually.
|
|
12704
|
+
*/
|
|
12705
|
+
/**
|
|
12706
|
+
*
|
|
12707
|
+
* @export
|
|
12708
|
+
* @interface WarningTierResponseData
|
|
12709
|
+
*/
|
|
12710
|
+
declare interface WarningTierResponseData {
|
|
12711
|
+
/**
|
|
12712
|
+
*
|
|
12713
|
+
* @type {string}
|
|
12714
|
+
* @memberof WarningTierResponseData
|
|
12715
|
+
*/
|
|
12716
|
+
id: string;
|
|
12717
|
+
/**
|
|
12718
|
+
*
|
|
12719
|
+
* @type {string}
|
|
12720
|
+
* @memberof WarningTierResponseData
|
|
12721
|
+
*/
|
|
12722
|
+
key: string;
|
|
12723
|
+
/**
|
|
12724
|
+
*
|
|
12725
|
+
* @type {number}
|
|
12726
|
+
* @memberof WarningTierResponseData
|
|
12727
|
+
*/
|
|
12728
|
+
value: number;
|
|
12729
|
+
}
|
|
12730
|
+
|
|
12731
|
+
/**
|
|
12732
|
+
* Schematic API
|
|
12733
|
+
* Schematic API
|
|
12734
|
+
*
|
|
12735
|
+
* The version of the OpenAPI document: 0.1
|
|
12736
|
+
*
|
|
12737
|
+
*
|
|
12738
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12739
|
+
* https://openapi-generator.tech
|
|
12740
|
+
* Do not edit the class manually.
|
|
12741
|
+
*/
|
|
12742
|
+
/**
|
|
12743
|
+
*
|
|
12744
|
+
* @export
|
|
12745
|
+
* @interface WarningTierResponseData
|
|
12746
|
+
*/
|
|
12747
|
+
declare interface WarningTierResponseData_2 {
|
|
12748
|
+
/**
|
|
12749
|
+
*
|
|
12750
|
+
* @type {string}
|
|
12751
|
+
* @memberof WarningTierResponseData
|
|
12752
|
+
*/
|
|
12753
|
+
id: string;
|
|
12754
|
+
/**
|
|
12755
|
+
*
|
|
12756
|
+
* @type {string}
|
|
12757
|
+
* @memberof WarningTierResponseData
|
|
12758
|
+
*/
|
|
12759
|
+
key: string;
|
|
12760
|
+
/**
|
|
12761
|
+
*
|
|
12762
|
+
* @type {number}
|
|
12763
|
+
* @memberof WarningTierResponseData
|
|
12764
|
+
*/
|
|
12765
|
+
value: number;
|
|
12766
|
+
}
|
|
12767
|
+
|
|
12659
12768
|
export { }
|