@i2analyze/notebook-sdk 1.10.0-dev.2 → 1.10.0-dev.21

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.
@@ -68,10 +68,11 @@ export declare namespace app {
68
68
  */
69
69
  readonly serverComponents: IServerComponents;
70
70
  /**
71
- * Queues a function that performs tracked mutations on the application contents at the next available opportunity,
72
- * and can respond to the changes that the mutations cause.
71
+ * Queues a function that performs tracked mutations on the application contents.
73
72
  *
74
73
  * @remarks
74
+ * The mutations are performed at the next available opportunity, and can respond to the changes that they cause.
75
+ *
75
76
  * A mutation is an operation that can read or modify the contents of the application.
76
77
  * A successful set of _tracked_ mutations is added as a single entry to the undo stack.
77
78
  *
@@ -97,10 +98,11 @@ export declare namespace app {
97
98
  */
98
99
  runTrackedMutations(mutationHandler: TrackedMutationHandler, options?: ITransactionOptions): Promise<IMutationResult>;
99
100
  /**
100
- * Queues a function that performs untracked mutations on the application contents at the next available opportunity,
101
- * and can respond to the changes that the mutations cause.
101
+ * Queues a function that performs untracked mutations on the application contents.
102
102
  *
103
103
  * @remarks
104
+ * The mutations are performed at the next available opportunity, and can respond to the changes that they cause.
105
+ *
104
106
  * A mutation is an operation that can read or modify the contents of the application.
105
107
  * _Untracked_ mutations are not added to the undo stack, and therefore cannot be undone.
106
108
  *
@@ -432,6 +434,8 @@ export declare namespace app {
432
434
  *
433
435
  * @remarks
434
436
  *
437
+ * The effect depends on the chosen option:
438
+ *
435
439
  * `addRecordsToSelection` adds the records from the group to the current selection;
436
440
  * `setSelectionToRecords` sets the selection to the records from the group;
437
441
  * `setSelectionToNewRecords` sets the selection to records from the group that were not already on the chart.
@@ -597,17 +601,71 @@ export declare namespace app {
597
601
  }
598
602
  /**
599
603
  * A set of methods for modifying the appearance of an edge summary.
604
+ *
605
+ * @remarks
606
+ * Apart from {@link app.IEdgeSummaryEditor.setLabel | setLabel} (which is tracked,
607
+ * persisted, and undoable), every method on this editor sets or clears an **untracked**
608
+ * style override on the summary line.
609
+ *
610
+ * Each style setter accepts `undefined` to clear that single attribute and revert it to
611
+ * the value derived from the member edges. Every style setter throws if the edge summary
612
+ * is no longer live.
600
613
  * @i2since 1.6
601
614
  */
602
615
  export interface IEdgeSummaryEditor {
603
616
  /**
604
617
  * Sets or resets the label of the edge summary.
605
618
  *
619
+ * @remarks
620
+ * Tracked: the change is persisted to the server and added to the undo stack.
621
+ *
606
622
  * @param label - The label to set, or `undefined` to reset the label to the default.
607
623
  * @returns The edge summary, with its label set to the specified value.
608
624
  * @i2since 1.6
609
625
  */
610
626
  setLabel(label: string | undefined): this;
627
+ /**
628
+ * Sets or clears the color override on the edge summary line.
629
+ *
630
+ * @param color - The color to set, or `undefined` to clear the override.
631
+ * @returns This editor, for chaining.
632
+ * @throws `Error` if the value is not `undefined` or a CSS color string.
633
+ * @throws `Error` if the edge summary is no longer live.
634
+ * @i2since 1.10
635
+ */
636
+ setColor(color: string | undefined): this;
637
+ /**
638
+ * Sets or clears the width override on the edge summary line.
639
+ *
640
+ * @param width - The width to set (1 to 32), or `undefined` to clear the override.
641
+ * @returns This editor, for chaining.
642
+ * @throws `Error` if the value is not `undefined` or a finite number in the range 1 to 32.
643
+ * @throws `Error` if the edge summary is no longer live.
644
+ * @i2since 1.10
645
+ */
646
+ setWidth(width: number | undefined): this;
647
+ /**
648
+ * Sets or clears the line style override on the edge summary line.
649
+ *
650
+ * @param lineStyle - The line style to set, or `undefined` to clear the override.
651
+ * @returns This editor, for chaining.
652
+ * @throws `Error` if the value is not `undefined` or a recognized
653
+ * {@link visual.LineStyle | LineStyle}.
654
+ * @throws `Error` if the edge summary is no longer live.
655
+ * @i2since 1.10
656
+ */
657
+ setLineStyle(lineStyle: visual.LineStyle | undefined): this;
658
+ /**
659
+ * Sets or clears the direction override on the edge summary line.
660
+ *
661
+ * @param direction - The direction to set, or `undefined` to clear the override.
662
+ * @returns This editor, for chaining.
663
+ * @throws `Error` if the value is not `undefined` or a recognized
664
+ * {@link data.LinkDirection | LinkDirection}.
665
+ * @throws `Error` if the edge summary is no longer live.
666
+ * @i2since 1.10
667
+ */
668
+ setDirection(direction: data.LinkDirection | undefined): this;
611
669
  }
612
670
  /**
613
671
  * A set of methods for modifying common record data.
@@ -728,16 +786,52 @@ export declare namespace app {
728
786
  * @i2since 1.5
729
787
  */
730
788
  setLabel(label: string | undefined): this;
789
+ /**
790
+ * Sets a badge icon in the given slot on the element.
791
+ *
792
+ * @param slot - The slot position (0 to 5). Slots 0 to 2 are trailing; slots 3 to 5 are leading.
793
+ * @param href - The URL of the badge icon image.
794
+ * @param description - A description of the badge, used as alternative text and in tooltips.
795
+ * @returns The element, with the badge icon in the specified slot set to the specified value.
796
+ * @i2since 1.10
797
+ */
798
+ setBadge(slot: visual.BadgeSlot, href: string, description?: string): this;
799
+ /**
800
+ * Clears the badge icon in the given slot on the element.
801
+ *
802
+ * @remarks
803
+ * After this call, {@link visual.IElementStyleBase.getBadge | style.getBadge(slot)}
804
+ * returns `undefined` and {@link visual.IElementStyleBase.badges | style.badges}
805
+ * no longer includes an entry for the slot.
806
+ *
807
+ * @param slot - The slot position (0 to 5).
808
+ * @param href - `undefined` is the only valid argument for clearing the slot.
809
+ * @returns The element, with the badge icon in the specified slot cleared.
810
+ * @i2since 1.10
811
+ */
812
+ setBadge(slot: visual.BadgeSlot, href: undefined): this;
813
+ /**
814
+ * Clears all badge icons on the element.
815
+ *
816
+ * @remarks
817
+ * After this call, {@link visual.IElementStyleBase.badges | style.badges} is
818
+ * empty and {@link visual.IElementStyleBase.getBadge | style.getBadge(slot)}
819
+ * returns `undefined` for every slot.
820
+ *
821
+ * @returns The element, with all badge icons cleared.
822
+ * @i2since 1.10
823
+ */
824
+ clearBadges(): this;
731
825
  }
732
826
  /**
733
827
  * A set of methods for modifying the appearance of a node.
734
828
  * @i2since 1.2
735
829
  */
736
- export interface INodeEditor extends Omit<IElementEditorBase, 'setColor'> {
830
+ export interface INodeEditor extends IElementEditorBase {
737
831
  /**
738
832
  * Sets or resets the color of the element.
739
833
  *
740
- * @param color - The color to set, or `undefined` to reset the color to the theme default, or 'null' to remove the color.
834
+ * @param color - The color to set, or `undefined` to reset the color to the theme default, or `null` to remove the color.
741
835
  * @returns The element, with its color set to the specified value.
742
836
  * @throws `Error` if the specified value is not in a form that CSS supports, such as a hexadecimal number, an `rgb()` value, or a color name.
743
837
  * @i2since 1.2
@@ -1173,6 +1267,36 @@ export declare namespace app {
1173
1267
  * @i2since 1.8
1174
1268
  */
1175
1269
  addNodeGroup(nodes: Iterable<NodeSpecifier>): IPendingNodeGroup;
1270
+ /**
1271
+ * Gets an object with methods for hinting the appearance of a new entity record's node.
1272
+ *
1273
+ * @remarks
1274
+ * The record must be a pending record that was created earlier in the same mutation by a call to
1275
+ * {@link app.ITrackedMutations.addEntityRecord}. The hints are applied to the node as the server
1276
+ * creates it, so that the node does not first appear with its default appearance and then change.
1277
+ * If you do not call this method for a record, the server creates a node with the default
1278
+ * appearance.
1279
+ *
1280
+ * @param record - The pending entity record whose node is to be hinted.
1281
+ * @returns An object with methods for hinting the appearance of the node.
1282
+ * @i2since 1.10
1283
+ */
1284
+ createNode(record: IPendingRecord): INodeEditor;
1285
+ /**
1286
+ * Gets an object with methods for hinting the appearance of a new link record's edge.
1287
+ *
1288
+ * @remarks
1289
+ * The record must be a pending record that was created earlier in the same mutation by a call to
1290
+ * {@link app.ITrackedMutations.addLinkRecord}. The hints are applied to the edge as the server
1291
+ * creates it, so that the edge does not first appear with its default appearance and then change.
1292
+ * If you do not call this method for a record, the server creates an edge with the default
1293
+ * appearance.
1294
+ *
1295
+ * @param record - The pending link record whose edge is to be hinted.
1296
+ * @returns An object with methods for hinting the appearance of the edge.
1297
+ * @i2since 1.10
1298
+ */
1299
+ createEdge(record: IPendingRecord): IEdgeEditor;
1176
1300
  /**
1177
1301
  * Gets an object with methods for editing a record.
1178
1302
  *
@@ -1892,6 +2016,17 @@ export declare namespace chart {
1892
2016
  */
1893
2017
  readonly removed: data.IReadOnlyCollection<data.SourceReferenceId>;
1894
2018
  };
2019
+ /**
2020
+ * Gets a value that indicates whether the direction of a link record changed.
2021
+ *
2022
+ * @remarks
2023
+ * This field is present, with a value of `true`, only for link records whose
2024
+ * {@link records.IChartLinkRecord.linkDirection | linkDirection} differs from its previous value.
2025
+ * The field is absent for entity records, and for link records whose direction is unchanged.
2026
+ *
2027
+ * @i2since 1.10
2028
+ */
2029
+ readonly direction?: true;
1895
2030
  }
1896
2031
  /**
1897
2032
  * A change that has occurred to the data in a chart.
@@ -2141,6 +2276,11 @@ export declare namespace chart {
2141
2276
  * @i2since 1.9
2142
2277
  */
2143
2278
  readonly brushsetchange: BrushSetChangeListener;
2279
+ /**
2280
+ * Gets the type of the callback method that listens for "charthoverchange" events.
2281
+ * @i2since 1.10
2282
+ */
2283
+ readonly charthoverchange: HoverChangeListener;
2144
2284
  }
2145
2285
  /**
2146
2286
  * A mapping of chart event types to their listener options types.
@@ -2172,6 +2312,11 @@ export declare namespace chart {
2172
2312
  * @i2since 1.9
2173
2313
  */
2174
2314
  readonly brushsetchange: app.ISubscriptionOptions;
2315
+ /**
2316
+ * Gets the type of the object that provides control over "charthoverchange" event listeners.
2317
+ * @i2since 1.10
2318
+ */
2319
+ readonly charthoverchange: app.ISubscriptionOptions;
2175
2320
  }
2176
2321
  /**
2177
2322
  * A callback function that handles chart selection events.
@@ -2213,6 +2358,18 @@ export declare namespace chart {
2213
2358
  * @i2since 1.9
2214
2359
  */
2215
2360
  export type BrushSetChangeListener = (brushSet: visual.IBrushSet, applicationContents: app.IApplicationContents) => void;
2361
+ /**
2362
+ * A callback function that handles chart hover change events.
2363
+ *
2364
+ * @remarks
2365
+ * This callback fires when the pointer moves over a different chart element, or when it enters or leaves
2366
+ * all chart elements. It does not fire on every `pointermove` — only when the hovered element changes.
2367
+ *
2368
+ * @param element - The chart element now under the pointer, or `null` if the pointer has left all chart elements.
2369
+ * @param applicationContents - The contents of the application, including the current chart.
2370
+ * @i2since 1.10
2371
+ */
2372
+ export type HoverChangeListener = (element: visual.INode | visual.IEdge | visual.IEdgeSummary | visual.INodeGroup | null, applicationContents: app.IApplicationContents) => void;
2216
2373
  /**
2217
2374
  * Constraints that control a view-fitting operation.
2218
2375
  *
@@ -2264,7 +2421,64 @@ export declare namespace commands {
2264
2421
  * A type for a group of actions, which determines how the group is rendered in the user interface.
2265
2422
  * @i2since 1.9
2266
2423
  */
2267
- export type GroupType = 'expanded' | 'collapsed' | 'command';
2424
+ export type GroupType = 'expanded' | 'collapsed' | 'command' | 'stacked';
2425
+ /**
2426
+ * The state of the keyboard modifier keys at the point at which a command was triggered.
2427
+ * @i2since 1.10
2428
+ */
2429
+ export interface IModifierKeys {
2430
+ /**
2431
+ * Indicates whether the <kbd>Ctrl</kbd> key was held when the command was triggered.
2432
+ * @i2since 1.10
2433
+ */
2434
+ readonly ctrl: boolean;
2435
+ /**
2436
+ * Indicates whether the <kbd>Shift</kbd> key was held when the command was triggered.
2437
+ * @i2since 1.10
2438
+ */
2439
+ readonly shift: boolean;
2440
+ /**
2441
+ * Indicates whether the <kbd>Alt</kbd> key (<kbd>Option</kbd> on macOS) was held when the command was triggered.
2442
+ * @i2since 1.10
2443
+ */
2444
+ readonly alt: boolean;
2445
+ /**
2446
+ * Indicates whether the meta key (<kbd>Command</kbd> on macOS, the Windows key on Windows) was held when the
2447
+ * command was triggered.
2448
+ * @i2since 1.10
2449
+ */
2450
+ readonly meta: boolean;
2451
+ }
2452
+ /**
2453
+ * Context that describes where and how a command was triggered.
2454
+ *
2455
+ * @remarks
2456
+ * This context is mixed into the payload that every command receives. Its members are populated when the
2457
+ * command is triggered from a position on the chart, such as when a pop-up (right-click) menu is opened.
2458
+ * They are `undefined` when the command is triggered without a positional origin, for example from a ribbon
2459
+ * or programmatically.
2460
+ * @i2since 1.10
2461
+ */
2462
+ export interface ICommandInvocationContext {
2463
+ /**
2464
+ * Gets the position on the chart at which the command was triggered, in chart coordinates.
2465
+ *
2466
+ * @remarks
2467
+ * This is `undefined` if the command was triggered without a positional origin. For example, when a
2468
+ * command is invoked from a pop-up (right-click) menu, this is the position on the chart at which the
2469
+ * menu was opened.
2470
+ * @i2since 1.10
2471
+ */
2472
+ readonly triggerPosition?: visual.IPosition;
2473
+ /**
2474
+ * Gets the state of the keyboard modifier keys at the point at which the command was triggered.
2475
+ *
2476
+ * @remarks
2477
+ * This is `undefined` if the command was not triggered by a user input event.
2478
+ * @i2since 1.10
2479
+ */
2480
+ readonly modifierKeys?: IModifierKeys;
2481
+ }
2268
2482
  /**
2269
2483
  * A mapping of command types to their payload types.
2270
2484
  * @i2since 1.0
@@ -2286,6 +2500,20 @@ export declare namespace commands {
2286
2500
  */
2287
2501
  readonly unscoped: void;
2288
2502
  }
2503
+ /**
2504
+ * A mapping of command types to the payload that their {@link commands.ICommandConfig.onExecute}
2505
+ * callback receives.
2506
+ *
2507
+ * @remarks
2508
+ * This is the command's base payload from {@link commands.CommandPayloadMap} combined with the
2509
+ * {@link commands.ICommandInvocationContext} that describes where and how the command was triggered.
2510
+ * Unlike {@link commands.CommandPayloadMap}, which also types the `onPopulate` callback of a dynamic
2511
+ * group, this mapping applies only when a command is executed.
2512
+ * @i2since 1.10
2513
+ */
2514
+ export type CommandExecutePayloadMap = {
2515
+ readonly [TCommandType in CommandType]: CommandPayloadMap[TCommandType] extends void ? ICommandInvocationContext : CommandPayloadMap[TCommandType] & ICommandInvocationContext;
2516
+ };
2289
2517
  /**
2290
2518
  * A mapping of command types to the event types that are available to a surfaced command.
2291
2519
  * @i2since 1.0
@@ -2381,7 +2609,10 @@ export declare namespace commands {
2381
2609
  */
2382
2610
  readonly icon: IIcon;
2383
2611
  /**
2384
- * Gets the identifier of the command, which must be a GUID. GUIDs are case-insensitive.
2612
+ * Gets the identifier of the command. This must be a non-empty string.
2613
+ *
2614
+ * @remarks
2615
+ * Using a GUID, or another globally-unique value, is recommended to avoid collisions with other plug-ins.
2385
2616
  * @i2since 1.0
2386
2617
  */
2387
2618
  readonly id: CommandId;
@@ -2409,10 +2640,16 @@ export declare namespace commands {
2409
2640
  /**
2410
2641
  * Runs when the command is executed.
2411
2642
  *
2412
- * @param payload - The payload that i2 Notebook provides to the command.
2643
+ * @remarks
2644
+ * For "records" and "application" commands, the single payload argument combines the base payload
2645
+ * for the command type with the {@link commands.ICommandInvocationContext} that describes where and
2646
+ * how the command was triggered. For "unscoped" commands the invocation context is the only
2647
+ * argument and is optional, so the callback can be defined and invoked with no arguments.
2648
+ * @param args - The command payload for "records" and "application" commands, or the optional
2649
+ * invocation context for "unscoped" commands, as determined by the command type.
2413
2650
  * @i2since 1.0
2414
2651
  */
2415
- onExecute(payload: CommandPayloadMap[TCommandType]): void;
2652
+ onExecute(...args: TCommandType extends 'unscoped' ? [invocationContext?: CommandExecutePayloadMap['unscoped']] : [payload: CommandExecutePayloadMap[TCommandType]]): void;
2416
2653
  /**
2417
2654
  * Runs when an action derived from the command is surfaced, enabling the command to configure the action in response to events.
2418
2655
  *
@@ -2503,11 +2740,29 @@ export declare namespace commands {
2503
2740
  * Adds the specified group of actions to the user interface.
2504
2741
  *
2505
2742
  * @param group - The group to add.
2743
+ * @typeParam TCommandType - The type of the command-context for the group, which determines what event API is passed to its {@link commands.IGroupConfigBase.onSurface}.
2506
2744
  * @returns An object that you can use to add actions or a further group to the new group.
2507
2745
  * @throws `Error` if the `group` was not valid, or if a group with the same {@link commands.GroupId} was already present.
2508
2746
  * @i2since 1.0
2509
2747
  */
2510
- addGroup(group: IGroup): IActionArea<undefined>;
2748
+ addGroup<TCommandType extends CommandType = 'unscoped'>(group: IGroup<TCommandType>): IActionArea<undefined>;
2749
+ /**
2750
+ * Adds a dynamic group whose commands are created on demand each time the group is opened.
2751
+ *
2752
+ * @remarks
2753
+ * Unlike {@link commands.IActionArea.addGroup}, the commands in a dynamic group are not created during plug-in
2754
+ * initialization. Instead, the {@link commands.IDynamicGroupConfigBase.onPopulate} callback is called each time the
2755
+ * group is opened, allowing you to create commands that reflect the current application state.
2756
+ *
2757
+ * A dynamic group renders as a popup, never inline: by default a collapsed dropdown/submenu, or — when
2758
+ * `config.type` is `'command'` with a `primaryCommand` — a split button whose dropdown is populated on open.
2759
+ *
2760
+ * @param config - The configuration for the dynamic group, including the `onPopulate` callback.
2761
+ * @typeParam TCommandType - The type of the command-context for the group, which determines what payload is passed to `onPopulate` and what event API is passed to `onSurface`.
2762
+ * @throws `Error` if `config.id` is not a valid {@link commands.GroupId | GroupId}.
2763
+ * @i2since 1.10
2764
+ */
2765
+ addDynamicGroup<TCommandType extends CommandType = CommandType>(config: IDynamicGroupConfig<TCommandType>): void;
2511
2766
  /**
2512
2767
  * Adds the specified group of actions to the user interface, or gets an existing group with the same identifier.
2513
2768
  *
@@ -2517,11 +2772,12 @@ export declare namespace commands {
2517
2772
  * plug-ins that want to use the same group, and these plug-ins can be deployed independently, then you should use this method.
2518
2773
  *
2519
2774
  * @param group - The group to add or get.
2775
+ * @typeParam TCommandType - The type of the command-context for the group, which determines what event API is passed to its {@link commands.IGroupConfigBase.onSurface}.
2520
2776
  * @returns An object that you can use to add actions or a further group to the new or existing group.
2521
2777
  * @throws `Error` if the `group` was not valid, or if it was added before by the same plug-in.
2522
2778
  * @i2since 1.0
2523
2779
  */
2524
- addOrGetGroup(group: IGroup): IActionArea<undefined>;
2780
+ addOrGetGroup<TCommandType extends CommandType = 'unscoped'>(group: IGroup<TCommandType>): IActionArea<undefined>;
2525
2781
  /**
2526
2782
  * Locates the area of the user interface that appears immediately after a particular action or group of actions.
2527
2783
  *
@@ -2588,6 +2844,24 @@ export declare namespace commands {
2588
2844
  * @i2since 1.0
2589
2845
  */
2590
2846
  surfaceCommands(...commandsOrCommandIds: (ICommand | CommandId)[]): void;
2847
+ /**
2848
+ * Surfaces a detached group, created with {@link commands.ICommandApi.createGroup}, and its contents into the user interface.
2849
+ *
2850
+ * @remarks
2851
+ * Unlike {@link commands.IActionArea.addGroup}, which builds a group in place, `surfaceGroup` adds a group template
2852
+ * that you built once and can reuse. The group and its descendants are added at this area's location — use
2853
+ * {@link commands.IActionArea.(before:1)} or {@link commands.IActionArea.(after:1)} to position it, just as you
2854
+ * would when surfacing commands.
2855
+ *
2856
+ * The template's group and command identifiers are used as they are, so you can surface the same template into
2857
+ * different areas. Surfacing a template more than once into the same area throws, because the identifiers collide.
2858
+ *
2859
+ * @param group - The detached group template to surface.
2860
+ * @throws `Error` if `group` was not a group template created by {@link commands.ICommandApi.createGroup},
2861
+ * or if a command or group in the template was already surfaced in the area.
2862
+ * @i2since 1.10
2863
+ */
2864
+ surfaceGroup(group: IGroupTemplate): void;
2591
2865
  /**
2592
2866
  * Gets the system groups for the action area, which you can use to specify relative locations for your actions and groups.
2593
2867
  * @i2since 1.0
@@ -2679,7 +2953,10 @@ export declare namespace commands {
2679
2953
  */
2680
2954
  export interface IGroupBase {
2681
2955
  /**
2682
- * Gets the identifier of the group, which should be a GUID. GUIDs are case-insensitive.
2956
+ * Gets the identifier of the group. This must be a non-empty string.
2957
+ *
2958
+ * @remarks
2959
+ * Using a GUID, or another globally-unique value, is recommended to avoid collisions with other plug-ins.
2683
2960
  * @i2since 1.0
2684
2961
  */
2685
2962
  readonly id: GroupId;
@@ -2687,29 +2964,95 @@ export declare namespace commands {
2687
2964
  * Indicates whether the group is initially expanded (`false`) or collapsed (`true`) in the user interface.
2688
2965
  *
2689
2966
  * @remarks
2690
- * This is deprecated in favour of the more explicit {@link commands.IGroup."type"} property.
2967
+ * This is deprecated in favour of the more explicit {@link commands.IStandardGroup."type"} property.
2691
2968
  * When migrating, use `type: 'collapsed'` instead of `isCollapsed: true`, and `type: 'expanded'` instead of
2692
2969
  * `isCollapsed: false` or omitting the property.
2693
- * @deprecated Deprecated since version 1.9. Use {@link commands.IGroup."type"} instead.
2970
+ * @deprecated Deprecated since version 1.9. Use {@link commands.IStandardGroup."type"} instead.
2694
2971
  * @i2since 1.5
2695
2972
  */
2696
2973
  readonly isCollapsed?: boolean;
2697
2974
  }
2698
2975
  /**
2699
- * A group of actions in either the i2 Notebook application ribbon or a popup menu.
2976
+ * Configuration shared by the {@link commands.IGroup} variants.
2977
+ *
2978
+ * @remarks
2979
+ * The fields common to the non-split {@link commands.IStandardGroup} and the split-button
2980
+ * {@link commands.ICommandGroup}.
2981
+ * @typeParam TCommandType - The type of the command-context for the group, which determines what event API is passed to {@link commands.IGroupConfigBase.onSurface}. Defaults to `'unscoped'`.
2700
2982
  * @i2since 1.0
2701
2983
  */
2702
- export interface IGroup extends IGroupBase {
2984
+ export interface IGroupConfigBase<TCommandType extends CommandType = 'unscoped'> extends IGroupBase {
2703
2985
  /**
2704
2986
  * Gets the icon of the group, which is displayed if the group is collapsed.
2705
2987
  * @i2since 1.0
2706
2988
  */
2707
2989
  readonly icon?: IIcon;
2708
2990
  /**
2709
- * Gets the label of the group, which is displayed to users unless the group is both expanded and in a popup menu.
2991
+ * Gets the label of the group.
2992
+ *
2993
+ * @remarks
2994
+ * In an application ribbon the label is shown on the group's button (if the group is collapsed or
2995
+ * stacked) or omitted (if the group is expanded inline).
2996
+ *
2997
+ * In popup menus, a group with a label produces a non-interactive section-header separator above
2998
+ * its children. Groups without a label render their children directly with no separator. By
2999
+ * default groups have no label; set one to opt into this visual grouping cue.
2710
3000
  * @i2since 1.0
2711
3001
  */
2712
3002
  readonly label?: string;
3003
+ /**
3004
+ * Gets the popup style for the group's trigger button.
3005
+ *
3006
+ * @remarks
3007
+ * Only applies to `'collapsed'` and `'command'` group types; ignored for `'expanded'` and `'stacked'`.
3008
+ *
3009
+ * When set to `'ribbon'`, the group opens a floating ribbon-style popup panel that renders its
3010
+ * children as ribbon sections rather than a standard dropdown menu. This is equivalent to how a
3011
+ * minimized ribbon tab expands as a popup.
3012
+ *
3013
+ * If omitted, the group uses a standard dropdown menu.
3014
+ * @i2since 1.10
3015
+ */
3016
+ readonly popoutStyle?: 'ribbon';
3017
+ /**
3018
+ * Gets the command-context type, which determines what event API is passed to {@link commands.IGroupConfigBase.onSurface}.
3019
+ *
3020
+ * @remarks
3021
+ * Mirrors {@link commands.IDynamicGroupConfigBase.context} (and, by analogy, {@link commands.ICommandConfig."type"}).
3022
+ * Defaults to `'unscoped'`, which means {@link commands.IGroupConfigBase.onSurface} receives no event API.
3023
+ * @i2since 1.10
3024
+ */
3025
+ readonly context?: TCommandType;
3026
+ /**
3027
+ * Runs when an action derived from the group is surfaced, enabling the group to configure the action in response to events.
3028
+ *
3029
+ * @remarks
3030
+ * Mirrors {@link commands.ICommandConfig.onSurface} but applies to groups: use the supplied
3031
+ * {@link commands.IGroupAction} to change the group's label, icon, or enabled/hidden state at any
3032
+ * time during its surfaced lifetime. The signal aborts when the group is removed from the user
3033
+ * interface; the optional returned cleanup function runs at the same time.
3034
+ *
3035
+ * If there is no implementation of `onSurface()`, the group renders with its static configuration
3036
+ * and remains enabled.
3037
+ *
3038
+ * @param groupAction - The group action being surfaced.
3039
+ * @param eventApi - The events that the group can subscribe to, keyed by the group's `context`.
3040
+ * @param signal - A signal that the application uses to tell the group that it is removing it from the user interface.
3041
+ *
3042
+ * @returns A function that the application calls when it removes the group from the user interface.
3043
+ * In its implementation, the group must unsubscribe from any events that it has subscribed to.
3044
+ * @i2since 1.10
3045
+ */
3046
+ onSurface?(groupAction: IGroupAction, eventApi: CommandEventsMap[TCommandType], signal: AbortSignal): void | (() => void);
3047
+ }
3048
+ /**
3049
+ * A non-split group of actions: rendered inline (`'expanded'`), as a single dropdown button
3050
+ * (`'collapsed'`), or as a stacked column (`'stacked'`).
3051
+ *
3052
+ * @typeParam TCommandType - The type of the command-context for the group. Defaults to `'unscoped'`.
3053
+ * @i2since 1.0
3054
+ */
3055
+ export interface IStandardGroup<TCommandType extends CommandType = 'unscoped'> extends IGroupConfigBase<TCommandType> {
2713
3056
  /**
2714
3057
  * Gets the render type of the group.
2715
3058
  *
@@ -2717,12 +3060,73 @@ export declare namespace commands {
2717
3060
  * Use this property to explicitly control how the group is presented in the user interface. The options are:
2718
3061
  * - `'expanded'` - shows all commands inline (default)
2719
3062
  * - `'collapsed'` - shows the group as a single icon/label button that opens a dropdown
2720
- * - `'command'` - indicates the group exposes a primary action (the first surfaced command) while also presenting a menu of related actions; user may render this as a split button in a ribbon, or as an actionable menu entry with a submenu in popup menus.
3063
+ * - `'stacked'` - renders the group's children as a vertical column of small (icon + label) buttons that expand inline in the ribbon. A stacked group behaves like an `'expanded'` group but with a compact visual layout; it can collapse under overflow pressure. In popup menus the children render as normal menu items below the group's section-header label.
2721
3064
  *
3065
+ * For a split button that exposes a primary action, use {@link commands.ICommandGroup} (`type: 'command'`).
2722
3066
  * If `type` is specified it takes precedence over the deprecated {@link commands.IGroupBase.isCollapsed} boolean.
2723
3067
  * @i2since 1.9
2724
3068
  */
2725
- readonly type?: GroupType;
3069
+ readonly type?: 'expanded' | 'collapsed' | 'stacked';
3070
+ /**
3071
+ * Gets the primary action, which is not applicable to a non-split group.
3072
+ *
3073
+ * @remarks
3074
+ * Use {@link commands.ICommandGroup} (`type: 'command'`) to specify a primary action.
3075
+ * @i2since 1.10
3076
+ */
3077
+ readonly primaryCommand?: never;
3078
+ }
3079
+ /**
3080
+ * A split-button group.
3081
+ *
3082
+ * @remarks
3083
+ * Exposes a {@link commands.ICommandGroup.primaryCommand | primary action} alongside a menu of related
3084
+ * actions. In a ribbon this renders as a split button; in popup menus, as an actionable menu entry with
3085
+ * a submenu.
3086
+ * @typeParam TCommandType - The type of the command-context for the group. Defaults to `'unscoped'`.
3087
+ * @i2since 1.10
3088
+ */
3089
+ export interface ICommandGroup<TCommandType extends CommandType = 'unscoped'> extends IGroupConfigBase<TCommandType> {
3090
+ /**
3091
+ * Gets the render type, always `'command'` for a split-button group.
3092
+ * @i2since 1.9
3093
+ */
3094
+ readonly type: 'command';
3095
+ /**
3096
+ * Gets the group's primary (face) action, as a command or command identifier.
3097
+ *
3098
+ * @remarks
3099
+ * The primary action is shown on the face of the split button (in a ribbon) or as the actionable
3100
+ * part of the menu entry (in a popup menu). It is *not* part of the group's dropdown list — the
3101
+ * dropdown is formed from the group's surfaced child commands. To repeat the primary in the
3102
+ * dropdown, surface it as a child as well.
3103
+ * @i2since 1.10
3104
+ */
3105
+ readonly primaryCommand: ICommand | CommandId;
3106
+ }
3107
+ /**
3108
+ * A group of actions in either the i2 Notebook application ribbon or a popup menu.
3109
+ *
3110
+ * @remarks
3111
+ * Either a non-split {@link commands.IStandardGroup} (inline, collapsed, or stacked) or a split-button
3112
+ * {@link commands.ICommandGroup} (`type: 'command'` with a `primaryCommand`). The `type` discriminates
3113
+ * between them, so `primaryCommand` is required exactly when `type` is `'command'`.
3114
+ *
3115
+ * @typeParam TCommandType - The type of the command-context for the group, which determines what event API is passed to its `onSurface`. Defaults to `'unscoped'`.
3116
+ * @i2since 1.0
3117
+ */
3118
+ export type IGroup<TCommandType extends CommandType = 'unscoped'> = IStandardGroup<TCommandType> | ICommandGroup<TCommandType>;
3119
+ /**
3120
+ * A detached group of actions that you build once and surface into one or more areas.
3121
+ *
3122
+ * @remarks
3123
+ * Create a template with {@link commands.ICommandApi.createGroup}, build its contents using the inherited
3124
+ * {@link commands.IActionArea} methods, then add it to areas with {@link commands.IActionArea.surfaceGroup}.
3125
+ * Because the template carries its own group and command identifiers, a single template can be surfaced into
3126
+ * several areas without rebuilding it. Nothing appears in the user interface until the template is surfaced.
3127
+ * @i2since 1.10
3128
+ */
3129
+ export interface IGroupTemplate extends IActionArea<undefined> {
2726
3130
  }
2727
3131
  /**
2728
3132
  * A group of actions in a popup menu that do not have a label or an icon.
@@ -2731,6 +3135,255 @@ export declare namespace commands {
2731
3135
  */
2732
3136
  export interface IMenuGroup extends IGroupBase {
2733
3137
  }
3138
+ /**
3139
+ * Configuration shared by the {@link commands.IDynamicGroupConfig} variants.
3140
+ *
3141
+ * @remarks
3142
+ * The fields common to the collapsed {@link commands.IStandardDynamicGroup} and the split-button
3143
+ * {@link commands.ICommandDynamicGroup}.
3144
+ * A dynamic group solves the limitation that commands can only be created during plug-in initialization.
3145
+ * Instead, the {@link commands.IDynamicGroupConfigBase.onPopulate} callback is called each time the group is
3146
+ * opened, allowing commands to be created based on the current application state. The group's
3147
+ * popup-button state (label, icon, enabled, hidden) can be driven separately by an optional
3148
+ * {@link commands.IDynamicGroupConfigBase.onSurface} callback that runs once when the group is
3149
+ * surfaced on a host.
3150
+ *
3151
+ * @typeParam TCommandType - The type of the command-context for the group, which determines what payload is passed to {@link commands.IDynamicGroupConfigBase.onPopulate} and what event API is passed to {@link commands.IDynamicGroupConfigBase.onSurface}.
3152
+ * @i2since 1.10
3153
+ */
3154
+ export interface IDynamicGroupConfigBase<TCommandType extends CommandType = CommandType> {
3155
+ /**
3156
+ * Gets the identifier of the group. This must be a non-empty string.
3157
+ *
3158
+ * @remarks
3159
+ * Using a GUID, or another globally-unique value, is recommended to avoid collisions with other plug-ins.
3160
+ * @i2since 1.10
3161
+ */
3162
+ readonly id: GroupId;
3163
+ /**
3164
+ * Gets the label of the group, which is displayed as the button/menu-entry title.
3165
+ * @i2since 1.10
3166
+ */
3167
+ readonly label: string;
3168
+ /**
3169
+ * Gets the icon of the group.
3170
+ * @i2since 1.10
3171
+ */
3172
+ readonly icon?: IIcon;
3173
+ /**
3174
+ * Gets the command-context type for the group.
3175
+ *
3176
+ * @remarks
3177
+ * Determines what payload is passed to {@link commands.IDynamicGroupConfigBase.onPopulate} and what
3178
+ * event API is passed to {@link commands.IDynamicGroupConfigBase.onSurface}.
3179
+ * @i2since 1.10
3180
+ */
3181
+ readonly context: TCommandType;
3182
+ /**
3183
+ * Populates the group's commands each time the group is opened.
3184
+ *
3185
+ * @remarks
3186
+ * May be synchronous or asynchronous. A synchronous callback creates and surfaces every
3187
+ * command before it returns; the host then renders the populated group. An asynchronous
3188
+ * callback returns a `Promise` that resolves once the contents are ready: the host opens the
3189
+ * group immediately with skeleton placeholder rows in place of the real items, and swaps them
3190
+ * in atomically when the promise resolves. If the group closes before the promise resolves
3191
+ * the `signal` is aborted and any surfaced commands are discarded.
3192
+ *
3193
+ * @param commandArea - A scoped area for creating and surfacing commands. Only commands created here are visible in this group.
3194
+ * @param context - The context based on the group's `context` field: `undefined` for `'unscoped'`, {@link commands.IRecordsContext} for `'records'`, the application object for `'application'`.
3195
+ * @param signal - An AbortSignal that is aborted when the group closes. Use it to cancel any async work started in this callback.
3196
+ * @returns An optional cleanup function that is called when the group closes, before the signal is aborted. Async callbacks may resolve with the cleanup function or with `undefined`.
3197
+ * @i2since 1.10
3198
+ */
3199
+ onPopulate(commandArea: IDynamicActionArea, context: CommandPayloadMap[TCommandType], signal: AbortSignal): void | (() => void) | Promise<void | (() => void)>;
3200
+ /**
3201
+ * Runs when the dynamic group's popup button is surfaced, enabling its state to be driven from events.
3202
+ *
3203
+ * @remarks
3204
+ * The lifetime of this callback is the dynamic group's *button* — separate from the per-open
3205
+ * lifecycle of {@link commands.IDynamicGroupConfigBase.onPopulate}, which populates the popup's
3206
+ * contents. Use this callback to react to long-lived application state; populate the popup's
3207
+ * contents in `onPopulate`.
3208
+ *
3209
+ * If there is no implementation of `onSurface()`, the popup button renders with its static
3210
+ * configuration and remains enabled.
3211
+ *
3212
+ * @param groupAction - The group action being surfaced.
3213
+ * @param eventApi - The events that the group can subscribe to, keyed by the group's `context`.
3214
+ * @param signal - A signal that the application uses to tell the group that it is removing the popup button from the user interface.
3215
+ *
3216
+ * @returns A function that the application calls when it removes the popup button from the user interface.
3217
+ * In its implementation, the group must unsubscribe from any events that it has subscribed to.
3218
+ * @i2since 1.10
3219
+ */
3220
+ onSurface?(groupAction: IGroupAction, eventApi: CommandEventsMap[TCommandType], signal: AbortSignal): void | (() => void);
3221
+ }
3222
+ /**
3223
+ * A dynamic group that renders as a collapsed dropdown/submenu, populated on open.
3224
+ *
3225
+ * @typeParam TCommandType - The type of the command-context for the group.
3226
+ * @i2since 1.10
3227
+ */
3228
+ export interface IStandardDynamicGroup<TCommandType extends CommandType = CommandType> extends IDynamicGroupConfigBase<TCommandType> {
3229
+ /**
3230
+ * Gets the render type, `'collapsed'` (the default) for a dropdown/submenu.
3231
+ * @i2since 1.10
3232
+ */
3233
+ readonly type?: 'collapsed';
3234
+ /**
3235
+ * Gets the primary action, which is not applicable to a collapsed dynamic group.
3236
+ *
3237
+ * @remarks
3238
+ * Use {@link commands.ICommandDynamicGroup} (`type: 'command'`) to specify a primary action.
3239
+ * @i2since 1.10
3240
+ */
3241
+ readonly primaryCommand?: never;
3242
+ }
3243
+ /**
3244
+ * A dynamic split-button group: a static {@link commands.ICommandDynamicGroup.primaryCommand | primary action}
3245
+ * (the face) whose dropdown is populated on open.
3246
+ *
3247
+ * @typeParam TCommandType - The type of the command-context for the group.
3248
+ * @i2since 1.10
3249
+ */
3250
+ export interface ICommandDynamicGroup<TCommandType extends CommandType = CommandType> extends IDynamicGroupConfigBase<TCommandType> {
3251
+ /**
3252
+ * Gets the render type, always `'command'` for a split-button dynamic group.
3253
+ * @i2since 1.10
3254
+ */
3255
+ readonly type: 'command';
3256
+ /**
3257
+ * Gets the primary (face) action of the split button, as a command or command identifier.
3258
+ *
3259
+ * @remarks
3260
+ * It is *not* part of the dropdown, which is populated by {@link commands.IDynamicGroupConfigBase.onPopulate}.
3261
+ * Because the face renders before the group is ever opened, the primary command must already exist —
3262
+ * create it during plug-in initialization, not inside `onPopulate`.
3263
+ * @i2since 1.10
3264
+ */
3265
+ readonly primaryCommand: ICommand | CommandId;
3266
+ }
3267
+ /**
3268
+ * Configuration for a dynamic group whose commands are created on demand when the group is opened.
3269
+ *
3270
+ * @remarks
3271
+ * A dynamic group renders as a popup, never inline: either a collapsed {@link commands.IStandardDynamicGroup}
3272
+ * dropdown/submenu, or a split-button {@link commands.ICommandDynamicGroup} (`type: 'command'` with a
3273
+ * `primaryCommand`). The `type` discriminates between them, so `primaryCommand` is required exactly when
3274
+ * `type` is `'command'`.
3275
+ *
3276
+ * @typeParam TCommandType - The type of the command-context for the group, which determines what payload is passed to `onPopulate` and what event API is passed to `onSurface`.
3277
+ * @i2since 1.10
3278
+ */
3279
+ export type IDynamicGroupConfig<TCommandType extends CommandType = CommandType> = IStandardDynamicGroup<TCommandType> | ICommandDynamicGroup<TCommandType>;
3280
+ /**
3281
+ * A scoped area for creating and surfacing commands within a {@link commands.IDynamicGroupConfigBase.onPopulate} callback.
3282
+ *
3283
+ * @remarks
3284
+ * Methods on this interface work like their equivalents on {@link commands.IActionArea}, but are scoped to the
3285
+ * current populate session. Commands created here exist only while the group is open and are automatically
3286
+ * unregistered when it closes.
3287
+ *
3288
+ * `getGroup` is restricted to groups created within the same `onPopulate` call — it throws if you pass an
3289
+ * external group identifier.
3290
+ * @i2since 1.10
3291
+ */
3292
+ export interface IDynamicActionArea extends Pick<ICommandApi, 'createCommand'> {
3293
+ /**
3294
+ * Returns an area positioned immediately before the specified action or group.
3295
+ * @param idOrCommand - The command, command identifier, or group identifier to use as a reference.
3296
+ * @returns A scoped area positioned before the specified item.
3297
+ * @i2since 1.10
3298
+ */
3299
+ before(idOrCommand: CommandId | GroupId | ICommand): IDynamicActionArea;
3300
+ /**
3301
+ * Returns an area positioned immediately after the specified action or group.
3302
+ * @param idOrCommand - The command, command identifier, or group identifier to use as a reference.
3303
+ * @returns A scoped area positioned after the specified item.
3304
+ * @i2since 1.10
3305
+ */
3306
+ after(idOrCommand: CommandId | GroupId | ICommand): IDynamicActionArea;
3307
+ /**
3308
+ * Returns an area scoped to a group created during this `onPopulate` call.
3309
+ *
3310
+ * @param id - The identifier of a group created in this populate session.
3311
+ * @returns A scoped area for the contents of the group.
3312
+ * @throws `Error` if `id` refers to a group that was not created in this populate session.
3313
+ * @i2since 1.10
3314
+ */
3315
+ getGroup(id: GroupId): IDynamicActionArea;
3316
+ /**
3317
+ * Adds a new group.
3318
+ * @param group - The group configuration.
3319
+ * @typeParam TCommandType - The type of the command-context for the group, which determines what event API is passed to its {@link commands.IGroupConfigBase.onSurface}.
3320
+ * @returns A scoped area for the contents of the new group.
3321
+ * @i2since 1.10
3322
+ */
3323
+ addGroup<TCommandType extends CommandType = 'unscoped'>(group: IGroup<TCommandType>): IDynamicActionArea;
3324
+ /**
3325
+ * Adds a new group, or returns the existing one if it was already added during this `onPopulate` call.
3326
+ * @param group - The group configuration.
3327
+ * @typeParam TCommandType - The type of the command-context for the group, which determines what event API is passed to its {@link commands.IGroupConfigBase.onSurface}.
3328
+ * @returns A scoped area for the contents of the new or existing group.
3329
+ * @i2since 1.10
3330
+ */
3331
+ addOrGetGroup<TCommandType extends CommandType = 'unscoped'>(group: IGroup<TCommandType>): IDynamicActionArea;
3332
+ /**
3333
+ * Surfaces the specified commands in the group.
3334
+ * @param commandsOrCommandIds - The commands or command identifiers to surface.
3335
+ * @i2since 1.10
3336
+ */
3337
+ surfaceCommands(...commandsOrCommandIds: (ICommand | CommandId)[]): void;
3338
+ }
3339
+ /**
3340
+ * A representation of a group of commands in the user interface. A group action is created when a group is surfaced.
3341
+ *
3342
+ * @remarks
3343
+ * Group actions mirror {@link commands.IAction} for individual commands. They are passed to
3344
+ * {@link commands.IGroupConfigBase.onSurface} (for static groups) and {@link commands.IDynamicGroupConfigBase.onSurface}
3345
+ * (for the popup button of a dynamic group), allowing the group's label, icon, and enabled/hidden
3346
+ * state to be driven from application state.
3347
+ *
3348
+ * When a group is disabled and expanded, its immediate children are rendered as disabled too —
3349
+ * disabling the group is therefore a render-time cascade, not a mutation of child state.
3350
+ * @i2since 1.10
3351
+ */
3352
+ export interface IGroupAction {
3353
+ /**
3354
+ * Sets the label of the group. For example, "Layouts".
3355
+ *
3356
+ * @param value - A label for the group.
3357
+ * @i2since 1.10
3358
+ */
3359
+ setName(value: string): void;
3360
+ /**
3361
+ * Sets whether the group is enabled — that is, whether it is available for users to interact with.
3362
+ *
3363
+ * @remarks
3364
+ * When disabled and expanded, the group's immediate child actions render as disabled; when
3365
+ * disabled and collapsed (or a dynamic group), the popup trigger cannot be opened.
3366
+ *
3367
+ * @param value - `true` to enable the group; `false` to disable it.
3368
+ * @i2since 1.10
3369
+ */
3370
+ setEnabled(value: boolean): void;
3371
+ /**
3372
+ * Sets whether the group is hidden — that is, whether it is visible to users at all.
3373
+ * Hidden groups do not render their container, label, or children.
3374
+ *
3375
+ * @param value - `true` to hide the group; `false` to show it.
3376
+ * @i2since 1.10
3377
+ */
3378
+ setHidden(value: boolean): void;
3379
+ /**
3380
+ * Sets the icon for the group.
3381
+ *
3382
+ * @param value - An icon for the group.
3383
+ * @i2since 1.10
3384
+ */
3385
+ setIcon(value: IIcon): void;
3386
+ }
2734
3387
  /**
2735
3388
  * A representation of a command in the user interface. An action is created when a command is surfaced.
2736
3389
  * @i2since 1.0
@@ -2829,6 +3482,22 @@ export declare namespace commands {
2829
3482
  * @i2since 1.0
2830
3483
  */
2831
3484
  createToolViewToggleCommand(config: ICommandConfigBase, toolview: toolview.IToolView): ICommand;
3485
+ /**
3486
+ * Creates a detached group that you build once and surface into one or more areas with {@link commands.IActionArea.surfaceGroup}.
3487
+ *
3488
+ * @remarks
3489
+ * The returned {@link commands.IGroupTemplate} exposes the same methods as an {@link commands.IActionArea}, so you
3490
+ * build its contents — commands and nested groups — exactly as you would in place. Nothing is surfaced into the user
3491
+ * interface until you pass the template to {@link commands.IActionArea.surfaceGroup}, which you can do for several
3492
+ * areas to avoid rebuilding the same group structure in each one.
3493
+ *
3494
+ * @param group - The root group to create.
3495
+ * @typeParam TCommandType - The type of the command-context for the group, which determines what event API is passed to its {@link commands.IGroupConfigBase.onSurface}.
3496
+ * @returns A detached group template that you can build on and surface.
3497
+ * @throws `Error` if the `group` was not valid.
3498
+ * @i2since 1.10
3499
+ */
3500
+ createGroup<TCommandType extends CommandType = 'unscoped'>(group: IGroup<TCommandType>): IGroupTemplate;
2832
3501
  /**
2833
3502
  * Unregisters and removes a command and all its actions from the application.
2834
3503
  *
@@ -2945,7 +3614,10 @@ export declare namespace commands {
2945
3614
  */
2946
3615
  export interface IRibbonTabConfig {
2947
3616
  /**
2948
- * Gets the identifier of the tab, which must be a GUID. GUIDs are case-insensitive.
3617
+ * Gets the identifier of the tab. This must be a non-empty string.
3618
+ *
3619
+ * @remarks
3620
+ * Using a GUID, or another globally-unique value, is recommended to avoid collisions with other plug-ins.
2949
3621
  * @i2since 1.6
2950
3622
  */
2951
3623
  readonly id: RibbonTabId;
@@ -3162,9 +3834,18 @@ export declare namespace commands {
3162
3834
  * @i2since 1.8
3163
3835
  */
3164
3836
  readonly resetGroupLabel: CommandId;
3837
+ /**
3838
+ * Gets the identifier of the system command that renames the current chart.
3839
+ * @i2since 1.10
3840
+ */
3841
+ readonly renameChart: CommandId;
3165
3842
  /**
3166
3843
  * Gets the identifier of the system command that saves the current chart.
3167
3844
  * @i2since 1.1
3845
+ * @deprecated Deprecated since version 1.10. The system now saves charts automatically, so there is
3846
+ * no longer a manual save command. Use {@link commands.ISystemCommands.renameChart | renameChart}
3847
+ * to rename a chart, or {@link commands.ISystemCommands.shareChart | shareChart} to manage sharing
3848
+ * and access control.
3168
3849
  */
3169
3850
  readonly saveChart: CommandId;
3170
3851
  /**
@@ -3189,6 +3870,11 @@ export declare namespace commands {
3189
3870
  * @i2since 1.8
3190
3871
  */
3191
3872
  readonly selectUnitedItems: CommandId;
3873
+ /**
3874
+ * Gets the identifier of the system command that manages sharing and access control for the current chart.
3875
+ * @i2since 1.10
3876
+ */
3877
+ readonly shareChart: CommandId;
3192
3878
  /**
3193
3879
  * Gets the identifier of the system command that allows users to share records with each other.
3194
3880
  * @i2since 1.3
@@ -3214,6 +3900,11 @@ export declare namespace commands {
3214
3900
  * @i2since 1.0
3215
3901
  */
3216
3902
  readonly toggleExternalSearches: CommandId;
3903
+ /**
3904
+ * Gets the identifier of the system command that toggles the Find Connecting Networks UI.
3905
+ * @i2since 1.10
3906
+ */
3907
+ readonly toggleFindConnectingNetworks: CommandId;
3217
3908
  /**
3218
3909
  * Gets the identifier of the system command that toggles the lists UI.
3219
3910
  * @i2since 1.3
@@ -3244,6 +3935,11 @@ export declare namespace commands {
3244
3935
  * @i2since 1.0
3245
3936
  */
3246
3937
  readonly toggleRecordInspector: CommandId;
3938
+ /**
3939
+ * Gets the identifier of the system command that toggles the Social Network Analysis UI.
3940
+ * @i2since 1.10
3941
+ */
3942
+ readonly toggleSocialNetworkAnalysis: CommandId;
3247
3943
  /**
3248
3944
  * Gets the identifier of the system command that toggles the style UI.
3249
3945
  * @i2since 1.2
@@ -5035,6 +5731,24 @@ export declare namespace schema {
5035
5731
  * @i2since 1.0
5036
5732
  */
5037
5733
  readonly itemTypes: data.IKeyedReadOnlyCollection<ChartItemTypeIdentifier, IChartItemType>;
5734
+ /**
5735
+ * Gets all the core entity types in the chart schema.
5736
+ *
5737
+ * @remarks
5738
+ * A core entity type is the base concept (such as "Person") that one or more entity types
5739
+ * specialize. Each entity type references its parent through {@link schema.IChartEntityType.coreType}.
5740
+ * @i2since 1.10
5741
+ */
5742
+ readonly coreEntityTypes: data.IKeyedReadOnlyCollection<ChartItemTypeIdentifier, IChartCoreEntityType>;
5743
+ /**
5744
+ * Gets all the core link types in the chart schema.
5745
+ *
5746
+ * @remarks
5747
+ * A core link type is the base concept that one or more link types specialize. Each link type
5748
+ * references its parent through {@link schema.IChartLinkType.coreType}.
5749
+ * @i2since 1.10
5750
+ */
5751
+ readonly coreLinkTypes: data.IKeyedReadOnlyCollection<ChartItemTypeIdentifier, IChartCoreLinkType>;
5038
5752
  /**
5039
5753
  * Gets the item type in the chart schema that has the specified i2 Analyze type identifier.
5040
5754
  * @param analyzeItemTypeId - An i2 Analyze item type identifier.
@@ -5160,6 +5874,14 @@ export declare namespace schema {
5160
5874
  * @i2since 1.0
5161
5875
  */
5162
5876
  readonly image: data.IImage;
5877
+ /**
5878
+ * Gets the core entity type that this entity type specializes, if it has one.
5879
+ *
5880
+ * @remarks
5881
+ * This is absent for entity types from a schema that predates the core type hierarchy.
5882
+ * @i2since 1.10
5883
+ */
5884
+ readonly coreType?: IChartCoreEntityType;
5163
5885
  }
5164
5886
  /**
5165
5887
  * A link type.
@@ -5176,6 +5898,89 @@ export declare namespace schema {
5176
5898
  * @i2since 1.5
5177
5899
  */
5178
5900
  toEntityTypes: data.IReadOnlyCollection<IChartEntityType>;
5901
+ /**
5902
+ * Gets the core link type that this link type specializes, if it has one.
5903
+ *
5904
+ * @remarks
5905
+ * This is absent for link types from a schema that predates the core type hierarchy.
5906
+ * @i2since 1.10
5907
+ */
5908
+ readonly coreType?: IChartCoreLinkType;
5909
+ }
5910
+ /**
5911
+ * The governance tier of a type, which controls who can author and modify its definition.
5912
+ *
5913
+ * @remarks
5914
+ * The tiers, from most to least restricted, are:
5915
+ *
5916
+ * - `i2Ontology` — curated by i2 Group; its structure, identifiers, and semantics are locked.
5917
+ * - `systemGoverned` — modifiable by schema administrators through the schema authoring path.
5918
+ * - `analystGoverned` — created and modified by analysts on an existing core type.
5919
+ * @i2since 1.10
5920
+ */
5921
+ export type GovernanceTier = 'i2Ontology' | 'systemGoverned' | 'analystGoverned';
5922
+ /**
5923
+ * A set of information that is common to all core types in a chart schema.
5924
+ *
5925
+ * @remarks
5926
+ * A core type is the base concept that one or more item types (entity types or link types)
5927
+ * specialize. Core types are the level at which storage, matching, and connector queries
5928
+ * operate; the specializing item types add display configuration and preferred property
5929
+ * selections on top.
5930
+ * @i2since 1.10
5931
+ */
5932
+ export interface IChartCoreItemTypeBase {
5933
+ /**
5934
+ * Gets the identifier of the core type.
5935
+ * @i2since 1.10
5936
+ */
5937
+ readonly id: ChartItemTypeId;
5938
+ /**
5939
+ * Gets the identifier of the core type in the i2 Analyze schema, if it has one.
5940
+ * @i2since 1.10
5941
+ */
5942
+ readonly analyzeId?: AnalyzeItemTypeId;
5943
+ /**
5944
+ * Gets the display name of the core type.
5945
+ * @i2since 1.10
5946
+ */
5947
+ readonly displayName: string;
5948
+ /**
5949
+ * Gets the description of the core type.
5950
+ * @i2since 1.10
5951
+ */
5952
+ readonly description: string;
5953
+ /**
5954
+ * Gets the identifier of the semantic type of the core type.
5955
+ * @i2since 1.10
5956
+ */
5957
+ readonly semanticTypeId: string;
5958
+ /**
5959
+ * Gets all the property types of the core type.
5960
+ *
5961
+ * @remarks
5962
+ * A core type carries the complete set of property types for its concept. Each specializing
5963
+ * item type exposes a subset of these through its preferred property selection.
5964
+ * @i2since 1.10
5965
+ */
5966
+ readonly propertyTypes: data.IKeyedReadOnlyCollection<PropertyTypeIdentifier, IChartPropertyType>;
5967
+ }
5968
+ /**
5969
+ * A core entity type.
5970
+ * @i2since 1.10
5971
+ */
5972
+ export interface IChartCoreEntityType extends IChartCoreItemTypeBase {
5973
+ /**
5974
+ * Gets the image that represents records that have the core entity type.
5975
+ * @i2since 1.10
5976
+ */
5977
+ readonly image: data.IImage;
5978
+ }
5979
+ /**
5980
+ * A core link type.
5981
+ * @i2since 1.10
5982
+ */
5983
+ export interface IChartCoreLinkType extends IChartCoreItemTypeBase {
5179
5984
  }
5180
5985
  /**
5181
5986
  * A part of a label that consists of a literal string.
@@ -5326,6 +6131,34 @@ export declare namespace schema {
5326
6131
  * @i2since 1.5
5327
6132
  */
5328
6133
  readonly origin: ISchemaInfo;
6134
+ /**
6135
+ * Gets the core type that this item type specializes, if it has one.
6136
+ *
6137
+ * @remarks
6138
+ * The core type is the base concept (such as "Person") that this item type refines with
6139
+ * display configuration and a preferred property selection. It is absent for item types that
6140
+ * have no core type, such as those from a schema that predates the core type hierarchy.
6141
+ * @i2since 1.10
6142
+ */
6143
+ readonly coreType?: IChartCoreEntityType | IChartCoreLinkType;
6144
+ /**
6145
+ * Indicates whether this item type is the default specialization of its core type.
6146
+ *
6147
+ * @remarks
6148
+ * Each core type has at most one default item type, which acts as the fallback when a record
6149
+ * references the core type without a more specific item type. This is absent for item types
6150
+ * that have no core type.
6151
+ * @i2since 1.10
6152
+ */
6153
+ readonly isDefault?: boolean;
6154
+ /**
6155
+ * Gets the governance tier of the item type, which controls who can author and modify it.
6156
+ *
6157
+ * @remarks
6158
+ * This is absent for item types from a schema that predates the core type hierarchy.
6159
+ * @i2since 1.10
6160
+ */
6161
+ readonly governanceTier?: GovernanceTier;
5329
6162
  }
5330
6163
  /**
5331
6164
  * Information about a schema in an i2 Analyze deployment.
@@ -5582,6 +6415,11 @@ export declare namespace schema {
5582
6415
  * @i2since 1.0
5583
6416
  */
5584
6417
  readonly analyzeId?: AnalyzePropertyTypeId;
6418
+ /**
6419
+ * Gets the item type or core type that the property type belongs to.
6420
+ * @i2since 1.10
6421
+ */
6422
+ readonly itemType: IChartItemType | IChartCoreItemTypeBase;
5585
6423
  /**
5586
6424
  * Gets the display name of the property type.
5587
6425
  * @i2since 1.0
@@ -6191,6 +7029,15 @@ export declare namespace visual {
6191
7029
  * @i2since 1.9
6192
7030
  */
6193
7031
  export type LineStyle = 'solid' | 'dashed' | 'dotted' | 'dash-dot' | 'dash-dot-dot';
7032
+ /**
7033
+ * The slot position of a badge icon on a node or edge.
7034
+ *
7035
+ * @remarks
7036
+ * Slots 0, 1, and 2 are trailing positions, displayed after the label of the element.
7037
+ * Slots 3, 4, and 5 are leading positions, displayed before the label of the element.
7038
+ * @i2since 1.10
7039
+ */
7040
+ export type BadgeSlot = 0 | 1 | 2 | 3 | 4 | 5;
6194
7041
  /**
6195
7042
  * A label for an element.
6196
7043
  * @i2since 1.5
@@ -6314,6 +7161,11 @@ export declare namespace visual {
6314
7161
  * @i2since 1.2
6315
7162
  */
6316
7163
  readonly style: IEdgeStyle;
7164
+ /**
7165
+ * Gets the edge summary that currently contains this edge, or `undefined` if the edge is not summarized.
7166
+ * @i2since 1.10
7167
+ */
7168
+ readonly summary: IEdgeSummary | undefined;
6317
7169
  }
6318
7170
  /**
6319
7171
  * A position on a chart surface.
@@ -6336,7 +7188,7 @@ export declare namespace visual {
6336
7188
  }
6337
7189
  /**
6338
7190
  * A value for a setting that affects the appearance of an element.
6339
- * @typeParam T - The logical type of the value.
7191
+ * @typeParam T - The type of the value.
6340
7192
  * @i2since 1.2
6341
7193
  */
6342
7194
  export interface IElementSetting<T> {
@@ -6361,6 +7213,23 @@ export declare namespace visual {
6361
7213
  * @i2since 1.2
6362
7214
  */
6363
7215
  readonly color: IElementSetting<string>;
7216
+ /**
7217
+ * Gets the badge icons displayed on the element, in slot order.
7218
+ *
7219
+ * @remarks
7220
+ * The array contains one entry for each populated slot, ordered by slot number.
7221
+ * Empty if no badges are set on the element.
7222
+ * @i2since 1.10
7223
+ */
7224
+ readonly badges: ReadonlyArray<IBadgeIcon>;
7225
+ /**
7226
+ * Gets the badge icon in the given slot.
7227
+ *
7228
+ * @param slot - The slot position to read.
7229
+ * @returns The badge icon in the slot, or `undefined` if the slot is empty.
7230
+ * @i2since 1.10
7231
+ */
7232
+ getBadge(slot: BadgeSlot): IBadgeIcon | undefined;
6364
7233
  }
6365
7234
  /**
6366
7235
  * An image for a node element.
@@ -6373,6 +7242,22 @@ export declare namespace visual {
6373
7242
  */
6374
7243
  readonly isDefault: boolean;
6375
7244
  }
7245
+ /**
7246
+ * A badge icon displayed alongside a node or edge in one of six slot positions.
7247
+ *
7248
+ * @remarks
7249
+ * Extends {@link data.IImage}, so `href` and `description` follow the same
7250
+ * convention as {@link visual.INodeStyle.image}. `description` is required
7251
+ * but may be the empty string.
7252
+ * @i2since 1.10
7253
+ */
7254
+ export interface IBadgeIcon extends data.IImage {
7255
+ /**
7256
+ * Gets the slot position of the badge.
7257
+ * @i2since 1.10
7258
+ */
7259
+ readonly slot: BadgeSlot;
7260
+ }
6376
7261
  /**
6377
7262
  * A style for a node, which affects its appearance.
6378
7263
  * @i2since 1.0
@@ -6476,6 +7361,47 @@ export declare namespace visual {
6476
7361
  * @i2since 1.6
6477
7362
  */
6478
7363
  readonly edges: data.IKeyedReadOnlyCollection<ElementId, IEdge>;
7364
+ /**
7365
+ * Gets the effective style of the edge summary line.
7366
+ *
7367
+ * @remarks
7368
+ * Each attribute defaults to a value computed from the member edges (for example, the
7369
+ * shared color of all members, or `undefined` if the members disagree). A plug-in can
7370
+ * override any attribute through {@link app.IEdgeSummaryEditor | editEdgeSummary(...)};
7371
+ * the override takes precedence over the computed value.
7372
+ *
7373
+ * {@link visual.IElementSetting.isDefault | isDefault} is `true` when the computed value
7374
+ * is in effect, and `false` when an override is. The returned object is a live view.
7375
+ * @i2since 1.10
7376
+ */
7377
+ readonly style: IEdgeSummaryStyle;
7378
+ }
7379
+ /**
7380
+ * The effective style of an edge summary line.
7381
+ * @i2since 1.10
7382
+ */
7383
+ export interface IEdgeSummaryStyle {
7384
+ /**
7385
+ * Gets the color of the edge summary line.
7386
+ * @i2since 1.10
7387
+ */
7388
+ readonly color: IElementSetting<string>;
7389
+ /**
7390
+ * Gets the width of the edge summary line.
7391
+ * @i2since 1.10
7392
+ */
7393
+ readonly width: IElementSetting<number>;
7394
+ /**
7395
+ * Gets the line style of the edge summary line.
7396
+ * @i2since 1.10
7397
+ */
7398
+ readonly lineStyle: IElementSetting<LineStyle>;
7399
+ /**
7400
+ * Gets the direction of the edge summary line, expressed relative to the natural direction
7401
+ * implied by its 'from' and 'to' ends.
7402
+ * @i2since 1.10
7403
+ */
7404
+ readonly direction: IElementSetting<data.LinkDirection>;
6479
7405
  }
6480
7406
  /**
6481
7407
  * A node group, which is a collection of nodes that can be moved and selected together.