@schematichq/schematic-react 1.17.0 → 1.18.1
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-react.cjs.js +138 -4
- package/dist/schematic-react.d.ts +128 -53
- package/dist/schematic-react.esm.js +138 -4
- package/package.json +6 -6
|
@@ -82,7 +82,7 @@ __export(index_exports, {
|
|
|
82
82
|
});
|
|
83
83
|
module.exports = __toCommonJS(index_exports);
|
|
84
84
|
|
|
85
|
-
// node_modules/.pnpm/@schematichq+schematic-js@1.
|
|
85
|
+
// node_modules/.pnpm/@schematichq+schematic-js@1.18.0/node_modules/@schematichq/schematic-js/dist/schematic.esm.js
|
|
86
86
|
var __create2 = Object.create;
|
|
87
87
|
var __defProp2 = Object.defineProperty;
|
|
88
88
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -1413,7 +1413,7 @@ var ContextSignatureManager = class {
|
|
|
1413
1413
|
}
|
|
1414
1414
|
}
|
|
1415
1415
|
};
|
|
1416
|
-
var version = "1.
|
|
1416
|
+
var version = "1.18.0";
|
|
1417
1417
|
var DEFAULT_CATALOG_QUERY = {};
|
|
1418
1418
|
function normalizeCatalogQuery(query) {
|
|
1419
1419
|
return query.catalogId === void 0 ? {} : { catalogId: query.catalogId };
|
|
@@ -1474,6 +1474,11 @@ __export2(models_exports, {
|
|
|
1474
1474
|
BillingStrategyFromJSONTyped: () => BillingStrategyFromJSONTyped5,
|
|
1475
1475
|
BillingStrategyToJSON: () => BillingStrategyToJSON2,
|
|
1476
1476
|
BillingStrategyToJSONTyped: () => BillingStrategyToJSONTyped5,
|
|
1477
|
+
BillingSubscriptionPauseBehavior: () => BillingSubscriptionPauseBehavior,
|
|
1478
|
+
BillingSubscriptionPauseBehaviorFromJSON: () => BillingSubscriptionPauseBehaviorFromJSON,
|
|
1479
|
+
BillingSubscriptionPauseBehaviorFromJSONTyped: () => BillingSubscriptionPauseBehaviorFromJSONTyped,
|
|
1480
|
+
BillingSubscriptionPauseBehaviorToJSON: () => BillingSubscriptionPauseBehaviorToJSON,
|
|
1481
|
+
BillingSubscriptionPauseBehaviorToJSONTyped: () => BillingSubscriptionPauseBehaviorToJSONTyped,
|
|
1477
1482
|
BillingSubscriptionTrialEndSetting: () => BillingSubscriptionTrialEndSetting,
|
|
1478
1483
|
BillingSubscriptionTrialEndSettingFromJSON: () => BillingSubscriptionTrialEndSettingFromJSON,
|
|
1479
1484
|
BillingSubscriptionTrialEndSettingFromJSONTyped: () => BillingSubscriptionTrialEndSettingFromJSONTyped,
|
|
@@ -1842,6 +1847,10 @@ __export2(models_exports, {
|
|
|
1842
1847
|
GetCompanyUpcomingInvoiceResponseFromJSONTyped: () => GetCompanyUpcomingInvoiceResponseFromJSONTyped,
|
|
1843
1848
|
GetCompanyUpcomingInvoiceResponseToJSON: () => GetCompanyUpcomingInvoiceResponseToJSON,
|
|
1844
1849
|
GetCompanyUpcomingInvoiceResponseToJSONTyped: () => GetCompanyUpcomingInvoiceResponseToJSONTyped,
|
|
1850
|
+
GetInvoiceLinkResponseFromJSON: () => GetInvoiceLinkResponseFromJSON,
|
|
1851
|
+
GetInvoiceLinkResponseFromJSONTyped: () => GetInvoiceLinkResponseFromJSONTyped,
|
|
1852
|
+
GetInvoiceLinkResponseToJSON: () => GetInvoiceLinkResponseToJSON,
|
|
1853
|
+
GetInvoiceLinkResponseToJSONTyped: () => GetInvoiceLinkResponseToJSONTyped,
|
|
1845
1854
|
GetPublicCatalogByIDResponseFromJSON: () => GetPublicCatalogByIDResponseFromJSON,
|
|
1846
1855
|
GetPublicCatalogByIDResponseFromJSONTyped: () => GetPublicCatalogByIDResponseFromJSONTyped,
|
|
1847
1856
|
GetPublicCatalogByIDResponseToJSON: () => GetPublicCatalogByIDResponseToJSON,
|
|
@@ -1850,6 +1859,10 @@ __export2(models_exports, {
|
|
|
1850
1859
|
GetPublicCatalogResponseFromJSONTyped: () => GetPublicCatalogResponseFromJSONTyped,
|
|
1851
1860
|
GetPublicCatalogResponseToJSON: () => GetPublicCatalogResponseToJSON,
|
|
1852
1861
|
GetPublicCatalogResponseToJSONTyped: () => GetPublicCatalogResponseToJSONTyped,
|
|
1862
|
+
InvoiceLinkFromJSON: () => InvoiceLinkFromJSON,
|
|
1863
|
+
InvoiceLinkFromJSONTyped: () => InvoiceLinkFromJSONTyped,
|
|
1864
|
+
InvoiceLinkToJSON: () => InvoiceLinkToJSON,
|
|
1865
|
+
InvoiceLinkToJSONTyped: () => InvoiceLinkToJSONTyped,
|
|
1853
1866
|
InvoiceStatus: () => InvoiceStatus,
|
|
1854
1867
|
InvoiceStatusFromJSON: () => InvoiceStatusFromJSON,
|
|
1855
1868
|
InvoiceStatusFromJSONTyped: () => InvoiceStatusFromJSONTyped,
|
|
@@ -1974,6 +1987,7 @@ __export2(models_exports, {
|
|
|
1974
1987
|
instanceOfBillingProductPriceInterval: () => instanceOfBillingProductPriceInterval,
|
|
1975
1988
|
instanceOfBillingProviderType: () => instanceOfBillingProviderType,
|
|
1976
1989
|
instanceOfBillingStrategy: () => instanceOfBillingStrategy,
|
|
1990
|
+
instanceOfBillingSubscriptionPauseBehavior: () => instanceOfBillingSubscriptionPauseBehavior,
|
|
1977
1991
|
instanceOfBillingSubscriptionTrialEndSetting: () => instanceOfBillingSubscriptionTrialEndSetting,
|
|
1978
1992
|
instanceOfBillingTiersMode: () => instanceOfBillingTiersMode,
|
|
1979
1993
|
instanceOfCatalogAutoTopupResponseData: () => instanceOfCatalogAutoTopupResponseData,
|
|
@@ -2062,8 +2076,10 @@ __export2(models_exports, {
|
|
|
2062
2076
|
instanceOfGetCompanyPaymentMethodsResponse: () => instanceOfGetCompanyPaymentMethodsResponse,
|
|
2063
2077
|
instanceOfGetCompanyResponse: () => instanceOfGetCompanyResponse,
|
|
2064
2078
|
instanceOfGetCompanyUpcomingInvoiceResponse: () => instanceOfGetCompanyUpcomingInvoiceResponse,
|
|
2079
|
+
instanceOfGetInvoiceLinkResponse: () => instanceOfGetInvoiceLinkResponse,
|
|
2065
2080
|
instanceOfGetPublicCatalogByIDResponse: () => instanceOfGetPublicCatalogByIDResponse,
|
|
2066
2081
|
instanceOfGetPublicCatalogResponse: () => instanceOfGetPublicCatalogResponse,
|
|
2082
|
+
instanceOfInvoiceLink: () => instanceOfInvoiceLink,
|
|
2067
2083
|
instanceOfInvoiceStatus: () => instanceOfInvoiceStatus,
|
|
2068
2084
|
instanceOfListCheckoutsParams: () => instanceOfListCheckoutsParams,
|
|
2069
2085
|
instanceOfListCheckoutsResponse: () => instanceOfListCheckoutsResponse,
|
|
@@ -2402,6 +2418,36 @@ function BillingStrategyToJSON2(value) {
|
|
|
2402
2418
|
function BillingStrategyToJSONTyped5(value, ignoreDiscriminator) {
|
|
2403
2419
|
return value;
|
|
2404
2420
|
}
|
|
2421
|
+
var BillingSubscriptionPauseBehavior = {
|
|
2422
|
+
KeepAsDraft: "keep_as_draft",
|
|
2423
|
+
MarkUncollectible: "mark_uncollectible",
|
|
2424
|
+
Void: "void"
|
|
2425
|
+
};
|
|
2426
|
+
function instanceOfBillingSubscriptionPauseBehavior(value) {
|
|
2427
|
+
for (const key in BillingSubscriptionPauseBehavior) {
|
|
2428
|
+
if (Object.prototype.hasOwnProperty.call(
|
|
2429
|
+
BillingSubscriptionPauseBehavior,
|
|
2430
|
+
key
|
|
2431
|
+
)) {
|
|
2432
|
+
if (BillingSubscriptionPauseBehavior[key] === value) {
|
|
2433
|
+
return true;
|
|
2434
|
+
}
|
|
2435
|
+
}
|
|
2436
|
+
}
|
|
2437
|
+
return false;
|
|
2438
|
+
}
|
|
2439
|
+
function BillingSubscriptionPauseBehaviorFromJSON(json) {
|
|
2440
|
+
return BillingSubscriptionPauseBehaviorFromJSONTyped(json, false);
|
|
2441
|
+
}
|
|
2442
|
+
function BillingSubscriptionPauseBehaviorFromJSONTyped(json, ignoreDiscriminator) {
|
|
2443
|
+
return json;
|
|
2444
|
+
}
|
|
2445
|
+
function BillingSubscriptionPauseBehaviorToJSON(value) {
|
|
2446
|
+
return value;
|
|
2447
|
+
}
|
|
2448
|
+
function BillingSubscriptionPauseBehaviorToJSONTyped(value, ignoreDiscriminator) {
|
|
2449
|
+
return value;
|
|
2450
|
+
}
|
|
2405
2451
|
var BillingSubscriptionTrialEndSetting = {
|
|
2406
2452
|
Cancel: "cancel",
|
|
2407
2453
|
Subscribe: "subscribe"
|
|
@@ -4663,6 +4709,7 @@ function CheckoutResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
4663
4709
|
return json;
|
|
4664
4710
|
}
|
|
4665
4711
|
return {
|
|
4712
|
+
accessRevokedAt: json["access_revoked_at"] == null ? void 0 : new Date(json["access_revoked_at"]),
|
|
4666
4713
|
applicationId: json["application_id"] == null ? void 0 : json["application_id"],
|
|
4667
4714
|
cancelAt: json["cancel_at"] == null ? void 0 : json["cancel_at"],
|
|
4668
4715
|
cancelAtPeriodEnd: json["cancel_at_period_end"],
|
|
@@ -4677,6 +4724,9 @@ function CheckoutResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
4677
4724
|
id: json["id"],
|
|
4678
4725
|
interval: json["interval"],
|
|
4679
4726
|
metadata: json["metadata"] == null ? void 0 : json["metadata"],
|
|
4727
|
+
pauseBehavior: json["pause_behavior"] == null ? void 0 : BillingSubscriptionPauseBehaviorFromJSON(json["pause_behavior"]),
|
|
4728
|
+
pauseResumesAt: json["pause_resumes_at"] == null ? void 0 : json["pause_resumes_at"],
|
|
4729
|
+
pausedAt: json["paused_at"] == null ? void 0 : new Date(json["paused_at"]),
|
|
4680
4730
|
periodEnd: json["period_end"],
|
|
4681
4731
|
periodStart: json["period_start"],
|
|
4682
4732
|
providerType: BillingProviderTypeFromJSON2(json["provider_type"]),
|
|
@@ -4699,6 +4749,7 @@ function CheckoutResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
4699
4749
|
return value;
|
|
4700
4750
|
}
|
|
4701
4751
|
return {
|
|
4752
|
+
access_revoked_at: value["accessRevokedAt"] == null ? void 0 : value["accessRevokedAt"].toISOString(),
|
|
4702
4753
|
application_id: value["applicationId"],
|
|
4703
4754
|
cancel_at: value["cancelAt"],
|
|
4704
4755
|
cancel_at_period_end: value["cancelAtPeriodEnd"],
|
|
@@ -4713,6 +4764,11 @@ function CheckoutResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
4713
4764
|
id: value["id"],
|
|
4714
4765
|
interval: value["interval"],
|
|
4715
4766
|
metadata: value["metadata"],
|
|
4767
|
+
pause_behavior: BillingSubscriptionPauseBehaviorToJSON(
|
|
4768
|
+
value["pauseBehavior"]
|
|
4769
|
+
),
|
|
4770
|
+
pause_resumes_at: value["pauseResumesAt"],
|
|
4771
|
+
paused_at: value["pausedAt"] == null ? void 0 : value["pausedAt"].toISOString(),
|
|
4716
4772
|
period_end: value["periodEnd"],
|
|
4717
4773
|
period_start: value["periodStart"],
|
|
4718
4774
|
provider_type: BillingProviderTypeToJSON2(value["providerType"]),
|
|
@@ -6731,6 +6787,64 @@ function GetCompanyUpcomingInvoiceResponseToJSONTyped(value, ignoreDiscriminator
|
|
|
6731
6787
|
params: value["params"]
|
|
6732
6788
|
};
|
|
6733
6789
|
}
|
|
6790
|
+
function instanceOfInvoiceLink(value) {
|
|
6791
|
+
if (!("id" in value) || value["id"] === void 0) return false;
|
|
6792
|
+
if (!("url" in value) || value["url"] === void 0) return false;
|
|
6793
|
+
return true;
|
|
6794
|
+
}
|
|
6795
|
+
function InvoiceLinkFromJSON(json) {
|
|
6796
|
+
return InvoiceLinkFromJSONTyped(json, false);
|
|
6797
|
+
}
|
|
6798
|
+
function InvoiceLinkFromJSONTyped(json, ignoreDiscriminator) {
|
|
6799
|
+
if (json == null) {
|
|
6800
|
+
return json;
|
|
6801
|
+
}
|
|
6802
|
+
return {
|
|
6803
|
+
id: json["id"],
|
|
6804
|
+
url: json["url"]
|
|
6805
|
+
};
|
|
6806
|
+
}
|
|
6807
|
+
function InvoiceLinkToJSON(json) {
|
|
6808
|
+
return InvoiceLinkToJSONTyped(json, false);
|
|
6809
|
+
}
|
|
6810
|
+
function InvoiceLinkToJSONTyped(value, ignoreDiscriminator = false) {
|
|
6811
|
+
if (value == null) {
|
|
6812
|
+
return value;
|
|
6813
|
+
}
|
|
6814
|
+
return {
|
|
6815
|
+
id: value["id"],
|
|
6816
|
+
url: value["url"]
|
|
6817
|
+
};
|
|
6818
|
+
}
|
|
6819
|
+
function instanceOfGetInvoiceLinkResponse(value) {
|
|
6820
|
+
if (!("data" in value) || value["data"] === void 0) return false;
|
|
6821
|
+
if (!("params" in value) || value["params"] === void 0) return false;
|
|
6822
|
+
return true;
|
|
6823
|
+
}
|
|
6824
|
+
function GetInvoiceLinkResponseFromJSON(json) {
|
|
6825
|
+
return GetInvoiceLinkResponseFromJSONTyped(json, false);
|
|
6826
|
+
}
|
|
6827
|
+
function GetInvoiceLinkResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
6828
|
+
if (json == null) {
|
|
6829
|
+
return json;
|
|
6830
|
+
}
|
|
6831
|
+
return {
|
|
6832
|
+
data: InvoiceLinkFromJSON(json["data"]),
|
|
6833
|
+
params: json["params"]
|
|
6834
|
+
};
|
|
6835
|
+
}
|
|
6836
|
+
function GetInvoiceLinkResponseToJSON(json) {
|
|
6837
|
+
return GetInvoiceLinkResponseToJSONTyped(json, false);
|
|
6838
|
+
}
|
|
6839
|
+
function GetInvoiceLinkResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
6840
|
+
if (value == null) {
|
|
6841
|
+
return value;
|
|
6842
|
+
}
|
|
6843
|
+
return {
|
|
6844
|
+
data: InvoiceLinkToJSON(value["data"]),
|
|
6845
|
+
params: value["params"]
|
|
6846
|
+
};
|
|
6847
|
+
}
|
|
6734
6848
|
function instanceOfPublicCatalogResponseData(value) {
|
|
6735
6849
|
if (!("addOns" in value) || value["addOns"] === void 0) return false;
|
|
6736
6850
|
if (!("capabilities" in value) || value["capabilities"] === void 0)
|
|
@@ -8023,6 +8137,10 @@ var SchematicBillingClient = class {
|
|
|
8023
8137
|
return { invoices: decoded.invoices, count: decoded.count };
|
|
8024
8138
|
});
|
|
8025
8139
|
}
|
|
8140
|
+
fetchInvoiceLink(id) {
|
|
8141
|
+
const path = `/components/invoices/${encodeURIComponent(id)}/link`;
|
|
8142
|
+
return this.session.request(path).then((body) => InvoiceLinkFromJSON(dataOf(body, path)).url);
|
|
8143
|
+
}
|
|
8026
8144
|
fetchUpcomingInvoice() {
|
|
8027
8145
|
const path = "/company/upcoming-invoice";
|
|
8028
8146
|
return this.session.request(path, { noContentOn: [204] }).then((body) => {
|
|
@@ -10748,6 +10866,13 @@ var BillingStore = class {
|
|
|
10748
10866
|
const taxIds = await this._client.updateTaxId(taxId);
|
|
10749
10867
|
this.taxIds.seed(SINGLETON, taxIds);
|
|
10750
10868
|
}
|
|
10869
|
+
/**
|
|
10870
|
+
* The current hosted URL for invoice `id`, which the listed `url` can
|
|
10871
|
+
* outlive. A pass-through: the answer is for one click, not to keep.
|
|
10872
|
+
*/
|
|
10873
|
+
fetchInvoiceLink(id) {
|
|
10874
|
+
return this._client.fetchInvoiceLink?.(id) ?? Promise.reject(new Error("The billing client cannot read invoice links."));
|
|
10875
|
+
}
|
|
10751
10876
|
/**
|
|
10752
10877
|
* The checkout calls pass straight through: a checkout in progress is one
|
|
10753
10878
|
* reader's cart, not a resource to share, and `useCheckout` holds it.
|
|
@@ -10892,6 +11017,7 @@ var ACTION_NAMES = [
|
|
|
10892
11017
|
"setDefaultPaymentMethod",
|
|
10893
11018
|
"removePaymentMethod",
|
|
10894
11019
|
"createSetupIntent",
|
|
11020
|
+
"fetchInvoiceLink",
|
|
10895
11021
|
"unsubscribe",
|
|
10896
11022
|
"updateTaxId",
|
|
10897
11023
|
"createCheckout",
|
|
@@ -11101,7 +11227,14 @@ function useInvoices(query = DEFAULT_INVOICE_QUERY) {
|
|
|
11101
11227
|
() => source.loadMoreInvoices(params),
|
|
11102
11228
|
[params, source]
|
|
11103
11229
|
);
|
|
11104
|
-
|
|
11230
|
+
const fetchLink = (0, import_react3.useCallback)(
|
|
11231
|
+
(id) => actionsOf(source).fetchInvoiceLink(id),
|
|
11232
|
+
[source]
|
|
11233
|
+
);
|
|
11234
|
+
return (0, import_react3.useMemo)(
|
|
11235
|
+
() => ({ ...handle, loadMore, fetchLink }),
|
|
11236
|
+
[handle, loadMore, fetchLink]
|
|
11237
|
+
);
|
|
11105
11238
|
}
|
|
11106
11239
|
function useUpcomingInvoice() {
|
|
11107
11240
|
return useBillingResource("upcomingInvoice", SINGLETON);
|
|
@@ -11368,6 +11501,7 @@ function BillingProvider({
|
|
|
11368
11501
|
setDefaultPaymentMethod: (externalId) => store.setDefaultPaymentMethod(externalId),
|
|
11369
11502
|
removePaymentMethod: (id) => store.removePaymentMethod(id),
|
|
11370
11503
|
createSetupIntent: () => store.createSetupIntent(),
|
|
11504
|
+
fetchInvoiceLink: (id) => store.fetchInvoiceLink(id),
|
|
11371
11505
|
unsubscribe: () => store.unsubscribe(),
|
|
11372
11506
|
updateTaxId: (taxId) => store.updateTaxId(taxId),
|
|
11373
11507
|
createCheckout: (selections) => store.createCheckout(selections),
|
|
@@ -11443,7 +11577,7 @@ function staticSource(data) {
|
|
|
11443
11577
|
}
|
|
11444
11578
|
|
|
11445
11579
|
// src/version.ts
|
|
11446
|
-
var version2 = "1.
|
|
11580
|
+
var version2 = "1.18.1";
|
|
11447
11581
|
|
|
11448
11582
|
// src/context/schematic.tsx
|
|
11449
11583
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
@@ -57,6 +57,8 @@ export declare interface BillingActions {
|
|
|
57
57
|
removePaymentMethod(id: string): Promise<void>;
|
|
58
58
|
/** Mints a new setup intent every call; nothing is cached. */
|
|
59
59
|
createSetupIntent(): Promise<SetupIntent>;
|
|
60
|
+
/** The current hosted URL for invoice `id`; nothing is cached. */
|
|
61
|
+
fetchInvoiceLink(id: string): Promise<string>;
|
|
60
62
|
/** Cancels the subscription at period end and reloads what that changes. */
|
|
61
63
|
unsubscribe(): Promise<void>;
|
|
62
64
|
/** Sets the company's tax ID and takes the list it answers with. */
|
|
@@ -138,6 +140,12 @@ declare namespace billingApi {
|
|
|
138
140
|
BillingStrategyToJSON,
|
|
139
141
|
BillingStrategyToJSONTyped,
|
|
140
142
|
BillingStrategy,
|
|
143
|
+
instanceOfBillingSubscriptionPauseBehavior,
|
|
144
|
+
BillingSubscriptionPauseBehaviorFromJSON,
|
|
145
|
+
BillingSubscriptionPauseBehaviorFromJSONTyped,
|
|
146
|
+
BillingSubscriptionPauseBehaviorToJSON,
|
|
147
|
+
BillingSubscriptionPauseBehaviorToJSONTyped,
|
|
148
|
+
BillingSubscriptionPauseBehavior,
|
|
141
149
|
instanceOfBillingSubscriptionTrialEndSetting,
|
|
142
150
|
BillingSubscriptionTrialEndSettingFromJSON,
|
|
143
151
|
BillingSubscriptionTrialEndSettingFromJSONTyped,
|
|
@@ -666,6 +674,12 @@ declare namespace billingApi {
|
|
|
666
674
|
GetCompanyUpcomingInvoiceResponseToJSON,
|
|
667
675
|
GetCompanyUpcomingInvoiceResponseToJSONTyped,
|
|
668
676
|
GetCompanyUpcomingInvoiceResponse,
|
|
677
|
+
instanceOfGetInvoiceLinkResponse,
|
|
678
|
+
GetInvoiceLinkResponseFromJSON,
|
|
679
|
+
GetInvoiceLinkResponseFromJSONTyped,
|
|
680
|
+
GetInvoiceLinkResponseToJSON,
|
|
681
|
+
GetInvoiceLinkResponseToJSONTyped,
|
|
682
|
+
GetInvoiceLinkResponse,
|
|
669
683
|
instanceOfGetPublicCatalogByIDResponse,
|
|
670
684
|
GetPublicCatalogByIDResponseFromJSON,
|
|
671
685
|
GetPublicCatalogByIDResponseFromJSONTyped,
|
|
@@ -678,6 +692,12 @@ declare namespace billingApi {
|
|
|
678
692
|
GetPublicCatalogResponseToJSON,
|
|
679
693
|
GetPublicCatalogResponseToJSONTyped,
|
|
680
694
|
GetPublicCatalogResponse,
|
|
695
|
+
instanceOfInvoiceLink,
|
|
696
|
+
InvoiceLinkFromJSON,
|
|
697
|
+
InvoiceLinkFromJSONTyped,
|
|
698
|
+
InvoiceLinkToJSON,
|
|
699
|
+
InvoiceLinkToJSONTyped,
|
|
700
|
+
InvoiceLink,
|
|
681
701
|
instanceOfInvoiceStatus,
|
|
682
702
|
InvoiceStatusFromJSON,
|
|
683
703
|
InvoiceStatusFromJSONTyped,
|
|
@@ -869,6 +889,12 @@ declare interface BillingClient {
|
|
|
869
889
|
sessionId?: string;
|
|
870
890
|
}): Promise<CheckoutResult>;
|
|
871
891
|
fetchInvoices(params: InvoicesRequest): Promise<InvoicesResult>;
|
|
892
|
+
/**
|
|
893
|
+
* The current hosted URL for invoice `id`. The `url` on a listed invoice
|
|
894
|
+
* can expire; this asks the provider again. Rejects with a 404 when the
|
|
895
|
+
* invoice is not the company's or has no link.
|
|
896
|
+
*/
|
|
897
|
+
fetchInvoiceLink(id: string): Promise<string>;
|
|
872
898
|
/** `null` when the company has no next bill. */
|
|
873
899
|
fetchUpcomingInvoice(): Promise<UpcomingInvoice | null>;
|
|
874
900
|
/** Empty when the company has no method on file. */
|
|
@@ -1136,7 +1162,7 @@ export declare function BillingProvider({ billingClient, children, initialData,
|
|
|
1136
1162
|
* much. Named apart from schematic-js's `BillingClient`, which is the whole
|
|
1137
1163
|
* interface; this is the part the hooks here call.
|
|
1138
1164
|
*/
|
|
1139
|
-
export declare type BillingProviderClient = Pick<BillingClient, "sessionStatus" | "sessionKey" | "setSession" | "onSessionChange" | "fetchCatalog" | "createCheckout" | "getCheckout" | "updateCheckout" | "finalizeCheckout" | "fetchInvoices" | "fetchUpcomingInvoice" | "fetchPaymentMethods" | "createSetupIntent" | "updatePaymentMethod" | "deletePaymentMethod" | "fetchFeatureUsage" | "fetchFeatureUserUsage" | "fetchCreditBalances" | "fetchCreditUserUsage" | "fetchCompany" | "cancelSubscription" | "fetchTaxIds" | "updateTaxId"> & Partial<Pick<BillingClient, "fetchPublicCatalog" | "hasPublishableKey">>;
|
|
1165
|
+
export declare type BillingProviderClient = Pick<BillingClient, "sessionStatus" | "sessionKey" | "setSession" | "onSessionChange" | "fetchCatalog" | "createCheckout" | "getCheckout" | "updateCheckout" | "finalizeCheckout" | "fetchInvoices" | "fetchUpcomingInvoice" | "fetchPaymentMethods" | "createSetupIntent" | "updatePaymentMethod" | "deletePaymentMethod" | "fetchFeatureUsage" | "fetchFeatureUserUsage" | "fetchCreditBalances" | "fetchCreditUserUsage" | "fetchCompany" | "cancelSubscription" | "fetchTaxIds" | "updateTaxId"> & Partial<Pick<BillingClient, "fetchPublicCatalog" | "hasPublishableKey" | "fetchInvoiceLink">>;
|
|
1140
1166
|
|
|
1141
1167
|
declare interface BillingProviderDataProps {
|
|
1142
1168
|
/**
|
|
@@ -1274,6 +1300,18 @@ declare const BillingStrategy: {
|
|
|
1274
1300
|
|
|
1275
1301
|
declare type BillingStrategy = (typeof BillingStrategy)[keyof typeof BillingStrategy];
|
|
1276
1302
|
|
|
1303
|
+
/**
|
|
1304
|
+
*
|
|
1305
|
+
* @export
|
|
1306
|
+
*/
|
|
1307
|
+
declare const BillingSubscriptionPauseBehavior: {
|
|
1308
|
+
readonly KeepAsDraft: "keep_as_draft";
|
|
1309
|
+
readonly MarkUncollectible: "mark_uncollectible";
|
|
1310
|
+
readonly Void: "void";
|
|
1311
|
+
};
|
|
1312
|
+
|
|
1313
|
+
declare type BillingSubscriptionPauseBehavior = (typeof BillingSubscriptionPauseBehavior)[keyof typeof BillingSubscriptionPauseBehavior];
|
|
1314
|
+
|
|
1277
1315
|
/**
|
|
1278
1316
|
*
|
|
1279
1317
|
* @export
|
|
@@ -1384,7 +1422,7 @@ declare interface CatalogAutoTopupResponseData {
|
|
|
1384
1422
|
* @type {CatalogPriceResponseData}
|
|
1385
1423
|
* @memberof CatalogAutoTopupResponseData
|
|
1386
1424
|
*/
|
|
1387
|
-
unitPrice?: CatalogPriceResponseData;
|
|
1425
|
+
unitPrice?: CatalogPriceResponseData | null;
|
|
1388
1426
|
}
|
|
1389
1427
|
|
|
1390
1428
|
/**
|
|
@@ -1414,8 +1452,8 @@ declare interface CatalogBundleCurrencyPriceResponseData {
|
|
|
1414
1452
|
}
|
|
1415
1453
|
|
|
1416
1454
|
/**
|
|
1417
|
-
*
|
|
1418
|
-
*
|
|
1455
|
+
* Components API
|
|
1456
|
+
* The browser-facing billing API behind the drop-in components and the schematic-react hooks. A temporary access token scopes every call to one company.
|
|
1419
1457
|
*
|
|
1420
1458
|
* The version of the OpenAPI document: 0.1
|
|
1421
1459
|
*
|
|
@@ -1447,8 +1485,8 @@ declare interface CatalogCapabilitiesResponseData {
|
|
|
1447
1485
|
export declare type CatalogCheckoutField = CatalogCheckoutFieldResponseData;
|
|
1448
1486
|
|
|
1449
1487
|
/**
|
|
1450
|
-
*
|
|
1451
|
-
*
|
|
1488
|
+
* Components API
|
|
1489
|
+
* The browser-facing billing API behind the drop-in components and the schematic-react hooks. A temporary access token scopes every call to one company.
|
|
1452
1490
|
*
|
|
1453
1491
|
* The version of the OpenAPI document: 0.1
|
|
1454
1492
|
*
|
|
@@ -1934,8 +1972,8 @@ declare interface CatalogCurrencyPricesResponseData {
|
|
|
1934
1972
|
}
|
|
1935
1973
|
|
|
1936
1974
|
/**
|
|
1937
|
-
*
|
|
1938
|
-
*
|
|
1975
|
+
* Components API
|
|
1976
|
+
* The browser-facing billing API behind the drop-in components and the schematic-react hooks. A temporary access token scopes every call to one company.
|
|
1939
1977
|
*
|
|
1940
1978
|
* The version of the OpenAPI document: 0.1
|
|
1941
1979
|
*
|
|
@@ -2151,8 +2189,8 @@ declare interface CatalogPlanEntitlementResponseData {
|
|
|
2151
2189
|
}
|
|
2152
2190
|
|
|
2153
2191
|
/**
|
|
2154
|
-
*
|
|
2155
|
-
*
|
|
2192
|
+
* Components API
|
|
2193
|
+
* The browser-facing billing API behind the drop-in components and the schematic-react hooks. A temporary access token scopes every call to one company.
|
|
2156
2194
|
*
|
|
2157
2195
|
* The version of the OpenAPI document: 0.1
|
|
2158
2196
|
*
|
|
@@ -2378,8 +2416,8 @@ declare interface CatalogPriceResponseData {
|
|
|
2378
2416
|
}
|
|
2379
2417
|
|
|
2380
2418
|
/**
|
|
2381
|
-
*
|
|
2382
|
-
*
|
|
2419
|
+
* Components API
|
|
2420
|
+
* The browser-facing billing API behind the drop-in components and the schematic-react hooks. A temporary access token scopes every call to one company.
|
|
2383
2421
|
*
|
|
2384
2422
|
* The version of the OpenAPI document: 0.1
|
|
2385
2423
|
*
|
|
@@ -2435,8 +2473,8 @@ export declare interface CatalogQuery {
|
|
|
2435
2473
|
export declare type CatalogSource = CatalogView["source"];
|
|
2436
2474
|
|
|
2437
2475
|
/**
|
|
2438
|
-
*
|
|
2439
|
-
*
|
|
2476
|
+
* Components API
|
|
2477
|
+
* The browser-facing billing API behind the drop-in components and the schematic-react hooks. A temporary access token scopes every call to one company.
|
|
2440
2478
|
*
|
|
2441
2479
|
* The version of the OpenAPI document: 0.1
|
|
2442
2480
|
*
|
|
@@ -2958,8 +2996,8 @@ export declare interface CheckoutDraftState {
|
|
|
2958
2996
|
}
|
|
2959
2997
|
|
|
2960
2998
|
/**
|
|
2961
|
-
*
|
|
2962
|
-
*
|
|
2999
|
+
* Components API
|
|
3000
|
+
* The browser-facing billing API behind the drop-in components and the schematic-react hooks. A temporary access token scopes every call to one company.
|
|
2963
3001
|
*
|
|
2964
3002
|
* The version of the OpenAPI document: 0.1
|
|
2965
3003
|
*
|
|
@@ -3489,6 +3527,12 @@ declare type CheckoutProblemSource = (typeof CheckoutProblemSource)[keyof typeof
|
|
|
3489
3527
|
* @interface CheckoutResponseData
|
|
3490
3528
|
*/
|
|
3491
3529
|
declare interface CheckoutResponseData {
|
|
3530
|
+
/**
|
|
3531
|
+
*
|
|
3532
|
+
* @type {Date}
|
|
3533
|
+
* @memberof CheckoutResponseData
|
|
3534
|
+
*/
|
|
3535
|
+
accessRevokedAt?: Date | null;
|
|
3492
3536
|
/**
|
|
3493
3537
|
*
|
|
3494
3538
|
* @type {string}
|
|
@@ -3573,6 +3617,24 @@ declare interface CheckoutResponseData {
|
|
|
3573
3617
|
* @memberof CheckoutResponseData
|
|
3574
3618
|
*/
|
|
3575
3619
|
metadata?: object;
|
|
3620
|
+
/**
|
|
3621
|
+
*
|
|
3622
|
+
* @type {BillingSubscriptionPauseBehavior}
|
|
3623
|
+
* @memberof CheckoutResponseData
|
|
3624
|
+
*/
|
|
3625
|
+
pauseBehavior?: BillingSubscriptionPauseBehavior | null;
|
|
3626
|
+
/**
|
|
3627
|
+
*
|
|
3628
|
+
* @type {number}
|
|
3629
|
+
* @memberof CheckoutResponseData
|
|
3630
|
+
*/
|
|
3631
|
+
pauseResumesAt?: number | null;
|
|
3632
|
+
/**
|
|
3633
|
+
*
|
|
3634
|
+
* @type {Date}
|
|
3635
|
+
* @memberof CheckoutResponseData
|
|
3636
|
+
*/
|
|
3637
|
+
pausedAt?: Date | null;
|
|
3576
3638
|
/**
|
|
3577
3639
|
*
|
|
3578
3640
|
* @type {number}
|
|
@@ -3846,7 +3908,7 @@ declare interface CompanyCatalogResponseData {
|
|
|
3846
3908
|
* @type {CatalogCustomPlanCTAResponseData}
|
|
3847
3909
|
* @memberof CompanyCatalogResponseData
|
|
3848
3910
|
*/
|
|
3849
|
-
customPlanCta?: CatalogCustomPlanCTAResponseData;
|
|
3911
|
+
customPlanCta?: CatalogCustomPlanCTAResponseData | null;
|
|
3850
3912
|
/**
|
|
3851
3913
|
* ISO 4217 currency of every top-level price slot; currency_prices carries the others.
|
|
3852
3914
|
* @type {Currency}
|
|
@@ -3912,7 +3974,7 @@ declare interface CompanyCatalogResponseData {
|
|
|
3912
3974
|
* @type {CatalogPlanRefResponseData}
|
|
3913
3975
|
* @memberof CompanyCatalogResponseData
|
|
3914
3976
|
*/
|
|
3915
|
-
trialExpiryPlan?: CatalogPlanRefResponseData;
|
|
3977
|
+
trialExpiryPlan?: CatalogPlanRefResponseData | null;
|
|
3916
3978
|
/**
|
|
3917
3979
|
* Whether starting a trial requires a payment method; a null value means required.
|
|
3918
3980
|
* @type {boolean}
|
|
@@ -3960,8 +4022,8 @@ declare interface CompanyContextCustomPlanBillingResponseData {
|
|
|
3960
4022
|
}
|
|
3961
4023
|
|
|
3962
4024
|
/**
|
|
3963
|
-
*
|
|
3964
|
-
*
|
|
4025
|
+
* Components API
|
|
4026
|
+
* The browser-facing billing API behind the drop-in components and the schematic-react hooks. A temporary access token scopes every call to one company.
|
|
3965
4027
|
*
|
|
3966
4028
|
* The version of the OpenAPI document: 0.1
|
|
3967
4029
|
*
|
|
@@ -4031,7 +4093,7 @@ declare interface CompanyContextResponseData {
|
|
|
4031
4093
|
* @type {CompanyContextCustomPlanBillingResponseData}
|
|
4032
4094
|
* @memberof CompanyContextResponseData
|
|
4033
4095
|
*/
|
|
4034
|
-
customPlanBilling?: CompanyContextCustomPlanBillingResponseData;
|
|
4096
|
+
customPlanBilling?: CompanyContextCustomPlanBillingResponseData | null;
|
|
4035
4097
|
/**
|
|
4036
4098
|
*
|
|
4037
4099
|
* @type {string}
|
|
@@ -4049,24 +4111,24 @@ declare interface CompanyContextResponseData {
|
|
|
4049
4111
|
* @type {CompanyContextPlanResponseData}
|
|
4050
4112
|
* @memberof CompanyContextResponseData
|
|
4051
4113
|
*/
|
|
4052
|
-
plan?: CompanyContextPlanResponseData;
|
|
4114
|
+
plan?: CompanyContextPlanResponseData | null;
|
|
4053
4115
|
/**
|
|
4054
4116
|
* A plan change scheduled for the end of the billing period; null when none is.
|
|
4055
4117
|
* @type {CompanyContextScheduledDowngradeResponseData}
|
|
4056
4118
|
* @memberof CompanyContextResponseData
|
|
4057
4119
|
*/
|
|
4058
|
-
scheduledDowngrade?: CompanyContextScheduledDowngradeResponseData;
|
|
4120
|
+
scheduledDowngrade?: CompanyContextScheduledDowngradeResponseData | null;
|
|
4059
4121
|
/**
|
|
4060
4122
|
* The company's subscription; null when it has none, or several.
|
|
4061
4123
|
* @type {CompanyContextSubscriptionResponseData}
|
|
4062
4124
|
* @memberof CompanyContextResponseData
|
|
4063
4125
|
*/
|
|
4064
|
-
subscription?: CompanyContextSubscriptionResponseData;
|
|
4126
|
+
subscription?: CompanyContextSubscriptionResponseData | null;
|
|
4065
4127
|
}
|
|
4066
4128
|
|
|
4067
4129
|
/**
|
|
4068
|
-
*
|
|
4069
|
-
*
|
|
4130
|
+
* Components API
|
|
4131
|
+
* The browser-facing billing API behind the drop-in components and the schematic-react hooks. A temporary access token scopes every call to one company.
|
|
4070
4132
|
*
|
|
4071
4133
|
* The version of the OpenAPI document: 0.1
|
|
4072
4134
|
*
|
|
@@ -4164,8 +4226,8 @@ declare interface CompanyContextSubscriptionResponseData {
|
|
|
4164
4226
|
}
|
|
4165
4227
|
|
|
4166
4228
|
/**
|
|
4167
|
-
*
|
|
4168
|
-
*
|
|
4229
|
+
* Components API
|
|
4230
|
+
* The browser-facing billing API behind the drop-in components and the schematic-react hooks. A temporary access token scopes every call to one company.
|
|
4169
4231
|
*
|
|
4170
4232
|
* The version of the OpenAPI document: 0.1
|
|
4171
4233
|
*
|
|
@@ -4266,13 +4328,13 @@ declare interface CompanyCreditBalanceResponseData {
|
|
|
4266
4328
|
* @type {CompanyCreditAutoTopupResponseData}
|
|
4267
4329
|
* @memberof CompanyCreditBalanceResponseData
|
|
4268
4330
|
*/
|
|
4269
|
-
autoTopup?: CompanyCreditAutoTopupResponseData;
|
|
4331
|
+
autoTopup?: CompanyCreditAutoTopupResponseData | null;
|
|
4270
4332
|
/**
|
|
4271
4333
|
* How the plan's grants of this credit add up per period; null unless the plan grants it per license and the license count is known.
|
|
4272
4334
|
* @type {CompanyCreditCompositionResponseData}
|
|
4273
4335
|
* @memberof CompanyCreditBalanceResponseData
|
|
4274
4336
|
*/
|
|
4275
|
-
composition?: CompanyCreditCompositionResponseData;
|
|
4337
|
+
composition?: CompanyCreditCompositionResponseData | null;
|
|
4276
4338
|
/**
|
|
4277
4339
|
*
|
|
4278
4340
|
* @type {string}
|
|
@@ -4354,8 +4416,8 @@ declare interface CompanyCreditBalanceResponseData {
|
|
|
4354
4416
|
}
|
|
4355
4417
|
|
|
4356
4418
|
/**
|
|
4357
|
-
*
|
|
4358
|
-
*
|
|
4419
|
+
* Components API
|
|
4420
|
+
* The browser-facing billing API behind the drop-in components and the schematic-react hooks. A temporary access token scopes every call to one company.
|
|
4359
4421
|
*
|
|
4360
4422
|
* The version of the OpenAPI document: 0.1
|
|
4361
4423
|
*
|
|
@@ -4569,8 +4631,8 @@ declare interface CompanyCreditUserUsageResponseData {
|
|
|
4569
4631
|
}
|
|
4570
4632
|
|
|
4571
4633
|
/**
|
|
4572
|
-
*
|
|
4573
|
-
*
|
|
4634
|
+
* Components API
|
|
4635
|
+
* The browser-facing billing API behind the drop-in components and the schematic-react hooks. A temporary access token scopes every call to one company.
|
|
4574
4636
|
*
|
|
4575
4637
|
* The version of the OpenAPI document: 0.1
|
|
4576
4638
|
*
|
|
@@ -4816,7 +4878,7 @@ declare interface CompanyFeatureUsageResponseData {
|
|
|
4816
4878
|
* @type {CatalogPriceResponseData}
|
|
4817
4879
|
* @memberof CompanyFeatureUsageResponseData
|
|
4818
4880
|
*/
|
|
4819
|
-
price?: CatalogPriceResponseData;
|
|
4881
|
+
price?: CatalogPriceResponseData | null;
|
|
4820
4882
|
/**
|
|
4821
4883
|
*
|
|
4822
4884
|
* @type {EntitlementPriceBehavior}
|
|
@@ -4962,8 +5024,8 @@ declare interface CompanyInvoiceResponseData {
|
|
|
4962
5024
|
}
|
|
4963
5025
|
|
|
4964
5026
|
/**
|
|
4965
|
-
*
|
|
4966
|
-
*
|
|
5027
|
+
* Components API
|
|
5028
|
+
* The browser-facing billing API behind the drop-in components and the schematic-react hooks. A temporary access token scopes every call to one company.
|
|
4967
5029
|
*
|
|
4968
5030
|
* The version of the OpenAPI document: 0.1
|
|
4969
5031
|
*
|
|
@@ -5081,8 +5143,8 @@ declare type CompanyPlanInvalidReason = (typeof CompanyPlanInvalidReason)[keyof
|
|
|
5081
5143
|
export declare type CompanySubscription = CompanyContextSubscriptionResponseData;
|
|
5082
5144
|
|
|
5083
5145
|
/**
|
|
5084
|
-
*
|
|
5085
|
-
*
|
|
5146
|
+
* Components API
|
|
5147
|
+
* The browser-facing billing API behind the drop-in components and the schematic-react hooks. A temporary access token scopes every call to one company.
|
|
5086
5148
|
*
|
|
5087
5149
|
* The version of the OpenAPI document: 0.1
|
|
5088
5150
|
*
|
|
@@ -5180,8 +5242,8 @@ declare interface CompanyUpcomingInvoiceResponseData {
|
|
|
5180
5242
|
}
|
|
5181
5243
|
|
|
5182
5244
|
/**
|
|
5183
|
-
*
|
|
5184
|
-
*
|
|
5245
|
+
* Components API
|
|
5246
|
+
* The browser-facing billing API behind the drop-in components and the schematic-react hooks. A temporary access token scopes every call to one company.
|
|
5185
5247
|
*
|
|
5186
5248
|
* The version of the OpenAPI document: 0.1
|
|
5187
5249
|
*
|
|
@@ -6064,6 +6126,12 @@ export declare interface InvoicesHandle extends ResourceHandle<InvoicePage> {
|
|
|
6064
6126
|
* never rejects.
|
|
6065
6127
|
*/
|
|
6066
6128
|
loadMore: () => Promise<void>;
|
|
6129
|
+
/**
|
|
6130
|
+
* The current hosted URL for invoice `id`. The listed `url` can expire, so
|
|
6131
|
+
* a link asks for this when clicked. Rejects with the failure, which
|
|
6132
|
+
* leaves the list as it is.
|
|
6133
|
+
*/
|
|
6134
|
+
fetchLink: (id: string) => Promise<string>;
|
|
6067
6135
|
}
|
|
6068
6136
|
|
|
6069
6137
|
declare interface InvoicesRequest extends InvoiceQuery {
|
|
@@ -6285,7 +6353,7 @@ declare interface PublicCatalogResponseData {
|
|
|
6285
6353
|
* @type {CatalogCustomPlanCTAResponseData}
|
|
6286
6354
|
* @memberof PublicCatalogResponseData
|
|
6287
6355
|
*/
|
|
6288
|
-
customPlanCta?: CatalogCustomPlanCTAResponseData;
|
|
6356
|
+
customPlanCta?: CatalogCustomPlanCTAResponseData | null;
|
|
6289
6357
|
/**
|
|
6290
6358
|
* ISO 4217 currency of every top-level price slot; currency_prices carries the others.
|
|
6291
6359
|
* @type {Currency}
|
|
@@ -6726,6 +6794,7 @@ declare class SchematicBillingClient implements BillingClient {
|
|
|
6726
6794
|
}): Promise<CheckoutResult>;
|
|
6727
6795
|
private checkoutWrite;
|
|
6728
6796
|
fetchInvoices(params: InvoicesRequest): Promise<InvoicesResult>;
|
|
6797
|
+
fetchInvoiceLink(id: string): Promise<string>;
|
|
6729
6798
|
fetchUpcomingInvoice(): Promise<UpcomingInvoice | null>;
|
|
6730
6799
|
fetchPaymentMethods(): Promise<PaymentMethod[]>;
|
|
6731
6800
|
createSetupIntent(): Promise<SetupIntent>;
|
|
@@ -7189,8 +7258,8 @@ export declare interface SetupIntentHandle {
|
|
|
7189
7258
|
}
|
|
7190
7259
|
|
|
7191
7260
|
/**
|
|
7192
|
-
*
|
|
7193
|
-
*
|
|
7261
|
+
* Components API
|
|
7262
|
+
* The browser-facing billing API behind the drop-in components and the schematic-react hooks. A temporary access token scopes every call to one company.
|
|
7194
7263
|
*
|
|
7195
7264
|
* The version of the OpenAPI document: 0.1
|
|
7196
7265
|
*
|
|
@@ -7359,8 +7428,14 @@ export declare type Traits = Record<string, any>;
|
|
|
7359
7428
|
* Returning `undefined` means "no translation" and the caller falls back to
|
|
7360
7429
|
* its English default. Elements also pass a sentinel `defaultValue`, so a stack
|
|
7361
7430
|
* that answers every key with something still reports a real miss.
|
|
7431
|
+
*
|
|
7432
|
+
* Two signatures, not one with optional `vars`: i18next 27's `t` has separate
|
|
7433
|
+
* `(key)` and `(key, options)` overloads, and only this shape accepts it.
|
|
7362
7434
|
*/
|
|
7363
|
-
export declare
|
|
7435
|
+
export declare interface Translate {
|
|
7436
|
+
(key: string): string | undefined;
|
|
7437
|
+
(key: string, vars: Record<string, unknown>): string | undefined;
|
|
7438
|
+
}
|
|
7364
7439
|
|
|
7365
7440
|
/**
|
|
7366
7441
|
*
|
|
@@ -7390,8 +7465,8 @@ export declare interface UnsubscribeHandle {
|
|
|
7390
7465
|
export declare type UpcomingInvoice = CompanyUpcomingInvoiceResponseData;
|
|
7391
7466
|
|
|
7392
7467
|
/**
|
|
7393
|
-
*
|
|
7394
|
-
*
|
|
7468
|
+
* Components API
|
|
7469
|
+
* The browser-facing billing API behind the drop-in components and the schematic-react hooks. A temporary access token scopes every call to one company.
|
|
7395
7470
|
*
|
|
7396
7471
|
* The version of the OpenAPI document: 0.1
|
|
7397
7472
|
*
|
|
@@ -7421,8 +7496,8 @@ declare interface UpdateAddOnRequestBody {
|
|
|
7421
7496
|
}
|
|
7422
7497
|
|
|
7423
7498
|
/**
|
|
7424
|
-
*
|
|
7425
|
-
*
|
|
7499
|
+
* Components API
|
|
7500
|
+
* The browser-facing billing API behind the drop-in components and the schematic-react hooks. A temporary access token scopes every call to one company.
|
|
7426
7501
|
*
|
|
7427
7502
|
* The version of the OpenAPI document: 0.1
|
|
7428
7503
|
*
|
|
@@ -7464,8 +7539,8 @@ declare interface UpdateAutoTopupOverrideRequestBody {
|
|
|
7464
7539
|
}
|
|
7465
7540
|
|
|
7466
7541
|
/**
|
|
7467
|
-
*
|
|
7468
|
-
*
|
|
7542
|
+
* Components API
|
|
7543
|
+
* The browser-facing billing API behind the drop-in components and the schematic-react hooks. A temporary access token scopes every call to one company.
|
|
7469
7544
|
*
|
|
7470
7545
|
* The version of the OpenAPI document: 0.1
|
|
7471
7546
|
*
|
|
@@ -7495,8 +7570,8 @@ declare interface UpdateCreditBundleRequestBody {
|
|
|
7495
7570
|
}
|
|
7496
7571
|
|
|
7497
7572
|
/**
|
|
7498
|
-
*
|
|
7499
|
-
*
|
|
7573
|
+
* Components API
|
|
7574
|
+
* The browser-facing billing API behind the drop-in components and the schematic-react hooks. A temporary access token scopes every call to one company.
|
|
7500
7575
|
*
|
|
7501
7576
|
* The version of the OpenAPI document: 0.1
|
|
7502
7577
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// node_modules/.pnpm/@schematichq+schematic-js@1.
|
|
1
|
+
// node_modules/.pnpm/@schematichq+schematic-js@1.18.0/node_modules/@schematichq/schematic-js/dist/schematic.esm.js
|
|
2
2
|
var __create = Object.create;
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -1329,7 +1329,7 @@ var ContextSignatureManager = class {
|
|
|
1329
1329
|
}
|
|
1330
1330
|
}
|
|
1331
1331
|
};
|
|
1332
|
-
var version = "1.
|
|
1332
|
+
var version = "1.18.0";
|
|
1333
1333
|
var DEFAULT_CATALOG_QUERY = {};
|
|
1334
1334
|
function normalizeCatalogQuery(query) {
|
|
1335
1335
|
return query.catalogId === void 0 ? {} : { catalogId: query.catalogId };
|
|
@@ -1390,6 +1390,11 @@ __export(models_exports, {
|
|
|
1390
1390
|
BillingStrategyFromJSONTyped: () => BillingStrategyFromJSONTyped5,
|
|
1391
1391
|
BillingStrategyToJSON: () => BillingStrategyToJSON2,
|
|
1392
1392
|
BillingStrategyToJSONTyped: () => BillingStrategyToJSONTyped5,
|
|
1393
|
+
BillingSubscriptionPauseBehavior: () => BillingSubscriptionPauseBehavior,
|
|
1394
|
+
BillingSubscriptionPauseBehaviorFromJSON: () => BillingSubscriptionPauseBehaviorFromJSON,
|
|
1395
|
+
BillingSubscriptionPauseBehaviorFromJSONTyped: () => BillingSubscriptionPauseBehaviorFromJSONTyped,
|
|
1396
|
+
BillingSubscriptionPauseBehaviorToJSON: () => BillingSubscriptionPauseBehaviorToJSON,
|
|
1397
|
+
BillingSubscriptionPauseBehaviorToJSONTyped: () => BillingSubscriptionPauseBehaviorToJSONTyped,
|
|
1393
1398
|
BillingSubscriptionTrialEndSetting: () => BillingSubscriptionTrialEndSetting,
|
|
1394
1399
|
BillingSubscriptionTrialEndSettingFromJSON: () => BillingSubscriptionTrialEndSettingFromJSON,
|
|
1395
1400
|
BillingSubscriptionTrialEndSettingFromJSONTyped: () => BillingSubscriptionTrialEndSettingFromJSONTyped,
|
|
@@ -1758,6 +1763,10 @@ __export(models_exports, {
|
|
|
1758
1763
|
GetCompanyUpcomingInvoiceResponseFromJSONTyped: () => GetCompanyUpcomingInvoiceResponseFromJSONTyped,
|
|
1759
1764
|
GetCompanyUpcomingInvoiceResponseToJSON: () => GetCompanyUpcomingInvoiceResponseToJSON,
|
|
1760
1765
|
GetCompanyUpcomingInvoiceResponseToJSONTyped: () => GetCompanyUpcomingInvoiceResponseToJSONTyped,
|
|
1766
|
+
GetInvoiceLinkResponseFromJSON: () => GetInvoiceLinkResponseFromJSON,
|
|
1767
|
+
GetInvoiceLinkResponseFromJSONTyped: () => GetInvoiceLinkResponseFromJSONTyped,
|
|
1768
|
+
GetInvoiceLinkResponseToJSON: () => GetInvoiceLinkResponseToJSON,
|
|
1769
|
+
GetInvoiceLinkResponseToJSONTyped: () => GetInvoiceLinkResponseToJSONTyped,
|
|
1761
1770
|
GetPublicCatalogByIDResponseFromJSON: () => GetPublicCatalogByIDResponseFromJSON,
|
|
1762
1771
|
GetPublicCatalogByIDResponseFromJSONTyped: () => GetPublicCatalogByIDResponseFromJSONTyped,
|
|
1763
1772
|
GetPublicCatalogByIDResponseToJSON: () => GetPublicCatalogByIDResponseToJSON,
|
|
@@ -1766,6 +1775,10 @@ __export(models_exports, {
|
|
|
1766
1775
|
GetPublicCatalogResponseFromJSONTyped: () => GetPublicCatalogResponseFromJSONTyped,
|
|
1767
1776
|
GetPublicCatalogResponseToJSON: () => GetPublicCatalogResponseToJSON,
|
|
1768
1777
|
GetPublicCatalogResponseToJSONTyped: () => GetPublicCatalogResponseToJSONTyped,
|
|
1778
|
+
InvoiceLinkFromJSON: () => InvoiceLinkFromJSON,
|
|
1779
|
+
InvoiceLinkFromJSONTyped: () => InvoiceLinkFromJSONTyped,
|
|
1780
|
+
InvoiceLinkToJSON: () => InvoiceLinkToJSON,
|
|
1781
|
+
InvoiceLinkToJSONTyped: () => InvoiceLinkToJSONTyped,
|
|
1769
1782
|
InvoiceStatus: () => InvoiceStatus,
|
|
1770
1783
|
InvoiceStatusFromJSON: () => InvoiceStatusFromJSON,
|
|
1771
1784
|
InvoiceStatusFromJSONTyped: () => InvoiceStatusFromJSONTyped,
|
|
@@ -1890,6 +1903,7 @@ __export(models_exports, {
|
|
|
1890
1903
|
instanceOfBillingProductPriceInterval: () => instanceOfBillingProductPriceInterval,
|
|
1891
1904
|
instanceOfBillingProviderType: () => instanceOfBillingProviderType,
|
|
1892
1905
|
instanceOfBillingStrategy: () => instanceOfBillingStrategy,
|
|
1906
|
+
instanceOfBillingSubscriptionPauseBehavior: () => instanceOfBillingSubscriptionPauseBehavior,
|
|
1893
1907
|
instanceOfBillingSubscriptionTrialEndSetting: () => instanceOfBillingSubscriptionTrialEndSetting,
|
|
1894
1908
|
instanceOfBillingTiersMode: () => instanceOfBillingTiersMode,
|
|
1895
1909
|
instanceOfCatalogAutoTopupResponseData: () => instanceOfCatalogAutoTopupResponseData,
|
|
@@ -1978,8 +1992,10 @@ __export(models_exports, {
|
|
|
1978
1992
|
instanceOfGetCompanyPaymentMethodsResponse: () => instanceOfGetCompanyPaymentMethodsResponse,
|
|
1979
1993
|
instanceOfGetCompanyResponse: () => instanceOfGetCompanyResponse,
|
|
1980
1994
|
instanceOfGetCompanyUpcomingInvoiceResponse: () => instanceOfGetCompanyUpcomingInvoiceResponse,
|
|
1995
|
+
instanceOfGetInvoiceLinkResponse: () => instanceOfGetInvoiceLinkResponse,
|
|
1981
1996
|
instanceOfGetPublicCatalogByIDResponse: () => instanceOfGetPublicCatalogByIDResponse,
|
|
1982
1997
|
instanceOfGetPublicCatalogResponse: () => instanceOfGetPublicCatalogResponse,
|
|
1998
|
+
instanceOfInvoiceLink: () => instanceOfInvoiceLink,
|
|
1983
1999
|
instanceOfInvoiceStatus: () => instanceOfInvoiceStatus,
|
|
1984
2000
|
instanceOfListCheckoutsParams: () => instanceOfListCheckoutsParams,
|
|
1985
2001
|
instanceOfListCheckoutsResponse: () => instanceOfListCheckoutsResponse,
|
|
@@ -2318,6 +2334,36 @@ function BillingStrategyToJSON2(value) {
|
|
|
2318
2334
|
function BillingStrategyToJSONTyped5(value, ignoreDiscriminator) {
|
|
2319
2335
|
return value;
|
|
2320
2336
|
}
|
|
2337
|
+
var BillingSubscriptionPauseBehavior = {
|
|
2338
|
+
KeepAsDraft: "keep_as_draft",
|
|
2339
|
+
MarkUncollectible: "mark_uncollectible",
|
|
2340
|
+
Void: "void"
|
|
2341
|
+
};
|
|
2342
|
+
function instanceOfBillingSubscriptionPauseBehavior(value) {
|
|
2343
|
+
for (const key in BillingSubscriptionPauseBehavior) {
|
|
2344
|
+
if (Object.prototype.hasOwnProperty.call(
|
|
2345
|
+
BillingSubscriptionPauseBehavior,
|
|
2346
|
+
key
|
|
2347
|
+
)) {
|
|
2348
|
+
if (BillingSubscriptionPauseBehavior[key] === value) {
|
|
2349
|
+
return true;
|
|
2350
|
+
}
|
|
2351
|
+
}
|
|
2352
|
+
}
|
|
2353
|
+
return false;
|
|
2354
|
+
}
|
|
2355
|
+
function BillingSubscriptionPauseBehaviorFromJSON(json) {
|
|
2356
|
+
return BillingSubscriptionPauseBehaviorFromJSONTyped(json, false);
|
|
2357
|
+
}
|
|
2358
|
+
function BillingSubscriptionPauseBehaviorFromJSONTyped(json, ignoreDiscriminator) {
|
|
2359
|
+
return json;
|
|
2360
|
+
}
|
|
2361
|
+
function BillingSubscriptionPauseBehaviorToJSON(value) {
|
|
2362
|
+
return value;
|
|
2363
|
+
}
|
|
2364
|
+
function BillingSubscriptionPauseBehaviorToJSONTyped(value, ignoreDiscriminator) {
|
|
2365
|
+
return value;
|
|
2366
|
+
}
|
|
2321
2367
|
var BillingSubscriptionTrialEndSetting = {
|
|
2322
2368
|
Cancel: "cancel",
|
|
2323
2369
|
Subscribe: "subscribe"
|
|
@@ -4579,6 +4625,7 @@ function CheckoutResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
4579
4625
|
return json;
|
|
4580
4626
|
}
|
|
4581
4627
|
return {
|
|
4628
|
+
accessRevokedAt: json["access_revoked_at"] == null ? void 0 : new Date(json["access_revoked_at"]),
|
|
4582
4629
|
applicationId: json["application_id"] == null ? void 0 : json["application_id"],
|
|
4583
4630
|
cancelAt: json["cancel_at"] == null ? void 0 : json["cancel_at"],
|
|
4584
4631
|
cancelAtPeriodEnd: json["cancel_at_period_end"],
|
|
@@ -4593,6 +4640,9 @@ function CheckoutResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
4593
4640
|
id: json["id"],
|
|
4594
4641
|
interval: json["interval"],
|
|
4595
4642
|
metadata: json["metadata"] == null ? void 0 : json["metadata"],
|
|
4643
|
+
pauseBehavior: json["pause_behavior"] == null ? void 0 : BillingSubscriptionPauseBehaviorFromJSON(json["pause_behavior"]),
|
|
4644
|
+
pauseResumesAt: json["pause_resumes_at"] == null ? void 0 : json["pause_resumes_at"],
|
|
4645
|
+
pausedAt: json["paused_at"] == null ? void 0 : new Date(json["paused_at"]),
|
|
4596
4646
|
periodEnd: json["period_end"],
|
|
4597
4647
|
periodStart: json["period_start"],
|
|
4598
4648
|
providerType: BillingProviderTypeFromJSON2(json["provider_type"]),
|
|
@@ -4615,6 +4665,7 @@ function CheckoutResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
4615
4665
|
return value;
|
|
4616
4666
|
}
|
|
4617
4667
|
return {
|
|
4668
|
+
access_revoked_at: value["accessRevokedAt"] == null ? void 0 : value["accessRevokedAt"].toISOString(),
|
|
4618
4669
|
application_id: value["applicationId"],
|
|
4619
4670
|
cancel_at: value["cancelAt"],
|
|
4620
4671
|
cancel_at_period_end: value["cancelAtPeriodEnd"],
|
|
@@ -4629,6 +4680,11 @@ function CheckoutResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
4629
4680
|
id: value["id"],
|
|
4630
4681
|
interval: value["interval"],
|
|
4631
4682
|
metadata: value["metadata"],
|
|
4683
|
+
pause_behavior: BillingSubscriptionPauseBehaviorToJSON(
|
|
4684
|
+
value["pauseBehavior"]
|
|
4685
|
+
),
|
|
4686
|
+
pause_resumes_at: value["pauseResumesAt"],
|
|
4687
|
+
paused_at: value["pausedAt"] == null ? void 0 : value["pausedAt"].toISOString(),
|
|
4632
4688
|
period_end: value["periodEnd"],
|
|
4633
4689
|
period_start: value["periodStart"],
|
|
4634
4690
|
provider_type: BillingProviderTypeToJSON2(value["providerType"]),
|
|
@@ -6647,6 +6703,64 @@ function GetCompanyUpcomingInvoiceResponseToJSONTyped(value, ignoreDiscriminator
|
|
|
6647
6703
|
params: value["params"]
|
|
6648
6704
|
};
|
|
6649
6705
|
}
|
|
6706
|
+
function instanceOfInvoiceLink(value) {
|
|
6707
|
+
if (!("id" in value) || value["id"] === void 0) return false;
|
|
6708
|
+
if (!("url" in value) || value["url"] === void 0) return false;
|
|
6709
|
+
return true;
|
|
6710
|
+
}
|
|
6711
|
+
function InvoiceLinkFromJSON(json) {
|
|
6712
|
+
return InvoiceLinkFromJSONTyped(json, false);
|
|
6713
|
+
}
|
|
6714
|
+
function InvoiceLinkFromJSONTyped(json, ignoreDiscriminator) {
|
|
6715
|
+
if (json == null) {
|
|
6716
|
+
return json;
|
|
6717
|
+
}
|
|
6718
|
+
return {
|
|
6719
|
+
id: json["id"],
|
|
6720
|
+
url: json["url"]
|
|
6721
|
+
};
|
|
6722
|
+
}
|
|
6723
|
+
function InvoiceLinkToJSON(json) {
|
|
6724
|
+
return InvoiceLinkToJSONTyped(json, false);
|
|
6725
|
+
}
|
|
6726
|
+
function InvoiceLinkToJSONTyped(value, ignoreDiscriminator = false) {
|
|
6727
|
+
if (value == null) {
|
|
6728
|
+
return value;
|
|
6729
|
+
}
|
|
6730
|
+
return {
|
|
6731
|
+
id: value["id"],
|
|
6732
|
+
url: value["url"]
|
|
6733
|
+
};
|
|
6734
|
+
}
|
|
6735
|
+
function instanceOfGetInvoiceLinkResponse(value) {
|
|
6736
|
+
if (!("data" in value) || value["data"] === void 0) return false;
|
|
6737
|
+
if (!("params" in value) || value["params"] === void 0) return false;
|
|
6738
|
+
return true;
|
|
6739
|
+
}
|
|
6740
|
+
function GetInvoiceLinkResponseFromJSON(json) {
|
|
6741
|
+
return GetInvoiceLinkResponseFromJSONTyped(json, false);
|
|
6742
|
+
}
|
|
6743
|
+
function GetInvoiceLinkResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
6744
|
+
if (json == null) {
|
|
6745
|
+
return json;
|
|
6746
|
+
}
|
|
6747
|
+
return {
|
|
6748
|
+
data: InvoiceLinkFromJSON(json["data"]),
|
|
6749
|
+
params: json["params"]
|
|
6750
|
+
};
|
|
6751
|
+
}
|
|
6752
|
+
function GetInvoiceLinkResponseToJSON(json) {
|
|
6753
|
+
return GetInvoiceLinkResponseToJSONTyped(json, false);
|
|
6754
|
+
}
|
|
6755
|
+
function GetInvoiceLinkResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
6756
|
+
if (value == null) {
|
|
6757
|
+
return value;
|
|
6758
|
+
}
|
|
6759
|
+
return {
|
|
6760
|
+
data: InvoiceLinkToJSON(value["data"]),
|
|
6761
|
+
params: value["params"]
|
|
6762
|
+
};
|
|
6763
|
+
}
|
|
6650
6764
|
function instanceOfPublicCatalogResponseData(value) {
|
|
6651
6765
|
if (!("addOns" in value) || value["addOns"] === void 0) return false;
|
|
6652
6766
|
if (!("capabilities" in value) || value["capabilities"] === void 0)
|
|
@@ -7939,6 +8053,10 @@ var SchematicBillingClient = class {
|
|
|
7939
8053
|
return { invoices: decoded.invoices, count: decoded.count };
|
|
7940
8054
|
});
|
|
7941
8055
|
}
|
|
8056
|
+
fetchInvoiceLink(id) {
|
|
8057
|
+
const path = `/components/invoices/${encodeURIComponent(id)}/link`;
|
|
8058
|
+
return this.session.request(path).then((body) => InvoiceLinkFromJSON(dataOf(body, path)).url);
|
|
8059
|
+
}
|
|
7942
8060
|
fetchUpcomingInvoice() {
|
|
7943
8061
|
const path = "/company/upcoming-invoice";
|
|
7944
8062
|
return this.session.request(path, { noContentOn: [204] }).then((body) => {
|
|
@@ -10664,6 +10782,13 @@ var BillingStore = class {
|
|
|
10664
10782
|
const taxIds = await this._client.updateTaxId(taxId);
|
|
10665
10783
|
this.taxIds.seed(SINGLETON, taxIds);
|
|
10666
10784
|
}
|
|
10785
|
+
/**
|
|
10786
|
+
* The current hosted URL for invoice `id`, which the listed `url` can
|
|
10787
|
+
* outlive. A pass-through: the answer is for one click, not to keep.
|
|
10788
|
+
*/
|
|
10789
|
+
fetchInvoiceLink(id) {
|
|
10790
|
+
return this._client.fetchInvoiceLink?.(id) ?? Promise.reject(new Error("The billing client cannot read invoice links."));
|
|
10791
|
+
}
|
|
10667
10792
|
/**
|
|
10668
10793
|
* The checkout calls pass straight through: a checkout in progress is one
|
|
10669
10794
|
* reader's cart, not a resource to share, and `useCheckout` holds it.
|
|
@@ -10808,6 +10933,7 @@ var ACTION_NAMES = [
|
|
|
10808
10933
|
"setDefaultPaymentMethod",
|
|
10809
10934
|
"removePaymentMethod",
|
|
10810
10935
|
"createSetupIntent",
|
|
10936
|
+
"fetchInvoiceLink",
|
|
10811
10937
|
"unsubscribe",
|
|
10812
10938
|
"updateTaxId",
|
|
10813
10939
|
"createCheckout",
|
|
@@ -11024,7 +11150,14 @@ function useInvoices(query = DEFAULT_INVOICE_QUERY) {
|
|
|
11024
11150
|
() => source.loadMoreInvoices(params),
|
|
11025
11151
|
[params, source]
|
|
11026
11152
|
);
|
|
11027
|
-
|
|
11153
|
+
const fetchLink = useCallback(
|
|
11154
|
+
(id) => actionsOf(source).fetchInvoiceLink(id),
|
|
11155
|
+
[source]
|
|
11156
|
+
);
|
|
11157
|
+
return useMemo3(
|
|
11158
|
+
() => ({ ...handle, loadMore, fetchLink }),
|
|
11159
|
+
[handle, loadMore, fetchLink]
|
|
11160
|
+
);
|
|
11028
11161
|
}
|
|
11029
11162
|
function useUpcomingInvoice() {
|
|
11030
11163
|
return useBillingResource("upcomingInvoice", SINGLETON);
|
|
@@ -11291,6 +11424,7 @@ function BillingProvider({
|
|
|
11291
11424
|
setDefaultPaymentMethod: (externalId) => store.setDefaultPaymentMethod(externalId),
|
|
11292
11425
|
removePaymentMethod: (id) => store.removePaymentMethod(id),
|
|
11293
11426
|
createSetupIntent: () => store.createSetupIntent(),
|
|
11427
|
+
fetchInvoiceLink: (id) => store.fetchInvoiceLink(id),
|
|
11294
11428
|
unsubscribe: () => store.unsubscribe(),
|
|
11295
11429
|
updateTaxId: (taxId) => store.updateTaxId(taxId),
|
|
11296
11430
|
createCheckout: (selections) => store.createCheckout(selections),
|
|
@@ -11366,7 +11500,7 @@ function staticSource(data) {
|
|
|
11366
11500
|
}
|
|
11367
11501
|
|
|
11368
11502
|
// src/version.ts
|
|
11369
|
-
var version2 = "1.
|
|
11503
|
+
var version2 = "1.18.1";
|
|
11370
11504
|
|
|
11371
11505
|
// src/context/schematic.tsx
|
|
11372
11506
|
import { jsx as jsx4 } from "react/jsx-runtime";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@schematichq/schematic-react",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.18.1",
|
|
4
4
|
"main": "dist/schematic-react.cjs.js",
|
|
5
5
|
"module": "dist/schematic-react.esm.js",
|
|
6
6
|
"types": "dist/schematic-react.d.ts",
|
|
@@ -34,27 +34,27 @@
|
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@eslint/js": "^10.0.1",
|
|
36
36
|
"@microsoft/api-extractor": "^7.60.1",
|
|
37
|
-
"@schematichq/schematic-js": "^1.
|
|
37
|
+
"@schematichq/schematic-js": "^1.18.0",
|
|
38
38
|
"@testing-library/dom": "^10.4.2",
|
|
39
39
|
"@testing-library/jest-dom": "^7.0.1",
|
|
40
40
|
"@testing-library/react": "^16.3.3",
|
|
41
41
|
"@types/react": "^19.3.0",
|
|
42
|
-
"@vitest/browser": "^5.0
|
|
42
|
+
"@vitest/browser": "^5.1.0",
|
|
43
43
|
"esbuild": "^0.28.2",
|
|
44
44
|
"eslint": "^10.14.0",
|
|
45
45
|
"eslint-plugin-import": "^2.32.0",
|
|
46
46
|
"eslint-plugin-react": "^7.37.5",
|
|
47
47
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
48
|
-
"globals": "^17.
|
|
48
|
+
"globals": "^17.14.0",
|
|
49
49
|
"happy-dom": "^21.0.4",
|
|
50
50
|
"husky": "^9.1.7",
|
|
51
|
-
"jsdom": "^
|
|
51
|
+
"jsdom": "^31.0.0",
|
|
52
52
|
"prettier": "^3.9.10",
|
|
53
53
|
"react": "^19.3.1",
|
|
54
54
|
"react-dom": "^19.3.1",
|
|
55
55
|
"typescript": "^6.0.3",
|
|
56
56
|
"typescript-eslint": "^8.72.1",
|
|
57
|
-
"vitest": "^5.0
|
|
57
|
+
"vitest": "^5.1.0"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
60
|
"react": ">=18"
|