@carlonicora/nextjs-jsonapi 1.29.1 → 1.29.2
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-7BDLLHRA.js → BlockNoteEditor-BEWKLGW3.js} +13 -13
- package/dist/{BlockNoteEditor-7BDLLHRA.js.map → BlockNoteEditor-BEWKLGW3.js.map} +1 -1
- package/dist/{BlockNoteEditor-F5KCNLVF.mjs → BlockNoteEditor-GNFK7ZVR.mjs} +3 -3
- package/dist/billing/index.js +334 -333
- package/dist/billing/index.js.map +1 -1
- package/dist/billing/index.mjs +8 -7
- package/dist/billing/index.mjs.map +1 -1
- package/dist/{chunk-YLSLXQ3O.mjs → chunk-IJSB4FH6.mjs} +3 -3
- package/dist/{chunk-DU64WMZD.mjs → chunk-NYNLJEPF.mjs} +4 -4
- package/dist/chunk-NYNLJEPF.mjs.map +1 -0
- package/dist/{chunk-J22NEVSK.js → chunk-UYBCHXXL.js} +4 -4
- package/dist/chunk-UYBCHXXL.js.map +1 -0
- package/dist/{chunk-7M7NPKOF.js → chunk-XU4MY6OG.js} +427 -427
- package/dist/{chunk-7M7NPKOF.js.map → chunk-XU4MY6OG.js.map} +1 -1
- 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.js +2 -2
- package/dist/core/index.mjs +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/package.json +1 -1
- package/src/core/abstracts/AbstractService.ts +2 -2
- package/src/features/billing/stripe-subscription/hooks/useSubscriptionWizard.ts +5 -4
- package/src/utils/blocknote-diff.util.ts +1 -1
- package/dist/chunk-DU64WMZD.mjs.map +0 -1
- package/dist/chunk-J22NEVSK.js.map +0 -1
- /package/dist/{BlockNoteEditor-F5KCNLVF.mjs.map → BlockNoteEditor-GNFK7ZVR.mjs.map} +0 -0
- /package/dist/{chunk-YLSLXQ3O.mjs.map → chunk-IJSB4FH6.mjs.map} +0 -0
package/dist/billing/index.mjs
CHANGED
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
TabsList,
|
|
48
48
|
TabsTrigger,
|
|
49
49
|
useCurrentUserContext
|
|
50
|
-
} from "../chunk-
|
|
50
|
+
} from "../chunk-IJSB4FH6.mjs";
|
|
51
51
|
import {
|
|
52
52
|
getRoleId,
|
|
53
53
|
getStripePublishableKey
|
|
@@ -60,7 +60,7 @@ import {
|
|
|
60
60
|
StripeSubscriptionService,
|
|
61
61
|
StripeUsageService,
|
|
62
62
|
cn
|
|
63
|
-
} from "../chunk-
|
|
63
|
+
} from "../chunk-NYNLJEPF.mjs";
|
|
64
64
|
import "../chunk-AUXK7QSA.mjs";
|
|
65
65
|
import "../chunk-C7C7VY4F.mjs";
|
|
66
66
|
import "../chunk-U4MTVHOC.mjs";
|
|
@@ -1790,6 +1790,7 @@ import { useCallback as useCallback3, useEffect as useEffect7, useRef as useRef2
|
|
|
1790
1790
|
|
|
1791
1791
|
// src/features/billing/stripe-subscription/hooks/useSubscriptionWizard.ts
|
|
1792
1792
|
import { useCallback as useCallback2, useMemo, useReducer, useRef } from "react";
|
|
1793
|
+
import { v4 } from "uuid";
|
|
1793
1794
|
var initialState = {
|
|
1794
1795
|
step: "plan-selection",
|
|
1795
1796
|
selectedPrice: null,
|
|
@@ -1881,7 +1882,7 @@ function useSubscriptionWizard({ subscription, onSuccess, onClose }) {
|
|
|
1881
1882
|
});
|
|
1882
1883
|
} else {
|
|
1883
1884
|
await StripeSubscriptionService.createSubscription({
|
|
1884
|
-
id:
|
|
1885
|
+
id: v4(),
|
|
1885
1886
|
priceId: state.selectedPrice.id
|
|
1886
1887
|
});
|
|
1887
1888
|
}
|
|
@@ -2859,7 +2860,7 @@ import { zodResolver as zodResolver2 } from "@hookform/resolvers/zod";
|
|
|
2859
2860
|
import { AlertCircle as AlertCircle3, PlusIcon, XIcon } from "lucide-react";
|
|
2860
2861
|
import { useEffect as useEffect10, useState as useState14 } from "react";
|
|
2861
2862
|
import { useForm as useForm2 } from "react-hook-form";
|
|
2862
|
-
import { v4 } from "uuid";
|
|
2863
|
+
import { v4 as v42 } from "uuid";
|
|
2863
2864
|
import { z as z2 } from "zod";
|
|
2864
2865
|
import { jsx as jsx39, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
2865
2866
|
function PriceEditor({ productId, price, open, onOpenChange, onSuccess }) {
|
|
@@ -2931,7 +2932,7 @@ function PriceEditor({ productId, price, open, onOpenChange, onSuccess }) {
|
|
|
2931
2932
|
});
|
|
2932
2933
|
} else {
|
|
2933
2934
|
const createInput = {
|
|
2934
|
-
id:
|
|
2935
|
+
id: v42(),
|
|
2935
2936
|
productId,
|
|
2936
2937
|
currency: values.currency,
|
|
2937
2938
|
unitAmount: unitAmountInCents
|
|
@@ -3332,7 +3333,7 @@ import { useEffect as useEffect12, useState as useState18 } from "react";
|
|
|
3332
3333
|
import { zodResolver as zodResolver3 } from "@hookform/resolvers/zod";
|
|
3333
3334
|
import { useState as useState16 } from "react";
|
|
3334
3335
|
import { useForm as useForm3 } from "react-hook-form";
|
|
3335
|
-
import { v4 as
|
|
3336
|
+
import { v4 as v43 } from "uuid";
|
|
3336
3337
|
import { z as z3 } from "zod";
|
|
3337
3338
|
import { jsx as jsx41, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
3338
3339
|
function ProductEditor({ product, open, onOpenChange, onSuccess }) {
|
|
@@ -3362,7 +3363,7 @@ function ProductEditor({ product, open, onOpenChange, onSuccess }) {
|
|
|
3362
3363
|
});
|
|
3363
3364
|
} else {
|
|
3364
3365
|
await StripeProductService.createProduct({
|
|
3365
|
-
id:
|
|
3366
|
+
id: v43(),
|
|
3366
3367
|
name: values.name,
|
|
3367
3368
|
description: values.description,
|
|
3368
3369
|
active: values.active
|