@i2analyze/notebook-sdk 1.1.0 → 1.2.0-dev.0

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.
package/README.md CHANGED
@@ -8,5 +8,9 @@ This npm package provides the JavaScript library for developing plug-ins and a t
8
8
 
9
9
  | `@i2analyze/notebook-sdk` version | EIA version |
10
10
  | --------------------------------- | ----------- |
11
+ | 1.1.\* | 4.4.0.0 |
11
12
  | 1.0.\* | 4.3.4.0 |
12
- | 1.1.0 | 4.4.0.0 |
13
+
14
+ ## Documentation
15
+
16
+ For more details, see the documentation at https://i2group.github.io/notebook-sdk/.
@@ -304,7 +304,6 @@ export declare namespace app {
304
304
  */
305
305
  signal: AbortSignal;
306
306
  }
307
- export type TODO = unknown;
308
307
  /**
309
308
  * A set of methods for changing a status display while an asynchronous mutation is running.
310
309
  * @i2since 1.1
@@ -761,20 +760,18 @@ export declare namespace app {
761
760
  * Creates an entity record that is added to the chart on committal.
762
761
  *
763
762
  * @param recordTemplate - The data from which to create the record.
764
- * @param hints - A TODO.
765
763
  * @returns The new, pending record.
766
764
  * @i2since 1.1
767
765
  */
768
- addEntityRecord(recordTemplate: IChartEntityRecordData, hints?: TODO): IPendingRecord;
766
+ addEntityRecord(recordTemplate: IChartEntityRecordData): IPendingRecord;
769
767
  /**
770
768
  * Creates a link record that is added to the chart on committal.
771
769
  *
772
770
  * @param recordTemplate - The data from which to create the record.
773
- * @param hints - A TODO.
774
771
  * @returns The new, pending record.
775
772
  * @i2since 1.1
776
773
  */
777
- addLinkRecord(recordTemplate: IChartLinkRecordData, hints?: TODO): IPendingRecord;
774
+ addLinkRecord(recordTemplate: IChartLinkRecordData): IPendingRecord;
778
775
  /**
779
776
  * Adds the records from a record group to the chart.
780
777
  *
@@ -3142,6 +3139,11 @@ export declare namespace records {
3142
3139
  * @i2since 1.0
3143
3140
  */
3144
3141
  get360ViewUrl(): string | undefined;
3142
+ /**
3143
+ * Gets the element to which the record belongs.
3144
+ * @i2since 1.2
3145
+ */
3146
+ readonly element: visual.IElement;
3145
3147
  }
3146
3148
  /**
3147
3149
  * An entity record.
@@ -3948,6 +3950,17 @@ export declare namespace toolview {
3948
3950
  * @i2since 1.0
3949
3951
  */
3950
3952
  export type ToolViewUnloadListener = (isClosing: boolean) => void;
3953
+ /**
3954
+ * A callback function that handles tool view minimized state events.
3955
+ *
3956
+ * @remarks
3957
+ * This listener receives an event when the docked tool view is changing its minimized state to reflect its visibility in the i2 Notebook user interface.
3958
+ *
3959
+ * @param isMinimized - `true` if the tool view is docked but invisible in the user interface due to a chart or another docked tool view is maximized;
3960
+ * `false` if the tool view is closed, undocked or nothing is maximized.
3961
+ * @i2since 1.2
3962
+ */
3963
+ export type ToolViewMinimizedListener = (isMinimized: boolean) => void;
3951
3964
  /**
3952
3965
  * A serializable value that a tool view puts into the volatile store.
3953
3966
  *
@@ -4025,6 +4038,14 @@ export declare namespace toolview {
4025
4038
  * @i2since 1.0
4026
4039
  */
4027
4040
  readonly isOpen: boolean;
4041
+ /**
4042
+ * Indicates whether the docked tool view is invisible in the user interface.
4043
+ *
4044
+ * @returns `true` if the tool view is invisible because a chart or another tool view is being maximized;
4045
+ * `false` if it is closed, undocked or nothing is maximized.
4046
+ * @i2since 1.2
4047
+ */
4048
+ readonly isMinimized: boolean;
4028
4049
  /**
4029
4050
  * Opens the tool view in either a docked pane or an undocked window.
4030
4051
  *
@@ -4119,6 +4140,11 @@ export declare namespace toolview {
4119
4140
  * @i2since 1.0
4120
4141
  */
4121
4142
  readonly storechange: VolatileStoreChangeListener;
4143
+ /**
4144
+ * Gets the type of the callback method that listens for "minimized" events.
4145
+ * @i2since 1.2
4146
+ */
4147
+ readonly minimized: ToolViewMinimizedListener;
4122
4148
  }
4123
4149
  /**
4124
4150
  * A mapping of tool view event types to their listener options types.
@@ -4140,6 +4166,11 @@ export declare namespace toolview {
4140
4166
  * @i2since 1.0
4141
4167
  */
4142
4168
  readonly storechange: app.ITransactionOptions;
4169
+ /**
4170
+ * Gets the type of the object that provides control over "minimized" event listeners.
4171
+ * @i2since 1.2
4172
+ */
4173
+ readonly minimized: app.ITransactionOptions;
4143
4174
  }
4144
4175
  /**
4145
4176
  * A combined mapping of tool view and other event types to their listener types.
package/package.json CHANGED
@@ -1,18 +1,23 @@
1
1
  {
2
2
  "name": "@i2analyze/notebook-sdk",
3
- "version": "1.1.0",
3
+ "version": "1.2.0-dev.0",
4
4
  "description": "i2 Notebook SDK",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
7
7
  "@i2analyze:registry": "https://registry.npmjs.org/"
8
8
  },
9
+ "homepage": "https://i2group.github.io/notebook-sdk/",
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "https://i2group.github.io/notebook-sdk/"
13
+ },
9
14
  "devDependencies": {
10
- "@ibmi2/eslint-config": "^11.0.1",
11
- "@ibmi2/webui-lerna-build-scripts": "^4.1.0",
15
+ "@ibmi2/eslint-config": "^13.0.0",
16
+ "@ibmi2/webui-lerna-build-scripts": "^5.1.0",
12
17
  "@microsoft/api-documenter": "7.13.33",
13
18
  "@microsoft/api-extractor": "7.18.4",
19
+ "concurrently": "^7.3.0",
14
20
  "copyfiles": "^2.4.1",
15
- "npm-run-all": "^4.1.2",
16
21
  "rimraf": "^3.0.0",
17
22
  "typescript": "^4.3.5"
18
23
  },
@@ -20,7 +25,7 @@
20
25
  "**/*.spec.*"
21
26
  ],
22
27
  "scripts": {
23
- "compile": "npm-run-all -p \"compile:* -- {@}\" --",
28
+ "compile": "concurrently \"npm:compile:*\"",
24
29
  "compile:typescript-es": "webui-lerna-build-scripts",
25
30
  "compile:copy-es": "webui-lerna-build-scripts src \"**/*.d.ts\"",
26
31
  "compile:eslint": "webui-lerna-build-scripts \"src/**/*.{ts,tsx}\"",