@carlonicora/nextjs-jsonapi 1.27.0 → 1.28.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/{BlockNoteEditor-5NYZBYPY.js → BlockNoteEditor-CAUNVZUF.js} +13 -13
- package/dist/{BlockNoteEditor-5NYZBYPY.js.map → BlockNoteEditor-CAUNVZUF.js.map} +1 -1
- package/dist/{BlockNoteEditor-B6K7OEN6.mjs → BlockNoteEditor-EOA4OEVX.mjs} +3 -3
- package/dist/billing/index.d.mts +1 -1
- package/dist/billing/index.d.ts +1 -1
- package/dist/billing/index.js +359 -352
- package/dist/billing/index.js.map +1 -1
- package/dist/billing/index.mjs +12 -5
- package/dist/billing/index.mjs.map +1 -1
- package/dist/{chunk-ZR26XYRO.js → chunk-IXI4GAKB.js} +427 -427
- package/dist/{chunk-ZR26XYRO.js.map → chunk-IXI4GAKB.js.map} +1 -1
- package/dist/{chunk-NAB52T2P.mjs → chunk-ORFXBO7F.mjs} +9 -1
- package/dist/chunk-ORFXBO7F.mjs.map +1 -0
- package/dist/{chunk-RU4GQIB6.mjs → chunk-PYASRX75.mjs} +3 -3
- package/dist/{chunk-2VZZFQP4.js → chunk-TSEU4KZ2.js} +9 -1
- package/dist/chunk-TSEU4KZ2.js.map +1 -0
- package/dist/client/index.js +3 -3
- package/dist/client/index.mjs +2 -2
- package/dist/components/index.js +3 -3
- package/dist/components/index.mjs +2 -2
- package/dist/contexts/index.js +3 -3
- package/dist/contexts/index.mjs +2 -2
- package/dist/core/index.d.mts +4 -2
- package/dist/core/index.d.ts +4 -2
- package/dist/core/index.js +2 -2
- package/dist/core/index.mjs +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/index.mjs +1 -1
- package/dist/server/index.js +3 -3
- package/dist/server/index.mjs +1 -1
- package/dist/{stripe-subscription.interface-CNTsrbAx.d.ts → stripe-subscription.interface-BaZUngWe.d.ts} +2 -0
- package/dist/{stripe-subscription.interface-CFtupgYh.d.mts → stripe-subscription.interface-Cm_It1fz.d.mts} +2 -0
- package/package.json +1 -1
- package/src/features/billing/stripe-price/components/forms/PriceEditor.tsx +11 -1
- package/src/features/billing/stripe-price/data/stripe-price.interface.ts +2 -0
- package/src/features/billing/stripe-price/data/stripe-price.ts +10 -0
- package/dist/chunk-2VZZFQP4.js.map +0 -1
- package/dist/chunk-NAB52T2P.mjs.map +0 -1
- /package/dist/{BlockNoteEditor-B6K7OEN6.mjs.map → BlockNoteEditor-EOA4OEVX.mjs.map} +0 -0
- /package/dist/{chunk-RU4GQIB6.mjs.map → chunk-PYASRX75.mjs.map} +0 -0
|
@@ -2925,6 +2925,7 @@ var StripePrice = class extends AbstractApiData {
|
|
|
2925
2925
|
_metadata;
|
|
2926
2926
|
_description;
|
|
2927
2927
|
_features;
|
|
2928
|
+
_token;
|
|
2928
2929
|
get stripePriceId() {
|
|
2929
2930
|
if (!this._stripePriceId) throw new Error("stripePriceId is not defined");
|
|
2930
2931
|
return this._stripePriceId;
|
|
@@ -2968,6 +2969,9 @@ var StripePrice = class extends AbstractApiData {
|
|
|
2968
2969
|
get features() {
|
|
2969
2970
|
return this._features;
|
|
2970
2971
|
}
|
|
2972
|
+
get token() {
|
|
2973
|
+
return this._token;
|
|
2974
|
+
}
|
|
2971
2975
|
rehydrate(data) {
|
|
2972
2976
|
super.rehydrate(data);
|
|
2973
2977
|
this._stripePriceId = data.jsonApi.attributes.stripePriceId;
|
|
@@ -2988,6 +2992,7 @@ var StripePrice = class extends AbstractApiData {
|
|
|
2988
2992
|
this._metadata = data.jsonApi.attributes.metadata ? typeof data.jsonApi.attributes.metadata === "string" ? JSON.parse(data.jsonApi.attributes.metadata) : data.jsonApi.attributes.metadata : void 0;
|
|
2989
2993
|
this._description = data.jsonApi.attributes.description;
|
|
2990
2994
|
this._features = data.jsonApi.attributes.features ? typeof data.jsonApi.attributes.features === "string" ? JSON.parse(data.jsonApi.attributes.features) : data.jsonApi.attributes.features : void 0;
|
|
2995
|
+
this._token = data.jsonApi.attributes.token;
|
|
2991
2996
|
this._product = this._readIncluded(data, "product", Modules.StripeProduct);
|
|
2992
2997
|
return this;
|
|
2993
2998
|
}
|
|
@@ -3026,6 +3031,9 @@ var StripePrice = class extends AbstractApiData {
|
|
|
3026
3031
|
if ("features" in data && data.features !== void 0) {
|
|
3027
3032
|
response.data.attributes.features = JSON.stringify(data.features);
|
|
3028
3033
|
}
|
|
3034
|
+
if ("token" in data && data.token !== void 0) {
|
|
3035
|
+
response.data.attributes.token = data.token;
|
|
3036
|
+
}
|
|
3029
3037
|
return response;
|
|
3030
3038
|
}
|
|
3031
3039
|
};
|
|
@@ -5294,4 +5302,4 @@ export {
|
|
|
5294
5302
|
AVAILABLE_OAUTH_SCOPES,
|
|
5295
5303
|
DEFAULT_GRANT_TYPES
|
|
5296
5304
|
};
|
|
5297
|
-
//# sourceMappingURL=chunk-
|
|
5305
|
+
//# sourceMappingURL=chunk-ORFXBO7F.mjs.map
|