@carlonicora/nextjs-jsonapi 1.37.0 → 1.38.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-GTWR6CPI.mjs → BlockNoteEditor-5CEV5TZT.mjs} +3 -3
- package/dist/{BlockNoteEditor-74FHJO7E.js → BlockNoteEditor-VB72JQEO.js} +13 -13
- package/dist/{BlockNoteEditor-74FHJO7E.js.map → BlockNoteEditor-VB72JQEO.js.map} +1 -1
- package/dist/billing/index.d.mts +12 -2
- package/dist/billing/index.d.ts +12 -2
- package/dist/billing/index.js +680 -452
- package/dist/billing/index.js.map +1 -1
- package/dist/billing/index.mjs +588 -360
- package/dist/billing/index.mjs.map +1 -1
- package/dist/{chunk-53IPQJVH.js → chunk-3EZX4G2E.js} +147 -23
- package/dist/chunk-3EZX4G2E.js.map +1 -0
- package/dist/{chunk-YVEK3SUS.js → chunk-BYMBRMKS.js} +454 -446
- package/dist/chunk-BYMBRMKS.js.map +1 -0
- package/dist/{chunk-P7R2DPD6.mjs → chunk-TQ5GRRTM.mjs} +125 -1
- package/dist/chunk-TQ5GRRTM.mjs.map +1 -0
- package/dist/{chunk-ZUUH4CQC.mjs → chunk-VMK2N3TQ.mjs} +13 -5
- package/dist/{chunk-ZUUH4CQC.mjs.map → chunk-VMK2N3TQ.mjs.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.d.mts +47 -3
- package/dist/core/index.d.ts +47 -3
- package/dist/core/index.js +8 -2
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.mjs +7 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -1
- package/dist/server/index.js +3 -3
- package/dist/server/index.mjs +1 -1
- package/dist/{stripe-subscription.interface-DK7BJaNd.d.ts → stripe-promotion-code.interface-BcJty0rv.d.ts} +18 -1
- package/dist/{stripe-subscription.interface-C8uhCYIZ.d.mts → stripe-promotion-code.interface-Dnm2DJKQ.d.mts} +18 -1
- package/package.json +1 -1
- package/src/billing/index.ts +1 -0
- package/src/core/index.ts +1 -0
- package/src/core/registry/ModuleRegistry.ts +1 -0
- package/src/features/auth/components/forms/Login.tsx +14 -2
- package/src/features/billing/components/cards/SubscriptionSummaryCard.tsx +5 -16
- package/src/features/billing/stripe-invoice/data/stripe-invoice.interface.ts +1 -0
- package/src/features/billing/stripe-promotion-code/components/PromoCodeInput.tsx +108 -0
- package/src/features/billing/stripe-promotion-code/components/index.ts +1 -0
- package/src/features/billing/stripe-promotion-code/data/index.ts +3 -0
- package/src/features/billing/stripe-promotion-code/data/stripe-promotion-code.interface.ts +14 -0
- package/src/features/billing/stripe-promotion-code/data/stripe-promotion-code.service.ts +64 -0
- package/src/features/billing/stripe-promotion-code/data/stripe-promotion-code.ts +66 -0
- package/src/features/billing/stripe-promotion-code/index.ts +2 -0
- package/src/features/billing/stripe-promotion-code/stripe-promotion-code.module.ts +9 -0
- package/src/features/billing/stripe-subscription/components/lists/SubscriptionsList.tsx +20 -3
- package/src/features/billing/stripe-subscription/components/wizards/SubscriptionWizard.tsx +6 -0
- package/src/features/billing/stripe-subscription/components/wizards/WizardStepReview.tsx +131 -9
- package/src/features/billing/stripe-subscription/data/stripe-subscription.interface.ts +2 -0
- package/src/features/billing/stripe-subscription/data/stripe-subscription.ts +8 -0
- package/src/features/billing/stripe-subscription/hooks/useSubscriptionWizard.ts +93 -7
- package/src/features/index.ts +1 -0
- package/dist/chunk-53IPQJVH.js.map +0 -1
- package/dist/chunk-P7R2DPD6.mjs.map +0 -1
- package/dist/chunk-YVEK3SUS.js.map +0 -1
- /package/dist/{BlockNoteEditor-GTWR6CPI.mjs.map → BlockNoteEditor-5CEV5TZT.mjs.map} +0 -0
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
showToast,
|
|
42
42
|
useComposedRefs,
|
|
43
43
|
useIsMobile
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-TQ5GRRTM.mjs";
|
|
45
45
|
import {
|
|
46
46
|
JsonApiContext
|
|
47
47
|
} from "./chunk-VOXD3ZLY.mjs";
|
|
@@ -10828,7 +10828,7 @@ __name(AllowedUsersDetails, "AllowedUsersDetails");
|
|
|
10828
10828
|
import dynamic from "next/dynamic";
|
|
10829
10829
|
import React15 from "react";
|
|
10830
10830
|
import { jsx as jsx125 } from "react/jsx-runtime";
|
|
10831
|
-
var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-
|
|
10831
|
+
var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-5CEV5TZT.mjs"), {
|
|
10832
10832
|
ssr: false
|
|
10833
10833
|
});
|
|
10834
10834
|
var BlockNoteEditorContainer = React15.memo(/* @__PURE__ */ __name(function EditorContainer(props) {
|
|
@@ -12699,6 +12699,7 @@ __name(ForgotPassword, "ForgotPassword");
|
|
|
12699
12699
|
import { zodResolver as zodResolver7 } from "@hookform/resolvers/zod";
|
|
12700
12700
|
import { useTranslations as useTranslations53 } from "next-intl";
|
|
12701
12701
|
import Image13 from "next/image";
|
|
12702
|
+
import { useRouter, useSearchParams } from "next/navigation";
|
|
12702
12703
|
import { useForm as useForm7 } from "react-hook-form";
|
|
12703
12704
|
import { z as z7 } from "zod";
|
|
12704
12705
|
import { Fragment as Fragment25, jsx as jsx148, jsxs as jsxs87 } from "react/jsx-runtime";
|
|
@@ -12707,7 +12708,10 @@ function Login() {
|
|
|
12707
12708
|
const { setUser } = useCurrentUserContext();
|
|
12708
12709
|
const { setComponentType } = useAuthContext();
|
|
12709
12710
|
const generateUrl = usePageUrlGenerator();
|
|
12710
|
-
const
|
|
12711
|
+
const i18nRouter = useI18nRouter();
|
|
12712
|
+
const nativeRouter = useRouter();
|
|
12713
|
+
const searchParams = useSearchParams();
|
|
12714
|
+
const callbackUrl = searchParams.get("callbackUrl");
|
|
12711
12715
|
const formSchema = z7.object({
|
|
12712
12716
|
email: z7.string().email({
|
|
12713
12717
|
message: t(`common.errors.invalid_email`)
|
|
@@ -12728,7 +12732,11 @@ function Login() {
|
|
|
12728
12732
|
password: values.password
|
|
12729
12733
|
});
|
|
12730
12734
|
setUser(user);
|
|
12731
|
-
|
|
12735
|
+
if (callbackUrl) {
|
|
12736
|
+
nativeRouter.replace(callbackUrl);
|
|
12737
|
+
} else {
|
|
12738
|
+
i18nRouter.replace(generateUrl({ page: `/` }));
|
|
12739
|
+
}
|
|
12732
12740
|
} catch (e) {
|
|
12733
12741
|
errorToast({
|
|
12734
12742
|
title: t(`common.errors.error`),
|
|
@@ -14794,4 +14802,4 @@ export {
|
|
|
14794
14802
|
useOAuthClients,
|
|
14795
14803
|
useOAuthClient
|
|
14796
14804
|
};
|
|
14797
|
-
//# sourceMappingURL=chunk-
|
|
14805
|
+
//# sourceMappingURL=chunk-VMK2N3TQ.mjs.map
|