@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.
Files changed (81) hide show
  1. package/README.md +63 -0
  2. package/dist/build/types/api/change-control-api-slice.d.ts +874 -0
  3. package/dist/build/types/api/change-control-api-slice.gen.d.ts +1061 -0
  4. package/dist/build/types/main.d.ts +9 -0
  5. package/dist/build/types/plugins.d.ts +16 -0
  6. package/dist/build/types/review/change-tag/change-tag.d.ts +16 -0
  7. package/dist/build/types/review/change-tag/change-tag.styles.d.ts +12 -0
  8. package/dist/build/types/review/contract.d.ts +110 -0
  9. package/dist/build/types/review/core/compared-side.d.ts +18 -0
  10. package/dist/build/types/review/core/create-diff-fields.d.ts +29 -0
  11. package/dist/build/types/review/core/layout-utils.d.ts +22 -0
  12. package/dist/build/types/review/core/leaf-path.d.ts +21 -0
  13. package/dist/build/types/review/core/merge-object-data.d.ts +33 -0
  14. package/dist/build/types/review/core/process-layout-data.d.ts +35 -0
  15. package/dist/build/types/review/core/review-split.d.ts +15 -0
  16. package/dist/build/types/review/core/seed-ownership.d.ts +19 -0
  17. package/dist/build/types/review/core/subject-slots.d.ts +22 -0
  18. package/dist/build/types/review/core/subject-summary.d.ts +34 -0
  19. package/dist/build/types/review/core/use-recorded-fields.d.ts +41 -0
  20. package/dist/build/types/review/core/use-review-diff-data.d.ts +40 -0
  21. package/dist/build/types/review/fields/context-safe-field/context-safe-field.d.ts +48 -0
  22. package/dist/build/types/review/fields/diff-field-renderers/diff-field-renderers.d.ts +36 -0
  23. package/dist/build/types/review/fields/diff-field-renderers/diff-field-renderers.styles.d.ts +35 -0
  24. package/dist/build/types/review/fields/diff-field-row/diff-field-row.d.ts +37 -0
  25. package/dist/build/types/review/fields/diff-list-counts.d.ts +18 -0
  26. package/dist/build/types/review/fields/editable-field-collection/editable-field-collection.d.ts +18 -0
  27. package/dist/build/types/review/fields/editable-field-collection/editable-field-collection.styles.d.ts +40 -0
  28. package/dist/build/types/review/fields/field-error-boundary/field-error-boundary.d.ts +29 -0
  29. package/dist/build/types/review/fields/recorded-field-row/recorded-field-row.d.ts +31 -0
  30. package/dist/build/types/review/fields/review-exclusion-context/review-exclusion-context.d.ts +15 -0
  31. package/dist/build/types/review/fields/review-field-scope/review-field-scope.d.ts +20 -0
  32. package/dist/build/types/review/fields/row-layout-registry.d.ts +28 -0
  33. package/dist/build/types/review/fields/wide-field-cards/wide-field-cards.d.ts +33 -0
  34. package/dist/build/types/review/index.d.ts +19 -0
  35. package/dist/build/types/review/multi-subject-review/multi-subject-review.d.ts +18 -0
  36. package/dist/build/types/review/multi-subject-review/multi-subject-review.styles.d.ts +19 -0
  37. package/dist/build/types/review/registries/review-surface-registry.d.ts +31 -0
  38. package/dist/build/types/review/registries/slot-renderer-registry.d.ts +55 -0
  39. package/dist/build/types/review/review-diff-view/review-diff-view.d.ts +18 -0
  40. package/dist/build/types/review/review-diff-view/review-diff-view.styles.d.ts +224 -0
  41. package/dist/build/types/review/review-outcome-header/review-outcome-header.d.ts +19 -0
  42. package/dist/build/types/review/review-outcome-header/review-outcome-header.styles.d.ts +25 -0
  43. package/dist/build/types/review/review-stale-banner/review-stale-banner.d.ts +16 -0
  44. package/dist/build/types/review/review-stale-banner/review-stale-banner.styles.d.ts +18 -0
  45. package/dist/build/types/review/slots/build-slot-rows.d.ts +36 -0
  46. package/dist/build/types/review/slots/editable-scalar-cell/editable-scalar-cell.d.ts +23 -0
  47. package/dist/build/types/review/slots/raw-value.d.ts +11 -0
  48. package/dist/build/types/review/slots/renderers/entry-set-slot-renderer/entry-set-slot-renderer.d.ts +14 -0
  49. package/dist/build/types/review/slots/renderers/metadata-slot-renderer/metadata-slot-renderer.d.ts +16 -0
  50. package/dist/build/types/review/slots/renderers/tags-slot-renderer/tags-slot-renderer.d.ts +17 -0
  51. package/dist/build/types/review/slots/slot-diff-table/slot-diff-table.d.ts +38 -0
  52. package/dist/build/types/review/slots/slot-types.d.ts +73 -0
  53. package/dist/build/types/review/subject-rail/subject-rail.d.ts +35 -0
  54. package/dist/build/types/review/subject-rail/subject-rail.styles.d.ts +27 -0
  55. package/dist/build/types/review/surfaces/class-definition-review-surface/class-definition-review-surface.d.ts +20 -0
  56. package/dist/build/types/review/surfaces/class-definition-review-surface/class-definition-review-surface.styles.d.ts +17 -0
  57. package/dist/build/types/review/surfaces/class-definition-review-surface/class-review-diff.d.ts +66 -0
  58. package/dist/build/types/review/surfaces/class-definition-review-surface/class-review-editor/class-review-editor.d.ts +38 -0
  59. package/dist/build/types/review/surfaces/class-definition-review-surface/class-settings-fields/class-settings-fields.d.ts +11 -0
  60. package/dist/build/types/review/surfaces/class-definition-review-surface/layout-path.d.ts +25 -0
  61. package/dist/build/types/review/surfaces/class-definition-review-surface/settings-annotations.d.ts +23 -0
  62. package/dist/build/types/review/surfaces/class-definition-review-surface/studio-class-editor.d.ts +91 -0
  63. package/dist/build/types/review/surfaces/classification-store-review-surface/change-numerals/change-numerals.d.ts +20 -0
  64. package/dist/build/types/review/surfaces/classification-store-review-surface/change-numerals/change-numerals.styles.d.ts +17 -0
  65. package/dist/build/types/review/surfaces/classification-store-review-surface/classification-store-review-diff.d.ts +82 -0
  66. package/dist/build/types/review/surfaces/classification-store-review-surface/classification-store-review-surface.d.ts +18 -0
  67. package/dist/build/types/review/surfaces/classification-store-review-surface/classification-store-review-surface.styles.d.ts +38 -0
  68. package/dist/build/types/review/surfaces/classification-store-review-surface/collection-rows/collection-rows.d.ts +23 -0
  69. package/dist/build/types/review/surfaces/classification-store-review-surface/group-rows/group-rows.d.ts +23 -0
  70. package/dist/build/types/review/surfaces/default-review-surfaces.d.ts +20 -0
  71. package/dist/build/types/review/surfaces/default-slot-renderers.d.ts +20 -0
  72. package/dist/build/types/review/surfaces/object-review-surface/object-review-surface.d.ts +17 -0
  73. package/dist/build/types/review/surfaces/recorded-review-surface/recorded-review-surface.d.ts +28 -0
  74. package/dist/build/types/review/surfaces/review-surface/review-surface.d.ts +36 -0
  75. package/dist/build/types/review/surfaces/select-options-review-surface/select-options-review-diff.d.ts +42 -0
  76. package/dist/build/types/review/surfaces/select-options-review-surface/select-options-review-surface.d.ts +18 -0
  77. package/dist/build/types/review/surfaces/select-options-review-surface/select-options-review-surface.styles.d.ts +14 -0
  78. package/dist/build/types/review/surfaces/select-options-review-surface/studio-select-option-editor.d.ts +19 -0
  79. package/dist/build/types/review/surfaces/slot-review-surface/slot-review-surface.d.ts +18 -0
  80. package/dist/build/types/sdk/index.d.ts +10 -0
  81. package/package.json +84 -0
@@ -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 React from 'react';
11
+ export interface ReviewOutcomeHeaderProps {
12
+ /** change-set state: 'merged' | 'discarded', or 'refined' for an open one a newer proposal replaced */
13
+ readonly state?: string;
14
+ /** unix millis of the resolution; the timestamp line is omitted when unknown */
15
+ readonly resolvedAt?: number;
16
+ /** overrides the default read-only notice (e.g. the before → after caption) */
17
+ readonly notice?: string;
18
+ }
19
+ export declare const ReviewOutcomeHeader: ({ state, resolvedAt, notice }: ReviewOutcomeHeaderProps) => React.JSX.Element;
@@ -0,0 +1,25 @@
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
+ header: {
12
+ display: "flex";
13
+ alignItems: "center";
14
+ gap: number;
15
+ marginBottom: number;
16
+ };
17
+ timestamp: {
18
+ color: string;
19
+ };
20
+ readOnlyNotice: {
21
+ display: "block";
22
+ color: string;
23
+ fontSize: number;
24
+ };
25
+ }>;
@@ -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 React from 'react';
11
+ export interface ReviewStaleBannerProps {
12
+ readonly visible: boolean;
13
+ /** leaf addresses the engine found the change set and live state disagreeing on */
14
+ readonly conflicts?: readonly string[];
15
+ }
16
+ export declare const ReviewStaleBanner: ({ visible, conflicts }: ReviewStaleBannerProps) => React.JSX.Element | null;
@@ -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
+ export declare const useStyles: (props?: unknown) => import("antd-style").ReturnStyles<{
11
+ banner: {
12
+ padding: number;
13
+ marginBottom: number;
14
+ background: string;
15
+ border: string;
16
+ borderRadius: number;
17
+ };
18
+ }>;
@@ -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 { type ReviewSlotData, type SlotRow } from './slot-types';
11
+ import { type CompareTarget } from '../review-diff-view/review-diff-view';
12
+ export interface RowShaping {
13
+ /** derive the display label from the leaf address and value; defaults to the address */
14
+ readonly label?: (key: string, value: unknown) => string;
15
+ readonly secondaryLabel?: (key: string, value: unknown) => string | undefined;
16
+ /** derive the per-row value type, where entries carry one */
17
+ readonly type?: (key: string, value: unknown) => string | undefined;
18
+ /** unwrap the comparable value from an entry (e.g. metadata rows compare `data`) */
19
+ readonly value?: (entry: unknown) => unknown;
20
+ /**
21
+ * Extra row fields for delegated grid cells — Studio cells read their own row contract
22
+ * (the metadata cells want `name` and `language`), and the table must not know it.
23
+ */
24
+ readonly extras?: (key: string, value: unknown) => Record<string, unknown>;
25
+ }
26
+ /**
27
+ * Union of proposed and compared addresses, flattened to diff rows — then filtered to the
28
+ * CHANGED ones: the proposed state is the full container (base-folded), and the review
29
+ * shows what the change-set changes, not the whole subject. Additions and removals count
30
+ * as changed — a reviewer must see both.
31
+ *
32
+ * The compared side is the live state, or the base the change was recorded on — a merged
33
+ * change set's live state IS its proposed state, and comparing those would show nothing.
34
+ * No base means the change set created the subject, so all of it is an addition.
35
+ */
36
+ export declare function buildSlotRows(slot: ReviewSlotData, shaping?: RowShaping, compareAgainst?: CompareTarget): SlotRow[];
@@ -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
+ export interface EditableScalarCellProps {
12
+ /** what the control shows: the amendment when there is one, else the proposed value */
13
+ readonly value: unknown;
14
+ /** the row's proposed value — the numeric parse keys off ITS type, not the shown one */
15
+ readonly original?: unknown;
16
+ readonly onCommit: (value: unknown) => void;
17
+ }
18
+ /**
19
+ * The editable proposed side for non-delegated cells: scalar values get a plain control
20
+ * (text input, boolean switch), anything structured stays the read-only raw rendering —
21
+ * structured values are reviewed and excluded, not hand-edited.
22
+ */
23
+ export declare const EditableScalarCell: ({ value, original, onCommit }: EditableScalarCellProps) => React.JSX.Element;
@@ -0,0 +1,11 @@
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
+ /** raw-value fallback: unknown types and unknown shapes stay reviewable */
11
+ export declare const rawValue: (value: unknown) => string;
@@ -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
+ import React from 'react';
11
+ import { type SlotRendererProps } from '../../../registries/slot-renderer-registry';
12
+ export declare const EntrySetSlotRenderer: (props: SlotRendererProps) => React.JSX.Element;
13
+ /** entry sets whose scalar values are review-editable — settings and properties are */
14
+ export declare const EditableEntrySetSlotRenderer: (props: SlotRendererProps) => React.JSX.Element;
@@ -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 React from 'react';
11
+ import { type SlotRendererProps } from '../../../registries/slot-renderer-registry';
12
+ /**
13
+ * Asset custom metadata as diff rows: name and language out of the hydrated entry, values
14
+ * through Studio's own metadata grid cells.
15
+ */
16
+ export declare const MetadataSlotRenderer: ({ slot, readOnly, compareAgainst, conflicts, onToggleInclude, onEdit, onStatsChange }: SlotRendererProps) => React.JSX.Element;
@@ -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 SlotRendererProps } from '../../../registries/slot-renderer-registry';
12
+ /**
13
+ * Tag assignments as added/kept/removed pills — a set diff reads better as pills than as
14
+ * a table of booleans. Include toggles ride the pill close action via the table callback
15
+ * contract: excluded rows are reported by leaf address like every other slot.
16
+ */
17
+ export declare const TagsSlotRenderer: ({ slot, readOnly, compareAgainst, onToggleInclude, onStatsChange }: SlotRendererProps) => React.JSX.Element;
@@ -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
+ import React from 'react';
11
+ import { type SlotRow } from '../slot-types';
12
+ export interface SlotDiffTableProps {
13
+ readonly rows: SlotRow[];
14
+ readonly readOnly: boolean;
15
+ /**
16
+ * Studio grid cell type the value columns delegate to (e.g.
17
+ * 'asset-custom-metadata-value'); omitted values render raw.
18
+ */
19
+ readonly valueCellType?: string;
20
+ /** Studio grid cell type for a leading icon column (e.g. 'asset-custom-metadata-icon') */
21
+ readonly iconCellType?: string;
22
+ readonly editable?: boolean;
23
+ /** scalar values on the proposed side get a plain control instead of the raw fallback */
24
+ readonly editableValues?: boolean;
25
+ /** the EXCLUDED leaf addresses, complete on every toggle */
26
+ readonly onToggleInclude?: (excludedKeys: string[]) => void;
27
+ /** review-time edits: leaf address => render value, complete on every edit */
28
+ readonly onEdit?: (amendments: Record<string, unknown>) => void;
29
+ /** leaf addresses the engine reports as conflicting; same grammar as row keys */
30
+ readonly conflicts?: readonly string[];
31
+ }
32
+ /**
33
+ * The generic diff table: one row per leaf address, current against proposed, per-row
34
+ * include toggle and an editable proposed side while editable. Value rendering delegates
35
+ * to Studio grid cell types per slot; everything else falls back to the raw value — that
36
+ * fallback is what keeps unknown shapes reviewable.
37
+ */
38
+ export declare const SlotDiffTable: ({ rows, readOnly, valueCellType, iconCellType, editable, editableValues, onToggleInclude, onEdit, conflicts }: SlotDiffTableProps) => React.JSX.Element;
@@ -0,0 +1,73 @@
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
+ * One slot of the review payload, as the change-set API ships it: values keyed by LEAF
12
+ * ADDRESS — the same addresses merge excludePaths and amendments accept, couriered back
13
+ * verbatim and never parsed here.
14
+ *
15
+ * `shape` is deliberately an open string: documented values are 'record' and 'entry-set',
16
+ * and anything unknown renders through the raw-value fallback so a new shape arrives
17
+ * additively.
18
+ */
19
+ export interface ReviewSlotData {
20
+ readonly shape: string;
21
+ readonly proposed?: Record<string, unknown> | null;
22
+ readonly current?: Record<string, unknown> | null;
23
+ readonly base?: Record<string, unknown> | null;
24
+ }
25
+ export interface ChangeSetSubjectData {
26
+ readonly subjectType: string;
27
+ readonly subjectRef: string;
28
+ readonly changedFieldNames: string[];
29
+ /** what to call this subject in a review */
30
+ readonly label: string;
31
+ /** 1-based place in the apply sequence; a subject written twice reports its FIRST write */
32
+ readonly applyOrder: number;
33
+ /** this subject's own slots; null on the primary, whose slots are the payload's top-level ones */
34
+ readonly slots?: Record<string, ReviewSlotData> | null;
35
+ /** the change set CREATES this subject, rather than changing one already there */
36
+ readonly isNew?: boolean;
37
+ }
38
+ export interface ChangeSetReviewData {
39
+ readonly id: string;
40
+ /** the primary subject; every subject the change set touches is in `subjects` */
41
+ readonly subjectType: string;
42
+ readonly subjectRef: string;
43
+ readonly subjects: ChangeSetSubjectData[];
44
+ readonly slots: Record<string, ReviewSlotData>;
45
+ readonly meta: {
46
+ readonly state: string;
47
+ readonly label: string;
48
+ readonly canMerge: boolean;
49
+ readonly canPublish: boolean;
50
+ readonly preview: {
51
+ readonly conflicts: string[];
52
+ readonly threeWay: boolean;
53
+ };
54
+ readonly changedFieldNames: string[];
55
+ };
56
+ }
57
+ /**
58
+ * A slot entry flattened for the diff table; `key` is the leaf address. Extra fields may
59
+ * ride along for delegated grid cells that read their own row contract.
60
+ */
61
+ export interface SlotRow {
62
+ readonly [extra: string]: unknown;
63
+ readonly key: string;
64
+ readonly label: string;
65
+ readonly secondaryLabel?: string;
66
+ /** per-row value type, where the slot's entries carry one (metadata types) */
67
+ readonly type?: string;
68
+ /** the compared-against value: live state under review, the recorded base when read-only */
69
+ readonly current: unknown;
70
+ readonly proposed: unknown;
71
+ readonly changed: boolean;
72
+ readonly presence: 'both' | 'added' | 'removed';
73
+ }
@@ -0,0 +1,35 @@
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 ChangeSetSubjectData } from '../slots/slot-types';
12
+ export interface SubjectRailProps {
13
+ readonly subjects: ChangeSetSubjectData[];
14
+ readonly selected: string;
15
+ readonly onSelect: (subjectKey: string) => void;
16
+ /**
17
+ * changed-FIELD count per subject key, as that subject's own surface counts it. The
18
+ * engine's changedFieldNames counts state addresses — a class carries its whole layout
19
+ * under one, so it would read "1 changed" however many fields the change adds.
20
+ */
21
+ readonly counts?: Record<string, number>;
22
+ /** subject keys the reviewer has switched off; empty in history, where nothing is decided */
23
+ readonly excluded?: ReadonlySet<string>;
24
+ readonly onToggle?: (subjectKey: string, included: boolean) => void;
25
+ /** one line per subject key on how big it is after the change ("3 groups · 6 keys") */
26
+ readonly summaries?: Record<string, string | undefined>;
27
+ }
28
+ export declare const subjectKeyOf: (subject: ChangeSetSubjectData) => string;
29
+ /**
30
+ * The definitions one change set spans, each with the one decision a reviewer makes about
31
+ * it: in or out. Switching one off withholds everything it proposes — the change set still
32
+ * lands in one step, that definition is simply left out of it. The apply sequence is not
33
+ * repeated here; the bar under the panes carries it.
34
+ */
35
+ export declare const SubjectRail: (props: SubjectRailProps) => React.JSX.Element;
@@ -0,0 +1,27 @@
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
+ rail: import("antd-style").SerializedStyles;
12
+ caption: import("antd-style").SerializedStyles;
13
+ list: import("antd-style").SerializedStyles;
14
+ card: import("antd-style").SerializedStyles;
15
+ active: import("antd-style").SerializedStyles;
16
+ include: import("antd-style").SerializedStyles;
17
+ body: import("antd-style").SerializedStyles;
18
+ head: import("antd-style").SerializedStyles;
19
+ identity: import("antd-style").SerializedStyles;
20
+ name: import("antd-style").SerializedStyles;
21
+ count: import("antd-style").SerializedStyles;
22
+ meta: import("antd-style").SerializedStyles;
23
+ kind: import("antd-style").SerializedStyles;
24
+ outcome: import("antd-style").SerializedStyles;
25
+ out: import("antd-style").SerializedStyles;
26
+ note: import("antd-style").SerializedStyles;
27
+ }>;
@@ -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 ReviewDiffViewProps } from '../../contract';
12
+ /**
13
+ * A class definition reviews as the class editor: the same tree, the same settings forms,
14
+ * with the change set's status on every field it touches and its annotations on the form
15
+ * items inside. A grid cannot show a class — the shape a reviewer judges IS the hierarchy.
16
+ *
17
+ * Nothing writes: the editor renders read-only, and a definition lands whole — there is no
18
+ * include toggle, a reviewer approves all of it or none.
19
+ */
20
+ export declare const ClassDefinitionReviewSurface: (props: ReviewDiffViewProps) => 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
+ editor: import("antd-style").SerializedStyles;
12
+ frame: import("antd-style").SerializedStyles;
13
+ alone: import("antd-style").SerializedStyles;
14
+ treeTitle: import("antd-style").SerializedStyles;
15
+ removedTitle: import("antd-style").SerializedStyles;
16
+ was: import("antd-style").SerializedStyles;
17
+ }>;
@@ -0,0 +1,66 @@
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 './settings-annotations';
12
+ export type { ChangeStatus };
13
+ export { annotate, annotateNested } from './settings-annotations';
14
+ /** a node of a class layout as the class editor consumes it */
15
+ export interface LayoutNode {
16
+ readonly [key: string]: unknown;
17
+ readonly name?: string;
18
+ readonly title?: string;
19
+ readonly fieldtype?: string;
20
+ readonly children?: unknown;
21
+ }
22
+ export type { ItemAnnotation, ItemAnnotations } from './settings-annotations';
23
+ export interface FieldChange {
24
+ readonly status: ChangeStatus;
25
+ /** the panel a moved field came from, the type a retyped one had */
26
+ readonly was?: string;
27
+ /** what changed inside the field's own settings form */
28
+ readonly annotations: ItemAnnotations;
29
+ }
30
+ export interface ClassReviewDiff {
31
+ /** the proposed tree with the dropped fields put back where they stood */
32
+ readonly layout: LayoutNode | undefined;
33
+ readonly fields: Record<string, FieldChange>;
34
+ readonly settings: ItemAnnotations;
35
+ readonly changedCount: number;
36
+ /** fields alone — what the modal title and the rail count, both of which say "fields" */
37
+ readonly changedFieldCount: number;
38
+ }
39
+ export interface PlacedField {
40
+ readonly node: LayoutNode;
41
+ /** the panel breadcrumb as a reader says it — titles, for the "was" of a move */
42
+ readonly panel: string;
43
+ /**
44
+ * The panel's identity: its ancestors' NAMES, each with its rank among same-named siblings.
45
+ * Titles are labels and change freely; names repeat across a tree ("Layout" twice in half
46
+ * the demo classes), so neither alone can say where a field sits.
47
+ */
48
+ readonly parent: string;
49
+ readonly index: number;
50
+ }
51
+ /**
52
+ * Every field of a tree keyed by place and name, with the panel it sits under. With
53
+ * `layouts` the panels are indexed too, under their own path: a panel is not a field, but
54
+ * its title is something a reviewer reads, and a change to it is a change.
55
+ */
56
+ export declare const indexFields: (root: LayoutNode | undefined, layouts?: boolean) => Map<string, PlacedField>;
57
+ /**
58
+ * The whole class-definition change set, as the editor renders it: one tree, a status per
59
+ * field, and per-form-item annotations for the field settings and the class settings.
60
+ * Fields match by NAME across the two trees, so a retype reads as a retype and a move as a
61
+ * move rather than as a removal plus an addition; a name that appears in two places (a
62
+ * block's `label` beside a top-level `label`) is two fields, told apart by where they sit.
63
+ * The result is keyed by name where the name is unique, by place and name where it is not —
64
+ * the same key the tree decorator resolves through {@link fieldKeyOf}.
65
+ */
66
+ export declare const buildClassReviewDiff: (currentLayout: LayoutNode | undefined, proposedLayout: LayoutNode | undefined, currentSettings: Record<string, unknown> | undefined, proposedSettings: Record<string, unknown> | undefined) => ClassReviewDiff;
@@ -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
+ import React from 'react';
11
+ import { type ClassReviewDiff } from '../class-review-diff';
12
+ import { type LayoutProviderProps } from '../studio-class-editor';
13
+ /**
14
+ * The pieces that live INSIDE the editor: the review context they read, the layout
15
+ * provider the annotations hang off, and the two forms the editor asks the review lane for.
16
+ */
17
+ export interface ClassReviewContext {
18
+ readonly diff: ClassReviewDiff;
19
+ /** the proposed settings, so the general tab can pick a control per value */
20
+ readonly settings: Record<string, unknown>;
21
+ /**
22
+ * The tree decorator is handed a path of structure-node IDS; only the layout provider
23
+ * knows their names. The bridge inside it fills this in, and the decorator outside reads it.
24
+ */
25
+ readonly placeOf: {
26
+ current: (idPath: readonly string[]) => string;
27
+ };
28
+ }
29
+ export declare const ClassReviewDiffContext: React.Context<ClassReviewContext | undefined>;
30
+ export declare const useReviewLayout: () => import("../studio-class-editor").LayoutContext;
31
+ export declare const ReviewLayoutProvider: (props: LayoutProviderProps) => React.JSX.Element;
32
+ export interface ReviewDetailProps {
33
+ readonly configuration: {
34
+ id: string;
35
+ name: string;
36
+ };
37
+ }
38
+ export declare const ReviewDetail: (props: ReviewDetailProps) => React.JSX.Element | null;
@@ -0,0 +1,11 @@
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
+ export declare const ClassSettingsFields: () => React.JSX.Element;
@@ -0,0 +1,25 @@
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 LayoutNode } from './class-review-diff';
11
+ export declare const isNode: (value: unknown) => value is LayoutNode;
12
+ export declare const childrenOf: (node: LayoutNode) => LayoutNode[];
13
+ /** a node's step in an identity path: its name, and which same-named sibling it is */
14
+ export declare const stepFrom: (name: string, siblingNames: readonly string[], position: number) => string;
15
+ export declare const stepOf: (node: LayoutNode, siblings: LayoutNode[], position: number) => string;
16
+ /** the key a field is matched under across the two trees: where it sits, then its name */
17
+ export declare const keyOf: (parent: string, name: string) => string;
18
+ /**
19
+ * The key a field's change is filed under: its name alone while that is unique in the
20
+ * proposed tree, its place and name once it is not. A reader of the diff asks with the same
21
+ * rule, so the two never disagree on which `label` is meant.
22
+ */
23
+ export declare const fieldKeyOf: (name: string, parent: string, sameNamed: number) => string;
24
+ /** the field's name out of a change key, whichever form the key took */
25
+ export declare const nameOfKey: (key: string) => string;
@@ -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 { type ChangeStatus } from '../../change-tag/change-tag';
11
+ /** what the change set does to ONE form item, keyed by the item's name */
12
+ export interface ItemAnnotation {
13
+ readonly status: ChangeStatus;
14
+ }
15
+ export type ItemAnnotations = Record<string, ItemAnnotation>;
16
+ /** what a change set alters INSIDE one settings record, keyed the way Form.Item names it */
17
+ export declare const annotate: (current: Record<string, unknown> | undefined, proposed: Record<string, unknown> | undefined) => ItemAnnotations;
18
+ /**
19
+ * Settings annotations with object-valued settings (property visibility) opened up: a nested
20
+ * Form.Item is keyed `propertyVisibility.grid.id`, and that is the item that should carry the
21
+ * mark, not a parent the form never shows.
22
+ */
23
+ export declare const annotateNested: (current: Record<string, unknown> | undefined, proposed: Record<string, unknown> | undefined) => ItemAnnotations;