strapi-plugin-navigation 3.0.16 → 3.2.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.
Files changed (83) hide show
  1. package/README.md +52 -1
  2. package/dist/_chunks/ca-BQn7S09g.js +1 -0
  3. package/dist/_chunks/{ca-Jr1amAtF.mjs → ca-RyBP-sbV.mjs} +25 -3
  4. package/dist/_chunks/{en-DmeenfQT.mjs → en-DBw_pmms.mjs} +25 -3
  5. package/dist/_chunks/en-DO98mdcm.js +1 -0
  6. package/dist/_chunks/fr-CjFMUCWK.js +1 -0
  7. package/dist/_chunks/{fr-CZx3EMw8.mjs → fr-CnAHMC1C.mjs} +25 -3
  8. package/dist/admin/index.js +350 -363
  9. package/dist/admin/index.mjs +11193 -10887
  10. package/dist/admin/src/api/client.d.ts +15 -1
  11. package/dist/admin/src/api/validators.d.ts +137 -17
  12. package/dist/admin/src/pages/HomePage/components/NavigationContentHeader/ManageNavigationItems/index.d.ts +10 -0
  13. package/dist/admin/src/pages/HomePage/components/{Search → NavigationContentHeader/Search}/index.d.ts +1 -1
  14. package/dist/admin/src/pages/HomePage/components/NavigationEmptyState/index.d.ts +12 -0
  15. package/dist/admin/src/pages/HomePage/components/{AdditionalFieldInput → NavigationItemForm/components/AdditionalFields/AdditionalFieldInput}/index.d.ts +1 -1
  16. package/dist/admin/src/pages/HomePage/components/NavigationItemForm/components/AdditionalFields/AudienceField/index.d.ts +1 -0
  17. package/dist/admin/src/pages/HomePage/components/NavigationItemForm/components/AdditionalFields/CustomFieldsField/index.d.ts +7 -0
  18. package/dist/admin/src/pages/HomePage/components/NavigationItemForm/components/AdditionalFields/index.d.ts +1 -0
  19. package/dist/admin/src/pages/HomePage/components/NavigationItemForm/components/AttachToMenuField/index.d.ts +7 -0
  20. package/dist/admin/src/pages/HomePage/components/NavigationItemForm/components/CopyFromLocales/index.d.ts +12 -0
  21. package/dist/admin/src/pages/HomePage/components/NavigationItemForm/components/NavigationItemTypeField/index.d.ts +1 -0
  22. package/dist/admin/src/pages/HomePage/components/NavigationItemForm/components/PathField/index.d.ts +10 -0
  23. package/dist/admin/src/pages/HomePage/components/NavigationItemForm/components/ReadFieldsFromRelatedField/index.d.ts +1 -0
  24. package/dist/admin/src/pages/HomePage/components/NavigationItemForm/components/RelatedEntityField/hooks.d.ts +3 -0
  25. package/dist/admin/src/pages/HomePage/components/NavigationItemForm/components/RelatedEntityField/index.d.ts +13 -0
  26. package/dist/admin/src/pages/HomePage/components/NavigationItemForm/components/RelatedTypeField/index.d.ts +13 -0
  27. package/dist/admin/src/pages/HomePage/components/NavigationItemForm/components/TitleField/index.d.ts +1 -0
  28. package/dist/admin/src/pages/HomePage/components/NavigationItemForm/context/NavigationItemFormContext.d.ts +14 -0
  29. package/dist/admin/src/pages/HomePage/components/NavigationItemForm/utils/form.d.ts +95 -6
  30. package/dist/admin/src/pages/HomePage/components/NavigationItemForm/utils/hooks.d.ts +259 -0
  31. package/dist/admin/src/pages/HomePage/components/NavigationItemList/index.d.ts +2 -5
  32. package/dist/admin/src/pages/HomePage/components/NavigationItemListItem/index.d.ts +2 -0
  33. package/dist/admin/src/pages/HomePage/hooks/index.d.ts +7 -158
  34. package/dist/admin/src/pages/HomePage/hooks/useAPI.d.ts +162 -0
  35. package/dist/admin/src/pages/HomePage/hooks/useI18nCopyNavigationItemsModal.d.ts +8 -0
  36. package/dist/admin/src/pages/HomePage/hooks/useInvalidateQueries.d.ts +1 -0
  37. package/dist/admin/src/pages/HomePage/hooks/useLocales.d.ts +19 -0
  38. package/dist/admin/src/pages/HomePage/hooks/useNavigationItemPopup.d.ts +93 -0
  39. package/dist/admin/src/pages/HomePage/hooks/useSearch.d.ts +11 -0
  40. package/dist/admin/src/pages/HomePage/hooks/useSettingsPermissions.d.ts +5 -0
  41. package/dist/admin/src/pages/HomePage/utils/appendViewId.d.ts +2 -0
  42. package/dist/admin/src/pages/HomePage/utils/parsers.d.ts +1 -1
  43. package/dist/admin/src/pages/SettingsPage/common/const.d.ts +6 -0
  44. package/dist/admin/src/pages/SettingsPage/components/AdditionalSettingsPanel/index.d.ts +1 -0
  45. package/dist/admin/src/pages/SettingsPage/components/{CustomFieldForm → CustomFieldsPanel/CustomFieldForm}/index.d.ts +3 -3
  46. package/dist/admin/src/pages/SettingsPage/components/{CustomFieldModal → CustomFieldsPanel/CustomFieldModal}/index.d.ts +2 -2
  47. package/dist/admin/src/pages/SettingsPage/components/{CustomFieldTable → CustomFieldsPanel/CustomFieldTable}/index.d.ts +2 -2
  48. package/dist/admin/src/pages/SettingsPage/components/CustomFieldsPanel/index.d.ts +1 -0
  49. package/dist/admin/src/pages/SettingsPage/components/GeneralSettingsPanel/ContentTypesField/index.d.ts +1 -0
  50. package/dist/admin/src/pages/SettingsPage/components/GeneralSettingsPanel/ContentTypesSettings/index.d.ts +1 -0
  51. package/dist/admin/src/pages/SettingsPage/components/GeneralSettingsPanel/DefaultContentTypeField/index.d.ts +1 -0
  52. package/dist/admin/src/pages/SettingsPage/components/GeneralSettingsPanel/PreferCustomContentTypeField/index.d.ts +1 -0
  53. package/dist/admin/src/pages/SettingsPage/components/GeneralSettingsPanel/index.d.ts +1 -0
  54. package/dist/admin/src/pages/SettingsPage/components/RestartPanel/index.d.ts +6 -0
  55. package/dist/admin/src/pages/SettingsPage/components/RestorePanel/index.d.ts +6 -0
  56. package/dist/admin/src/pages/SettingsPage/context/index.d.ts +15 -0
  57. package/dist/admin/src/pages/SettingsPage/hooks/index.d.ts +2 -366
  58. package/dist/admin/src/pages/SettingsPage/hooks/useAPI.d.ts +131 -0
  59. package/dist/admin/src/pages/SettingsPage/hooks/useInitialConfig.d.ts +8 -0
  60. package/dist/admin/src/pages/SettingsPage/schemas/index.d.ts +282 -0
  61. package/dist/admin/src/schemas/config.d.ts +96 -3
  62. package/dist/admin/src/translations/ca.d.ts +22 -0
  63. package/dist/admin/src/translations/en.d.ts +22 -0
  64. package/dist/admin/src/translations/es.d.ts +22 -0
  65. package/dist/admin/src/translations/fr.d.ts +22 -0
  66. package/dist/admin/src/translations/tr.d.ts +22 -0
  67. package/dist/server/index.js +35 -35
  68. package/dist/server/index.mjs +3489 -3603
  69. package/dist/server/src/config/index.d.ts +1 -0
  70. package/dist/server/src/config/setup.d.ts +7 -0
  71. package/dist/server/src/controllers/admin.d.ts +882 -2
  72. package/dist/server/src/controllers/client.d.ts +12 -0
  73. package/dist/server/src/controllers/validators.d.ts +2 -2
  74. package/dist/server/src/index.d.ts +893 -0
  75. package/dist/server/src/schemas/config.d.ts +96 -3
  76. package/dist/server/src/schemas/index.d.ts +1305 -2
  77. package/dist/server/src/services/admin/admin.d.ts +1 -0
  78. package/dist/server/src/services/common/common.d.ts +865 -0
  79. package/dist/server/src/services/index.d.ts +891 -0
  80. package/package.json +9 -2
  81. package/dist/_chunks/ca-Gq9Ty_aG.js +0 -1
  82. package/dist/_chunks/en-BP5RWE-N.js +0 -1
  83. package/dist/_chunks/fr-BIJn6QmK.js +0 -1
@@ -1,158 +1,7 @@
1
- /// <reference types="react" />
2
- import { NavigationItemSchema, NavigationSchema } from '../../../api/validators';
3
- import { Effect } from '../../../types';
4
- import { ConfirmEffect } from '../components/I18nCopyNavigationItems';
5
- export declare const useLocale: () => import("@tanstack/react-query").UseQueryResult<{
6
- defaultLocale: string;
7
- restLocale: string[];
8
- }, Error>;
9
- export interface UseContentTypeItemsInput {
10
- uid: string;
11
- locale?: string;
12
- query?: string;
13
- }
14
- export declare const useContentTypeItems: (input: UseContentTypeItemsInput) => import("@tanstack/react-query").UseQueryResult<({
15
- id: number;
16
- documentId: string;
17
- locale?: string | null | undefined;
18
- } & Record<string, any>)[], Error>;
19
- export declare const useContentTypes: () => import("@tanstack/react-query").UseQueryResult<{
20
- kind: "collectionType" | "singleType";
21
- uid: string;
22
- info: {
23
- displayName: string;
24
- singularName: string;
25
- pluralName: string;
26
- description?: string | undefined;
27
- };
28
- attributes: Record<string, unknown>;
29
- isDisplayed: boolean;
30
- apiID: string;
31
- }[], Error>;
32
- export declare const useResetNavigations: () => () => void;
33
- export declare const useResetContentTypes: () => () => void;
34
- export declare const useNavigations: () => import("@tanstack/react-query").UseQueryResult<{
35
- id: number;
36
- name: string;
37
- documentId: string;
38
- items: NavigationItemSchema[];
39
- slug: string;
40
- locale: string;
41
- visible: boolean;
42
- }[], Error>;
43
- export declare const useHardReset: () => () => void;
44
- export declare const useDeleteNavigations: () => import("@tanstack/react-query").UseMutationResult<import("@strapi/strapi/admin").FetchResponse<any>[], Error, string[], unknown>;
45
- export declare const useCopyNavigationItemI18n: () => import("@tanstack/react-query").UseMutationResult<{
46
- type: "INTERNAL" | "EXTERNAL" | "WRAPPER";
47
- title: string;
48
- uiRouterKey: string;
49
- path?: string | null | undefined;
50
- externalPath?: string | null | undefined;
51
- related?: import("zod").objectOutputType<{
52
- documentId: import("zod").ZodOptional<import("zod").ZodString>;
53
- __type: import("zod").ZodString;
54
- }, import("zod").ZodUnknown, "strip"> | null | undefined;
55
- }, Error, {
56
- source: string;
57
- target: string;
58
- structureId?: string | undefined;
59
- }, unknown>;
60
- export declare const useCopyNavigationI18n: () => import("@tanstack/react-query").UseMutationResult<import("@strapi/strapi/admin").FetchResponse<any>, Error, {
61
- source: string;
62
- target: string;
63
- documentId: string;
64
- }, unknown>;
65
- export declare const useCreateNavigation: () => import("@tanstack/react-query").UseMutationResult<import("@strapi/strapi/admin").FetchResponse<any>, Error, Omit<{
66
- id: number;
67
- name: string;
68
- documentId: string;
69
- items: NavigationItemSchema[];
70
- slug: string;
71
- locale: string;
72
- visible: boolean;
73
- }, "id" | "documentId" | "slug">, unknown>;
74
- export declare const useUpdateNavigation: (onSuccess?: Effect<NavigationSchema>) => import("@tanstack/react-query").UseMutationResult<{
75
- id: number;
76
- name: string;
77
- documentId: string;
78
- items: NavigationItemSchema[];
79
- slug: string;
80
- locale: string;
81
- visible: boolean;
82
- }, Error, {
83
- id: number;
84
- name: string;
85
- documentId: string;
86
- items: NavigationItemSchema[];
87
- slug: string;
88
- locale: string;
89
- visible: boolean;
90
- }, unknown>;
91
- export declare const usePurgeNavigation: () => import("@tanstack/react-query").UseMutationResult<unknown, Error, string[] | undefined, unknown>;
92
- export declare const useConfig: () => import("@tanstack/react-query").UseQueryResult<{
93
- additionalFields: ("audience" | {
94
- name: string;
95
- type: "string" | "boolean";
96
- label: string;
97
- required?: boolean | undefined;
98
- options?: string[] | undefined;
99
- enabled?: boolean | undefined;
100
- multi?: false | undefined;
101
- } | {
102
- name: string;
103
- type: "media";
104
- label: string;
105
- required?: boolean | undefined;
106
- options?: string[] | undefined;
107
- enabled?: boolean | undefined;
108
- multi?: false | undefined;
109
- } | {
110
- name: string;
111
- type: "select";
112
- label: string;
113
- options: string[];
114
- multi: boolean;
115
- required?: boolean | undefined;
116
- enabled?: boolean | undefined;
117
- })[];
118
- allowedLevels: number;
119
- availableAudience: {
120
- id: number;
121
- name: string;
122
- key: string;
123
- documentId: string;
124
- }[];
125
- contentTypes: {
126
- name: string;
127
- label: string;
128
- visible: boolean;
129
- uid: string;
130
- draftAndPublish: boolean;
131
- isSingle: boolean;
132
- description: string;
133
- collectionName: string;
134
- contentTypeName: string;
135
- labelSingular: string;
136
- endpoint: string;
137
- available: boolean;
138
- }[];
139
- contentTypesNameFields: Record<string, string[]>;
140
- contentTypesPopulate: Record<string, string[]>;
141
- gql: {
142
- navigationItemRelated: string[];
143
- };
144
- pathDefaultFields: Record<string, string[]>;
145
- cascadeMenuAttached: boolean;
146
- preferCustomContentTypes: boolean;
147
- allowedContentTypes: string[];
148
- restrictedContentTypes: string[];
149
- isCacheEnabled?: boolean | undefined;
150
- isCachePluginEnabled?: boolean | undefined;
151
- }, Error>;
152
- export declare const useI18nCopyNavigationItemsModal: (onConfirm: ConfirmEffect) => {
153
- setI18nCopyModalOpened: import("react").Dispatch<import("react").SetStateAction<boolean>>;
154
- setI18nCopySourceLocale: import("react").Dispatch<import("react").SetStateAction<string | undefined>>;
155
- i18nCopyItemsModal: import("react/jsx-runtime").JSX.Element | null;
156
- i18nCopySourceLocale: string | undefined;
157
- };
158
- export declare const appendViewId: (item: NavigationItemSchema) => NavigationItemSchema;
1
+ export * from './useAPI';
2
+ export * from './useI18nCopyNavigationItemsModal';
3
+ export * from './useInvalidateQueries';
4
+ export * from './useLocales';
5
+ export * from './useNavigationItemPopup';
6
+ export * from './useSearch';
7
+ export * from './useSettingsPermissions';
@@ -0,0 +1,162 @@
1
+ import { NavigationSchema } from '../../../api/validators';
2
+ import { Effect } from '../../../types';
3
+ export declare const useLocale: () => import("@tanstack/react-query").UseQueryResult<{
4
+ defaultLocale: string;
5
+ restLocale: string[];
6
+ }, Error>;
7
+ export interface UseContentTypeItemsInput {
8
+ uid: string;
9
+ locale?: string;
10
+ query?: string;
11
+ }
12
+ export declare const useContentTypeItems: (input: UseContentTypeItemsInput) => import("@tanstack/react-query").UseQueryResult<({
13
+ id: number;
14
+ documentId: string;
15
+ locale?: string | null | undefined;
16
+ } & Record<string, any>)[], Error>;
17
+ export declare const useContentTypes: () => import("@tanstack/react-query").UseQueryResult<{
18
+ kind: "collectionType" | "singleType";
19
+ uid: string;
20
+ info: {
21
+ displayName: string;
22
+ singularName: string;
23
+ pluralName: string;
24
+ description?: string | undefined;
25
+ };
26
+ attributes: Record<string, unknown>;
27
+ isDisplayed: boolean;
28
+ apiID: string;
29
+ }[], Error>;
30
+ export declare const useResetNavigations: () => () => void;
31
+ export declare const useResetContentTypes: () => () => void;
32
+ export declare const useInvalidateContentTypeItems: (input: UseContentTypeItemsInput) => () => void;
33
+ export declare const useInvalidateNavigations: () => () => void;
34
+ export declare const useInvalidateLocale: () => () => Promise<void>;
35
+ export declare const useNavigations: () => import("@tanstack/react-query").UseQueryResult<{
36
+ id: number;
37
+ name: string;
38
+ documentId: string;
39
+ items: import("../../../api/validators").NavigationItemSchema[];
40
+ slug: string;
41
+ locale: string;
42
+ visible: boolean;
43
+ }[], Error>;
44
+ export declare const useHardReset: () => () => void;
45
+ export declare const useDeleteNavigations: () => import("@tanstack/react-query").UseMutationResult<import("@strapi/strapi/admin").FetchResponse<any>[], Error, string[], unknown>;
46
+ export declare const useCopyNavigationItemI18n: () => import("@tanstack/react-query").UseMutationResult<{
47
+ type: "INTERNAL" | "EXTERNAL" | "WRAPPER";
48
+ title: string;
49
+ uiRouterKey: string;
50
+ path?: string | null | undefined;
51
+ externalPath?: string | null | undefined;
52
+ related?: import("zod").objectOutputType<{
53
+ documentId: import("zod").ZodOptional<import("zod").ZodString>;
54
+ __type: import("zod").ZodString;
55
+ }, import("zod").ZodUnknown, "strip"> | null | undefined;
56
+ }, Error, {
57
+ source: string;
58
+ target: string;
59
+ structureId?: string | undefined;
60
+ }, unknown>;
61
+ export declare const useCopyNavigationI18n: () => import("@tanstack/react-query").UseMutationResult<import("@strapi/strapi/admin").FetchResponse<any>, Error, {
62
+ source: string;
63
+ target: string;
64
+ documentId: string;
65
+ }, unknown>;
66
+ export declare const useCreateNavigation: () => import("@tanstack/react-query").UseMutationResult<import("@strapi/strapi/admin").FetchResponse<any>, Error, Omit<{
67
+ id: number;
68
+ name: string;
69
+ documentId: string;
70
+ items: import("../../../api/validators").NavigationItemSchema[];
71
+ slug: string;
72
+ locale: string;
73
+ visible: boolean;
74
+ }, "id" | "documentId" | "slug">, unknown>;
75
+ export declare const useUpdateNavigation: ({ onError, onSuccess, }: {
76
+ onSuccess?: Effect<NavigationSchema>;
77
+ onError?: Effect<unknown>;
78
+ }) => import("@tanstack/react-query").UseMutationResult<{
79
+ id: number;
80
+ name: string;
81
+ documentId: string;
82
+ items: import("../../../api/validators").NavigationItemSchema[];
83
+ slug: string;
84
+ locale: string;
85
+ visible: boolean;
86
+ }, unknown, {
87
+ id: number;
88
+ name: string;
89
+ documentId: string;
90
+ items: import("../../../api/validators").NavigationItemSchema[];
91
+ slug: string;
92
+ locale: string;
93
+ visible: boolean;
94
+ }, unknown>;
95
+ export declare const usePurgeNavigation: () => import("@tanstack/react-query").UseMutationResult<unknown, Error, string[] | undefined, unknown>;
96
+ export declare const useConfig: () => import("@tanstack/react-query").UseQueryResult<{
97
+ additionalFields: ("audience" | {
98
+ name: string;
99
+ type: "string" | "boolean";
100
+ label: string;
101
+ placeholder?: string | undefined;
102
+ required?: boolean | undefined;
103
+ options?: string[] | undefined;
104
+ description?: string | undefined;
105
+ enabled?: boolean | undefined;
106
+ multi?: false | undefined;
107
+ } | {
108
+ name: string;
109
+ type: "media";
110
+ label: string;
111
+ placeholder?: string | undefined;
112
+ required?: boolean | undefined;
113
+ options?: string[] | undefined;
114
+ description?: string | undefined;
115
+ enabled?: boolean | undefined;
116
+ multi?: false | undefined;
117
+ } | {
118
+ name: string;
119
+ type: "select";
120
+ label: string;
121
+ options: string[];
122
+ multi: boolean;
123
+ placeholder?: string | undefined;
124
+ required?: boolean | undefined;
125
+ description?: string | undefined;
126
+ enabled?: boolean | undefined;
127
+ })[];
128
+ allowedLevels: number;
129
+ availableAudience: {
130
+ id: number;
131
+ name: string;
132
+ key: string;
133
+ documentId: string;
134
+ }[];
135
+ contentTypes: {
136
+ name: string;
137
+ label: string;
138
+ description: string;
139
+ visible: boolean;
140
+ uid: string;
141
+ draftAndPublish: boolean;
142
+ isSingle: boolean;
143
+ collectionName: string;
144
+ contentTypeName: string;
145
+ labelSingular: string;
146
+ endpoint: string;
147
+ available: boolean;
148
+ }[];
149
+ contentTypesNameFields: Record<string, string[]>;
150
+ contentTypesPopulate: Record<string, string[]>;
151
+ gql: {
152
+ navigationItemRelated: string[];
153
+ };
154
+ pathDefaultFields: Record<string, string[]>;
155
+ cascadeMenuAttached: boolean;
156
+ preferCustomContentTypes: boolean;
157
+ allowedContentTypes: string[];
158
+ restrictedContentTypes: string[];
159
+ defaultContentType?: string | undefined;
160
+ isCacheEnabled?: boolean | undefined;
161
+ isCachePluginEnabled?: boolean | undefined;
162
+ }, Error>;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { ConfirmEffect } from '../components/I18nCopyNavigationItems';
3
+ export declare const useI18nCopyNavigationItemsModal: (onConfirm: ConfirmEffect) => {
4
+ setI18nCopyModalOpened: import("react").Dispatch<import("react").SetStateAction<boolean>>;
5
+ setI18nCopySourceLocale: import("react").Dispatch<import("react").SetStateAction<string | undefined>>;
6
+ i18nCopyItemsModal: import("react/jsx-runtime").JSX.Element | null;
7
+ i18nCopySourceLocale: string | undefined;
8
+ };
@@ -0,0 +1 @@
1
+ export declare const useInvalidateQueries: () => void;
@@ -0,0 +1,19 @@
1
+ export interface MakeActionInput<T> {
2
+ trigger(): void;
3
+ cancel(): void;
4
+ perform(input: T): void;
5
+ }
6
+ export declare const useLocales: (navigationsData: any, setStructureChanged: (structureChanged: boolean) => void) => {
7
+ localeData: {
8
+ defaultLocale: string;
9
+ restLocale: string[];
10
+ } | undefined;
11
+ currentLocale: string | undefined;
12
+ isChangeLanguageVisible: boolean;
13
+ changeCurrentLocaleAction: {
14
+ perform: (next?: string | undefined) => void;
15
+ trigger: (next: string) => void;
16
+ cancel: () => void;
17
+ };
18
+ availableLocales: string[];
19
+ };
@@ -0,0 +1,93 @@
1
+ import { NavigationItemFormSchema } from '../components/NavigationItemForm';
2
+ export declare const useNavigationItemPopup: (canUpdate: boolean) => {
3
+ activeNavigationItem: Partial<{
4
+ type: "EXTERNAL";
5
+ title: string;
6
+ additionalFields: {
7
+ [x: string]: any;
8
+ };
9
+ externalPath: string;
10
+ uiRouterKey: string;
11
+ id?: number | undefined;
12
+ order?: number | undefined;
13
+ path?: string | null | undefined;
14
+ audience?: string[] | undefined;
15
+ documentId?: string | undefined;
16
+ menuAttached?: boolean | undefined;
17
+ collapsed?: boolean | undefined;
18
+ autoSync?: boolean | undefined;
19
+ related?: string | undefined;
20
+ viewId?: number | undefined;
21
+ viewParentId?: number | undefined;
22
+ structureId?: string | undefined;
23
+ removed?: boolean | undefined;
24
+ isSearchActive?: boolean | undefined;
25
+ updated?: boolean | undefined;
26
+ items?: any[] | undefined;
27
+ relatedType?: string | undefined;
28
+ levelPath?: string | undefined;
29
+ isMenuAllowedLevel?: boolean | undefined;
30
+ parentAttachedToMenu?: boolean | undefined;
31
+ } | {
32
+ type: "INTERNAL";
33
+ title: string;
34
+ additionalFields: {
35
+ [x: string]: any;
36
+ };
37
+ uiRouterKey: string;
38
+ relatedType: string;
39
+ id?: number | undefined;
40
+ order?: number | undefined;
41
+ path?: string | null | undefined;
42
+ audience?: string[] | undefined;
43
+ documentId?: string | undefined;
44
+ externalPath?: string | null | undefined;
45
+ menuAttached?: boolean | undefined;
46
+ collapsed?: boolean | undefined;
47
+ autoSync?: boolean | undefined;
48
+ related?: string | undefined;
49
+ viewId?: number | undefined;
50
+ viewParentId?: number | undefined;
51
+ structureId?: string | undefined;
52
+ removed?: boolean | undefined;
53
+ isSearchActive?: boolean | undefined;
54
+ updated?: boolean | undefined;
55
+ items?: any[] | undefined;
56
+ levelPath?: string | undefined;
57
+ isMenuAllowedLevel?: boolean | undefined;
58
+ parentAttachedToMenu?: boolean | undefined;
59
+ } | {
60
+ type: "WRAPPER";
61
+ title: string;
62
+ additionalFields: {
63
+ [x: string]: any;
64
+ };
65
+ uiRouterKey: string;
66
+ id?: number | undefined;
67
+ order?: number | undefined;
68
+ path?: string | null | undefined;
69
+ audience?: string[] | undefined;
70
+ documentId?: string | undefined;
71
+ menuAttached?: boolean | undefined;
72
+ collapsed?: boolean | undefined;
73
+ autoSync?: boolean | undefined;
74
+ viewId?: number | undefined;
75
+ viewParentId?: number | undefined;
76
+ structureId?: string | undefined;
77
+ removed?: boolean | undefined;
78
+ isSearchActive?: boolean | undefined;
79
+ updated?: boolean | undefined;
80
+ items?: any[] | undefined;
81
+ levelPath?: string | undefined;
82
+ isMenuAllowedLevel?: boolean | undefined;
83
+ parentAttachedToMenu?: boolean | undefined;
84
+ }> | undefined;
85
+ addNewNavigationItem: (event: MouseEvent, viewParentId?: number, isMenuAllowedLevel?: boolean, levelPath?: string, parentAttachedToMenu?: boolean, structureId?: string, maxOrder?: number) => void;
86
+ editNavigationItem: ({ item, levelPath, parentAttachedToMenu, }: {
87
+ item: NavigationItemFormSchema;
88
+ levelPath?: string;
89
+ parentAttachedToMenu?: boolean;
90
+ }) => void;
91
+ closeNavigationItemPopup: () => void;
92
+ isItemPopupVisible: boolean;
93
+ };
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import { NavigationItemSchema, NavigationSchema } from '../../../api/validators';
3
+ export declare const useSearch: (currentNavigation: NavigationSchema | undefined) => {
4
+ searchValue: string;
5
+ setSearchValue: import("react").Dispatch<import("react").SetStateAction<{
6
+ value: string;
7
+ index: number;
8
+ }>>;
9
+ isSearchEmpty: boolean;
10
+ filteredList: NavigationItemSchema[];
11
+ };
@@ -0,0 +1,5 @@
1
+ export declare const useSettingsPermissions: () => {
2
+ canAccess: boolean;
3
+ canUpdate: boolean;
4
+ isLoadingForPermissions: boolean;
5
+ };
@@ -0,0 +1,2 @@
1
+ import { NavigationItemSchema } from '../../../api/validators';
2
+ export declare const appendViewId: (item: NavigationItemSchema) => NavigationItemSchema;
@@ -4,12 +4,12 @@ export declare const transformItemToViewPayload: (payload: NavigationItemFormSch
4
4
  id: number;
5
5
  type: "INTERNAL" | "EXTERNAL" | "WRAPPER";
6
6
  order: number;
7
- path: string;
8
7
  title: string;
9
8
  documentId: string;
10
9
  uiRouterKey: string;
11
10
  menuAttached: boolean;
12
11
  collapsed: boolean;
12
+ path?: string | null | undefined;
13
13
  additionalFields?: Record<string, unknown> | null | undefined;
14
14
  audience?: {
15
15
  id: number;
@@ -1 +1,7 @@
1
1
  export declare const customFieldsTypes: readonly ["string", "boolean", "select", "media"];
2
+ export declare const BOX_DEFAULT_PROPS: {
3
+ background: string;
4
+ hasRadius: boolean;
5
+ shadow: string;
6
+ padding: number;
7
+ };
@@ -0,0 +1 @@
1
+ export declare const AdditionalSettingsPanel: () => import("react/jsx-runtime").JSX.Element;
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
- import { NavigationItemCustomField } from '../../../../schemas';
3
- import { Effect, VoidEffect } from '../../../../types';
2
+ import { NavigationItemCustomField } from '../../../../../schemas';
3
+ import { Effect, VoidEffect } from '../../../../../types';
4
4
  interface ICustomFieldFormProps {
5
- customField: Partial<NavigationItemCustomField>;
5
+ customField: NavigationItemCustomField | null;
6
6
  isEditForm: boolean;
7
7
  onSubmit: Effect<NavigationItemCustomField>;
8
8
  onClose: VoidEffect;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { NavigationItemCustomField } from '../../../../schemas';
3
- import { Effect, VoidEffect } from '../../../../types';
2
+ import { NavigationItemCustomField } from '../../../../../schemas';
3
+ import { Effect, VoidEffect } from '../../../../../types';
4
4
  interface ICustomFieldModalProps {
5
5
  data: NavigationItemCustomField | null;
6
6
  isOpen: boolean;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import { NavigationItemCustomField } from '../../../../schemas';
3
- import { Effect } from '../../../../types';
2
+ import { NavigationItemCustomField } from '../../../../../schemas';
3
+ import { Effect } from '../../../../../types';
4
4
  interface ICustomFieldTableProps {
5
5
  data: (NavigationItemCustomField | string)[];
6
6
  onOpenModal: (field: NavigationItemCustomField | null) => void;
@@ -0,0 +1 @@
1
+ export declare const CustomFieldsPanel: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const ContentTypesField: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const ContentTypesSettings: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const DefaultContentTypeField: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const PreferCustomContentTypesField: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const GeneralSettingsPanel: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ type RestartPanelProps = {
3
+ setIsReloading: (isReloading: boolean) => void;
4
+ };
5
+ export declare const RestartPanel: React.FC<RestartPanelProps>;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ type RestorePanelProps = {
3
+ hasSettingsReadPermissions: boolean;
4
+ };
5
+ export declare const RestorePanel: React.FC<RestorePanelProps>;
6
+ export {};
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ import { FormChangeEvent } from '../../../types';
3
+ import { RestartStatus } from '../types';
4
+ import { UiFormSchema } from '../schemas';
5
+ export type SettingsContextType = {
6
+ values: UiFormSchema;
7
+ onChange: (eventOrPath: React.ChangeEvent<any> | string, value?: any) => void;
8
+ handleChange: (eventOrPath: FormChangeEvent, value?: any, nativeOnChange?: (eventOrPath: FormChangeEvent, value?: any) => void) => void;
9
+ restartStatus: RestartStatus;
10
+ setRestartStatus: (restartStatus: RestartStatus) => void;
11
+ renderError: (error: string) => string | undefined;
12
+ setFormValueItem: (path: string, value: any) => void;
13
+ };
14
+ export declare const SettingsContext: import("react").Context<SettingsContextType>;
15
+ export declare const useSettingsContext: () => SettingsContextType;