@carlonicora/nextjs-jsonapi 1.3.1 → 1.4.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-7WYPN34K.js → BlockNoteEditor-QV6ESIQA.js} +5 -5
- package/dist/{BlockNoteEditor-7WYPN34K.js.map → BlockNoteEditor-QV6ESIQA.js.map} +1 -1
- package/dist/{BlockNoteEditor-V625C23O.mjs → BlockNoteEditor-U2IHUVUF.mjs} +3 -3
- package/dist/chunk-3UELCPIN.js +46 -0
- package/dist/chunk-3UELCPIN.js.map +1 -0
- package/dist/{chunk-K2ANOT66.js → chunk-E2HRC2OG.js} +37 -35
- package/dist/chunk-E2HRC2OG.js.map +1 -0
- package/dist/{chunk-5QC7A6BL.mjs → chunk-R2ONK22M.mjs} +20 -18
- package/dist/chunk-R2ONK22M.mjs.map +1 -0
- package/dist/chunk-SZZYEG3P.mjs +46 -0
- package/dist/chunk-SZZYEG3P.mjs.map +1 -0
- 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/features/index.js +1 -1
- package/dist/features/index.mjs +1 -1
- package/dist/hooks/index.js +3 -3
- package/dist/hooks/index.mjs +2 -2
- package/dist/index.js +2 -2
- package/dist/index.mjs +1 -1
- package/dist/roles/index.d.mts +7 -1
- package/dist/roles/index.d.ts +7 -1
- package/dist/roles/index.js +8 -2
- package/dist/roles/index.js.map +1 -1
- package/dist/roles/index.mjs +7 -1
- package/package.json +1 -1
- package/src/features/auth/components/details/LandingComponent.tsx +27 -29
- package/src/roles/config.ts +15 -0
- package/src/roles/index.ts +9 -1
- package/dist/chunk-4HCRAOS5.js +0 -28
- package/dist/chunk-4HCRAOS5.js.map +0 -1
- package/dist/chunk-5QC7A6BL.mjs.map +0 -1
- package/dist/chunk-BLWVZK6J.mjs +0 -28
- package/dist/chunk-BLWVZK6J.mjs.map +0 -1
- package/dist/chunk-K2ANOT66.js.map +0 -1
- /package/dist/{BlockNoteEditor-V625C23O.mjs.map → BlockNoteEditor-U2IHUVUF.mjs.map} +0 -0
package/dist/chunk-BLWVZK6J.mjs
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
__name
|
|
3
|
-
} from "./chunk-PAWJFY3S.mjs";
|
|
4
|
-
|
|
5
|
-
// src/roles/config.ts
|
|
6
|
-
var _roleId = null;
|
|
7
|
-
function configureRoles(roleId) {
|
|
8
|
-
_roleId = roleId;
|
|
9
|
-
}
|
|
10
|
-
__name(configureRoles, "configureRoles");
|
|
11
|
-
function getRoleId() {
|
|
12
|
-
if (!_roleId) {
|
|
13
|
-
throw new Error("Roles not configured. Call configureRoles() at app startup.");
|
|
14
|
-
}
|
|
15
|
-
return _roleId;
|
|
16
|
-
}
|
|
17
|
-
__name(getRoleId, "getRoleId");
|
|
18
|
-
function isRolesConfigured() {
|
|
19
|
-
return _roleId !== null;
|
|
20
|
-
}
|
|
21
|
-
__name(isRolesConfigured, "isRolesConfigured");
|
|
22
|
-
|
|
23
|
-
export {
|
|
24
|
-
configureRoles,
|
|
25
|
-
getRoleId,
|
|
26
|
-
isRolesConfigured
|
|
27
|
-
};
|
|
28
|
-
//# sourceMappingURL=chunk-BLWVZK6J.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/roles/config.ts"],"sourcesContent":["/**\n * Role ID configuration interface\n * Apps provide their role IDs via configureRoles()\n */\nexport interface RoleIdConfig {\n Administrator: string;\n CompanyAdministrator: string;\n [key: string]: string; // Allow additional roles\n}\n\n// Private storage for the injected role IDs\nlet _roleId: RoleIdConfig | null = null;\n\n/**\n * Configure role IDs for the library\n * Call this at app startup to provide role ID constants\n *\n * @example\n * ```typescript\n * import { configureRoles } from \"@carlonicora/nextjs-jsonapi\";\n * import { RoleId } from \"@phlow/shared\";\n *\n * configureRoles(RoleId);\n * ```\n */\nexport function configureRoles(roleId: RoleIdConfig): void {\n _roleId = roleId;\n}\n\n/**\n * Get configured role IDs\n * @throws Error if roles not configured\n */\nexport function getRoleId(): RoleIdConfig {\n if (!_roleId) {\n throw new Error(\"Roles not configured. Call configureRoles() at app startup.\");\n }\n return _roleId;\n}\n\n/**\n * Check if roles have been configured\n */\nexport function isRolesConfigured(): boolean {\n return _roleId !== null;\n}\n"],"mappings":";;;;;AAWA,IAAI,UAA+B;AAc5B,SAAS,eAAe,QAA4B;AACzD,YAAU;AACZ;AAFgB;AAQT,SAAS,YAA0B;AACxC,MAAI,CAAC,SAAS;AACZ,UAAM,IAAI,MAAM,6DAA6D;AAAA,EAC/E;AACA,SAAO;AACT;AALgB;AAUT,SAAS,oBAA6B;AAC3C,SAAO,YAAY;AACrB;AAFgB;","names":[]}
|