@schematichq/schematic-components 2.14.1 → 2.15.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/dist/schematic-components.cjs.js +763 -629
- package/dist/schematic-components.d.ts +58 -2
- package/dist/schematic-components.esm.js +763 -629
- package/package.json +8 -8
|
@@ -11,7 +11,7 @@ import { IconProps as IconProps_2 } from '@schematichq/schematic-icons';
|
|
|
11
11
|
import { iconsList } from '@schematichq/schematic-icons';
|
|
12
12
|
import { InputHTMLAttributes } from 'react';
|
|
13
13
|
import { IStyledComponentBase } from 'styled-components/dist/types';
|
|
14
|
-
import { JSX } from 'react
|
|
14
|
+
import { JSX } from 'react';
|
|
15
15
|
import { RefAttributes } from 'react';
|
|
16
16
|
import { RuleSet } from 'styled-components';
|
|
17
17
|
import type { Stripe } from '@stripe/stripe-js';
|
|
@@ -2882,6 +2882,25 @@ export declare interface BypassConfig {
|
|
|
2882
2882
|
* is not eligible for a trial.
|
|
2883
2883
|
*/
|
|
2884
2884
|
startTrialIfAvailable?: boolean;
|
|
2885
|
+
/**
|
|
2886
|
+
* Currency to pre-select (e.g. "EUR"). Case-insensitive.
|
|
2887
|
+
*
|
|
2888
|
+
* Useful for flows that skip the plan stage: the host can pin the checkout
|
|
2889
|
+
* to a currency the customer never had a chance to choose. Ignored when the
|
|
2890
|
+
* company already has an active subscription (its currency is locked), or
|
|
2891
|
+
* when the value is not among the available currencies — in which case the
|
|
2892
|
+
* checkout falls back to the first available currency.
|
|
2893
|
+
*/
|
|
2894
|
+
currency?: string;
|
|
2895
|
+
/**
|
|
2896
|
+
* Whether to show the currency selector dropdown in checkout. Default: true.
|
|
2897
|
+
*
|
|
2898
|
+
* Set to false to hide the dropdown entirely — combine with `currency` to
|
|
2899
|
+
* pin checkout to a single currency the customer cannot change. Has no
|
|
2900
|
+
* effect when there is only one available currency or the subscription
|
|
2901
|
+
* currency is locked (the selector is already hidden in those cases).
|
|
2902
|
+
*/
|
|
2903
|
+
showCurrencySelector?: boolean;
|
|
2885
2904
|
}
|
|
2886
2905
|
|
|
2887
2906
|
export declare const Card: ForwardRefExoticComponent<CardProps & RefAttributes<HTMLDivElement | null>>;
|
|
@@ -2941,6 +2960,12 @@ declare interface ChangeSubscriptionRequestBody {
|
|
|
2941
2960
|
* @memberof ChangeSubscriptionRequestBody
|
|
2942
2961
|
*/
|
|
2943
2962
|
newPriceId: string;
|
|
2963
|
+
/**
|
|
2964
|
+
*
|
|
2965
|
+
* @type {boolean}
|
|
2966
|
+
* @memberof ChangeSubscriptionRequestBody
|
|
2967
|
+
*/
|
|
2968
|
+
optInAccepted?: boolean | null;
|
|
2944
2969
|
/**
|
|
2945
2970
|
*
|
|
2946
2971
|
* @type {Array<UpdatePayInAdvanceRequestBody>}
|
|
@@ -3379,6 +3404,7 @@ export declare type CheckoutState = {
|
|
|
3379
3404
|
addOnIds?: string[];
|
|
3380
3405
|
hideSkippedStages?: boolean;
|
|
3381
3406
|
selectedCurrency?: string;
|
|
3407
|
+
showCurrencySelector?: boolean;
|
|
3382
3408
|
startTrialIfAvailable?: boolean;
|
|
3383
3409
|
};
|
|
3384
3410
|
|
|
@@ -6913,11 +6939,23 @@ declare interface FeatureEntitlement {
|
|
|
6913
6939
|
*/
|
|
6914
6940
|
creditId?: string | null;
|
|
6915
6941
|
/**
|
|
6916
|
-
* If the company has a credit-based entitlement for this feature, the
|
|
6942
|
+
* If the company has a credit-based entitlement for this feature, the credit available to fund new consumption or a new lease hold — open lease holds are excluded. Clients that hold a lease should gate on this plus their own unspent hold; clients with no lease awareness should use credit_settled instead
|
|
6917
6943
|
* @type {number}
|
|
6918
6944
|
* @memberof FeatureEntitlement
|
|
6919
6945
|
*/
|
|
6920
6946
|
creditRemaining?: number | null;
|
|
6947
|
+
/**
|
|
6948
|
+
* If the company has a credit-based entitlement for this feature, the unspent amount held by an open credit lease. Returns to credit_remaining when the lease is released
|
|
6949
|
+
* @type {number}
|
|
6950
|
+
* @memberof FeatureEntitlement
|
|
6951
|
+
*/
|
|
6952
|
+
creditReserved?: number | null;
|
|
6953
|
+
/**
|
|
6954
|
+
* If the company has a credit-based entitlement for this feature, the balance net of actual consumption, unaffected by open lease holds (credit_remaining plus credit_reserved). The number to display to end users
|
|
6955
|
+
* @type {number}
|
|
6956
|
+
* @memberof FeatureEntitlement
|
|
6957
|
+
*/
|
|
6958
|
+
creditSettled?: number | null;
|
|
6921
6959
|
/**
|
|
6922
6960
|
* If the company has a credit-based entitlement for this feature, the total credit amount
|
|
6923
6961
|
* @type {number}
|
|
@@ -10753,6 +10791,24 @@ declare interface PreviewSubscriptionChangeResponseData {
|
|
|
10753
10791
|
* @deprecated
|
|
10754
10792
|
*/
|
|
10755
10793
|
newCharges: number;
|
|
10794
|
+
/**
|
|
10795
|
+
*
|
|
10796
|
+
* @type {boolean}
|
|
10797
|
+
* @memberof PreviewSubscriptionChangeResponseData
|
|
10798
|
+
*/
|
|
10799
|
+
optInRequired: boolean;
|
|
10800
|
+
/**
|
|
10801
|
+
*
|
|
10802
|
+
* @type {string}
|
|
10803
|
+
* @memberof PreviewSubscriptionChangeResponseData
|
|
10804
|
+
*/
|
|
10805
|
+
optInText?: string | null;
|
|
10806
|
+
/**
|
|
10807
|
+
*
|
|
10808
|
+
* @type {string}
|
|
10809
|
+
* @memberof PreviewSubscriptionChangeResponseData
|
|
10810
|
+
*/
|
|
10811
|
+
optInTitle?: string | null;
|
|
10756
10812
|
/**
|
|
10757
10813
|
*
|
|
10758
10814
|
* @type {boolean}
|