@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.
- package/README.md +24 -36
- package/dist/{_chunks/SettingTitle-77mvMRg_.mjs → admin/SettingTitle-DbsxB1V9.mjs} +2 -2
- package/dist/{_chunks/SettingTitle-DLj_Wwqy.js → admin/SettingTitle-uw1S5OmC.js} +2 -2
- package/dist/{_chunks/de-C-uxto84.mjs → admin/de-B5pRvs13.mjs} +13 -7
- package/dist/{_chunks/de-CGXL_3o_.js → admin/de-CqU1FU8C.js} +13 -7
- package/dist/{_chunks/en-B1CHnIH7.mjs → admin/en-BE-zzIv8.mjs} +13 -7
- package/dist/{_chunks/en-DWEd5BXK.js → admin/en-C7I90FwV.js} +13 -7
- package/dist/{_chunks/index-5OG4i6qO.mjs → admin/index-B07KlG03.mjs} +40 -84
- package/dist/{_chunks/index-BRKi-K-v.mjs → admin/index-BKWY9Ta-.mjs} +61 -24
- package/dist/admin/index-BXt-QjKo.js +9368 -0
- package/dist/{_chunks/index-VXuAEnpX.js → admin/index-BYlmJycd.js} +3 -3
- package/dist/{_chunks/index-Dt-AXdaw.js → admin/index-CGsC8P9P.js} +40 -84
- package/dist/{_chunks/index-DwaKIwAz.mjs → admin/index-CIr8o1RP.mjs} +403 -356
- package/dist/{_chunks/index-3pYLMhui.mjs → admin/index-CUaBX_v-.mjs} +3 -3
- package/dist/{_chunks/index-COfk3YSm.js → admin/index-DC5WwNdi.js} +402 -355
- package/dist/{_chunks/index-DTsHvlTa.js → admin/index-DkqiqVx2.js} +61 -24
- package/dist/admin/index-tPrfjOIn.mjs +9368 -0
- package/dist/admin/index.js +3 -2
- package/dist/admin/index.mjs +1 -1
- package/dist/server/index.js +5266 -4524
- package/dist/server/index.mjs +5264 -4523
- package/dist/server/src/index.d.ts +33 -13
- package/package.json +19 -7
- package/dist/_chunks/index-BOtvXSPU.js +0 -8310
- package/dist/_chunks/index-BWzalvVi.mjs +0 -8310
- package/dist/admin/src/components/CMEditViewAside/Path.d.ts +0 -5
- package/dist/admin/src/components/CMEditViewAside/index.d.ts +0 -3
- package/dist/admin/src/components/Initializer.d.ts +0 -5
- package/dist/admin/src/components/PathInfo.d.ts +0 -7
- package/dist/admin/src/components/PluginIcon.d.ts +0 -3
- package/dist/admin/src/components/Tooltip.d.ts +0 -3
- package/dist/admin/src/components/UI/Center.d.ts +0 -5
- package/dist/admin/src/components/UI/EmptyBox.d.ts +0 -5
- package/dist/admin/src/components/UI/FullLoader.d.ts +0 -3
- package/dist/admin/src/components/UI/index.d.ts +0 -4
- package/dist/admin/src/components/modals/Delete.d.ts +0 -14
- package/dist/admin/src/components/modals/NavCreate.d.ts +0 -1
- package/dist/admin/src/components/modals/NavEdit.d.ts +0 -7
- package/dist/admin/src/components/modals/NavModal.d.ts +0 -17
- package/dist/admin/src/components/modals/NavOverview.d.ts +0 -8
- package/dist/admin/src/components/modals/externalItem/index.d.ts +0 -15
- package/dist/admin/src/components/modals/index.d.ts +0 -12
- package/dist/admin/src/components/modals/internalItem/internalItemCreate.d.ts +0 -3
- package/dist/admin/src/components/modals/internalItem/internalItemEdit.d.ts +0 -3
- package/dist/admin/src/components/modals/useModalSharedLogic.d.ts +0 -2
- package/dist/admin/src/components/modals/withModalSharedLogic.d.ts +0 -3
- package/dist/admin/src/components/modals/wrapperItem/index.d.ts +0 -15
- package/dist/admin/src/contexts/index.d.ts +0 -13
- package/dist/admin/src/hooks/index.d.ts +0 -6
- package/dist/admin/src/hooks/useAllContentTypes.d.ts +0 -7
- package/dist/admin/src/hooks/useAllEntities.d.ts +0 -7
- package/dist/admin/src/hooks/useApi.d.ts +0 -17
- package/dist/admin/src/hooks/useNavigations.d.ts +0 -7
- package/dist/admin/src/hooks/usePluginConfig.d.ts +0 -9
- package/dist/admin/src/pages/Navigation/Page.d.ts +0 -2
- package/dist/admin/src/pages/Navigation/PageWrapper.d.ts +0 -7
- package/dist/admin/src/pages/Navigation/RouteItem.d.ts +0 -17
- package/dist/admin/src/pages/Navigation/SortableRouteItem.d.ts +0 -2
- package/dist/admin/src/pages/Navigation/index.d.ts +0 -2
- package/dist/admin/src/pages/Paths/PageWrapper.d.ts +0 -4
- package/dist/admin/src/pages/Paths/PathTable.d.ts +0 -8
- package/dist/admin/src/pages/Paths/SearchInput.d.ts +0 -6
- package/dist/admin/src/pages/Paths/TableHeader.d.ts +0 -5
- package/dist/admin/src/pages/Paths/TableRow.d.ts +0 -4
- package/dist/admin/src/pages/Paths/compareBy.d.ts +0 -3
- package/dist/admin/src/pages/Paths/index.d.ts +0 -2
- package/dist/admin/src/pages/Settings/ContentBox.d.ts +0 -5
- package/dist/admin/src/pages/Settings/General/ContentTypeAccordion.d.ts +0 -7
- package/dist/admin/src/pages/Settings/General/index.d.ts +0 -2
- package/dist/admin/src/pages/Settings/Navigation/index.d.ts +0 -2
- package/dist/admin/src/pages/Settings/PageWrapper.d.ts +0 -8
- package/dist/admin/src/pages/Settings/SettingTitle.d.ts +0 -4
- package/dist/admin/src/pages/Settings/index.d.ts +0 -4
- package/dist/admin/src/permissions.d.ts +0 -23
- package/dist/admin/src/types/index.d.ts +0 -1
- package/dist/admin/src/types/modal.d.ts +0 -0
- package/dist/admin/src/types/route.d.ts +0 -2
- package/dist/admin/src/utils/countChildren.d.ts +0 -2
- package/dist/admin/src/utils/createTempNavItemObject.d.ts +0 -24
- package/dist/admin/src/utils/debounce.d.ts +0 -1
- package/dist/admin/src/utils/dnd.d.ts +0 -13
- package/dist/admin/src/utils/duplicateCheck.d.ts +0 -9
- package/dist/admin/src/utils/getTranslation.d.ts +0 -2
- package/dist/admin/src/utils/index.d.ts +0 -7
- package/dist/admin/src/utils/typeChecks.d.ts +0 -3
- package/dist/server/src/bootstrap.d.ts +0 -5
- package/dist/server/src/config/index.d.ts +0 -10
- package/dist/server/src/content-types/index.d.ts +0 -184
- package/dist/server/src/content-types/navigation/index.d.ts +0 -50
- package/dist/server/src/content-types/navigation/schema.d.ts +0 -48
- package/dist/server/src/content-types/navitem/index.d.ts +0 -51
- package/dist/server/src/content-types/navitem/schema.d.ts +0 -49
- package/dist/server/src/content-types/route/index.d.ts +0 -83
- package/dist/server/src/content-types/route/schema.d.ts +0 -81
- package/dist/server/src/controllers/admin.d.ts +0 -14
- package/dist/server/src/controllers/client.d.ts +0 -8
- package/dist/server/src/controllers/index.d.ts +0 -22
- package/dist/server/src/destroy.d.ts +0 -5
- package/dist/server/src/middlewares/index.d.ts +0 -2
- package/dist/server/src/policies/has-permissions.d.ts +0 -2
- package/dist/server/src/policies/index.d.ts +0 -4
- package/dist/server/src/register.d.ts +0 -5
- package/dist/server/src/routes/admin.d.ts +0 -17
- package/dist/server/src/routes/client.d.ts +0 -12
- package/dist/server/src/routes/index.d.ts +0 -30
- package/dist/server/src/services/admin.d.ts +0 -17
- package/dist/server/src/services/client.d.ts +0 -8
- package/dist/server/src/services/index.d.ts +0 -24
- package/dist/server/src/utils/buildStructuredNavigation.d.ts +0 -11
- package/dist/server/src/utils/cleanRootKeys.d.ts +0 -1
- package/dist/server/src/utils/duplicateCheck.d.ts +0 -1
- package/dist/server/src/utils/extractRouteAndItems.d.ts +0 -2
- package/dist/server/src/utils/index.d.ts +0 -11
- package/dist/server/src/utils/navItemHandler.d.ts +0 -5
- package/dist/server/src/utils/pluginHelpers.d.ts +0 -3
- package/dist/server/src/utils/populateDeep.d.ts +0 -4
- package/dist/server/src/utils/reduceDepthOfOrphanedItems.d.ts +0 -2
- package/dist/server/src/utils/removeWaFields.d.ts +0 -1
- package/dist/server/src/utils/routeHandler.d.ts +0 -3
- package/dist/types/api.d.ts +0 -7
- package/dist/types/index.d.ts +0 -5
- package/dist/types/modal.d.ts +0 -36
- package/dist/types/navigation.d.ts +0 -65
- package/dist/types/route.d.ts +0 -32
- package/dist/types/strapi.d.ts +0 -53
- package/dist/utils/getPath.d.ts +0 -1
- package/dist/utils/index.d.ts +0 -5
- package/dist/utils/pluginConstants.d.ts +0 -3
- package/dist/utils/pluginId.d.ts +0 -4
- package/dist/utils/transformToUrl.d.ts +0 -1
- /package/dist/{_chunks → admin}/FullLoader-Cmsf8xS6.js +0 -0
- /package/dist/{_chunks → admin}/FullLoader-CrPED_dY.mjs +0 -0
|
@@ -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,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,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,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,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,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,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,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,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,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,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,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;
|