@carlonicora/nextjs-jsonapi 1.5.0 → 1.6.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/{ApiResponseInterface-DDI7QQPR.d.ts → ApiResponseInterface-CfcC7pPC.d.mts} +11 -2
- package/dist/{ApiResponseInterface-BHN5D9r5.d.mts → ApiResponseInterface-DTBJaV5R.d.ts} +11 -2
- package/dist/AuthComponent-hxOPs9o8.d.mts +11 -0
- package/dist/AuthComponent-hxOPs9o8.d.ts +11 -0
- package/dist/{BlockNoteEditor-G6AK2NWA.js → BlockNoteEditor-7FM7B737.js} +19 -22
- package/dist/BlockNoteEditor-7FM7B737.js.map +1 -0
- package/dist/{BlockNoteEditor-AIEEQM6A.mjs → BlockNoteEditor-RVL76ZAS.mjs} +11 -14
- package/dist/BlockNoteEditor-RVL76ZAS.mjs.map +1 -0
- package/dist/JsonApiRequest-KOKGVPBI.js +25 -0
- package/dist/{JsonApiRequest-UJ7FGIVI.js.map → JsonApiRequest-KOKGVPBI.js.map} +1 -1
- package/dist/{JsonApiRequest-6UR7DIAR.mjs → JsonApiRequest-VCCRO732.mjs} +2 -2
- package/dist/chunk-2Z56AS2S.js +2723 -0
- package/dist/chunk-2Z56AS2S.js.map +1 -0
- package/dist/chunk-37NJZ2VD.mjs +637 -0
- package/dist/chunk-37NJZ2VD.mjs.map +1 -0
- package/dist/{chunk-2K3Q24UF.js → chunk-3ZPK4QOB.js} +24 -14
- package/dist/chunk-3ZPK4QOB.js.map +1 -0
- package/dist/chunk-AGWQ75PQ.js +142 -0
- package/dist/chunk-AGWQ75PQ.js.map +1 -0
- package/dist/{chunk-32HM6MDD.js → chunk-CSM6AIAP.js} +1 -1
- package/dist/{chunk-32HM6MDD.js.map → chunk-CSM6AIAP.js.map} +1 -1
- package/dist/{chunk-IKBA4AHN.mjs → chunk-F4Y3GZG4.mjs} +3 -3
- package/dist/{chunk-YF5XQZDR.mjs → chunk-F5UNXZ3J.mjs} +1 -1
- package/dist/chunk-F5UNXZ3J.mjs.map +1 -0
- package/dist/chunk-IGOWVLJH.mjs +142 -0
- package/dist/chunk-IGOWVLJH.mjs.map +1 -0
- package/dist/{chunk-HAG77QBV.mjs → chunk-K4W5QXL5.mjs} +1 -1
- package/dist/chunk-KFL5ZFM4.mjs +2723 -0
- package/dist/chunk-KFL5ZFM4.mjs.map +1 -0
- package/dist/{chunk-HR4H2FP7.mjs → chunk-KJ4ETLJB.mjs} +24 -14
- package/dist/chunk-KJ4ETLJB.mjs.map +1 -0
- package/dist/chunk-LOSPCUCF.js +637 -0
- package/dist/chunk-LOSPCUCF.js.map +1 -0
- package/dist/{chunk-VET55IZO.js → chunk-SVX7E6RR.js} +10293 -7536
- package/dist/chunk-SVX7E6RR.js.map +1 -0
- package/dist/{chunk-EFJEWLRL.js → chunk-YUO55Q5A.js} +1 -1
- package/dist/chunk-YUO55Q5A.js.map +1 -0
- package/dist/chunk-ZQTFZKLJ.mjs +12089 -0
- package/dist/chunk-ZQTFZKLJ.mjs.map +1 -0
- package/dist/{chunk-PMXG5WBC.js → chunk-ZUEEIQHW.js} +3 -3
- package/dist/{chunk-PMXG5WBC.js.map → chunk-ZUEEIQHW.js.map} +1 -1
- package/dist/client/index.d.mts +161 -11
- package/dist/client/index.d.ts +161 -11
- package/dist/client/index.js +74 -11
- package/dist/client/index.js.map +1 -1
- package/dist/client/index.mjs +73 -10
- package/dist/components/index.d.mts +763 -11
- package/dist/components/index.d.ts +763 -11
- package/dist/components/index.js +465 -11
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +466 -12
- package/dist/config-B43zxEvn.d.mts +69 -0
- package/dist/config-D2OUrI_G.d.ts +69 -0
- package/dist/content.fields-Ck5lkQ5d.d.mts +47 -0
- package/dist/content.fields-Ck5lkQ5d.d.ts +47 -0
- package/dist/{content.interface-CR2aBeAW.d.ts → content.interface-Bs8a7uW6.d.mts} +2 -3
- package/dist/{content.interface-FpLfsaRm.d.mts → content.interface-UtsJ-mzs.d.ts} +2 -3
- package/dist/contexts/index.d.mts +13 -6
- package/dist/contexts/index.d.ts +13 -6
- package/dist/contexts/index.js +10 -11
- package/dist/contexts/index.js.map +1 -1
- package/dist/contexts/index.mjs +9 -10
- package/dist/core/index.d.mts +539 -8
- package/dist/core/index.d.ts +539 -8
- package/dist/core/index.js +104 -2
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.mjs +105 -3
- package/dist/index.d.mts +131 -70
- package/dist/index.d.ts +131 -70
- package/dist/index.js +97 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +118 -28
- package/dist/notification.interface-BdcwkuQE.d.mts +228 -0
- package/dist/notification.interface-BdcwkuQE.d.ts +228 -0
- package/dist/request-GBLBPYFM.js +8 -0
- package/dist/request-GBLBPYFM.js.map +1 -0
- package/dist/request-XABCMU25.mjs +8 -0
- package/dist/{AbstractService-wLid8dB0.d.ts → s3.interface-D7ttGatc.d.ts} +36 -26
- package/dist/{AbstractService-BsY6W3Ej.d.mts → s3.interface-DlaMDRTn.d.mts} +36 -26
- package/dist/server/index.d.mts +299 -4
- package/dist/server/index.d.ts +299 -4
- package/dist/server/index.js +215 -5
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +214 -4
- package/dist/server/index.mjs.map +1 -1
- package/dist/token-2UWQJY5T.js +8 -0
- package/dist/token-2UWQJY5T.js.map +1 -0
- package/dist/token-EOK3N45S.mjs +8 -0
- package/dist/{useSocket-BV6yMdWS.d.ts → useSocket-8vwK_R_c.d.ts} +1 -1
- package/dist/{useSocket-L-An7_Mr.d.mts → useSocket-BWJUXuOl.d.mts} +1 -1
- package/package.json +12 -52
- package/src/client/JsonApiClient.ts +248 -0
- package/src/client/config.ts +78 -0
- package/src/client/index.ts +6 -1
- package/src/components/containers/TabsContainer.tsx +1 -1
- package/src/components/editors/BlockNoteEditor.tsx +3 -1
- package/src/components/index.ts +4 -0
- package/src/components/navigations/Breadcrumb.tsx +1 -1
- package/src/components/navigations/Header.tsx +2 -2
- package/src/contexts/CommonContext.tsx +1 -1
- package/src/contexts/SocketContext.tsx +1 -1
- package/src/contexts/index.ts +3 -0
- package/src/core/abstracts/ClientAbstractService.ts +255 -0
- package/src/core/abstracts/ServerAbstractService.ts +180 -0
- package/src/core/abstracts/index.ts +2 -0
- package/src/core/index.ts +32 -3
- package/src/discord/config.ts +15 -0
- package/src/discord/index.ts +1 -0
- package/src/features/auth/components/details/LandingComponent.tsx +2 -2
- package/src/features/auth/components/forms/AcceptInvitation.tsx +1 -1
- package/src/features/auth/components/forms/ActivateAccount.tsx +1 -1
- package/src/features/auth/components/forms/Cookies.tsx +2 -1
- package/src/features/auth/components/forms/ForgotPassword.tsx +1 -1
- package/src/features/auth/components/forms/Login.tsx +1 -1
- package/src/features/auth/components/forms/Logout.tsx +1 -1
- package/src/features/auth/components/forms/RefreshUser.tsx +2 -1
- package/src/features/auth/components/forms/Register.tsx +1 -1
- package/src/features/auth/components/forms/ResetPassword.tsx +1 -1
- package/src/features/auth/data/auth.service.ts +1 -1
- package/src/features/auth/data/index.ts +0 -1
- package/src/features/auth/utils/AuthCookies.ts +1 -1
- package/src/features/company/components/forms/CompanyConfigurationEditor.tsx +4 -2
- package/src/features/company/components/forms/CompanyDeleter.tsx +2 -1
- package/src/features/company/components/forms/CompanyEditor.tsx +6 -3
- package/src/features/company/components/forms/CompanyLicense.tsx +4 -2
- package/src/features/company/components/lists/CompaniesList.tsx +2 -1
- package/src/features/company/data/index.ts +0 -1
- package/src/features/content/components/lists/ContentsListById.tsx +2 -1
- package/src/features/content/components/lists/RelevantContentsList.tsx +2 -1
- package/src/features/content/data/index.ts +0 -1
- package/src/features/feature/data/index.ts +0 -1
- package/src/features/notification/components/lists/NotificationsList.tsx +2 -1
- package/src/features/notification/contexts/NotificationContext.tsx +2 -1
- package/src/features/notification/data/index.ts +0 -1
- package/src/features/push/data/index.ts +0 -1
- package/src/features/role/components/forms/RemoveUserFromRole.tsx +4 -2
- package/src/features/role/components/forms/UserRoleAdd.tsx +2 -1
- package/src/features/role/components/lists/RolesList.tsx +2 -1
- package/src/features/role/components/lists/UserRolesList.tsx +2 -1
- package/src/features/role/data/index.ts +0 -1
- package/src/features/s3/data/index.ts +0 -1
- package/src/features/user/components/forms/RoleUserAdd.tsx +4 -2
- package/src/features/user/components/forms/UserDeleter.tsx +2 -1
- package/src/features/user/components/forms/UserEditor.tsx +6 -3
- package/src/features/user/components/forms/UserMultiSelect.tsx +2 -1
- package/src/features/user/components/forms/UserReactivator.tsx +2 -1
- package/src/features/user/components/forms/UserResentInvitationEmail.tsx +2 -1
- package/src/features/user/components/forms/UserSelector.tsx +2 -1
- package/src/features/user/components/lists/AdminUsersList.tsx +2 -1
- package/src/features/user/components/lists/CompanyUsersList.tsx +2 -1
- package/src/features/user/components/lists/RelevantUsersList.tsx +2 -1
- package/src/features/user/components/lists/RoleUsersList.tsx +2 -1
- package/src/features/user/components/lists/UsersListByContentIds.tsx +2 -1
- package/src/features/user/data/index.ts +0 -1
- package/src/features/user/hooks/useUserSearch.ts +2 -1
- package/src/hooks/useDataListRetriever.ts +4 -4
- package/src/hooks/usePageTracker.ts +1 -1
- package/src/hooks/usePushNotifications.ts +3 -2
- package/src/hooks/useSocket.ts +1 -1
- package/src/index.ts +7 -2
- package/src/roles/config.ts +0 -15
- package/src/roles/index.ts +1 -9
- package/src/server/JsonApiServer.ts +249 -0
- package/src/server/cache.ts +1 -1
- package/src/server/index.ts +13 -0
- package/src/server/request.ts +32 -18
- package/src/server/token.ts +1 -1
- package/dist/ApiData-DPKNfY-9.d.mts +0 -10
- package/dist/ApiData-DPKNfY-9.d.ts +0 -10
- package/dist/ApiDataInterface-DPP8s46n.d.mts +0 -21
- package/dist/ApiDataInterface-DPP8s46n.d.ts +0 -21
- package/dist/AuthComponent-B_Ps2Vb9.d.ts +0 -78
- package/dist/AuthComponent-CxnGgvoh.d.mts +0 -78
- package/dist/BlockNoteEditor-AIEEQM6A.mjs.map +0 -1
- package/dist/BlockNoteEditor-G6AK2NWA.js.map +0 -1
- package/dist/JsonApiRequest-UJ7FGIVI.js +0 -25
- package/dist/atoms/index.d.mts +0 -12
- package/dist/atoms/index.d.ts +0 -12
- package/dist/atoms/index.js +0 -9
- package/dist/atoms/index.js.map +0 -1
- package/dist/atoms/index.mjs +0 -9
- package/dist/chunk-2K3Q24UF.js.map +0 -1
- package/dist/chunk-3FBCC4G3.js +0 -8
- package/dist/chunk-3FBCC4G3.js.map +0 -1
- package/dist/chunk-3UELCPIN.js +0 -46
- package/dist/chunk-3UELCPIN.js.map +0 -1
- package/dist/chunk-5IET37O4.js +0 -4210
- package/dist/chunk-5IET37O4.js.map +0 -1
- package/dist/chunk-AYHKQWHH.js +0 -68
- package/dist/chunk-AYHKQWHH.js.map +0 -1
- package/dist/chunk-DEYKTLA3.js +0 -1131
- package/dist/chunk-DEYKTLA3.js.map +0 -1
- package/dist/chunk-EFJEWLRL.js.map +0 -1
- package/dist/chunk-FMBQZAIP.mjs +0 -490
- package/dist/chunk-FMBQZAIP.mjs.map +0 -1
- package/dist/chunk-HR4H2FP7.mjs.map +0 -1
- package/dist/chunk-J7YDGYSW.mjs +0 -9332
- package/dist/chunk-J7YDGYSW.mjs.map +0 -1
- package/dist/chunk-JGFWIT2E.mjs +0 -1131
- package/dist/chunk-JGFWIT2E.mjs.map +0 -1
- package/dist/chunk-P2F54I7Q.mjs +0 -4210
- package/dist/chunk-P2F54I7Q.mjs.map +0 -1
- package/dist/chunk-Q2N6SQYW.mjs +0 -8
- package/dist/chunk-Q2N6SQYW.mjs.map +0 -1
- package/dist/chunk-Q4FXESVT.js +0 -490
- package/dist/chunk-Q4FXESVT.js.map +0 -1
- package/dist/chunk-SM63SZCP.mjs +0 -68
- package/dist/chunk-SM63SZCP.mjs.map +0 -1
- package/dist/chunk-SZZYEG3P.mjs +0 -46
- package/dist/chunk-SZZYEG3P.mjs.map +0 -1
- package/dist/chunk-VET55IZO.js.map +0 -1
- package/dist/chunk-YF5XQZDR.mjs.map +0 -1
- package/dist/config-BmnK65TD.d.mts +0 -35
- package/dist/config-BmnK65TD.d.ts +0 -35
- package/dist/config-DQeAo9Kf.d.mts +0 -49
- package/dist/config-DQeAo9Kf.d.ts +0 -49
- package/dist/content.fields-cHPdM8GJ.d.mts +0 -27
- package/dist/content.fields-cHPdM8GJ.d.ts +0 -27
- package/dist/d3.link.interface-ClC4Irqp.d.mts +0 -21
- package/dist/d3.link.interface-ClC4Irqp.d.ts +0 -21
- package/dist/features/index.d.mts +0 -477
- package/dist/features/index.d.ts +0 -477
- package/dist/features/index.js +0 -108
- package/dist/features/index.js.map +0 -1
- package/dist/features/index.mjs +0 -108
- package/dist/hooks/index.d.mts +0 -69
- package/dist/hooks/index.d.ts +0 -69
- package/dist/hooks/index.js +0 -55
- package/dist/hooks/index.js.map +0 -1
- package/dist/hooks/index.mjs +0 -55
- package/dist/hooks/index.mjs.map +0 -1
- package/dist/interfaces/index.d.mts +0 -4
- package/dist/interfaces/index.d.ts +0 -4
- package/dist/interfaces/index.js +0 -2
- package/dist/interfaces/index.js.map +0 -1
- package/dist/interfaces/index.mjs +0 -2
- package/dist/interfaces/index.mjs.map +0 -1
- package/dist/notification.interface-B2BrLoDA.d.mts +0 -14
- package/dist/notification.interface-DlZLnAfg.d.ts +0 -14
- package/dist/permissions/index.d.mts +0 -41
- package/dist/permissions/index.d.ts +0 -41
- package/dist/permissions/index.js +0 -14
- package/dist/permissions/index.js.map +0 -1
- package/dist/permissions/index.mjs +0 -14
- package/dist/permissions/index.mjs.map +0 -1
- package/dist/request-7FE3LJLV.mjs +0 -9
- package/dist/request-7FE3LJLV.mjs.map +0 -1
- package/dist/request-QFS7NEIE.js +0 -9
- package/dist/request-QFS7NEIE.js.map +0 -1
- package/dist/roles/index.d.mts +0 -39
- package/dist/roles/index.d.ts +0 -39
- package/dist/roles/index.js +0 -18
- package/dist/roles/index.js.map +0 -1
- package/dist/roles/index.mjs +0 -18
- package/dist/roles/index.mjs.map +0 -1
- package/dist/shadcnui/index.d.mts +0 -698
- package/dist/shadcnui/index.d.ts +0 -698
- package/dist/shadcnui/index.js +0 -468
- package/dist/shadcnui/index.js.map +0 -1
- package/dist/shadcnui/index.mjs +0 -467
- package/dist/shadcnui/index.mjs.map +0 -1
- package/dist/token-IJSPOMW6.mjs +0 -9
- package/dist/token-IJSPOMW6.mjs.map +0 -1
- package/dist/token-UYE7CV6X.js +0 -9
- package/dist/token-UYE7CV6X.js.map +0 -1
- package/dist/types-B2QRyqyK.d.ts +0 -39
- package/dist/types-CgvNmxTd.d.mts +0 -39
- package/dist/types-t2PyXhDu.d.mts +0 -116
- package/dist/types-t2PyXhDu.d.ts +0 -116
- package/dist/user.interface-CooB1R79.d.mts +0 -85
- package/dist/user.interface-KnIT9pVY.d.ts +0 -85
- package/dist/utils/index.d.mts +0 -224
- package/dist/utils/index.d.ts +0 -224
- package/dist/utils/index.js +0 -46
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/index.mjs +0 -46
- package/dist/utils/index.mjs.map +0 -1
- /package/dist/{JsonApiRequest-6UR7DIAR.mjs.map → JsonApiRequest-VCCRO732.mjs.map} +0 -0
- /package/dist/{chunk-IKBA4AHN.mjs.map → chunk-F4Y3GZG4.mjs.map} +0 -0
- /package/dist/{chunk-HAG77QBV.mjs.map → chunk-K4W5QXL5.mjs.map} +0 -0
- /package/dist/{atoms/index.mjs.map → request-XABCMU25.mjs.map} +0 -0
- /package/dist/{features/index.mjs.map → token-EOK3N45S.mjs.map} +0 -0
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { M as ModuleWithPermissions } from './notification.interface-BdcwkuQE.js';
|
|
2
|
+
import { ComponentType } from 'react';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Configure the JSON:API client. This is the main configuration function.
|
|
6
|
+
* This is typically called during app initialization.
|
|
7
|
+
*/
|
|
8
|
+
declare function configureJsonApi(config: {
|
|
9
|
+
apiUrl: string;
|
|
10
|
+
appUrl?: string;
|
|
11
|
+
trackablePages?: ModuleWithPermissions[];
|
|
12
|
+
bootstrapper?: () => void;
|
|
13
|
+
additionalHeaders?: Record<string, string>;
|
|
14
|
+
}): void;
|
|
15
|
+
/**
|
|
16
|
+
* Configure the client config. This is typically called during app initialization.
|
|
17
|
+
* @deprecated Use configureJsonApi instead
|
|
18
|
+
*/
|
|
19
|
+
declare function configureClientConfig(config: {
|
|
20
|
+
apiUrl: string;
|
|
21
|
+
appUrl?: string;
|
|
22
|
+
trackablePages?: ModuleWithPermissions[];
|
|
23
|
+
}): void;
|
|
24
|
+
/**
|
|
25
|
+
* Get the configured API URL.
|
|
26
|
+
*/
|
|
27
|
+
declare function getApiUrl(): string;
|
|
28
|
+
/**
|
|
29
|
+
* Get the configured app URL.
|
|
30
|
+
*/
|
|
31
|
+
declare function getAppUrl(): string;
|
|
32
|
+
/**
|
|
33
|
+
* Get the configured trackable pages.
|
|
34
|
+
*/
|
|
35
|
+
declare function getTrackablePages(): ModuleWithPermissions[];
|
|
36
|
+
|
|
37
|
+
interface I18nRouter {
|
|
38
|
+
push: (href: string) => void;
|
|
39
|
+
replace: (href: string) => void;
|
|
40
|
+
back: () => void;
|
|
41
|
+
forward: () => void;
|
|
42
|
+
refresh: () => void;
|
|
43
|
+
prefetch: (href: string) => void;
|
|
44
|
+
}
|
|
45
|
+
type UseRouterHook = () => I18nRouter;
|
|
46
|
+
type UseTranslationsHook = (namespace?: string) => (key: string, values?: Record<string, any>) => string;
|
|
47
|
+
type UseLocaleHook = () => string;
|
|
48
|
+
type UseDateFnsLocaleHook = () => any;
|
|
49
|
+
type LinkComponent = ComponentType<{
|
|
50
|
+
href: string;
|
|
51
|
+
children: React.ReactNode;
|
|
52
|
+
[key: string]: any;
|
|
53
|
+
}>;
|
|
54
|
+
interface I18nConfig {
|
|
55
|
+
useRouter: UseRouterHook;
|
|
56
|
+
useTranslations: UseTranslationsHook;
|
|
57
|
+
useLocale?: UseLocaleHook;
|
|
58
|
+
useDateFnsLocale?: UseDateFnsLocaleHook;
|
|
59
|
+
Link: LinkComponent;
|
|
60
|
+
usePathname: () => string;
|
|
61
|
+
}
|
|
62
|
+
declare function configureI18n(config: I18nConfig): void;
|
|
63
|
+
declare function useI18nRouter(): I18nRouter;
|
|
64
|
+
declare function useI18nTranslations(namespace?: string): (key: string, values?: Record<string, any>) => string;
|
|
65
|
+
declare function getI18nLink(): LinkComponent;
|
|
66
|
+
declare function useI18nLocale(): string;
|
|
67
|
+
declare function useI18nDateFnsLocale(): any;
|
|
68
|
+
|
|
69
|
+
export { type I18nConfig as I, type LinkComponent as L, type UseDateFnsLocaleHook as U, getAppUrl as a, getTrackablePages as b, configureJsonApi as c, configureI18n as d, configureClientConfig as e, getI18nLink as f, getApiUrl as g, useI18nLocale as h, useI18nRouter as i, useI18nTranslations as j, type I18nRouter as k, type UseLocaleHook as l, type UseRouterHook as m, type UseTranslationsHook as n, useI18nDateFnsLocale as u };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { SimulationLinkDatum } from 'd3';
|
|
2
|
+
import { LucideIcon } from 'lucide-react';
|
|
3
|
+
|
|
4
|
+
interface D3Node extends d3.SimulationNodeDatum {
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
instanceType: string;
|
|
8
|
+
relationshipType?: string;
|
|
9
|
+
isBrowsableNode?: boolean;
|
|
10
|
+
icon?: LucideIcon;
|
|
11
|
+
visible?: boolean;
|
|
12
|
+
washedOut?: boolean;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
interface D3Link extends SimulationLinkDatum<D3Node> {
|
|
16
|
+
source: string | D3Node;
|
|
17
|
+
target: string | D3Node;
|
|
18
|
+
relationshipType?: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
declare enum RoleFields {
|
|
22
|
+
roleId = "roleId",
|
|
23
|
+
name = "name",
|
|
24
|
+
description = "description",
|
|
25
|
+
createdAt = "createdAt",
|
|
26
|
+
updatedAt = "updatedAt"
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
declare enum UserFields {
|
|
30
|
+
userId = "userId",
|
|
31
|
+
name = "name",
|
|
32
|
+
email = "email",
|
|
33
|
+
relevance = "relevance",
|
|
34
|
+
createdAt = "createdAt",
|
|
35
|
+
updatedAt = "updatedAt"
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
declare enum ContentFields {
|
|
39
|
+
contentId = "contentId",
|
|
40
|
+
name = "name",
|
|
41
|
+
relevance = "relevance",
|
|
42
|
+
authors = "authors",
|
|
43
|
+
createdAt = "createdAt",
|
|
44
|
+
updatedAt = "updatedAt"
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export { ContentFields as C, type D3Link as D, RoleFields as R, UserFields as U, type D3Node as a };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { SimulationLinkDatum } from 'd3';
|
|
2
|
+
import { LucideIcon } from 'lucide-react';
|
|
3
|
+
|
|
4
|
+
interface D3Node extends d3.SimulationNodeDatum {
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
instanceType: string;
|
|
8
|
+
relationshipType?: string;
|
|
9
|
+
isBrowsableNode?: boolean;
|
|
10
|
+
icon?: LucideIcon;
|
|
11
|
+
visible?: boolean;
|
|
12
|
+
washedOut?: boolean;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
interface D3Link extends SimulationLinkDatum<D3Node> {
|
|
16
|
+
source: string | D3Node;
|
|
17
|
+
target: string | D3Node;
|
|
18
|
+
relationshipType?: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
declare enum RoleFields {
|
|
22
|
+
roleId = "roleId",
|
|
23
|
+
name = "name",
|
|
24
|
+
description = "description",
|
|
25
|
+
createdAt = "createdAt",
|
|
26
|
+
updatedAt = "updatedAt"
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
declare enum UserFields {
|
|
30
|
+
userId = "userId",
|
|
31
|
+
name = "name",
|
|
32
|
+
email = "email",
|
|
33
|
+
relevance = "relevance",
|
|
34
|
+
createdAt = "createdAt",
|
|
35
|
+
updatedAt = "updatedAt"
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
declare enum ContentFields {
|
|
39
|
+
contentId = "contentId",
|
|
40
|
+
name = "name",
|
|
41
|
+
relevance = "relevance",
|
|
42
|
+
authors = "authors",
|
|
43
|
+
createdAt = "createdAt",
|
|
44
|
+
updatedAt = "updatedAt"
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export { ContentFields as C, type D3Link as D, RoleFields as R, UserFields as U, type D3Node as a };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { A as ApiDataInterface } from './
|
|
2
|
-
import { U as UserInterface } from './user.interface-KnIT9pVY.js';
|
|
1
|
+
import { A as ApiDataInterface, U as UserInterface } from './notification.interface-BdcwkuQE.mjs';
|
|
3
2
|
|
|
4
3
|
type ContentInput = {
|
|
5
4
|
id: string;
|
|
@@ -18,4 +17,4 @@ interface ContentInterface extends ApiDataInterface {
|
|
|
18
17
|
get editors(): UserInterface[];
|
|
19
18
|
}
|
|
20
19
|
|
|
21
|
-
export type {
|
|
20
|
+
export type { ContentInput as C, ContentInterface as a };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { A as ApiDataInterface } from './
|
|
2
|
-
import { U as UserInterface } from './user.interface-CooB1R79.mjs';
|
|
1
|
+
import { A as ApiDataInterface, U as UserInterface } from './notification.interface-BdcwkuQE.js';
|
|
3
2
|
|
|
4
3
|
type ContentInput = {
|
|
5
4
|
id: string;
|
|
@@ -18,4 +17,4 @@ interface ContentInterface extends ApiDataInterface {
|
|
|
18
17
|
get editors(): UserInterface[];
|
|
19
18
|
}
|
|
20
19
|
|
|
21
|
-
export type {
|
|
20
|
+
export type { ContentInput as C, ContentInterface as a };
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import React__default, { ReactNode, ReactElement } from 'react';
|
|
3
|
-
import { J as JsonApiHydratedDataInterface } from '../
|
|
4
|
-
import { C as CompanyInterface, R as RoleInterface, U as UserInterface } from '../user.interface-CooB1R79.mjs';
|
|
5
|
-
import { N as NotificationInterface } from '../notification.interface-B2BrLoDA.mjs';
|
|
6
|
-
import { M as ModuleWithPermissions, a as Action } from '../types-t2PyXhDu.mjs';
|
|
3
|
+
import { J as JsonApiHydratedDataInterface, e as CompanyInterface, N as NotificationInterface, i as RoleInterface, U as UserInterface, M as ModuleWithPermissions, b as Action } from '../notification.interface-BdcwkuQE.mjs';
|
|
7
4
|
import { B as BreadcrumbItemData } from '../breadcrumb.item.data.interface-CgB4_1EE.mjs';
|
|
8
|
-
import { u as useSocket } from '../useSocket-
|
|
5
|
+
import { u as useSocket } from '../useSocket-BWJUXuOl.mjs';
|
|
6
|
+
import * as jotai from 'jotai';
|
|
7
|
+
import * as jotai_utils from 'jotai/utils';
|
|
9
8
|
import 'lucide-react';
|
|
10
9
|
|
|
11
10
|
interface CompanyContextType {
|
|
@@ -142,4 +141,12 @@ interface SocketProviderProps {
|
|
|
142
141
|
declare const SocketProvider: React__default.FC<SocketProviderProps>;
|
|
143
142
|
declare const useSocketContext: () => SocketContextProps;
|
|
144
143
|
|
|
145
|
-
|
|
144
|
+
interface RecentPage {
|
|
145
|
+
url: string;
|
|
146
|
+
title: string;
|
|
147
|
+
moduleType: string;
|
|
148
|
+
timestamp: number;
|
|
149
|
+
}
|
|
150
|
+
declare const recentPagesAtom: jotai.WritableAtom<RecentPage[], [typeof jotai_utils.RESET | RecentPage[] | ((prev: RecentPage[]) => typeof jotai_utils.RESET | RecentPage[])], void>;
|
|
151
|
+
|
|
152
|
+
export { CommonProvider, CompanyProvider, type CurrentUserContextType, CurrentUserProvider, NotificationContextProvider, type RecentPage, RoleProvider, SharedProvider, SocketContext, SocketProvider, UserProvider, recentPagesAtom, useCommonContext, useCompanyContext, useCurrentUserContext, useNotificationContext, useRoleContext, useSharedContext, useSocketContext, useUserContext };
|
package/dist/contexts/index.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import React__default, { ReactNode, ReactElement } from 'react';
|
|
3
|
-
import { J as JsonApiHydratedDataInterface } from '../
|
|
4
|
-
import { C as CompanyInterface, R as RoleInterface, U as UserInterface } from '../user.interface-KnIT9pVY.js';
|
|
5
|
-
import { N as NotificationInterface } from '../notification.interface-DlZLnAfg.js';
|
|
6
|
-
import { M as ModuleWithPermissions, a as Action } from '../types-t2PyXhDu.js';
|
|
3
|
+
import { J as JsonApiHydratedDataInterface, e as CompanyInterface, N as NotificationInterface, i as RoleInterface, U as UserInterface, M as ModuleWithPermissions, b as Action } from '../notification.interface-BdcwkuQE.js';
|
|
7
4
|
import { B as BreadcrumbItemData } from '../breadcrumb.item.data.interface-CgB4_1EE.js';
|
|
8
|
-
import { u as useSocket } from '../useSocket-
|
|
5
|
+
import { u as useSocket } from '../useSocket-8vwK_R_c.js';
|
|
6
|
+
import * as jotai from 'jotai';
|
|
7
|
+
import * as jotai_utils from 'jotai/utils';
|
|
9
8
|
import 'lucide-react';
|
|
10
9
|
|
|
11
10
|
interface CompanyContextType {
|
|
@@ -142,4 +141,12 @@ interface SocketProviderProps {
|
|
|
142
141
|
declare const SocketProvider: React__default.FC<SocketProviderProps>;
|
|
143
142
|
declare const useSocketContext: () => SocketContextProps;
|
|
144
143
|
|
|
145
|
-
|
|
144
|
+
interface RecentPage {
|
|
145
|
+
url: string;
|
|
146
|
+
title: string;
|
|
147
|
+
moduleType: string;
|
|
148
|
+
timestamp: number;
|
|
149
|
+
}
|
|
150
|
+
declare const recentPagesAtom: jotai.WritableAtom<RecentPage[], [typeof jotai_utils.RESET | RecentPage[] | ((prev: RecentPage[]) => typeof jotai_utils.RESET | RecentPage[])], void>;
|
|
151
|
+
|
|
152
|
+
export { CommonProvider, CompanyProvider, type CurrentUserContextType, CurrentUserProvider, NotificationContextProvider, type RecentPage, RoleProvider, SharedProvider, SocketContext, SocketProvider, UserProvider, recentPagesAtom, useCommonContext, useCompanyContext, useCurrentUserContext, useNotificationContext, useRoleContext, useSharedContext, useSocketContext, useUserContext };
|
package/dist/contexts/index.js
CHANGED
|
@@ -17,18 +17,16 @@
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
|
|
21
|
+
var _chunkSVX7E6RRjs = require('../chunk-SVX7E6RR.js');
|
|
22
|
+
require('../chunk-AGWQ75PQ.js');
|
|
23
|
+
require('../chunk-LOSPCUCF.js');
|
|
24
|
+
require('../chunk-ZUEEIQHW.js');
|
|
25
|
+
require('../chunk-CSM6AIAP.js');
|
|
26
|
+
require('../chunk-2Z56AS2S.js');
|
|
21
27
|
require('../chunk-IBS6NI7D.js');
|
|
22
|
-
require('../chunk-5IET37O4.js');
|
|
23
|
-
require('../chunk-DEYKTLA3.js');
|
|
24
|
-
require('../chunk-LXKSUWAV.js');
|
|
25
|
-
require('../chunk-AYHKQWHH.js');
|
|
26
|
-
require('../chunk-PMXG5WBC.js');
|
|
27
|
-
require('../chunk-3UELCPIN.js');
|
|
28
|
-
require('../chunk-3FBCC4G3.js');
|
|
29
|
-
require('../chunk-Q4FXESVT.js');
|
|
30
28
|
require('../chunk-AGAJMJ4T.js');
|
|
31
|
-
require('../chunk-
|
|
29
|
+
require('../chunk-LXKSUWAV.js');
|
|
32
30
|
require('../chunk-7QVYU63E.js');
|
|
33
31
|
|
|
34
32
|
|
|
@@ -48,5 +46,6 @@ require('../chunk-7QVYU63E.js');
|
|
|
48
46
|
|
|
49
47
|
|
|
50
48
|
|
|
51
|
-
|
|
49
|
+
|
|
50
|
+
exports.CommonProvider = _chunkSVX7E6RRjs.CommonProvider; exports.CompanyProvider = _chunkSVX7E6RRjs.CompanyProvider; exports.CurrentUserProvider = _chunkSVX7E6RRjs.CurrentUserProvider; exports.NotificationContextProvider = _chunkSVX7E6RRjs.NotificationContextProvider; exports.RoleProvider = _chunkSVX7E6RRjs.RoleProvider; exports.SharedProvider = _chunkSVX7E6RRjs.SharedProvider; exports.SocketContext = _chunkSVX7E6RRjs.SocketContext; exports.SocketProvider = _chunkSVX7E6RRjs.SocketProvider; exports.UserProvider = _chunkSVX7E6RRjs.UserProvider; exports.recentPagesAtom = _chunkSVX7E6RRjs.recentPagesAtom; exports.useCommonContext = _chunkSVX7E6RRjs.useCommonContext; exports.useCompanyContext = _chunkSVX7E6RRjs.useCompanyContext; exports.useCurrentUserContext = _chunkSVX7E6RRjs.useCurrentUserContext; exports.useNotificationContext = _chunkSVX7E6RRjs.useNotificationContext; exports.useRoleContext = _chunkSVX7E6RRjs.useRoleContext; exports.useSharedContext = _chunkSVX7E6RRjs.useSharedContext; exports.useSocketContext = _chunkSVX7E6RRjs.useSocketContext; exports.useUserContext = _chunkSVX7E6RRjs.useUserContext;
|
|
52
51
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/contexts/index.js"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,uDAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/contexts/index.js"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,uDAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,imCAAC","file":"/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/contexts/index.js"}
|
package/dist/contexts/index.mjs
CHANGED
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
SocketContext,
|
|
10
10
|
SocketProvider,
|
|
11
11
|
UserProvider,
|
|
12
|
+
recentPagesAtom,
|
|
12
13
|
useCommonContext,
|
|
13
14
|
useCompanyContext,
|
|
14
15
|
useCurrentUserContext,
|
|
@@ -17,18 +18,15 @@ import {
|
|
|
17
18
|
useSharedContext,
|
|
18
19
|
useSocketContext,
|
|
19
20
|
useUserContext
|
|
20
|
-
} from "../chunk-
|
|
21
|
+
} from "../chunk-ZQTFZKLJ.mjs";
|
|
22
|
+
import "../chunk-IGOWVLJH.mjs";
|
|
23
|
+
import "../chunk-37NJZ2VD.mjs";
|
|
24
|
+
import "../chunk-F4Y3GZG4.mjs";
|
|
25
|
+
import "../chunk-K4W5QXL5.mjs";
|
|
26
|
+
import "../chunk-KFL5ZFM4.mjs";
|
|
21
27
|
import "../chunk-C7C7VY4F.mjs";
|
|
22
|
-
import "../chunk-P2F54I7Q.mjs";
|
|
23
|
-
import "../chunk-JGFWIT2E.mjs";
|
|
24
|
-
import "../chunk-AUXK7QSA.mjs";
|
|
25
|
-
import "../chunk-SM63SZCP.mjs";
|
|
26
|
-
import "../chunk-IKBA4AHN.mjs";
|
|
27
|
-
import "../chunk-SZZYEG3P.mjs";
|
|
28
|
-
import "../chunk-Q2N6SQYW.mjs";
|
|
29
|
-
import "../chunk-FMBQZAIP.mjs";
|
|
30
28
|
import "../chunk-RBIVEH2K.mjs";
|
|
31
|
-
import "../chunk-
|
|
29
|
+
import "../chunk-AUXK7QSA.mjs";
|
|
32
30
|
import "../chunk-PAWJFY3S.mjs";
|
|
33
31
|
export {
|
|
34
32
|
CommonProvider,
|
|
@@ -40,6 +38,7 @@ export {
|
|
|
40
38
|
SocketContext,
|
|
41
39
|
SocketProvider,
|
|
42
40
|
UserProvider,
|
|
41
|
+
recentPagesAtom,
|
|
43
42
|
useCommonContext,
|
|
44
43
|
useCompanyContext,
|
|
45
44
|
useCurrentUserContext,
|