@tridion-sites/extensions 3.1.0 → 3.3.0

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/CHANGELOG.md CHANGED
@@ -1,6 +1,38 @@
1
1
  # @tridion-sites/extensions
2
2
 
3
- ## 4.0.0
3
+ ## 3.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 0501842: `@tridion-sites/extensions`: Add extension point for multivalue container
8
+ - c31b0c9: `@tridion-sites/extensions`, `@tridion-sites/models`: Update `@tridion/graphene` dependency to v4.0.0
9
+ - e2e3a76: `@tridion-sites/extensions`: Add editor panel extension point
10
+ - 8af1b81: `@tridion-sites/extensions`: Add version compare insight panel
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [c31b0c9]
15
+ - @tridion-sites/models@2.3.0
16
+
17
+ ## 3.2.0
18
+
19
+ ### Minor Changes
20
+
21
+ - edc11cc: Add proccessing state for Ok button of the Modal footer component
22
+ - 3512d64: Add new accessibility variables and colors
23
+ - 4788821: Add info menu extension point
24
+ - e99c6e4: Add AccessControl extension point and it's dependencies.
25
+ - a4fda02: Add `revertProcess` activitiesExplorerActionId
26
+ - afdf8b0: deprecate `onUpdate` in favor of `updateItem`
27
+ - cf7b3ba: Add `finishprocess` activitiesExplorerActionId
28
+
29
+ ### Patch Changes
30
+
31
+ - Updated dependencies [c8abfb1], [482b9d1], [bc98a17], [a7a8cd6], [68fd3dc], [77cdc6c], [a4fda02], [cf7b3ba]
32
+ - @tridion-sites/models@2.2.0
33
+ - @tridion-sites/open-api-client@4.2.0
34
+
35
+ ## 3.1.0
4
36
 
5
37
  ### Minor Changes
6
38
 
package/dist/index.d.ts CHANGED
@@ -63,6 +63,22 @@ import type { UserProfile } from '@tridion-sites/models';
63
63
  import type { VersionedItem } from '@tridion-sites/models';
64
64
  import type { XhtmlFieldDefinition } from '@tridion-sites/models';
65
65
 
66
+ /**
67
+ * @public
68
+ */
69
+ export declare interface AccessControlExtensions {
70
+ commandRights: CommandRightExtension[];
71
+ }
72
+
73
+ /**
74
+ * @public
75
+ */
76
+ export declare class AccessControlExtensionsBuilder {
77
+ private _commandRights;
78
+ addCommandRight: (commandRightExtension: CommandRightExtension) => this;
79
+ build: () => AccessControlExtensions;
80
+ }
81
+
66
82
  /**
67
83
  * Accessibility-related props
68
84
  * @public
@@ -71,6 +87,13 @@ export declare interface AccessibleComponentProps<K extends keyof AriaProps> {
71
87
  aria: Pick<Partial<AriaProps>, K>;
72
88
  }
73
89
 
90
+ /**
91
+ * Accessibility-related props
92
+ */
93
+ declare interface AccessibleComponentProps_2<K extends keyof AriaProps_2> {
94
+ aria: Pick<Partial<AriaProps_2>, K>;
95
+ }
96
+
74
97
  /**
75
98
  * @public
76
99
  */
@@ -228,6 +251,7 @@ export declare type ActivitiesExplorerActionGroupId = ValuesOfArray<typeof activ
228
251
  * @public
229
252
  */
230
253
  export declare const activitiesExplorerActionGroupId: {
254
+ processInstance: "processInstance";
231
255
  exporting: "exporting";
232
256
  refreshing: "refreshing";
233
257
  workflow: "workflow";
@@ -236,7 +260,7 @@ export declare const activitiesExplorerActionGroupId: {
236
260
  /**
237
261
  * @public
238
262
  */
239
- export declare const activitiesExplorerActionGroupIds: readonly ["exporting", "refreshing", "workflow"];
263
+ export declare const activitiesExplorerActionGroupIds: readonly ["exporting", "refreshing", "workflow", "processInstance"];
240
264
 
241
265
  /**
242
266
  * @public
@@ -252,15 +276,17 @@ export declare const activitiesExplorerActionId: {
252
276
  assignActivity: "assignActivity";
253
277
  startActivity: "startActivity";
254
278
  finishActivity: "finishActivity";
279
+ finishProcess: "finishProcess";
255
280
  restartActivity: "restartActivity";
256
281
  export: "export";
257
282
  refresh: "refresh";
283
+ revertProcess: "revertProcess";
258
284
  };
259
285
 
260
286
  /**
261
287
  * @public
262
288
  */
263
- export declare const activitiesExplorerActionIds: readonly ["export", "refresh", "startActivity", "finishActivity", "restartActivity", "assignActivity"];
289
+ export declare const activitiesExplorerActionIds: readonly ["export", "refresh", "startActivity", "finishActivity", "restartActivity", "assignActivity", "revertProcess", "finishProcess"];
264
290
 
265
291
  /**
266
292
  * @internal
@@ -566,21 +592,29 @@ export declare interface AddToBundleRequest {
566
592
  */
567
593
  export declare type AriaAutocomplete = 'none' | 'both' | 'list' | 'inline';
568
594
 
595
+ declare type AriaAutocomplete_2 = 'none' | 'both' | 'list' | 'inline';
596
+
569
597
  /**
570
598
  * @public
571
599
  */
572
600
  export declare type AriaCurrent = boolean | 'page' | 'step' | 'location' | 'date' | 'time';
573
601
 
602
+ declare type AriaCurrent_2 = boolean | 'page' | 'step' | 'location' | 'date' | 'time';
603
+
574
604
  /**
575
605
  * @public
576
606
  */
577
607
  export declare type AriaHasPopup = boolean | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog';
578
608
 
609
+ declare type AriaHasPopup_2 = boolean | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog';
610
+
579
611
  /**
580
612
  * @public
581
613
  */
582
614
  export declare type AriaPressed = boolean | 'mixed';
583
615
 
616
+ declare type AriaPressed_2 = boolean | 'mixed';
617
+
584
618
  /**
585
619
  * @public
586
620
  */
@@ -605,10 +639,38 @@ export declare interface AriaProps {
605
639
  selected: boolean;
606
640
  }
607
641
 
642
+ declare interface AriaProps_2 {
643
+ activeDescendant: string;
644
+ autocomplete: AriaAutocomplete_2;
645
+ columnCount: number;
646
+ columnIndex: number;
647
+ controls: string;
648
+ current: AriaCurrent_2;
649
+ describedBy: string;
650
+ disabled: boolean;
651
+ expanded: boolean;
652
+ errorMessage: string;
653
+ for: string;
654
+ hasPopup: AriaHasPopup_2;
655
+ hidden: boolean;
656
+ id: string;
657
+ label: string;
658
+ labelledBy: string;
659
+ pressed: AriaPressed_2;
660
+ required: boolean;
661
+ role: AriaRole_2;
662
+ rowCount: number;
663
+ rowIndex: number;
664
+ selected: boolean;
665
+ multiselectable: boolean;
666
+ }
667
+
608
668
  /**
609
669
  * @public
610
670
  */
611
- export declare type AriaRole = 'button' | 'columnheader' | 'combobox' | 'grid' | 'gridcell' | 'group' | 'list' | 'listbox' | 'listitem' | 'menu' | 'menubar' | 'menuitem' | 'none' | 'option' | 'radiogroup' | 'row' | 'rowgroup' | 'rowheader' | 'tree' | 'treeitem';
671
+ export declare type AriaRole = 'alert' | 'banner' | 'button' | 'columnheader' | 'combobox' | 'dialog' | 'grid' | 'gridcell' | 'group' | 'list' | 'listbox' | 'listitem' | 'menu' | 'menubar' | 'menuitem' | 'none' | 'option' | 'radiogroup' | 'row' | 'rowgroup' | 'rowheader' | 'tree' | 'treeitem';
672
+
673
+ declare type AriaRole_2 = 'alert' | 'banner' | 'button' | 'columnheader' | 'combobox' | 'dialog' | 'grid' | 'gridcell' | 'group' | 'list' | 'listbox' | 'listitem' | 'menu' | 'menubar' | 'menuitem' | 'none' | 'option' | 'radiogroup' | 'row' | 'rowgroup' | 'rowheader' | 'tree' | 'treeitem';
612
674
 
613
675
  /**
614
676
  * @public
@@ -978,6 +1040,7 @@ export declare interface ColorPalette {
978
1040
  brandPrimary: string;
979
1041
  brandAccessible: string;
980
1042
  brandDark: string;
1043
+ brand140: string;
981
1044
  gray0: string;
982
1045
  gray10: string;
983
1046
  gray20: string;
@@ -991,6 +1054,7 @@ export declare interface ColorPalette {
991
1054
  red50: string;
992
1055
  red100: string;
993
1056
  red120: string;
1057
+ red140: string;
994
1058
  orange50: string;
995
1059
  orange100: string;
996
1060
  magenta50: string;
@@ -1022,6 +1086,41 @@ declare interface ColorProps_2 {
1022
1086
  color?: Color_2 | 'inherit';
1023
1087
  }
1024
1088
 
1089
+ /**
1090
+ * @public
1091
+ */
1092
+ export declare type CommandRightExtension = () => CommandRightExtensionConfiguration;
1093
+
1094
+ /**
1095
+ * @public
1096
+ */
1097
+ export declare interface CommandRightExtensionConfiguration {
1098
+ commandId: string;
1099
+ useCommand: CommandRightExtensionHook;
1100
+ }
1101
+
1102
+ /**
1103
+ * @public
1104
+ */
1105
+ export declare type CommandRightExtensionHook = () => CommandRightExtensionHookResult;
1106
+
1107
+ /**
1108
+ * @public
1109
+ */
1110
+ export declare interface CommandRightExtensionHookResult {
1111
+ /**
1112
+ * Callback will be executed for each item passed to the command.
1113
+ * @param item - The item to check.
1114
+ * @returns Whether the command is applicable to the item.
1115
+ */
1116
+ isItemApplicable?: (item: IdentifiableObject) => boolean;
1117
+ /**
1118
+ * Whether the command is available regardless of the items.
1119
+ * This will not override `isAvailable: false` from built-in command.
1120
+ */
1121
+ isCommandAvailable?: boolean;
1122
+ }
1123
+
1025
1124
  /**
1026
1125
  * @internal
1027
1126
  */
@@ -1139,7 +1238,9 @@ export declare interface ContainerItemsQueryProps {
1139
1238
  export declare interface ContentEditorExtensions {
1140
1239
  richTextField: RichTextFieldExtensions;
1141
1240
  formFields: ReadonlyArray<ContentEditorFormFieldExtension>;
1241
+ multivalueFormFields: ReadonlyArray<ContentEditorMultivalueFormFieldExtension>;
1142
1242
  editors: ReadonlyArray<ContentEditorViewExtension>;
1243
+ panels: EditorPanelsExtensions;
1143
1244
  }
1144
1245
 
1145
1246
  /**
@@ -1147,9 +1248,12 @@ export declare interface ContentEditorExtensions {
1147
1248
  */
1148
1249
  export declare class ContentEditorExtensionsBuilder {
1149
1250
  private _formFields;
1251
+ private _multivalueFormFields;
1150
1252
  private _itemEditors;
1151
1253
  readonly richTextField: RichTextFieldExtensionsBuilder;
1254
+ readonly panels: EditorPanelsExtensionsBuilder;
1152
1255
  addFormField: (item: ContentEditorFormFieldExtension) => this;
1256
+ addMultivalueFormField: (item: ContentEditorMultivalueFormFieldExtension) => this;
1153
1257
  addItemEditor: (item: ContentEditorViewExtension) => this;
1154
1258
  build: () => ContentEditorExtensions;
1155
1259
  }
@@ -1242,6 +1346,97 @@ export declare interface ContentEditorFormFieldHookResult {
1242
1346
  isAvailable: boolean;
1243
1347
  }
1244
1348
 
1349
+ /**
1350
+ * @public
1351
+ */
1352
+ export declare type ContentEditorMultivalueFormFieldExtension = () => ContentEditorMultivalueFormFieldExtensionConfiguration;
1353
+
1354
+ /**
1355
+ * @public
1356
+ */
1357
+ export declare interface ContentEditorMultivalueFormFieldExtensionConfiguration {
1358
+ /**
1359
+ * Extension id
1360
+ */
1361
+ readonly id: string;
1362
+ /**
1363
+ * Component to render for the multivalue field collection
1364
+ */
1365
+ readonly component: ComponentType<ContentEditorMultivalueFormFieldExtensionProps>;
1366
+ /**
1367
+ * Hook which returns information about the current multivalue field for the extension
1368
+ */
1369
+ readonly useFormField: (props: ContentEditorMultivalueFormFieldHookProps) => ContentEditorMultivalueFormFieldHookResult;
1370
+ }
1371
+
1372
+ /**
1373
+ * Props passed to multivalue collection field extension components.
1374
+ * Unlike single-value field extensions that render per item, multivalue extensions
1375
+ * receive the entire array of values and render the collection as a single component.
1376
+ * @public
1377
+ */
1378
+ export declare interface ContentEditorMultivalueFormFieldExtensionProps<T = any> {
1379
+ /**
1380
+ * Array of all values in the multivalue field
1381
+ */
1382
+ values: T[];
1383
+ /**
1384
+ * Field definition of the form field
1385
+ */
1386
+ fieldDefinition: ItemFieldDefinition;
1387
+ /**
1388
+ * Boolean to indicate whether the field should be rendered in read only mode
1389
+ */
1390
+ isReadOnly: boolean;
1391
+ /**
1392
+ * Boolean to indicate whether the field should be rendered in a disabled state
1393
+ */
1394
+ isDisabled: boolean;
1395
+ /**
1396
+ * Set all field values at once
1397
+ */
1398
+ setValues: (values: T[]) => void;
1399
+ /**
1400
+ * Original multivalue container to render as fallback
1401
+ */
1402
+ renderContainer: ReactNode;
1403
+ }
1404
+
1405
+ /**
1406
+ * @public
1407
+ */
1408
+ export declare interface ContentEditorMultivalueFormFieldHookProps {
1409
+ /**
1410
+ * Indicates whether the field is rendered in read only mode or not
1411
+ */
1412
+ isReadOnly: boolean;
1413
+ /**
1414
+ * Indicates whether the field is rendered in disabled mode or not
1415
+ */
1416
+ isDisabled: boolean;
1417
+ /**
1418
+ * Field definition of the form field
1419
+ */
1420
+ fieldDefinition: ItemFieldDefinition;
1421
+ }
1422
+
1423
+ /**
1424
+ * @public
1425
+ */
1426
+ export declare interface ContentEditorMultivalueFormFieldHookResult {
1427
+ /**
1428
+ * Priority value of the field in the list of candidates for rendering.
1429
+ * Extension with a higher priority will be displayed instead of an extension with lower priority.
1430
+ * Helps to resolve collapsing cases when useIsAvailable returns true for two or more
1431
+ * extensions for a single field at the same time.
1432
+ */
1433
+ priority?: number;
1434
+ /**
1435
+ * Defines whether the field extension is available to be displayed or not
1436
+ */
1437
+ isAvailable: boolean;
1438
+ }
1439
+
1245
1440
  /**
1246
1441
  * @public
1247
1442
  */
@@ -1626,6 +1821,7 @@ export declare const contentExplorerInsightsPanelId: {
1626
1821
  "view-on-site": "view-on-site";
1627
1822
  "published-to": "published-to";
1628
1823
  translations: "translations";
1824
+ comparison: "comparison";
1629
1825
  };
1630
1826
 
1631
1827
  /**
@@ -1633,7 +1829,7 @@ export declare const contentExplorerInsightsPanelId: {
1633
1829
  *
1634
1830
  * @public
1635
1831
  */
1636
- export declare const contentExplorerInsightsPanelIds: readonly ["search", "information", "general", "metadata", "history", "blueprint", "where-used", "view-on-site", "published-to", "translations"];
1832
+ export declare const contentExplorerInsightsPanelIds: readonly ["search", "information", "general", "metadata", "history", "blueprint", "where-used", "view-on-site", "published-to", "translations", "comparison"];
1637
1833
 
1638
1834
  /**
1639
1835
  * @public
@@ -1759,6 +1955,7 @@ export declare const contentExplorerPanelId: {
1759
1955
  "view-on-site": "view-on-site";
1760
1956
  "published-to": "published-to";
1761
1957
  translations: "translations";
1958
+ comparison: "comparison";
1762
1959
  };
1763
1960
 
1764
1961
  /**
@@ -1767,7 +1964,7 @@ export declare const contentExplorerPanelId: {
1767
1964
  * @public
1768
1965
  * @deprecated use `contentExplorerInsightsPanelIds` instead
1769
1966
  */
1770
- export declare const contentExplorerPanelIds: readonly ["search", "information", "general", "metadata", "history", "blueprint", "where-used", "view-on-site", "published-to", "translations"];
1967
+ export declare const contentExplorerPanelIds: readonly ["search", "information", "general", "metadata", "history", "blueprint", "where-used", "view-on-site", "published-to", "translations", "comparison"];
1771
1968
 
1772
1969
  /**
1773
1970
  * Content Explorer hierarchy node that has list of publications as a children.
@@ -2120,6 +2317,28 @@ export declare interface DemoteItemsRequest {
2120
2317
  failureLevel: 'warning' | 'error';
2121
2318
  }
2122
2319
 
2320
+ /**
2321
+ * Props passed to the editor panel component.
2322
+ * @public
2323
+ */
2324
+ export declare interface EditorExtensionPanelComponentProps<TItem extends IdentifiableObject = IdentifiableObject> {
2325
+ /**
2326
+ * The item being edited in the editor.
2327
+ */
2328
+ item: TItem;
2329
+ }
2330
+
2331
+ /**
2332
+ * Props passed to the editor panel hook.
2333
+ * @public
2334
+ */
2335
+ export declare interface EditorExtensionPanelHookProps<TItem extends IdentifiableObject = IdentifiableObject> {
2336
+ /**
2337
+ * The item being edited in the editor, if available.
2338
+ */
2339
+ item?: TItem;
2340
+ }
2341
+
2123
2342
  /**
2124
2343
  * @public
2125
2344
  */
@@ -2146,7 +2365,11 @@ export declare interface EditorHookResult {
2146
2365
  */
2147
2366
  isEditing: boolean;
2148
2367
  /**
2149
- * Callback to update internal editor state.
2368
+ * Callback to update item in the editor state.
2369
+ */
2370
+ updateItem: (item: Bundle | KeywordCategory | Component | MultimediaComponent | Folder | Keyword | Page | StructureGroup) => void;
2371
+ /**
2372
+ * @deprecated have been renamed to `updateItem`.
2150
2373
  */
2151
2374
  onUpdate: (item: Bundle | KeywordCategory | Component | MultimediaComponent | Folder | Keyword | Page | StructureGroup) => void;
2152
2375
  }
@@ -2159,6 +2382,120 @@ export declare interface EditorHooksApiStorage {
2159
2382
  useOptionalEditor: OptionalEditorHook;
2160
2383
  }
2161
2384
 
2385
+ /**
2386
+ * Type represents ID of a built-in panel of an editor.
2387
+ *
2388
+ * @public
2389
+ */
2390
+ export declare type EditorPanelId = ValuesOfArray<typeof editorPanelIds>;
2391
+
2392
+ /**
2393
+ * All available built-in editor panel IDs.
2394
+ *
2395
+ * @public
2396
+ */
2397
+ export declare const editorPanelId: {
2398
+ information: "information";
2399
+ history: "history";
2400
+ general: "general";
2401
+ blueprint: "blueprint";
2402
+ "where-used": "where-used";
2403
+ "view-on-site": "view-on-site";
2404
+ "published-to": "published-to";
2405
+ translations: "translations";
2406
+ comparison: "comparison";
2407
+ };
2408
+
2409
+ /**
2410
+ * List of all built-in panel IDs for editors.
2411
+ *
2412
+ * @public
2413
+ */
2414
+ export declare const editorPanelIds: readonly ["general", "view-on-site", "history", "blueprint", "where-used", "published-to", "information", "translations", "comparison"];
2415
+
2416
+ /**
2417
+ * Extension function type for editor panels.
2418
+ * @public
2419
+ */
2420
+ export declare type EditorPanelsExtension<TItem extends IdentifiableObject = IdentifiableObject> = () => EditorPanelsExtensionConfiguration<EditorExtensionPanelComponentProps<TItem>, EditorExtensionPanelHookProps<TItem>>;
2421
+
2422
+ /**
2423
+ * @public
2424
+ */
2425
+ export declare interface EditorPanelsExtensionConfiguration<TComponentProps, THookProps> {
2426
+ /**
2427
+ * Extension id
2428
+ */
2429
+ readonly id: string;
2430
+ /**
2431
+ * Component to display as a panel
2432
+ */
2433
+ readonly contentComponent: ComponentType<TComponentProps>;
2434
+ /**
2435
+ * Optional component to render a custom tab label
2436
+ */
2437
+ readonly tabLabelComponent?: ComponentType<TComponentProps>;
2438
+ /**
2439
+ * Hook which returns information about the current panel for the extension
2440
+ */
2441
+ readonly usePanel: (props: THookProps) => EditorPanelsExtensionHookResult;
2442
+ }
2443
+
2444
+ /**
2445
+ * @public
2446
+ */
2447
+ export declare interface EditorPanelsExtensionHookResult {
2448
+ /**
2449
+ * Defines whether an panel extension is available to be displayed or not
2450
+ */
2451
+ readonly isAvailable: boolean;
2452
+ /**
2453
+ * Label of a panel to display. Value is rendered unless `tabLabelComponent` is provided.
2454
+ */
2455
+ readonly label: string;
2456
+ }
2457
+
2458
+ /**
2459
+ * Collection of editor panels extensions.
2460
+ * @public
2461
+ */
2462
+ export declare interface EditorPanelsExtensions {
2463
+ /**
2464
+ * Registered panel extensions.
2465
+ */
2466
+ items: ReadonlyArray<EditorPanelsExtension>;
2467
+ /**
2468
+ * Configuration for ordering and visibility of panels.
2469
+ */
2470
+ config: ReadonlyArray<ListBuilderConfigurationExtension<string>>;
2471
+ }
2472
+
2473
+ /**
2474
+ * Builder for editor panels extensions.
2475
+ * @public
2476
+ */
2477
+ export declare class EditorPanelsExtensionsBuilder {
2478
+ private _panelsExtensions;
2479
+ /**
2480
+ * Provides a mechanism for customizing the configuration of panels.
2481
+ */
2482
+ readonly config: ListBuilder<string>;
2483
+ /**
2484
+ * Registers a new panel for editors.
2485
+ *
2486
+ * @remarks
2487
+ * This method only registers the panel and does not automatically make it visible in the application.
2488
+ * To add the panel to the application, use {@link EditorPanelsExtensionsBuilder.config}.
2489
+ *
2490
+ * @param item - panel to be registered
2491
+ */
2492
+ register: <TItem extends IdentifiableObject = IdentifiableObject>(item: EditorPanelsExtension<TItem>) => this;
2493
+ /**
2494
+ * Builds the editor panels extensions.
2495
+ */
2496
+ build: () => EditorPanelsExtensions;
2497
+ }
2498
+
2162
2499
  /**
2163
2500
  * @internal
2164
2501
  */
@@ -2220,6 +2557,10 @@ export declare class ExtensionBuilder {
2220
2557
  * Provides a mechanism for customizing Publishing Queue Explorer.
2221
2558
  */
2222
2559
  readonly publishingQueueExplorer: PublishingQueueExplorerExtensionsBuilder;
2560
+ /**
2561
+ * Provides a mechanism for customizing Access Control.
2562
+ */
2563
+ readonly accessControl: AccessControlExtensionsBuilder;
2223
2564
  build: () => ExtensionPoints;
2224
2565
  }
2225
2566
 
@@ -2250,6 +2591,7 @@ export declare interface ExtensionPoints {
2250
2591
  activitiesExplorer: ActivitiesExplorerExtensions;
2251
2592
  translations: TranslationExtensions;
2252
2593
  publishingQueueExplorer: PublishingQueueExplorerExtensions;
2594
+ accessControl: AccessControlExtensions;
2253
2595
  }
2254
2596
 
2255
2597
  /**
@@ -2669,6 +3011,7 @@ export declare const getZIndex: ZIndexGetter;
2669
3011
  */
2670
3012
  export declare interface HeaderExtensions {
2671
3013
  navigation: NavigationExtensions;
3014
+ infoMenu: InfoMenuExtensions;
2672
3015
  }
2673
3016
 
2674
3017
  /**
@@ -2679,6 +3022,10 @@ export declare class HeaderExtensionsBuilder {
2679
3022
  * Provides a mechanism for customizing navigation items.
2680
3023
  */
2681
3024
  readonly navigation: NavigationExtensionsBuilder;
3025
+ /**
3026
+ * Provides a mechanism for customizing the configuration of info menu items.
3027
+ */
3028
+ readonly infoMenu: InfoMenuExtensionsBuilder;
2682
3029
  build: () => HeaderExtensions;
2683
3030
  }
2684
3031
 
@@ -2715,9 +3062,88 @@ export declare interface IconProps extends TooltipProps, SpaceProps, SizeProps,
2715
3062
  children: ReactNode;
2716
3063
  }
2717
3064
 
2718
- declare interface IconProps_2 extends SvgProps, Partial<IconDefaultProps> {
3065
+ declare interface IconProps_2 extends SvgProps, Partial<IconDefaultProps>, Partial<AccessibleComponentProps_2<'hidden' | 'label' | 'id' | 'labelledBy' | 'role'>> {
2719
3066
  }
2720
3067
 
3068
+ /**
3069
+ * @public
3070
+ */
3071
+ export declare type InfoMenuExtension = () => InfoMenuExtensionConfiguration;
3072
+
3073
+ /**
3074
+ * @public
3075
+ */
3076
+ export declare interface InfoMenuExtensionConfiguration {
3077
+ readonly id: string;
3078
+ readonly useInfoMenuItem: InfoMenuItemHook;
3079
+ }
3080
+
3081
+ /**
3082
+ * @public
3083
+ */
3084
+ export declare interface InfoMenuExtensions {
3085
+ items: ReadonlyArray<InfoMenuExtension>;
3086
+ config: ReadonlyArray<ListBuilderConfigurationExtension<string>>;
3087
+ }
3088
+
3089
+ /**
3090
+ * @public
3091
+ */
3092
+ export declare class InfoMenuExtensionsBuilder {
3093
+ private _infoMenuExtensions;
3094
+ /**
3095
+ * Provides a mechanism for customizing the configuration of info menu items.
3096
+ */
3097
+ readonly config: ListBuilder<string>;
3098
+ /**
3099
+ * Registers a new info menu item.
3100
+ *
3101
+ * @remarks
3102
+ * This method only registers the info menu item and does not automatically make it visible in the application.
3103
+ * To add the info menu item to the application, use {@link InfoMenuExtensionsBuilder.config}.
3104
+ *
3105
+ * @param item - info menu item to be registered
3106
+ */
3107
+ register: (item: InfoMenuExtension) => this;
3108
+ build: () => InfoMenuExtensions;
3109
+ }
3110
+
3111
+ /**
3112
+ * @public
3113
+ */
3114
+ export declare type InfoMenuItemHook = () => InfoMenuItemHookResult;
3115
+
3116
+ /**
3117
+ * @public
3118
+ */
3119
+ export declare type InfoMenuItemHookResult = MenuItem;
3120
+
3121
+ /**
3122
+ * Type represents ID of a built-in info menu item.
3123
+ *
3124
+ * @public
3125
+ */
3126
+ export declare type InfoMenuItemId = ValuesOfArray<typeof infoMenuItemIds>;
3127
+
3128
+ /**
3129
+ * All available built-in info menu item IDs.
3130
+ *
3131
+ * @public
3132
+ */
3133
+ export declare const infoMenuItemId: {
3134
+ documentation: "documentation";
3135
+ classicUI: "classicUI";
3136
+ accessManagement: "accessManagement";
3137
+ about: "about";
3138
+ };
3139
+
3140
+ /**
3141
+ * List of all built-in info menu item IDs.
3142
+ *
3143
+ * @public
3144
+ */
3145
+ export declare const infoMenuItemIds: readonly ["documentation", "classicUI", "accessManagement", "about"];
3146
+
2721
3147
  /**
2722
3148
  * @public
2723
3149
  */
@@ -2909,6 +3335,60 @@ export declare interface ItemClassifiedItemsQueryProps {
2909
3335
  resultLimit?: number;
2910
3336
  }
2911
3337
 
3338
+ /**
3339
+ * @public
3340
+ */
3341
+ export declare type ItemCommandId = ValuesOfArray<typeof itemCommandIds>;
3342
+
3343
+ /**
3344
+ * @public
3345
+ */
3346
+ export declare const itemCommandId: {
3347
+ startActivity: "startActivity";
3348
+ finishActivity: "finishActivity";
3349
+ addParentPublication: "addParentPublication";
3350
+ addSelectedItemsToBundle: "addSelectedItemsToBundle";
3351
+ addToBundle: "addToBundle";
3352
+ addToFavorites: "addToFavorites";
3353
+ finishEditing: "finishEditing";
3354
+ removeFromBundle: "removeFromBundle";
3355
+ removeFromFavorites: "removeFromFavorites";
3356
+ assignActivities: "assignActivities";
3357
+ autoClassifyItems: "autoClassifyItems";
3358
+ cloneTranslationJobs: "cloneTranslationJobs";
3359
+ createChildPublication: "createChildPublication";
3360
+ deleteItems: "deleteItems";
3361
+ deleteTranslationJobs: "deleteTranslationJobs";
3362
+ demoteItems: "demoteItems";
3363
+ exportItems: "exportItems";
3364
+ finishProcesses: "finishProcesses";
3365
+ localizeItems: "localizeItems";
3366
+ openItemsInEditor: "openItemsInEditor";
3367
+ openTranslationJob: "openTranslationJob";
3368
+ promoteItems: "promoteItems";
3369
+ publishItems: "publishItems";
3370
+ redoPublishTransactions: "redoPublishTransactions";
3371
+ removePublicationFromParents: "removePublicationFromParents";
3372
+ removeItemsFromTranslationJob: "removeItemsFromTranslationJob";
3373
+ restartActivities: "restartActivities";
3374
+ retryTranslationJob: "retryTranslationJob";
3375
+ revertItems: "revertItems";
3376
+ revertProcesses: "revertProcesses";
3377
+ rollbackItem: "rollbackItem";
3378
+ sendForTranslation: "sendForTranslation";
3379
+ startBundleWorkflow: "startBundleWorkflow";
3380
+ translateItems: "translateItems";
3381
+ unlocalizeItems: "unlocalizeItems";
3382
+ unpublishItems: "unpublishItems";
3383
+ updateParentPublicationPriority: "updateParentPublicationPriority";
3384
+ viewInExplorer: "viewInExplorer";
3385
+ };
3386
+
3387
+ /**
3388
+ * @public
3389
+ */
3390
+ export declare const itemCommandIds: readonly ["addParentPublication", "addSelectedItemsToBundle", "addToBundle", "addToFavorites", "assignActivities", "autoClassifyItems", "cloneTranslationJobs", "createChildPublication", "deleteItems", "deleteTranslationJobs", "demoteItems", "exportItems", "finishActivity", "finishEditing", "finishProcesses", "localizeItems", "openItemsInEditor", "openTranslationJob", "promoteItems", "publishItems", "redoPublishTransactions", "removeFromBundle", "removeFromFavorites", "removePublicationFromParents", "removeItemsFromTranslationJob", "restartActivities", "retryTranslationJob", "revertItems", "revertProcesses", "rollbackItem", "sendForTranslation", "startActivity", "startBundleWorkflow", "translateItems", "unlocalizeItems", "unpublishItems", "updateParentPublicationPriority", "viewInExplorer"];
3391
+
2912
3392
  /**
2913
3393
  * @public
2914
3394
  */
@@ -3283,6 +3763,17 @@ export declare interface LocalizeItemsRequest {
3283
3763
  */
3284
3764
  export declare type MainAxisAlignment = 'start' | 'center' | 'end' | 'space-between' | 'space-around' | 'space-evenly' | 'stretch';
3285
3765
 
3766
+ /**
3767
+ * @public
3768
+ */
3769
+ export declare interface MenuItem {
3770
+ readonly title: string;
3771
+ readonly tooltip?: string;
3772
+ readonly icon: ReactNode;
3773
+ readonly onClick: () => void;
3774
+ readonly isAvailable: boolean;
3775
+ }
3776
+
3286
3777
  /**
3287
3778
  * A component to render Content of a Modal
3288
3779
  *
@@ -3341,6 +3832,10 @@ export declare interface ModalFooterComponentProps {
3341
3832
  * Boolean that indicates disabled state of the Ok button.
3342
3833
  */
3343
3834
  isOkButtonDisabled?: boolean;
3835
+ /**
3836
+ * Boolean that indicates processing state of the Ok button.
3837
+ */
3838
+ isOkButtonProcessing?: boolean;
3344
3839
  /**
3345
3840
  * Label for the Ok button of the Modal.
3346
3841
  */
@@ -3733,12 +4228,13 @@ export declare const navigationItemId: {
3733
4228
  activitiesExplorer: "activitiesExplorer";
3734
4229
  contentExplorer: "contentExplorer";
3735
4230
  publishingQueueExplorer: "publishingQueueExplorer";
4231
+ translationsExplorer: "translationsExplorer";
3736
4232
  };
3737
4233
 
3738
4234
  /**
3739
4235
  * @public
3740
4236
  */
3741
- export declare const navigationItemIds: readonly ["activitiesExplorer", "contentExplorer", "publishingQueueExplorer"];
4237
+ export declare const navigationItemIds: readonly ["activitiesExplorer", "contentExplorer", "publishingQueueExplorer", "translationsExplorer"];
3742
4238
 
3743
4239
  /**
3744
4240
  * @public
@@ -4066,6 +4562,7 @@ declare const palette: {
4066
4562
  brandPrimary: string;
4067
4563
  brandAccessible: string;
4068
4564
  brandDark: string;
4565
+ brand140: string;
4069
4566
  gray0: string;
4070
4567
  gray10: string;
4071
4568
  gray20: string;
@@ -4079,6 +4576,7 @@ declare const palette: {
4079
4576
  red50: string;
4080
4577
  red100: string;
4081
4578
  red120: string;
4579
+ red140: string;
4082
4580
  orange50: string;
4083
4581
  orange100: string;
4084
4582
  magenta50: string;
package/dist/index.js CHANGED
@@ -37,6 +37,7 @@ const contentExplorerInsightsPanelIds = [
37
37
  'view-on-site',
38
38
  'published-to',
39
39
  'translations',
40
+ 'comparison',
40
41
  ];
41
42
  /**
42
43
  * All available built-in Content Explorer panel IDs.
@@ -72,6 +73,29 @@ const publishingQueueExplorerPanelIds = ['information', 'resolvedItems'];
72
73
  */
73
74
  const publishingQueueExplorerPanelId = createEnumObject(publishingQueueExplorerPanelIds);
74
75
 
76
+ /**
77
+ * List of all built-in panel IDs for editors.
78
+ *
79
+ * @public
80
+ */
81
+ const editorPanelIds = [
82
+ 'general',
83
+ 'view-on-site',
84
+ 'history',
85
+ 'blueprint',
86
+ 'where-used',
87
+ 'published-to',
88
+ 'information',
89
+ 'translations',
90
+ 'comparison',
91
+ ];
92
+ /**
93
+ * All available built-in editor panel IDs.
94
+ *
95
+ * @public
96
+ */
97
+ const editorPanelId = createEnumObject(editorPanelIds);
98
+
75
99
  /**
76
100
  * @public
77
101
  */
@@ -570,6 +594,8 @@ const activitiesExplorerActionIds = [
570
594
  'finishActivity',
571
595
  'restartActivity',
572
596
  'assignActivity',
597
+ 'revertProcess',
598
+ 'finishProcess',
573
599
  ];
574
600
  /**
575
601
  * All built-in action IDs available in Activities Explorer.
@@ -580,7 +606,7 @@ const activitiesExplorerActionId = createEnumObject(activitiesExplorerActionIds)
580
606
  /**
581
607
  * @public
582
608
  */
583
- const activitiesExplorerActionGroupIds = ['exporting', 'refreshing', 'workflow'];
609
+ const activitiesExplorerActionGroupIds = ['exporting', 'refreshing', 'workflow', 'processInstance'];
584
610
  /**
585
611
  * All built-in action group IDs available in Activities Explorer.
586
612
  *
@@ -646,6 +672,64 @@ class ActivitiesExplorerExtensionsBuilder {
646
672
  }
647
673
  }
648
674
 
675
+ /**
676
+ * Builder for editor panels extensions.
677
+ * @public
678
+ */
679
+ class EditorPanelsExtensionsBuilder {
680
+ constructor() {
681
+ Object.defineProperty(this, "_panelsExtensions", {
682
+ enumerable: true,
683
+ configurable: true,
684
+ writable: true,
685
+ value: []
686
+ });
687
+ /**
688
+ * Provides a mechanism for customizing the configuration of panels.
689
+ */
690
+ Object.defineProperty(this, "config", {
691
+ enumerable: true,
692
+ configurable: true,
693
+ writable: true,
694
+ value: new ListBuilder(itemId => itemId)
695
+ });
696
+ /**
697
+ * Registers a new panel for editors.
698
+ *
699
+ * @remarks
700
+ * This method only registers the panel and does not automatically make it visible in the application.
701
+ * To add the panel to the application, use {@link EditorPanelsExtensionsBuilder.config}.
702
+ *
703
+ * @param item - panel to be registered
704
+ */
705
+ Object.defineProperty(this, "register", {
706
+ enumerable: true,
707
+ configurable: true,
708
+ writable: true,
709
+ value: (item) => {
710
+ // Since EditorPanelsExtension is contravariant in its generic parameter,
711
+ // we need to handle the type conversion more carefully
712
+ this._panelsExtensions.push(item);
713
+ return this;
714
+ }
715
+ });
716
+ /**
717
+ * Builds the editor panels extensions.
718
+ */
719
+ Object.defineProperty(this, "build", {
720
+ enumerable: true,
721
+ configurable: true,
722
+ writable: true,
723
+ value: () => {
724
+ return {
725
+ items: this._panelsExtensions,
726
+ config: this.config.build(),
727
+ };
728
+ }
729
+ });
730
+ }
731
+ }
732
+
649
733
  /**
650
734
  * @public
651
735
  */
@@ -704,6 +788,12 @@ class ContentEditorExtensionsBuilder {
704
788
  writable: true,
705
789
  value: []
706
790
  });
791
+ Object.defineProperty(this, "_multivalueFormFields", {
792
+ enumerable: true,
793
+ configurable: true,
794
+ writable: true,
795
+ value: []
796
+ });
707
797
  Object.defineProperty(this, "_itemEditors", {
708
798
  enumerable: true,
709
799
  configurable: true,
@@ -716,6 +806,12 @@ class ContentEditorExtensionsBuilder {
716
806
  writable: true,
717
807
  value: new RichTextFieldExtensionsBuilder()
718
808
  });
809
+ Object.defineProperty(this, "panels", {
810
+ enumerable: true,
811
+ configurable: true,
812
+ writable: true,
813
+ value: new EditorPanelsExtensionsBuilder()
814
+ });
719
815
  Object.defineProperty(this, "addFormField", {
720
816
  enumerable: true,
721
817
  configurable: true,
@@ -725,6 +821,15 @@ class ContentEditorExtensionsBuilder {
725
821
  return this;
726
822
  }
727
823
  });
824
+ Object.defineProperty(this, "addMultivalueFormField", {
825
+ enumerable: true,
826
+ configurable: true,
827
+ writable: true,
828
+ value: (item) => {
829
+ this._multivalueFormFields.push(item);
830
+ return this;
831
+ }
832
+ });
728
833
  Object.defineProperty(this, "addItemEditor", {
729
834
  enumerable: true,
730
835
  configurable: true,
@@ -742,7 +847,9 @@ class ContentEditorExtensionsBuilder {
742
847
  return {
743
848
  richTextField: this.richTextField.build(),
744
849
  formFields: this._formFields,
850
+ multivalueFormFields: this._multivalueFormFields,
745
851
  editors: this._itemEditors,
852
+ panels: this.panels.build(),
746
853
  };
747
854
  }
748
855
  });
@@ -1035,6 +1142,87 @@ class ContentExplorerExtensionsBuilder {
1035
1142
  }
1036
1143
  }
1037
1144
 
1145
+ /**
1146
+ * @public
1147
+ */
1148
+ class AccessControlExtensionsBuilder {
1149
+ constructor() {
1150
+ Object.defineProperty(this, "_commandRights", {
1151
+ enumerable: true,
1152
+ configurable: true,
1153
+ writable: true,
1154
+ value: []
1155
+ });
1156
+ Object.defineProperty(this, "addCommandRight", {
1157
+ enumerable: true,
1158
+ configurable: true,
1159
+ writable: true,
1160
+ value: (commandRightExtension) => {
1161
+ this._commandRights.push(commandRightExtension);
1162
+ return this;
1163
+ }
1164
+ });
1165
+ Object.defineProperty(this, "build", {
1166
+ enumerable: true,
1167
+ configurable: true,
1168
+ writable: true,
1169
+ value: () => {
1170
+ return {
1171
+ commandRights: this._commandRights,
1172
+ };
1173
+ }
1174
+ });
1175
+ }
1176
+ }
1177
+
1178
+ /**
1179
+ * @public
1180
+ */
1181
+ const itemCommandIds = [
1182
+ 'addParentPublication',
1183
+ 'addSelectedItemsToBundle',
1184
+ 'addToBundle',
1185
+ 'addToFavorites',
1186
+ 'assignActivities',
1187
+ 'autoClassifyItems',
1188
+ 'cloneTranslationJobs',
1189
+ 'createChildPublication',
1190
+ 'deleteItems',
1191
+ 'deleteTranslationJobs',
1192
+ 'demoteItems',
1193
+ 'exportItems',
1194
+ 'finishActivity',
1195
+ 'finishEditing',
1196
+ 'finishProcesses',
1197
+ 'localizeItems',
1198
+ 'openItemsInEditor',
1199
+ 'openTranslationJob',
1200
+ 'promoteItems',
1201
+ 'publishItems',
1202
+ 'redoPublishTransactions',
1203
+ 'removeFromBundle',
1204
+ 'removeFromFavorites',
1205
+ 'removePublicationFromParents',
1206
+ 'removeItemsFromTranslationJob',
1207
+ 'restartActivities',
1208
+ 'retryTranslationJob',
1209
+ 'revertItems',
1210
+ 'revertProcesses',
1211
+ 'rollbackItem',
1212
+ 'sendForTranslation',
1213
+ 'startActivity',
1214
+ 'startBundleWorkflow',
1215
+ 'translateItems',
1216
+ 'unlocalizeItems',
1217
+ 'unpublishItems',
1218
+ 'updateParentPublicationPriority',
1219
+ 'viewInExplorer',
1220
+ ];
1221
+ /**
1222
+ * @public
1223
+ */
1224
+ const itemCommandId = createEnumObject(itemCommandIds);
1225
+
1038
1226
  /**
1039
1227
  * @public
1040
1228
  */
@@ -1090,7 +1278,12 @@ class NavigationExtensionsBuilder {
1090
1278
  /**
1091
1279
  * @public
1092
1280
  */
1093
- const navigationItemIds = ['activitiesExplorer', 'contentExplorer', 'publishingQueueExplorer'];
1281
+ const navigationItemIds = [
1282
+ 'activitiesExplorer',
1283
+ 'contentExplorer',
1284
+ 'publishingQueueExplorer',
1285
+ 'translationsExplorer',
1286
+ ];
1094
1287
  /**
1095
1288
  * All available built-in navigation item IDs.
1096
1289
  *
@@ -1098,6 +1291,71 @@ const navigationItemIds = ['activitiesExplorer', 'contentExplorer', 'publishingQ
1098
1291
  */
1099
1292
  const navigationItemId = createEnumObject(navigationItemIds);
1100
1293
 
1294
+ /**
1295
+ * @public
1296
+ */
1297
+ class InfoMenuExtensionsBuilder {
1298
+ constructor() {
1299
+ Object.defineProperty(this, "_infoMenuExtensions", {
1300
+ enumerable: true,
1301
+ configurable: true,
1302
+ writable: true,
1303
+ value: []
1304
+ });
1305
+ /**
1306
+ * Provides a mechanism for customizing the configuration of info menu items.
1307
+ */
1308
+ Object.defineProperty(this, "config", {
1309
+ enumerable: true,
1310
+ configurable: true,
1311
+ writable: true,
1312
+ value: new ListBuilder(itemId => itemId)
1313
+ });
1314
+ /**
1315
+ * Registers a new info menu item.
1316
+ *
1317
+ * @remarks
1318
+ * This method only registers the info menu item and does not automatically make it visible in the application.
1319
+ * To add the info menu item to the application, use {@link InfoMenuExtensionsBuilder.config}.
1320
+ *
1321
+ * @param item - info menu item to be registered
1322
+ */
1323
+ Object.defineProperty(this, "register", {
1324
+ enumerable: true,
1325
+ configurable: true,
1326
+ writable: true,
1327
+ value: (item) => {
1328
+ this._infoMenuExtensions.push(item);
1329
+ return this;
1330
+ }
1331
+ });
1332
+ Object.defineProperty(this, "build", {
1333
+ enumerable: true,
1334
+ configurable: true,
1335
+ writable: true,
1336
+ value: () => {
1337
+ return {
1338
+ items: this._infoMenuExtensions,
1339
+ config: this.config.build(),
1340
+ };
1341
+ }
1342
+ });
1343
+ }
1344
+ }
1345
+
1346
+ /**
1347
+ * List of all built-in info menu item IDs.
1348
+ *
1349
+ * @public
1350
+ */
1351
+ const infoMenuItemIds = ['documentation', 'classicUI', 'accessManagement', 'about'];
1352
+ /**
1353
+ * All available built-in info menu item IDs.
1354
+ *
1355
+ * @public
1356
+ */
1357
+ const infoMenuItemId = createEnumObject(infoMenuItemIds);
1358
+
1101
1359
  /**
1102
1360
  * @public
1103
1361
  */
@@ -1112,6 +1370,15 @@ class HeaderExtensionsBuilder {
1112
1370
  writable: true,
1113
1371
  value: new NavigationExtensionsBuilder()
1114
1372
  });
1373
+ /**
1374
+ * Provides a mechanism for customizing the configuration of info menu items.
1375
+ */
1376
+ Object.defineProperty(this, "infoMenu", {
1377
+ enumerable: true,
1378
+ configurable: true,
1379
+ writable: true,
1380
+ value: new InfoMenuExtensionsBuilder()
1381
+ });
1115
1382
  Object.defineProperty(this, "build", {
1116
1383
  enumerable: true,
1117
1384
  configurable: true,
@@ -1119,6 +1386,7 @@ class HeaderExtensionsBuilder {
1119
1386
  value: () => {
1120
1387
  return {
1121
1388
  navigation: this.navigation.build(),
1389
+ infoMenu: this.infoMenu.build(),
1122
1390
  };
1123
1391
  }
1124
1392
  });
@@ -1415,6 +1683,15 @@ class ExtensionBuilder {
1415
1683
  writable: true,
1416
1684
  value: new PublishingQueueExplorerExtensionsBuilder()
1417
1685
  });
1686
+ /**
1687
+ * Provides a mechanism for customizing Access Control.
1688
+ */
1689
+ Object.defineProperty(this, "accessControl", {
1690
+ enumerable: true,
1691
+ configurable: true,
1692
+ writable: true,
1693
+ value: new AccessControlExtensionsBuilder()
1694
+ });
1418
1695
  Object.defineProperty(this, "build", {
1419
1696
  enumerable: true,
1420
1697
  configurable: true,
@@ -1427,6 +1704,7 @@ class ExtensionBuilder {
1427
1704
  translations: this.translations.build(),
1428
1705
  activitiesExplorer: this.activitiesExplorer.build(),
1429
1706
  publishingQueueExplorer: this.publishingQueueExplorer.build(),
1707
+ accessControl: this.accessControl.build(),
1430
1708
  };
1431
1709
  }
1432
1710
  });
@@ -1649,7 +1927,7 @@ const isSystemNode = (node) => extensionApiBridge.get().contentExplorer.utils.hi
1649
1927
  */
1650
1928
  const PropertiesList = memo(props => {
1651
1929
  const PropertiesList = extensionApiBridge.get().contentExplorer.components.PropertiesList;
1652
- return jsx(PropertiesList, Object.assign({}, props));
1930
+ return jsx(PropertiesList, { ...props });
1653
1931
  });
1654
1932
  PropertiesList.displayName = 'PropertiesList';
1655
1933
 
@@ -1804,7 +2082,7 @@ const useOptionalStructureGroupEditor = () => {
1804
2082
  */
1805
2083
  const Block = memo(props => {
1806
2084
  const Block = extensionApiBridge.get().general.components.Block;
1807
- return jsx(Block, Object.assign({}, props));
2085
+ return jsx(Block, { ...props });
1808
2086
  });
1809
2087
  Block.displayName = 'Block';
1810
2088
  /**
@@ -1814,7 +2092,7 @@ Block.displayName = 'Block';
1814
2092
  */
1815
2093
  const Button = memo(props => {
1816
2094
  const Button = extensionApiBridge.get().general.components.Button;
1817
- return jsx(Button, Object.assign({}, props));
2095
+ return jsx(Button, { ...props });
1818
2096
  });
1819
2097
  Button.displayName = 'Button';
1820
2098
  /**
@@ -1829,7 +2107,7 @@ Button.displayName = 'Button';
1829
2107
  */
1830
2108
  const Center = memo(props => {
1831
2109
  const Center = extensionApiBridge.get().general.components.Center;
1832
- return jsx(Center, Object.assign({}, props));
2110
+ return jsx(Center, { ...props });
1833
2111
  });
1834
2112
  Center.displayName = 'Center';
1835
2113
  /**
@@ -1843,7 +2121,7 @@ Center.displayName = 'Center';
1843
2121
  */
1844
2122
  const Flex = memo(props => {
1845
2123
  const Flex = extensionApiBridge.get().general.components.Flex;
1846
- return jsx(Flex, Object.assign({}, props));
2124
+ return jsx(Flex, { ...props });
1847
2125
  });
1848
2126
  Flex.displayName = 'Flex';
1849
2127
  /**
@@ -1853,7 +2131,7 @@ Flex.displayName = 'Flex';
1853
2131
  */
1854
2132
  const Icon = memo(props => {
1855
2133
  const Icon = extensionApiBridge.get().general.components.Icon;
1856
- return jsx(Icon, Object.assign({}, props));
2134
+ return jsx(Icon, { ...props });
1857
2135
  });
1858
2136
  Icon.displayName = 'Icon';
1859
2137
  /**
@@ -1863,7 +2141,7 @@ Icon.displayName = 'Icon';
1863
2141
  */
1864
2142
  const Link = memo(props => {
1865
2143
  const Link = extensionApiBridge.get().general.components.Link;
1866
- return jsx(Link, Object.assign({}, props));
2144
+ return jsx(Link, { ...props });
1867
2145
  });
1868
2146
  Link.displayName = 'Link';
1869
2147
  /**
@@ -1876,7 +2154,7 @@ Link.displayName = 'Link';
1876
2154
  */
1877
2155
  const Stack = memo(props => {
1878
2156
  const Stack = extensionApiBridge.get().general.components.Stack;
1879
- return jsx(Stack, Object.assign({}, props));
2157
+ return jsx(Stack, { ...props });
1880
2158
  });
1881
2159
  Stack.displayName = 'Stack';
1882
2160
  /**
@@ -1886,7 +2164,7 @@ Stack.displayName = 'Stack';
1886
2164
  */
1887
2165
  const Text = memo(props => {
1888
2166
  const Text = extensionApiBridge.get().general.components.Text;
1889
- return jsx(Text, Object.assign({}, props));
2167
+ return jsx(Text, { ...props });
1890
2168
  });
1891
2169
  Text.displayName = 'Text';
1892
2170
  /**
@@ -1896,7 +2174,7 @@ Text.displayName = 'Text';
1896
2174
  */
1897
2175
  const TextLink = memo(props => {
1898
2176
  const TextLink = extensionApiBridge.get().general.components.TextLink;
1899
- return jsx(TextLink, Object.assign({}, props));
2177
+ return jsx(TextLink, { ...props });
1900
2178
  });
1901
2179
  TextLink.displayName = 'TextLink';
1902
2180
  /**
@@ -1906,7 +2184,7 @@ TextLink.displayName = 'TextLink';
1906
2184
  */
1907
2185
  const ModalContent = memo(props => {
1908
2186
  const ModalContent = extensionApiBridge.get().general.components.ModalContent;
1909
- return jsx(ModalContent, Object.assign({}, props));
2187
+ return jsx(ModalContent, { ...props });
1910
2188
  });
1911
2189
  ModalContent.displayName = 'ModalContent';
1912
2190
  /**
@@ -1916,7 +2194,7 @@ ModalContent.displayName = 'ModalContent';
1916
2194
  */
1917
2195
  const ModalHeader = memo(props => {
1918
2196
  const ModalHeader = extensionApiBridge.get().general.components.ModalHeader;
1919
- return jsx(ModalHeader, Object.assign({}, props));
2197
+ return jsx(ModalHeader, { ...props });
1920
2198
  });
1921
2199
  ModalHeader.displayName = 'ModalHeader';
1922
2200
  /**
@@ -1926,7 +2204,7 @@ ModalHeader.displayName = 'ModalHeader';
1926
2204
  */
1927
2205
  const ModalFooter = memo(props => {
1928
2206
  const ModalFooter = extensionApiBridge.get().general.components.ModalFooter;
1929
- return jsx(ModalFooter, Object.assign({}, props));
2207
+ return jsx(ModalFooter, { ...props });
1930
2208
  });
1931
2209
  ModalFooter.displayName = 'ModalFooter';
1932
2210
 
@@ -2590,20 +2868,20 @@ const createExtensionGlobals = () => {
2590
2868
  };
2591
2869
  return {
2592
2870
  initialize,
2593
- t: (key, options) => extensionGlobals === null || extensionGlobals === void 0 ? void 0 : extensionGlobals.t(key, options),
2594
- getConfiguration: () => extensionGlobals === null || extensionGlobals === void 0 ? void 0 : extensionGlobals.getConfiguration(),
2871
+ t: (key, options) => extensionGlobals?.t(key, options),
2872
+ getConfiguration: () => extensionGlobals?.getConfiguration(),
2595
2873
  };
2596
2874
  };
2597
2875
 
2598
- const version = "3.1.0";
2876
+ const version = "3.3.0";
2599
2877
  const peerDependencies = {
2600
2878
  "@tridion-sites/models": "workspace:*",
2601
2879
  "@tridion-sites/open-api-client": "workspace:*",
2602
2880
  react: "18.3.1",
2603
2881
  "react-dom": "18.3.1",
2604
2882
  "react-is": "18.3.1",
2605
- "styled-components": "6.1.13",
2606
- tinymce: "7.3.0"
2883
+ "styled-components": "6.1.19",
2884
+ tinymce: "7.9.1"
2607
2885
  };
2608
2886
 
2609
2887
  /**
@@ -2614,4 +2892,4 @@ const frameworkInfo = {
2614
2892
  peerDependencies,
2615
2893
  };
2616
2894
 
2617
- export { ActionsConfigurationExtensionsBuilder, ActivitiesExplorerExtensionsBuilder, ActivitiesExplorerInsightsPanelsExtensionsBuilder, ActivitiesExplorerTableExtensionsBuilder, Block, Button, Center, ContentEditorExtensionsBuilder, ContentExplorerExtensionsBuilder, ContentExplorerInsightsPanelsExtensionsBuilder, ContentExplorerTableExtensionsBuilder, ContentExplorerTreeExtensionsBuilder, ExtensionBuilder, Flex, HeaderExtensionsBuilder, Icon, Link, ModalContent, ModalFooter, ModalHeader, NavigationExtensionsBuilder, PropertiesList, PublishingQueueExplorerExtensionsBuilder, PublishingQueueExplorerInsightsPanelsExtensionsBuilder, PublishingQueueExplorerTableExtensionsBuilder, RichTextFieldExtensionsBuilder, Stack, Text, TextLink, TranslationExtensionsBuilder, activitiesExplorerActionGroupId, activitiesExplorerActionGroupIds, activitiesExplorerActionId, activitiesExplorerActionIds, activitiesExplorerPanelId, activitiesExplorerPanelIds, contentExplorerActionGroupId, contentExplorerActionGroupIds, contentExplorerActionId, contentExplorerActionIds, contentExplorerInsightsPanelId, contentExplorerInsightsPanelIds, contentExplorerPanelId, contentExplorerPanelIds, createExtensionGlobals, extensionApiBridge, frameworkInfo, getBorderRadius, getColorPalette, getOpacityLevel, getSpacing, getTransitionDuration, getZIndex, isFavoritesNodeId, isItemNode, isItemNodeOfType, isItemsInProgressNode, isItemsInProgressNodeId, isPublicationsNode, isPublicationsNodeId, isRootNode, isRootNodeId, isSystemNode, modalStatus, modalStatuses, modalType, modalTypes, navigationItemId, navigationItemIds, publishingQueueExplorerActionGroupId, publishingQueueExplorerActionGroupIds, publishingQueueExplorerActionId, publishingQueueExplorerActionIds, publishingQueueExplorerPanelId, publishingQueueExplorerPanelIds, useActivitiesExplorer, useActivitiesExplorerTable, useActivityInstancesQuery, useAddToBundleMutation, useAssignActivitiesMutation, useAssignActivityMutation, useAutoClassifyItemMutation, useAutoClassifyItemsMutation, useChangeUserLanguageMutation, useChangeUserLocaleMutation, useConfirmation, useContainerItems, useContentExplorer, useContentExplorerTable, useContentExplorerTree, useCopyItemMutation, useCopyItemsMutation, useCreateTranslationJobMutation, useDefaultTranslationJobQuery, useDeleteItemMutation, useDeleteItemsMutation, useDemoteItemMutation, useDemoteItemsMutation, useEditor, useFavoritesQuery, useFinishActivitiesMutation, useFinishActivityMutation, useFinishEditingItemMutation, useFinishEditingItemsMutation, useItemBlueprintHierarchyQuery, useItemChildrenQuery, useItemClassifiedItemsQuery, useItemDefaultDataQuery, useItemHistoryQuery, useItemPublishUrlsQuery, useItemPublishedPagesQuery, useItemPublishedToQuery, useItemQuery, useItemTranslationInfoQuery, useItemUsedByQuery, useItemUsesQuery, useItemsInProgressQuery, useItemsQuery, useItemsToPublishQuery, useItemsToUnpublishQuery, useLocalizeItemMutation, useLocalizeItemsMutation, useModal, useMoveItemMutation, useMoveItemsMutation, useNotifications, useOptionalActivitiesExplorer, useOptionalActivitiesExplorerTable, useOptionalBundleEditor, useOptionalCategoryEditor, useOptionalComponentEditor, useOptionalContentExplorer, useOptionalContentExplorerTable, useOptionalContentExplorerTree, useOptionalEditor, useOptionalFolderEditor, useOptionalKeywordEditor, useOptionalPageEditor, useOptionalPublishingQueueExplorer, useOptionalPublishingQueueExplorerTable, useOptionalStructureGroupEditor, usePublicationBlueprintHierarchyQuery, usePublicationsQuery, usePublishItemsMutation, usePublishableTargetTypesQuery, usePublishingQueueExplorer, usePublishingQueueExplorerTable, useRemoveFromBundleMutation, useRestartActivitiesMutation, useRestartActivityMutation, useRevertItemMutation, useRevertItemsMutation, useRollbackItemMutation, useSearchInContainerQuery, useStartActivitiesMutation, useStartActivityMutation, useStartWorkflowMutation, useSystemSearchQuery, useUnlocalizeItemMutation, useUnlocalizeItemsMutation, useUnpublishItemsMutation, useUpdateItemMutation, useUploadMultimediaMutation, useUserGroupsQuery, useUserProfile, useUserProfileQuery, useUsersQuery };
2895
+ export { AccessControlExtensionsBuilder, ActionsConfigurationExtensionsBuilder, ActivitiesExplorerExtensionsBuilder, ActivitiesExplorerInsightsPanelsExtensionsBuilder, ActivitiesExplorerTableExtensionsBuilder, Block, Button, Center, ContentEditorExtensionsBuilder, ContentExplorerExtensionsBuilder, ContentExplorerInsightsPanelsExtensionsBuilder, ContentExplorerTableExtensionsBuilder, ContentExplorerTreeExtensionsBuilder, EditorPanelsExtensionsBuilder, ExtensionBuilder, Flex, HeaderExtensionsBuilder, Icon, InfoMenuExtensionsBuilder, Link, ModalContent, ModalFooter, ModalHeader, NavigationExtensionsBuilder, PropertiesList, PublishingQueueExplorerExtensionsBuilder, PublishingQueueExplorerInsightsPanelsExtensionsBuilder, PublishingQueueExplorerTableExtensionsBuilder, RichTextFieldExtensionsBuilder, Stack, Text, TextLink, TranslationExtensionsBuilder, activitiesExplorerActionGroupId, activitiesExplorerActionGroupIds, activitiesExplorerActionId, activitiesExplorerActionIds, activitiesExplorerPanelId, activitiesExplorerPanelIds, contentExplorerActionGroupId, contentExplorerActionGroupIds, contentExplorerActionId, contentExplorerActionIds, contentExplorerInsightsPanelId, contentExplorerInsightsPanelIds, contentExplorerPanelId, contentExplorerPanelIds, createExtensionGlobals, editorPanelId, editorPanelIds, extensionApiBridge, frameworkInfo, getBorderRadius, getColorPalette, getOpacityLevel, getSpacing, getTransitionDuration, getZIndex, infoMenuItemId, infoMenuItemIds, isFavoritesNodeId, isItemNode, isItemNodeOfType, isItemsInProgressNode, isItemsInProgressNodeId, isPublicationsNode, isPublicationsNodeId, isRootNode, isRootNodeId, isSystemNode, itemCommandId, itemCommandIds, modalStatus, modalStatuses, modalType, modalTypes, navigationItemId, navigationItemIds, publishingQueueExplorerActionGroupId, publishingQueueExplorerActionGroupIds, publishingQueueExplorerActionId, publishingQueueExplorerActionIds, publishingQueueExplorerPanelId, publishingQueueExplorerPanelIds, useActivitiesExplorer, useActivitiesExplorerTable, useActivityInstancesQuery, useAddToBundleMutation, useAssignActivitiesMutation, useAssignActivityMutation, useAutoClassifyItemMutation, useAutoClassifyItemsMutation, useChangeUserLanguageMutation, useChangeUserLocaleMutation, useConfirmation, useContainerItems, useContentExplorer, useContentExplorerTable, useContentExplorerTree, useCopyItemMutation, useCopyItemsMutation, useCreateTranslationJobMutation, useDefaultTranslationJobQuery, useDeleteItemMutation, useDeleteItemsMutation, useDemoteItemMutation, useDemoteItemsMutation, useEditor, useFavoritesQuery, useFinishActivitiesMutation, useFinishActivityMutation, useFinishEditingItemMutation, useFinishEditingItemsMutation, useItemBlueprintHierarchyQuery, useItemChildrenQuery, useItemClassifiedItemsQuery, useItemDefaultDataQuery, useItemHistoryQuery, useItemPublishUrlsQuery, useItemPublishedPagesQuery, useItemPublishedToQuery, useItemQuery, useItemTranslationInfoQuery, useItemUsedByQuery, useItemUsesQuery, useItemsInProgressQuery, useItemsQuery, useItemsToPublishQuery, useItemsToUnpublishQuery, useLocalizeItemMutation, useLocalizeItemsMutation, useModal, useMoveItemMutation, useMoveItemsMutation, useNotifications, useOptionalActivitiesExplorer, useOptionalActivitiesExplorerTable, useOptionalBundleEditor, useOptionalCategoryEditor, useOptionalComponentEditor, useOptionalContentExplorer, useOptionalContentExplorerTable, useOptionalContentExplorerTree, useOptionalEditor, useOptionalFolderEditor, useOptionalKeywordEditor, useOptionalPageEditor, useOptionalPublishingQueueExplorer, useOptionalPublishingQueueExplorerTable, useOptionalStructureGroupEditor, usePublicationBlueprintHierarchyQuery, usePublicationsQuery, usePublishItemsMutation, usePublishableTargetTypesQuery, usePublishingQueueExplorer, usePublishingQueueExplorerTable, useRemoveFromBundleMutation, useRestartActivitiesMutation, useRestartActivityMutation, useRevertItemMutation, useRevertItemsMutation, useRollbackItemMutation, useSearchInContainerQuery, useStartActivitiesMutation, useStartActivityMutation, useStartWorkflowMutation, useSystemSearchQuery, useUnlocalizeItemMutation, useUnlocalizeItemsMutation, useUnpublishItemsMutation, useUpdateItemMutation, useUploadMultimediaMutation, useUserGroupsQuery, useUserProfile, useUserProfileQuery, useUsersQuery };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tridion-sites/extensions",
3
- "version": "3.1.0",
3
+ "version": "3.3.0",
4
4
  "description": "Tridion Sites Extensions API",
5
5
  "author": "RWS",
6
6
  "homepage": "https://www.rws.com",
@@ -22,32 +22,32 @@
22
22
  "prepublish": "yarn build"
23
23
  },
24
24
  "peerDependencies": {
25
- "@tridion-sites/models": "2.1.0",
26
- "@tridion-sites/open-api-client": "4.1.0",
25
+ "@tridion-sites/models": "2.3.0",
26
+ "@tridion-sites/open-api-client": "4.2.0",
27
27
  "react": "18.3.1",
28
28
  "react-dom": "18.3.1",
29
29
  "react-is": "18.3.1",
30
- "styled-components": "6.1.13",
31
- "tinymce": "7.3.0"
30
+ "styled-components": "6.1.19",
31
+ "tinymce": "7.9.1"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@rollup/plugin-commonjs": "25.0.8",
35
35
  "@rollup/plugin-json": "6.1.0",
36
- "@rollup/plugin-node-resolve": "15.3.0",
36
+ "@rollup/plugin-node-resolve": "15.3.1",
37
37
  "@rollup/plugin-typescript": "11.1.6",
38
- "@tridion-sites/models": "2.1.0",
39
- "@tridion-sites/open-api-client": "4.1.0",
40
- "@tridion/graphene": "3.4.0",
38
+ "@tridion-sites/models": "2.3.0",
39
+ "@tridion-sites/open-api-client": "4.2.0",
40
+ "@tridion/graphene": "4.0.0",
41
41
  "@types/react": "18.3.11",
42
42
  "react": "18.3.1",
43
43
  "react-dom": "18.3.1",
44
44
  "react-is": "18.3.1",
45
45
  "rimraf": "5.0.10",
46
46
  "rollup": "3.29.5",
47
- "rollup-plugin-delete": "2.1.0",
47
+ "rollup-plugin-delete": "2.2.0",
48
48
  "rollup-plugin-node-externals": "6.1.2",
49
- "tinymce": "7.3.0",
50
- "typescript": "5.5.2",
51
- "typescript-transform-paths": "3.5.1"
49
+ "tinymce": "7.9.1",
50
+ "typescript": "5.9.2",
51
+ "typescript-transform-paths": "3.5.5"
52
52
  }
53
53
  }