@schematichq/schematic-components 0.3.13 → 0.3.14

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.
@@ -518,6 +518,8 @@ declare function canConsumeForm(consumes: Consume[]): boolean;
518
518
 
519
519
  export declare const Card: ForwardRefExoticComponent<CardProps & RefAttributes<HTMLDivElement | null>>;
520
520
 
521
+ export declare const cardBoxShadow = "0px 1px 20px 0px #1018280F, 0px 1px 3px 0px #1018281A";
522
+
521
523
  export declare interface CardProps {
522
524
  children?: React.ReactNode;
523
525
  className?: string;
@@ -609,8 +611,6 @@ declare class CheckoutApi extends runtime.BaseAPI {
609
611
  updatePaymentMethod(requestParameters: UpdatePaymentMethodRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UpdatePaymentMethodResponse>;
610
612
  }
611
613
 
612
- export declare const CheckoutDialog: () => JSX_2.Element;
613
-
614
614
  declare interface CheckoutRequest {
615
615
  changeSubscriptionRequestBody: ChangeSubscriptionRequestBody;
616
616
  }
@@ -1385,6 +1385,44 @@ declare interface DesignProps_5 {
1385
1385
  }
1386
1386
 
1387
1387
  declare interface DesignProps_6 {
1388
+ showPeriodToggle: boolean;
1389
+ showDiscount: boolean;
1390
+ header: {
1391
+ isVisible: boolean;
1392
+ fontStyle: FontStyle;
1393
+ };
1394
+ plans: {
1395
+ isVisible: boolean;
1396
+ name: {
1397
+ fontStyle: FontStyle;
1398
+ };
1399
+ description: {
1400
+ isVisible: boolean;
1401
+ fontStyle: FontStyle;
1402
+ };
1403
+ showInclusionText: boolean;
1404
+ showFeatureIcons: boolean;
1405
+ showEntitlements: boolean;
1406
+ };
1407
+ addOns: {
1408
+ isVisible: boolean;
1409
+ showDescription: boolean;
1410
+ showFeatureIcons: boolean;
1411
+ showEntitlements: boolean;
1412
+ };
1413
+ upgrade: {
1414
+ isVisible: boolean;
1415
+ buttonSize: "sm" | "md" | "lg";
1416
+ buttonStyle: "primary" | "secondary";
1417
+ };
1418
+ downgrade: {
1419
+ isVisible: boolean;
1420
+ buttonSize: "sm" | "md" | "lg";
1421
+ buttonStyle: "primary" | "secondary";
1422
+ };
1423
+ }
1424
+
1425
+ declare interface DesignProps_7 {
1388
1426
  header: {
1389
1427
  isVisible: boolean;
1390
1428
  fontStyle: FontStyle;
@@ -2150,6 +2188,10 @@ ref?: ((instance: HTMLDivElement | null) => void | DO_NOT_USE_OR_YOU_WILL_BE_FIR
2150
2188
 
2151
2189
  export declare type FontStyle = keyof EmbedThemeSettings["typography"];
2152
2190
 
2191
+ export declare const FussyChild: IStyledComponentBase<"web", FastOmit<FastOmit<Omit<FastOmit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ComponentProps> & ComponentProps, "ref"> & {
2192
+ ref?: ((instance: HTMLDivElement | null) => void | DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | RefObject<HTMLDivElement> | null | undefined;
2193
+ }, never>, never>> & string;
2194
+
2153
2195
  /**
2154
2196
  * Schematic API
2155
2197
  * Schematic API
@@ -2516,12 +2558,6 @@ declare interface ModalProps {
2516
2558
 
2517
2559
  declare type ModelPropertyNaming = "camelCase" | "snake_case" | "PascalCase" | "original";
2518
2560
 
2519
- export declare const PaymentForm: ({ onConfirm }: PaymentFormProps) => JSX_2.Element;
2520
-
2521
- declare interface PaymentFormProps {
2522
- onConfirm?: (paymentMethodId: string) => void;
2523
- }
2524
-
2525
2561
  export declare const PaymentMethod: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps_4> & HTMLAttributes<HTMLDivElement> & {
2526
2562
  portal?: HTMLElement | null;
2527
2563
  } & RefAttributes<HTMLDivElement | null>>;
@@ -2893,6 +2929,49 @@ declare interface PreviewObject {
2893
2929
  name: string;
2894
2930
  }
2895
2931
 
2932
+ /**
2933
+ * Schematic API
2934
+ * Schematic API
2935
+ *
2936
+ * The version of the OpenAPI document: 0.1
2937
+ *
2938
+ *
2939
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2940
+ * https://openapi-generator.tech
2941
+ * Do not edit the class manually.
2942
+ */
2943
+ /**
2944
+ *
2945
+ * @export
2946
+ * @interface PreviewObjectResponseData
2947
+ */
2948
+ declare interface PreviewObjectResponseData {
2949
+ /**
2950
+ *
2951
+ * @type {string}
2952
+ * @memberof PreviewObjectResponseData
2953
+ */
2954
+ description?: string | null;
2955
+ /**
2956
+ *
2957
+ * @type {string}
2958
+ * @memberof PreviewObjectResponseData
2959
+ */
2960
+ id: string;
2961
+ /**
2962
+ *
2963
+ * @type {string}
2964
+ * @memberof PreviewObjectResponseData
2965
+ */
2966
+ imageUrl?: string | null;
2967
+ /**
2968
+ *
2969
+ * @type {string}
2970
+ * @memberof PreviewObjectResponseData
2971
+ */
2972
+ name: string;
2973
+ }
2974
+
2896
2975
  /**
2897
2976
  * Schematic API
2898
2977
  * Schematic API
@@ -2936,6 +3015,12 @@ declare interface PreviewSubscriptionChangeResponseData {
2936
3015
  proration: number;
2937
3016
  }
2938
3017
 
3018
+ export declare const PricingTable: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps_6> & HTMLAttributes<HTMLDivElement> & {
3019
+ portal?: HTMLElement | null;
3020
+ } & RefAttributes<HTMLDivElement | null>>;
3021
+
3022
+ export declare type PricingTableProps = DesignProps_6;
3023
+
2939
3024
  export declare const ProgressBar: ({ progress, value, total, color, barWidth, ...props }: ProgressBarProps) => JSX_2.Element;
2940
3025
 
2941
3026
  export declare interface ProgressBarProps extends React.ComponentPropsWithoutRef<typeof Flex> {
@@ -3088,10 +3173,10 @@ declare interface RuleConditionDetailResponseData {
3088
3173
  resourceIds: Array<string>;
3089
3174
  /**
3090
3175
  *
3091
- * @type {Array<RuleConditionResourceResponseData>}
3176
+ * @type {Array<PreviewObjectResponseData>}
3092
3177
  * @memberof RuleConditionDetailResponseData
3093
3178
  */
3094
- resources: Array<RuleConditionResourceResponseData>;
3179
+ resources: Array<PreviewObjectResponseData>;
3095
3180
  /**
3096
3181
  *
3097
3182
  * @type {string}
@@ -3186,37 +3271,6 @@ declare interface RuleConditionGroupDetailResponseData {
3186
3271
  updatedAt: Date;
3187
3272
  }
3188
3273
 
3189
- /**
3190
- * Schematic API
3191
- * Schematic API
3192
- *
3193
- * The version of the OpenAPI document: 0.1
3194
- *
3195
- *
3196
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3197
- * https://openapi-generator.tech
3198
- * Do not edit the class manually.
3199
- */
3200
- /**
3201
- *
3202
- * @export
3203
- * @interface RuleConditionResourceResponseData
3204
- */
3205
- declare interface RuleConditionResourceResponseData {
3206
- /**
3207
- *
3208
- * @type {string}
3209
- * @memberof RuleConditionResourceResponseData
3210
- */
3211
- id: string;
3212
- /**
3213
- *
3214
- * @type {string}
3215
- * @memberof RuleConditionResourceResponseData
3216
- */
3217
- name: string;
3218
- }
3219
-
3220
3274
  /**
3221
3275
  *
3222
3276
  * @export
@@ -3449,9 +3503,9 @@ export declare interface TypographySettings {
3449
3503
  color: string;
3450
3504
  }
3451
3505
 
3452
- export declare const UpcomingBill: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps_6> & HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement | null>>;
3506
+ export declare const UpcomingBill: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps_7> & HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement | null>>;
3453
3507
 
3454
- export declare type UpcomingBillProps = DesignProps_6;
3508
+ export declare type UpcomingBillProps = DesignProps_7;
3455
3509
 
3456
3510
  /**
3457
3511
  * Schematic API
@@ -3533,6 +3587,50 @@ declare interface UpdatePaymentMethodResponse {
3533
3587
  params: object;
3534
3588
  }
3535
3589
 
3590
+ export declare function useAvailablePlans(activePeriod: string): {
3591
+ plans: {
3592
+ isSelected: boolean;
3593
+ audienceType?: string | null;
3594
+ billingProduct?: BillingProductDetailResponseData;
3595
+ companyCount: number;
3596
+ createdAt: Date;
3597
+ current: boolean;
3598
+ description: string;
3599
+ entitlements: Array<PlanEntitlementResponseData>;
3600
+ features: Array<FeatureDetailResponseData>;
3601
+ icon: string;
3602
+ id: string;
3603
+ isDefault: boolean;
3604
+ monthlyPrice?: BillingPriceResponseData;
3605
+ name: string;
3606
+ planType: string;
3607
+ updatedAt: Date;
3608
+ valid: boolean;
3609
+ yearlyPrice?: BillingPriceResponseData;
3610
+ }[];
3611
+ addOns: {
3612
+ isSelected: boolean;
3613
+ audienceType?: string | null;
3614
+ billingProduct?: BillingProductDetailResponseData;
3615
+ companyCount: number;
3616
+ createdAt: Date;
3617
+ current: boolean;
3618
+ description: string;
3619
+ entitlements: Array<PlanEntitlementResponseData>;
3620
+ features: Array<FeatureDetailResponseData>;
3621
+ icon: string;
3622
+ id: string;
3623
+ isDefault: boolean;
3624
+ monthlyPrice?: BillingPriceResponseData;
3625
+ name: string;
3626
+ planType: string;
3627
+ updatedAt: Date;
3628
+ valid: boolean;
3629
+ yearlyPrice?: BillingPriceResponseData;
3630
+ }[];
3631
+ periods: string[];
3632
+ };
3633
+
3536
3634
  export declare const useEmbed: () => EmbedContextProps;
3537
3635
 
3538
3636
  export declare function useIsLightBackground(): boolean;