@i2analyze/notebook-sdk 1.4.0-dev.1 → 1.4.0-dev.2

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.
@@ -3117,11 +3117,12 @@ export declare namespace dialog {
3117
3117
  *
3118
3118
  * @param type - The type of event to subscribe to.
3119
3119
  * @param listener - A function to handle the event.
3120
+ * @param options - An object that controls the behavior of the listener.
3120
3121
  * @typeParam K - The type of event to subscribe to.
3121
3122
  * @returns A function that can be called to remove the listener.
3122
3123
  * @i2since 1.4
3123
3124
  */
3124
- addEventListener<K extends keyof DialogEventMap>(type: K, listener: DialogEventMap[K]): () => void;
3125
+ addEventListener<K extends keyof DialogEventMap>(type: K, listener: DialogEventMap[K], options?: DialogEventOptionsMap[K]): () => void;
3125
3126
  /**
3126
3127
  * Removes a listener for events that might affect the dialog.
3127
3128
  *
@@ -3143,6 +3144,17 @@ export declare namespace dialog {
3143
3144
  */
3144
3145
  readonly action: DialogActionListener;
3145
3146
  }
3147
+ /**
3148
+ * A mapping of dialog event types to their listener options types.
3149
+ * @i2since 1.4
3150
+ */
3151
+ export interface DialogEventOptionsMap extends app.ApplicationEventOptionsMap {
3152
+ /**
3153
+ * Gets the type of the object that provides control over "action" event listeners.
3154
+ * @i2since 1.4
3155
+ */
3156
+ readonly action: app.ITransactionOptions;
3157
+ }
3146
3158
  /**
3147
3159
  * A callback function that handles dialog action button events.
3148
3160
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@i2analyze/notebook-sdk",
3
- "version": "1.4.0-dev.1",
3
+ "version": "1.4.0-dev.2",
4
4
  "description": "i2 Notebook SDK",
5
5
  "license": "MIT",
6
6
  "publishConfig": {