@i2analyze/notebook-sdk 1.2.0-dev.1 → 1.2.0-dev.4
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/lib/gen/notebook-sdk-public.d.ts +33 -16
- package/lib/index.js +1 -1
- package/package.json +1 -1
|
@@ -164,6 +164,17 @@ export declare namespace app {
|
|
|
164
164
|
*/
|
|
165
165
|
details: string;
|
|
166
166
|
}
|
|
167
|
+
/**
|
|
168
|
+
* Unique identifiers relating to a change made.
|
|
169
|
+
* @i2since 1.2
|
|
170
|
+
*/
|
|
171
|
+
export interface IChangeSource {
|
|
172
|
+
/**
|
|
173
|
+
* Gets the id of a plug-in responsible for a change.
|
|
174
|
+
* @i2since 1.2
|
|
175
|
+
*/
|
|
176
|
+
readonly pluginId?: string;
|
|
177
|
+
}
|
|
167
178
|
/**
|
|
168
179
|
* A set of information that is common to requests to commit mutations of all types.
|
|
169
180
|
* @i2since 1.1
|
|
@@ -1439,27 +1450,27 @@ export declare namespace chart {
|
|
|
1439
1450
|
/**
|
|
1440
1451
|
* A callback function that handles chart selection events.
|
|
1441
1452
|
*
|
|
1442
|
-
* @param selection -The selection on the chart at the moment the callback was invoked.
|
|
1453
|
+
* @param selection -The selection on the chart at the moment the callback was invoked and the source of change.
|
|
1443
1454
|
* @param applicationContents - The contents of the application, including the current chart.
|
|
1444
1455
|
* @i2since 1.0
|
|
1445
1456
|
*/
|
|
1446
|
-
export type SelectionListener = (selection: ISelection, applicationContents: app.IApplicationContents) => void;
|
|
1457
|
+
export type SelectionListener = (selection: ISelection & app.IChangeSource, applicationContents: app.IApplicationContents) => void;
|
|
1447
1458
|
/**
|
|
1448
1459
|
* A callback function that handles chart events.
|
|
1449
1460
|
*
|
|
1450
|
-
* @param change - The change that took place on the chart and caused the callback to be invoked.
|
|
1461
|
+
* @param change - The change that took place on the chart and caused the callback to be invoked and the source of change.
|
|
1451
1462
|
* @param applicationContents - The contents of the application, including the current chart.
|
|
1452
1463
|
* @i2since 1.0
|
|
1453
1464
|
*/
|
|
1454
|
-
export type ChangeListener = (change: IChartChange, applicationContents: app.IApplicationContents) => void;
|
|
1465
|
+
export type ChangeListener = (change: IChartChange & app.IChangeSource, applicationContents: app.IApplicationContents) => void;
|
|
1455
1466
|
/**
|
|
1456
1467
|
* A callback function that handles chart view events.
|
|
1457
1468
|
*
|
|
1458
|
-
* @param view -The appearance of the chart following the change that caused the callback to be invoked.
|
|
1469
|
+
* @param view -The appearance of the chart following the change that caused the callback to be invoked and the source of change.
|
|
1459
1470
|
* @param applicationContents - The contents of the application, including the current chart.
|
|
1460
1471
|
* @i2since 1.0
|
|
1461
1472
|
*/
|
|
1462
|
-
export type ViewListener = (view: IChartView, applicationContents: app.IApplicationContents) => void;
|
|
1473
|
+
export type ViewListener = (view: IChartView & app.IChangeSource, applicationContents: app.IApplicationContents) => void;
|
|
1463
1474
|
/**
|
|
1464
1475
|
* Constraints that control a view-fitting operation.
|
|
1465
1476
|
*
|
|
@@ -1602,10 +1613,10 @@ export declare namespace commands {
|
|
|
1602
1613
|
/**
|
|
1603
1614
|
* A callback function that handles records context change events.
|
|
1604
1615
|
*
|
|
1605
|
-
* @param recordsContext - The records that are pertinent in the context of the surfaced command.
|
|
1616
|
+
* @param recordsContext - The records that are pertinent in the context of the surfaced command and the source of change.
|
|
1606
1617
|
* @i2since 1.0
|
|
1607
1618
|
*/
|
|
1608
|
-
export type RecordsContextChangeListener = (recordsContext: IRecordsContext) => void;
|
|
1619
|
+
export type RecordsContextChangeListener = (recordsContext: IRecordsContext & app.IChangeSource) => void;
|
|
1609
1620
|
/**
|
|
1610
1621
|
* An identifier of a command.
|
|
1611
1622
|
* @i2since 1.0
|
|
@@ -2133,6 +2144,11 @@ export declare namespace commands {
|
|
|
2133
2144
|
* @i2since 1.1
|
|
2134
2145
|
*/
|
|
2135
2146
|
readonly addToMap: CommandId;
|
|
2147
|
+
/**
|
|
2148
|
+
* Gets the identifier of the system command that opens the ThreeSixty View of the selected information store entity record.
|
|
2149
|
+
* @i2since 1.2
|
|
2150
|
+
*/
|
|
2151
|
+
readonly openThreeSixtyView: CommandId;
|
|
2136
2152
|
}
|
|
2137
2153
|
/**
|
|
2138
2154
|
* A lookup table for the group identifiers of the default system action groups.
|
|
@@ -2985,7 +3001,7 @@ export declare interface NotebookStatic {
|
|
|
2985
3001
|
* @public
|
|
2986
3002
|
* @i2since 1.0
|
|
2987
3003
|
*/
|
|
2988
|
-
getEntryPointApi(pluginId: string, apiVersion: '1.0' | '1.1'): Promise<IEntryPointApi>;
|
|
3004
|
+
getEntryPointApi(pluginId: string, apiVersion: '1.0' | '1.1' | '1.2'): Promise<IEntryPointApi>;
|
|
2989
3005
|
}
|
|
2990
3006
|
|
|
2991
3007
|
/**
|
|
@@ -3967,13 +3983,14 @@ export declare namespace toolview {
|
|
|
3967
3983
|
*/
|
|
3968
3984
|
export type ToolViewUnloadListener = (isClosing: boolean) => void;
|
|
3969
3985
|
/**
|
|
3970
|
-
* A callback function that handles tool view minimized
|
|
3986
|
+
* A callback function that handles tool view minimized events.
|
|
3971
3987
|
*
|
|
3972
3988
|
* @remarks
|
|
3973
|
-
* This listener receives an event
|
|
3989
|
+
* This listener receives an event after the docked tool view changes visibility in the i2 Notebook user interface,
|
|
3990
|
+
* as a result of a chart or another docked tool being maximized or restored.
|
|
3974
3991
|
*
|
|
3975
|
-
* @param isMinimized - `true` if the tool view is
|
|
3976
|
-
* `false` if
|
|
3992
|
+
* @param isMinimized - `true` if the tool view is now invisible for one of the reasons given;
|
|
3993
|
+
* `false` if it is now visible in the opposite circumstances.
|
|
3977
3994
|
* @i2since 1.2
|
|
3978
3995
|
*/
|
|
3979
3996
|
export type ToolViewMinimizedListener = (isMinimized: boolean) => void;
|
|
@@ -4055,10 +4072,10 @@ export declare namespace toolview {
|
|
|
4055
4072
|
*/
|
|
4056
4073
|
readonly isOpen: boolean;
|
|
4057
4074
|
/**
|
|
4058
|
-
* Indicates whether the
|
|
4075
|
+
* Indicates whether the tool view is open and docked but not visible in the user interface.
|
|
4059
4076
|
*
|
|
4060
|
-
* @returns `true` if the tool view is
|
|
4061
|
-
* `false` if
|
|
4077
|
+
* @returns `true` if the tool view is not visible because a chart or another tool view is maximized;
|
|
4078
|
+
* `false` if nothing is maximized, or if the tool view is closed or undocked.
|
|
4062
4079
|
* @i2since 1.2
|
|
4063
4080
|
*/
|
|
4064
4081
|
readonly isMinimized: boolean;
|
package/lib/index.js
CHANGED