@carlonicora/nextjs-jsonapi 1.3.1 → 1.5.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/README.md +208 -127
- package/dist/AuthComponent-B_Ps2Vb9.d.ts +78 -0
- package/dist/AuthComponent-CxnGgvoh.d.mts +78 -0
- package/dist/{BlockNoteEditor-V625C23O.mjs → BlockNoteEditor-AIEEQM6A.mjs} +4 -6
- package/dist/{BlockNoteEditor-V625C23O.mjs.map → BlockNoteEditor-AIEEQM6A.mjs.map} +1 -1
- package/dist/{BlockNoteEditor-7WYPN34K.js → BlockNoteEditor-G6AK2NWA.js} +8 -10
- package/dist/BlockNoteEditor-G6AK2NWA.js.map +1 -0
- package/dist/chunk-3UELCPIN.js +46 -0
- package/dist/chunk-3UELCPIN.js.map +1 -0
- package/dist/{chunk-5QC7A6BL.mjs → chunk-J7YDGYSW.mjs} +2668 -1319
- package/dist/chunk-J7YDGYSW.mjs.map +1 -0
- package/dist/chunk-SZZYEG3P.mjs +46 -0
- package/dist/chunk-SZZYEG3P.mjs.map +1 -0
- package/dist/{chunk-K2ANOT66.js → chunk-VET55IZO.js} +1869 -520
- package/dist/chunk-VET55IZO.js.map +1 -0
- package/dist/client/index.d.mts +2 -2
- package/dist/client/index.d.ts +2 -2
- package/dist/client/index.js +3 -4
- package/dist/client/index.js.map +1 -1
- package/dist/client/index.mjs +2 -3
- package/dist/components/index.d.mts +6 -69
- package/dist/components/index.d.ts +6 -69
- package/dist/components/index.js +3 -4
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +2 -3
- package/dist/{content.interface-C_PGZMuy.d.ts → content.interface-CR2aBeAW.d.ts} +1 -1
- package/dist/{content.interface-D_WS6CrB.d.mts → content.interface-FpLfsaRm.d.mts} +1 -1
- package/dist/contexts/index.d.mts +3 -3
- package/dist/contexts/index.d.ts +3 -3
- package/dist/contexts/index.js +3 -4
- package/dist/contexts/index.js.map +1 -1
- package/dist/contexts/index.mjs +2 -3
- package/dist/features/index.d.mts +50 -49
- package/dist/features/index.d.ts +50 -49
- package/dist/features/index.js +24 -3
- package/dist/features/index.js.map +1 -1
- package/dist/features/index.mjs +23 -2
- package/dist/hooks/index.d.mts +3 -3
- package/dist/hooks/index.d.ts +3 -3
- package/dist/hooks/index.js +3 -4
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +2 -3
- package/dist/index.js +2 -2
- package/dist/index.mjs +1 -1
- package/dist/{notification.interface-BBgMUdLR.d.mts → notification.interface-B2BrLoDA.d.mts} +1 -1
- package/dist/{notification.interface-gyvT-Z2F.d.ts → notification.interface-DlZLnAfg.d.ts} +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/dist/scripts/generate-web-module/generator.d.ts.map +1 -1
- package/dist/scripts/generate-web-module/generator.js +8 -5
- package/dist/scripts/generate-web-module/generator.js.map +1 -1
- package/dist/scripts/generate-web-module/index.js +1 -1
- package/dist/scripts/generate-web-module/index.js.map +1 -1
- package/dist/scripts/generate-web-module/templates/components/editor.template.js +8 -1
- package/dist/scripts/generate-web-module/templates/components/editor.template.js.map +1 -1
- package/dist/scripts/generate-web-module/transformers/parent-detector.d.ts +4 -3
- package/dist/scripts/generate-web-module/transformers/parent-detector.d.ts.map +1 -1
- package/dist/scripts/generate-web-module/transformers/parent-detector.js +9 -3
- package/dist/scripts/generate-web-module/transformers/parent-detector.js.map +1 -1
- package/dist/scripts/generate-web-module/transformers/relationship-resolver.d.ts +11 -0
- package/dist/scripts/generate-web-module/transformers/relationship-resolver.d.ts.map +1 -1
- package/dist/scripts/generate-web-module/transformers/relationship-resolver.js +36 -9
- package/dist/scripts/generate-web-module/transformers/relationship-resolver.js.map +1 -1
- package/dist/scripts/generate-web-module/types/json-schema.interface.d.ts +2 -0
- package/dist/scripts/generate-web-module/types/json-schema.interface.d.ts.map +1 -1
- package/dist/scripts/generate-web-module/types/template-data.interface.d.ts +1 -0
- package/dist/scripts/generate-web-module/types/template-data.interface.d.ts.map +1 -1
- package/dist/scripts/generate-web-module/utils/i18n-updater.d.ts +4 -3
- package/dist/scripts/generate-web-module/utils/i18n-updater.d.ts.map +1 -1
- package/dist/scripts/generate-web-module/utils/i18n-updater.js +9 -9
- package/dist/scripts/generate-web-module/utils/i18n-updater.js.map +1 -1
- package/dist/scripts/generate-web-module/validators/json-schema-validator.js +3 -3
- package/dist/scripts/generate-web-module/validators/json-schema-validator.js.map +1 -1
- package/dist/{useSocket-DzMKRKCA.d.ts → useSocket-BV6yMdWS.d.ts} +1 -1
- package/dist/{useSocket-Cn7fB_B1.d.mts → useSocket-L-An7_Mr.d.mts} +1 -1
- package/dist/{user.interface-CAsTIbuQ.d.mts → user.interface-CooB1R79.d.mts} +13 -13
- package/dist/{user.interface-CbWqMaaU.d.ts → user.interface-KnIT9pVY.d.ts} +13 -13
- package/package.json +1 -1
- package/scripts/generate-web-module/generator.ts +8 -5
- package/scripts/generate-web-module/index.ts +1 -1
- package/scripts/generate-web-module/templates/components/editor.template.ts +7 -2
- package/scripts/generate-web-module/transformers/parent-detector.ts +10 -3
- package/scripts/generate-web-module/transformers/relationship-resolver.ts +36 -9
- package/scripts/generate-web-module/types/json-schema.interface.ts +2 -0
- package/scripts/generate-web-module/types/template-data.interface.ts +1 -0
- package/scripts/generate-web-module/utils/i18n-updater.ts +9 -9
- package/scripts/generate-web-module/validators/json-schema-validator.ts +3 -3
- package/src/features/auth/components/details/LandingComponent.tsx +27 -29
- package/src/features/user/index.ts +1 -0
- package/src/roles/config.ts +15 -0
- package/src/roles/index.ts +9 -1
- package/dist/AuthComponent-hxOPs9o8.d.mts +0 -11
- package/dist/AuthComponent-hxOPs9o8.d.ts +0 -11
- package/dist/BlockNoteEditor-7WYPN34K.js.map +0 -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-HTLEKZND.mjs +0 -1375
- package/dist/chunk-HTLEKZND.mjs.map +0 -1
- package/dist/chunk-K2ANOT66.js.map +0 -1
- package/dist/chunk-PO5Q3H5I.js +0 -1375
- package/dist/chunk-PO5Q3H5I.js.map +0 -1
package/dist/client/index.d.mts
CHANGED
|
@@ -6,9 +6,9 @@ import { A as ApiRequestDataTypeInterface } from '../types-t2PyXhDu.mjs';
|
|
|
6
6
|
import { A as ApiResponseInterface } from '../ApiResponseInterface-BHN5D9r5.mjs';
|
|
7
7
|
import { A as ApiData } from '../ApiData-DPKNfY-9.mjs';
|
|
8
8
|
import { U as UseTableStructureHook } from '../types-CgvNmxTd.mjs';
|
|
9
|
-
import { C as ContentInterface } from '../content.interface-
|
|
9
|
+
import { C as ContentInterface } from '../content.interface-FpLfsaRm.mjs';
|
|
10
10
|
import { C as ContentFields, R as RoleFields, U as UserFields } from '../content.fields-cHPdM8GJ.mjs';
|
|
11
|
-
import { R as RoleInterface, U as UserInterface } from '../user.interface-
|
|
11
|
+
import { R as RoleInterface, U as UserInterface } from '../user.interface-CooB1R79.mjs';
|
|
12
12
|
import 'lucide-react';
|
|
13
13
|
import '@tanstack/react-table';
|
|
14
14
|
import '../useDataListRetriever-futhx3OP.mjs';
|
package/dist/client/index.d.ts
CHANGED
|
@@ -6,9 +6,9 @@ import { A as ApiRequestDataTypeInterface } from '../types-t2PyXhDu.js';
|
|
|
6
6
|
import { A as ApiResponseInterface } from '../ApiResponseInterface-DDI7QQPR.js';
|
|
7
7
|
import { A as ApiData } from '../ApiData-DPKNfY-9.js';
|
|
8
8
|
import { U as UseTableStructureHook } from '../types-B2QRyqyK.js';
|
|
9
|
-
import { C as ContentInterface } from '../content.interface-
|
|
9
|
+
import { C as ContentInterface } from '../content.interface-CR2aBeAW.js';
|
|
10
10
|
import { C as ContentFields, R as RoleFields, U as UserFields } from '../content.fields-cHPdM8GJ.js';
|
|
11
|
-
import { R as RoleInterface, U as UserInterface } from '../user.interface-
|
|
11
|
+
import { R as RoleInterface, U as UserInterface } from '../user.interface-KnIT9pVY.js';
|
|
12
12
|
import 'lucide-react';
|
|
13
13
|
import '@tanstack/react-table';
|
|
14
14
|
import '../useDataListRetriever-futhx3OP.js';
|
package/dist/client/index.js
CHANGED
|
@@ -13,19 +13,18 @@
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkVET55IZOjs = require('../chunk-VET55IZO.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
var _chunkIBS6NI7Djs = require('../chunk-IBS6NI7D.js');
|
|
20
20
|
require('../chunk-5IET37O4.js');
|
|
21
21
|
require('../chunk-DEYKTLA3.js');
|
|
22
|
-
require('../chunk-PO5Q3H5I.js');
|
|
23
22
|
|
|
24
23
|
|
|
25
24
|
var _chunkLXKSUWAVjs = require('../chunk-LXKSUWAV.js');
|
|
26
25
|
require('../chunk-AYHKQWHH.js');
|
|
27
26
|
require('../chunk-PMXG5WBC.js');
|
|
28
|
-
require('../chunk-
|
|
27
|
+
require('../chunk-3UELCPIN.js');
|
|
29
28
|
require('../chunk-3FBCC4G3.js');
|
|
30
29
|
require('../chunk-Q4FXESVT.js');
|
|
31
30
|
require('../chunk-AGAJMJ4T.js');
|
|
@@ -46,5 +45,5 @@ require('../chunk-7QVYU63E.js');
|
|
|
46
45
|
|
|
47
46
|
|
|
48
47
|
|
|
49
|
-
exports.JsonApiContext =
|
|
48
|
+
exports.JsonApiContext = _chunkVET55IZOjs.JsonApiContext; exports.JsonApiProvider = _chunkVET55IZOjs.JsonApiProvider; exports.directFetch = _chunkIBS6NI7Djs.directFetch; exports.getClientToken = _chunkLXKSUWAVjs.getClientToken; exports.useContentTableStructure = _chunkVET55IZOjs.useContentTableStructure; exports.useJsonApiConfig = _chunkVET55IZOjs.useJsonApiConfig; exports.useJsonApiConfigOptional = _chunkVET55IZOjs.useJsonApiConfigOptional; exports.useJsonApiGet = _chunkVET55IZOjs.useJsonApiGet; exports.useJsonApiMutation = _chunkVET55IZOjs.useJsonApiMutation; exports.useRehydration = _chunkVET55IZOjs.useRehydration; exports.useRehydrationList = _chunkVET55IZOjs.useRehydrationList; exports.useRoleTableStructure = _chunkVET55IZOjs.useRoleTableStructure; exports.useUserSearch = _chunkVET55IZOjs.useUserSearch; exports.useUserTableStructure = _chunkVET55IZOjs.useUserTableStructure;
|
|
50
49
|
//# 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,gCAA6B;AAC7B,gCAA6B;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;AACF,uDAA6B;AAC7B;AACE;AACF,uDAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACF,uDAA6B;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;AACF,23BAAC","file":"/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/client/index.js"}
|
package/dist/client/index.mjs
CHANGED
|
@@ -12,19 +12,18 @@ import {
|
|
|
12
12
|
useRoleTableStructure,
|
|
13
13
|
useUserSearch,
|
|
14
14
|
useUserTableStructure
|
|
15
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-J7YDGYSW.mjs";
|
|
16
16
|
import {
|
|
17
17
|
directFetch
|
|
18
18
|
} from "../chunk-C7C7VY4F.mjs";
|
|
19
19
|
import "../chunk-P2F54I7Q.mjs";
|
|
20
20
|
import "../chunk-JGFWIT2E.mjs";
|
|
21
|
-
import "../chunk-HTLEKZND.mjs";
|
|
22
21
|
import {
|
|
23
22
|
getClientToken
|
|
24
23
|
} from "../chunk-AUXK7QSA.mjs";
|
|
25
24
|
import "../chunk-SM63SZCP.mjs";
|
|
26
25
|
import "../chunk-IKBA4AHN.mjs";
|
|
27
|
-
import "../chunk-
|
|
26
|
+
import "../chunk-SZZYEG3P.mjs";
|
|
28
27
|
import "../chunk-Q2N6SQYW.mjs";
|
|
29
28
|
import "../chunk-FMBQZAIP.mjs";
|
|
30
29
|
import "../chunk-RBIVEH2K.mjs";
|
|
@@ -2,18 +2,19 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import * as React$1 from 'react';
|
|
3
3
|
import React__default, { ReactElement, ReactNode, Dispatch, SetStateAction, Component, JSX } from 'react';
|
|
4
4
|
import { M as ModuleWithPermissions, a as Action } from '../types-t2PyXhDu.mjs';
|
|
5
|
-
import { C as ContentInterface } from '../content.interface-
|
|
5
|
+
import { C as ContentInterface } from '../content.interface-FpLfsaRm.mjs';
|
|
6
6
|
import { PartialBlock } from '@blocknote/core';
|
|
7
7
|
import { D as DataListRetriever } from '../useDataListRetriever-futhx3OP.mjs';
|
|
8
8
|
import { DateRange } from 'react-day-picker';
|
|
9
9
|
import { DropzoneState, DropzoneOptions } from 'react-dropzone';
|
|
10
|
-
import { F as FeatureInterface, C as CompanyInterface, U as UserInterface, R as RoleInterface } from '../user.interface-
|
|
10
|
+
import { F as FeatureInterface, C as CompanyInterface, U as UserInterface, R as RoleInterface } from '../user.interface-CooB1R79.mjs';
|
|
11
11
|
import { B as BreadcrumbItemData } from '../breadcrumb.item.data.interface-CgB4_1EE.mjs';
|
|
12
12
|
import { ColumnDef } from '@tanstack/react-table';
|
|
13
|
-
import { A as AuthComponent } from '../AuthComponent-
|
|
13
|
+
import { A as AuthComponent } from '../AuthComponent-CxnGgvoh.mjs';
|
|
14
|
+
export { a as AddUserToRole, U as UserAvatarEditor, b as UserDeleter, c as UserEditor, d as UserMultiSelect, e as UserReactivator, f as UserResentInvitationEmail, g as UserSelector } from '../AuthComponent-CxnGgvoh.mjs';
|
|
14
15
|
import { J as JsonApiHydratedDataInterface } from '../ApiDataInterface-DPP8s46n.mjs';
|
|
15
16
|
import { UseFormReturn } from 'react-hook-form';
|
|
16
|
-
import { N as NotificationInterface } from '../notification.interface-
|
|
17
|
+
import { N as NotificationInterface } from '../notification.interface-B2BrLoDA.mjs';
|
|
17
18
|
import 'lucide-react';
|
|
18
19
|
|
|
19
20
|
type PageContainerProps = {
|
|
@@ -623,70 +624,6 @@ declare function UserDetails({ user }: UserDetailsProps): react_jsx_runtime.JSX.
|
|
|
623
624
|
|
|
624
625
|
declare function UserIndexDetails(): react_jsx_runtime.JSX.Element | null;
|
|
625
626
|
|
|
626
|
-
type AddUserToRoleProps = {
|
|
627
|
-
role: RoleInterface;
|
|
628
|
-
refresh: () => Promise<void>;
|
|
629
|
-
};
|
|
630
|
-
declare function AddUserToRole(props: AddUserToRoleProps): react_jsx_runtime.JSX.Element;
|
|
631
|
-
|
|
632
|
-
type UserAvatarEditorProps = {
|
|
633
|
-
user?: UserInterface;
|
|
634
|
-
file?: File | null;
|
|
635
|
-
setFile: (file: File | null) => void;
|
|
636
|
-
resetImage: boolean;
|
|
637
|
-
setResetImage: (reset: boolean) => void;
|
|
638
|
-
};
|
|
639
|
-
declare function UserAvatarEditor({ user, file, setFile, resetImage, setResetImage }: UserAvatarEditorProps): react_jsx_runtime.JSX.Element;
|
|
640
|
-
|
|
641
|
-
type UserDeleterProps = {
|
|
642
|
-
user: UserInterface;
|
|
643
|
-
companyId?: string;
|
|
644
|
-
onDeleted?: () => void;
|
|
645
|
-
};
|
|
646
|
-
declare function UserDeleter(props: UserDeleterProps): react_jsx_runtime.JSX.Element | null;
|
|
647
|
-
|
|
648
|
-
type UserEditorProps = {
|
|
649
|
-
user?: UserInterface;
|
|
650
|
-
propagateChanges?: (user: UserInterface) => void;
|
|
651
|
-
adminCreated?: boolean;
|
|
652
|
-
trigger?: React.ReactNode;
|
|
653
|
-
onRevalidate?: (path: string) => Promise<void>;
|
|
654
|
-
};
|
|
655
|
-
declare function UserEditor(props: UserEditorProps): react_jsx_runtime.JSX.Element | null;
|
|
656
|
-
|
|
657
|
-
type UserMultiSelectProps = {
|
|
658
|
-
id: string;
|
|
659
|
-
form: any;
|
|
660
|
-
currentUser?: UserInterface;
|
|
661
|
-
label?: string;
|
|
662
|
-
placeholder?: string;
|
|
663
|
-
onChange?: (users?: UserInterface[]) => void;
|
|
664
|
-
maxCount?: number;
|
|
665
|
-
isRequired?: boolean;
|
|
666
|
-
};
|
|
667
|
-
declare function UserMultiSelect({ id, form, currentUser, label, placeholder, onChange, maxCount, isRequired, }: UserMultiSelectProps): react_jsx_runtime.JSX.Element;
|
|
668
|
-
|
|
669
|
-
type UserReactivatorProps = {
|
|
670
|
-
user: UserInterface;
|
|
671
|
-
propagateChanges: (user: UserInterface) => void;
|
|
672
|
-
};
|
|
673
|
-
declare function UserReactivator(props: UserReactivatorProps): react_jsx_runtime.JSX.Element | null;
|
|
674
|
-
|
|
675
|
-
type UserResentInvitationEmailProps = {
|
|
676
|
-
user: UserInterface;
|
|
677
|
-
};
|
|
678
|
-
declare function UserResentInvitationEmail(props: UserResentInvitationEmailProps): react_jsx_runtime.JSX.Element | null;
|
|
679
|
-
|
|
680
|
-
type UserSelectorProps = {
|
|
681
|
-
id: string;
|
|
682
|
-
form: any;
|
|
683
|
-
label?: string;
|
|
684
|
-
placeholder?: string;
|
|
685
|
-
onChange?: (user?: UserInterface) => void;
|
|
686
|
-
isRequired?: boolean;
|
|
687
|
-
};
|
|
688
|
-
declare function UserSelector({ id, form, label, placeholder, onChange, isRequired }: UserSelectorProps): react_jsx_runtime.JSX.Element;
|
|
689
|
-
|
|
690
627
|
declare function AdminUsersList(): react_jsx_runtime.JSX.Element | null;
|
|
691
628
|
|
|
692
629
|
type CompanyUsersListProps = {
|
|
@@ -740,4 +677,4 @@ type UserAvatarProps = {
|
|
|
740
677
|
};
|
|
741
678
|
declare function UserAvatar({ user, className, showFull, showLink }: UserAvatarProps): react_jsx_runtime.JSX.Element;
|
|
742
679
|
|
|
743
|
-
export { AcceptInvitation, ActivateAccount,
|
|
680
|
+
export { AcceptInvitation, ActivateAccount, AdminCompanyContainer, AdminUsersList, AllowedUsersDetails, AttributeElement, AuthContainer, BlockNoteEditorContainer, Breadcrumb, CommonAssociationCommandDialog, CommonAssociationTrigger, CommonDeleter, CommonEditorButtons, CommonEditorHeader, CommonEditorTrigger, CompaniesList, CompanyConfigurationEditor, CompanyConfigurationSecurityForm, CompanyContainer, CompanyDeleter, CompanyDetails, CompanyEditor, CompanyUsersList, ContentListTable, ContentTableSearch, ContentTitle, ContentsList, ContentsListById, ContributorsList, Cookies, DatePickerPopover, DateRangeSelector, ErrorDetails, FileInput, FileUploader, FileUploaderContent, FileUploaderItem, ForgotPassword, FormCheckbox, FormContainerGeneric, FormDate, FormDateTime, FormFeatures, FormInput, FormPassword, FormPlaceAutocomplete, FormRoles, FormSelect, FormSlider, FormSwitch, FormTextarea, type GenerateTableStructureParams, Header, LandingComponent, Login, Logout, ModeToggleSwitch, NotificationErrorBoundary, NotificationMenuItem, NotificationModal, NotificationToast, NotificationsList, NotificationsListContainer, PageContainer, PageContainerContentDetails, type PageContainerItems, PageContentContainer, PageSection, PasswordInput, type PasswordInputProps, PushNotificationProvider, ReactMarkdownContainer, RecentPagesNavigator, RefreshUser, RelevantContentsList, RelevantUsersList, RemoveUserFromRole, ResetPassword, RoleContainer, RoleDetails, RoleUsersList, RolesList, type Tab, TabsContainer, UserAvatar, UserContainer, UserDetails, UserIndexContainer, UserIndexDetails, UserListInAdd, UserRoleAdd, UserRolesList, UsersList, UsersListByContentIds, UsersListContainer, cellComponent, cellDate, cellId, cellLink, cellUrl, errorToast, generateNotificationData, triggerAssociationToast, useFileUpload };
|
|
@@ -2,18 +2,19 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import * as React$1 from 'react';
|
|
3
3
|
import React__default, { ReactElement, ReactNode, Dispatch, SetStateAction, Component, JSX } from 'react';
|
|
4
4
|
import { M as ModuleWithPermissions, a as Action } from '../types-t2PyXhDu.js';
|
|
5
|
-
import { C as ContentInterface } from '../content.interface-
|
|
5
|
+
import { C as ContentInterface } from '../content.interface-CR2aBeAW.js';
|
|
6
6
|
import { PartialBlock } from '@blocknote/core';
|
|
7
7
|
import { D as DataListRetriever } from '../useDataListRetriever-futhx3OP.js';
|
|
8
8
|
import { DateRange } from 'react-day-picker';
|
|
9
9
|
import { DropzoneState, DropzoneOptions } from 'react-dropzone';
|
|
10
|
-
import { F as FeatureInterface, C as CompanyInterface, U as UserInterface, R as RoleInterface } from '../user.interface-
|
|
10
|
+
import { F as FeatureInterface, C as CompanyInterface, U as UserInterface, R as RoleInterface } from '../user.interface-KnIT9pVY.js';
|
|
11
11
|
import { B as BreadcrumbItemData } from '../breadcrumb.item.data.interface-CgB4_1EE.js';
|
|
12
12
|
import { ColumnDef } from '@tanstack/react-table';
|
|
13
|
-
import { A as AuthComponent } from '../AuthComponent-
|
|
13
|
+
import { A as AuthComponent } from '../AuthComponent-B_Ps2Vb9.js';
|
|
14
|
+
export { a as AddUserToRole, U as UserAvatarEditor, b as UserDeleter, c as UserEditor, d as UserMultiSelect, e as UserReactivator, f as UserResentInvitationEmail, g as UserSelector } from '../AuthComponent-B_Ps2Vb9.js';
|
|
14
15
|
import { J as JsonApiHydratedDataInterface } from '../ApiDataInterface-DPP8s46n.js';
|
|
15
16
|
import { UseFormReturn } from 'react-hook-form';
|
|
16
|
-
import { N as NotificationInterface } from '../notification.interface-
|
|
17
|
+
import { N as NotificationInterface } from '../notification.interface-DlZLnAfg.js';
|
|
17
18
|
import 'lucide-react';
|
|
18
19
|
|
|
19
20
|
type PageContainerProps = {
|
|
@@ -623,70 +624,6 @@ declare function UserDetails({ user }: UserDetailsProps): react_jsx_runtime.JSX.
|
|
|
623
624
|
|
|
624
625
|
declare function UserIndexDetails(): react_jsx_runtime.JSX.Element | null;
|
|
625
626
|
|
|
626
|
-
type AddUserToRoleProps = {
|
|
627
|
-
role: RoleInterface;
|
|
628
|
-
refresh: () => Promise<void>;
|
|
629
|
-
};
|
|
630
|
-
declare function AddUserToRole(props: AddUserToRoleProps): react_jsx_runtime.JSX.Element;
|
|
631
|
-
|
|
632
|
-
type UserAvatarEditorProps = {
|
|
633
|
-
user?: UserInterface;
|
|
634
|
-
file?: File | null;
|
|
635
|
-
setFile: (file: File | null) => void;
|
|
636
|
-
resetImage: boolean;
|
|
637
|
-
setResetImage: (reset: boolean) => void;
|
|
638
|
-
};
|
|
639
|
-
declare function UserAvatarEditor({ user, file, setFile, resetImage, setResetImage }: UserAvatarEditorProps): react_jsx_runtime.JSX.Element;
|
|
640
|
-
|
|
641
|
-
type UserDeleterProps = {
|
|
642
|
-
user: UserInterface;
|
|
643
|
-
companyId?: string;
|
|
644
|
-
onDeleted?: () => void;
|
|
645
|
-
};
|
|
646
|
-
declare function UserDeleter(props: UserDeleterProps): react_jsx_runtime.JSX.Element | null;
|
|
647
|
-
|
|
648
|
-
type UserEditorProps = {
|
|
649
|
-
user?: UserInterface;
|
|
650
|
-
propagateChanges?: (user: UserInterface) => void;
|
|
651
|
-
adminCreated?: boolean;
|
|
652
|
-
trigger?: React.ReactNode;
|
|
653
|
-
onRevalidate?: (path: string) => Promise<void>;
|
|
654
|
-
};
|
|
655
|
-
declare function UserEditor(props: UserEditorProps): react_jsx_runtime.JSX.Element | null;
|
|
656
|
-
|
|
657
|
-
type UserMultiSelectProps = {
|
|
658
|
-
id: string;
|
|
659
|
-
form: any;
|
|
660
|
-
currentUser?: UserInterface;
|
|
661
|
-
label?: string;
|
|
662
|
-
placeholder?: string;
|
|
663
|
-
onChange?: (users?: UserInterface[]) => void;
|
|
664
|
-
maxCount?: number;
|
|
665
|
-
isRequired?: boolean;
|
|
666
|
-
};
|
|
667
|
-
declare function UserMultiSelect({ id, form, currentUser, label, placeholder, onChange, maxCount, isRequired, }: UserMultiSelectProps): react_jsx_runtime.JSX.Element;
|
|
668
|
-
|
|
669
|
-
type UserReactivatorProps = {
|
|
670
|
-
user: UserInterface;
|
|
671
|
-
propagateChanges: (user: UserInterface) => void;
|
|
672
|
-
};
|
|
673
|
-
declare function UserReactivator(props: UserReactivatorProps): react_jsx_runtime.JSX.Element | null;
|
|
674
|
-
|
|
675
|
-
type UserResentInvitationEmailProps = {
|
|
676
|
-
user: UserInterface;
|
|
677
|
-
};
|
|
678
|
-
declare function UserResentInvitationEmail(props: UserResentInvitationEmailProps): react_jsx_runtime.JSX.Element | null;
|
|
679
|
-
|
|
680
|
-
type UserSelectorProps = {
|
|
681
|
-
id: string;
|
|
682
|
-
form: any;
|
|
683
|
-
label?: string;
|
|
684
|
-
placeholder?: string;
|
|
685
|
-
onChange?: (user?: UserInterface) => void;
|
|
686
|
-
isRequired?: boolean;
|
|
687
|
-
};
|
|
688
|
-
declare function UserSelector({ id, form, label, placeholder, onChange, isRequired }: UserSelectorProps): react_jsx_runtime.JSX.Element;
|
|
689
|
-
|
|
690
627
|
declare function AdminUsersList(): react_jsx_runtime.JSX.Element | null;
|
|
691
628
|
|
|
692
629
|
type CompanyUsersListProps = {
|
|
@@ -740,4 +677,4 @@ type UserAvatarProps = {
|
|
|
740
677
|
};
|
|
741
678
|
declare function UserAvatar({ user, className, showFull, showLink }: UserAvatarProps): react_jsx_runtime.JSX.Element;
|
|
742
679
|
|
|
743
|
-
export { AcceptInvitation, ActivateAccount,
|
|
680
|
+
export { AcceptInvitation, ActivateAccount, AdminCompanyContainer, AdminUsersList, AllowedUsersDetails, AttributeElement, AuthContainer, BlockNoteEditorContainer, Breadcrumb, CommonAssociationCommandDialog, CommonAssociationTrigger, CommonDeleter, CommonEditorButtons, CommonEditorHeader, CommonEditorTrigger, CompaniesList, CompanyConfigurationEditor, CompanyConfigurationSecurityForm, CompanyContainer, CompanyDeleter, CompanyDetails, CompanyEditor, CompanyUsersList, ContentListTable, ContentTableSearch, ContentTitle, ContentsList, ContentsListById, ContributorsList, Cookies, DatePickerPopover, DateRangeSelector, ErrorDetails, FileInput, FileUploader, FileUploaderContent, FileUploaderItem, ForgotPassword, FormCheckbox, FormContainerGeneric, FormDate, FormDateTime, FormFeatures, FormInput, FormPassword, FormPlaceAutocomplete, FormRoles, FormSelect, FormSlider, FormSwitch, FormTextarea, type GenerateTableStructureParams, Header, LandingComponent, Login, Logout, ModeToggleSwitch, NotificationErrorBoundary, NotificationMenuItem, NotificationModal, NotificationToast, NotificationsList, NotificationsListContainer, PageContainer, PageContainerContentDetails, type PageContainerItems, PageContentContainer, PageSection, PasswordInput, type PasswordInputProps, PushNotificationProvider, ReactMarkdownContainer, RecentPagesNavigator, RefreshUser, RelevantContentsList, RelevantUsersList, RemoveUserFromRole, ResetPassword, RoleContainer, RoleDetails, RoleUsersList, RolesList, type Tab, TabsContainer, UserAvatar, UserContainer, UserDetails, UserIndexContainer, UserIndexDetails, UserListInAdd, UserRoleAdd, UserRolesList, UsersList, UsersListByContentIds, UsersListContainer, cellComponent, cellDate, cellId, cellLink, cellUrl, errorToast, generateNotificationData, triggerAssociationToast, useFileUpload };
|
package/dist/components/index.js
CHANGED
|
@@ -108,15 +108,14 @@
|
|
|
108
108
|
|
|
109
109
|
|
|
110
110
|
|
|
111
|
-
var
|
|
111
|
+
var _chunkVET55IZOjs = require('../chunk-VET55IZO.js');
|
|
112
112
|
require('../chunk-IBS6NI7D.js');
|
|
113
113
|
require('../chunk-5IET37O4.js');
|
|
114
114
|
require('../chunk-DEYKTLA3.js');
|
|
115
|
-
require('../chunk-PO5Q3H5I.js');
|
|
116
115
|
require('../chunk-LXKSUWAV.js');
|
|
117
116
|
require('../chunk-AYHKQWHH.js');
|
|
118
117
|
require('../chunk-PMXG5WBC.js');
|
|
119
|
-
require('../chunk-
|
|
118
|
+
require('../chunk-3UELCPIN.js');
|
|
120
119
|
require('../chunk-3FBCC4G3.js');
|
|
121
120
|
require('../chunk-Q4FXESVT.js');
|
|
122
121
|
require('../chunk-AGAJMJ4T.js');
|
|
@@ -231,5 +230,5 @@ require('../chunk-7QVYU63E.js');
|
|
|
231
230
|
|
|
232
231
|
|
|
233
232
|
|
|
234
|
-
exports.AcceptInvitation =
|
|
233
|
+
exports.AcceptInvitation = _chunkVET55IZOjs.AcceptInvitation; exports.ActivateAccount = _chunkVET55IZOjs.ActivateAccount; exports.AddUserToRole = _chunkVET55IZOjs.AddUserToRole; exports.AdminCompanyContainer = _chunkVET55IZOjs.AdminCompanyContainer; exports.AdminUsersList = _chunkVET55IZOjs.AdminUsersList; exports.AllowedUsersDetails = _chunkVET55IZOjs.AllowedUsersDetails; exports.AttributeElement = _chunkVET55IZOjs.AttributeElement; exports.AuthContainer = _chunkVET55IZOjs.AuthContainer; exports.BlockNoteEditorContainer = _chunkVET55IZOjs.BlockNoteEditorContainer; exports.Breadcrumb = _chunkVET55IZOjs.Breadcrumb; exports.CommonAssociationCommandDialog = _chunkVET55IZOjs.CommonAssociationCommandDialog; exports.CommonAssociationTrigger = _chunkVET55IZOjs.CommonAssociationTrigger; exports.CommonDeleter = _chunkVET55IZOjs.CommonDeleter; exports.CommonEditorButtons = _chunkVET55IZOjs.CommonEditorButtons; exports.CommonEditorHeader = _chunkVET55IZOjs.CommonEditorHeader; exports.CommonEditorTrigger = _chunkVET55IZOjs.CommonEditorTrigger; exports.CompaniesList = _chunkVET55IZOjs.CompaniesList; exports.CompanyConfigurationEditor = _chunkVET55IZOjs.CompanyConfigurationEditor; exports.CompanyConfigurationSecurityForm = _chunkVET55IZOjs.CompanyConfigurationSecurityForm; exports.CompanyContainer = _chunkVET55IZOjs.CompanyContainer; exports.CompanyDeleter = _chunkVET55IZOjs.CompanyDeleter; exports.CompanyDetails = _chunkVET55IZOjs.CompanyDetails; exports.CompanyEditor = _chunkVET55IZOjs.CompanyEditor; exports.CompanyUsersList = _chunkVET55IZOjs.CompanyUsersList; exports.ContentListTable = _chunkVET55IZOjs.ContentListTable; exports.ContentTableSearch = _chunkVET55IZOjs.ContentTableSearch; exports.ContentTitle = _chunkVET55IZOjs.ContentTitle; exports.ContentsList = _chunkVET55IZOjs.ContentsList; exports.ContentsListById = _chunkVET55IZOjs.ContentsListById; exports.ContributorsList = _chunkVET55IZOjs.ContributorsList; exports.Cookies = _chunkVET55IZOjs.Cookies; exports.DatePickerPopover = _chunkVET55IZOjs.DatePickerPopover; exports.DateRangeSelector = _chunkVET55IZOjs.DateRangeSelector; exports.ErrorDetails = _chunkVET55IZOjs.ErrorDetails; exports.FileInput = _chunkVET55IZOjs.FileInput; exports.FileUploader = _chunkVET55IZOjs.FileUploader; exports.FileUploaderContent = _chunkVET55IZOjs.FileUploaderContent; exports.FileUploaderItem = _chunkVET55IZOjs.FileUploaderItem; exports.ForgotPassword = _chunkVET55IZOjs.ForgotPassword; exports.FormCheckbox = _chunkVET55IZOjs.FormCheckbox; exports.FormContainerGeneric = _chunkVET55IZOjs.FormContainerGeneric; exports.FormDate = _chunkVET55IZOjs.FormDate; exports.FormDateTime = _chunkVET55IZOjs.FormDateTime; exports.FormFeatures = _chunkVET55IZOjs.FormFeatures; exports.FormInput = _chunkVET55IZOjs.FormInput; exports.FormPassword = _chunkVET55IZOjs.FormPassword; exports.FormPlaceAutocomplete = _chunkVET55IZOjs.FormPlaceAutocomplete; exports.FormRoles = _chunkVET55IZOjs.FormRoles; exports.FormSelect = _chunkVET55IZOjs.FormSelect; exports.FormSlider = _chunkVET55IZOjs.FormSlider; exports.FormSwitch = _chunkVET55IZOjs.FormSwitch; exports.FormTextarea = _chunkVET55IZOjs.FormTextarea; exports.Header = _chunkVET55IZOjs.Header; exports.LandingComponent = _chunkVET55IZOjs.LandingComponent; exports.Login = _chunkVET55IZOjs.Login; exports.Logout = _chunkVET55IZOjs.Logout; exports.ModeToggleSwitch = _chunkVET55IZOjs.ModeToggleSwitch; exports.NotificationErrorBoundary = _chunkVET55IZOjs.NotificationErrorBoundary; exports.NotificationMenuItem = _chunkVET55IZOjs.NotificationMenuItem; exports.NotificationModal = _chunkVET55IZOjs.NotificationModal; exports.NotificationToast = _chunkVET55IZOjs.NotificationToast; exports.NotificationsList = _chunkVET55IZOjs.NotificationsList; exports.NotificationsListContainer = _chunkVET55IZOjs.NotificationsListContainer; exports.PageContainer = _chunkVET55IZOjs.PageContainer; exports.PageContainerContentDetails = _chunkVET55IZOjs.PageContainerContentDetails; exports.PageContentContainer = _chunkVET55IZOjs.PageContentContainer; exports.PageSection = _chunkVET55IZOjs.PageSection; exports.PasswordInput = _chunkVET55IZOjs.PasswordInput; exports.PushNotificationProvider = _chunkVET55IZOjs.PushNotificationProvider; exports.ReactMarkdownContainer = _chunkVET55IZOjs.ReactMarkdownContainer; exports.RecentPagesNavigator = _chunkVET55IZOjs.RecentPagesNavigator; exports.RefreshUser = _chunkVET55IZOjs.RefreshUser; exports.RelevantContentsList = _chunkVET55IZOjs.RelevantContentsList; exports.RelevantUsersList = _chunkVET55IZOjs.RelevantUsersList; exports.RemoveUserFromRole = _chunkVET55IZOjs.RemoveUserFromRole; exports.ResetPassword = _chunkVET55IZOjs.ResetPassword; exports.RoleContainer = _chunkVET55IZOjs.RoleContainer; exports.RoleDetails = _chunkVET55IZOjs.RoleDetails; exports.RoleUsersList = _chunkVET55IZOjs.RoleUsersList; exports.RolesList = _chunkVET55IZOjs.RolesList; exports.TabsContainer = _chunkVET55IZOjs.TabsContainer; exports.UserAvatar = _chunkVET55IZOjs.UserAvatar; exports.UserAvatarEditor = _chunkVET55IZOjs.UserAvatarEditor; exports.UserContainer = _chunkVET55IZOjs.UserContainer; exports.UserDeleter = _chunkVET55IZOjs.UserDeleter; exports.UserDetails = _chunkVET55IZOjs.UserDetails; exports.UserEditor = _chunkVET55IZOjs.UserEditor; exports.UserIndexContainer = _chunkVET55IZOjs.UserIndexContainer; exports.UserIndexDetails = _chunkVET55IZOjs.UserIndexDetails; exports.UserListInAdd = _chunkVET55IZOjs.UserListInAdd; exports.UserMultiSelect = _chunkVET55IZOjs.UserMultiSelect; exports.UserReactivator = _chunkVET55IZOjs.UserReactivator; exports.UserResentInvitationEmail = _chunkVET55IZOjs.UserResentInvitationEmail; exports.UserRoleAdd = _chunkVET55IZOjs.UserRoleAdd; exports.UserRolesList = _chunkVET55IZOjs.UserRolesList; exports.UserSelector = _chunkVET55IZOjs.UserSelector; exports.UsersList = _chunkVET55IZOjs.UsersList; exports.UsersListByContentIds = _chunkVET55IZOjs.UsersListByContentIds; exports.UsersListContainer = _chunkVET55IZOjs.UsersListContainer; exports.cellComponent = _chunkVET55IZOjs.cellComponent; exports.cellDate = _chunkVET55IZOjs.cellDate; exports.cellId = _chunkVET55IZOjs.cellId; exports.cellLink = _chunkVET55IZOjs.cellLink; exports.cellUrl = _chunkVET55IZOjs.cellUrl; exports.errorToast = _chunkVET55IZOjs.errorToast; exports.generateNotificationData = _chunkVET55IZOjs.generateNotificationData; exports.triggerAssociationToast = _chunkVET55IZOjs.triggerAssociationToast; exports.useFileUpload = _chunkVET55IZOjs.useFileUpload;
|
|
235
234
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/components/index.js"],"names":[],"mappings":"AAAA;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;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;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,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/components/index.js"],"names":[],"mappings":"AAAA;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;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;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,gCAA6B;AAC7B,gCAA6B;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,21MAAC","file":"/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/components/index.js"}
|
|
@@ -108,15 +108,14 @@ import {
|
|
|
108
108
|
generateNotificationData,
|
|
109
109
|
triggerAssociationToast,
|
|
110
110
|
useFileUpload
|
|
111
|
-
} from "../chunk-
|
|
111
|
+
} from "../chunk-J7YDGYSW.mjs";
|
|
112
112
|
import "../chunk-C7C7VY4F.mjs";
|
|
113
113
|
import "../chunk-P2F54I7Q.mjs";
|
|
114
114
|
import "../chunk-JGFWIT2E.mjs";
|
|
115
|
-
import "../chunk-HTLEKZND.mjs";
|
|
116
115
|
import "../chunk-AUXK7QSA.mjs";
|
|
117
116
|
import "../chunk-SM63SZCP.mjs";
|
|
118
117
|
import "../chunk-IKBA4AHN.mjs";
|
|
119
|
-
import "../chunk-
|
|
118
|
+
import "../chunk-SZZYEG3P.mjs";
|
|
120
119
|
import "../chunk-Q2N6SQYW.mjs";
|
|
121
120
|
import "../chunk-FMBQZAIP.mjs";
|
|
122
121
|
import "../chunk-RBIVEH2K.mjs";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import React__default, { ReactNode, ReactElement } from 'react';
|
|
3
3
|
import { J as JsonApiHydratedDataInterface } from '../ApiDataInterface-DPP8s46n.mjs';
|
|
4
|
-
import { C as CompanyInterface, R as RoleInterface, U as UserInterface } from '../user.interface-
|
|
5
|
-
import { N as NotificationInterface } from '../notification.interface-
|
|
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
6
|
import { M as ModuleWithPermissions, a as Action } from '../types-t2PyXhDu.mjs';
|
|
7
7
|
import { B as BreadcrumbItemData } from '../breadcrumb.item.data.interface-CgB4_1EE.mjs';
|
|
8
|
-
import { u as useSocket } from '../useSocket-
|
|
8
|
+
import { u as useSocket } from '../useSocket-L-An7_Mr.mjs';
|
|
9
9
|
import 'lucide-react';
|
|
10
10
|
|
|
11
11
|
interface CompanyContextType {
|
package/dist/contexts/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import React__default, { ReactNode, ReactElement } from 'react';
|
|
3
3
|
import { J as JsonApiHydratedDataInterface } from '../ApiDataInterface-DPP8s46n.js';
|
|
4
|
-
import { C as CompanyInterface, R as RoleInterface, U as UserInterface } from '../user.interface-
|
|
5
|
-
import { N as NotificationInterface } from '../notification.interface-
|
|
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
6
|
import { M as ModuleWithPermissions, a as Action } from '../types-t2PyXhDu.js';
|
|
7
7
|
import { B as BreadcrumbItemData } from '../breadcrumb.item.data.interface-CgB4_1EE.js';
|
|
8
|
-
import { u as useSocket } from '../useSocket-
|
|
8
|
+
import { u as useSocket } from '../useSocket-BV6yMdWS.js';
|
|
9
9
|
import 'lucide-react';
|
|
10
10
|
|
|
11
11
|
interface CompanyContextType {
|
package/dist/contexts/index.js
CHANGED
|
@@ -17,15 +17,14 @@
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkVET55IZOjs = require('../chunk-VET55IZO.js');
|
|
21
21
|
require('../chunk-IBS6NI7D.js');
|
|
22
22
|
require('../chunk-5IET37O4.js');
|
|
23
23
|
require('../chunk-DEYKTLA3.js');
|
|
24
|
-
require('../chunk-PO5Q3H5I.js');
|
|
25
24
|
require('../chunk-LXKSUWAV.js');
|
|
26
25
|
require('../chunk-AYHKQWHH.js');
|
|
27
26
|
require('../chunk-PMXG5WBC.js');
|
|
28
|
-
require('../chunk-
|
|
27
|
+
require('../chunk-3UELCPIN.js');
|
|
29
28
|
require('../chunk-3FBCC4G3.js');
|
|
30
29
|
require('../chunk-Q4FXESVT.js');
|
|
31
30
|
require('../chunk-AGAJMJ4T.js');
|
|
@@ -49,5 +48,5 @@ require('../chunk-7QVYU63E.js');
|
|
|
49
48
|
|
|
50
49
|
|
|
51
50
|
|
|
52
|
-
exports.CommonProvider =
|
|
51
|
+
exports.CommonProvider = _chunkVET55IZOjs.CommonProvider; exports.CompanyProvider = _chunkVET55IZOjs.CompanyProvider; exports.CurrentUserProvider = _chunkVET55IZOjs.CurrentUserProvider; exports.NotificationContextProvider = _chunkVET55IZOjs.NotificationContextProvider; exports.RoleProvider = _chunkVET55IZOjs.RoleProvider; exports.SharedProvider = _chunkVET55IZOjs.SharedProvider; exports.SocketContext = _chunkVET55IZOjs.SocketContext; exports.SocketProvider = _chunkVET55IZOjs.SocketProvider; exports.UserProvider = _chunkVET55IZOjs.UserProvider; exports.useCommonContext = _chunkVET55IZOjs.useCommonContext; exports.useCompanyContext = _chunkVET55IZOjs.useCompanyContext; exports.useCurrentUserContext = _chunkVET55IZOjs.useCurrentUserContext; exports.useNotificationContext = _chunkVET55IZOjs.useNotificationContext; exports.useRoleContext = _chunkVET55IZOjs.useRoleContext; exports.useSharedContext = _chunkVET55IZOjs.useSharedContext; exports.useSocketContext = _chunkVET55IZOjs.useSocketContext; exports.useUserContext = _chunkVET55IZOjs.useUserContext;
|
|
53
52
|
//# 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,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;AACF,uDAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;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;AACF,qiCAAC","file":"/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/contexts/index.js"}
|
package/dist/contexts/index.mjs
CHANGED
|
@@ -17,15 +17,14 @@ import {
|
|
|
17
17
|
useSharedContext,
|
|
18
18
|
useSocketContext,
|
|
19
19
|
useUserContext
|
|
20
|
-
} from "../chunk-
|
|
20
|
+
} from "../chunk-J7YDGYSW.mjs";
|
|
21
21
|
import "../chunk-C7C7VY4F.mjs";
|
|
22
22
|
import "../chunk-P2F54I7Q.mjs";
|
|
23
23
|
import "../chunk-JGFWIT2E.mjs";
|
|
24
|
-
import "../chunk-HTLEKZND.mjs";
|
|
25
24
|
import "../chunk-AUXK7QSA.mjs";
|
|
26
25
|
import "../chunk-SM63SZCP.mjs";
|
|
27
26
|
import "../chunk-IKBA4AHN.mjs";
|
|
28
|
-
import "../chunk-
|
|
27
|
+
import "../chunk-SZZYEG3P.mjs";
|
|
29
28
|
import "../chunk-Q2N6SQYW.mjs";
|
|
30
29
|
import "../chunk-FMBQZAIP.mjs";
|
|
31
30
|
import "../chunk-RBIVEH2K.mjs";
|
|
@@ -2,12 +2,13 @@ import { i as ModuleFactory, M as ModuleWithPermissions } from '../types-t2PyXhD
|
|
|
2
2
|
export { T as TokenHandler, a as TokenParams, c as configureAuth } from '../config-DQeAo9Kf.mjs';
|
|
3
3
|
import { J as JsonApiHydratedDataInterface, A as ApiDataInterface } from '../ApiDataInterface-DPP8s46n.mjs';
|
|
4
4
|
import { A as AbstractApiData, a as AbstractService, N as NextRef, P as PreviousRef } from '../AbstractService-BsY6W3Ej.mjs';
|
|
5
|
-
import { M as ModuleInterface, F as FeatureInterface,
|
|
6
|
-
export { A as AuthComponent } from '../AuthComponent-
|
|
7
|
-
import { C as ContentInterface, a as ContentInput } from '../content.interface-
|
|
5
|
+
import { M as ModuleInterface, F as FeatureInterface, R as RoleInterface, a as RoleInput, C as CompanyInterface, b as CompanyInput, U as UserInterface, c as UserInput } from '../user.interface-CooB1R79.mjs';
|
|
6
|
+
export { a as AddUserToRole, A as AuthComponent, U as UserAvatarEditor, b as UserDeleter, c as UserEditor, d as UserMultiSelect, e as UserReactivator, f as UserResentInvitationEmail, g as UserSelector } from '../AuthComponent-CxnGgvoh.mjs';
|
|
7
|
+
import { C as ContentInterface, a as ContentInput } from '../content.interface-FpLfsaRm.mjs';
|
|
8
8
|
export { C as ContentFields, R as RoleFields, U as UserFields } from '../content.fields-cHPdM8GJ.mjs';
|
|
9
|
-
import { N as NotificationInterface, a as NotificationInput } from '../notification.interface-
|
|
9
|
+
import { N as NotificationInterface, a as NotificationInput } from '../notification.interface-B2BrLoDA.mjs';
|
|
10
10
|
import 'lucide-react';
|
|
11
|
+
import 'react/jsx-runtime';
|
|
11
12
|
|
|
12
13
|
interface SearchResultInterface {
|
|
13
14
|
get searchResult(): string;
|
|
@@ -15,8 +16,6 @@ interface SearchResultInterface {
|
|
|
15
16
|
|
|
16
17
|
declare const AuthorModule: (factory: ModuleFactory) => ModuleWithPermissions;
|
|
17
18
|
|
|
18
|
-
declare const CompanyModule: (factory: ModuleFactory) => ModuleWithPermissions;
|
|
19
|
-
|
|
20
19
|
declare const FeatureModule: (factory: ModuleFactory) => ModuleWithPermissions;
|
|
21
20
|
|
|
22
21
|
declare const ModuleModule: (factory: ModuleFactory) => ModuleWithPermissions;
|
|
@@ -54,49 +53,6 @@ declare class FeatureService extends AbstractService {
|
|
|
54
53
|
}): Promise<FeatureInterface[]>;
|
|
55
54
|
}
|
|
56
55
|
|
|
57
|
-
declare class Company extends AbstractApiData implements CompanyInterface {
|
|
58
|
-
private _name?;
|
|
59
|
-
private _logo?;
|
|
60
|
-
private _logoUrl?;
|
|
61
|
-
private _configurations?;
|
|
62
|
-
private _licenseExpirationDate?;
|
|
63
|
-
private _features?;
|
|
64
|
-
private _modules?;
|
|
65
|
-
get name(): string;
|
|
66
|
-
get logo(): string | undefined;
|
|
67
|
-
get logoUrl(): string | undefined;
|
|
68
|
-
get licenseExpirationDate(): Date | undefined;
|
|
69
|
-
get features(): FeatureInterface[];
|
|
70
|
-
get modules(): ModuleInterface[];
|
|
71
|
-
get configurations(): any | undefined;
|
|
72
|
-
rehydrate(data: JsonApiHydratedDataInterface): this;
|
|
73
|
-
createJsonApi(data: CompanyInput): any;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
declare enum CompanyFields {
|
|
77
|
-
companyId = "companyId",
|
|
78
|
-
name = "name",
|
|
79
|
-
createdAt = "createdAt",
|
|
80
|
-
updatedAt = "updatedAt"
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
declare class CompanyService extends AbstractService {
|
|
84
|
-
static findOne(params: {
|
|
85
|
-
companyId: string;
|
|
86
|
-
}): Promise<CompanyInterface>;
|
|
87
|
-
static findMany(params: {
|
|
88
|
-
search?: string;
|
|
89
|
-
next?: NextRef;
|
|
90
|
-
}): Promise<CompanyInterface[]>;
|
|
91
|
-
static delete(params: {
|
|
92
|
-
companyId: string;
|
|
93
|
-
}): Promise<void>;
|
|
94
|
-
static create(params: CompanyInput): Promise<CompanyInterface>;
|
|
95
|
-
static update(params: CompanyInput): Promise<CompanyInterface>;
|
|
96
|
-
static updateConfigurations(params: CompanyInput): Promise<CompanyInterface>;
|
|
97
|
-
static activateLicense(params: CompanyInput): Promise<CompanyInterface>;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
56
|
declare class Role extends AbstractApiData implements RoleInterface {
|
|
101
57
|
private _name?;
|
|
102
58
|
private _description?;
|
|
@@ -155,6 +111,51 @@ declare class RoleService extends AbstractService {
|
|
|
155
111
|
|
|
156
112
|
declare const RoleModule: (factory: ModuleFactory) => ModuleWithPermissions;
|
|
157
113
|
|
|
114
|
+
declare const CompanyModule: (factory: ModuleFactory) => ModuleWithPermissions;
|
|
115
|
+
|
|
116
|
+
declare class Company extends AbstractApiData implements CompanyInterface {
|
|
117
|
+
private _name?;
|
|
118
|
+
private _logo?;
|
|
119
|
+
private _logoUrl?;
|
|
120
|
+
private _configurations?;
|
|
121
|
+
private _licenseExpirationDate?;
|
|
122
|
+
private _features?;
|
|
123
|
+
private _modules?;
|
|
124
|
+
get name(): string;
|
|
125
|
+
get logo(): string | undefined;
|
|
126
|
+
get logoUrl(): string | undefined;
|
|
127
|
+
get licenseExpirationDate(): Date | undefined;
|
|
128
|
+
get features(): FeatureInterface[];
|
|
129
|
+
get modules(): ModuleInterface[];
|
|
130
|
+
get configurations(): any | undefined;
|
|
131
|
+
rehydrate(data: JsonApiHydratedDataInterface): this;
|
|
132
|
+
createJsonApi(data: CompanyInput): any;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
declare enum CompanyFields {
|
|
136
|
+
companyId = "companyId",
|
|
137
|
+
name = "name",
|
|
138
|
+
createdAt = "createdAt",
|
|
139
|
+
updatedAt = "updatedAt"
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
declare class CompanyService extends AbstractService {
|
|
143
|
+
static findOne(params: {
|
|
144
|
+
companyId: string;
|
|
145
|
+
}): Promise<CompanyInterface>;
|
|
146
|
+
static findMany(params: {
|
|
147
|
+
search?: string;
|
|
148
|
+
next?: NextRef;
|
|
149
|
+
}): Promise<CompanyInterface[]>;
|
|
150
|
+
static delete(params: {
|
|
151
|
+
companyId: string;
|
|
152
|
+
}): Promise<void>;
|
|
153
|
+
static create(params: CompanyInput): Promise<CompanyInterface>;
|
|
154
|
+
static update(params: CompanyInput): Promise<CompanyInterface>;
|
|
155
|
+
static updateConfigurations(params: CompanyInput): Promise<CompanyInterface>;
|
|
156
|
+
static activateLicense(params: CompanyInput): Promise<CompanyInterface>;
|
|
157
|
+
}
|
|
158
|
+
|
|
158
159
|
declare class User extends AbstractApiData implements UserInterface, SearchResultInterface {
|
|
159
160
|
private _name?;
|
|
160
161
|
private _email?;
|