@carlonicora/nextjs-jsonapi 3.3.2 → 3.3.4
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-VV6DRWSA.js → BlockNoteEditor-J4TQJSHZ.js} +19 -19
- package/dist/{BlockNoteEditor-VV6DRWSA.js.map → BlockNoteEditor-J4TQJSHZ.js.map} +1 -1
- package/dist/{BlockNoteEditor-SDVXTZRC.mjs → BlockNoteEditor-ZNEXXORX.mjs} +4 -4
- package/dist/billing/index.js +398 -398
- package/dist/billing/index.mjs +3 -3
- package/dist/{chunk-S2C5V2XZ.js → chunk-6T6QB6K2.js} +6 -2
- package/dist/chunk-6T6QB6K2.js.map +1 -0
- package/dist/{chunk-KW6LYVFJ.mjs → chunk-G6B7RZWJ.mjs} +5 -1
- package/dist/chunk-G6B7RZWJ.mjs.map +1 -0
- package/dist/{chunk-WPF4NFVV.mjs → chunk-GCE4C7FG.mjs} +7 -8
- package/dist/chunk-GCE4C7FG.mjs.map +1 -0
- package/dist/{chunk-4I3UORNT.js → chunk-KCZ6SPUQ.js} +820 -821
- package/dist/chunk-KCZ6SPUQ.js.map +1 -0
- package/dist/{chunk-RUEY6XSS.mjs → chunk-RZDY4CIF.mjs} +2 -2
- package/dist/{chunk-OHG2YWNA.js → chunk-X2MQ3WHX.js} +7 -7
- package/dist/{chunk-OHG2YWNA.js.map → chunk-X2MQ3WHX.js.map} +1 -1
- package/dist/client/index.js +4 -4
- package/dist/client/index.mjs +3 -3
- package/dist/components/index.d.mts +4 -0
- package/dist/components/index.d.ts +4 -0
- 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 +11 -1
- package/dist/core/index.d.ts +11 -1
- package/dist/core/index.js +4 -2
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.mjs +3 -1
- package/dist/features/help/index.js +37 -37
- package/dist/features/help/index.mjs +3 -3
- package/dist/features/tokenusage/index.js +101 -101
- package/dist/features/tokenusage/index.mjs +3 -3
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -2
- package/dist/server/index.js +3 -3
- package/dist/server/index.mjs +1 -1
- package/package.json +1 -1
- package/src/features/auth/components/forms/Logout.tsx +11 -3
- package/src/features/auth/components/forms/__tests__/Logout.spec.tsx +13 -9
- package/src/features/company/components/forms/CompanyEditor.tsx +1 -3
- package/src/features/user/contexts/CurrentUserContext.tsx +2 -1
- package/src/features/user/data/index.ts +1 -0
- package/src/features/user/data/user.storage.ts +9 -0
- package/dist/chunk-4I3UORNT.js.map +0 -1
- package/dist/chunk-KW6LYVFJ.mjs.map +0 -1
- package/dist/chunk-S2C5V2XZ.js.map +0 -1
- package/dist/chunk-WPF4NFVV.mjs.map +0 -1
- /package/dist/{BlockNoteEditor-SDVXTZRC.mjs.map → BlockNoteEditor-ZNEXXORX.mjs.map} +0 -0
- /package/dist/{chunk-RUEY6XSS.mjs.map → chunk-RZDY4CIF.mjs.map} +0 -0
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
useI18nLocale,
|
|
21
21
|
useI18nRouter,
|
|
22
22
|
useI18nTranslations
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-RZDY4CIF.mjs";
|
|
24
24
|
import {
|
|
25
25
|
AVAILABLE_OAUTH_SCOPES,
|
|
26
26
|
AiConnectionService,
|
|
@@ -29,6 +29,7 @@ import {
|
|
|
29
29
|
AssistantMessageService,
|
|
30
30
|
AssistantService,
|
|
31
31
|
AuthService,
|
|
32
|
+
CURRENT_USER_STORAGE_KEY,
|
|
32
33
|
ClientAbstractService,
|
|
33
34
|
CompanyService,
|
|
34
35
|
ContentService,
|
|
@@ -70,7 +71,7 @@ import {
|
|
|
70
71
|
useIsMobile,
|
|
71
72
|
validateItalianTaxCode,
|
|
72
73
|
validatePartitaIva
|
|
73
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-G6B7RZWJ.mjs";
|
|
74
75
|
import {
|
|
75
76
|
ENV
|
|
76
77
|
} from "./chunk-RVASYIQG.mjs";
|
|
@@ -7625,7 +7626,7 @@ var useSocketContext = /* @__PURE__ */ __name(() => {
|
|
|
7625
7626
|
|
|
7626
7627
|
// src/features/user/contexts/CurrentUserContext.tsx
|
|
7627
7628
|
import { jsx as jsx61 } from "react/jsx-runtime";
|
|
7628
|
-
var userAtom = atomWithStorage(
|
|
7629
|
+
var userAtom = atomWithStorage(CURRENT_USER_STORAGE_KEY, null);
|
|
7629
7630
|
var CurrentUserContext = createContext12(void 0);
|
|
7630
7631
|
var CurrentUserProvider = /* @__PURE__ */ __name(({ children }) => {
|
|
7631
7632
|
const path = usePathname();
|
|
@@ -10225,7 +10226,7 @@ import { useRef as useRef17 } from "react";
|
|
|
10225
10226
|
import dynamic from "next/dynamic";
|
|
10226
10227
|
import React17 from "react";
|
|
10227
10228
|
import { jsx as jsx88 } from "react/jsx-runtime";
|
|
10228
|
-
var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-
|
|
10229
|
+
var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-ZNEXXORX.mjs"), {
|
|
10229
10230
|
ssr: false
|
|
10230
10231
|
});
|
|
10231
10232
|
var BlockNoteEditorContainer = React17.memo(/* @__PURE__ */ __name(function EditorContainer(props) {
|
|
@@ -19190,9 +19191,7 @@ function Logout({ storageKeys }) {
|
|
|
19190
19191
|
const generateUrl = usePageUrlGenerator();
|
|
19191
19192
|
useEffect59(() => {
|
|
19192
19193
|
const logOut = /* @__PURE__ */ __name(async () => {
|
|
19193
|
-
|
|
19194
|
-
clearClientStorage(storageKeys);
|
|
19195
|
-
}
|
|
19194
|
+
clearClientStorage([CURRENT_USER_STORAGE_KEY, ...storageKeys ?? []]);
|
|
19196
19195
|
await AuthService.logout();
|
|
19197
19196
|
window.location.href = generateUrl({ page: `/` });
|
|
19198
19197
|
}, "logOut");
|
|
@@ -25442,4 +25441,4 @@ export {
|
|
|
25442
25441
|
useOAuthClients,
|
|
25443
25442
|
useOAuthClient
|
|
25444
25443
|
};
|
|
25445
|
-
//# sourceMappingURL=chunk-
|
|
25444
|
+
//# sourceMappingURL=chunk-GCE4C7FG.mjs.map
|