@i2analyze/notebook-sdk 1.4.0-dev.0 → 1.4.0-dev.10

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.
@@ -120,7 +120,7 @@ export declare namespace app {
120
120
  */
121
121
  runUntrackedMutations(mutationHandler: UntrackedMutationHandler, options?: ITransactionOptions): void;
122
122
  /**
123
- * Gets the command identifiers of the default system dialog actions.
123
+ * Gets the identifiers of the system dialog actions.
124
124
  * @i2since 1.4
125
125
  */
126
126
  readonly systemActions: dialog.ISystemDialogActions;
@@ -1613,7 +1613,7 @@ export declare namespace commands {
1613
1613
  *
1614
1614
  * @remarks
1615
1615
  * The category determines the section of the keyboard help dialog in which the command is displayed.
1616
- * @i2since 1.1
1616
+ * @i2since 1.4
1617
1617
  */
1618
1618
  export type HelpCategory = 'discover' | 'select' | 'help' | 'view' | 'edit' | 'search' | 'manage';
1619
1619
  /**
@@ -2131,11 +2131,28 @@ export declare namespace commands {
2131
2131
  */
2132
2132
  readonly applicationRibbon: IApplicationRibbon;
2133
2133
  /**
2134
- * Gets the area that represents the chart's pop-up menu.
2134
+ * Gets the area that represents the pop-up menu for the chart surface.
2135
+ *
2136
+ * @remarks
2137
+ * The `chartSurfacePopupMenu` area supports only top-level groups, which correspond to sets of related actions that are separated by dividers in the menu.
2138
+ * @i2since 1.4
2139
+ */
2140
+ readonly chartSurfacePopupMenu: IActionArea<IChartSurfacePopupMenuSystemGroups, IMenuGroup>;
2141
+ /**
2142
+ * Gets the area that represents the pop-up menu for chart items.
2143
+ *
2144
+ * @remarks
2145
+ * The `chartItemPopupMenu` area supports only top-level groups, which correspond to sets of related actions that are separated by dividers in the menu.
2146
+ * @i2since 1.4
2147
+ */
2148
+ readonly chartItemPopupMenu: IActionArea<IChartItemPopupMenuSystemGroups, IMenuGroup>;
2149
+ /**
2150
+ * Gets the area that represents the pop-up menu for chart items.
2135
2151
  *
2136
2152
  * @remarks
2137
2153
  * The `chartPopupMenu` area supports only top-level groups, which correspond to sets of related actions that are separated by dividers in the menu.
2138
2154
  * @i2since 1.0
2155
+ * @deprecated commands.ICommandApi.chartPopupMenu has been renamed to {@link commands.ICommandApi.chartItemPopupMenu}.
2139
2156
  */
2140
2157
  readonly chartPopupMenu: IActionArea<IChartPopupMenuSystemGroups, IMenuGroup>;
2141
2158
  /**
@@ -2285,6 +2302,21 @@ export declare namespace commands {
2285
2302
  * @i2since 1.3
2286
2303
  */
2287
2304
  readonly shareRecords: CommandId;
2305
+ /**
2306
+ * Gets the identifier of the system command that cuts the selected elements and copies them to the clipboard.
2307
+ * @i2since 1.4
2308
+ */
2309
+ readonly cut: CommandId;
2310
+ /**
2311
+ * Gets the identifier of the system command that copies the selected elements to the clipboard.
2312
+ * @i2since 1.4
2313
+ */
2314
+ readonly copy: CommandId;
2315
+ /**
2316
+ * Gets the identifier of the system command that pastes the contents of the clipboard.
2317
+ * @i2since 1.4
2318
+ */
2319
+ readonly paste: CommandId;
2288
2320
  }
2289
2321
  /**
2290
2322
  * A lookup table for the identifiers of the system action groups in the Home tab.
@@ -2316,10 +2348,37 @@ export declare namespace commands {
2316
2348
  * @i2since 1.0
2317
2349
  */
2318
2350
  readonly select: GroupId;
2351
+ /**
2352
+ * Gets the identifier of the system action group named "Clipboard".
2353
+ * @i2since 1.4
2354
+ */
2355
+ readonly clipboard: GroupId;
2356
+ }
2357
+ /**
2358
+ * A lookup table for the identifiers of the system action groups in the chart item popup menu.
2359
+ * @i2since 1.4
2360
+ */
2361
+ export interface IChartItemPopupMenuSystemGroups {
2362
+ /**
2363
+ * Gets the identifier of the system action group related to selection.
2364
+ * @i2since 1.2
2365
+ */
2366
+ readonly select: GroupId;
2367
+ /**
2368
+ * Gets the identifier of the system action group related to discovery.
2369
+ * @i2since 1.0
2370
+ */
2371
+ readonly discover: GroupId;
2372
+ /**
2373
+ * Gets the identifier of the system action group related to clipboard operations.
2374
+ * @i2since 1.4
2375
+ */
2376
+ readonly clipboard: GroupId;
2319
2377
  }
2320
2378
  /**
2321
2379
  * A lookup table for the identifiers of the system action groups in the chart popup menu.
2322
- * @i2since 1.2
2380
+ * @i2since 1.0
2381
+ * @deprecated commands.IChartPopupMenuSystemGroups has been renamed to {@link commands.IChartItemPopupMenuSystemGroups}.
2323
2382
  */
2324
2383
  export interface IChartPopupMenuSystemGroups {
2325
2384
  /**
@@ -2333,6 +2392,22 @@ export declare namespace commands {
2333
2392
  */
2334
2393
  readonly discover: GroupId;
2335
2394
  }
2395
+ /**
2396
+ * A lookup table for the identifiers of the system action groups in the chart surface popup menu.
2397
+ * @i2since 1.4
2398
+ */
2399
+ export interface IChartSurfacePopupMenuSystemGroups {
2400
+ /**
2401
+ * Gets the identifier of the system action group related to selection.
2402
+ * @i2since 1.4
2403
+ */
2404
+ readonly select: GroupId;
2405
+ /**
2406
+ * Gets the identifier of the system action group related to clipboard operations.
2407
+ * @i2since 1.4
2408
+ */
2409
+ readonly clipboard: GroupId;
2410
+ }
2336
2411
  }
2337
2412
 
2338
2413
  /**
@@ -2975,7 +3050,8 @@ export declare namespace data {
2975
3050
  }
2976
3051
 
2977
3052
  /**
2978
- * The members of the `dialog` namespace enable you to open the dialog over the application that you write for your plug-ins with the i2 Notebook application.
3053
+ * The members of the `dialog` namespace enable you to create and display dialog windows from your plug-ins
3054
+ * that are modal with respect to the whole i2 Notebook application.
2979
3055
  *
2980
3056
  * @public
2981
3057
  * @i2since 1.4
@@ -2987,33 +3063,33 @@ export declare namespace dialog {
2987
3063
  */
2988
3064
  export type DialogSize = 'small' | 'medium' | 'large';
2989
3065
  /**
2990
- * An identifier of dialog action.
3066
+ * An identifier of a dialog action.
2991
3067
  * @i2since 1.4
2992
3068
  */
2993
3069
  export type DialogActionId = string;
2994
3070
  /**
2995
- * A set of information to create dialog action button.
3071
+ * A set of information for creating or modifying a dialog action.
2996
3072
  * @i2since 1.4
2997
3073
  */
2998
- export interface IDialogAction {
3074
+ export interface IDialogActionConfig {
2999
3075
  /**
3000
- * Indicates the visibility state of the action button.
3076
+ * Indicates whether the action is enabled.
3001
3077
  * @i2since 1.4
3002
3078
  */
3003
- enabled?: boolean;
3079
+ readonly enabled?: boolean;
3004
3080
  /**
3005
- * Gets the value to show in the action button.
3081
+ * Gets the label for the action.
3006
3082
  * @i2since 1.4
3007
3083
  */
3008
- label?: string;
3084
+ readonly label?: string;
3009
3085
  }
3010
3086
  /**
3011
- * A Basic set of information to create dialog action button.
3087
+ * An action for a dialog window.
3012
3088
  * @i2since 1.4
3013
3089
  */
3014
- export interface IDialogActionConfig extends IDialogAction {
3090
+ export interface IDialogAction extends IDialogActionConfig {
3015
3091
  /**
3016
- * Gets the identifier of the dialog action.
3092
+ * Gets the identifier of the action.
3017
3093
  * @i2since 1.4
3018
3094
  */
3019
3095
  readonly id: DialogActionId;
@@ -3021,7 +3097,7 @@ export declare namespace dialog {
3021
3097
  /**
3022
3098
  * A set of information for creating a dialog.
3023
3099
  *
3024
- * @typeParam TInitialize - The type of data to populate the dialog content.
3100
+ * @typeParam TInitialize - The type of the data that's used for populating the dialog when it's displayed.
3025
3101
  * @i2since 1.4
3026
3102
  */
3027
3103
  export interface IDialogConfig<TInitialize> {
@@ -3031,7 +3107,7 @@ export declare namespace dialog {
3031
3107
  */
3032
3108
  readonly name: string;
3033
3109
  /**
3034
- * Gets the path to the content to host the dialog content, relative to the plug-in entry point.
3110
+ * Gets the path to the content to host in the dialog, relative to the plug-in entry point.
3035
3111
  *
3036
3112
  * @remarks
3037
3113
  * For example, if `path` is '`./`', then the server uses the folder that contains the entry point.
@@ -3044,65 +3120,66 @@ export declare namespace dialog {
3044
3120
  */
3045
3121
  readonly size: DialogSize;
3046
3122
  /**
3047
- * Gets the information that required to create the dialog content.
3123
+ * Gets the data for populating the dialog when it's first displayed.
3048
3124
  *
3049
- * @typeParam TInitialize - The type of data to populate the dialog content.
3125
+ * @typeParam TInitialize - The type of the data that's used for populating the dialog.
3050
3126
  * @i2since 1.4
3051
3127
  */
3052
3128
  readonly initialValue?: TInitialize;
3053
3129
  /**
3054
- * Gets the information to show the button like OK, Cancel.
3130
+ * Gets the action buttons that appear at the bottom of the dialog, below the content.
3055
3131
  *
3056
3132
  * @i2since 1.4
3057
3133
  */
3058
- readonly actions: (IDialogActionConfig | DialogActionId)[];
3134
+ readonly actions: (DialogActionId | IDialogAction)[];
3059
3135
  }
3060
3136
  /**
3061
- * A collection of methods and properties that allow plug-in dialog to interact with i2 Notebook.
3137
+ * A collection of methods and properties that allow plug-in dialogs to interact with i2 Notebook.
3062
3138
  *
3063
3139
  * @i2since 1.4
3064
3140
  */
3065
3141
  export interface IDialogApi extends app.IApplication {
3066
3142
  /**
3067
- * Updates the dialog action buttons it could be label or visibility.
3143
+ * Updates the label or the enabled state of the specified dialog action.
3068
3144
  *
3069
- * @param id - An id of action which needs to be updated.
3070
- * @param action - An updated action.
3145
+ * @param id - The identifier of the action to update.
3146
+ * @param config - The new configuration for the specified action.
3071
3147
  * @i2since 1.4
3072
3148
  */
3073
- updateAction(id: DialogActionId, action: IDialogAction): void;
3149
+ updateAction(id: DialogActionId, config: IDialogActionConfig): void;
3074
3150
  /**
3075
- * Submits the committed value and close the dialog.
3151
+ * Submits and closes the dialog.
3076
3152
  *
3077
- * @param value - A value that is committed/expected when the dialog is closed.
3078
- * @typeParam TResult - The type of data when the dialog is submitted.
3153
+ * @param value - The value that's submitted when the dialog is closed.
3154
+ * @typeParam TResult - The type of the data that the dialog returns.
3079
3155
  * @i2since 1.4
3080
3156
  */
3081
3157
  submitAndClose<TResult>(value: TResult): void;
3082
3158
  /**
3083
- * Closes the dialog.
3159
+ * Closes the dialog without submitting it.
3084
3160
  *
3085
3161
  * @i2since 1.4
3086
3162
  */
3087
3163
  close(): void;
3088
3164
  /**
3089
- * Gets the information that required to create the dialog content.
3165
+ * Gets the data for populating the dialog when it's displayed.
3090
3166
  *
3091
- * @typeParam TInitialize - The type of data to populate the dialog content.
3092
- * @returns A value to populate the dialog content.
3167
+ * @typeParam TInitialize - The type of the data for populating the dialog.
3168
+ * @returns See above.
3093
3169
  * @i2since 1.4
3094
3170
  */
3095
- getInitiaValue<TInitialize>(): TInitialize;
3171
+ getInitialValue<TInitialize>(): TInitialize;
3096
3172
  /**
3097
3173
  * Adds a listener for events that might affect the dialog.
3098
3174
  *
3099
3175
  * @param type - The type of event to subscribe to.
3100
3176
  * @param listener - A function to handle the event.
3177
+ * @param options - An object that controls the behavior of the listener.
3101
3178
  * @typeParam K - The type of event to subscribe to.
3102
3179
  * @returns A function that can be called to remove the listener.
3103
3180
  * @i2since 1.4
3104
3181
  */
3105
- addEventListener<K extends keyof DialogEventMap>(type: K, listener: DialogEventMap[K]): () => void;
3182
+ addEventListener<K extends keyof DialogEventMap>(type: K, listener: DialogEventMap[K], options?: DialogEventOptionsMap[K]): () => void;
3106
3183
  /**
3107
3184
  * Removes a listener for events that might affect the dialog.
3108
3185
  *
@@ -3125,17 +3202,25 @@ export declare namespace dialog {
3125
3202
  readonly action: DialogActionListener;
3126
3203
  }
3127
3204
  /**
3128
- * A callback function that handles dialog action button events.
3129
- *
3130
- * @remarks
3131
- * Typically, this listener receieves an event after action button is clicked.
3205
+ * A mapping of dialog event types to their listener options types.
3206
+ * @i2since 1.4
3207
+ */
3208
+ export interface DialogEventOptionsMap extends app.ApplicationEventOptionsMap {
3209
+ /**
3210
+ * Gets the type of the object that provides control over "action" event listeners.
3211
+ * @i2since 1.4
3212
+ */
3213
+ readonly action: app.ITransactionOptions;
3214
+ }
3215
+ /**
3216
+ * A callback function that handles dialog action events.
3132
3217
  *
3133
- * @param actionId - An identifier of the action button which is clicked
3218
+ * @param actionId - The identifier of the clicked button.
3134
3219
  * @i2since 1.4
3135
3220
  */
3136
3221
  export type DialogActionListener = (actionId: DialogActionId) => void;
3137
3222
  /**
3138
- * A lookup table for the dialog action identifiers of the default actions.
3223
+ * A lookup table for the identifiers of the standard dialog action.
3139
3224
  * @i2since 1.4
3140
3225
  */
3141
3226
  export interface ISystemDialogActions {
@@ -3143,17 +3228,17 @@ export declare namespace dialog {
3143
3228
  * Gets the identifier of the "submit" action.
3144
3229
  * @i2since 1.4
3145
3230
  */
3146
- submit: DialogActionId;
3231
+ readonly submit: DialogActionId;
3147
3232
  /**
3148
3233
  * Gets the identifier of the "cancel" action.
3149
3234
  * @i2since 1.4
3150
3235
  */
3151
- cancel: DialogActionId;
3236
+ readonly cancel: DialogActionId;
3152
3237
  /**
3153
3238
  * Gets the identifier of the "close" action.
3154
3239
  * @i2since 1.4
3155
3240
  */
3156
- close: DialogActionId;
3241
+ readonly close: DialogActionId;
3157
3242
  }
3158
3243
  }
3159
3244
 
@@ -3236,11 +3321,11 @@ export declare interface IEntryPointApi extends app.IApplication {
3236
3321
  */
3237
3322
  createToolView(config: toolview.IToolViewConfig): toolview.IToolView;
3238
3323
  /**
3239
- * Opens a dialog with specified configuration.
3324
+ * Creates and displays a modal dialog with the specified configuration.
3240
3325
  *
3241
- * @param config - The information to create a modal dialog.
3242
- * @typeParam TResult - The type of data when the dialog is submitted.
3243
- * @typeParam TInitialize - The type of data to populate the dialog content.
3326
+ * @param config - The information for creating the dialog, including its size and its buttons.
3327
+ * @typeParam TResult - The type of the data that the dialog returns when it's submitted.
3328
+ * @typeParam TInitialize - The type of the data that's used to populate the dialog when it's displayed.
3244
3329
  * @returns The value submitted from the dialog.
3245
3330
  * @i2since 1.4
3246
3331
  */
@@ -4574,11 +4659,11 @@ export declare namespace toolview {
4574
4659
  */
4575
4660
  removeEventListener<K extends keyof ToolViewApiEventMap>(type: K, listener: ToolViewApiEventMap[K]): void;
4576
4661
  /**
4577
- * Opens a dialog with specified configuration.
4662
+ * Creates and displays a modal dialog with the specified configuration.
4578
4663
  *
4579
- * @param config - The information to create a modal dialog.
4580
- * @typeParam TResult - The type of data when the dialog is submitted.
4581
- * @typeParam TInitialize - The type of data to populate the dialog content.
4664
+ * @param config - The information for creating the dialog, including its size and its buttons.
4665
+ * @typeParam TResult - The type of the data that the dialog returns when it's submitted.
4666
+ * @typeParam TInitialize - The type of the data that's used for populating the dialog when it's displayed.
4582
4667
  * @returns The value submitted from the dialog.
4583
4668
  * @i2since 1.4
4584
4669
  */
@@ -4619,7 +4704,7 @@ export declare namespace toolview {
4619
4704
  * Gets the type of the object that provides control over "state" event listeners.
4620
4705
  * @i2since 1.0
4621
4706
  */
4622
- readonly state: app.ITransactionOptions;
4707
+ readonly state: app.ISubscriptionOptions;
4623
4708
  /**
4624
4709
  * Gets the type of the object that provides control over "unload" event listeners.
4625
4710
  * @i2since 1.0
@@ -4634,7 +4719,7 @@ export declare namespace toolview {
4634
4719
  * Gets the type of the object that provides control over "minimized" event listeners.
4635
4720
  * @i2since 1.2
4636
4721
  */
4637
- readonly minimized: app.ITransactionOptions;
4722
+ readonly minimized: app.ISubscriptionOptions;
4638
4723
  }
4639
4724
  /**
4640
4725
  * A combined mapping of tool view and other event types to their listener types.
package/lib/index.js CHANGED
@@ -39,7 +39,6 @@ export function getToolViewApi() {
39
39
  scan();
40
40
  });
41
41
  }
42
- //TODO: DOCs REVIEW
43
42
  /**
44
43
  * Retrieves the plug-in dialog API.
45
44
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@i2analyze/notebook-sdk",
3
- "version": "1.4.0-dev.0",
3
+ "version": "1.4.0-dev.10",
4
4
  "description": "i2 Notebook SDK",
5
5
  "license": "MIT",
6
6
  "publishConfig": {