@schematichq/schematic-components 2.5.0 → 2.5.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/README.md +1 -0
- package/dist/schematic-components.cjs.js +1862 -1627
- package/dist/schematic-components.d.ts +25 -10
- package/dist/schematic-components.esm.js +1866 -1631
- package/package.json +15 -15
|
@@ -2637,6 +2637,13 @@ export declare interface CheckoutStageSkipConfig {
|
|
|
2637
2637
|
* - undefined: Defaults to false (show stage)
|
|
2638
2638
|
*/
|
|
2639
2639
|
addOnStage?: boolean;
|
|
2640
|
+
/**
|
|
2641
|
+
* Skip the credits selection stage.
|
|
2642
|
+
* - true: Skip directly to next stage
|
|
2643
|
+
* - false: Show credits stage (user can review/change selection)
|
|
2644
|
+
* - undefined: Defaults to false (show stage)
|
|
2645
|
+
*/
|
|
2646
|
+
creditStage?: boolean;
|
|
2640
2647
|
}
|
|
2641
2648
|
|
|
2642
2649
|
export declare type CheckoutState = {
|
|
@@ -2648,6 +2655,7 @@ export declare type CheckoutState = {
|
|
|
2648
2655
|
credits?: boolean;
|
|
2649
2656
|
bypassPlanSelection?: boolean;
|
|
2650
2657
|
bypassAddOnSelection?: boolean;
|
|
2658
|
+
bypassCreditsSelection?: boolean;
|
|
2651
2659
|
addOnIds?: string[];
|
|
2652
2660
|
hideSkippedStages?: boolean;
|
|
2653
2661
|
};
|
|
@@ -3375,6 +3383,12 @@ declare interface CompanyPlanWithBillingSubView {
|
|
|
3375
3383
|
* @memberof CompanyPlanWithBillingSubView
|
|
3376
3384
|
*/
|
|
3377
3385
|
planPrice?: number | null;
|
|
3386
|
+
/**
|
|
3387
|
+
*
|
|
3388
|
+
* @type {string}
|
|
3389
|
+
* @memberof CompanyPlanWithBillingSubView
|
|
3390
|
+
*/
|
|
3391
|
+
planVersionId?: string | null;
|
|
3378
3392
|
}
|
|
3379
3393
|
|
|
3380
3394
|
/**
|
|
@@ -4613,6 +4627,7 @@ declare interface DeleteResponse {
|
|
|
4613
4627
|
deleted?: boolean;
|
|
4614
4628
|
}
|
|
4615
4629
|
|
|
4630
|
+
/** DesignProps */
|
|
4616
4631
|
declare interface DesignProps {
|
|
4617
4632
|
button: {
|
|
4618
4633
|
link: string;
|
|
@@ -8666,6 +8681,16 @@ declare interface PublicPlansResponseData {
|
|
|
8666
8681
|
showZeroPriceAsFree: boolean;
|
|
8667
8682
|
}
|
|
8668
8683
|
|
|
8684
|
+
export declare const Quantity: ({ entitlements, updateQuantity, period, }: QuantityProps) => JSX.Element;
|
|
8685
|
+
|
|
8686
|
+
declare interface QuantityProps {
|
|
8687
|
+
isLoading: boolean;
|
|
8688
|
+
period: string;
|
|
8689
|
+
selectedPlan?: SelectedPlan;
|
|
8690
|
+
entitlements: UsageBasedEntitlement[];
|
|
8691
|
+
updateQuantity: (id: string, quantity: number) => void;
|
|
8692
|
+
}
|
|
8693
|
+
|
|
8669
8694
|
declare interface RequestContext {
|
|
8670
8695
|
fetch: FetchAPI;
|
|
8671
8696
|
url: string;
|
|
@@ -9672,8 +9697,6 @@ declare interface UpdatePaymentMethodResponse {
|
|
|
9672
9697
|
params: object;
|
|
9673
9698
|
}
|
|
9674
9699
|
|
|
9675
|
-
export declare const Usage: ({ entitlements, updateQuantity, period }: UsageProps) => JSX.Element;
|
|
9676
|
-
|
|
9677
9700
|
declare interface UsageBasedEntitlement extends PlanEntitlementResponseData {
|
|
9678
9701
|
allocation: number;
|
|
9679
9702
|
usage: number;
|
|
@@ -9760,14 +9783,6 @@ declare interface UsageBasedEntitlementResponseData {
|
|
|
9760
9783
|
yearlyUsageBasedPrice?: BillingPriceView;
|
|
9761
9784
|
}
|
|
9762
9785
|
|
|
9763
|
-
declare interface UsageProps {
|
|
9764
|
-
isLoading: boolean;
|
|
9765
|
-
period: string;
|
|
9766
|
-
selectedPlan?: SelectedPlan;
|
|
9767
|
-
entitlements: UsageBasedEntitlement[];
|
|
9768
|
-
updateQuantity: (id: string, quantity: number) => void;
|
|
9769
|
-
}
|
|
9770
|
-
|
|
9771
9786
|
export declare function useAvailablePlans(activePeriod: string, options?: AvailablePlanOptions): {
|
|
9772
9787
|
plans: SelectedPlan[];
|
|
9773
9788
|
addOns: SelectedPlan[];
|