@pimcore/change-control-bundle 2026.3.0-canary.20260921-113351-d7bfba2
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 +63 -0
- package/dist/build/types/api/change-control-api-slice.d.ts +874 -0
- package/dist/build/types/api/change-control-api-slice.gen.d.ts +1061 -0
- package/dist/build/types/main.d.ts +9 -0
- package/dist/build/types/plugins.d.ts +16 -0
- package/dist/build/types/review/change-tag/change-tag.d.ts +16 -0
- package/dist/build/types/review/change-tag/change-tag.styles.d.ts +12 -0
- package/dist/build/types/review/contract.d.ts +110 -0
- package/dist/build/types/review/core/compared-side.d.ts +18 -0
- package/dist/build/types/review/core/create-diff-fields.d.ts +29 -0
- package/dist/build/types/review/core/layout-utils.d.ts +22 -0
- package/dist/build/types/review/core/leaf-path.d.ts +21 -0
- package/dist/build/types/review/core/merge-object-data.d.ts +33 -0
- package/dist/build/types/review/core/process-layout-data.d.ts +35 -0
- package/dist/build/types/review/core/review-split.d.ts +15 -0
- package/dist/build/types/review/core/seed-ownership.d.ts +19 -0
- package/dist/build/types/review/core/subject-slots.d.ts +22 -0
- package/dist/build/types/review/core/subject-summary.d.ts +34 -0
- package/dist/build/types/review/core/use-recorded-fields.d.ts +41 -0
- package/dist/build/types/review/core/use-review-diff-data.d.ts +40 -0
- package/dist/build/types/review/fields/context-safe-field/context-safe-field.d.ts +48 -0
- package/dist/build/types/review/fields/diff-field-renderers/diff-field-renderers.d.ts +36 -0
- package/dist/build/types/review/fields/diff-field-renderers/diff-field-renderers.styles.d.ts +35 -0
- package/dist/build/types/review/fields/diff-field-row/diff-field-row.d.ts +37 -0
- package/dist/build/types/review/fields/diff-list-counts.d.ts +18 -0
- package/dist/build/types/review/fields/editable-field-collection/editable-field-collection.d.ts +18 -0
- package/dist/build/types/review/fields/editable-field-collection/editable-field-collection.styles.d.ts +40 -0
- package/dist/build/types/review/fields/field-error-boundary/field-error-boundary.d.ts +29 -0
- package/dist/build/types/review/fields/recorded-field-row/recorded-field-row.d.ts +31 -0
- package/dist/build/types/review/fields/review-exclusion-context/review-exclusion-context.d.ts +15 -0
- package/dist/build/types/review/fields/review-field-scope/review-field-scope.d.ts +20 -0
- package/dist/build/types/review/fields/row-layout-registry.d.ts +28 -0
- package/dist/build/types/review/fields/wide-field-cards/wide-field-cards.d.ts +33 -0
- package/dist/build/types/review/index.d.ts +19 -0
- package/dist/build/types/review/multi-subject-review/multi-subject-review.d.ts +18 -0
- package/dist/build/types/review/multi-subject-review/multi-subject-review.styles.d.ts +19 -0
- package/dist/build/types/review/registries/review-surface-registry.d.ts +31 -0
- package/dist/build/types/review/registries/slot-renderer-registry.d.ts +55 -0
- package/dist/build/types/review/review-diff-view/review-diff-view.d.ts +18 -0
- package/dist/build/types/review/review-diff-view/review-diff-view.styles.d.ts +224 -0
- package/dist/build/types/review/review-outcome-header/review-outcome-header.d.ts +19 -0
- package/dist/build/types/review/review-outcome-header/review-outcome-header.styles.d.ts +25 -0
- package/dist/build/types/review/review-stale-banner/review-stale-banner.d.ts +16 -0
- package/dist/build/types/review/review-stale-banner/review-stale-banner.styles.d.ts +18 -0
- package/dist/build/types/review/slots/build-slot-rows.d.ts +36 -0
- package/dist/build/types/review/slots/editable-scalar-cell/editable-scalar-cell.d.ts +23 -0
- package/dist/build/types/review/slots/raw-value.d.ts +11 -0
- package/dist/build/types/review/slots/renderers/entry-set-slot-renderer/entry-set-slot-renderer.d.ts +14 -0
- package/dist/build/types/review/slots/renderers/metadata-slot-renderer/metadata-slot-renderer.d.ts +16 -0
- package/dist/build/types/review/slots/renderers/tags-slot-renderer/tags-slot-renderer.d.ts +17 -0
- package/dist/build/types/review/slots/slot-diff-table/slot-diff-table.d.ts +38 -0
- package/dist/build/types/review/slots/slot-types.d.ts +73 -0
- package/dist/build/types/review/subject-rail/subject-rail.d.ts +35 -0
- package/dist/build/types/review/subject-rail/subject-rail.styles.d.ts +27 -0
- package/dist/build/types/review/surfaces/class-definition-review-surface/class-definition-review-surface.d.ts +20 -0
- package/dist/build/types/review/surfaces/class-definition-review-surface/class-definition-review-surface.styles.d.ts +17 -0
- package/dist/build/types/review/surfaces/class-definition-review-surface/class-review-diff.d.ts +66 -0
- package/dist/build/types/review/surfaces/class-definition-review-surface/class-review-editor/class-review-editor.d.ts +38 -0
- package/dist/build/types/review/surfaces/class-definition-review-surface/class-settings-fields/class-settings-fields.d.ts +11 -0
- package/dist/build/types/review/surfaces/class-definition-review-surface/layout-path.d.ts +25 -0
- package/dist/build/types/review/surfaces/class-definition-review-surface/settings-annotations.d.ts +23 -0
- package/dist/build/types/review/surfaces/class-definition-review-surface/studio-class-editor.d.ts +91 -0
- package/dist/build/types/review/surfaces/classification-store-review-surface/change-numerals/change-numerals.d.ts +20 -0
- package/dist/build/types/review/surfaces/classification-store-review-surface/change-numerals/change-numerals.styles.d.ts +17 -0
- package/dist/build/types/review/surfaces/classification-store-review-surface/classification-store-review-diff.d.ts +82 -0
- package/dist/build/types/review/surfaces/classification-store-review-surface/classification-store-review-surface.d.ts +18 -0
- package/dist/build/types/review/surfaces/classification-store-review-surface/classification-store-review-surface.styles.d.ts +38 -0
- package/dist/build/types/review/surfaces/classification-store-review-surface/collection-rows/collection-rows.d.ts +23 -0
- package/dist/build/types/review/surfaces/classification-store-review-surface/group-rows/group-rows.d.ts +23 -0
- package/dist/build/types/review/surfaces/default-review-surfaces.d.ts +20 -0
- package/dist/build/types/review/surfaces/default-slot-renderers.d.ts +20 -0
- package/dist/build/types/review/surfaces/object-review-surface/object-review-surface.d.ts +17 -0
- package/dist/build/types/review/surfaces/recorded-review-surface/recorded-review-surface.d.ts +28 -0
- package/dist/build/types/review/surfaces/review-surface/review-surface.d.ts +36 -0
- package/dist/build/types/review/surfaces/select-options-review-surface/select-options-review-diff.d.ts +42 -0
- package/dist/build/types/review/surfaces/select-options-review-surface/select-options-review-surface.d.ts +18 -0
- package/dist/build/types/review/surfaces/select-options-review-surface/select-options-review-surface.styles.d.ts +14 -0
- package/dist/build/types/review/surfaces/select-options-review-surface/studio-select-option-editor.d.ts +19 -0
- package/dist/build/types/review/surfaces/slot-review-surface/slot-review-surface.d.ts +18 -0
- package/dist/build/types/sdk/index.d.ts +10 -0
- package/package.json +84 -0
package/dist/build/types/review/surfaces/class-definition-review-surface/studio-class-editor.d.ts
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
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 ComponentType, type ReactNode } from 'react';
|
|
11
|
+
/**
|
|
12
|
+
* The class editor as the review lane borrows it. Review mode (`readOnly`, the tree
|
|
13
|
+
* decorator, the form annotations) reaches Studio with studio-ui-bundle #4085, which the
|
|
14
|
+
* pinned canary predates — so the module is typed here and read off the namespace, and a
|
|
15
|
+
* host that has not got it yet reports `supportsReviewEditor === false` instead of
|
|
16
|
+
* throwing. Both go once the pinned canary carries the seams.
|
|
17
|
+
*/
|
|
18
|
+
export interface TreeItem {
|
|
19
|
+
readonly [key: string]: unknown;
|
|
20
|
+
readonly title?: ReactNode;
|
|
21
|
+
}
|
|
22
|
+
export interface FieldDefinitionRecord {
|
|
23
|
+
readonly [key: string]: unknown;
|
|
24
|
+
readonly name?: string;
|
|
25
|
+
readonly fieldtype?: string;
|
|
26
|
+
}
|
|
27
|
+
export type TreeItemDecorator = (item: TreeItem, context: {
|
|
28
|
+
fieldDefinition: FieldDefinitionRecord | undefined;
|
|
29
|
+
path: string[];
|
|
30
|
+
}) => TreeItem;
|
|
31
|
+
/** the editor asks its data through query hooks; a review answers from what it already has */
|
|
32
|
+
export type StaticQuery = (arg?: unknown) => {
|
|
33
|
+
data: unknown;
|
|
34
|
+
isLoading: boolean;
|
|
35
|
+
isFetching: boolean;
|
|
36
|
+
refetch: () => void;
|
|
37
|
+
};
|
|
38
|
+
/** one node of the editor's own structure tree, which is what a selection path addresses */
|
|
39
|
+
export interface StructureNode {
|
|
40
|
+
readonly id: string;
|
|
41
|
+
readonly children: StructureNode[];
|
|
42
|
+
}
|
|
43
|
+
export interface LayoutContext {
|
|
44
|
+
readonly structure: StructureNode | undefined;
|
|
45
|
+
readonly currentFieldDefinitionId: string | null;
|
|
46
|
+
readonly fieldDefinitions: Record<string, FieldDefinitionRecord>;
|
|
47
|
+
readonly setCurrentFieldDefinitionId: (id: string | null) => void;
|
|
48
|
+
readonly setCurrentFieldDefinitionIdPath: (path: string[] | null) => void;
|
|
49
|
+
}
|
|
50
|
+
export interface LayoutProviderProps {
|
|
51
|
+
readonly layout: unknown;
|
|
52
|
+
readonly fieldDefinitionRegistry?: unknown;
|
|
53
|
+
readonly children: ReactNode;
|
|
54
|
+
}
|
|
55
|
+
export type DetailView = 'general' | 'layout';
|
|
56
|
+
export interface ReviewEditorProps {
|
|
57
|
+
readonly area: string[];
|
|
58
|
+
readonly readOnly?: boolean;
|
|
59
|
+
readonly decorateTreeItem?: TreeItemDecorator;
|
|
60
|
+
readonly view?: React.JSX.Element;
|
|
61
|
+
readonly useItemsQuery: StaticQuery;
|
|
62
|
+
readonly useDetailGeneralSettingsQuery: StaticQuery;
|
|
63
|
+
readonly useDetailLayoutQuery?: StaticQuery;
|
|
64
|
+
readonly GeneralSettingsFormFields: ComponentType;
|
|
65
|
+
readonly LayoutProvider?: ComponentType<LayoutProviderProps>;
|
|
66
|
+
readonly useLayout?: () => LayoutContext;
|
|
67
|
+
}
|
|
68
|
+
export interface FormItemAnnotation {
|
|
69
|
+
readonly status: 'added' | 'changed' | 'removed' | 'moved';
|
|
70
|
+
readonly hint?: ReactNode;
|
|
71
|
+
}
|
|
72
|
+
export declare const Editor: ComponentType<ReviewEditorProps>, ItemDetail: ComponentType<{
|
|
73
|
+
configuration: {
|
|
74
|
+
id: string;
|
|
75
|
+
name: string;
|
|
76
|
+
};
|
|
77
|
+
}> | undefined, create: () => {
|
|
78
|
+
LayoutProvider: ComponentType<LayoutProviderProps>;
|
|
79
|
+
useLayout: () => LayoutContext;
|
|
80
|
+
}, useSettings: () => {
|
|
81
|
+
fieldDefinitionRegistry: unknown;
|
|
82
|
+
}, useItems: () => {
|
|
83
|
+
detailView: DetailView;
|
|
84
|
+
setDetailView: (view: DetailView) => void;
|
|
85
|
+
};
|
|
86
|
+
export declare const FormAnnotationsProvider: ComponentType<{
|
|
87
|
+
annotations: Record<string, FormItemAnnotation>;
|
|
88
|
+
children?: ReactNode;
|
|
89
|
+
}> | undefined;
|
|
90
|
+
/** whether the host Studio carries the review seams this surface mounts on */
|
|
91
|
+
export declare const supportsReviewEditor: boolean;
|
|
@@ -0,0 +1,20 @@
|
|
|
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 React from 'react';
|
|
11
|
+
import { type ChangeStatus } from '../../../change-tag/change-tag';
|
|
12
|
+
export interface ChangeNumeralsProps {
|
|
13
|
+
readonly counts: Record<ChangeStatus, number>;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* What a change does to one kind of thing, as figures rather than badges. A tag everywhere
|
|
17
|
+
* else in this pane means "this object has this status"; these are counting, so they carry
|
|
18
|
+
* the status in their colour and the word in their tooltip and leave the badge to the cards.
|
|
19
|
+
*/
|
|
20
|
+
export declare const ChangeNumerals: (props: ChangeNumeralsProps) => React.JSX.Element | null;
|
|
@@ -0,0 +1,17 @@
|
|
|
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 declare const useStyles: (props?: unknown) => import("antd-style").ReturnStyles<{
|
|
11
|
+
numerals: import("antd-style").SerializedStyles;
|
|
12
|
+
numeral: import("antd-style").SerializedStyles;
|
|
13
|
+
added: import("antd-style").SerializedStyles;
|
|
14
|
+
changed: import("antd-style").SerializedStyles;
|
|
15
|
+
moved: import("antd-style").SerializedStyles;
|
|
16
|
+
removed: import("antd-style").SerializedStyles;
|
|
17
|
+
}>;
|
|
@@ -0,0 +1,82 @@
|
|
|
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 ChangeStatus } from '../../change-tag/change-tag';
|
|
11
|
+
import { type ReviewSlotData } from '../../slots/slot-types';
|
|
12
|
+
import { type CompareTarget } from '../../contract';
|
|
13
|
+
/** the key entry as the subject handler spells it under `<group>/<key>` */
|
|
14
|
+
export interface StoreKeyEntry {
|
|
15
|
+
readonly type: string;
|
|
16
|
+
readonly title: string;
|
|
17
|
+
readonly description?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface StoreKeyRow {
|
|
20
|
+
/** the leaf address, `<group>/<key>` */
|
|
21
|
+
readonly address: string;
|
|
22
|
+
readonly name: string;
|
|
23
|
+
readonly status: ChangeStatus;
|
|
24
|
+
readonly current: StoreKeyEntry | null;
|
|
25
|
+
readonly proposed: StoreKeyEntry | null;
|
|
26
|
+
}
|
|
27
|
+
export interface StoreGroupCard {
|
|
28
|
+
readonly name: string;
|
|
29
|
+
/** the group itself: new, dropped, or a description change; undefined when only its keys move */
|
|
30
|
+
readonly status?: ChangeStatus;
|
|
31
|
+
readonly description?: string;
|
|
32
|
+
readonly rows: StoreKeyRow[];
|
|
33
|
+
/** what the change does to THIS group's keys — the card carries its own numbers */
|
|
34
|
+
readonly keyCounts: Record<ChangeStatus, number>;
|
|
35
|
+
/** how many keys the group holds after the change; unknown when the keys slot was not shipped */
|
|
36
|
+
readonly keyTotal?: number;
|
|
37
|
+
}
|
|
38
|
+
/** a collection as the subject handler spells it: the groups it gathers, in order */
|
|
39
|
+
export interface StoreCollectionEntry {
|
|
40
|
+
readonly groups: string[];
|
|
41
|
+
readonly description?: string;
|
|
42
|
+
}
|
|
43
|
+
export interface StoreCollectionRow {
|
|
44
|
+
readonly name: string;
|
|
45
|
+
readonly status: ChangeStatus;
|
|
46
|
+
readonly current: StoreCollectionEntry | null;
|
|
47
|
+
readonly proposed: StoreCollectionEntry | null;
|
|
48
|
+
}
|
|
49
|
+
/** sizes after the change; a slot the change set left alone is not shipped, so its size is unknown */
|
|
50
|
+
export interface StoreCounts {
|
|
51
|
+
readonly groups?: number;
|
|
52
|
+
readonly keys?: number;
|
|
53
|
+
readonly collections?: number;
|
|
54
|
+
}
|
|
55
|
+
/** the three things a store is made of; the summary counts each of them on its own */
|
|
56
|
+
export type StoreKind = 'groups' | 'keys' | 'collections';
|
|
57
|
+
export type StoreTally = Record<StoreKind, Record<ChangeStatus, number>>;
|
|
58
|
+
export interface ClassificationStoreReviewDiff {
|
|
59
|
+
readonly groups: StoreGroupCard[];
|
|
60
|
+
/** the collections the change touches; a collection gathers groups, it owns nothing */
|
|
61
|
+
readonly collections: StoreCollectionRow[];
|
|
62
|
+
/** what the change adds, changes and removes, counted per kind — a group is not a key */
|
|
63
|
+
readonly counts: StoreTally;
|
|
64
|
+
/** everything the store holds AFTER the change — the rail's one-line summary */
|
|
65
|
+
readonly proposedTotals: StoreCounts;
|
|
66
|
+
readonly changedCount: number;
|
|
67
|
+
}
|
|
68
|
+
export interface StoreSlots {
|
|
69
|
+
readonly groups?: ReviewSlotData;
|
|
70
|
+
readonly keys?: ReviewSlotData;
|
|
71
|
+
readonly collections?: ReviewSlotData;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* The store's two flat address maps folded back into the shape a reader thinks in: one card
|
|
75
|
+
* per group, its keys as rows. Both maps are the FULL proposed store (an omitted key is a
|
|
76
|
+
* removal), so an untouched key is context and only the changed ones become rows; a group
|
|
77
|
+
* appears whenever it or one of its keys changed. The compared side is the live store in
|
|
78
|
+
* review and the recorded base in history — a store the change creates has no base, so all
|
|
79
|
+
* of it is an addition.
|
|
80
|
+
*/
|
|
81
|
+
export declare const KINDS: StoreKind[];
|
|
82
|
+
export declare const buildClassificationStoreReviewDiff: (slots: StoreSlots, compareAgainst: CompareTarget) => ClassificationStoreReviewDiff;
|
|
@@ -0,0 +1,18 @@
|
|
|
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 React from 'react';
|
|
11
|
+
import { type ReviewDiffViewProps } from '../../contract';
|
|
12
|
+
/**
|
|
13
|
+
* A classification store reviews as what it is to its reader: groups holding keys. The
|
|
14
|
+
* engine ships two flat address maps; this folds them back into one card per group with
|
|
15
|
+
* the keys the change touches, a head naming the store and a band counting what the change
|
|
16
|
+
* adds, alters and removes. Approve takes the whole store — there is nothing to tick.
|
|
17
|
+
*/
|
|
18
|
+
export declare const ClassificationStoreReviewSurface: (props: ReviewDiffViewProps) => React.JSX.Element | null;
|
|
@@ -0,0 +1,38 @@
|
|
|
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 declare const useStyles: (props?: unknown) => import("antd-style").ReturnStyles<{
|
|
11
|
+
frame: import("antd-style").SerializedStyles;
|
|
12
|
+
alone: import("antd-style").SerializedStyles;
|
|
13
|
+
inSplit: import("antd-style").SerializedStyles;
|
|
14
|
+
body: import("antd-style").SerializedStyles;
|
|
15
|
+
head: import("antd-style").SerializedStyles;
|
|
16
|
+
eyebrow: import("antd-style").SerializedStyles;
|
|
17
|
+
title: import("antd-style").SerializedStyles;
|
|
18
|
+
description: import("antd-style").SerializedStyles;
|
|
19
|
+
was: import("antd-style").SerializedStyles;
|
|
20
|
+
summary: import("antd-style").SerializedStyles;
|
|
21
|
+
summaryPart: import("antd-style").SerializedStyles;
|
|
22
|
+
sections: import("antd-style").SerializedStyles;
|
|
23
|
+
section: import("antd-style").SerializedStyles;
|
|
24
|
+
sectionHead: import("antd-style").SerializedStyles;
|
|
25
|
+
sectionName: import("antd-style").SerializedStyles;
|
|
26
|
+
sectionCount: import("antd-style").SerializedStyles;
|
|
27
|
+
cards: import("antd-style").SerializedStyles;
|
|
28
|
+
cardTitle: import("antd-style").SerializedStyles;
|
|
29
|
+
cardDescription: import("antd-style").SerializedStyles;
|
|
30
|
+
cardExtra: import("antd-style").SerializedStyles;
|
|
31
|
+
cell: import("antd-style").SerializedStyles;
|
|
32
|
+
statusCell: import("antd-style").SerializedStyles;
|
|
33
|
+
keyName: import("antd-style").SerializedStyles;
|
|
34
|
+
tags: import("antd-style").SerializedStyles;
|
|
35
|
+
struck: import("antd-style").SerializedStyles;
|
|
36
|
+
absent: import("antd-style").SerializedStyles;
|
|
37
|
+
noRows: import("antd-style").SerializedStyles;
|
|
38
|
+
}>;
|
|
@@ -0,0 +1,23 @@
|
|
|
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 React from 'react';
|
|
11
|
+
import { type CompareTarget } from '../../../contract';
|
|
12
|
+
import { type StoreCollectionRow } from '../classification-store-review-diff';
|
|
13
|
+
export interface CollectionRowsProps {
|
|
14
|
+
readonly rows: StoreCollectionRow[];
|
|
15
|
+
readonly isNew: boolean;
|
|
16
|
+
readonly compareAgainst: CompareTarget;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* The collections the change touches, one row each. A collection gathers groups and owns
|
|
20
|
+
* nothing, so its row is the list of group names it holds — proposed alone for a new
|
|
21
|
+
* store, against what it held for an existing one.
|
|
22
|
+
*/
|
|
23
|
+
export declare const CollectionRows: (props: CollectionRowsProps) => React.JSX.Element;
|
|
@@ -0,0 +1,23 @@
|
|
|
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 React from 'react';
|
|
11
|
+
import { type CompareTarget } from '../../../contract';
|
|
12
|
+
import { type StoreGroupCard } from '../classification-store-review-diff';
|
|
13
|
+
export interface GroupRowsProps {
|
|
14
|
+
readonly group: StoreGroupCard;
|
|
15
|
+
readonly isNew: boolean;
|
|
16
|
+
readonly compareAgainst: CompareTarget;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* The keys one group's card lists. A store the change set creates has nothing to compare
|
|
20
|
+
* against, so its rows read as a definition (key, title, type) rather than as a diff; an
|
|
21
|
+
* existing store's rows set what is against what will be, each with its mark.
|
|
22
|
+
*/
|
|
23
|
+
export declare const GroupRows: (props: GroupRowsProps) => React.JSX.Element | null;
|
|
@@ -0,0 +1,20 @@
|
|
|
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 { ReviewSurfaceRegistry } from '../registries/review-surface-registry';
|
|
11
|
+
/**
|
|
12
|
+
* The bundle's own subject kinds. Objects keep the layout-driven form; assets are the
|
|
13
|
+
* slot table's first real consumer. Documents join at the cutover. A class definition
|
|
14
|
+
* reviews as the class editor, because its shape is the thing under review — and so do the
|
|
15
|
+
* definitions it embeds, which are the same layout tree under a different model. 'slots' is
|
|
16
|
+
* the surface-level key a shell names to review any subject's slot-shaped change set.
|
|
17
|
+
*/
|
|
18
|
+
export declare function seedReviewSurfaces(registry: ReviewSurfaceRegistry): ReviewSurfaceRegistry;
|
|
19
|
+
/** fallback instance when the plugin container is unavailable (tests, standalone) */
|
|
20
|
+
export declare const defaultReviewSurfaces: ReviewSurfaceRegistry;
|
|
@@ -0,0 +1,20 @@
|
|
|
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 { SlotRendererRegistry } from '../registries/slot-renderer-registry';
|
|
11
|
+
/**
|
|
12
|
+
* The seeded registry: named renderers for the slots the bundle's own subjects carry,
|
|
13
|
+
* a shape-level default for every other entry set, and the raw fallback (`shape:*`) that
|
|
14
|
+
* keeps unknown shapes reviewable — a new shape on the wire must degrade, never break.
|
|
15
|
+
* Settings and properties keep their scalar values review-editable; document editables
|
|
16
|
+
* and unknown slots review read-only, matching the surfaces this table subsumed.
|
|
17
|
+
*/
|
|
18
|
+
export declare function seedSlotRenderers(registry: SlotRendererRegistry): SlotRendererRegistry;
|
|
19
|
+
/** fallback instance when the plugin container is unavailable (tests, standalone) */
|
|
20
|
+
export declare const defaultSlotRenderers: SlotRendererRegistry;
|
|
@@ -0,0 +1,17 @@
|
|
|
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 React from 'react';
|
|
11
|
+
import { type ReviewDiffViewProps } from '../../review-diff-view/review-diff-view';
|
|
12
|
+
/**
|
|
13
|
+
* The object entry of the surface registry: layout-driven and hierarchical, rendered
|
|
14
|
+
* through Studio's own field components — deliberately NOT the slot table. Registered
|
|
15
|
+
* unchanged; the data pipeline underneath predates the registry and stays byte-identical.
|
|
16
|
+
*/
|
|
17
|
+
export declare const ObjectReviewSurface: ({ subjectRef, changeSetId, contextRef, proposed, base, payload, payloadError, readOnly: readOnlyProp, compareAgainst: compareAgainstProp, form, state, resolvedAt, staleVisible, onLiveVersionChange, onExcludedChange, onStatsChange }: ReviewDiffViewProps) => React.JSX.Element;
|
|
@@ -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 React from 'react';
|
|
11
|
+
import { type DynamicTypeObjectDataRegistry } from '@pimcore/studio-ui-bundle/modules/element';
|
|
12
|
+
import { type ReviewStyles } from '../../review-diff-view/review-diff-view.styles';
|
|
13
|
+
export interface RecordedReviewSurfaceProps {
|
|
14
|
+
readonly objectId: number;
|
|
15
|
+
readonly registry: DynamicTypeObjectDataRegistry | null;
|
|
16
|
+
readonly styles: ReviewStyles;
|
|
17
|
+
/** the recorded value set as submitted */
|
|
18
|
+
readonly recorded: Record<string, unknown> | null | undefined;
|
|
19
|
+
/** the base the change was recorded against; enables before → after rows */
|
|
20
|
+
readonly base?: Record<string, unknown> | null;
|
|
21
|
+
readonly state?: string;
|
|
22
|
+
readonly resolvedAt?: number;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* The read-only recorded composition: the change set as it was submitted,
|
|
26
|
+
* pinned to the recorded state — the live object is never fetched here.
|
|
27
|
+
*/
|
|
28
|
+
export declare const RecordedReviewSurface: ({ objectId, registry, styles, recorded, base, state, resolvedAt }: RecordedReviewSurfaceProps) => React.JSX.Element;
|
|
@@ -0,0 +1,36 @@
|
|
|
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 React from 'react';
|
|
11
|
+
import { type Form } from '@pimcore/studio-ui-bundle/components';
|
|
12
|
+
import { type DynamicTypeObjectDataRegistry } from '@pimcore/studio-ui-bundle/modules/element';
|
|
13
|
+
import { type RowLayoutRegistry } from '../../fields/row-layout-registry';
|
|
14
|
+
import { type ReviewStyles } from '../../review-diff-view/review-diff-view.styles';
|
|
15
|
+
type StudioFormInstance = ReturnType<(typeof Form)['useForm']>[0];
|
|
16
|
+
export interface ReviewSurfaceProps {
|
|
17
|
+
readonly objectId: number;
|
|
18
|
+
readonly registry: DynamicTypeObjectDataRegistry | null;
|
|
19
|
+
readonly styles: ReviewStyles;
|
|
20
|
+
readonly rowLayouts: RowLayoutRegistry;
|
|
21
|
+
readonly form: StudioFormInstance;
|
|
22
|
+
readonly proposed: Record<string, unknown> | null | undefined;
|
|
23
|
+
readonly proposedError?: string;
|
|
24
|
+
readonly staleVisible?: boolean;
|
|
25
|
+
/** leaf addresses the engine reports as conflicting */
|
|
26
|
+
readonly conflicts?: readonly string[];
|
|
27
|
+
readonly onLiveVersionChange?: (version: number) => void;
|
|
28
|
+
readonly onExcludedChange?: (paths: string[]) => void;
|
|
29
|
+
readonly onStatsChange?: (changedCount: number) => void;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* The editable review composition: current vs proposed per field with per-row
|
|
33
|
+
* include toggles — the surface used while a change set awaits resolution.
|
|
34
|
+
*/
|
|
35
|
+
export declare const ReviewSurface: ({ objectId, registry, styles, rowLayouts, form, proposed, proposedError, staleVisible, conflicts, onLiveVersionChange, onExcludedChange, onStatsChange }: ReviewSurfaceProps) => React.JSX.Element;
|
|
36
|
+
export {};
|
|
@@ -0,0 +1,42 @@
|
|
|
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 ChangeStatus } from '../../change-tag/change-tag';
|
|
11
|
+
import { type ItemAnnotations } from '../class-definition-review-surface/class-review-diff';
|
|
12
|
+
/** one option as Studio's editor and the subject handler both spell it */
|
|
13
|
+
export interface SelectOptionEntry {
|
|
14
|
+
readonly value: string;
|
|
15
|
+
readonly label: string;
|
|
16
|
+
readonly name?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface SelectOptionsReviewDiff {
|
|
19
|
+
/** the proposed list with the dropped options put back where they stood */
|
|
20
|
+
readonly entries: SelectOptionEntry[];
|
|
21
|
+
/** what the change does to a row, keyed by the option's value */
|
|
22
|
+
readonly entryAnnotations: Record<string, {
|
|
23
|
+
status: ChangeStatus;
|
|
24
|
+
}>;
|
|
25
|
+
readonly settings: ItemAnnotations;
|
|
26
|
+
readonly changedCount: number;
|
|
27
|
+
}
|
|
28
|
+
/** the settings a list carries beside its options; `id` is the address, not a setting */
|
|
29
|
+
export declare const SETTING_KEYS: readonly ["group", "adminOnly", "useTraits", "implementsInterfaces"];
|
|
30
|
+
export declare const asEntries: (value: unknown) => SelectOptionEntry[];
|
|
31
|
+
/**
|
|
32
|
+
* Options match by VALUE across the two lists — the value is what stored objects carry, so a
|
|
33
|
+
* relabelled option is a change to that option, not a removal plus an addition. A dropped
|
|
34
|
+
* option is put back at its old index so the reader sees what goes, struck through.
|
|
35
|
+
*/
|
|
36
|
+
export declare const buildSelectOptionsReviewDiff: (before: {
|
|
37
|
+
settings: Record<string, unknown>;
|
|
38
|
+
entries: SelectOptionEntry[];
|
|
39
|
+
} | undefined, after: {
|
|
40
|
+
settings: Record<string, unknown>;
|
|
41
|
+
entries: SelectOptionEntry[];
|
|
42
|
+
}) => SelectOptionsReviewDiff;
|
|
@@ -0,0 +1,18 @@
|
|
|
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 React from 'react';
|
|
11
|
+
import { type ReviewDiffViewProps } from '../../contract';
|
|
12
|
+
/**
|
|
13
|
+
* A select-options list reviews as Studio's own select-option editor: the same settings
|
|
14
|
+
* form, the same options grid, read-only, with the change set's mark on every setting and
|
|
15
|
+
* row it touches. The change set ships only what it changes, so the live list fills in the
|
|
16
|
+
* settings it leaves alone — context, never part of the diff.
|
|
17
|
+
*/
|
|
18
|
+
export declare const SelectOptionsReviewSurface: (props: ReviewDiffViewProps) => React.JSX.Element | null;
|
|
@@ -0,0 +1,14 @@
|
|
|
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 declare const useStyles: (props?: unknown) => import("antd-style").ReturnStyles<{
|
|
11
|
+
frame: import("antd-style").SerializedStyles;
|
|
12
|
+
alone: import("antd-style").SerializedStyles;
|
|
13
|
+
body: import("antd-style").SerializedStyles;
|
|
14
|
+
}>;
|
|
@@ -0,0 +1,19 @@
|
|
|
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 ComponentType } from 'react';
|
|
11
|
+
import { type SelectOptionGeneralSettingsFormFieldsProps } from '@pimcore/studio-ui-bundle/modules/select-option';
|
|
12
|
+
export type SelectOptionFields = ComponentType<SelectOptionGeneralSettingsFormFieldsProps>;
|
|
13
|
+
/**
|
|
14
|
+
* Studio's select-option settings form, as the review borrows it. The module is a remote a
|
|
15
|
+
* host may not expose yet, so it is asked for at runtime: `undefined` while loading, `null`
|
|
16
|
+
* where the host has not got it — and the slot table reviews the list instead.
|
|
17
|
+
*/
|
|
18
|
+
export declare const loadSelectOptionFields: () => Promise<SelectOptionFields | null>;
|
|
19
|
+
export declare const useSelectOptionFields: () => SelectOptionFields | null | undefined;
|
|
@@ -0,0 +1,18 @@
|
|
|
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 React from 'react';
|
|
11
|
+
import { type ReviewDiffViewProps } from '../../review-diff-view/review-diff-view';
|
|
12
|
+
/**
|
|
13
|
+
* The slots-driven surface: fetches the change-set review payload and renders every slot
|
|
14
|
+
* through the slot-renderer registry — table slots, pill slots, and the raw fallback for
|
|
15
|
+
* anything it has never heard of. Serves any subject kind whose state is slot-shaped;
|
|
16
|
+
* the layout-driven object surface deliberately is not this.
|
|
17
|
+
*/
|
|
18
|
+
export declare const SlotReviewSurface: ({ changeSetId, contextRef, readOnly: readOnlyProp, compareAgainst: compareAgainstProp, state, resolvedAt, staleVisible, subjectType, subjectRef, onExcludedChange, onAmendmentsChange, onStatsChange, onSlotsChange, extraTabs }: ReviewDiffViewProps) => React.JSX.Element | null;
|
|
@@ -0,0 +1,10 @@
|
|
|
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 * from '../review';
|