@mattisvensson/strapi-plugin-webatlas 0.10.0 → 0.10.1

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 (152) hide show
  1. package/dist/{_chunks/SettingTitle-CdR3SVn_.mjs → admin/SettingTitle-DbsxB1V9.mjs} +2 -2
  2. package/dist/{_chunks/SettingTitle-RU1azFIM.js → admin/SettingTitle-uw1S5OmC.js} +2 -2
  3. package/dist/{_chunks/index-CIM-JzLK.mjs → admin/index-B07KlG03.mjs} +5 -5
  4. package/dist/{_chunks/index-BvcX9hcc.mjs → admin/index-BKWY9Ta-.mjs} +3 -3
  5. package/dist/admin/index-BXt-QjKo.js +9368 -0
  6. package/dist/{_chunks/index-D-vJE_K8.js → admin/index-BYlmJycd.js} +2 -2
  7. package/dist/{_chunks/index-BucL4va6.js → admin/index-CGsC8P9P.js} +5 -5
  8. package/dist/{_chunks/index-B07UVUOa.mjs → admin/index-CIr8o1RP.mjs} +24 -135
  9. package/dist/{_chunks/index-BmyxSosC.mjs → admin/index-CUaBX_v-.mjs} +2 -2
  10. package/dist/{_chunks/index-BxpDM360.js → admin/index-DC5WwNdi.js} +24 -135
  11. package/dist/{_chunks/index-d09V61nm.js → admin/index-DkqiqVx2.js} +3 -3
  12. package/dist/admin/index-tPrfjOIn.mjs +9368 -0
  13. package/dist/admin/index.js +3 -2
  14. package/dist/admin/index.mjs +1 -1
  15. package/dist/server/index.js +4637 -4325
  16. package/dist/server/index.mjs +4635 -4324
  17. package/dist/server/src/index.d.ts +9 -9
  18. package/package.json +19 -7
  19. package/dist/_chunks/index-CNKWb8pn.mjs +0 -8604
  20. package/dist/_chunks/index-IRSCe8PX.js +0 -8604
  21. package/dist/admin/src/components/CMEditViewAside/NewPathInfo.d.ts +0 -2
  22. package/dist/admin/src/components/CMEditViewAside/OverrideCheckbox.d.ts +0 -7
  23. package/dist/admin/src/components/CMEditViewAside/Panel.d.ts +0 -5
  24. package/dist/admin/src/components/CMEditViewAside/PathInput.d.ts +0 -11
  25. package/dist/admin/src/components/CMEditViewAside/RouteStructure.d.ts +0 -3
  26. package/dist/admin/src/components/CMEditViewAside/UidPathDisplay.d.ts +0 -4
  27. package/dist/admin/src/components/CMEditViewAside/index.d.ts +0 -3
  28. package/dist/admin/src/components/Initializer.d.ts +0 -5
  29. package/dist/admin/src/components/PathInfo.d.ts +0 -6
  30. package/dist/admin/src/components/PluginIcon.d.ts +0 -3
  31. package/dist/admin/src/components/Tooltip.d.ts +0 -3
  32. package/dist/admin/src/components/UI/Center.d.ts +0 -5
  33. package/dist/admin/src/components/UI/EmptyBox.d.ts +0 -5
  34. package/dist/admin/src/components/UI/FullLoader.d.ts +0 -3
  35. package/dist/admin/src/components/UI/index.d.ts +0 -4
  36. package/dist/admin/src/components/modals/Delete.d.ts +0 -14
  37. package/dist/admin/src/components/modals/NavCreate.d.ts +0 -1
  38. package/dist/admin/src/components/modals/NavEdit.d.ts +0 -7
  39. package/dist/admin/src/components/modals/NavModal.d.ts +0 -17
  40. package/dist/admin/src/components/modals/NavOverview.d.ts +0 -8
  41. package/dist/admin/src/components/modals/externalItem/index.d.ts +0 -15
  42. package/dist/admin/src/components/modals/index.d.ts +0 -12
  43. package/dist/admin/src/components/modals/internalItem/ItemDetails.d.ts +0 -13
  44. package/dist/admin/src/components/modals/internalItem/internalItemCreate.d.ts +0 -3
  45. package/dist/admin/src/components/modals/internalItem/internalItemEdit.d.ts +0 -3
  46. package/dist/admin/src/components/modals/useModalSharedLogic.d.ts +0 -2
  47. package/dist/admin/src/components/modals/withModalSharedLogic.d.ts +0 -3
  48. package/dist/admin/src/components/modals/wrapperItem/index.d.ts +0 -15
  49. package/dist/admin/src/contexts/index.d.ts +0 -13
  50. package/dist/admin/src/hooks/index.d.ts +0 -6
  51. package/dist/admin/src/hooks/useAllContentTypes.d.ts +0 -7
  52. package/dist/admin/src/hooks/useAllEntities.d.ts +0 -7
  53. package/dist/admin/src/hooks/useApi.d.ts +0 -18
  54. package/dist/admin/src/hooks/useNavigations.d.ts +0 -7
  55. package/dist/admin/src/hooks/usePluginConfig.d.ts +0 -9
  56. package/dist/admin/src/pages/Navigation/Page.d.ts +0 -2
  57. package/dist/admin/src/pages/Navigation/PageWrapper.d.ts +0 -7
  58. package/dist/admin/src/pages/Navigation/RouteItem.d.ts +0 -3
  59. package/dist/admin/src/pages/Navigation/RouteItemBadge.d.ts +0 -4
  60. package/dist/admin/src/pages/Navigation/RouteItemIcon.d.ts +0 -5
  61. package/dist/admin/src/pages/Navigation/RouteItemMenu.d.ts +0 -10
  62. package/dist/admin/src/pages/Navigation/RouteItemStatus.d.ts +0 -5
  63. package/dist/admin/src/pages/Navigation/SortableRouteItem.d.ts +0 -2
  64. package/dist/admin/src/pages/Navigation/index.d.ts +0 -2
  65. package/dist/admin/src/pages/Paths/PageWrapper.d.ts +0 -4
  66. package/dist/admin/src/pages/Paths/PathTable.d.ts +0 -8
  67. package/dist/admin/src/pages/Paths/SearchInput.d.ts +0 -6
  68. package/dist/admin/src/pages/Paths/TableHeader.d.ts +0 -5
  69. package/dist/admin/src/pages/Paths/TableRow.d.ts +0 -4
  70. package/dist/admin/src/pages/Paths/compareBy.d.ts +0 -3
  71. package/dist/admin/src/pages/Paths/index.d.ts +0 -2
  72. package/dist/admin/src/pages/Settings/ContentBox.d.ts +0 -5
  73. package/dist/admin/src/pages/Settings/General/ContentTypeAccordion.d.ts +0 -7
  74. package/dist/admin/src/pages/Settings/General/index.d.ts +0 -2
  75. package/dist/admin/src/pages/Settings/Navigation/index.d.ts +0 -2
  76. package/dist/admin/src/pages/Settings/PageWrapper.d.ts +0 -8
  77. package/dist/admin/src/pages/Settings/SettingTitle.d.ts +0 -4
  78. package/dist/admin/src/pages/Settings/index.d.ts +0 -4
  79. package/dist/admin/src/permissions.d.ts +0 -23
  80. package/dist/admin/src/types/index.d.ts +0 -4
  81. package/dist/admin/src/types/modal.d.ts +0 -56
  82. package/dist/admin/src/types/navigation.d.ts +0 -18
  83. package/dist/admin/src/types/panel.d.ts +0 -41
  84. package/dist/admin/src/types/route.d.ts +0 -2
  85. package/dist/admin/src/utils/buildBreadcrumbString.d.ts +0 -16
  86. package/dist/admin/src/utils/createTempNavItemObject.d.ts +0 -22
  87. package/dist/admin/src/utils/debounce.d.ts +0 -1
  88. package/dist/admin/src/utils/dnd.d.ts +0 -13
  89. package/dist/admin/src/utils/duplicateCheck.d.ts +0 -15
  90. package/dist/admin/src/utils/findParentNavItem.d.ts +0 -13
  91. package/dist/admin/src/utils/getTranslation.d.ts +0 -2
  92. package/dist/admin/src/utils/index.d.ts +0 -8
  93. package/dist/admin/src/utils/typeChecks.d.ts +0 -3
  94. package/dist/server/src/bootstrap.d.ts +0 -5
  95. package/dist/server/src/config/index.d.ts +0 -10
  96. package/dist/server/src/content-types/index.d.ts +0 -202
  97. package/dist/server/src/content-types/navigation/index.d.ts +0 -50
  98. package/dist/server/src/content-types/navigation/schema.d.ts +0 -48
  99. package/dist/server/src/content-types/navitem/index.d.ts +0 -51
  100. package/dist/server/src/content-types/navitem/schema.d.ts +0 -49
  101. package/dist/server/src/content-types/route/index.d.ts +0 -101
  102. package/dist/server/src/content-types/route/schema.d.ts +0 -99
  103. package/dist/server/src/controllers/admin.d.ts +0 -15
  104. package/dist/server/src/controllers/client.d.ts +0 -8
  105. package/dist/server/src/controllers/index.d.ts +0 -23
  106. package/dist/server/src/destroy.d.ts +0 -5
  107. package/dist/server/src/middlewares/index.d.ts +0 -2
  108. package/dist/server/src/migrations/001-canonical-path.d.ts +0 -7
  109. package/dist/server/src/migrations/index.d.ts +0 -3
  110. package/dist/server/src/policies/has-permissions.d.ts +0 -2
  111. package/dist/server/src/policies/index.d.ts +0 -4
  112. package/dist/server/src/register.d.ts +0 -5
  113. package/dist/server/src/routes/admin.d.ts +0 -17
  114. package/dist/server/src/routes/client.d.ts +0 -12
  115. package/dist/server/src/routes/index.d.ts +0 -30
  116. package/dist/server/src/services/admin.d.ts +0 -18
  117. package/dist/server/src/services/client.d.ts +0 -8
  118. package/dist/server/src/services/index.d.ts +0 -25
  119. package/dist/server/src/utils/buildCanonicalPath.d.ts +0 -1
  120. package/dist/server/src/utils/buildNavigationPath.d.ts +0 -5
  121. package/dist/server/src/utils/buildStructuredNavigation.d.ts +0 -11
  122. package/dist/server/src/utils/cascadeCanonicalPathUpdates.d.ts +0 -1
  123. package/dist/server/src/utils/cleanRootKeys.d.ts +0 -1
  124. package/dist/server/src/utils/duplicateCheck.d.ts +0 -1
  125. package/dist/server/src/utils/extractRouteAndItems.d.ts +0 -2
  126. package/dist/server/src/utils/getNonInternalRouteIds.d.ts +0 -1
  127. package/dist/server/src/utils/getRouteAncestors.d.ts +0 -1
  128. package/dist/server/src/utils/getRouteDescendants.d.ts +0 -1
  129. package/dist/server/src/utils/index.d.ts +0 -19
  130. package/dist/server/src/utils/navItemHandler.d.ts +0 -5
  131. package/dist/server/src/utils/navigationItemStructure.d.ts +0 -27
  132. package/dist/server/src/utils/pluginHelpers.d.ts +0 -3
  133. package/dist/server/src/utils/populateDeep.d.ts +0 -4
  134. package/dist/server/src/utils/reduceDepthOfOrphanedItems.d.ts +0 -2
  135. package/dist/server/src/utils/removeWaFields.d.ts +0 -1
  136. package/dist/server/src/utils/routeHandler.d.ts +0 -5
  137. package/dist/server/src/utils/validateRouteDependencies.d.ts +0 -4
  138. package/dist/types/api.d.ts +0 -7
  139. package/dist/types/index.d.ts +0 -4
  140. package/dist/types/navigation.d.ts +0 -66
  141. package/dist/types/route.d.ts +0 -37
  142. package/dist/types/strapi.d.ts +0 -52
  143. package/dist/utils/index.d.ts +0 -4
  144. package/dist/utils/pluginConstants.d.ts +0 -3
  145. package/dist/utils/pluginId.d.ts +0 -4
  146. package/dist/utils/transformToUrl.d.ts +0 -1
  147. /package/dist/{_chunks → admin}/FullLoader-Cmsf8xS6.js +0 -0
  148. /package/dist/{_chunks → admin}/FullLoader-CrPED_dY.mjs +0 -0
  149. /package/dist/{_chunks → admin}/de-B5pRvs13.mjs +0 -0
  150. /package/dist/{_chunks → admin}/de-CqU1FU8C.js +0 -0
  151. /package/dist/{_chunks → admin}/en-BE-zzIv8.mjs +0 -0
  152. /package/dist/{_chunks → admin}/en-C7I90FwV.js +0 -0
@@ -1,99 +0,0 @@
1
- declare const _default: {
2
- collectionName: string;
3
- info: {
4
- singularName: string;
5
- pluralName: string;
6
- displayName: string;
7
- name: string;
8
- };
9
- options: {
10
- increments: boolean;
11
- timestamps: boolean;
12
- comment: string;
13
- };
14
- pluginOptions: {
15
- "content-manager": {
16
- visible: boolean;
17
- };
18
- "content-type-builder": {
19
- visible: boolean;
20
- };
21
- };
22
- attributes: {
23
- relatedContentType: {
24
- type: string;
25
- required: boolean;
26
- configurable: boolean;
27
- };
28
- relatedId: {
29
- type: string;
30
- required: boolean;
31
- configurable: boolean;
32
- };
33
- relatedDocumentId: {
34
- type: string;
35
- required: boolean;
36
- configurable: boolean;
37
- };
38
- title: {
39
- type: string;
40
- required: boolean;
41
- configurable: boolean;
42
- };
43
- path: {
44
- type: string;
45
- configurable: boolean;
46
- };
47
- canonicalPath: {
48
- type: string;
49
- configurable: boolean;
50
- };
51
- slug: {
52
- type: string;
53
- configurable: boolean;
54
- };
55
- uidPath: {
56
- type: string;
57
- configurable: boolean;
58
- };
59
- isOverride: {
60
- type: string;
61
- default: boolean;
62
- configurable: boolean;
63
- };
64
- active: {
65
- type: string;
66
- default: boolean;
67
- configurable: boolean;
68
- };
69
- navitem: {
70
- type: string;
71
- configurable: boolean;
72
- relation: string;
73
- target: string;
74
- mappedBy: string;
75
- };
76
- type: {
77
- type: string;
78
- enum: string[];
79
- default: string;
80
- configurable: boolean;
81
- required: boolean;
82
- };
83
- parent: {
84
- type: string;
85
- relation: string;
86
- target: string;
87
- inversedBy: string;
88
- configurable: boolean;
89
- };
90
- children: {
91
- type: string;
92
- relation: string;
93
- target: string;
94
- mappedBy: string;
95
- configurable: boolean;
96
- };
97
- };
98
- };
99
- export default _default;
@@ -1,15 +0,0 @@
1
- declare const admin: () => {
2
- updateConfig(ctx: any): Promise<any>;
3
- getConfig(ctx: any): Promise<any>;
4
- getRoute(ctx: any): Promise<any>;
5
- getAllRoutes(ctx: any): Promise<any>;
6
- getRelatedRoute(ctx: any): Promise<any>;
7
- getProhibitedRouteIds(ctx: any): Promise<any>;
8
- getNavigation(ctx: any): Promise<any>;
9
- createNavigation(ctx: any): Promise<any>;
10
- updateNavigation(ctx: any): Promise<any>;
11
- updateNavigationItemStructure(ctx: any): Promise<any>;
12
- deleteNavigation(ctx: any): Promise<any>;
13
- checkUniquePath(ctx: any): Promise<any>;
14
- };
15
- export default admin;
@@ -1,8 +0,0 @@
1
- import type { Core } from '@strapi/strapi';
2
- declare const client: ({ strapi }: {
3
- strapi: Core.Strapi;
4
- }) => {
5
- getEntityByPath(ctx: any): Promise<any>;
6
- getNavigation(ctx: any): Promise<any>;
7
- };
8
- export default client;
@@ -1,23 +0,0 @@
1
- declare const _default: {
2
- admin: () => {
3
- updateConfig(ctx: any): Promise<any>;
4
- getConfig(ctx: any): Promise<any>;
5
- getRoute(ctx: any): Promise<any>;
6
- getAllRoutes(ctx: any): Promise<any>;
7
- getRelatedRoute(ctx: any): Promise<any>;
8
- getProhibitedRouteIds(ctx: any): Promise<any>;
9
- getNavigation(ctx: any): Promise<any>;
10
- createNavigation(ctx: any): Promise<any>;
11
- updateNavigation(ctx: any): Promise<any>;
12
- updateNavigationItemStructure(ctx: any): Promise<any>;
13
- deleteNavigation(ctx: any): Promise<any>;
14
- checkUniquePath(ctx: any): Promise<any>;
15
- };
16
- client: ({ strapi }: {
17
- strapi: import("@strapi/types/dist/core").Strapi;
18
- }) => {
19
- getEntityByPath(ctx: any): Promise<any>;
20
- getNavigation(ctx: any): Promise<any>;
21
- };
22
- };
23
- export default _default;
@@ -1,5 +0,0 @@
1
- import type { Core } from '@strapi/strapi';
2
- declare const destroy: ({ strapi }: {
3
- strapi: Core.Strapi;
4
- }) => void;
5
- export default destroy;
@@ -1,2 +0,0 @@
1
- declare const _default: {};
2
- export default _default;
@@ -1,7 +0,0 @@
1
- import type { Core } from '@strapi/strapi';
2
- declare const _default: {
3
- version: string;
4
- description: string;
5
- up(strapi: Core.Strapi): Promise<void>;
6
- };
7
- export default _default;
@@ -1,3 +0,0 @@
1
- import type { Core } from '@strapi/strapi';
2
- export declare const runMigrations: (strapi: Core.Strapi) => Promise<void>;
3
- export default runMigrations;
@@ -1,2 +0,0 @@
1
- declare const _default: (policyContext: any, config: any, { strapi }: any) => boolean;
2
- export default _default;
@@ -1,4 +0,0 @@
1
- declare const _default: {
2
- 'has-permissions': (policyContext: any, config: any, { strapi }: any) => boolean;
3
- };
4
- export default _default;
@@ -1,5 +0,0 @@
1
- import { Core } from '@strapi/strapi';
2
- declare const _default: ({ strapi }: {
3
- strapi: Core.Strapi;
4
- }) => void;
5
- export default _default;
@@ -1,17 +0,0 @@
1
- declare const _default: {
2
- type: string;
3
- routes: {
4
- method: string;
5
- path: string;
6
- handler: string;
7
- config: {
8
- policies: (string | {
9
- name: string;
10
- config: {
11
- actions: string[];
12
- };
13
- })[];
14
- };
15
- }[];
16
- };
17
- export default _default;
@@ -1,12 +0,0 @@
1
- declare const _default: {
2
- type: string;
3
- routes: {
4
- method: string;
5
- path: string;
6
- handler: string;
7
- config: {
8
- policies: any[];
9
- };
10
- }[];
11
- };
12
- export default _default;
@@ -1,30 +0,0 @@
1
- declare const _default: {
2
- admin: {
3
- type: string;
4
- routes: {
5
- method: string;
6
- path: string;
7
- handler: string;
8
- config: {
9
- policies: (string | {
10
- name: string;
11
- config: {
12
- actions: string[];
13
- };
14
- })[];
15
- };
16
- }[];
17
- };
18
- 'content-api': {
19
- type: string;
20
- routes: {
21
- method: string;
22
- path: string;
23
- handler: string;
24
- config: {
25
- policies: any[];
26
- };
27
- }[];
28
- };
29
- };
30
- export default _default;
@@ -1,18 +0,0 @@
1
- import type { NavigationInput, NestedNavItem, PluginConfig, StructuredNavigationVariant } from "../../../types";
2
- declare const _default: ({ strapi }: {
3
- strapi: any;
4
- }) => {
5
- updateConfig(newConfig: Partial<PluginConfig>): Promise<PluginConfig | "Error. Couldn't update config">;
6
- getConfig(): Promise<any>;
7
- getRoute(documentId: string): Promise<any>;
8
- getAllRoutes(): Promise<any>;
9
- getRelatedRoute(documentId: string): Promise<any>;
10
- getProhibitedRouteIds(documentId: string | undefined): Promise<string[]>;
11
- getNavigation(documentId?: string, variant?: StructuredNavigationVariant | "namesOnly"): Promise<any>;
12
- createNavigation(name: string, visible: boolean): Promise<any>;
13
- updateNavigation(documentId: string, data: NavigationInput): Promise<any>;
14
- deleteNavigation(documentId: string): Promise<any>;
15
- updateNavigationItemStructure(navigationId: string, navigationItems: NestedNavItem[]): Promise<boolean>;
16
- checkUniquePath(initialPath: string, targetRouteDocumentId?: string | null): Promise<string>;
17
- };
18
- export default _default;
@@ -1,8 +0,0 @@
1
- import { StructuredNavigationVariant } from "../../../types";
2
- declare const _default: ({ strapi }: {
3
- strapi: any;
4
- }) => {
5
- getEntityByPath(slug: string, populate: string, populateDeepDepth: string, fields: any, status?: 'draft' | 'published'): Promise<any>;
6
- getNavigation(id: string, name: string, documentId: string, variant?: StructuredNavigationVariant): Promise<any>;
7
- };
8
- export default _default;
@@ -1,25 +0,0 @@
1
- declare const _default: {
2
- admin: ({ strapi }: {
3
- strapi: any;
4
- }) => {
5
- updateConfig(newConfig: Partial<import("../../../types").PluginConfig>): Promise<import("../../../types").PluginConfig | "Error. Couldn't update config">;
6
- getConfig(): Promise<any>;
7
- getRoute(documentId: string): Promise<any>;
8
- getAllRoutes(): Promise<any>;
9
- getRelatedRoute(documentId: string): Promise<any>;
10
- getProhibitedRouteIds(documentId: string): Promise<string[]>;
11
- getNavigation(documentId?: string, variant?: import("../../../types").StructuredNavigationVariant | "namesOnly"): Promise<any>;
12
- createNavigation(name: string, visible: boolean): Promise<any>;
13
- updateNavigation(documentId: string, data: import("../../../types").NavigationInput): Promise<any>;
14
- deleteNavigation(documentId: string): Promise<any>;
15
- updateNavigationItemStructure(navigationId: string, navigationItems: import("../../../types").NestedNavItem[]): Promise<boolean>;
16
- checkUniquePath(initialPath: string, targetRouteDocumentId?: string): Promise<string>;
17
- };
18
- client: ({ strapi }: {
19
- strapi: any;
20
- }) => {
21
- getEntityByPath(slug: string, populate: string, populateDeepDepth: string, fields: any, status?: "published" | "draft"): Promise<any>;
22
- getNavigation(id: string, name: string, documentId: string, variant?: import("../../../types").StructuredNavigationVariant): Promise<any>;
23
- };
24
- };
25
- export default _default;
@@ -1 +0,0 @@
1
- export default function buildCanonicalPath(slug: string, parentDocumentId: string): Promise<string>;
@@ -1,5 +0,0 @@
1
- export default function buildNavigationPath({ slug, routeDocumentId, calculatedParent, }: {
2
- slug: string;
3
- routeDocumentId?: string;
4
- calculatedParent: string | null;
5
- }): Promise<string>;
@@ -1,11 +0,0 @@
1
- import { NestedNavigation, StructuredNavigationVariant } from "../../../types";
2
- export default function buildStructuredNavigation(navigation: NestedNavigation, variant?: StructuredNavigationVariant): {
3
- items: any[];
4
- id: number;
5
- documentId: string;
6
- name: string;
7
- slug: string;
8
- visible: boolean;
9
- updatedAt: string;
10
- createdAt: string;
11
- };
@@ -1 +0,0 @@
1
- export default function cascadeCanonicalPathUpdates(parentRouteId: string, newParentCanonicalPath: string): Promise<void>;
@@ -1 +0,0 @@
1
- export default function cleanRootKeys(obj: any): any;
@@ -1 +0,0 @@
1
- export default function duplicateCheck(initialPath: string, targetRouteDocumentId?: string | null): Promise<string>;
@@ -1,2 +0,0 @@
1
- import { NestedNavItem } from "../../../types";
2
- export default function extractRouteAndItems(items: NestedNavItem[]): any[];
@@ -1 +0,0 @@
1
- export default function getNonInternalRouteIds(): Promise<string[]>;
@@ -1 +0,0 @@
1
- export default function getRouteAncestors(routeId: string): Promise<string[]>;
@@ -1 +0,0 @@
1
- export default function getRouteDescendants(routeId: string): Promise<string[]>;
@@ -1,19 +0,0 @@
1
- import duplicateCheck from "./duplicateCheck";
2
- import { createNavItem, updateNavItem, deleteNavItem } from "./navItemHandler";
3
- import { getAdminService, getClientService } from "./pluginHelpers";
4
- import reduceDepthOfOrphanedItems from "./reduceDepthOfOrphanedItems";
5
- import { createExternalRoute, updateRoute, deleteRoute } from "./routeHandler";
6
- import buildStructuredNavigation from './buildStructuredNavigation';
7
- import extractRouteAndItems from './extractRouteAndItems';
8
- import getFullPopulateObject from './populateDeep';
9
- import cleanRootKeys from './cleanRootKeys';
10
- import removeWaFields from './removeWaFields';
11
- import buildCanonicalPath from './buildCanonicalPath';
12
- import cascadeCanonicalPathUpdates from "./cascadeCanonicalPathUpdates";
13
- import getRouteAncestors from "./getRouteAncestors";
14
- import getRouteDescendants from "./getRouteDescendants";
15
- import getNonInternalRouteIds from "./getNonInternalRouteIds";
16
- import validateRouteDependencies from "./validateRouteDependencies";
17
- import buildNavigationPath from "./buildNavigationPath";
18
- import { handleItemDeletion, handleItemUpdate, calculateParentAndOrder } from "./navigationItemStructure";
19
- export { duplicateCheck, createNavItem, updateNavItem, deleteNavItem, getAdminService, getClientService, reduceDepthOfOrphanedItems, createExternalRoute, updateRoute, deleteRoute, buildStructuredNavigation, extractRouteAndItems, getFullPopulateObject, cleanRootKeys, removeWaFields, buildCanonicalPath, cascadeCanonicalPathUpdates, getRouteAncestors, getRouteDescendants, getNonInternalRouteIds, validateRouteDependencies, buildNavigationPath, handleItemDeletion, handleItemUpdate, calculateParentAndOrder, };
@@ -1,5 +0,0 @@
1
- import type { NavItemSettings, NestedNavItem } from "../../../types";
2
- declare function createNavItem(data: NavItemSettings): Promise<null | NestedNavItem>;
3
- declare function updateNavItem(documentId: string, data: Pick<NavItemSettings, "parent" | "order">): Promise<import("@strapi/types/dist/modules/documents").AnyDocument>;
4
- declare function deleteNavItem(documentId: string): Promise<boolean>;
5
- export { createNavItem, updateNavItem, deleteNavItem };
@@ -1,27 +0,0 @@
1
- import type { NestedNavItem } from "../../../types";
2
- export declare function handleItemDeletion(navigationItems: NestedNavItem[]): Promise<{
3
- success: boolean;
4
- items: NestedNavItem[];
5
- errors: string[];
6
- }>;
7
- export declare function handleItemUpdate({ item, calculatedParent, calculatedOrder, navigationId, newNavItemsMap, }: {
8
- item: NestedNavItem;
9
- calculatedParent: string | null;
10
- calculatedOrder: number;
11
- navigationId: string;
12
- newNavItemsMap: Map<string, NestedNavItem>;
13
- }): Promise<{
14
- success: boolean;
15
- errors: string[];
16
- }>;
17
- export declare function calculateParentAndOrder({ navigationItems, item, index, parentIds, groupIndices, newNavItemsMap }: {
18
- navigationItems: NestedNavItem[];
19
- item: NestedNavItem;
20
- index: number;
21
- parentIds: string[];
22
- groupIndices: number[];
23
- newNavItemsMap: Map<string, NestedNavItem>;
24
- }): {
25
- calculatedParent: string;
26
- calculatedOrder: number;
27
- };
@@ -1,3 +0,0 @@
1
- import type { Core } from '@strapi/strapi';
2
- export declare function getAdminService(): Core.Service;
3
- export declare function getClientService(): Core.Service;
@@ -1,4 +0,0 @@
1
- import type { UID } from '@strapi/strapi';
2
- export default function getFullPopulateObject(modelUid: UID.Schema, maxDepth?: number, ignore?: string[]): boolean | {
3
- populate: Record<string, boolean | Record<string, any>>;
4
- };
@@ -1,2 +0,0 @@
1
- import type { NestedNavItem } from "../../../types";
2
- export default function reduceDepthOfOrphanedItems(navigationItems: NestedNavItem[], itemId: string): NestedNavItem[] | undefined;
@@ -1 +0,0 @@
1
- export default function removeWaFields(obj: any): any;
@@ -1,5 +0,0 @@
1
- import type { Route, RouteSettings } from "../../../types";
2
- declare function createExternalRoute(data: RouteSettings): Promise<import("@strapi/types/dist/modules/documents").AnyDocument>;
3
- declare function updateRoute(documentId: string, data: RouteSettings): Promise<Route>;
4
- declare function deleteRoute(documentId: string): Promise<boolean>;
5
- export { createExternalRoute, updateRoute, deleteRoute, };
@@ -1,4 +0,0 @@
1
- export default function validateRouteDependencies({ routeId, newParentId }: {
2
- routeId?: string | null;
3
- newParentId: string;
4
- }): Promise<boolean>;
@@ -1,7 +0,0 @@
1
- export type ApiEntity<TData, TSystemFields = {}> = TData & TSystemFields & {
2
- id: number;
3
- createdAt: string;
4
- updatedAt: string;
5
- };
6
- export type ApiCreateInput<TData> = Omit<TData, 'id' | 'createdAt' | 'updatedAt'>;
7
- export type ApiUpdateInput<TData> = Partial<ApiCreateInput<TData>>;
@@ -1,4 +0,0 @@
1
- export * from './navigation';
2
- export * from './route';
3
- export * from './api';
4
- export * from './strapi';
@@ -1,66 +0,0 @@
1
- import type { Route, User } from './';
2
- export type Navigation = {
3
- id: number;
4
- name: string;
5
- slug: string;
6
- visible: boolean;
7
- items: Route[];
8
- updatedAt: string;
9
- createdAt: string;
10
- };
11
- export type NavigationInput = Omit<Navigation, 'id' | 'items' | 'updatedAt' | 'createdAt' | 'slug'>;
12
- export type NavItem = {
13
- createdAt: string;
14
- createdBy: User;
15
- id: number;
16
- items: Route[];
17
- name: string;
18
- slug: string;
19
- updatedAt: string;
20
- updatedBy: User;
21
- visible: boolean;
22
- };
23
- export type NavItemSettings = {
24
- route: string | null;
25
- navigation: string | null;
26
- parent: string | null;
27
- order?: number;
28
- };
29
- export type NestedNavigation = {
30
- id: number;
31
- documentId: string;
32
- name: string;
33
- slug: string;
34
- visible: boolean;
35
- items: NestedNavItem[];
36
- updatedAt: string;
37
- createdAt: string;
38
- };
39
- export type NestedNavItem = {
40
- id: number;
41
- documentId: string;
42
- items: NestedNavItem[];
43
- parent: {
44
- documentId: string;
45
- } | null;
46
- route: Route;
47
- updatedAt: string;
48
- createdAt: string;
49
- status: 'published' | 'draft' | 'modified' | null;
50
- depth?: number;
51
- order: number;
52
- clientModifications?: ClientModifications;
53
- initialClientModifications?: ClientModifications;
54
- };
55
- export type ClientModifications = {
56
- type: 'create' | 'update' | 'delete';
57
- title?: string;
58
- slug?: string;
59
- path?: string;
60
- isOverride?: boolean;
61
- route?: string | null;
62
- parent?: string | null;
63
- navigation?: string | null;
64
- autoGenerated?: boolean;
65
- };
66
- export type StructuredNavigationVariant = 'nested' | 'flat';
@@ -1,37 +0,0 @@
1
- export type Route = {
2
- id: number;
3
- documentId: string;
4
- title: string;
5
- slug: string;
6
- path: string;
7
- uidPath: string;
8
- canonicalPath: string;
9
- relatedContentType: string;
10
- relatedId: number;
11
- relatedDocumentId: string;
12
- type: RouteType;
13
- active: boolean;
14
- isOverride: boolean;
15
- navitem: {
16
- id: number;
17
- } | null;
18
- parent?: Route;
19
- children?: Route[];
20
- createdAt: string;
21
- updatedAt: string;
22
- };
23
- export type RouteSettings = {
24
- relatedContentType?: string;
25
- relatedId?: number;
26
- relatedDocumentId?: string;
27
- title?: string;
28
- path?: string;
29
- slug?: string;
30
- uidPath?: string;
31
- isOverride?: boolean;
32
- active?: boolean;
33
- navitem?: number;
34
- type?: RouteType;
35
- parent?: string;
36
- };
37
- export type RouteType = 'internal' | 'external' | 'wrapper';
@@ -1,52 +0,0 @@
1
- export type ContentType = {
2
- uid: string;
3
- isDisplayed: boolean;
4
- apiID: string;
5
- kind: string;
6
- info: {
7
- name: string;
8
- description: string;
9
- singularName: string;
10
- pluralName: string;
11
- displayName: string;
12
- };
13
- attributes: {
14
- [key: string]: any;
15
- };
16
- pluginOptions: {
17
- webatlas?: {
18
- enabled: boolean;
19
- };
20
- };
21
- };
22
- export type ConfigContentType = {
23
- uid: string;
24
- label: string;
25
- default: string;
26
- };
27
- export type PluginConfig = {
28
- selectedContentTypes: ConfigContentType[];
29
- navigation: {
30
- maxDepth: number;
31
- };
32
- migrationVersion?: string;
33
- };
34
- export type Entity = {
35
- id: number;
36
- createdAt: string;
37
- createdBy: User;
38
- updatedAt: string | null;
39
- updatedBy: User | null;
40
- publishedAt: string | null;
41
- [key: string]: any;
42
- };
43
- export type GroupedEntities = {
44
- entities: Entity[];
45
- contentType: ConfigContentType;
46
- };
47
- export type User = {
48
- id: number;
49
- firstname: string;
50
- lastname: string;
51
- username: string | null;
52
- };
@@ -1,4 +0,0 @@
1
- import transformToUrl from './transformToUrl';
2
- import { waNavigation, waNavItem, waRoute } from './pluginConstants';
3
- import { PLUGIN_ID, PLUGIN_NAME, PLUGIN_VERSION } from './pluginId';
4
- export { transformToUrl, waNavigation, waNavItem, waRoute, PLUGIN_ID, PLUGIN_NAME, PLUGIN_VERSION };
@@ -1,3 +0,0 @@
1
- export declare const waNavigation: string;
2
- export declare const waNavItem: string;
3
- export declare const waRoute: string;
@@ -1,4 +0,0 @@
1
- declare const PLUGIN_ID: string;
2
- declare const PLUGIN_NAME: string;
3
- declare const PLUGIN_VERSION: string;
4
- export { PLUGIN_ID, PLUGIN_NAME, PLUGIN_VERSION };
@@ -1 +0,0 @@
1
- export default function transformToUrl(input: string): string;
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes