@pimcore/studio-ui-bundle 1.0.0-canary.20251202-165434-6bee925 → 1.0.0-canary.20251203-083200-9acb799
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/dist/build/types/src/core/app/config/services/service-ids.d.ts +1 -0
- package/dist/build/types/src/core/modules/app/base-layout/main-nav/services/main-nav-registry.d.ts +3 -0
- package/dist/build/types/src/core/modules/perspective-editor/components/perspective-form/perspective-form.d.ts +1 -3
- package/dist/build/types/src/core/modules/perspective-editor/registry/perspective-permission-provider-registry.d.ts +26 -0
- package/dist/build/types/src/core/modules/perspective-editor/services/providers/main-nav-perspective-permission-provider.d.ts +13 -0
- package/dist/build/types/src/core/modules/perspective-editor/services/providers/search-perspective-permission-provider.d.ts +13 -0
- package/dist/build/types/src/core/modules/perspectives/enums/nav-permission.d.ts +28 -21
- package/dist/build/types/src/core/modules/search/search.d.ts +1 -1
- package/package.json +1 -1
|
@@ -265,6 +265,7 @@ export declare const serviceIds: {
|
|
|
265
265
|
'DynamicTypes/IconSet/Twemoji': string;
|
|
266
266
|
'DynamicTypes/WidgetEditor/WidgetTypeRegistry': string;
|
|
267
267
|
mainNavRegistry: string;
|
|
268
|
+
perspectivePermissionProviderRegistry: string;
|
|
268
269
|
widgetManager: string;
|
|
269
270
|
widgetRestorerRegistry: string;
|
|
270
271
|
backgroundProcessor: string;
|
package/dist/build/types/src/core/modules/app/base-layout/main-nav/services/main-nav-registry.d.ts
CHANGED
|
@@ -33,4 +33,7 @@ export declare class MainNavRegistry {
|
|
|
33
33
|
registerMainNavItem(item: IMainNavItem): void;
|
|
34
34
|
getMainNavItem(path: string): IMainNavItem | undefined;
|
|
35
35
|
getMainNavItems(): IMainNavItem[];
|
|
36
|
+
getMainNavTree(): IMainNavItem[];
|
|
37
|
+
private addNavItemToItemList;
|
|
38
|
+
private sortTree;
|
|
36
39
|
}
|
|
@@ -10,8 +10,6 @@
|
|
|
10
10
|
import { type PerspectiveConfigDetail } from '../../../../../sdk/api/perspectives';
|
|
11
11
|
import React from 'react';
|
|
12
12
|
export interface PerspectiveFormProps {
|
|
13
|
-
perspective: PerspectiveConfigDetail
|
|
14
|
-
writeable: boolean;
|
|
15
|
-
};
|
|
13
|
+
perspective: PerspectiveConfigDetail;
|
|
16
14
|
}
|
|
17
15
|
export declare const PerspectiveForm: ({ perspective }: PerspectiveFormProps) => React.JSX.Element;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is available under the terms of the
|
|
3
|
+
* Pimcore Open Core License (POCL)
|
|
4
|
+
* Full copyright and license information is available in
|
|
5
|
+
* LICENSE.md which is distributed with this source code.
|
|
6
|
+
*
|
|
7
|
+
* @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
|
|
8
|
+
* @license Pimcore Open Core License (POCL)
|
|
9
|
+
*/
|
|
10
|
+
export interface PermissionItem {
|
|
11
|
+
key: string;
|
|
12
|
+
label?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface PermissionCategory {
|
|
15
|
+
key: string;
|
|
16
|
+
label?: string;
|
|
17
|
+
permissions: PermissionItem[];
|
|
18
|
+
}
|
|
19
|
+
export interface IPerspectivePermissionProvider {
|
|
20
|
+
getPermissions: () => PermissionCategory[];
|
|
21
|
+
}
|
|
22
|
+
export declare class PerspectivePermissionProviderRegistry {
|
|
23
|
+
private readonly providers;
|
|
24
|
+
registerProvider(provider: IPerspectivePermissionProvider, priority?: number): void;
|
|
25
|
+
getPermissions(): PermissionCategory[];
|
|
26
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is available under the terms of the
|
|
3
|
+
* Pimcore Open Core License (POCL)
|
|
4
|
+
* Full copyright and license information is available in
|
|
5
|
+
* LICENSE.md which is distributed with this source code.
|
|
6
|
+
*
|
|
7
|
+
* @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
|
|
8
|
+
* @license Pimcore Open Core License (POCL)
|
|
9
|
+
*/
|
|
10
|
+
import { type IPerspectivePermissionProvider, type PermissionCategory } from '../../registry/perspective-permission-provider-registry';
|
|
11
|
+
export declare class MainNavPerspectivePermissionProvider implements IPerspectivePermissionProvider {
|
|
12
|
+
getPermissions(): PermissionCategory[];
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is available under the terms of the
|
|
3
|
+
* Pimcore Open Core License (POCL)
|
|
4
|
+
* Full copyright and license information is available in
|
|
5
|
+
* LICENSE.md which is distributed with this source code.
|
|
6
|
+
*
|
|
7
|
+
* @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
|
|
8
|
+
* @license Pimcore Open Core License (POCL)
|
|
9
|
+
*/
|
|
10
|
+
import { type IPerspectivePermissionProvider, type PermissionCategory } from '../../registry/perspective-permission-provider-registry';
|
|
11
|
+
export declare class SearchPerspectivePermissionProvider implements IPerspectivePermissionProvider {
|
|
12
|
+
getPermissions(): PermissionCategory[];
|
|
13
|
+
}
|
|
@@ -8,25 +8,32 @@
|
|
|
8
8
|
* @license Pimcore Open Core License (POCL)
|
|
9
9
|
*/
|
|
10
10
|
export declare enum NavPermission {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
11
|
+
QuickAccessHidden = "quickAccess.hidden",
|
|
12
|
+
OpenDocument = "quickAccess.open_document",
|
|
13
|
+
OpenObject = "quickAccess.open_object",
|
|
14
|
+
OpenAsset = "quickAccess.open_asset",
|
|
15
|
+
RecycleBin = "quickAccess.recycle_bin",
|
|
16
|
+
DataManagementHidden = "dataManagement.hidden",
|
|
17
|
+
NotesAndEvents = "dataManagement.notesEvents",
|
|
18
|
+
SearchReplaceAssignments = "dataManagement.searchReplaceAssignments",
|
|
19
|
+
PredefinedProperties = "dataManagement.predefinedProperties",
|
|
20
|
+
TagConfiguration = "dataManagement.tagConfiguration",
|
|
21
|
+
ExperienceEcommerceHidden = "experienceEcommerce.hidden",
|
|
22
|
+
Mails = "experienceEcommerce.emails",
|
|
23
|
+
DocumentTypes = "experienceEcommerce.documentTypes",
|
|
24
|
+
WebsiteSettings = "experienceEcommerce.websiteSettings",
|
|
25
|
+
Redirects = "experienceEcommerce.redirects",
|
|
26
|
+
TranslationsHidden = "translations.hidden",
|
|
27
|
+
Translations = "translations.translations",
|
|
28
|
+
ReportingHidden = "reporting.hidden",
|
|
29
|
+
Reports = "reporting.reports",
|
|
30
|
+
CustomReportsConfiguration = "reporting.customReportsConfiguration",
|
|
31
|
+
SystemHidden = "system.hidden",
|
|
32
|
+
UsersHidden = "system.users_hidden",
|
|
33
|
+
Users = "system.users_users",
|
|
34
|
+
Roles = "system.users_roles",
|
|
35
|
+
PerspectiveEditor = "system.perspectiveEditor",
|
|
36
|
+
WidgetEditor = "system.widgetEditor",
|
|
37
|
+
ApplicationLogger = "system.applicationLogger",
|
|
38
|
+
SearchHidden = "search.hidden"
|
|
32
39
|
}
|