@schematichq/schematic-components 1.4.2 → 1.5.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 +1191 -873
- package/dist/schematic-components.d.ts +186 -1
- package/dist/schematic-components.esm.js +959 -640
- package/package.json +14 -14
|
@@ -1966,6 +1966,20 @@ export declare interface ColumnProps extends React.HTMLProps<HTMLDivElement> {
|
|
|
1966
1966
|
basis?: string;
|
|
1967
1967
|
}
|
|
1968
1968
|
|
|
1969
|
+
/**
|
|
1970
|
+
* The returned resource
|
|
1971
|
+
* @export
|
|
1972
|
+
* @interface CompanyCustomerBalance
|
|
1973
|
+
*/
|
|
1974
|
+
declare interface CompanyCustomerBalance {
|
|
1975
|
+
/**
|
|
1976
|
+
*
|
|
1977
|
+
* @type {Array<CurrencyBalance>}
|
|
1978
|
+
* @memberof CompanyCustomerBalance
|
|
1979
|
+
*/
|
|
1980
|
+
balances: Array<CurrencyBalance>;
|
|
1981
|
+
}
|
|
1982
|
+
|
|
1969
1983
|
/**
|
|
1970
1984
|
*
|
|
1971
1985
|
* @export
|
|
@@ -3177,6 +3191,91 @@ declare interface CreditCompanyGrantView {
|
|
|
3177
3191
|
zeroedOutReason?: string | null;
|
|
3178
3192
|
}
|
|
3179
3193
|
|
|
3194
|
+
/**
|
|
3195
|
+
* Schematic API
|
|
3196
|
+
* Schematic API
|
|
3197
|
+
*
|
|
3198
|
+
* The version of the OpenAPI document: 0.1
|
|
3199
|
+
*
|
|
3200
|
+
*
|
|
3201
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3202
|
+
* https://openapi-generator.tech
|
|
3203
|
+
* Do not edit the class manually.
|
|
3204
|
+
*/
|
|
3205
|
+
/**
|
|
3206
|
+
*
|
|
3207
|
+
* @export
|
|
3208
|
+
* @interface CreditGrantDetail
|
|
3209
|
+
*/
|
|
3210
|
+
declare interface CreditGrantDetail {
|
|
3211
|
+
/**
|
|
3212
|
+
*
|
|
3213
|
+
* @type {string}
|
|
3214
|
+
* @memberof CreditGrantDetail
|
|
3215
|
+
*/
|
|
3216
|
+
creditTypeIcon?: string | null;
|
|
3217
|
+
/**
|
|
3218
|
+
*
|
|
3219
|
+
* @type {Date}
|
|
3220
|
+
* @memberof CreditGrantDetail
|
|
3221
|
+
*/
|
|
3222
|
+
expiresAt?: Date | null;
|
|
3223
|
+
/**
|
|
3224
|
+
*
|
|
3225
|
+
* @type {string}
|
|
3226
|
+
* @memberof CreditGrantDetail
|
|
3227
|
+
*/
|
|
3228
|
+
grantReason: CreditGrantDetailGrantReasonEnum;
|
|
3229
|
+
/**
|
|
3230
|
+
*
|
|
3231
|
+
* @type {number}
|
|
3232
|
+
* @memberof CreditGrantDetail
|
|
3233
|
+
*/
|
|
3234
|
+
quantity: number;
|
|
3235
|
+
}
|
|
3236
|
+
|
|
3237
|
+
/**
|
|
3238
|
+
* @export
|
|
3239
|
+
*/
|
|
3240
|
+
declare const CreditGrantDetailGrantReasonEnum: {
|
|
3241
|
+
readonly Free: "free";
|
|
3242
|
+
readonly Plan: "plan";
|
|
3243
|
+
readonly Purchased: "purchased";
|
|
3244
|
+
};
|
|
3245
|
+
|
|
3246
|
+
declare type CreditGrantDetailGrantReasonEnum = (typeof CreditGrantDetailGrantReasonEnum)[keyof typeof CreditGrantDetailGrantReasonEnum];
|
|
3247
|
+
|
|
3248
|
+
/**
|
|
3249
|
+
* Schematic API
|
|
3250
|
+
* Schematic API
|
|
3251
|
+
*
|
|
3252
|
+
* The version of the OpenAPI document: 0.1
|
|
3253
|
+
*
|
|
3254
|
+
*
|
|
3255
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3256
|
+
* https://openapi-generator.tech
|
|
3257
|
+
* Do not edit the class manually.
|
|
3258
|
+
*/
|
|
3259
|
+
/**
|
|
3260
|
+
*
|
|
3261
|
+
* @export
|
|
3262
|
+
* @interface CurrencyBalance
|
|
3263
|
+
*/
|
|
3264
|
+
declare interface CurrencyBalance {
|
|
3265
|
+
/**
|
|
3266
|
+
*
|
|
3267
|
+
* @type {number}
|
|
3268
|
+
* @memberof CurrencyBalance
|
|
3269
|
+
*/
|
|
3270
|
+
balance: number;
|
|
3271
|
+
/**
|
|
3272
|
+
*
|
|
3273
|
+
* @type {string}
|
|
3274
|
+
* @memberof CurrencyBalance
|
|
3275
|
+
*/
|
|
3276
|
+
currency: string;
|
|
3277
|
+
}
|
|
3278
|
+
|
|
3180
3279
|
/**
|
|
3181
3280
|
* Schematic API
|
|
3182
3281
|
* Schematic API
|
|
@@ -3530,6 +3629,7 @@ export declare interface EmbedContextProps extends EmbedState {
|
|
|
3530
3629
|
hydrateComponent: (id: string) => DebouncedApiPromise<ComponentHydrateResponseData>;
|
|
3531
3630
|
hydrateExternal: (fn: () => Promise<ComponentHydrateResponseData>) => DebouncedApiPromise<ComponentHydrateResponseData>;
|
|
3532
3631
|
getUpcomingInvoice: (id: string) => DebouncedApiPromise<HydrateUpcomingInvoiceResponse>;
|
|
3632
|
+
getCustomerBalance: () => DebouncedApiPromise<FetchCustomerBalanceResponse>;
|
|
3533
3633
|
listInvoices: () => DebouncedApiPromise<ListInvoicesResponse>;
|
|
3534
3634
|
createSetupIntent: () => DebouncedApiPromise<GetSetupIntentResponse>;
|
|
3535
3635
|
updatePaymentMethod: (paymentMethodId: string) => DebouncedApiPromise<UpdatePaymentMethodResponse>;
|
|
@@ -3545,6 +3645,7 @@ export declare interface EmbedContextProps extends EmbedState {
|
|
|
3545
3645
|
updateSettings: (settings: DeepPartial<EmbedSettings>, options?: {
|
|
3546
3646
|
update?: boolean;
|
|
3547
3647
|
}) => void;
|
|
3648
|
+
debug: (message: string, ...args: unknown[]) => void;
|
|
3548
3649
|
}
|
|
3549
3650
|
|
|
3550
3651
|
export declare type EmbedLayout = "portal" | "checkout" | "payment" | "unsubscribe" | "disabled";
|
|
@@ -4451,6 +4552,50 @@ declare interface FeatureUsageResponseData {
|
|
|
4451
4552
|
* @memberof FeatureUsageResponseData
|
|
4452
4553
|
*/
|
|
4453
4554
|
companyOverride?: CompanyOverrideResponseData;
|
|
4555
|
+
/**
|
|
4556
|
+
*
|
|
4557
|
+
* @type {{ [key: string]: number; }}
|
|
4558
|
+
* @memberof FeatureUsageResponseData
|
|
4559
|
+
*/
|
|
4560
|
+
creditGrantCounts?: {
|
|
4561
|
+
[key: string]: number;
|
|
4562
|
+
};
|
|
4563
|
+
/**
|
|
4564
|
+
*
|
|
4565
|
+
* @type {Array<CreditGrantDetail>}
|
|
4566
|
+
* @memberof FeatureUsageResponseData
|
|
4567
|
+
*/
|
|
4568
|
+
creditGrantDetails?: Array<CreditGrantDetail>;
|
|
4569
|
+
/**
|
|
4570
|
+
* Reason for the credit grant
|
|
4571
|
+
* @type {string}
|
|
4572
|
+
* @memberof FeatureUsageResponseData
|
|
4573
|
+
*/
|
|
4574
|
+
creditGrantReason?: FeatureUsageResponseDataCreditGrantReasonEnum | null;
|
|
4575
|
+
/**
|
|
4576
|
+
*
|
|
4577
|
+
* @type {number}
|
|
4578
|
+
* @memberof FeatureUsageResponseData
|
|
4579
|
+
*/
|
|
4580
|
+
creditRemaining?: number | null;
|
|
4581
|
+
/**
|
|
4582
|
+
*
|
|
4583
|
+
* @type {number}
|
|
4584
|
+
* @memberof FeatureUsageResponseData
|
|
4585
|
+
*/
|
|
4586
|
+
creditTotal?: number | null;
|
|
4587
|
+
/**
|
|
4588
|
+
* Icon identifier for the credit type
|
|
4589
|
+
* @type {string}
|
|
4590
|
+
* @memberof FeatureUsageResponseData
|
|
4591
|
+
*/
|
|
4592
|
+
creditTypeIcon?: string | null;
|
|
4593
|
+
/**
|
|
4594
|
+
*
|
|
4595
|
+
* @type {number}
|
|
4596
|
+
* @memberof FeatureUsageResponseData
|
|
4597
|
+
*/
|
|
4598
|
+
creditUsed?: number | null;
|
|
4454
4599
|
/**
|
|
4455
4600
|
*
|
|
4456
4601
|
* @type {Date}
|
|
@@ -4463,6 +4608,12 @@ declare interface FeatureUsageResponseData {
|
|
|
4463
4608
|
* @memberof FeatureUsageResponseData
|
|
4464
4609
|
*/
|
|
4465
4610
|
entitlementId: string;
|
|
4611
|
+
/**
|
|
4612
|
+
* Source of the entitlement (plan or company_override)
|
|
4613
|
+
* @type {string}
|
|
4614
|
+
* @memberof FeatureUsageResponseData
|
|
4615
|
+
*/
|
|
4616
|
+
entitlementSource?: string | null;
|
|
4466
4617
|
/**
|
|
4467
4618
|
*
|
|
4468
4619
|
* @type {string}
|
|
@@ -4549,8 +4700,39 @@ declare const FeatureUsageResponseDataAllocationTypeEnum: {
|
|
|
4549
4700
|
|
|
4550
4701
|
declare type FeatureUsageResponseDataAllocationTypeEnum = (typeof FeatureUsageResponseDataAllocationTypeEnum)[keyof typeof FeatureUsageResponseDataAllocationTypeEnum];
|
|
4551
4702
|
|
|
4703
|
+
/**
|
|
4704
|
+
* @export
|
|
4705
|
+
*/
|
|
4706
|
+
declare const FeatureUsageResponseDataCreditGrantReasonEnum: {
|
|
4707
|
+
readonly Free: "free";
|
|
4708
|
+
readonly Plan: "plan";
|
|
4709
|
+
readonly Purchased: "purchased";
|
|
4710
|
+
};
|
|
4711
|
+
|
|
4712
|
+
declare type FeatureUsageResponseDataCreditGrantReasonEnum = (typeof FeatureUsageResponseDataCreditGrantReasonEnum)[keyof typeof FeatureUsageResponseDataCreditGrantReasonEnum];
|
|
4713
|
+
|
|
4552
4714
|
declare type FetchAPI = WindowOrWorkerGlobalScope["fetch"];
|
|
4553
4715
|
|
|
4716
|
+
/**
|
|
4717
|
+
*
|
|
4718
|
+
* @export
|
|
4719
|
+
* @interface FetchCustomerBalanceResponse
|
|
4720
|
+
*/
|
|
4721
|
+
declare interface FetchCustomerBalanceResponse {
|
|
4722
|
+
/**
|
|
4723
|
+
*
|
|
4724
|
+
* @type {CompanyCustomerBalance}
|
|
4725
|
+
* @memberof FetchCustomerBalanceResponse
|
|
4726
|
+
*/
|
|
4727
|
+
data: CompanyCustomerBalance;
|
|
4728
|
+
/**
|
|
4729
|
+
* Input parameters
|
|
4730
|
+
* @type {object}
|
|
4731
|
+
* @memberof FetchCustomerBalanceResponse
|
|
4732
|
+
*/
|
|
4733
|
+
params: object;
|
|
4734
|
+
}
|
|
4735
|
+
|
|
4554
4736
|
declare interface FetchParams {
|
|
4555
4737
|
url: string;
|
|
4556
4738
|
init: RequestInit;
|
|
@@ -4870,6 +5052,7 @@ export declare const initialContext: {
|
|
|
4870
5052
|
hydrateComponent: () => never;
|
|
4871
5053
|
hydrateExternal: () => never;
|
|
4872
5054
|
getUpcomingInvoice: () => never;
|
|
5055
|
+
getCustomerBalance: () => never;
|
|
4873
5056
|
listInvoices: () => never;
|
|
4874
5057
|
createSetupIntent: () => never;
|
|
4875
5058
|
updatePaymentMethod: () => never;
|
|
@@ -4883,6 +5066,7 @@ export declare const initialContext: {
|
|
|
4883
5066
|
setCheckoutState: () => never;
|
|
4884
5067
|
setData: () => never;
|
|
4885
5068
|
updateSettings: () => never;
|
|
5069
|
+
debug: () => never;
|
|
4886
5070
|
isPending: boolean;
|
|
4887
5071
|
stale: boolean;
|
|
4888
5072
|
accessToken?: string;
|
|
@@ -7402,12 +7586,13 @@ export declare interface ThemeSettings {
|
|
|
7402
7586
|
};
|
|
7403
7587
|
}
|
|
7404
7588
|
|
|
7405
|
-
export declare const Tooltip: ({ trigger, content, position, ...rest }: TooltipProps) => JSX.Element;
|
|
7589
|
+
export declare const Tooltip: ({ trigger, content, position, fullWidth, ...rest }: TooltipProps) => JSX.Element;
|
|
7406
7590
|
|
|
7407
7591
|
export declare interface TooltipProps extends BoxProps {
|
|
7408
7592
|
trigger: React.ReactNode;
|
|
7409
7593
|
content: React.ReactNode;
|
|
7410
7594
|
position?: Position;
|
|
7595
|
+
fullWidth?: boolean;
|
|
7411
7596
|
}
|
|
7412
7597
|
|
|
7413
7598
|
declare type TransientCSSProperties = {
|