@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,17 +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
|
-
getRoutes(): Promise<any>;
|
|
8
|
-
updateRoute(documentId: string, data: any): Promise<any>;
|
|
9
|
-
getRelatedRoute(documentId: string): Promise<any>;
|
|
10
|
-
getNavigation(documentId?: string, variant?: StructuredNavigationVariant | "namesOnly"): Promise<any>;
|
|
11
|
-
createNavigation(name: string, visible: boolean): Promise<any>;
|
|
12
|
-
updateNavigation(documentId: string, data: NavigationInput): Promise<any>;
|
|
13
|
-
deleteNavigation(documentId: string): Promise<any>;
|
|
14
|
-
updateNavigationItemStructure(navigationId: string, navigationItems: NestedNavItem[]): Promise<boolean>;
|
|
15
|
-
checkUniquePath(initialPath: string, targetRouteDocumentId?: string | null): Promise<string>;
|
|
16
|
-
};
|
|
17
|
-
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,24 +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
|
-
getRoutes(): Promise<any>;
|
|
8
|
-
updateRoute(documentId: string, data: any): Promise<any>;
|
|
9
|
-
getRelatedRoute(documentId: string): Promise<any>;
|
|
10
|
-
getNavigation(documentId?: string, variant?: import("../../../types").StructuredNavigationVariant | "namesOnly"): Promise<any>;
|
|
11
|
-
createNavigation(name: string, visible: boolean): Promise<any>;
|
|
12
|
-
updateNavigation(documentId: string, data: import("../../../types").NavigationInput): Promise<any>;
|
|
13
|
-
deleteNavigation(documentId: string): Promise<any>;
|
|
14
|
-
updateNavigationItemStructure(navigationId: string, navigationItems: import("../../../types").NestedNavItem[]): Promise<boolean>;
|
|
15
|
-
checkUniquePath(initialPath: string, targetRouteDocumentId?: string): Promise<string>;
|
|
16
|
-
};
|
|
17
|
-
client: ({ strapi }: {
|
|
18
|
-
strapi: any;
|
|
19
|
-
}) => {
|
|
20
|
-
getEntityByPath(slug: string, populate: string, populateDeepDepth: string, fields: any, status?: "published" | "draft"): Promise<any>;
|
|
21
|
-
getNavigation(id: string, name: string, documentId: string, variant?: import("../../../types").StructuredNavigationVariant): Promise<any>;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
export default _default;
|
|
@@ -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 cleanRootKeys(obj: any): any;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function duplicateCheck(initialPath: string, targetRouteDocumentId?: string | null): Promise<string>;
|
|
@@ -1,11 +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 } 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
|
-
export { duplicateCheck, createNavItem, updateNavItem, deleteNavItem, getAdminService, getClientService, reduceDepthOfOrphanedItems, createExternalRoute, buildStructuredNavigation, extractRouteAndItems, getFullPopulateObject, cleanRootKeys, removeWaFields, };
|
|
@@ -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 +0,0 @@
|
|
|
1
|
-
export default function removeWaFields(obj: any): any;
|
package/dist/types/api.d.ts
DELETED
|
@@ -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>>;
|
package/dist/types/index.d.ts
DELETED
package/dist/types/modal.d.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { Entity, GroupedEntities, NestedNavItem, NestedNavigation, Route, RouteSettings } from './';
|
|
3
|
-
export type ModalItem_VariantCreate = {
|
|
4
|
-
parentId?: string;
|
|
5
|
-
onCreate: (newItem: NestedNavItem) => void;
|
|
6
|
-
};
|
|
7
|
-
export type ModalItem_VariantEdit = {
|
|
8
|
-
item: NestedNavItem;
|
|
9
|
-
onEdit: (editedItem: NestedNavItem) => void;
|
|
10
|
-
};
|
|
11
|
-
export type modalSharedLogic = {
|
|
12
|
-
availableEntities: GroupedEntities[];
|
|
13
|
-
setAvailableEntities: (value: GroupedEntities[]) => void;
|
|
14
|
-
selectedEntity: Entity | null | undefined;
|
|
15
|
-
setSelectedEntity: (value: Entity | null | undefined) => void;
|
|
16
|
-
selectedContentType: GroupedEntities | undefined;
|
|
17
|
-
setSelectedContentType: (value: GroupedEntities) => void;
|
|
18
|
-
entityRoute: Route | undefined;
|
|
19
|
-
setEntityRoute: (value: Route) => void;
|
|
20
|
-
entities: GroupedEntities[];
|
|
21
|
-
updateRoute: (body: RouteSettings, documentId: string) => Promise<any>;
|
|
22
|
-
getRelatedRoute: (relatedDocumentId: string) => Promise<Route>;
|
|
23
|
-
replacement: string;
|
|
24
|
-
setReplacement: (value: string) => void;
|
|
25
|
-
validationState: 'initial' | 'checking' | 'done';
|
|
26
|
-
setValidationState: (value: 'initial' | 'checking' | 'done') => void;
|
|
27
|
-
initialState: React.RefObject<RouteSettings>;
|
|
28
|
-
navItemState: RouteSettings;
|
|
29
|
-
dispatchItemState: React.Dispatch<any>;
|
|
30
|
-
path: any;
|
|
31
|
-
dispatchPath: React.Dispatch<any>;
|
|
32
|
-
debouncedCheckUrl: (url: string, routeDocumentId?: string | null | undefined) => void;
|
|
33
|
-
modalType: string;
|
|
34
|
-
setModalType: (value: string) => void;
|
|
35
|
-
selectedNavigation: NestedNavigation | undefined;
|
|
36
|
-
};
|
|
@@ -1,65 +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
|
-
deleted?: boolean;
|
|
53
|
-
update?: {
|
|
54
|
-
title?: string;
|
|
55
|
-
slug?: string;
|
|
56
|
-
path?: string;
|
|
57
|
-
isOverride?: boolean;
|
|
58
|
-
};
|
|
59
|
-
isNew?: {
|
|
60
|
-
route: string | null;
|
|
61
|
-
parent: string | null;
|
|
62
|
-
navigation: string | null;
|
|
63
|
-
};
|
|
64
|
-
};
|
|
65
|
-
export type StructuredNavigationVariant = 'nested' | 'flat';
|
package/dist/types/route.d.ts
DELETED
|
@@ -1,32 +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
|
-
relatedContentType: string;
|
|
9
|
-
relatedId: number;
|
|
10
|
-
relatedDocumentId: string;
|
|
11
|
-
type: 'internal' | 'external' | 'wrapper';
|
|
12
|
-
active: boolean;
|
|
13
|
-
isOverride: boolean;
|
|
14
|
-
navitem: {
|
|
15
|
-
id: number;
|
|
16
|
-
} | null;
|
|
17
|
-
createdAt: string;
|
|
18
|
-
updatedAt: string;
|
|
19
|
-
};
|
|
20
|
-
export type RouteSettings = {
|
|
21
|
-
relatedContentType?: string;
|
|
22
|
-
relatedId?: number;
|
|
23
|
-
relatedDocumentId?: string;
|
|
24
|
-
title?: string;
|
|
25
|
-
path?: string;
|
|
26
|
-
slug?: string;
|
|
27
|
-
uidPath?: string;
|
|
28
|
-
isOverride?: boolean;
|
|
29
|
-
active?: boolean;
|
|
30
|
-
navitem?: number;
|
|
31
|
-
type?: 'internal' | 'external' | 'wrapper';
|
|
32
|
-
};
|
package/dist/types/strapi.d.ts
DELETED
|
@@ -1,53 +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
|
-
pattern?: string;
|
|
27
|
-
};
|
|
28
|
-
export type PluginConfig = {
|
|
29
|
-
selectedContentTypes: ConfigContentType[];
|
|
30
|
-
navigation: {
|
|
31
|
-
maxDepth: number;
|
|
32
|
-
};
|
|
33
|
-
migrationVersion: string;
|
|
34
|
-
};
|
|
35
|
-
export type Entity = {
|
|
36
|
-
id: number;
|
|
37
|
-
createdAt: string;
|
|
38
|
-
createdBy: User;
|
|
39
|
-
updatedAt: string | null;
|
|
40
|
-
updatedBy: User | null;
|
|
41
|
-
publishedAt: string | null;
|
|
42
|
-
[key: string]: any;
|
|
43
|
-
};
|
|
44
|
-
export type GroupedEntities = {
|
|
45
|
-
entities: Entity[];
|
|
46
|
-
contentType: ConfigContentType;
|
|
47
|
-
};
|
|
48
|
-
export type User = {
|
|
49
|
-
id: number;
|
|
50
|
-
firstname: string;
|
|
51
|
-
lastname: string;
|
|
52
|
-
username: string | null;
|
|
53
|
-
};
|
package/dist/utils/getPath.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function getPath(parentPath: string, slug: string): string;
|
package/dist/utils/index.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import getPath from './getPath';
|
|
2
|
-
import transformToUrl from './transformToUrl';
|
|
3
|
-
import { waNavigation, waNavItem, waRoute } from './pluginConstants';
|
|
4
|
-
import { PLUGIN_ID, PLUGIN_NAME, PLUGIN_VERSION } from './pluginId';
|
|
5
|
-
export { getPath, transformToUrl, waNavigation, waNavItem, waRoute, PLUGIN_ID, PLUGIN_NAME, PLUGIN_VERSION };
|
package/dist/utils/pluginId.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function transformToUrl(input: string): string;
|
|
File without changes
|
|
File without changes
|