@i2analyze/notebook-sdk 1.6.0-dev.21 → 1.6.0-dev.22

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.
@@ -2313,16 +2313,71 @@ export declare namespace commands {
2313
2313
  */
2314
2314
  readonly systemCommands: ISystemCommands;
2315
2315
  }
2316
+ /**
2317
+ * An area that represents the **Home** tab in the application ribbon, which contains system groups.
2318
+ * @i2since 1.6
2319
+ */
2320
+ export interface IHomeTabActionArea extends IActionArea<IHomeTabSystemGroups> {
2321
+ }
2322
+ /**
2323
+ * An area that represents a custom tab in the application ribbon.
2324
+ * @i2since 1.6
2325
+ */
2326
+ export interface IRibbonTabActionArea extends Omit<IActionArea<undefined>, 'systemGroups'> {
2327
+ }
2316
2328
  /**
2317
2329
  * The i2 Notebook application ribbon.
2318
2330
  * @i2since 1.0
2319
2331
  */
2320
2332
  export interface IApplicationRibbon {
2321
2333
  /**
2322
- * Gets the area that represents the "Home" tab in the application ribbon.
2334
+ * Gets the area that represents the **Home** tab in the application ribbon.
2323
2335
  * @i2since 1.0
2324
2336
  */
2325
- readonly homeTab: IActionArea<IHomeTabSystemGroups>;
2337
+ readonly homeTab: IHomeTabActionArea;
2338
+ /**
2339
+ * Adds a new tab to the application ribbon.
2340
+ * @param config - The information necessary for creating the tab.
2341
+ * @param insertBefore - The existing tab to insert the new tab immediately before.
2342
+ * If this is not specified, the new tab is added after all the existing tabs.
2343
+ * @returns The area that represents the new tab in the application ribbon.
2344
+ * @i2since 1.6
2345
+ */
2346
+ addTab(config: IRibbonTabConfig, insertBefore?: RibbonTabId | IRibbonTabActionArea | IHomeTabActionArea): IRibbonTabActionArea;
2347
+ /**
2348
+ * Gets the area that represents the specified tab in the application ribbon.
2349
+ * @param id - The identifier of the tab.
2350
+ * @returns An object that you can use to add actions or a group to the located area.
2351
+ * @throws `Error` if the specified tab does not exist.
2352
+ * @i2since 1.6
2353
+ */
2354
+ getTab(id: RibbonTabId): IRibbonTabActionArea;
2355
+ }
2356
+ /**
2357
+ * An identifier for a tab in the application ribbon.
2358
+ * @i2since 1.6
2359
+ */
2360
+ export type RibbonTabId = string;
2361
+ /**
2362
+ * A set of information for creating a tab in the application ribbon.
2363
+ * @i2since 1.6
2364
+ */
2365
+ export interface IRibbonTabConfig {
2366
+ /**
2367
+ * Gets the identifier of the tab.
2368
+ * @i2since 1.6
2369
+ */
2370
+ readonly id: RibbonTabId;
2371
+ /**
2372
+ * Gets the label for the tab.
2373
+ * @i2since 1.6
2374
+ */
2375
+ readonly label: string;
2376
+ /**
2377
+ * Gets the tooltip for the tab.
2378
+ * @i2since 1.6
2379
+ */
2380
+ readonly tooltip?: string;
2326
2381
  }
2327
2382
  /**
2328
2383
  * A lookup table for the command identifiers of the default system commands.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@i2analyze/notebook-sdk",
3
- "version": "1.6.0-dev.21",
3
+ "version": "1.6.0-dev.22",
4
4
  "description": "i2 Notebook SDK",
5
5
  "license": "MIT",
6
6
  "publishConfig": {