@carlonicora/nextjs-jsonapi 1.5.0 → 1.7.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-DMwITHYP.d.mts} +11 -2
- package/dist/{ApiResponseInterface-BHN5D9r5.d.mts → ApiResponseInterface-DWgIAXI-.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-IJASTIUZ.js} +16 -23
- package/dist/BlockNoteEditor-IJASTIUZ.js.map +1 -0
- package/dist/{BlockNoteEditor-AIEEQM6A.mjs → BlockNoteEditor-M6TUP3NT.mjs} +8 -15
- package/dist/BlockNoteEditor-M6TUP3NT.mjs.map +1 -0
- package/dist/JsonApiRequest-2OM5NDAW.js +24 -0
- package/dist/JsonApiRequest-2OM5NDAW.js.map +1 -0
- package/dist/{JsonApiRequest-6UR7DIAR.mjs → JsonApiRequest-SYZ6FGCA.mjs} +2 -3
- package/dist/{chunk-2K3Q24UF.js → chunk-3ZPK4QOB.js} +24 -14
- package/dist/chunk-3ZPK4QOB.js.map +1 -0
- package/dist/{chunk-VET55IZO.js → chunk-4L7OWJ2P.js} +10290 -7537
- package/dist/chunk-4L7OWJ2P.js.map +1 -0
- package/dist/chunk-4U5CJA44.mjs +3435 -0
- package/dist/chunk-4U5CJA44.mjs.map +1 -0
- package/dist/chunk-AGWQ75PQ.js +142 -0
- package/dist/chunk-AGWQ75PQ.js.map +1 -0
- package/dist/{chunk-PMXG5WBC.js → chunk-CKS6SVUK.js} +160 -24
- package/dist/chunk-CKS6SVUK.js.map +1 -0
- 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-HR4H2FP7.mjs → chunk-KJ4ETLJB.mjs} +24 -14
- package/dist/chunk-KJ4ETLJB.mjs.map +1 -0
- package/dist/{chunk-IKBA4AHN.mjs → chunk-SAL7XW2G.mjs} +143 -7
- package/dist/chunk-SAL7XW2G.mjs.map +1 -0
- package/dist/chunk-TW4QRJ7D.mjs +12085 -0
- package/dist/chunk-TW4QRJ7D.mjs.map +1 -0
- package/dist/chunk-U4NADAHN.js +3435 -0
- package/dist/chunk-U4NADAHN.js.map +1 -0
- package/dist/{chunk-EFJEWLRL.js → chunk-YUO55Q5A.js} +1 -1
- package/dist/chunk-YUO55Q5A.js.map +1 -0
- package/dist/client/index.d.mts +161 -11
- package/dist/client/index.d.ts +161 -11
- package/dist/client/index.js +71 -11
- package/dist/client/index.js.map +1 -1
- package/dist/client/index.mjs +70 -10
- package/dist/components/index.d.mts +763 -11
- package/dist/components/index.d.ts +763 -11
- package/dist/components/index.js +462 -11
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +463 -12
- package/dist/config-BdCV25CE.d.mts +69 -0
- package/dist/config-C9dt1QiR.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-B6qP_ABq.d.mts} +2 -3
- package/dist/{content.interface-FpLfsaRm.d.mts → content.interface-DHAFLasV.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 +7 -11
- package/dist/contexts/index.js.map +1 -1
- package/dist/contexts/index.mjs +6 -10
- package/dist/core/index.d.mts +575 -8
- package/dist/core/index.d.ts +575 -8
- package/dist/core/index.js +131 -3
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.mjs +132 -4
- package/dist/index.d.mts +95 -71
- package/dist/index.d.ts +95 -71
- package/dist/index.js +113 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +135 -29
- package/dist/notification.interface-agcMYCkg.d.mts +228 -0
- package/dist/notification.interface-agcMYCkg.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/s3.service-DYnmymEd.d.mts +350 -0
- package/dist/s3.service-DyXjKTqr.d.ts +350 -0
- package/dist/server/index.d.mts +69 -4
- package/dist/server/index.d.ts +69 -4
- package/dist/server/index.js +211 -5
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +211 -5
- 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-L-An7_Mr.d.mts → useSocket-91s8M4Xd.d.mts} +1 -1
- package/dist/{useSocket-BV6yMdWS.d.ts → useSocket-DSR7vaXj.d.ts} +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 +35 -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/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/content/components/lists/ContentsListById.tsx +2 -1
- package/src/features/content/components/lists/RelevantContentsList.tsx +2 -1
- package/src/features/notification/components/lists/NotificationsList.tsx +2 -1
- package/src/features/notification/contexts/NotificationContext.tsx +2 -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/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/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/AbstractService-BsY6W3Ej.d.mts +0 -109
- package/dist/AbstractService-wLid8dB0.d.ts +0 -109
- 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/JsonApiRequest-UJ7FGIVI.js.map +0 -1
- 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-32HM6MDD.js +0 -98
- package/dist/chunk-32HM6MDD.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-AGAJMJ4T.js +0 -147
- package/dist/chunk-AGAJMJ4T.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-HAG77QBV.mjs +0 -98
- package/dist/chunk-HAG77QBV.mjs.map +0 -1
- package/dist/chunk-HR4H2FP7.mjs.map +0 -1
- package/dist/chunk-IKBA4AHN.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-PMXG5WBC.js.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-RBIVEH2K.mjs +0 -147
- package/dist/chunk-RBIVEH2K.mjs.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-SYZ6FGCA.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
package/dist/client/index.d.mts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
|
-
import { A as ApiDataInterface, J as JsonApiHydratedDataInterface } from '../
|
|
5
|
-
import { A as
|
|
6
|
-
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
import { C as ContentFields, R as RoleFields, U as UserFields } from '../content.fields-
|
|
11
|
-
|
|
4
|
+
import { A as ApiDataInterface, a as ApiRequestDataTypeInterface, J as JsonApiHydratedDataInterface, M as ModuleWithPermissions, d as PageUrl, o as RoleInterface, U as UserInterface } from '../notification.interface-agcMYCkg.mjs';
|
|
5
|
+
import { a as ApiResponseInterface, A as ApiData } from '../ApiResponseInterface-DMwITHYP.mjs';
|
|
6
|
+
export { I as I18nConfig, k as I18nRouter, L as LinkComponent, U as UseDateFnsLocaleHook, l as UseLocaleHook, m as UseRouterHook, n as UseTranslationsHook, e as configureClientConfig, d as configureI18n, c as configureJsonApi, g as getApiUrl, a as getAppUrl, f as getI18nLink, b as getTrackablePages, u as useI18nDateFnsLocale, h as useI18nLocale, i as useI18nRouter, j as useI18nTranslations } from '../config-BdCV25CE.mjs';
|
|
7
|
+
import { ColumnDef } from '@tanstack/react-table';
|
|
8
|
+
import { D as DataListRetriever } from '../useDataListRetriever-futhx3OP.mjs';
|
|
9
|
+
export { u as useDataListRetriever } from '../useDataListRetriever-futhx3OP.mjs';
|
|
10
|
+
import { a as D3Node, D as D3Link, C as ContentFields, R as RoleFields, U as UserFields } from '../content.fields-Ck5lkQ5d.mjs';
|
|
11
|
+
export { u as useSocket } from '../useSocket-91s8M4Xd.mjs';
|
|
12
|
+
import { a as ContentInterface } from '../content.interface-B6qP_ABq.mjs';
|
|
12
13
|
import 'lucide-react';
|
|
13
|
-
import '
|
|
14
|
-
import '../useDataListRetriever-futhx3OP.mjs';
|
|
14
|
+
import 'd3';
|
|
15
15
|
|
|
16
16
|
type CacheProfile = "seconds" | "minutes" | "hours" | "days" | "weeks" | "max" | "default";
|
|
17
17
|
interface JsonApiConfig {
|
|
@@ -256,6 +256,156 @@ declare function directFetch(params: DirectFetchParams): Promise<ApiData>;
|
|
|
256
256
|
*/
|
|
257
257
|
declare function getClientToken(): Promise<string | undefined>;
|
|
258
258
|
|
|
259
|
+
/**
|
|
260
|
+
* Configure the JSON:API client for browser contexts.
|
|
261
|
+
* Call this in your client-side initialization or use JsonApiProvider.
|
|
262
|
+
*/
|
|
263
|
+
declare function configureClientJsonApi(config: {
|
|
264
|
+
apiUrl: string;
|
|
265
|
+
appUrl?: string;
|
|
266
|
+
trackablePages?: ModuleWithPermissions[];
|
|
267
|
+
bootstrapper?: () => void;
|
|
268
|
+
additionalHeaders?: Record<string, string>;
|
|
269
|
+
}): void;
|
|
270
|
+
declare function getClientApiUrl(): string;
|
|
271
|
+
declare function getClientAppUrl(): string;
|
|
272
|
+
declare function getClientTrackablePages(): ModuleWithPermissions[];
|
|
273
|
+
declare function ClientJsonApiGet(params: {
|
|
274
|
+
classKey: ApiRequestDataTypeInterface;
|
|
275
|
+
endpoint: string;
|
|
276
|
+
companyId?: string;
|
|
277
|
+
language: string;
|
|
278
|
+
}): Promise<ApiResponseInterface>;
|
|
279
|
+
declare function ClientJsonApiPost(params: {
|
|
280
|
+
classKey: ApiRequestDataTypeInterface;
|
|
281
|
+
endpoint: string;
|
|
282
|
+
companyId?: string;
|
|
283
|
+
body?: any;
|
|
284
|
+
overridesJsonApiCreation?: boolean;
|
|
285
|
+
files?: {
|
|
286
|
+
[key: string]: File | Blob;
|
|
287
|
+
} | File | Blob;
|
|
288
|
+
language: string;
|
|
289
|
+
responseType?: ApiRequestDataTypeInterface;
|
|
290
|
+
}): Promise<ApiResponseInterface>;
|
|
291
|
+
declare function ClientJsonApiPut(params: {
|
|
292
|
+
classKey: ApiRequestDataTypeInterface;
|
|
293
|
+
endpoint: string;
|
|
294
|
+
companyId?: string;
|
|
295
|
+
body?: any;
|
|
296
|
+
files?: {
|
|
297
|
+
[key: string]: File | Blob;
|
|
298
|
+
} | File | Blob;
|
|
299
|
+
language: string;
|
|
300
|
+
responseType?: ApiRequestDataTypeInterface;
|
|
301
|
+
}): Promise<ApiResponseInterface>;
|
|
302
|
+
declare function ClientJsonApiPatch(params: {
|
|
303
|
+
classKey: ApiRequestDataTypeInterface;
|
|
304
|
+
endpoint: string;
|
|
305
|
+
companyId?: string;
|
|
306
|
+
body?: any;
|
|
307
|
+
files?: {
|
|
308
|
+
[key: string]: File | Blob;
|
|
309
|
+
} | File | Blob;
|
|
310
|
+
overridesJsonApiCreation?: boolean;
|
|
311
|
+
responseType?: ApiRequestDataTypeInterface;
|
|
312
|
+
language: string;
|
|
313
|
+
}): Promise<ApiResponseInterface>;
|
|
314
|
+
declare function ClientJsonApiDelete(params: {
|
|
315
|
+
classKey: ApiRequestDataTypeInterface;
|
|
316
|
+
endpoint: string;
|
|
317
|
+
companyId?: string;
|
|
318
|
+
language: string;
|
|
319
|
+
responseType?: ApiRequestDataTypeInterface;
|
|
320
|
+
}): Promise<ApiResponseInterface>;
|
|
321
|
+
|
|
322
|
+
type TableContent<T> = {
|
|
323
|
+
jsonApiData: T;
|
|
324
|
+
[key: string]: any;
|
|
325
|
+
};
|
|
326
|
+
interface TableStructureGeneratorInterface<T, U> {
|
|
327
|
+
generateTableStructure: (params: {
|
|
328
|
+
t: (key: string) => string;
|
|
329
|
+
generateUrl: (params: {
|
|
330
|
+
page: string | PageUrl | string;
|
|
331
|
+
id?: string;
|
|
332
|
+
}) => string;
|
|
333
|
+
data: T[];
|
|
334
|
+
fields: Array<U>;
|
|
335
|
+
checkedIds?: string[];
|
|
336
|
+
toggleId?: (id: string) => void;
|
|
337
|
+
}) => {
|
|
338
|
+
data: TableContent<T>[];
|
|
339
|
+
columns: ColumnDef<TableContent<T>>[];
|
|
340
|
+
};
|
|
341
|
+
}
|
|
342
|
+
type UseTableStructureHookParams<T, U> = {
|
|
343
|
+
data: T[];
|
|
344
|
+
fields: Array<U>;
|
|
345
|
+
checkedIds?: string[];
|
|
346
|
+
toggleId?: (id: string) => void;
|
|
347
|
+
dataRetriever?: DataListRetriever<T>;
|
|
348
|
+
context?: Record<string, any>;
|
|
349
|
+
};
|
|
350
|
+
type UseTableStructureHookReturn<T> = {
|
|
351
|
+
data: TableContent<T>[];
|
|
352
|
+
columns: ColumnDef<TableContent<T>>[];
|
|
353
|
+
};
|
|
354
|
+
type UseTableStructureHook<T, U> = (params: UseTableStructureHookParams<T, U>) => UseTableStructureHookReturn<T>;
|
|
355
|
+
|
|
356
|
+
declare class TableGeneratorRegistry {
|
|
357
|
+
private static instance;
|
|
358
|
+
private registry;
|
|
359
|
+
private constructor();
|
|
360
|
+
static getInstance(): TableGeneratorRegistry;
|
|
361
|
+
register<T, U>(type: string, hook: UseTableStructureHook<T, U>): void;
|
|
362
|
+
get<T, U>(type: string, params: UseTableStructureHookParams<T, U>): UseTableStructureHookReturn<T>;
|
|
363
|
+
isRegistered(type: string): boolean;
|
|
364
|
+
getRegisteredTypes(): string[];
|
|
365
|
+
unregister(type: string): boolean;
|
|
366
|
+
clear(): void;
|
|
367
|
+
}
|
|
368
|
+
declare const tableGeneratorRegistry: TableGeneratorRegistry;
|
|
369
|
+
|
|
370
|
+
declare function useUrlRewriter(): (params: {
|
|
371
|
+
page: ModuleWithPermissions | string;
|
|
372
|
+
id?: string;
|
|
373
|
+
childPage?: string;
|
|
374
|
+
}) => void;
|
|
375
|
+
|
|
376
|
+
declare function useDebounce<T extends (...args: any[]) => any>(callback: T, delay: number): T & {
|
|
377
|
+
cancel: () => void;
|
|
378
|
+
};
|
|
379
|
+
|
|
380
|
+
declare function usePageUrlGenerator(): (params: {
|
|
381
|
+
page?: PageUrl | string;
|
|
382
|
+
id?: string;
|
|
383
|
+
childPage?: PageUrl | string;
|
|
384
|
+
childId?: string;
|
|
385
|
+
additionalParameters?: {
|
|
386
|
+
[key: string]: string | string[] | undefined;
|
|
387
|
+
};
|
|
388
|
+
language?: string;
|
|
389
|
+
}) => string;
|
|
390
|
+
|
|
391
|
+
declare function registerTableGenerator<T, U>(type: string | ModuleWithPermissions, hook: UseTableStructureHook<T, U>): void;
|
|
392
|
+
declare function useTableGenerator<T, U>(type: ModuleWithPermissions, params: UseTableStructureHookParams<T, U>): UseTableStructureHookReturn<T>;
|
|
393
|
+
|
|
394
|
+
/**
|
|
395
|
+
* Custom hook for D3 graph visualization with larger circles and more interactive features
|
|
396
|
+
*/
|
|
397
|
+
declare function useCustomD3Graph(nodes: D3Node[], links: D3Link[], onNodeClick: (nodeId: string) => void, visibleNodeIds?: Set<string>, loadingNodeIds?: Set<string>, containerKey?: string | number): {
|
|
398
|
+
svgRef: React.RefObject<SVGSVGElement | null>;
|
|
399
|
+
zoomIn: () => void;
|
|
400
|
+
zoomOut: () => void;
|
|
401
|
+
zoomToNode: (nodeId: string, childIds?: string[]) => void;
|
|
402
|
+
zoomToFitAll: () => void;
|
|
403
|
+
};
|
|
404
|
+
|
|
405
|
+
declare function useNotificationSync(): void;
|
|
406
|
+
|
|
407
|
+
declare function usePageTracker(): void;
|
|
408
|
+
|
|
259
409
|
declare const useContentTableStructure: <U extends string = ContentFields>(params: Parameters<UseTableStructureHook<ContentInterface, U>>[0]) => ReturnType<UseTableStructureHook<ContentInterface, U>>;
|
|
260
410
|
|
|
261
411
|
declare const useRoleTableStructure: UseTableStructureHook<RoleInterface, RoleFields>;
|
|
@@ -272,4 +422,4 @@ declare const useUserSearch: () => {
|
|
|
272
422
|
|
|
273
423
|
declare const useUserTableStructure: UseTableStructureHook<UserInterface, UserFields>;
|
|
274
424
|
|
|
275
|
-
export { type CacheProfile, type DirectFetchParams, type JsonApiConfig, JsonApiContext, JsonApiProvider, type JsonApiProviderProps, type MutationMethod, type MutationParams, type UseJsonApiGetOptions, type UseJsonApiGetResult, type UseJsonApiMutationResult, directFetch, getClientToken, useContentTableStructure, useJsonApiConfig, useJsonApiConfigOptional, useJsonApiGet, useJsonApiMutation, useRehydration, useRehydrationList, useRoleTableStructure, useUserSearch, useUserTableStructure };
|
|
425
|
+
export { type CacheProfile, ClientJsonApiDelete, ClientJsonApiGet, ClientJsonApiPatch, ClientJsonApiPost, ClientJsonApiPut, DataListRetriever, type DirectFetchParams, type JsonApiConfig, JsonApiContext, JsonApiProvider, type JsonApiProviderProps, type MutationMethod, type MutationParams, type TableContent, TableGeneratorRegistry, type TableStructureGeneratorInterface, type UseJsonApiGetOptions, type UseJsonApiGetResult, type UseJsonApiMutationResult, type UseTableStructureHook, type UseTableStructureHookParams, type UseTableStructureHookReturn, configureClientJsonApi, directFetch, getClientApiUrl, getClientAppUrl, getClientToken, getClientTrackablePages, registerTableGenerator, tableGeneratorRegistry, useContentTableStructure, useCustomD3Graph, useDebounce, useJsonApiConfig, useJsonApiConfigOptional, useJsonApiGet, useJsonApiMutation, useNotificationSync, usePageTracker, usePageUrlGenerator, useRehydration, useRehydrationList, useRoleTableStructure, useTableGenerator, useUrlRewriter, useUserSearch, useUserTableStructure };
|
package/dist/client/index.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
|
-
import { A as ApiDataInterface, J as JsonApiHydratedDataInterface } from '../
|
|
5
|
-
import { A as
|
|
6
|
-
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
import { C as ContentFields, R as RoleFields, U as UserFields } from '../content.fields-
|
|
11
|
-
|
|
4
|
+
import { A as ApiDataInterface, a as ApiRequestDataTypeInterface, J as JsonApiHydratedDataInterface, M as ModuleWithPermissions, d as PageUrl, o as RoleInterface, U as UserInterface } from '../notification.interface-agcMYCkg.js';
|
|
5
|
+
import { a as ApiResponseInterface, A as ApiData } from '../ApiResponseInterface-DWgIAXI-.js';
|
|
6
|
+
export { I as I18nConfig, k as I18nRouter, L as LinkComponent, U as UseDateFnsLocaleHook, l as UseLocaleHook, m as UseRouterHook, n as UseTranslationsHook, e as configureClientConfig, d as configureI18n, c as configureJsonApi, g as getApiUrl, a as getAppUrl, f as getI18nLink, b as getTrackablePages, u as useI18nDateFnsLocale, h as useI18nLocale, i as useI18nRouter, j as useI18nTranslations } from '../config-C9dt1QiR.js';
|
|
7
|
+
import { ColumnDef } from '@tanstack/react-table';
|
|
8
|
+
import { D as DataListRetriever } from '../useDataListRetriever-futhx3OP.js';
|
|
9
|
+
export { u as useDataListRetriever } from '../useDataListRetriever-futhx3OP.js';
|
|
10
|
+
import { a as D3Node, D as D3Link, C as ContentFields, R as RoleFields, U as UserFields } from '../content.fields-Ck5lkQ5d.js';
|
|
11
|
+
export { u as useSocket } from '../useSocket-DSR7vaXj.js';
|
|
12
|
+
import { a as ContentInterface } from '../content.interface-DHAFLasV.js';
|
|
12
13
|
import 'lucide-react';
|
|
13
|
-
import '
|
|
14
|
-
import '../useDataListRetriever-futhx3OP.js';
|
|
14
|
+
import 'd3';
|
|
15
15
|
|
|
16
16
|
type CacheProfile = "seconds" | "minutes" | "hours" | "days" | "weeks" | "max" | "default";
|
|
17
17
|
interface JsonApiConfig {
|
|
@@ -256,6 +256,156 @@ declare function directFetch(params: DirectFetchParams): Promise<ApiData>;
|
|
|
256
256
|
*/
|
|
257
257
|
declare function getClientToken(): Promise<string | undefined>;
|
|
258
258
|
|
|
259
|
+
/**
|
|
260
|
+
* Configure the JSON:API client for browser contexts.
|
|
261
|
+
* Call this in your client-side initialization or use JsonApiProvider.
|
|
262
|
+
*/
|
|
263
|
+
declare function configureClientJsonApi(config: {
|
|
264
|
+
apiUrl: string;
|
|
265
|
+
appUrl?: string;
|
|
266
|
+
trackablePages?: ModuleWithPermissions[];
|
|
267
|
+
bootstrapper?: () => void;
|
|
268
|
+
additionalHeaders?: Record<string, string>;
|
|
269
|
+
}): void;
|
|
270
|
+
declare function getClientApiUrl(): string;
|
|
271
|
+
declare function getClientAppUrl(): string;
|
|
272
|
+
declare function getClientTrackablePages(): ModuleWithPermissions[];
|
|
273
|
+
declare function ClientJsonApiGet(params: {
|
|
274
|
+
classKey: ApiRequestDataTypeInterface;
|
|
275
|
+
endpoint: string;
|
|
276
|
+
companyId?: string;
|
|
277
|
+
language: string;
|
|
278
|
+
}): Promise<ApiResponseInterface>;
|
|
279
|
+
declare function ClientJsonApiPost(params: {
|
|
280
|
+
classKey: ApiRequestDataTypeInterface;
|
|
281
|
+
endpoint: string;
|
|
282
|
+
companyId?: string;
|
|
283
|
+
body?: any;
|
|
284
|
+
overridesJsonApiCreation?: boolean;
|
|
285
|
+
files?: {
|
|
286
|
+
[key: string]: File | Blob;
|
|
287
|
+
} | File | Blob;
|
|
288
|
+
language: string;
|
|
289
|
+
responseType?: ApiRequestDataTypeInterface;
|
|
290
|
+
}): Promise<ApiResponseInterface>;
|
|
291
|
+
declare function ClientJsonApiPut(params: {
|
|
292
|
+
classKey: ApiRequestDataTypeInterface;
|
|
293
|
+
endpoint: string;
|
|
294
|
+
companyId?: string;
|
|
295
|
+
body?: any;
|
|
296
|
+
files?: {
|
|
297
|
+
[key: string]: File | Blob;
|
|
298
|
+
} | File | Blob;
|
|
299
|
+
language: string;
|
|
300
|
+
responseType?: ApiRequestDataTypeInterface;
|
|
301
|
+
}): Promise<ApiResponseInterface>;
|
|
302
|
+
declare function ClientJsonApiPatch(params: {
|
|
303
|
+
classKey: ApiRequestDataTypeInterface;
|
|
304
|
+
endpoint: string;
|
|
305
|
+
companyId?: string;
|
|
306
|
+
body?: any;
|
|
307
|
+
files?: {
|
|
308
|
+
[key: string]: File | Blob;
|
|
309
|
+
} | File | Blob;
|
|
310
|
+
overridesJsonApiCreation?: boolean;
|
|
311
|
+
responseType?: ApiRequestDataTypeInterface;
|
|
312
|
+
language: string;
|
|
313
|
+
}): Promise<ApiResponseInterface>;
|
|
314
|
+
declare function ClientJsonApiDelete(params: {
|
|
315
|
+
classKey: ApiRequestDataTypeInterface;
|
|
316
|
+
endpoint: string;
|
|
317
|
+
companyId?: string;
|
|
318
|
+
language: string;
|
|
319
|
+
responseType?: ApiRequestDataTypeInterface;
|
|
320
|
+
}): Promise<ApiResponseInterface>;
|
|
321
|
+
|
|
322
|
+
type TableContent<T> = {
|
|
323
|
+
jsonApiData: T;
|
|
324
|
+
[key: string]: any;
|
|
325
|
+
};
|
|
326
|
+
interface TableStructureGeneratorInterface<T, U> {
|
|
327
|
+
generateTableStructure: (params: {
|
|
328
|
+
t: (key: string) => string;
|
|
329
|
+
generateUrl: (params: {
|
|
330
|
+
page: string | PageUrl | string;
|
|
331
|
+
id?: string;
|
|
332
|
+
}) => string;
|
|
333
|
+
data: T[];
|
|
334
|
+
fields: Array<U>;
|
|
335
|
+
checkedIds?: string[];
|
|
336
|
+
toggleId?: (id: string) => void;
|
|
337
|
+
}) => {
|
|
338
|
+
data: TableContent<T>[];
|
|
339
|
+
columns: ColumnDef<TableContent<T>>[];
|
|
340
|
+
};
|
|
341
|
+
}
|
|
342
|
+
type UseTableStructureHookParams<T, U> = {
|
|
343
|
+
data: T[];
|
|
344
|
+
fields: Array<U>;
|
|
345
|
+
checkedIds?: string[];
|
|
346
|
+
toggleId?: (id: string) => void;
|
|
347
|
+
dataRetriever?: DataListRetriever<T>;
|
|
348
|
+
context?: Record<string, any>;
|
|
349
|
+
};
|
|
350
|
+
type UseTableStructureHookReturn<T> = {
|
|
351
|
+
data: TableContent<T>[];
|
|
352
|
+
columns: ColumnDef<TableContent<T>>[];
|
|
353
|
+
};
|
|
354
|
+
type UseTableStructureHook<T, U> = (params: UseTableStructureHookParams<T, U>) => UseTableStructureHookReturn<T>;
|
|
355
|
+
|
|
356
|
+
declare class TableGeneratorRegistry {
|
|
357
|
+
private static instance;
|
|
358
|
+
private registry;
|
|
359
|
+
private constructor();
|
|
360
|
+
static getInstance(): TableGeneratorRegistry;
|
|
361
|
+
register<T, U>(type: string, hook: UseTableStructureHook<T, U>): void;
|
|
362
|
+
get<T, U>(type: string, params: UseTableStructureHookParams<T, U>): UseTableStructureHookReturn<T>;
|
|
363
|
+
isRegistered(type: string): boolean;
|
|
364
|
+
getRegisteredTypes(): string[];
|
|
365
|
+
unregister(type: string): boolean;
|
|
366
|
+
clear(): void;
|
|
367
|
+
}
|
|
368
|
+
declare const tableGeneratorRegistry: TableGeneratorRegistry;
|
|
369
|
+
|
|
370
|
+
declare function useUrlRewriter(): (params: {
|
|
371
|
+
page: ModuleWithPermissions | string;
|
|
372
|
+
id?: string;
|
|
373
|
+
childPage?: string;
|
|
374
|
+
}) => void;
|
|
375
|
+
|
|
376
|
+
declare function useDebounce<T extends (...args: any[]) => any>(callback: T, delay: number): T & {
|
|
377
|
+
cancel: () => void;
|
|
378
|
+
};
|
|
379
|
+
|
|
380
|
+
declare function usePageUrlGenerator(): (params: {
|
|
381
|
+
page?: PageUrl | string;
|
|
382
|
+
id?: string;
|
|
383
|
+
childPage?: PageUrl | string;
|
|
384
|
+
childId?: string;
|
|
385
|
+
additionalParameters?: {
|
|
386
|
+
[key: string]: string | string[] | undefined;
|
|
387
|
+
};
|
|
388
|
+
language?: string;
|
|
389
|
+
}) => string;
|
|
390
|
+
|
|
391
|
+
declare function registerTableGenerator<T, U>(type: string | ModuleWithPermissions, hook: UseTableStructureHook<T, U>): void;
|
|
392
|
+
declare function useTableGenerator<T, U>(type: ModuleWithPermissions, params: UseTableStructureHookParams<T, U>): UseTableStructureHookReturn<T>;
|
|
393
|
+
|
|
394
|
+
/**
|
|
395
|
+
* Custom hook for D3 graph visualization with larger circles and more interactive features
|
|
396
|
+
*/
|
|
397
|
+
declare function useCustomD3Graph(nodes: D3Node[], links: D3Link[], onNodeClick: (nodeId: string) => void, visibleNodeIds?: Set<string>, loadingNodeIds?: Set<string>, containerKey?: string | number): {
|
|
398
|
+
svgRef: React.RefObject<SVGSVGElement | null>;
|
|
399
|
+
zoomIn: () => void;
|
|
400
|
+
zoomOut: () => void;
|
|
401
|
+
zoomToNode: (nodeId: string, childIds?: string[]) => void;
|
|
402
|
+
zoomToFitAll: () => void;
|
|
403
|
+
};
|
|
404
|
+
|
|
405
|
+
declare function useNotificationSync(): void;
|
|
406
|
+
|
|
407
|
+
declare function usePageTracker(): void;
|
|
408
|
+
|
|
259
409
|
declare const useContentTableStructure: <U extends string = ContentFields>(params: Parameters<UseTableStructureHook<ContentInterface, U>>[0]) => ReturnType<UseTableStructureHook<ContentInterface, U>>;
|
|
260
410
|
|
|
261
411
|
declare const useRoleTableStructure: UseTableStructureHook<RoleInterface, RoleFields>;
|
|
@@ -272,4 +422,4 @@ declare const useUserSearch: () => {
|
|
|
272
422
|
|
|
273
423
|
declare const useUserTableStructure: UseTableStructureHook<UserInterface, UserFields>;
|
|
274
424
|
|
|
275
|
-
export { type CacheProfile, type DirectFetchParams, type JsonApiConfig, JsonApiContext, JsonApiProvider, type JsonApiProviderProps, type MutationMethod, type MutationParams, type UseJsonApiGetOptions, type UseJsonApiGetResult, type UseJsonApiMutationResult, directFetch, getClientToken, useContentTableStructure, useJsonApiConfig, useJsonApiConfigOptional, useJsonApiGet, useJsonApiMutation, useRehydration, useRehydrationList, useRoleTableStructure, useUserSearch, useUserTableStructure };
|
|
425
|
+
export { type CacheProfile, ClientJsonApiDelete, ClientJsonApiGet, ClientJsonApiPatch, ClientJsonApiPost, ClientJsonApiPut, DataListRetriever, type DirectFetchParams, type JsonApiConfig, JsonApiContext, JsonApiProvider, type JsonApiProviderProps, type MutationMethod, type MutationParams, type TableContent, TableGeneratorRegistry, type TableStructureGeneratorInterface, type UseJsonApiGetOptions, type UseJsonApiGetResult, type UseJsonApiMutationResult, type UseTableStructureHook, type UseTableStructureHookParams, type UseTableStructureHookReturn, configureClientJsonApi, directFetch, getClientApiUrl, getClientAppUrl, getClientToken, getClientTrackablePages, registerTableGenerator, tableGeneratorRegistry, useContentTableStructure, useCustomD3Graph, useDebounce, useJsonApiConfig, useJsonApiConfigOptional, useJsonApiGet, useJsonApiMutation, useNotificationSync, usePageTracker, usePageUrlGenerator, useRehydration, useRehydrationList, useRoleTableStructure, useTableGenerator, useUrlRewriter, useUserSearch, useUserTableStructure };
|
package/dist/client/index.js
CHANGED
|
@@ -13,22 +13,50 @@
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
var _chunk4L7OWJ2Pjs = require('../chunk-4L7OWJ2P.js');
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
var _chunkAGWQ75PQjs = require('../chunk-AGWQ75PQ.js');
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
var _chunkU4NADAHNjs = require('../chunk-U4NADAHN.js');
|
|
17
53
|
|
|
18
54
|
|
|
19
55
|
var _chunkIBS6NI7Djs = require('../chunk-IBS6NI7D.js');
|
|
20
|
-
require('../chunk-
|
|
21
|
-
require('../chunk-DEYKTLA3.js');
|
|
56
|
+
require('../chunk-CKS6SVUK.js');
|
|
22
57
|
|
|
23
58
|
|
|
24
59
|
var _chunkLXKSUWAVjs = 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
|
-
require('../chunk-AGAJMJ4T.js');
|
|
31
|
-
require('../chunk-32HM6MDD.js');
|
|
32
60
|
require('../chunk-7QVYU63E.js');
|
|
33
61
|
|
|
34
62
|
|
|
@@ -45,5 +73,37 @@ require('../chunk-7QVYU63E.js');
|
|
|
45
73
|
|
|
46
74
|
|
|
47
75
|
|
|
48
|
-
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
exports.ClientJsonApiDelete = _chunkU4NADAHNjs.ClientJsonApiDelete; exports.ClientJsonApiGet = _chunkU4NADAHNjs.ClientJsonApiGet; exports.ClientJsonApiPatch = _chunkU4NADAHNjs.ClientJsonApiPatch; exports.ClientJsonApiPost = _chunkU4NADAHNjs.ClientJsonApiPost; exports.ClientJsonApiPut = _chunkU4NADAHNjs.ClientJsonApiPut; exports.JsonApiContext = _chunk4L7OWJ2Pjs.JsonApiContext; exports.JsonApiProvider = _chunk4L7OWJ2Pjs.JsonApiProvider; exports.TableGeneratorRegistry = _chunk4L7OWJ2Pjs.TableGeneratorRegistry; exports.configureClientConfig = _chunkAGWQ75PQjs.configureClientConfig; exports.configureClientJsonApi = _chunkU4NADAHNjs.configureClientJsonApi; exports.configureI18n = _chunkAGWQ75PQjs.configureI18n; exports.configureJsonApi = _chunkAGWQ75PQjs.configureJsonApi; exports.directFetch = _chunkIBS6NI7Djs.directFetch; exports.getApiUrl = _chunkAGWQ75PQjs.getApiUrl; exports.getAppUrl = _chunkAGWQ75PQjs.getAppUrl; exports.getClientApiUrl = _chunkU4NADAHNjs.getClientApiUrl; exports.getClientAppUrl = _chunkU4NADAHNjs.getClientAppUrl; exports.getClientToken = _chunkLXKSUWAVjs.getClientToken; exports.getClientTrackablePages = _chunkU4NADAHNjs.getClientTrackablePages; exports.getI18nLink = _chunkAGWQ75PQjs.getI18nLink; exports.getTrackablePages = _chunkAGWQ75PQjs.getTrackablePages; exports.registerTableGenerator = _chunk4L7OWJ2Pjs.registerTableGenerator; exports.tableGeneratorRegistry = _chunk4L7OWJ2Pjs.tableGeneratorRegistry; exports.useContentTableStructure = _chunk4L7OWJ2Pjs.useContentTableStructure; exports.useCustomD3Graph = _chunk4L7OWJ2Pjs.useCustomD3Graph; exports.useDataListRetriever = _chunk4L7OWJ2Pjs.useDataListRetriever; exports.useDebounce = _chunk4L7OWJ2Pjs.useDebounce; exports.useI18nDateFnsLocale = _chunkAGWQ75PQjs.useI18nDateFnsLocale; exports.useI18nLocale = _chunkAGWQ75PQjs.useI18nLocale; exports.useI18nRouter = _chunkAGWQ75PQjs.useI18nRouter; exports.useI18nTranslations = _chunkAGWQ75PQjs.useI18nTranslations; exports.useJsonApiConfig = _chunk4L7OWJ2Pjs.useJsonApiConfig; exports.useJsonApiConfigOptional = _chunk4L7OWJ2Pjs.useJsonApiConfigOptional; exports.useJsonApiGet = _chunk4L7OWJ2Pjs.useJsonApiGet; exports.useJsonApiMutation = _chunk4L7OWJ2Pjs.useJsonApiMutation; exports.useNotificationSync = _chunk4L7OWJ2Pjs.useNotificationSync; exports.usePageTracker = _chunk4L7OWJ2Pjs.usePageTracker; exports.usePageUrlGenerator = _chunk4L7OWJ2Pjs.usePageUrlGenerator; exports.useRehydration = _chunk4L7OWJ2Pjs.useRehydration; exports.useRehydrationList = _chunk4L7OWJ2Pjs.useRehydrationList; exports.useRoleTableStructure = _chunk4L7OWJ2Pjs.useRoleTableStructure; exports.useSocket = _chunk4L7OWJ2Pjs.useSocket; exports.useTableGenerator = _chunk4L7OWJ2Pjs.useTableGenerator; exports.useUrlRewriter = _chunk4L7OWJ2Pjs.useUrlRewriter; exports.useUserSearch = _chunk4L7OWJ2Pjs.useUserSearch; exports.useUserTableStructure = _chunk4L7OWJ2Pjs.useUserTableStructure;
|
|
49
109
|
//# sourceMappingURL=index.js.map
|
package/dist/client/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/client/index.js"],"names":[],"mappings":"AAAA,qFAAY;AACZ;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,uDAA6B;AAC7B;AACE;AACF,uDAA6B;AAC7B
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/client/index.js"],"names":[],"mappings":"AAAA,qFAAY;AACZ;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,uDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,uDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,uDAA6B;AAC7B;AACE;AACF,uDAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACF,uDAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,y1FAAC","file":"/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/client/index.js"}
|
package/dist/client/index.mjs
CHANGED
|
@@ -2,46 +2,106 @@
|
|
|
2
2
|
import {
|
|
3
3
|
JsonApiContext,
|
|
4
4
|
JsonApiProvider,
|
|
5
|
+
TableGeneratorRegistry,
|
|
6
|
+
registerTableGenerator,
|
|
7
|
+
tableGeneratorRegistry,
|
|
5
8
|
useContentTableStructure,
|
|
9
|
+
useCustomD3Graph,
|
|
10
|
+
useDataListRetriever,
|
|
11
|
+
useDebounce,
|
|
6
12
|
useJsonApiConfig,
|
|
7
13
|
useJsonApiConfigOptional,
|
|
8
14
|
useJsonApiGet,
|
|
9
15
|
useJsonApiMutation,
|
|
16
|
+
useNotificationSync,
|
|
17
|
+
usePageTracker,
|
|
18
|
+
usePageUrlGenerator,
|
|
10
19
|
useRehydration,
|
|
11
20
|
useRehydrationList,
|
|
12
21
|
useRoleTableStructure,
|
|
22
|
+
useSocket,
|
|
23
|
+
useTableGenerator,
|
|
24
|
+
useUrlRewriter,
|
|
13
25
|
useUserSearch,
|
|
14
26
|
useUserTableStructure
|
|
15
|
-
} from "../chunk-
|
|
27
|
+
} from "../chunk-TW4QRJ7D.mjs";
|
|
28
|
+
import {
|
|
29
|
+
configureClientConfig,
|
|
30
|
+
configureI18n,
|
|
31
|
+
configureJsonApi,
|
|
32
|
+
getApiUrl,
|
|
33
|
+
getAppUrl,
|
|
34
|
+
getI18nLink,
|
|
35
|
+
getTrackablePages,
|
|
36
|
+
useI18nDateFnsLocale,
|
|
37
|
+
useI18nLocale,
|
|
38
|
+
useI18nRouter,
|
|
39
|
+
useI18nTranslations
|
|
40
|
+
} from "../chunk-IGOWVLJH.mjs";
|
|
41
|
+
import {
|
|
42
|
+
ClientJsonApiDelete,
|
|
43
|
+
ClientJsonApiGet,
|
|
44
|
+
ClientJsonApiPatch,
|
|
45
|
+
ClientJsonApiPost,
|
|
46
|
+
ClientJsonApiPut,
|
|
47
|
+
configureClientJsonApi,
|
|
48
|
+
getClientApiUrl,
|
|
49
|
+
getClientAppUrl,
|
|
50
|
+
getClientTrackablePages
|
|
51
|
+
} from "../chunk-4U5CJA44.mjs";
|
|
16
52
|
import {
|
|
17
53
|
directFetch
|
|
18
54
|
} from "../chunk-C7C7VY4F.mjs";
|
|
19
|
-
import "../chunk-
|
|
20
|
-
import "../chunk-JGFWIT2E.mjs";
|
|
55
|
+
import "../chunk-SAL7XW2G.mjs";
|
|
21
56
|
import {
|
|
22
57
|
getClientToken
|
|
23
58
|
} from "../chunk-AUXK7QSA.mjs";
|
|
24
|
-
import "../chunk-SM63SZCP.mjs";
|
|
25
|
-
import "../chunk-IKBA4AHN.mjs";
|
|
26
|
-
import "../chunk-SZZYEG3P.mjs";
|
|
27
|
-
import "../chunk-Q2N6SQYW.mjs";
|
|
28
|
-
import "../chunk-FMBQZAIP.mjs";
|
|
29
|
-
import "../chunk-RBIVEH2K.mjs";
|
|
30
|
-
import "../chunk-HAG77QBV.mjs";
|
|
31
59
|
import "../chunk-PAWJFY3S.mjs";
|
|
32
60
|
export {
|
|
61
|
+
ClientJsonApiDelete,
|
|
62
|
+
ClientJsonApiGet,
|
|
63
|
+
ClientJsonApiPatch,
|
|
64
|
+
ClientJsonApiPost,
|
|
65
|
+
ClientJsonApiPut,
|
|
33
66
|
JsonApiContext,
|
|
34
67
|
JsonApiProvider,
|
|
68
|
+
TableGeneratorRegistry,
|
|
69
|
+
configureClientConfig,
|
|
70
|
+
configureClientJsonApi,
|
|
71
|
+
configureI18n,
|
|
72
|
+
configureJsonApi,
|
|
35
73
|
directFetch,
|
|
74
|
+
getApiUrl,
|
|
75
|
+
getAppUrl,
|
|
76
|
+
getClientApiUrl,
|
|
77
|
+
getClientAppUrl,
|
|
36
78
|
getClientToken,
|
|
79
|
+
getClientTrackablePages,
|
|
80
|
+
getI18nLink,
|
|
81
|
+
getTrackablePages,
|
|
82
|
+
registerTableGenerator,
|
|
83
|
+
tableGeneratorRegistry,
|
|
37
84
|
useContentTableStructure,
|
|
85
|
+
useCustomD3Graph,
|
|
86
|
+
useDataListRetriever,
|
|
87
|
+
useDebounce,
|
|
88
|
+
useI18nDateFnsLocale,
|
|
89
|
+
useI18nLocale,
|
|
90
|
+
useI18nRouter,
|
|
91
|
+
useI18nTranslations,
|
|
38
92
|
useJsonApiConfig,
|
|
39
93
|
useJsonApiConfigOptional,
|
|
40
94
|
useJsonApiGet,
|
|
41
95
|
useJsonApiMutation,
|
|
96
|
+
useNotificationSync,
|
|
97
|
+
usePageTracker,
|
|
98
|
+
usePageUrlGenerator,
|
|
42
99
|
useRehydration,
|
|
43
100
|
useRehydrationList,
|
|
44
101
|
useRoleTableStructure,
|
|
102
|
+
useSocket,
|
|
103
|
+
useTableGenerator,
|
|
104
|
+
useUrlRewriter,
|
|
45
105
|
useUserSearch,
|
|
46
106
|
useUserTableStructure
|
|
47
107
|
};
|