@schematichq/schematic-components 2.15.0 → 2.16.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.
@@ -4,7 +4,6 @@ import { Context } from 'react';
4
4
  import { DetailedHTMLProps } from 'react';
5
5
  import { FastOmit } from 'styled-components';
6
6
  import { ForwardRefExoticComponent } from 'react';
7
- import { HTMLAttributeAnchorTarget } from 'react';
8
7
  import { HTMLAttributes } from 'react';
9
8
  import { IconNames } from '@schematichq/schematic-icons';
10
9
  import { IconProps as IconProps_2 } from '@schematichq/schematic-icons';
@@ -297,6 +296,7 @@ declare const BillingCreditGrantZeroedOutReason: {
297
296
  readonly Manual: "manual";
298
297
  readonly PlanChange: "plan_change";
299
298
  readonly PlanPeriodReset: "plan_period_reset";
299
+ readonly Reconciled: "reconciled";
300
300
  };
301
301
 
302
302
  declare type BillingCreditGrantZeroedOutReason = (typeof BillingCreditGrantZeroedOutReason)[keyof typeof BillingCreditGrantZeroedOutReason];
@@ -3018,7 +3018,9 @@ declare const ChargeType_2: {
3018
3018
 
3019
3019
  declare type ChargeType_2 = (typeof ChargeType_2)[keyof typeof ChargeType_2];
3020
3020
 
3021
- export declare const Checkout: ({ isPaymentMethodRequired, setPaymentMethodId, updatePromoCode, confirmPaymentIntentProps, financeData, onPaymentMethodSaved, }: CheckoutProps) => JSX.Element | null;
3021
+ 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;
3022
+
3023
+ export declare const Checkout: ({ customCheckoutFields, customFieldValues, isPaymentMethodRequired, onCustomFieldChange, optInRequired, optInTitle, optInText, optInAccepted, setOptInAccepted, setPaymentMethodId, updatePromoCode, confirmPaymentIntentProps, financeData, onPaymentMethodSaved, }: CheckoutProps) => JSX.Element | null;
3022
3024
 
3023
3025
  /**
3024
3026
  * Host-provided initial values used to pre-populate the checkout payment form.
@@ -3145,7 +3147,15 @@ export declare interface CheckoutPrefill {
3145
3147
  }
3146
3148
 
3147
3149
  declare interface CheckoutProps {
3150
+ customCheckoutFields?: CheckoutFieldWithValue[];
3151
+ customFieldValues: Record<string, string>;
3148
3152
  isPaymentMethodRequired: boolean;
3153
+ onCustomFieldChange: (fieldId: string, value: string) => void;
3154
+ optInRequired: boolean;
3155
+ optInTitle?: string | null;
3156
+ optInText?: string | null;
3157
+ optInAccepted: boolean;
3158
+ setOptInAccepted: (accepted: boolean) => void;
3149
3159
  setPaymentMethodId: (id: string) => void;
3150
3160
  updatePromoCode: (code: string) => void;
3151
3161
  confirmPaymentIntentProps?: ConfirmPaymentIntentProps_2 | null | undefined;
@@ -6319,6 +6329,7 @@ export declare interface EmbedContextProps extends EmbedState {
6319
6329
  checkout: (changeSubscriptionRequestBody: ChangeSubscriptionRequestBody) => DebouncedApiPromise<CheckoutResponse>;
6320
6330
  finishCheckout: (changeSubscriptionRequestBody: CheckoutResponseData) => void;
6321
6331
  unsubscribe: () => DebouncedApiPromise<CheckoutUnsubscribeResponse>;
6332
+ updateCustomFieldValues: (values: Record<string, string>) => Promise<void> | undefined;
6322
6333
  setAccessToken: (token: string) => void;
6323
6334
  setError: (error: Error) => void;
6324
6335
  setLayout: (layout: EmbedLayout) => void;
@@ -8260,6 +8271,7 @@ export declare const initialContext: {
8260
8271
  previewCheckout: () => never;
8261
8272
  checkout: () => never;
8262
8273
  unsubscribe: () => never;
8274
+ updateCustomFieldValues: () => never;
8263
8275
  setError: () => never;
8264
8276
  setAccessToken: () => never;
8265
8277
  setLayout: () => never;
@@ -8284,11 +8296,11 @@ export declare const initialContext: {
8284
8296
 
8285
8297
  export declare const initialState: EmbedState;
8286
8298
 
8287
- export declare const Input: IStyledComponentBase<"web", FastOmit<FastOmit<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "$color" | "$variant" | "$size"> & {
8299
+ export declare const Input: IStyledComponentBase<"web", FastOmit<FastOmit<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "$color" | "$size" | "$variant"> & {
8288
8300
  $size?: "xs" | "sm" | "md" | "lg" | "full";
8289
8301
  $color?: "primary" | "secondary" | "danger";
8290
8302
  $variant?: "filled" | "outline" | "ghost" | "text";
8291
- }, never> & Partial<Pick<FastOmit<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "$color" | "$variant" | "$size"> & {
8303
+ }, never> & Partial<Pick<FastOmit<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "$color" | "$size" | "$variant"> & {
8292
8304
  $size?: "xs" | "sm" | "md" | "lg" | "full";
8293
8305
  $color?: "primary" | "secondary" | "danger";
8294
8306
  $variant?: "filled" | "outline" | "ghost" | "text";
@@ -11003,7 +11015,7 @@ export declare const PricingTable: ForwardRefExoticComponent<ElementProps & Deep
11003
11015
 
11004
11016
  export declare type PricingTableOptions = {
11005
11017
  callToActionUrl?: string;
11006
- callToActionTarget?: HTMLAttributeAnchorTarget;
11018
+ callToActionTarget?: React.HTMLAttributeAnchorTarget;
11007
11019
  onCallToAction?: (plan: PlanViewPublicResponseData | CompanyPlanDetailResponseData) => unknown;
11008
11020
  };
11009
11021