@carlonicora/nextjs-jsonapi 6.31.0 → 6.32.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-ICGGCW6N.js → BlockNoteEditor-RD3JNEV5.js} +24 -24
- package/dist/{BlockNoteEditor-ICGGCW6N.js.map → BlockNoteEditor-RD3JNEV5.js.map} +1 -1
- package/dist/{BlockNoteEditor-O4E67ECL.mjs → BlockNoteEditor-XIEMUQCO.mjs} +4 -4
- package/dist/{BlockNoteViewer-BNZEXGVT.mjs → BlockNoteViewer-NVSR67X5.mjs} +2 -2
- package/dist/{BlockNoteViewer-YONLBNXW.js → BlockNoteViewer-RQBYHBQL.js} +3 -3
- package/dist/{BlockNoteViewer-YONLBNXW.js.map → BlockNoteViewer-RQBYHBQL.js.map} +1 -1
- package/dist/billing/index.js +465 -465
- package/dist/billing/index.mjs +3 -3
- package/dist/{chunk-HNK2O6YE.mjs → chunk-4JVLLBRS.mjs} +4 -16
- package/dist/chunk-4JVLLBRS.mjs.map +1 -0
- package/dist/{chunk-NQL2NDKH.js → chunk-5H25LM2Z.js} +10 -10
- package/dist/chunk-5H25LM2Z.js.map +1 -0
- package/dist/{chunk-FDKAVSZ6.mjs → chunk-AEBZ67JJ.mjs} +8 -8
- package/dist/chunk-AEBZ67JJ.mjs.map +1 -0
- package/dist/{chunk-JL6XL5NK.mjs → chunk-AMQFKCAX.mjs} +2 -2
- package/dist/{chunk-BT3VFB3I.mjs → chunk-F25BVBEH.mjs} +9 -16
- package/dist/chunk-F25BVBEH.mjs.map +1 -0
- package/dist/{chunk-5XP5G45B.js → chunk-NPGX2GJD.js} +4 -16
- package/dist/chunk-NPGX2GJD.js.map +1 -0
- package/dist/{chunk-Q5SMFSE4.js → chunk-PNCO3HMJ.js} +3 -3
- package/dist/{chunk-Q5SMFSE4.js.map → chunk-PNCO3HMJ.js.map} +1 -1
- package/dist/{chunk-M7FA63QE.js → chunk-SQNFYMYE.js} +732 -739
- package/dist/chunk-SQNFYMYE.js.map +1 -0
- 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.js +2 -2
- package/dist/core/index.mjs +1 -1
- package/dist/email-automations/index.js +105 -105
- package/dist/email-automations/index.mjs +3 -3
- package/dist/features/analytics/index.js +114 -114
- package/dist/features/analytics/index.mjs +3 -3
- package/dist/features/analytics/server.js +4 -4
- package/dist/features/analytics/server.mjs +2 -2
- package/dist/features/auth/components/forms/Logout.d.ts +7 -1
- package/dist/features/auth/components/forms/Logout.d.ts.map +1 -1
- package/dist/features/auth/components/forms/RefreshUser.d.ts.map +1 -1
- package/dist/features/auth/config.d.ts +0 -9
- package/dist/features/auth/config.d.ts.map +1 -1
- package/dist/features/auth/data/auth.service.d.ts.map +1 -1
- package/dist/features/auth/data/two-factor.service.d.ts.map +1 -1
- package/dist/features/auth/utils/AuthCookies.d.ts +0 -9
- package/dist/features/auth/utils/AuthCookies.d.ts.map +1 -1
- package/dist/features/blog/index.js +129 -129
- package/dist/features/blog/index.mjs +3 -3
- package/dist/features/blog/server.js +7 -7
- 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 +114 -114
- package/dist/features/tokenusage/index.mjs +3 -3
- package/dist/features/user/contexts/CurrentUserContext.d.ts.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.mjs +2 -2
- package/dist/server/ServerSession.d.ts.map +1 -1
- package/dist/server/index.js +3 -3
- package/dist/server/index.mjs +2 -2
- package/package.json +1 -1
- package/src/features/auth/components/forms/Logout.tsx +8 -2
- package/src/features/auth/components/forms/RefreshUser.tsx +0 -3
- package/src/features/auth/config.ts +0 -9
- package/src/features/auth/data/auth.service.ts +0 -8
- package/src/features/auth/data/two-factor.service.ts +0 -4
- package/src/features/auth/utils/AuthCookies.ts +1 -23
- package/src/features/user/contexts/CurrentUserContext.tsx +0 -4
- package/src/features/user/contexts/__tests__/CurrentUserContext.spec.tsx +2 -0
- package/src/server/ServerSession.ts +10 -26
- package/src/server/__tests__/ServerSession.hasPermissionToModule.spec.ts +78 -0
- package/dist/chunk-5XP5G45B.js.map +0 -1
- package/dist/chunk-BT3VFB3I.mjs.map +0 -1
- package/dist/chunk-FDKAVSZ6.mjs.map +0 -1
- package/dist/chunk-HNK2O6YE.mjs.map +0 -1
- package/dist/chunk-M7FA63QE.js.map +0 -1
- package/dist/chunk-NQL2NDKH.js.map +0 -1
- /package/dist/{BlockNoteEditor-O4E67ECL.mjs.map → BlockNoteEditor-XIEMUQCO.mjs.map} +0 -0
- /package/dist/{BlockNoteViewer-BNZEXGVT.mjs.map → BlockNoteViewer-NVSR67X5.mjs.map} +0 -0
- /package/dist/{chunk-JL6XL5NK.mjs.map → chunk-AMQFKCAX.mjs.map} +0 -0
package/dist/billing/index.mjs
CHANGED
|
@@ -81,12 +81,12 @@ import {
|
|
|
81
81
|
useCurrentUserContext,
|
|
82
82
|
useDataListRetriever,
|
|
83
83
|
usePageUrlGenerator
|
|
84
|
-
} from "../chunk-
|
|
84
|
+
} from "../chunk-F25BVBEH.mjs";
|
|
85
85
|
import "../chunk-5T2AQMQ2.mjs";
|
|
86
86
|
import "../chunk-VOXD3ZLY.mjs";
|
|
87
87
|
import {
|
|
88
88
|
getStripePublishableKey
|
|
89
|
-
} from "../chunk-
|
|
89
|
+
} from "../chunk-AMQFKCAX.mjs";
|
|
90
90
|
import {
|
|
91
91
|
getRoleId
|
|
92
92
|
} from "../chunk-PW42LRSL.mjs";
|
|
@@ -112,7 +112,7 @@ import {
|
|
|
112
112
|
resolveChangePlanTarget,
|
|
113
113
|
showToast,
|
|
114
114
|
toPromotionCodeResult
|
|
115
|
-
} from "../chunk-
|
|
115
|
+
} from "../chunk-4JVLLBRS.mjs";
|
|
116
116
|
import {
|
|
117
117
|
formatDateStyle
|
|
118
118
|
} from "../chunk-RW6XZGZG.mjs";
|
|
@@ -2811,11 +2811,7 @@ var AuthService = class extends AbstractService {
|
|
|
2811
2811
|
userId: auth.user.id,
|
|
2812
2812
|
companyId: auth.user.company?.id,
|
|
2813
2813
|
roles: auth.user.roles.map((role) => role.id),
|
|
2814
|
-
features: auth.user.company?.features?.map((feature) => feature.id) ?? []
|
|
2815
|
-
modules: auth.user.modules.map((module) => ({
|
|
2816
|
-
id: module.id,
|
|
2817
|
-
permissions: module.permissions
|
|
2818
|
-
}))
|
|
2814
|
+
features: auth.user.company?.features?.map((feature) => feature.id) ?? []
|
|
2819
2815
|
});
|
|
2820
2816
|
}
|
|
2821
2817
|
return auth.user;
|
|
@@ -2897,11 +2893,7 @@ var AuthService = class extends AbstractService {
|
|
|
2897
2893
|
userId: auth.user.id,
|
|
2898
2894
|
companyId: auth.user.company?.id,
|
|
2899
2895
|
roles: auth.user.roles.map((role) => role.id),
|
|
2900
|
-
features: auth.user.company?.features?.map((feature) => feature.id) ?? []
|
|
2901
|
-
modules: auth.user.modules.map((module) => ({
|
|
2902
|
-
id: module.id,
|
|
2903
|
-
permissions: module.permissions
|
|
2904
|
-
}))
|
|
2896
|
+
features: auth.user.company?.features?.map((feature) => feature.id) ?? []
|
|
2905
2897
|
});
|
|
2906
2898
|
}
|
|
2907
2899
|
}
|
|
@@ -3172,11 +3164,7 @@ var TwoFactorService = class extends AbstractService {
|
|
|
3172
3164
|
userId: auth.user.id,
|
|
3173
3165
|
companyId: auth.user.company?.id,
|
|
3174
3166
|
roles: auth.user.roles.map((role) => role.id),
|
|
3175
|
-
features: auth.user.company?.features?.map((feature) => feature.id) ?? []
|
|
3176
|
-
modules: auth.user.modules.map((module) => ({
|
|
3177
|
-
id: module.id,
|
|
3178
|
-
permissions: module.permissions
|
|
3179
|
-
}))
|
|
3167
|
+
features: auth.user.company?.features?.map((feature) => feature.id) ?? []
|
|
3180
3168
|
});
|
|
3181
3169
|
}
|
|
3182
3170
|
return auth;
|
|
@@ -12984,4 +12972,4 @@ export {
|
|
|
12984
12972
|
AuditLogService,
|
|
12985
12973
|
AuditLogModule
|
|
12986
12974
|
};
|
|
12987
|
-
//# sourceMappingURL=chunk-
|
|
12975
|
+
//# sourceMappingURL=chunk-4JVLLBRS.mjs.map
|