@schematichq/schematic-components 0.3.12 → 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.
@@ -238,6 +238,12 @@ declare interface BillingProductForSubscriptionResponseData {
238
238
  * @memberof BillingProductForSubscriptionResponseData
239
239
  */
240
240
  interval: string;
241
+ /**
242
+ *
243
+ * @type {string}
244
+ * @memberof BillingProductForSubscriptionResponseData
245
+ */
246
+ meterId?: string | null;
241
247
  /**
242
248
  *
243
249
  * @type {string}
@@ -274,6 +280,12 @@ declare interface BillingProductForSubscriptionResponseData {
274
280
  * @memberof BillingProductForSubscriptionResponseData
275
281
  */
276
282
  updatedAt: Date;
283
+ /**
284
+ *
285
+ * @type {string}
286
+ * @memberof BillingProductForSubscriptionResponseData
287
+ */
288
+ usageType: string;
277
289
  }
278
290
 
279
291
  /**
@@ -506,28 +518,25 @@ declare function canConsumeForm(consumes: Consume[]): boolean;
506
518
 
507
519
  export declare const Card: ForwardRefExoticComponent<CardProps & RefAttributes<HTMLDivElement | null>>;
508
520
 
521
+ export declare const cardBoxShadow = "0px 1px 20px 0px #1018280F, 0px 1px 3px 0px #1018281A";
522
+
509
523
  export declare interface CardProps {
510
524
  children?: React.ReactNode;
511
525
  className?: string;
512
526
  }
513
527
 
514
- /**
515
- * Schematic API
516
- * Schematic API
517
- *
518
- * The version of the OpenAPI document: 0.1
519
- *
520
- *
521
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
522
- * https://openapi-generator.tech
523
- * Do not edit the class manually.
524
- */
525
528
  /**
526
529
  *
527
530
  * @export
528
531
  * @interface ChangeSubscriptionRequestBody
529
532
  */
530
533
  declare interface ChangeSubscriptionRequestBody {
534
+ /**
535
+ *
536
+ * @type {Array<UpdateAddOnRequestBody>}
537
+ * @memberof ChangeSubscriptionRequestBody
538
+ */
539
+ addOnIds: Array<UpdateAddOnRequestBody>;
531
540
  /**
532
541
  *
533
542
  * @type {string}
@@ -602,8 +611,6 @@ declare class CheckoutApi extends runtime.BaseAPI {
602
611
  updatePaymentMethod(requestParameters: UpdatePaymentMethodRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UpdatePaymentMethodResponse>;
603
612
  }
604
613
 
605
- export declare const CheckoutDialog: () => JSX_2.Element;
606
-
607
614
  declare interface CheckoutRequest {
608
615
  changeSubscriptionRequestBody: ChangeSubscriptionRequestBody;
609
616
  }
@@ -1378,6 +1385,44 @@ declare interface DesignProps_5 {
1378
1385
  }
1379
1386
 
1380
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 {
1381
1426
  header: {
1382
1427
  isVisible: boolean;
1383
1428
  fontStyle: FontStyle;
@@ -1408,7 +1453,7 @@ declare interface ElementProps {
1408
1453
  export declare const EmbedButton: IStyledComponentBase<"web", Substitute<ButtonProps, {
1409
1454
  $size?: "sm" | "md" | "lg";
1410
1455
  $color?: "primary" | "secondary";
1411
- $variant?: "outline" | "filled";
1456
+ $variant?: "outline" | "filled" | "text";
1412
1457
  }>> & string & Omit<({ color, size, variant, disabled, isLoading, children, ...props }: ButtonProps) => JSX_2.Element, keyof Component<any, {}, any>>;
1413
1458
 
1414
1459
  export declare const EmbedContext: Context<EmbedContextProps>;
@@ -2143,6 +2188,10 @@ ref?: ((instance: HTMLDivElement | null) => void | DO_NOT_USE_OR_YOU_WILL_BE_FIR
2143
2188
 
2144
2189
  export declare type FontStyle = keyof EmbedThemeSettings["typography"];
2145
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
+
2146
2195
  /**
2147
2196
  * Schematic API
2148
2197
  * Schematic API
@@ -2509,14 +2558,6 @@ declare interface ModalProps {
2509
2558
 
2510
2559
  declare type ModelPropertyNaming = "camelCase" | "snake_case" | "PascalCase" | "original";
2511
2560
 
2512
- export declare const PaymentForm: ({ onConfirm }: PaymentFormProps) => JSX_2.Element;
2513
-
2514
- declare interface PaymentFormProps {
2515
- plan?: CompanyPlanDetailResponseData;
2516
- period?: string;
2517
- onConfirm?: (paymentMethodId: string) => void;
2518
- }
2519
-
2520
2561
  export declare const PaymentMethod: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps_4> & HTMLAttributes<HTMLDivElement> & {
2521
2562
  portal?: HTMLElement | null;
2522
2563
  } & RefAttributes<HTMLDivElement | null>>;
@@ -2888,6 +2929,49 @@ declare interface PreviewObject {
2888
2929
  name: string;
2889
2930
  }
2890
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
+
2891
2975
  /**
2892
2976
  * Schematic API
2893
2977
  * Schematic API
@@ -2931,6 +3015,12 @@ declare interface PreviewSubscriptionChangeResponseData {
2931
3015
  proration: number;
2932
3016
  }
2933
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
+
2934
3024
  export declare const ProgressBar: ({ progress, value, total, color, barWidth, ...props }: ProgressBarProps) => JSX_2.Element;
2935
3025
 
2936
3026
  export declare interface ProgressBarProps extends React.ComponentPropsWithoutRef<typeof Flex> {
@@ -3083,10 +3173,10 @@ declare interface RuleConditionDetailResponseData {
3083
3173
  resourceIds: Array<string>;
3084
3174
  /**
3085
3175
  *
3086
- * @type {Array<RuleConditionResourceResponseData>}
3176
+ * @type {Array<PreviewObjectResponseData>}
3087
3177
  * @memberof RuleConditionDetailResponseData
3088
3178
  */
3089
- resources: Array<RuleConditionResourceResponseData>;
3179
+ resources: Array<PreviewObjectResponseData>;
3090
3180
  /**
3091
3181
  *
3092
3182
  * @type {string}
@@ -3181,37 +3271,6 @@ declare interface RuleConditionGroupDetailResponseData {
3181
3271
  updatedAt: Date;
3182
3272
  }
3183
3273
 
3184
- /**
3185
- * Schematic API
3186
- * Schematic API
3187
- *
3188
- * The version of the OpenAPI document: 0.1
3189
- *
3190
- *
3191
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3192
- * https://openapi-generator.tech
3193
- * Do not edit the class manually.
3194
- */
3195
- /**
3196
- *
3197
- * @export
3198
- * @interface RuleConditionResourceResponseData
3199
- */
3200
- declare interface RuleConditionResourceResponseData {
3201
- /**
3202
- *
3203
- * @type {string}
3204
- * @memberof RuleConditionResourceResponseData
3205
- */
3206
- id: string;
3207
- /**
3208
- *
3209
- * @type {string}
3210
- * @memberof RuleConditionResourceResponseData
3211
- */
3212
- name: string;
3213
- }
3214
-
3215
3274
  /**
3216
3275
  *
3217
3276
  * @export
@@ -3444,9 +3503,40 @@ export declare interface TypographySettings {
3444
3503
  color: string;
3445
3504
  }
3446
3505
 
3447
- 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>>;
3448
3507
 
3449
- export declare type UpcomingBillProps = DesignProps_6;
3508
+ export declare type UpcomingBillProps = DesignProps_7;
3509
+
3510
+ /**
3511
+ * Schematic API
3512
+ * Schematic API
3513
+ *
3514
+ * The version of the OpenAPI document: 0.1
3515
+ *
3516
+ *
3517
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3518
+ * https://openapi-generator.tech
3519
+ * Do not edit the class manually.
3520
+ */
3521
+ /**
3522
+ *
3523
+ * @export
3524
+ * @interface UpdateAddOnRequestBody
3525
+ */
3526
+ declare interface UpdateAddOnRequestBody {
3527
+ /**
3528
+ *
3529
+ * @type {string}
3530
+ * @memberof UpdateAddOnRequestBody
3531
+ */
3532
+ addOnId: string;
3533
+ /**
3534
+ *
3535
+ * @type {string}
3536
+ * @memberof UpdateAddOnRequestBody
3537
+ */
3538
+ priceId: string;
3539
+ }
3450
3540
 
3451
3541
  declare interface UpdatePaymentMethodRequest {
3452
3542
  updatePaymentMethodRequestBody: UpdatePaymentMethodRequestBody;
@@ -3497,6 +3587,50 @@ declare interface UpdatePaymentMethodResponse {
3497
3587
  params: object;
3498
3588
  }
3499
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
+
3500
3634
  export declare const useEmbed: () => EmbedContextProps;
3501
3635
 
3502
3636
  export declare function useIsLightBackground(): boolean;