@carlonicora/nextjs-jsonapi 5.6.0 → 5.7.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/{BlockNoteEditor-AE3ZTEEH.js → BlockNoteEditor-ARUXU5AV.js} +19 -19
- package/dist/{BlockNoteEditor-AE3ZTEEH.js.map → BlockNoteEditor-ARUXU5AV.js.map} +1 -1
- package/dist/{BlockNoteEditor-NEYG5L6W.mjs → BlockNoteEditor-MNNISNVN.mjs} +4 -4
- package/dist/{BlockNoteViewer-3OUT5UFY.mjs → BlockNoteViewer-BVVN6D3T.mjs} +2 -2
- package/dist/{BlockNoteViewer-4CFKQM7U.js → BlockNoteViewer-SD3ZFIXD.js} +3 -3
- package/dist/{BlockNoteViewer-4CFKQM7U.js.map → BlockNoteViewer-SD3ZFIXD.js.map} +1 -1
- package/dist/billing/index.d.mts +33 -43
- package/dist/billing/index.d.ts +33 -43
- package/dist/billing/index.js +591 -574
- package/dist/billing/index.js.map +1 -1
- package/dist/billing/index.mjs +30 -13
- package/dist/billing/index.mjs.map +1 -1
- package/dist/{chunk-SFYPXCK4.mjs → chunk-2FNSDBJG.mjs} +641 -536
- package/dist/chunk-2FNSDBJG.mjs.map +1 -0
- package/dist/{chunk-3I5AAJXV.js → chunk-2TXE57LE.js} +3 -3
- package/dist/{chunk-3I5AAJXV.js.map → chunk-2TXE57LE.js.map} +1 -1
- package/dist/{chunk-LQ4DK4JF.js → chunk-2WK35GO2.js} +1317 -1212
- package/dist/chunk-2WK35GO2.js.map +1 -0
- package/dist/{chunk-HKZAESS6.js → chunk-5TH2DSAH.js} +17 -12
- package/dist/chunk-5TH2DSAH.js.map +1 -0
- package/dist/{chunk-EYA2F6AN.mjs → chunk-FK26NX3S.mjs} +16 -11
- package/dist/chunk-FK26NX3S.mjs.map +1 -0
- package/dist/{chunk-53BAULDP.js → chunk-IJME5SAM.js} +4 -4
- package/dist/{chunk-53BAULDP.js.map → chunk-IJME5SAM.js.map} +1 -1
- package/dist/{chunk-KQHBONL4.mjs → chunk-OKCV4GPJ.mjs} +2 -2
- package/dist/{chunk-BTPUYUQ3.mjs → chunk-RGQYFSJF.mjs} +2 -2
- package/dist/{chunk-Y7RR57EW.mjs → chunk-WCHLCOZG.mjs} +2 -2
- package/dist/{chunk-RL3PL3KV.js → chunk-XOSC3FFP.js} +8 -8
- package/dist/{chunk-RL3PL3KV.js.map → chunk-XOSC3FFP.js.map} +1 -1
- package/dist/client/index.js +4 -4
- package/dist/client/index.mjs +3 -3
- package/dist/components/index.js +4 -4
- package/dist/components/index.mjs +3 -3
- package/dist/contexts/index.js +4 -4
- package/dist/contexts/index.mjs +3 -3
- package/dist/core/index.d.mts +9 -3
- package/dist/core/index.d.ts +9 -3
- package/dist/core/index.js +10 -2
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.mjs +9 -1
- package/dist/{format-options-D6c7FNDi.d.mts → currency-DT_dveBx.d.mts} +41 -8
- package/dist/{format-options-BtX3o0Yu.d.ts → currency-pK9eRYRC.d.ts} +41 -8
- package/dist/email-automations/index.js +92 -92
- package/dist/email-automations/index.mjs +3 -3
- package/dist/features/analytics/index.js +121 -121
- package/dist/features/analytics/index.mjs +4 -4
- package/dist/features/analytics/server.js +4 -4
- package/dist/features/analytics/server.mjs +2 -2
- package/dist/features/blog/index.js +150 -150
- package/dist/features/blog/index.mjs +3 -3
- package/dist/features/blog/server.js +16 -16
- package/dist/features/blog/server.mjs +1 -1
- package/dist/features/help/index.js +37 -37
- package/dist/features/help/index.mjs +3 -3
- package/dist/features/tokenusage/index.js +124 -124
- package/dist/features/tokenusage/index.mjs +4 -4
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +11 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -2
- package/dist/server/index.js +3 -3
- package/dist/server/index.mjs +2 -2
- package/package.json +1 -1
- package/src/core/index.ts +3 -0
- package/src/features/billing/contexts/CouponContext.tsx +0 -2
- package/src/features/billing/stripe-coupon/components/containers/CouponContainer.tsx +2 -2
- package/src/features/billing/stripe-coupon/components/details/CouponDetails.tsx +5 -2
- package/src/features/billing/stripe-coupon/components/forms/CouponCodeEditor.tsx +6 -5
- package/src/features/billing/stripe-coupon/components/forms/CouponCodeFields.tsx +67 -45
- package/src/features/billing/stripe-coupon/components/forms/CouponEditor.tsx +294 -212
- package/src/features/billing/stripe-coupon/components/widgets/CouponCodeActions.tsx +4 -3
- package/src/features/billing/stripe-coupon/data/stripe-coupon.interface.ts +11 -7
- package/src/features/billing/stripe-coupon/data/stripe-coupon.ts +6 -4
- package/src/features/billing/stripe-coupon/hooks/useStripeCouponCodeTableStructure.tsx +14 -7
- package/src/features/billing/stripe-coupon/hooks/useStripeCouponTableStructure.tsx +2 -2
- package/src/features/billing/stripe-coupon/stripe-coupon-code.module.ts +3 -2
- package/src/features/billing/stripe-coupon/stripe-coupon.module.ts +11 -4
- package/src/features/billing/stripe-coupon/utils/__tests__/coupon-page-module.spec.ts +32 -0
- package/src/features/billing/stripe-coupon/utils/coupon-page-module.ts +13 -0
- package/src/features/billing/stripe-promotion-code/components/PromoCodeInput.tsx +1 -1
- package/src/features/billing/stripe-subscription/hooks/wizard-promotion.ts +15 -8
- package/dist/chunk-EYA2F6AN.mjs.map +0 -1
- package/dist/chunk-HKZAESS6.js.map +0 -1
- package/dist/chunk-LQ4DK4JF.js.map +0 -1
- package/dist/chunk-SFYPXCK4.mjs.map +0 -1
- /package/dist/{BlockNoteEditor-NEYG5L6W.mjs.map → BlockNoteEditor-MNNISNVN.mjs.map} +0 -0
- /package/dist/{BlockNoteViewer-3OUT5UFY.mjs.map → BlockNoteViewer-BVVN6D3T.mjs.map} +0 -0
- /package/dist/{chunk-KQHBONL4.mjs.map → chunk-OKCV4GPJ.mjs.map} +0 -0
- /package/dist/{chunk-BTPUYUQ3.mjs.map → chunk-RGQYFSJF.mjs.map} +0 -0
- /package/dist/{chunk-Y7RR57EW.mjs.map → chunk-WCHLCOZG.mjs.map} +0 -0
|
@@ -5269,10 +5269,12 @@ var StripeCoupon = class _StripeCoupon extends AbstractApiData {
|
|
|
5269
5269
|
};
|
|
5270
5270
|
const attributes = response.data.attributes;
|
|
5271
5271
|
if (data.stripeCouponId) attributes.stripeCouponId = data.stripeCouponId;
|
|
5272
|
-
if (data.
|
|
5273
|
-
|
|
5274
|
-
|
|
5275
|
-
|
|
5272
|
+
if (data.discountType === "percent_off") attributes.percentOff = data.percentOff;
|
|
5273
|
+
else {
|
|
5274
|
+
attributes.amountOff = data.amountOff;
|
|
5275
|
+
attributes.currency = data.currency;
|
|
5276
|
+
}
|
|
5277
|
+
if (data.duration === "repeating") attributes.durationInMonths = data.durationInMonths;
|
|
5276
5278
|
if (data.productIds && data.productIds.length > 0) attributes.productIds = data.productIds;
|
|
5277
5279
|
if (data.redeemBy !== void 0) attributes.redeemBy = data.redeemBy.toISOString();
|
|
5278
5280
|
if (data.maxRedemptions !== void 0) attributes.maxRedemptions = data.maxRedemptions;
|
|
@@ -5319,12 +5321,13 @@ var StripeCouponFields = /* @__PURE__ */ ((StripeCouponFields2) => {
|
|
|
5319
5321
|
// src/features/billing/stripe-coupon/stripe-coupon.module.ts
|
|
5320
5322
|
import { TicketPercentIcon } from "lucide-react";
|
|
5321
5323
|
var STRIPE_COUPON_REFRESH_SEGMENT = "refresh";
|
|
5324
|
+
var STRIPE_COUPON_DETAIL_PAGE_URL = "/administration/coupons";
|
|
5322
5325
|
var StripeCouponModule = /* @__PURE__ */ __name((factory) => factory({
|
|
5323
5326
|
name: "stripe-coupons",
|
|
5324
|
-
// The
|
|
5325
|
-
//
|
|
5326
|
-
//
|
|
5327
|
-
pageUrl: "/administration/
|
|
5327
|
+
// The coupons list lives on the products page (Codes tab), so the module
|
|
5328
|
+
// points there, same value as StripeProductModule. Links to a single coupon
|
|
5329
|
+
// use STRIPE_COUPON_DETAIL_PAGE_URL.
|
|
5330
|
+
pageUrl: "/administration/products",
|
|
5328
5331
|
model: StripeCoupon,
|
|
5329
5332
|
moduleId: "50bdb0d2-539c-4358-b609-d6beab248bdb",
|
|
5330
5333
|
icon: TicketPercentIcon
|
|
@@ -5533,8 +5536,9 @@ var StripeCouponCodeFields = /* @__PURE__ */ ((StripeCouponCodeFields2) => {
|
|
|
5533
5536
|
var STRIPE_COUPON_CODE_AUTOMATIC_SEGMENT = "automatic";
|
|
5534
5537
|
var StripeCouponCodeModule = /* @__PURE__ */ __name((factory) => factory({
|
|
5535
5538
|
name: "stripe-coupon-codes",
|
|
5536
|
-
// Codes are
|
|
5537
|
-
|
|
5539
|
+
// Codes are listed on the products page (Codes tab), same value as
|
|
5540
|
+
// StripeProductModule. A code has no page of its own.
|
|
5541
|
+
pageUrl: "/administration/products",
|
|
5538
5542
|
model: StripeCouponCode,
|
|
5539
5543
|
moduleId: "85feb4c7-ff22-416a-b856-8dafcf28ff26"
|
|
5540
5544
|
}), "StripeCouponCodeModule");
|
|
@@ -12185,6 +12189,7 @@ export {
|
|
|
12185
12189
|
StripeCoupon,
|
|
12186
12190
|
StripeCouponFields,
|
|
12187
12191
|
STRIPE_COUPON_REFRESH_SEGMENT,
|
|
12192
|
+
STRIPE_COUPON_DETAIL_PAGE_URL,
|
|
12188
12193
|
StripeCouponModule,
|
|
12189
12194
|
StripeCouponService,
|
|
12190
12195
|
StripeCouponCode,
|
|
@@ -12359,4 +12364,4 @@ export {
|
|
|
12359
12364
|
AuditLogService,
|
|
12360
12365
|
AuditLogModule
|
|
12361
12366
|
};
|
|
12362
|
-
//# sourceMappingURL=chunk-
|
|
12367
|
+
//# sourceMappingURL=chunk-FK26NX3S.mjs.map
|