@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,2 +0,0 @@
1
- declare function NewPathInfo(): import("react/jsx-runtime").JSX.Element;
2
- export default NewPathInfo;
@@ -1,7 +0,0 @@
1
- type OverrideCheckboxProps = {
2
- isOverride: boolean;
3
- setIsOverride: (value: boolean) => void;
4
- disabledCondition?: boolean;
5
- };
6
- declare function OverrideCheckbox({ isOverride, setIsOverride, disabledCondition }: OverrideCheckboxProps): import("react/jsx-runtime").JSX.Element;
7
- export default OverrideCheckbox;
@@ -1,5 +0,0 @@
1
- import type { ConfigContentType } from '../../../../types';
2
- declare const Panel: ({ config }: {
3
- config: ConfigContentType;
4
- }) => import("react/jsx-runtime").JSX.Element;
5
- export default Panel;
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- import type { ConfigContentType } from '../../../../types';
3
- import type { PanelAction, PanelPathState } from '../../types';
4
- type PathInputProps = {
5
- path: PanelPathState;
6
- dispatchPath: React.Dispatch<PanelAction>;
7
- isOverride: boolean;
8
- config: ConfigContentType;
9
- };
10
- declare function PathInput({ path, dispatchPath, isOverride, config }: PathInputProps): import("react/jsx-runtime").JSX.Element;
11
- export default PathInput;
@@ -1,3 +0,0 @@
1
- import { RouteStructureProps } from "../../types";
2
- declare function RouteStructure({ routes, selectedParent, setSelectedParent, canonicalPath, prohibitedRouteIds }: RouteStructureProps): import("react/jsx-runtime").JSX.Element;
3
- export default RouteStructure;
@@ -1,4 +0,0 @@
1
- declare function UidPathDisplay({ path }: {
2
- path: string;
3
- }): import("react/jsx-runtime").JSX.Element;
4
- export default UidPathDisplay;
@@ -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,6 +0,0 @@
1
- interface PathProps {
2
- validationState: 'initial' | 'checking' | 'done';
3
- replacement: string | null;
4
- }
5
- export default function PathInfo({ validationState, replacement }: PathProps): import("react/jsx-runtime").JSX.Element;
6
- 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
- actionItemParentId?: 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,13 +0,0 @@
1
- import type { Route, NestedNavItem, NestedNavigation } from '../../../../../types';
2
- import type { ModalItem_VariantCreate } from '../../../types';
3
- import { useModalSharedLogic } from '../useModalSharedLogic';
4
- type ItemDetailsProps = Pick<ModalItem_VariantCreate & ReturnType<typeof useModalSharedLogic>, 'navItemState' | 'dispatchNavItemState' | 'path' | 'dispatchPath' | 'validationState' | 'debouncedCheckUrl'> & {
5
- route: Route;
6
- parentNavItem?: NestedNavItem | null;
7
- navigationItems?: NestedNavItem[] | null;
8
- navigations?: NestedNavigation[] | null;
9
- item?: NestedNavItem;
10
- modalVariant: 'create' | 'edit';
11
- };
12
- export default function ItemDetails({ navItemState, dispatchNavItemState, path, dispatchPath, validationState, parentNavItem, navigationItems, navigations, debouncedCheckUrl, item, route, modalVariant, }: ItemDetailsProps): import("react/jsx-runtime").JSX.Element;
13
- export {};
@@ -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 type { ModalItem_VariantEdit } from '../../../types';
3
- export declare const ItemEdit: import("react").FC<ModalItem_VariantEdit>;
@@ -1,2 +0,0 @@
1
- import type { 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
- actionItemParentId?: 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,18 +0,0 @@
1
- import { Route, GroupedEntities, 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
- getRoute: (documentId: string) => Promise<Route>;
8
- getAllRoutes: () => Promise<Route[]>;
9
- getProhibitedRouteIds: (documentId?: string) => Promise<string[]>;
10
- getNavigation: ({ documentId, variant }?: {
11
- documentId?: string;
12
- variant?: StructuredNavigationVariant | "namesOnly";
13
- }) => Promise<any>;
14
- createNavigation: (body: NavigationInput) => Promise<any>;
15
- deleteNavigation: (documentId: string) => Promise<any>;
16
- updateNavigation: (documentId: string, body: NavigationInput) => Promise<any>;
17
- updateNavigationItemStructure: (documentId: string, navigationItems: NestedNavItem[]) => Promise<any>;
18
- };
@@ -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,3 +0,0 @@
1
- /// <reference types="react" />
2
- import { RouteItemProps } from '../../types';
3
- export declare const RouteItem: import("react").ForwardRefExoticComponent<RouteItemProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,4 +0,0 @@
1
- import type { NestedNavItem } from '../../../../types';
2
- export default function RouteItemBadge({ item }: {
3
- item: NestedNavItem;
4
- }): import("react/jsx-runtime").JSX.Element | null;
@@ -1,5 +0,0 @@
1
- import { ReactElement } from 'react';
2
- export default function RouteItemIcon({ type, color }: {
3
- type: 'internal' | 'external' | 'wrapper' | undefined;
4
- color?: string;
5
- }): ReactElement;
@@ -1,10 +0,0 @@
1
- import type { NestedNavItem } from '../../../../types';
2
- export default function RouteItemMenu({ item, depth, maxDepth, handleEdit, handleAddChildren, handleDelete, handleRestore }: {
3
- item: NestedNavItem;
4
- depth?: number;
5
- maxDepth: number;
6
- handleEdit: () => void;
7
- handleAddChildren: () => void;
8
- handleDelete: () => void;
9
- handleRestore: () => void;
10
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +0,0 @@
1
- import type { NestedNavItem } from '../../../../types';
2
- export default function RouteItemStatus({ item, isUpdated, }: {
3
- item: NestedNavItem;
4
- isUpdated?: boolean;
5
- }): import("react/jsx-runtime").JSX.Element | null;
@@ -1,2 +0,0 @@
1
- import { RouteItemProps } from '../../types';
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,4 +0,0 @@
1
- export * from './route';
2
- export * from './panel';
3
- export * from './modal';
4
- export * from './navigation';
@@ -1,56 +0,0 @@
1
- /// <reference types="react" />
2
- import type { GroupedEntities, NestedNavItem, NestedNavigation, RouteSettings } from '../../../types';
3
- import type { PanelPathState, PanelAction } from '../types';
4
- export type ModalItem_VariantCreate = {
5
- actionItemParent: NestedNavItem | null;
6
- navigationItems?: NestedNavItem[] | null;
7
- navigations: NestedNavigation[] | null;
8
- onCreate: (newItem: NestedNavItem) => void;
9
- };
10
- export type ModalItem_VariantEdit = {
11
- item: NestedNavItem;
12
- navigationItems?: NestedNavItem[] | null;
13
- onEdit: (editedItem: NestedNavItem) => void;
14
- };
15
- export type modalSharedLogic = {
16
- availableEntities: GroupedEntities[];
17
- selectedContentType: GroupedEntities | undefined;
18
- setSelectedContentType: (value: GroupedEntities) => void;
19
- entities: GroupedEntities[];
20
- validationState: 'initial' | 'checking' | 'done';
21
- setValidationState: (value: 'initial' | 'checking' | 'done') => void;
22
- initialState: React.RefObject<RouteSettings>;
23
- navItemState: RouteSettings;
24
- dispatchNavItemState: React.Dispatch<any>;
25
- path: ExtendedPanelPathState;
26
- dispatchPath: React.Dispatch<ExtendedPanelAction>;
27
- debouncedCheckUrl: ({ url, routeDocumentId, withoutTransform }: {
28
- url: string;
29
- routeDocumentId?: string | null;
30
- withoutTransform?: boolean;
31
- }) => void;
32
- modalType: string;
33
- setModalType: (value: string) => void;
34
- selectedNavigation: NestedNavigation | undefined;
35
- };
36
- export type ExtendedPanelPathState = PanelPathState & {
37
- initialPath: string;
38
- slug: string;
39
- };
40
- export type ExtendedPanelAction = PanelAction | {
41
- type: 'SET_INITIALPATH';
42
- payload: string;
43
- } | {
44
- type: 'SET_SLUG';
45
- payload: string;
46
- };
47
- export type navItemStateAction = {
48
- type: 'SET_TITLE';
49
- payload: string;
50
- } | {
51
- type: 'SET_ACTIVE';
52
- payload: boolean;
53
- } | {
54
- type: 'SET_OVERRIDE';
55
- payload: boolean;
56
- };
@@ -1,18 +0,0 @@
1
- /// <reference types="react" />
2
- import type { NestedNavItem, NestedNavigation } from '../../../types';
3
- export type RouteItemProps = {
4
- item: NestedNavItem;
5
- initialItem?: NestedNavItem;
6
- setActionItemParent: (item: NestedNavItem | null) => void;
7
- setActionItem: React.Dispatch<React.SetStateAction<NestedNavItem | NestedNavigation | undefined>>;
8
- setNavigationItems: React.Dispatch<React.SetStateAction<NestedNavItem[] | undefined>>;
9
- ghost?: boolean;
10
- depth?: number;
11
- maxDepth: number;
12
- style?: React.CSSProperties;
13
- wrapperRef?(node: HTMLLIElement): void;
14
- handleProps?: any;
15
- disableInteraction?: boolean;
16
- indentationWidth?: number;
17
- navigationItems?: NestedNavItem[] | null;
18
- };
@@ -1,41 +0,0 @@
1
- import { Route } from "../../../types";
2
- export type PanelAction = {
3
- type: 'DEFAULT';
4
- payload: string;
5
- } | {
6
- type: 'NO_URL_CHECK';
7
- payload: string;
8
- } | {
9
- type: 'NO_TRANSFORM_AND_CHECK';
10
- payload: string;
11
- } | {
12
- type: 'RESET_URL_CHECK_FLAG';
13
- } | {
14
- type: 'SET_REPLACEMENT';
15
- payload: string;
16
- } | {
17
- type: 'SET_UIDPATH';
18
- payload: string;
19
- } | {
20
- type: 'SET_CANONICALPATH';
21
- payload: string;
22
- } | {
23
- type: 'SET_OVERRIDEPATH';
24
- payload: string;
25
- };
26
- export type PanelPathState = {
27
- value?: string;
28
- prevValue?: string;
29
- uidPath?: string;
30
- needsUrlCheck: boolean;
31
- replacement: string | null;
32
- canonicalPath?: string;
33
- overridePath?: string;
34
- };
35
- export type RouteStructureProps = {
36
- canonicalPath?: string;
37
- routes: Route[];
38
- selectedParent: Route | null;
39
- setSelectedParent: (value: Route | null) => void;
40
- prohibitedRouteIds?: string[];
41
- };
@@ -1,2 +0,0 @@
1
- import type { Route } from '../../../types/';
2
- export type RouteSortKey = keyof Pick<Route, 'title' | 'canonicalPath' | 'path' | 'type'>;