@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
|
@@ -0,0 +1,37 @@
|
|
|
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 DiffField } from '../../core/create-diff-fields';
|
|
13
|
+
import { type ReviewStyles } from '../../review-diff-view/review-diff-view.styles';
|
|
14
|
+
import { diffListCounts } from '../diff-list-counts';
|
|
15
|
+
import { type RowLayout } from '../row-layout-registry';
|
|
16
|
+
export interface DiffFieldRowProps {
|
|
17
|
+
readonly field: DiffField;
|
|
18
|
+
readonly registry: DynamicTypeObjectDataRegistry;
|
|
19
|
+
readonly styles: ReviewStyles;
|
|
20
|
+
/** side-by-side (default) or stacked, per the row-layout registry */
|
|
21
|
+
readonly layout: RowLayout;
|
|
22
|
+
/** tooltip on the include toggle */
|
|
23
|
+
readonly includeTitle: string;
|
|
24
|
+
}
|
|
25
|
+
/** Connector tooltips — the glyph teaches itself on hover. */
|
|
26
|
+
export { diffListCounts };
|
|
27
|
+
export declare const CONNECTOR_TITLE_APPLY = "The proposed value will replace the current value";
|
|
28
|
+
export declare const CONNECTOR_TITLE_EDITED = "Your edited value will be applied instead of the proposed one";
|
|
29
|
+
export declare const CONNECTOR_TITLE_EXCLUDED = "Excluded \u2014 this change will not be applied";
|
|
30
|
+
/**
|
|
31
|
+
* One review row: label, current value, proposed value and the include toggle.
|
|
32
|
+
* Side-by-side throughout; wide types get two full-width cards and a toggle
|
|
33
|
+
* that stacks them (current above proposed, the connector turning ↓).
|
|
34
|
+
* The exclusion visual state is applied directly on the DOM so toggling does
|
|
35
|
+
* not re-render the (potentially expensive) field widgets.
|
|
36
|
+
*/
|
|
37
|
+
export declare const DiffFieldRow: ({ field, registry, styles, layout, includeTitle }: DiffFieldRowProps) => React.JSX.Element;
|
|
@@ -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
|
+
/**
|
|
11
|
+
* added/removed counts for list-valued fields. Counts exist only when every
|
|
12
|
+
* item carries real identity (id or path) — for value grids like tables an
|
|
13
|
+
* edited row is not an add+remove, so no counts are shown at all.
|
|
14
|
+
*/
|
|
15
|
+
export declare function diffListCounts(currentValue: unknown, proposedValue: unknown): {
|
|
16
|
+
added: number;
|
|
17
|
+
removed: number;
|
|
18
|
+
} | null;
|
package/dist/build/types/review/fields/editable-field-collection/editable-field-collection.d.ts
ADDED
|
@@ -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
|
+
interface EditableFieldCollectionProps {
|
|
12
|
+
value: Array<Record<string, unknown>>;
|
|
13
|
+
name: string;
|
|
14
|
+
noteditable?: boolean;
|
|
15
|
+
[key: string]: unknown;
|
|
16
|
+
}
|
|
17
|
+
export declare const EditableFieldCollection: ({ value, name, noteditable }: EditableFieldCollectionProps) => React.JSX.Element | null;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
container: {
|
|
12
|
+
display: "flex";
|
|
13
|
+
flexDirection: "column";
|
|
14
|
+
gap: number;
|
|
15
|
+
};
|
|
16
|
+
groupCard: {
|
|
17
|
+
border: string;
|
|
18
|
+
borderRadius: number;
|
|
19
|
+
padding: number;
|
|
20
|
+
};
|
|
21
|
+
groupTitle: {
|
|
22
|
+
fontWeight: number;
|
|
23
|
+
marginBottom: number;
|
|
24
|
+
fontSize: number;
|
|
25
|
+
};
|
|
26
|
+
groupFields: {
|
|
27
|
+
display: "flex";
|
|
28
|
+
flexDirection: "column";
|
|
29
|
+
gap: number;
|
|
30
|
+
};
|
|
31
|
+
fieldLabel: {
|
|
32
|
+
fontSize: number;
|
|
33
|
+
color: string;
|
|
34
|
+
marginBottom: number;
|
|
35
|
+
};
|
|
36
|
+
localeSuffix: {
|
|
37
|
+
marginLeft: number;
|
|
38
|
+
opacity: number;
|
|
39
|
+
};
|
|
40
|
+
}>;
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
interface State {
|
|
12
|
+
hasError: boolean;
|
|
13
|
+
message: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Wraps a single diff field renderer so a crash in one field does not
|
|
17
|
+
* propagate to the whole modal. Shows a compact inline error message
|
|
18
|
+
* using the Text component instead of crashing the surrounding layout.
|
|
19
|
+
*/
|
|
20
|
+
export interface FieldErrorBoundaryProps extends React.PropsWithChildren {
|
|
21
|
+
/** rendered instead of the error text — e.g. a read-only degradation */
|
|
22
|
+
readonly fallback?: React.ReactNode;
|
|
23
|
+
}
|
|
24
|
+
export declare class FieldErrorBoundary extends React.Component<FieldErrorBoundaryProps, State> {
|
|
25
|
+
constructor(props: FieldErrorBoundaryProps);
|
|
26
|
+
static getDerivedStateFromError(error: unknown): State;
|
|
27
|
+
render(): React.ReactNode;
|
|
28
|
+
}
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
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 DiffField } from '../../core/create-diff-fields';
|
|
12
|
+
import { type ReviewStyles } from '../../review-diff-view/review-diff-view.styles';
|
|
13
|
+
/** One read-only recorded row rendered through the field-type registry. */
|
|
14
|
+
export interface RecordedFieldRowProps {
|
|
15
|
+
readonly field: DiffField;
|
|
16
|
+
readonly styles: ReviewStyles;
|
|
17
|
+
}
|
|
18
|
+
export declare const RecordedFieldRow: ({ field, styles }: RecordedFieldRowProps) => React.JSX.Element;
|
|
19
|
+
/** One before → after row: base left, recorded right, both read-only. */
|
|
20
|
+
export interface BaseCompareRowProps {
|
|
21
|
+
readonly field: DiffField;
|
|
22
|
+
readonly styles: ReviewStyles;
|
|
23
|
+
}
|
|
24
|
+
export declare const BaseCompareRow: ({ field, styles }: BaseCompareRowProps) => React.JSX.Element;
|
|
25
|
+
/** The plain fallback row — raw key and stringified value, no registry needed. */
|
|
26
|
+
export interface PlainValueRowProps {
|
|
27
|
+
readonly fieldKey: string;
|
|
28
|
+
readonly value: unknown;
|
|
29
|
+
readonly styles: ReviewStyles;
|
|
30
|
+
}
|
|
31
|
+
export declare const PlainValueRow: ({ fieldKey, value, styles }: PlainValueRowProps) => React.JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
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 ReviewExclusion {
|
|
11
|
+
readonly isExcluded: (fieldPath: string) => boolean;
|
|
12
|
+
readonly toggle: (fieldPath: string, isIncluded: boolean) => void;
|
|
13
|
+
}
|
|
14
|
+
export declare const ReviewExclusionProvider: import("react").Provider<ReviewExclusion>;
|
|
15
|
+
export declare const useReviewExclusion: () => ReviewExclusion;
|
|
@@ -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
|
+
/**
|
|
12
|
+
* The provider stack every field row needs to render through Studio's own
|
|
13
|
+
* field components — shared by all review surfaces.
|
|
14
|
+
*/
|
|
15
|
+
export interface ReviewFieldScopeProps {
|
|
16
|
+
readonly objectId: number;
|
|
17
|
+
readonly hasFieldCollections: boolean;
|
|
18
|
+
readonly children: React.ReactNode;
|
|
19
|
+
}
|
|
20
|
+
export declare const ReviewFieldScope: ({ objectId, hasFieldCollections, children }: ReviewFieldScopeProps) => 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
|
+
/**
|
|
11
|
+
* How a field claims its row. 'wide' gets the two-card treatment across the
|
|
12
|
+
* full row width and an orientation toggle; 'side-by-side' is the plain row.
|
|
13
|
+
*/
|
|
14
|
+
export type RowLayout = 'side-by-side' | 'wide';
|
|
15
|
+
/** Which way a wide field's two cards sit. Horizontal is the default. */
|
|
16
|
+
export type RowOrientation = 'side-by-side' | 'stacked';
|
|
17
|
+
/**
|
|
18
|
+
* Per-fieldtype row-layout policy. Other Studio plugins may register their own
|
|
19
|
+
* types from `onStartup` (which runs after every plugin's `onInit`, so the
|
|
20
|
+
* registry is guaranteed to be bound); lookups happen at render time.
|
|
21
|
+
*/
|
|
22
|
+
export declare class RowLayoutRegistry {
|
|
23
|
+
private readonly layouts;
|
|
24
|
+
get(fieldType: string): RowLayout | undefined;
|
|
25
|
+
register(fieldType: string, layout: RowLayout): void;
|
|
26
|
+
}
|
|
27
|
+
/** DI id consuming plugins resolve the row-layout registry under */
|
|
28
|
+
export declare const ROW_LAYOUT_REGISTRY_ID = "ChangeControl/Review/RowLayoutRegistry";
|
|
@@ -0,0 +1,33 @@
|
|
|
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 DiffField } from '../../core/create-diff-fields';
|
|
13
|
+
import { type ReviewStyles } from '../../review-diff-view/review-diff-view.styles';
|
|
14
|
+
/** The neutral read-only card of a wide field. */
|
|
15
|
+
export interface CurrentCardProps {
|
|
16
|
+
readonly field: DiffField;
|
|
17
|
+
readonly styles: ReviewStyles;
|
|
18
|
+
/** side-by-side hides the orientation label — position says it, like every other row */
|
|
19
|
+
readonly showLabel?: boolean;
|
|
20
|
+
}
|
|
21
|
+
export declare const CurrentCard: ({ field, styles, showLabel }: CurrentCardProps) => React.JSX.Element;
|
|
22
|
+
/** The warning-tinted editable card of a wide field, with add/remove pills. */
|
|
23
|
+
export interface ProposedCardProps {
|
|
24
|
+
readonly field: DiffField;
|
|
25
|
+
readonly registry: DynamicTypeObjectDataRegistry;
|
|
26
|
+
readonly styles: ReviewStyles;
|
|
27
|
+
readonly counts: {
|
|
28
|
+
added: number;
|
|
29
|
+
removed: number;
|
|
30
|
+
} | null;
|
|
31
|
+
readonly showLabel?: boolean;
|
|
32
|
+
}
|
|
33
|
+
export declare const ProposedCard: ({ field, registry, styles, counts, showLabel }: ProposedCardProps) => React.JSX.Element;
|
|
@@ -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
|
+
export { REVIEW_DIFF_VIEW_COMPONENT_ID, MULTI_SUBJECT_REVIEW_COMPONENT_ID, type ReviewDiffViewProps, type MultiSubjectReviewProps, type ReviewPayload, type CompareTarget } from './contract';
|
|
11
|
+
export { ReviewDiffView, reviewStance } from './review-diff-view/review-diff-view';
|
|
12
|
+
export { MultiSubjectReview } from './multi-subject-review/multi-subject-review';
|
|
13
|
+
export { ReviewSurfaceRegistry, ReviewSurfaceType, REVIEW_SURFACE_REGISTRY_ID, type ReviewSurfaceComponent } from './registries/review-surface-registry';
|
|
14
|
+
export { SlotRendererRegistry, SlotRendererType, SLOT_RENDERER_REGISTRY_ID, type SlotRenderer, type SlotRendererProps } from './registries/slot-renderer-registry';
|
|
15
|
+
export { SlotDiffTable, type SlotDiffTableProps } from './slots/slot-diff-table/slot-diff-table';
|
|
16
|
+
export { buildSlotRows, type RowShaping } from './slots/build-slot-rows';
|
|
17
|
+
export { type ReviewSlotData, type ChangeSetReviewData, type SlotRow } from './slots/slot-types';
|
|
18
|
+
export { changeControlApi, useBundleChangeControlListChangeSetsQuery, useBundleChangeControlGetChangeSetReviewQuery, useBundleChangeControlMergeChangeSetMutation, useBundleChangeControlPreviewChangeSetMergeMutation, useBundleChangeControlDiscardChangeSetMutation } from '../api/change-control-api-slice';
|
|
19
|
+
export { type ChangeSetItem, type ChangeSetReview, type ChangeSetMergeResult, type ChangeSetReviewActionParameters } from '../api/change-control-api-slice.gen';
|
|
@@ -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 MultiSubjectReviewProps } from '../contract';
|
|
12
|
+
/**
|
|
13
|
+
* A change set that spans several subjects, as a rail of them beside the review of the one
|
|
14
|
+
* selected. Which review renders is still {@see ReviewDiffView}'s answer per subject type —
|
|
15
|
+
* this only decides WHICH subject is on screen, so a shell that shows one subject never
|
|
16
|
+
* carries any of it. With fewer than two subjects it is the plain review, unchanged.
|
|
17
|
+
*/
|
|
18
|
+
export declare const MultiSubjectReview: (props: MultiSubjectReviewProps) => React.JSX.Element;
|
|
@@ -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
|
+
export declare const useStyles: (props?: unknown) => import("antd-style").ReturnStyles<{
|
|
11
|
+
frame: import("antd-style").SerializedStyles;
|
|
12
|
+
split: import("antd-style").SerializedStyles;
|
|
13
|
+
stack: import("antd-style").SerializedStyles;
|
|
14
|
+
shown: import("antd-style").SerializedStyles;
|
|
15
|
+
hidden: import("antd-style").SerializedStyles;
|
|
16
|
+
sequence: import("antd-style").SerializedStyles;
|
|
17
|
+
step: import("antd-style").SerializedStyles;
|
|
18
|
+
arrow: import("antd-style").SerializedStyles;
|
|
19
|
+
}>;
|
|
@@ -0,0 +1,31 @@
|
|
|
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 { DynamicTypeAbstract, DynamicTypeRegistryAbstract } from '@pimcore/studio-ui-bundle/modules/element';
|
|
12
|
+
import { type ReviewDiffViewProps } from '../review-diff-view/review-diff-view';
|
|
13
|
+
/** a surface takes the full diff-view contract; which props it reads is its own business */
|
|
14
|
+
export type ReviewSurfaceComponent = ComponentType<ReviewDiffViewProps>;
|
|
15
|
+
/** one subject kind's review surface; the id IS the subject type it serves */
|
|
16
|
+
export declare class ReviewSurfaceType extends DynamicTypeAbstract {
|
|
17
|
+
readonly id: string;
|
|
18
|
+
readonly component: ReviewSurfaceComponent;
|
|
19
|
+
constructor(id: string, component: ReviewSurfaceComponent);
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Subject type → review surface. Sparse by design: an entry means someone added a
|
|
23
|
+
* SUBJECT KIND. A new use-case on an existing kind never lands here — that costs at most
|
|
24
|
+
* a slot renderer.
|
|
25
|
+
*/
|
|
26
|
+
export declare class ReviewSurfaceRegistry extends DynamicTypeRegistryAbstract<ReviewSurfaceType> {
|
|
27
|
+
/** an unregistered kind is a miss, not an error — the caller renders nothing */
|
|
28
|
+
surfaceFor(subjectType: string): ReviewSurfaceComponent | undefined;
|
|
29
|
+
}
|
|
30
|
+
/** DI id consuming plugins resolve the review-surface registry under */
|
|
31
|
+
export declare const REVIEW_SURFACE_REGISTRY_ID = "ChangeControl/Review/SurfaceRegistry";
|
|
@@ -0,0 +1,55 @@
|
|
|
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 { DynamicTypeAbstract, DynamicTypeRegistryAbstract } from '@pimcore/studio-ui-bundle/modules/element';
|
|
12
|
+
import { type ReviewSlotData } from '../slots/slot-types';
|
|
13
|
+
import { type CompareTarget } from '../review-diff-view/review-diff-view';
|
|
14
|
+
export interface SlotRendererProps {
|
|
15
|
+
readonly slotKey: string;
|
|
16
|
+
readonly slot: ReviewSlotData;
|
|
17
|
+
readonly readOnly: boolean;
|
|
18
|
+
readonly compareAgainst: CompareTarget;
|
|
19
|
+
/** leaf addresses the engine reports as conflicting; renderers mark their own rows */
|
|
20
|
+
readonly conflicts?: readonly string[];
|
|
21
|
+
/** the subject this slot belongs to; a renderer that has to read live state needs it,
|
|
22
|
+
* because the payload carries only the leaves that CHANGED */
|
|
23
|
+
readonly subjectType?: string;
|
|
24
|
+
readonly subjectRef?: string;
|
|
25
|
+
/** the EXCLUDED leaf addresses within this slot, complete on every toggle */
|
|
26
|
+
readonly onToggleInclude?: (excludedKeys: string[]) => void;
|
|
27
|
+
/** review-time edits within this slot: leaf address => render value */
|
|
28
|
+
readonly onEdit?: (amendments: Record<string, unknown>) => void;
|
|
29
|
+
/** the number of changed rows this slot renders — the one count the surface reports */
|
|
30
|
+
readonly onStatsChange?: (changedCount: number) => void;
|
|
31
|
+
}
|
|
32
|
+
export type SlotRenderer = ComponentType<SlotRendererProps>;
|
|
33
|
+
/** one slot's renderer; the id is either a slot key or a `shape:<shape>` fallback */
|
|
34
|
+
export declare class SlotRendererType extends DynamicTypeAbstract {
|
|
35
|
+
readonly id: string;
|
|
36
|
+
readonly component: SlotRenderer;
|
|
37
|
+
constructor(id: string, component: SlotRenderer);
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Slot key → renderer. The CHEAP extension point: a new use-case on an existing subject
|
|
41
|
+
* costs at most one renderer here, and nothing if its slot already renders. A slot with
|
|
42
|
+
* no renderer falls back by shape, and an unknown shape falls back to raw values — both
|
|
43
|
+
* fallbacks are what let the wire evolve additively.
|
|
44
|
+
*
|
|
45
|
+
* Replacing a seeded renderer is `overrideDynamicType`; `registerDynamicType` on a taken
|
|
46
|
+
* id is an error, per the SDK base this shares with every other Studio registry.
|
|
47
|
+
*/
|
|
48
|
+
export declare class SlotRendererRegistry extends DynamicTypeRegistryAbstract<SlotRendererType> {
|
|
49
|
+
/** shape-level fallbacks, keyed `shape:<shape>` — seeded by the bundle, replaceable */
|
|
50
|
+
resolve(slotKey: string, slot: ReviewSlotData): SlotRenderer | undefined;
|
|
51
|
+
/** a miss is a miss: the base throws on an unknown id unless it is asked not to */
|
|
52
|
+
private rendererFor;
|
|
53
|
+
}
|
|
54
|
+
/** DI id consuming plugins resolve the slot-renderer registry under */
|
|
55
|
+
export declare const SLOT_RENDERER_REGISTRY_ID = "ChangeControl/Review/SlotRendererRegistry";
|
|
@@ -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 CompareTarget, type ReviewDiffViewProps } from '../contract';
|
|
12
|
+
export type { CompareTarget, ReviewDiffViewProps, ReviewPayload } from '../contract';
|
|
13
|
+
/** The two facts every surface acts on, resolved from the props with their defaults. */
|
|
14
|
+
export declare function reviewStance({ readOnly, compareAgainst, state }: Pick<ReviewDiffViewProps, 'readOnly' | 'compareAgainst' | 'state'>): {
|
|
15
|
+
readOnly: boolean;
|
|
16
|
+
compareAgainst: CompareTarget;
|
|
17
|
+
};
|
|
18
|
+
export declare const ReviewDiffView: (props: ReviewDiffViewProps) => React.JSX.Element | null;
|
|
@@ -0,0 +1,224 @@
|
|
|
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
|
+
loadingContainer: {
|
|
12
|
+
display: "flex";
|
|
13
|
+
justifyContent: "center";
|
|
14
|
+
alignItems: "center";
|
|
15
|
+
minHeight: string;
|
|
16
|
+
};
|
|
17
|
+
loadError: {
|
|
18
|
+
color: string;
|
|
19
|
+
padding: string;
|
|
20
|
+
};
|
|
21
|
+
groupHeader: import("antd-style").SerializedStyles;
|
|
22
|
+
fieldRow: {
|
|
23
|
+
display: "grid";
|
|
24
|
+
gridTemplateColumns: string;
|
|
25
|
+
gap: string;
|
|
26
|
+
fontSize: number;
|
|
27
|
+
fontFamily: string;
|
|
28
|
+
alignItems: "start";
|
|
29
|
+
};
|
|
30
|
+
fieldLabel: {
|
|
31
|
+
padding: string;
|
|
32
|
+
color: string;
|
|
33
|
+
};
|
|
34
|
+
fieldLocale: {
|
|
35
|
+
color: string;
|
|
36
|
+
marginLeft: number;
|
|
37
|
+
};
|
|
38
|
+
fieldCurrent: {
|
|
39
|
+
padding: string;
|
|
40
|
+
color: string;
|
|
41
|
+
minHeight: number;
|
|
42
|
+
minWidth: number;
|
|
43
|
+
marginRight: number;
|
|
44
|
+
};
|
|
45
|
+
fieldProposed: {
|
|
46
|
+
padding: string;
|
|
47
|
+
minHeight: number;
|
|
48
|
+
borderRadius: number;
|
|
49
|
+
minWidth: number;
|
|
50
|
+
marginLeft: number;
|
|
51
|
+
position: "relative";
|
|
52
|
+
};
|
|
53
|
+
connector: {
|
|
54
|
+
position: "absolute";
|
|
55
|
+
left: number;
|
|
56
|
+
top: string;
|
|
57
|
+
transform: "translateY(-50%)";
|
|
58
|
+
color: string;
|
|
59
|
+
fontSize: number;
|
|
60
|
+
lineHeight: number;
|
|
61
|
+
userSelect: "none";
|
|
62
|
+
cursor: "default";
|
|
63
|
+
};
|
|
64
|
+
connectorEdited: {
|
|
65
|
+
color: string;
|
|
66
|
+
fontWeight: number;
|
|
67
|
+
};
|
|
68
|
+
connectorExcluded: {
|
|
69
|
+
color: string;
|
|
70
|
+
};
|
|
71
|
+
stackedValues: {
|
|
72
|
+
minWidth: number;
|
|
73
|
+
padding: string;
|
|
74
|
+
};
|
|
75
|
+
stackedCardCurrent: {
|
|
76
|
+
border: string;
|
|
77
|
+
borderRadius: number;
|
|
78
|
+
background: string;
|
|
79
|
+
overflow: "hidden";
|
|
80
|
+
};
|
|
81
|
+
stackedCardProposed: {
|
|
82
|
+
border: string;
|
|
83
|
+
borderRadius: number;
|
|
84
|
+
background: string;
|
|
85
|
+
overflow: "hidden";
|
|
86
|
+
};
|
|
87
|
+
stackedCardHeader: {
|
|
88
|
+
display: "flex";
|
|
89
|
+
alignItems: "center";
|
|
90
|
+
gap: number;
|
|
91
|
+
padding: string;
|
|
92
|
+
borderBottom: string;
|
|
93
|
+
};
|
|
94
|
+
stackedCardHeaderProposed: {
|
|
95
|
+
borderBottomColor: string;
|
|
96
|
+
};
|
|
97
|
+
stackedCap: {
|
|
98
|
+
fontSize: number;
|
|
99
|
+
letterSpacing: string;
|
|
100
|
+
textTransform: "uppercase";
|
|
101
|
+
fontWeight: number;
|
|
102
|
+
color: string;
|
|
103
|
+
};
|
|
104
|
+
stackedCapProposed: {
|
|
105
|
+
color: string;
|
|
106
|
+
};
|
|
107
|
+
stackedItemsMeta: {
|
|
108
|
+
fontSize: number;
|
|
109
|
+
color: string;
|
|
110
|
+
fontVariantNumeric: "tabular-nums";
|
|
111
|
+
};
|
|
112
|
+
stackedReadOnlyHint: {
|
|
113
|
+
marginLeft: string;
|
|
114
|
+
fontSize: number;
|
|
115
|
+
color: string;
|
|
116
|
+
};
|
|
117
|
+
stackedPills: {
|
|
118
|
+
marginLeft: string;
|
|
119
|
+
display: "flex";
|
|
120
|
+
gap: number;
|
|
121
|
+
};
|
|
122
|
+
stackedPill: {
|
|
123
|
+
display: "inline-flex";
|
|
124
|
+
alignItems: "center";
|
|
125
|
+
padding: string;
|
|
126
|
+
borderRadius: number;
|
|
127
|
+
fontSize: number;
|
|
128
|
+
fontWeight: number;
|
|
129
|
+
fontVariantNumeric: "tabular-nums";
|
|
130
|
+
};
|
|
131
|
+
stackedPillAdd: {
|
|
132
|
+
background: string;
|
|
133
|
+
color: string;
|
|
134
|
+
};
|
|
135
|
+
stackedPillRemove: {
|
|
136
|
+
background: string;
|
|
137
|
+
color: string;
|
|
138
|
+
};
|
|
139
|
+
stackedCardBody: {
|
|
140
|
+
padding: number;
|
|
141
|
+
background: string;
|
|
142
|
+
};
|
|
143
|
+
stackedArrow: {
|
|
144
|
+
display: "flex";
|
|
145
|
+
alignItems: "center";
|
|
146
|
+
justifyContent: "center";
|
|
147
|
+
height: number;
|
|
148
|
+
color: string;
|
|
149
|
+
fontSize: number;
|
|
150
|
+
};
|
|
151
|
+
sideCards: {
|
|
152
|
+
display: "flex";
|
|
153
|
+
alignItems: "flex-start";
|
|
154
|
+
minWidth: number;
|
|
155
|
+
};
|
|
156
|
+
sideCard: {
|
|
157
|
+
flex: string;
|
|
158
|
+
minWidth: number;
|
|
159
|
+
};
|
|
160
|
+
sideArrow: {
|
|
161
|
+
flex: string;
|
|
162
|
+
display: "flex";
|
|
163
|
+
justifyContent: "center";
|
|
164
|
+
paddingTop: number;
|
|
165
|
+
color: string;
|
|
166
|
+
fontSize: number;
|
|
167
|
+
};
|
|
168
|
+
layoutToggle: {
|
|
169
|
+
display: "inline-flex";
|
|
170
|
+
padding: number;
|
|
171
|
+
background: string;
|
|
172
|
+
borderRadius: number;
|
|
173
|
+
marginTop: number;
|
|
174
|
+
};
|
|
175
|
+
layoutToggleBtn: {
|
|
176
|
+
width: number;
|
|
177
|
+
height: number;
|
|
178
|
+
border: string;
|
|
179
|
+
background: string;
|
|
180
|
+
color: string;
|
|
181
|
+
borderRadius: number;
|
|
182
|
+
cursor: "pointer";
|
|
183
|
+
fontSize: number;
|
|
184
|
+
lineHeight: number;
|
|
185
|
+
padding: number;
|
|
186
|
+
};
|
|
187
|
+
layoutToggleActive: {
|
|
188
|
+
background: string;
|
|
189
|
+
color: string;
|
|
190
|
+
fontWeight: number;
|
|
191
|
+
boxShadow: string;
|
|
192
|
+
};
|
|
193
|
+
changedValue: {
|
|
194
|
+
background: string;
|
|
195
|
+
borderRadius: number;
|
|
196
|
+
padding: string;
|
|
197
|
+
};
|
|
198
|
+
rawValue: {
|
|
199
|
+
fontFamily: string;
|
|
200
|
+
fontSize: number;
|
|
201
|
+
whiteSpace: "pre-wrap";
|
|
202
|
+
wordBreak: "break-word";
|
|
203
|
+
background: string;
|
|
204
|
+
border: string;
|
|
205
|
+
borderRadius: number;
|
|
206
|
+
padding: string;
|
|
207
|
+
color: string;
|
|
208
|
+
};
|
|
209
|
+
rawNote: {
|
|
210
|
+
fontSize: number;
|
|
211
|
+
color: string;
|
|
212
|
+
marginBottom: number;
|
|
213
|
+
};
|
|
214
|
+
fieldCheckbox: {
|
|
215
|
+
alignSelf: "center";
|
|
216
|
+
};
|
|
217
|
+
emptyState: {
|
|
218
|
+
color: string;
|
|
219
|
+
textAlign: "center";
|
|
220
|
+
padding: number;
|
|
221
|
+
};
|
|
222
|
+
}>;
|
|
223
|
+
/** The style map shared by the surfaces and field rows. */
|
|
224
|
+
export type ReviewStyles = ReturnType<typeof useStyles>['styles'];
|