@schematichq/schematic-components 2.27.1 → 2.29.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/README.md +94 -1
- package/dist/schematic-components.browser.cjs.js +248 -107
- package/dist/schematic-components.browser.esm.js +248 -107
- package/dist/schematic-components.cjs.js +248 -107
- package/dist/schematic-components.d.ts +46 -0
- package/dist/schematic-components.esm.js +248 -107
- package/package.json +5 -5
|
@@ -7207,6 +7207,13 @@ export declare interface EmbedContextProps extends Omit<EmbedState, SettingsLaye
|
|
|
7207
7207
|
hydrate: () => DebouncedApiPromise<HydrateDataWithCompanyContext>;
|
|
7208
7208
|
hydrateComponent: (id: string) => DebouncedApiPromise<HydrateDataWithCompanyContext>;
|
|
7209
7209
|
hydrateExternal: (fn: () => Promise<HydrateDataWithCompanyContext>) => DebouncedApiPromise<HydrateDataWithCompanyContext>;
|
|
7210
|
+
/**
|
|
7211
|
+
* Re-fetch the mounted `SchematicEmbed`'s component with extra params,
|
|
7212
|
+
* without swapping the embed for its loading state. Resolves with the new
|
|
7213
|
+
* data once it's applied. Rejects if the fetch fails, or if no component has
|
|
7214
|
+
* been hydrated yet.
|
|
7215
|
+
*/
|
|
7216
|
+
rehydrateWithParams: (params: RehydrateParams) => Promise<HydrateDataWithCompanyContext>;
|
|
7210
7217
|
getUpcomingInvoice: (id: string) => DebouncedApiPromise<HydrateUpcomingInvoiceResponse>;
|
|
7211
7218
|
getCustomerBalance: () => DebouncedApiPromise<FetchCustomerBalanceResponse>;
|
|
7212
7219
|
listInvoices: () => DebouncedApiPromise<ListInvoicesResponse>;
|
|
@@ -7363,6 +7370,7 @@ declare const en: {
|
|
|
7363
7370
|
"An invoice is created when charges reach $X; the rest is billed monthly.": string;
|
|
7364
7371
|
"An unknown error occurred.": string;
|
|
7365
7372
|
Billed: string;
|
|
7373
|
+
"Billing threshold": string;
|
|
7366
7374
|
"Bundle selected": string;
|
|
7367
7375
|
"Buy credits": string;
|
|
7368
7376
|
Cancel: string;
|
|
@@ -7397,8 +7405,11 @@ declare const en: {
|
|
|
7397
7405
|
"Due today": string;
|
|
7398
7406
|
"Edit payment details": string;
|
|
7399
7407
|
Edit: string;
|
|
7408
|
+
Email: string;
|
|
7400
7409
|
"Ends on": string;
|
|
7401
7410
|
"Enter discount code": string;
|
|
7411
|
+
"Enter email address": string;
|
|
7412
|
+
Error: string;
|
|
7402
7413
|
"Error initializing payment method change. Please try again.": string;
|
|
7403
7414
|
"Error processing payment. Please try a different payment method.": string;
|
|
7404
7415
|
"Error retrieving plan details. Please try again in a moment.": string;
|
|
@@ -7419,6 +7430,7 @@ declare const en: {
|
|
|
7419
7430
|
"Invoice credit tooltip": string;
|
|
7420
7431
|
"Invoice charge tooltip": string;
|
|
7421
7432
|
Invoices: string;
|
|
7433
|
+
Limit: string;
|
|
7422
7434
|
"Limit of": string;
|
|
7423
7435
|
Loading: string;
|
|
7424
7436
|
"Manage plan": string;
|
|
@@ -7443,6 +7455,8 @@ declare const en: {
|
|
|
7443
7455
|
"Payment Details": string;
|
|
7444
7456
|
"Plan selected": string;
|
|
7445
7457
|
"Please accept the agreement to continue.": string;
|
|
7458
|
+
"Please try again later.": string;
|
|
7459
|
+
"Portal not found": string;
|
|
7446
7460
|
Plan: string;
|
|
7447
7461
|
Plans: string;
|
|
7448
7462
|
"Please provide an access token.": string;
|
|
@@ -7494,6 +7508,7 @@ declare const en: {
|
|
|
7494
7508
|
"There was a problem retrieving your upcoming invoice.": string;
|
|
7495
7509
|
"There was a problem retrieving your invoices.": string;
|
|
7496
7510
|
"Tier-based": string;
|
|
7511
|
+
"Tiered pricing": string;
|
|
7497
7512
|
"Tiers apply progressively as quantity increases.": string;
|
|
7498
7513
|
"Top up balance with:": string;
|
|
7499
7514
|
"Top-ups": string;
|
|
@@ -7567,6 +7582,15 @@ declare const en: {
|
|
|
7567
7582
|
"$X/unit/period": string;
|
|
7568
7583
|
"$X/Y units/period": string;
|
|
7569
7584
|
day: string;
|
|
7585
|
+
day_one: string;
|
|
7586
|
+
day_other: string;
|
|
7587
|
+
hour_one: string;
|
|
7588
|
+
hour_other: string;
|
|
7589
|
+
minute_one: string;
|
|
7590
|
+
minute_other: string;
|
|
7591
|
+
second_one: string;
|
|
7592
|
+
second_other: string;
|
|
7593
|
+
week: string;
|
|
7570
7594
|
month: string;
|
|
7571
7595
|
quarter: string;
|
|
7572
7596
|
year: string;
|
|
@@ -7575,6 +7599,13 @@ declare const en: {
|
|
|
7575
7599
|
yr: string;
|
|
7576
7600
|
"one time": string;
|
|
7577
7601
|
"billing period": string;
|
|
7602
|
+
"billing period_one": string;
|
|
7603
|
+
"billing period_other": string;
|
|
7604
|
+
daily: string;
|
|
7605
|
+
weekly: string;
|
|
7606
|
+
monthly: string;
|
|
7607
|
+
quarterly: string;
|
|
7608
|
+
yearly: string;
|
|
7578
7609
|
"expires after purchase": string;
|
|
7579
7610
|
"expires at the end of the billing period": string;
|
|
7580
7611
|
"expires at the end of the next billing period": string;
|
|
@@ -9630,6 +9661,7 @@ export declare const initialContext: {
|
|
|
9630
9661
|
hydrate: () => never;
|
|
9631
9662
|
hydrateComponent: () => never;
|
|
9632
9663
|
hydrateExternal: () => never;
|
|
9664
|
+
rehydrateWithParams: () => never;
|
|
9633
9665
|
getUpcomingInvoice: () => never;
|
|
9634
9666
|
getCustomerBalance: () => never;
|
|
9635
9667
|
listInvoices: () => never;
|
|
@@ -12935,6 +12967,20 @@ declare interface QuantityProps {
|
|
|
12935
12967
|
currency?: string;
|
|
12936
12968
|
}
|
|
12937
12969
|
|
|
12970
|
+
/**
|
|
12971
|
+
* Extra params for {@link EmbedContextProps.rehydrateWithParams}.
|
|
12972
|
+
*/
|
|
12973
|
+
export declare interface RehydrateParams {
|
|
12974
|
+
/**
|
|
12975
|
+
* Add-on IDs to offer in the checkout even when they aren't live in the
|
|
12976
|
+
* catalog, such as an add-on created for a single purchase. Including an
|
|
12977
|
+
* add-on doesn't select it; pass it in `initializeWithPlan`'s `addOnIds` for
|
|
12978
|
+
* that. An ID that isn't an add-on with a billing product is left out, with
|
|
12979
|
+
* a console warning.
|
|
12980
|
+
*/
|
|
12981
|
+
includeAddOnIds?: string[];
|
|
12982
|
+
}
|
|
12983
|
+
|
|
12938
12984
|
declare interface RequestContext {
|
|
12939
12985
|
fetch: FetchAPI;
|
|
12940
12986
|
url: string;
|