@mattisvensson/strapi-plugin-webatlas 0.9.6 → 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 (132) hide show
  1. package/README.md +24 -36
  2. package/dist/{_chunks/SettingTitle-77mvMRg_.mjs → admin/SettingTitle-DbsxB1V9.mjs} +2 -2
  3. package/dist/{_chunks/SettingTitle-DLj_Wwqy.js → admin/SettingTitle-uw1S5OmC.js} +2 -2
  4. package/dist/{_chunks/de-C-uxto84.mjs → admin/de-B5pRvs13.mjs} +13 -7
  5. package/dist/{_chunks/de-CGXL_3o_.js → admin/de-CqU1FU8C.js} +13 -7
  6. package/dist/{_chunks/en-B1CHnIH7.mjs → admin/en-BE-zzIv8.mjs} +13 -7
  7. package/dist/{_chunks/en-DWEd5BXK.js → admin/en-C7I90FwV.js} +13 -7
  8. package/dist/{_chunks/index-5OG4i6qO.mjs → admin/index-B07KlG03.mjs} +40 -84
  9. package/dist/{_chunks/index-BRKi-K-v.mjs → admin/index-BKWY9Ta-.mjs} +61 -24
  10. package/dist/admin/index-BXt-QjKo.js +9368 -0
  11. package/dist/{_chunks/index-VXuAEnpX.js → admin/index-BYlmJycd.js} +3 -3
  12. package/dist/{_chunks/index-Dt-AXdaw.js → admin/index-CGsC8P9P.js} +40 -84
  13. package/dist/{_chunks/index-DwaKIwAz.mjs → admin/index-CIr8o1RP.mjs} +403 -356
  14. package/dist/{_chunks/index-3pYLMhui.mjs → admin/index-CUaBX_v-.mjs} +3 -3
  15. package/dist/{_chunks/index-COfk3YSm.js → admin/index-DC5WwNdi.js} +402 -355
  16. package/dist/{_chunks/index-DTsHvlTa.js → admin/index-DkqiqVx2.js} +61 -24
  17. package/dist/admin/index-tPrfjOIn.mjs +9368 -0
  18. package/dist/admin/index.js +3 -2
  19. package/dist/admin/index.mjs +1 -1
  20. package/dist/server/index.js +5266 -4524
  21. package/dist/server/index.mjs +5264 -4523
  22. package/dist/server/src/index.d.ts +33 -13
  23. package/package.json +19 -7
  24. package/dist/_chunks/index-BOtvXSPU.js +0 -8310
  25. package/dist/_chunks/index-BWzalvVi.mjs +0 -8310
  26. package/dist/admin/src/components/CMEditViewAside/Path.d.ts +0 -5
  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 -7
  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/internalItemCreate.d.ts +0 -3
  44. package/dist/admin/src/components/modals/internalItem/internalItemEdit.d.ts +0 -3
  45. package/dist/admin/src/components/modals/useModalSharedLogic.d.ts +0 -2
  46. package/dist/admin/src/components/modals/withModalSharedLogic.d.ts +0 -3
  47. package/dist/admin/src/components/modals/wrapperItem/index.d.ts +0 -15
  48. package/dist/admin/src/contexts/index.d.ts +0 -13
  49. package/dist/admin/src/hooks/index.d.ts +0 -6
  50. package/dist/admin/src/hooks/useAllContentTypes.d.ts +0 -7
  51. package/dist/admin/src/hooks/useAllEntities.d.ts +0 -7
  52. package/dist/admin/src/hooks/useApi.d.ts +0 -17
  53. package/dist/admin/src/hooks/useNavigations.d.ts +0 -7
  54. package/dist/admin/src/hooks/usePluginConfig.d.ts +0 -9
  55. package/dist/admin/src/pages/Navigation/Page.d.ts +0 -2
  56. package/dist/admin/src/pages/Navigation/PageWrapper.d.ts +0 -7
  57. package/dist/admin/src/pages/Navigation/RouteItem.d.ts +0 -17
  58. package/dist/admin/src/pages/Navigation/SortableRouteItem.d.ts +0 -2
  59. package/dist/admin/src/pages/Navigation/index.d.ts +0 -2
  60. package/dist/admin/src/pages/Paths/PageWrapper.d.ts +0 -4
  61. package/dist/admin/src/pages/Paths/PathTable.d.ts +0 -8
  62. package/dist/admin/src/pages/Paths/SearchInput.d.ts +0 -6
  63. package/dist/admin/src/pages/Paths/TableHeader.d.ts +0 -5
  64. package/dist/admin/src/pages/Paths/TableRow.d.ts +0 -4
  65. package/dist/admin/src/pages/Paths/compareBy.d.ts +0 -3
  66. package/dist/admin/src/pages/Paths/index.d.ts +0 -2
  67. package/dist/admin/src/pages/Settings/ContentBox.d.ts +0 -5
  68. package/dist/admin/src/pages/Settings/General/ContentTypeAccordion.d.ts +0 -7
  69. package/dist/admin/src/pages/Settings/General/index.d.ts +0 -2
  70. package/dist/admin/src/pages/Settings/Navigation/index.d.ts +0 -2
  71. package/dist/admin/src/pages/Settings/PageWrapper.d.ts +0 -8
  72. package/dist/admin/src/pages/Settings/SettingTitle.d.ts +0 -4
  73. package/dist/admin/src/pages/Settings/index.d.ts +0 -4
  74. package/dist/admin/src/permissions.d.ts +0 -23
  75. package/dist/admin/src/types/index.d.ts +0 -1
  76. package/dist/admin/src/types/modal.d.ts +0 -0
  77. package/dist/admin/src/types/route.d.ts +0 -2
  78. package/dist/admin/src/utils/countChildren.d.ts +0 -2
  79. package/dist/admin/src/utils/createTempNavItemObject.d.ts +0 -24
  80. package/dist/admin/src/utils/debounce.d.ts +0 -1
  81. package/dist/admin/src/utils/dnd.d.ts +0 -13
  82. package/dist/admin/src/utils/duplicateCheck.d.ts +0 -9
  83. package/dist/admin/src/utils/getTranslation.d.ts +0 -2
  84. package/dist/admin/src/utils/index.d.ts +0 -7
  85. package/dist/admin/src/utils/typeChecks.d.ts +0 -3
  86. package/dist/server/src/bootstrap.d.ts +0 -5
  87. package/dist/server/src/config/index.d.ts +0 -10
  88. package/dist/server/src/content-types/index.d.ts +0 -184
  89. package/dist/server/src/content-types/navigation/index.d.ts +0 -50
  90. package/dist/server/src/content-types/navigation/schema.d.ts +0 -48
  91. package/dist/server/src/content-types/navitem/index.d.ts +0 -51
  92. package/dist/server/src/content-types/navitem/schema.d.ts +0 -49
  93. package/dist/server/src/content-types/route/index.d.ts +0 -83
  94. package/dist/server/src/content-types/route/schema.d.ts +0 -81
  95. package/dist/server/src/controllers/admin.d.ts +0 -14
  96. package/dist/server/src/controllers/client.d.ts +0 -8
  97. package/dist/server/src/controllers/index.d.ts +0 -22
  98. package/dist/server/src/destroy.d.ts +0 -5
  99. package/dist/server/src/middlewares/index.d.ts +0 -2
  100. package/dist/server/src/policies/has-permissions.d.ts +0 -2
  101. package/dist/server/src/policies/index.d.ts +0 -4
  102. package/dist/server/src/register.d.ts +0 -5
  103. package/dist/server/src/routes/admin.d.ts +0 -17
  104. package/dist/server/src/routes/client.d.ts +0 -12
  105. package/dist/server/src/routes/index.d.ts +0 -30
  106. package/dist/server/src/services/admin.d.ts +0 -17
  107. package/dist/server/src/services/client.d.ts +0 -8
  108. package/dist/server/src/services/index.d.ts +0 -24
  109. package/dist/server/src/utils/buildStructuredNavigation.d.ts +0 -11
  110. package/dist/server/src/utils/cleanRootKeys.d.ts +0 -1
  111. package/dist/server/src/utils/duplicateCheck.d.ts +0 -1
  112. package/dist/server/src/utils/extractRouteAndItems.d.ts +0 -2
  113. package/dist/server/src/utils/index.d.ts +0 -11
  114. package/dist/server/src/utils/navItemHandler.d.ts +0 -5
  115. package/dist/server/src/utils/pluginHelpers.d.ts +0 -3
  116. package/dist/server/src/utils/populateDeep.d.ts +0 -4
  117. package/dist/server/src/utils/reduceDepthOfOrphanedItems.d.ts +0 -2
  118. package/dist/server/src/utils/removeWaFields.d.ts +0 -1
  119. package/dist/server/src/utils/routeHandler.d.ts +0 -3
  120. package/dist/types/api.d.ts +0 -7
  121. package/dist/types/index.d.ts +0 -5
  122. package/dist/types/modal.d.ts +0 -36
  123. package/dist/types/navigation.d.ts +0 -65
  124. package/dist/types/route.d.ts +0 -32
  125. package/dist/types/strapi.d.ts +0 -53
  126. package/dist/utils/getPath.d.ts +0 -1
  127. package/dist/utils/index.d.ts +0 -5
  128. package/dist/utils/pluginConstants.d.ts +0 -3
  129. package/dist/utils/pluginId.d.ts +0 -4
  130. package/dist/utils/transformToUrl.d.ts +0 -1
  131. /package/dist/{_chunks → admin}/FullLoader-Cmsf8xS6.js +0 -0
  132. /package/dist/{_chunks → admin}/FullLoader-CrPED_dY.mjs +0 -0
@@ -1,5 +0,0 @@
1
- import { ConfigContentType } from '../../../../types';
2
- declare const Path: ({ config }: {
3
- config: ConfigContentType;
4
- }) => import("react/jsx-runtime").JSX.Element;
5
- export default Path;
@@ -1,3 +0,0 @@
1
- import type { PanelComponent } from '@strapi/content-manager/strapi-admin';
2
- declare const CMEditViewAside: PanelComponent;
3
- export default CMEditViewAside;
@@ -1,5 +0,0 @@
1
- type InitializerProps = {
2
- setPlugin: (id: string) => void;
3
- };
4
- declare const Initializer: ({ setPlugin }: InitializerProps) => null;
5
- export { Initializer };
@@ -1,7 +0,0 @@
1
- interface PathProps {
2
- validationState: 'initial' | 'checking' | 'done';
3
- replacement: string;
4
- setUrlStatus?: (isValid: 'valid' | 'invalid') => void;
5
- }
6
- export default function PathInfo({ validationState, replacement, setUrlStatus }: PathProps): import("react/jsx-runtime").JSX.Element;
7
- export {};
@@ -1,3 +0,0 @@
1
- declare const PathIcon: () => import("react/jsx-runtime").JSX.Element;
2
- declare const NavigationIcon: () => import("react/jsx-runtime").JSX.Element;
3
- export { PathIcon, NavigationIcon };
@@ -1,3 +0,0 @@
1
- export default function Tooltip({ description }: {
2
- description: string;
3
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- export default function Center({ height, children }: {
3
- height?: number;
4
- children: React.ReactNode;
5
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +0,0 @@
1
- type EmptyNavProps = {
2
- msg: string;
3
- };
4
- export default function EmptyBox({ msg }: EmptyNavProps): import("react/jsx-runtime").JSX.Element;
5
- export {};
@@ -1,3 +0,0 @@
1
- export default function FullLoader({ height }: {
2
- height?: number;
3
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +0,0 @@
1
- import Center from "./Center";
2
- import EmptyBox from "./EmptyBox";
3
- import FullLoader from "./FullLoader";
4
- export { Center, EmptyBox, FullLoader, };
@@ -1,14 +0,0 @@
1
- import { NestedNavigation, NestedNavItem } from '../../../../types';
2
- type NavDelete = {
3
- variant: "NavDelete";
4
- item: NestedNavigation;
5
- onDelete: (editedItem: NestedNavigation) => void;
6
- };
7
- type ItemDelete = {
8
- variant: "ItemDelete";
9
- item: NestedNavItem;
10
- onDelete: (editedItem: NestedNavItem) => void;
11
- };
12
- type DeleteProps = NavDelete | ItemDelete;
13
- export default function Delete({ variant, item, onDelete }: DeleteProps): import("react/jsx-runtime").JSX.Element;
14
- export {};
@@ -1 +0,0 @@
1
- export default function NavCreate(): import("react/jsx-runtime").JSX.Element;
@@ -1,7 +0,0 @@
1
- import { NestedNavigation } from '../../../../types';
2
- type NavEditProps = {
3
- item: NestedNavigation;
4
- onEdit: (editedNavigation: NestedNavigation) => void;
5
- };
6
- export default function NavEdit({ item, onEdit }: NavEditProps): import("react/jsx-runtime").JSX.Element;
7
- export {};
@@ -1,17 +0,0 @@
1
- /// <reference types="react" />
2
- export default function NavModal({ triggerText, triggerVariant, confirmText, closeText, titleText, loadingText, children, onConfirm, loading, modalToOpen, footer, currentModalType, currentModalMode, disabled, }: {
3
- triggerText?: string;
4
- triggerVariant?: "primary" | "secondary";
5
- confirmText: string;
6
- closeText: string;
7
- titleText: string;
8
- loadingText?: string;
9
- children: React.ReactNode;
10
- onConfirm?: () => void;
11
- loading?: boolean;
12
- modalToOpen?: string;
13
- footer?: React.ReactNode;
14
- currentModalType?: 'ItemCreate' | 'WrapperCreate' | 'ExternalCreate' | null;
15
- currentModalMode?: 'create' | 'edit';
16
- disabled?: boolean;
17
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- import { NestedNavItem, NestedNavigation } from '../../../../types';
3
- type NavOverviewProps = {
4
- navigations: NestedNavigation[];
5
- setActionItem: React.Dispatch<React.SetStateAction<NestedNavItem | NestedNavigation | undefined>>;
6
- };
7
- export default function NavOverview({ navigations, setActionItem }: NavOverviewProps): import("react/jsx-runtime").JSX.Element;
8
- export {};
@@ -1,15 +0,0 @@
1
- import { NestedNavItem } from '../../../../../types';
2
- import React from 'react';
3
- type externalCreateProps = {
4
- variant: 'ExternalCreate';
5
- parentId?: string;
6
- onCreate: (newItem: NestedNavItem) => void;
7
- };
8
- type externalEditProps = {
9
- variant: 'ExternalEdit';
10
- item: NestedNavItem;
11
- onSave: (editedItem: NestedNavItem) => void;
12
- };
13
- type externalItemProps = externalCreateProps | externalEditProps;
14
- export declare const ExternalItem: React.FC<externalItemProps>;
15
- export {};
@@ -1,12 +0,0 @@
1
- import Delete from "./Delete";
2
- import NavCreate from "./NavCreate";
3
- import NavEdit from "./NavEdit";
4
- import NavOverview from "./NavOverview";
5
- import { useModalSharedLogic } from "./useModalSharedLogic";
6
- import { withModalSharedLogic } from "./withModalSharedLogic";
7
- import { ExternalItem } from "./externalItem";
8
- import { ItemCreate } from "./internalItem/internalItemCreate";
9
- import { ItemEdit } from "./internalItem/internalItemEdit";
10
- import { WrapperItem } from "./wrapperItem";
11
- import NavModal from "./NavModal";
12
- export { Delete, NavCreate, NavEdit, NavOverview, useModalSharedLogic, withModalSharedLogic, ExternalItem, ItemCreate, ItemEdit, WrapperItem, NavModal };
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- import type { ModalItem_VariantCreate } from '../../../../../types';
3
- export declare const ItemCreate: import("react").FC<ModalItem_VariantCreate>;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- import { ModalItem_VariantEdit } from '../../../../../types';
3
- export declare const ItemEdit: import("react").FC<ModalItem_VariantEdit>;
@@ -1,2 +0,0 @@
1
- import { modalSharedLogic } from '../../../../types';
2
- export declare function useModalSharedLogic(): modalSharedLogic;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- import { useModalSharedLogic } from './useModalSharedLogic';
3
- export declare function withModalSharedLogic<T>(Component: React.FunctionComponent<T & ReturnType<typeof useModalSharedLogic>>): React.FC<T>;
@@ -1,15 +0,0 @@
1
- import { NestedNavItem } from '../../../../../types';
2
- import React from 'react';
3
- type wrapperCreateProps = {
4
- variant: 'WrapperCreate';
5
- parentId?: string;
6
- onCreate: (newItem: NestedNavItem) => void;
7
- };
8
- type wrapperEditProps = {
9
- variant: 'WrapperEdit';
10
- item: NestedNavItem;
11
- onSave: (editedItem: NestedNavItem) => void;
12
- };
13
- type wrapperItemProps = wrapperCreateProps | wrapperEditProps;
14
- export declare const WrapperItem: React.FC<wrapperItemProps>;
15
- export {};
@@ -1,13 +0,0 @@
1
- import { Dispatch, SetStateAction } from 'react';
2
- import { NestedNavigation } from '../../../types';
3
- type ModalContextType = {
4
- modalType: string;
5
- setModalType: Dispatch<SetStateAction<string>>;
6
- };
7
- type SelectedNavigationContextType = {
8
- selectedNavigation: NestedNavigation | undefined;
9
- setSelectedNavigation: Dispatch<SetStateAction<NestedNavigation | undefined>>;
10
- };
11
- export declare const ModalContext: import("react").Context<ModalContextType>;
12
- export declare const SelectedNavigationContext: import("react").Context<SelectedNavigationContextType>;
13
- export {};
@@ -1,6 +0,0 @@
1
- import useAllContentTypes from "./useAllContentTypes";
2
- import useAllEntities from "./useAllEntities";
3
- import useApi from "./useApi";
4
- import useNavigations from "./useNavigations";
5
- import usePluginConfig from "./usePluginConfig";
6
- export { useAllContentTypes, useAllEntities, useApi, useNavigations, usePluginConfig };
@@ -1,7 +0,0 @@
1
- import { ContentType } from '../../../types';
2
- declare const useAllContentTypes: () => {
3
- contentTypes: ContentType[];
4
- loading: boolean;
5
- error: null;
6
- };
7
- export default useAllContentTypes;
@@ -1,7 +0,0 @@
1
- import { GroupedEntities } from '../../../types';
2
- declare const useAllEntities: () => {
3
- entities: GroupedEntities[];
4
- loading: boolean;
5
- error: null;
6
- };
7
- export default useAllEntities;
@@ -1,17 +0,0 @@
1
- import { Route, GroupedEntities, RouteSettings, StructuredNavigationVariant, NavigationInput, NestedNavItem } from '../../../types';
2
- export default function useApi(): {
3
- fetchAllContentTypes: () => Promise<any>;
4
- fetchConfiguredContentTypes: () => Promise<any>;
5
- fetchAllEntities: () => Promise<GroupedEntities[]>;
6
- getRelatedRoute: (relatedDocumentId: string) => Promise<Route>;
7
- getRoutes: () => Promise<any>;
8
- updateRoute: (body: RouteSettings, documentId: string) => Promise<any>;
9
- getNavigation: ({ documentId, variant }?: {
10
- documentId?: string;
11
- variant?: StructuredNavigationVariant | "namesOnly";
12
- }) => Promise<any>;
13
- createNavigation: (body: NavigationInput) => Promise<any>;
14
- deleteNavigation: (documentId: string) => Promise<any>;
15
- updateNavigation: (documentId: string, body: NavigationInput) => Promise<any>;
16
- updateNavigationItemStructure: (documentId: string, navigationItems: NestedNavItem[]) => Promise<any>;
17
- };
@@ -1,7 +0,0 @@
1
- import { NestedNavigation } from '../../../types';
2
- export default function useNavigations(): {
3
- navigations: NestedNavigation[];
4
- fetchNavigations: () => Promise<void>;
5
- loading: boolean;
6
- fetchError: string | null;
7
- };
@@ -1,9 +0,0 @@
1
- import { PluginConfig } from '../../../types';
2
- type UsePluginConfigResponse = {
3
- config: PluginConfig | null;
4
- loading: boolean;
5
- fetchError: string | null;
6
- setConfig: (body: Partial<PluginConfig>) => Promise<void>;
7
- };
8
- export default function usePluginConfig(): UsePluginConfigResponse;
9
- export {};
@@ -1,2 +0,0 @@
1
- declare const Navigation: () => import("react/jsx-runtime").JSX.Element;
2
- export default Navigation;
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- import type { NestedNavigation } from '../../../../types';
3
- export default function PageWrapper({ navigations, loading, children }: {
4
- navigations: NestedNavigation[];
5
- loading?: boolean;
6
- children: React.ReactNode;
7
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,17 +0,0 @@
1
- /// <reference types="react" />
2
- import { NestedNavItem, NestedNavigation } from '../../../../types';
3
- export interface RouteItemProps {
4
- item: NestedNavItem;
5
- setParentId: (id: string) => void;
6
- setActionItem: React.Dispatch<React.SetStateAction<NestedNavItem | NestedNavigation | undefined>>;
7
- setNavigationItems: React.Dispatch<React.SetStateAction<NestedNavItem[] | undefined>>;
8
- ghost?: boolean;
9
- depth?: number;
10
- maxDepth: number;
11
- style?: React.CSSProperties;
12
- wrapperRef?(node: HTMLLIElement): void;
13
- handleProps?: any;
14
- disableInteraction?: boolean;
15
- indentationWidth?: number;
16
- }
17
- export declare const RouteItem: import("react").ForwardRefExoticComponent<RouteItemProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,2 +0,0 @@
1
- import { RouteItemProps } from './RouteItem';
2
- export default function SortableRouteItem({ item, depth, setNavigationItems, ...props }: RouteItemProps): import("react/jsx-runtime").JSX.Element | null;
@@ -1,2 +0,0 @@
1
- declare const App: () => import("react/jsx-runtime").JSX.Element;
2
- export default App;
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- export default function PageWrapper({ children }: {
3
- children: React.ReactNode;
4
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,8 +0,0 @@
1
- import type { Route } from '../../../../types';
2
- import type { RouteSortKey } from '../../types';
3
- declare function PathTable({ routes, sortKey, handleSort }: {
4
- routes: Route[];
5
- sortKey: RouteSortKey;
6
- handleSort: (key: RouteSortKey) => void;
7
- }): import("react/jsx-runtime").JSX.Element;
8
- export default PathTable;
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- declare function SearchInput({ searchQuery, handleSearchChange }: {
3
- searchQuery: string;
4
- handleSearchChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
5
- }): import("react/jsx-runtime").JSX.Element;
6
- export default SearchInput;
@@ -1,5 +0,0 @@
1
- import type { RouteSortKey } from '../../types';
2
- export default function TableHeader({ sortKey, handleSort }: {
3
- sortKey: RouteSortKey;
4
- handleSort: (key: RouteSortKey) => void;
5
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +0,0 @@
1
- import type { Route } from '../../../../types';
2
- export default function TableRow({ route }: {
3
- route: Route;
4
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,3 +0,0 @@
1
- import type { Route } from '../../../../types';
2
- import type { RouteSortKey } from '../../types';
3
- export default function compareBy(field: RouteSortKey, direction: 'asc' | 'desc'): (a: Route, b: Route) => number;
@@ -1,2 +0,0 @@
1
- declare const Paths: () => import("react/jsx-runtime").JSX.Element;
2
- export default Paths;
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- export default function ContentBox({ title, children }: {
3
- title: string;
4
- children: React.ReactNode;
5
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- import type { ContentType, ConfigContentType } from '../../../../../types';
3
- export default function ContentTypeAccordion({ contentType, contentTypeSettings, dispatch }: {
4
- contentType: ContentType | undefined;
5
- contentTypeSettings: ConfigContentType;
6
- dispatch: React.Dispatch<any>;
7
- }): import("react/jsx-runtime").JSX.Element | null;
@@ -1,2 +0,0 @@
1
- declare const Settings: () => import("react/jsx-runtime").JSX.Element;
2
- export default Settings;
@@ -1,2 +0,0 @@
1
- declare const Settings: () => import("react/jsx-runtime").JSX.Element;
2
- export default Settings;
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- export default function PageWrapper({ save, isSaving, disabledCondition, subtitle, children }: {
3
- save?: () => void;
4
- isSaving: boolean;
5
- disabledCondition: boolean;
6
- subtitle: string;
7
- children: React.ReactNode;
8
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- export default function SettingTitle({ children }: {
3
- children: React.ReactNode;
4
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +0,0 @@
1
- import PageWrapper from "./PageWrapper";
2
- import ContentBox from "./ContentBox";
3
- import SettingTitle from "./SettingTitle";
4
- export { PageWrapper, ContentBox, SettingTitle };
@@ -1,23 +0,0 @@
1
- declare const pluginPermissions: {
2
- 'cm.aside': {
3
- action: string;
4
- subject: null;
5
- }[];
6
- 'page.navigation': {
7
- action: string;
8
- subject: null;
9
- }[];
10
- 'page.routes': {
11
- action: string;
12
- subject: null;
13
- }[];
14
- 'settings.general': {
15
- action: string;
16
- subject: null;
17
- }[];
18
- 'settings.navigation': {
19
- action: string;
20
- subject: null;
21
- }[];
22
- };
23
- export default pluginPermissions;
@@ -1 +0,0 @@
1
- export * from './route';
File without changes
@@ -1,2 +0,0 @@
1
- import type { Route } from '../../../types/';
2
- export type RouteSortKey = keyof Pick<Route, 'title' | 'path' | 'type'>;
@@ -1,2 +0,0 @@
1
- import { NestedNavItem } from '../../../types';
2
- export default function countChildren(item: NestedNavItem): number;
@@ -1,24 +0,0 @@
1
- import type { NestedNavItem, Entity, GroupedEntities } from '../../../types';
2
- type CreateTempNavItemObjectParams = {
3
- parentId: string | undefined;
4
- entityRoute: {
5
- documentId: string;
6
- } | null;
7
- selectedNavigation: {
8
- documentId: string;
9
- } | null;
10
- navItemState: {
11
- active?: boolean;
12
- isOverride?: boolean;
13
- title?: string;
14
- };
15
- selectedEntity: Entity | undefined | null;
16
- selectedContentType: GroupedEntities | undefined | null;
17
- path?: {
18
- value: string;
19
- uidPath: string;
20
- };
21
- type?: 'internal' | 'external' | 'wrapper';
22
- };
23
- export default function createTempNavItemObject({ parentId, entityRoute, selectedNavigation, navItemState, selectedEntity, selectedContentType, path, type, }: CreateTempNavItemObjectParams): NestedNavItem;
24
- export {};
@@ -1 +0,0 @@
1
- export default function debounce<T extends any[]>(func: (...args: T) => void, wait: number): (...args: T) => void;
@@ -1,13 +0,0 @@
1
- import { NestedNavItem } from '../../../types';
2
- import { UniqueIdentifier, MeasuringStrategy } from '@dnd-kit/core';
3
- export declare const measuring: {
4
- droppable: {
5
- strategy: MeasuringStrategy;
6
- };
7
- };
8
- export declare const indentationWidth = 48;
9
- export declare function getProjection(items: NestedNavItem[] | undefined, activeId: UniqueIdentifier, overId: UniqueIdentifier, dragOffset: number, maxDepthValue: number): {
10
- depth: number;
11
- maxDepth: number;
12
- minDepth: number;
13
- };
@@ -1,9 +0,0 @@
1
- /**
2
- * Checks if a URL is unique by making a GET request to the checkUniquePath endpoint.
3
- * @param get The authenticated GET function from useFetchClient
4
- * @param url The URL to check.
5
- * @param routeDocumentId The ID of the route to exclude from the check.
6
- * @returns A promise that resolves to the response text if the request is successful.
7
- * @throws {Error} Throws an error if the request fails or the network response is not ok.
8
- */
9
- export default function duplicateCheck(get: (url: string) => Promise<any>, url: string, routeDocumentId?: string | null): Promise<string>;
@@ -1,2 +0,0 @@
1
- declare const getTranslation: (id: string) => string;
2
- export default getTranslation;
@@ -1,7 +0,0 @@
1
- import debounce from "./debounce";
2
- import duplicateCheck from "./duplicateCheck";
3
- import { isNestedNavigation, isNestedNavItem } from "./typeChecks";
4
- import getTranslation from "./getTranslation";
5
- import countChildren from "./countChildren";
6
- import createTempNavItemObject from "./createTempNavItemObject";
7
- export { debounce, duplicateCheck, isNestedNavigation, isNestedNavItem, getTranslation, countChildren, createTempNavItemObject };
@@ -1,3 +0,0 @@
1
- import { NestedNavItem, NestedNavigation } from '../../../types';
2
- export declare function isNestedNavigation(item: NestedNavItem | NestedNavigation | undefined): item is NestedNavigation;
3
- export declare function isNestedNavItem(item: NestedNavItem | NestedNavigation | undefined): item is NestedNavItem;
@@ -1,5 +0,0 @@
1
- import type { Core } from '@strapi/strapi';
2
- declare const bootstrap: ({ strapi }: {
3
- strapi: Core.Strapi;
4
- }) => Promise<void>;
5
- export default bootstrap;
@@ -1,10 +0,0 @@
1
- declare const _default: {
2
- default: {
3
- selectedContentTypes: any[];
4
- navigation: {
5
- maxDepth: number;
6
- };
7
- };
8
- validator(): void;
9
- };
10
- export default _default;