@carlonicora/nextjs-jsonapi 1.33.0 → 1.34.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-UTZ7F23J.mjs → BlockNoteEditor-DFHJWZZB.mjs} +2 -2
- package/dist/{BlockNoteEditor-CUXI6ZTZ.js → BlockNoteEditor-TS5AN6W2.js} +6 -6
- package/dist/{BlockNoteEditor-CUXI6ZTZ.js.map → BlockNoteEditor-TS5AN6W2.js.map} +1 -1
- package/dist/billing/index.js +291 -291
- package/dist/billing/index.mjs +1 -1
- package/dist/{chunk-53WT73E6.mjs → chunk-GFRODCD7.mjs} +12 -2
- package/dist/chunk-GFRODCD7.mjs.map +1 -0
- package/dist/{chunk-RSHCU3TI.js → chunk-UPA67DQF.js} +168 -158
- package/dist/chunk-UPA67DQF.js.map +1 -0
- package/dist/client/index.js +2 -2
- package/dist/client/index.mjs +1 -1
- package/dist/components/index.js +2 -2
- package/dist/components/index.mjs +1 -1
- package/dist/contexts/index.js +2 -2
- package/dist/contexts/index.mjs +1 -1
- package/package.json +1 -1
- package/src/features/user/contexts/CurrentUserContext.tsx +13 -0
- package/dist/chunk-53WT73E6.mjs.map +0 -1
- package/dist/chunk-RSHCU3TI.js.map +0 -1
- /package/dist/{BlockNoteEditor-UTZ7F23J.mjs.map → BlockNoteEditor-DFHJWZZB.mjs.map} +0 -0
package/dist/billing/index.mjs
CHANGED
|
@@ -1012,6 +1012,16 @@ var CurrentUserProvider = /* @__PURE__ */ __name(({ children }) => {
|
|
|
1012
1012
|
if (fullUser) {
|
|
1013
1013
|
setDehydratedUser(fullUser.dehydrate());
|
|
1014
1014
|
setUser(fullUser);
|
|
1015
|
+
await getTokenHandler()?.updateToken({
|
|
1016
|
+
userId: fullUser.id,
|
|
1017
|
+
companyId: fullUser.company?.id,
|
|
1018
|
+
roles: fullUser.roles.map((role) => role.id),
|
|
1019
|
+
features: fullUser.company?.features?.map((feature) => feature.id) ?? [],
|
|
1020
|
+
modules: fullUser.modules.map((module) => ({
|
|
1021
|
+
id: module.id,
|
|
1022
|
+
permissions: module.permissions
|
|
1023
|
+
}))
|
|
1024
|
+
});
|
|
1015
1025
|
}
|
|
1016
1026
|
} catch (error) {
|
|
1017
1027
|
console.error("Failed to refresh user data:", error);
|
|
@@ -11155,7 +11165,7 @@ __name(AllowedUsersDetails, "AllowedUsersDetails");
|
|
|
11155
11165
|
import dynamic from "next/dynamic";
|
|
11156
11166
|
import React15 from "react";
|
|
11157
11167
|
import { jsx as jsx123 } from "react/jsx-runtime";
|
|
11158
|
-
var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-
|
|
11168
|
+
var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-DFHJWZZB.mjs"), {
|
|
11159
11169
|
ssr: false
|
|
11160
11170
|
});
|
|
11161
11171
|
var BlockNoteEditorContainer = React15.memo(/* @__PURE__ */ __name(function EditorContainer(props) {
|
|
@@ -15224,4 +15234,4 @@ export {
|
|
|
15224
15234
|
useOAuthClients,
|
|
15225
15235
|
useOAuthClient
|
|
15226
15236
|
};
|
|
15227
|
-
//# sourceMappingURL=chunk-
|
|
15237
|
+
//# sourceMappingURL=chunk-GFRODCD7.mjs.map
|