@pimcore/data-hub 2026.1.0 → 2026.1.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.
@@ -0,0 +1,28 @@
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 Layout } from '@pimcore/studio-ui-bundle/api/class-definition';
11
+ import { type TreeNode } from '../types';
12
+ export interface ObjectBricksFieldInfo {
13
+ name: string;
14
+ title: string | null;
15
+ allowedTypes: string[];
16
+ }
17
+ export declare const filterTreeNodesRecursive: (nodes: TreeNode[], searchValue: string) => TreeNode[];
18
+ export declare const collectAllKeys: (nodes: TreeNode[]) => string[];
19
+ /**
20
+ * Recursively walks a raw layout's children to collect all objectbricks fields
21
+ * that have a non-empty allowedTypes list.
22
+ */
23
+ export declare const scanForObjectBricksFields: (layout: Layout) => ObjectBricksFieldInfo[];
24
+ /**
25
+ * Recursively removes objectbricks field nodes from the tree.
26
+ * They are replaced by brick group nodes appended at the root level.
27
+ */
28
+ export declare const removeObjectBricksNodes: (nodes: TreeNode[]) => TreeNode[];
@@ -0,0 +1,16 @@
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 ConfigLayoutDefinition } from '@pimcore/studio-ui-bundle/api/class-definition';
11
+ interface UseObjectBrickLayoutsReturn {
12
+ layouts: Map<string, ConfigLayoutDefinition>;
13
+ isLoading: boolean;
14
+ }
15
+ export declare const useObjectBrickLayouts: (brickKeys: string[]) => UseObjectBrickLayoutsReturn;
16
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pimcore/data-hub",
3
- "version": "2026.1.0",
3
+ "version": "2026.1.1",
4
4
  "scripts": {
5
5
  "dev": "NODE_ENV=development rsbuild build",
6
6
  "dev-server": "NODE_ENV=dev-server rsbuild dev",