@i2analyze/notebook-sdk 1.10.0-dev.6 → 1.10.0-dev.7

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.
@@ -2471,7 +2471,10 @@ export declare namespace commands {
2471
2471
  */
2472
2472
  readonly icon: IIcon;
2473
2473
  /**
2474
- * Gets the identifier of the command, which must be a GUID. GUIDs are case-insensitive.
2474
+ * Gets the identifier of the command. This must be a non-empty string.
2475
+ *
2476
+ * @remarks
2477
+ * Using a GUID, or another globally-unique value, is recommended to avoid collisions with other plug-ins.
2475
2478
  * @i2since 1.0
2476
2479
  */
2477
2480
  readonly id: CommandId;
@@ -2787,7 +2790,10 @@ export declare namespace commands {
2787
2790
  */
2788
2791
  export interface IGroupBase {
2789
2792
  /**
2790
- * Gets the identifier of the group, which should be a GUID. GUIDs are case-insensitive.
2793
+ * Gets the identifier of the group. This must be a non-empty string.
2794
+ *
2795
+ * @remarks
2796
+ * Using a GUID, or another globally-unique value, is recommended to avoid collisions with other plug-ins.
2791
2797
  * @i2since 1.0
2792
2798
  */
2793
2799
  readonly id: GroupId;
@@ -2889,7 +2895,10 @@ export declare namespace commands {
2889
2895
  */
2890
2896
  export interface IDynamicGroupConfig<TCommandType extends CommandType = CommandType> {
2891
2897
  /**
2892
- * Gets the identifier of the group, which should be a GUID. GUIDs are case-insensitive.
2898
+ * Gets the identifier of the group. This must be a non-empty string.
2899
+ *
2900
+ * @remarks
2901
+ * Using a GUID, or another globally-unique value, is recommended to avoid collisions with other plug-ins.
2893
2902
  * @i2since 1.10
2894
2903
  */
2895
2904
  readonly id: GroupId;
@@ -2915,13 +2924,21 @@ export declare namespace commands {
2915
2924
  /**
2916
2925
  * Populates the group's commands each time the group is opened.
2917
2926
  *
2927
+ * @remarks
2928
+ * May be synchronous or asynchronous. A synchronous callback creates and surfaces every
2929
+ * command before it returns; the host then renders the populated group. An asynchronous
2930
+ * callback returns a `Promise` that resolves once the contents are ready: the host opens the
2931
+ * group immediately with skeleton placeholder rows in place of the real items, and swaps them
2932
+ * in atomically when the promise resolves. If the group closes before the promise resolves
2933
+ * the `signal` is aborted and any surfaced commands are discarded.
2934
+ *
2918
2935
  * @param commandArea - A scoped area for creating and surfacing commands. Only commands created here are visible in this group.
2919
2936
  * @param context - The context based on the group's `context` field: `undefined` for `'unscoped'`, {@link commands.IRecordsContext} for `'records'`, the application object for `'application'`.
2920
2937
  * @param signal - An AbortSignal that is aborted when the group closes. Use it to cancel any async work started in this callback.
2921
- * @returns An optional cleanup function that is called when the group closes, before the signal is aborted.
2938
+ * @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`.
2922
2939
  * @i2since 1.10
2923
2940
  */
2924
- onPopulate(commandArea: IDynamicActionArea, context: CommandPayloadMap[TCommandType], signal: AbortSignal): void | (() => void);
2941
+ onPopulate(commandArea: IDynamicActionArea, context: CommandPayloadMap[TCommandType], signal: AbortSignal): void | (() => void) | Promise<void | (() => void)>;
2925
2942
  /**
2926
2943
  * Runs when the dynamic group's popup button is surfaced, enabling its state to be driven from events.
2927
2944
  *
@@ -3265,7 +3282,10 @@ export declare namespace commands {
3265
3282
  */
3266
3283
  export interface IRibbonTabConfig {
3267
3284
  /**
3268
- * Gets the identifier of the tab, which must be a GUID. GUIDs are case-insensitive.
3285
+ * Gets the identifier of the tab. This must be a non-empty string.
3286
+ *
3287
+ * @remarks
3288
+ * Using a GUID, or another globally-unique value, is recommended to avoid collisions with other plug-ins.
3269
3289
  * @i2since 1.6
3270
3290
  */
3271
3291
  readonly id: RibbonTabId;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@i2analyze/notebook-sdk",
3
- "version": "1.10.0-dev.6",
3
+ "version": "1.10.0-dev.7",
4
4
  "description": "i2 Notebook SDK",
5
5
  "license": "MIT",
6
6
  "publishConfig": {