@i2analyze/notebook-sdk 1.3.0-dev.0 → 1.3.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.
@@ -2988,6 +2988,14 @@ export declare interface IEntryPointApi extends app.IApplication {
2988
2988
  * @i2since 1.0
2989
2989
  */
2990
2990
  createToolView(name: string, path: string): toolview.IToolView;
2991
+ /**
2992
+ * Creates and returns a tool view for a plug-in to use.
2993
+ *
2994
+ * @param config - The information necessary for creating the tool view where you can define the default opening size and postion.
2995
+ * @returns The new tool view.
2996
+ * @i2since 1.3
2997
+ */
2998
+ createToolView(config: toolview.IToolViewConfig): toolview.IToolView;
2991
2999
  /**
2992
3000
  * Gets the core API for custom commands.
2993
3001
  * @i2since 1.0
@@ -3115,7 +3123,7 @@ export declare interface NotebookStatic {
3115
3123
  * @public
3116
3124
  * @i2since 1.0
3117
3125
  */
3118
- getEntryPointApi(pluginId: string, apiVersion: '1.0' | '1.1' | '1.2'): Promise<IEntryPointApi>;
3126
+ getEntryPointApi(pluginId: string, apiVersion: '1.0' | '1.1' | '1.2' | '1.3'): Promise<IEntryPointApi>;
3119
3127
  }
3120
3128
 
3121
3129
  /**
@@ -4086,6 +4094,46 @@ export declare namespace toolview {
4086
4094
  * @i2since 1.0
4087
4095
  */
4088
4096
  export type ToolViewStateListener = (state: 'open' | 'closed') => void;
4097
+ /**
4098
+ * The position of the tool view.
4099
+ * @i2since 1.3
4100
+ */
4101
+ export type ToolPosition = 'leading' | 'trailing' | 'top' | 'bottom';
4102
+ /**
4103
+ * The size of the tool view.
4104
+ * @i2since 1.3
4105
+ */
4106
+ export type ToolSize = 'small' | 'medium' | 'large';
4107
+ /**
4108
+ * A set of information related to the toolview.
4109
+ * @i2since 1.3
4110
+ */
4111
+ export interface IToolViewConfig {
4112
+ /**
4113
+ * Gets the name of the tool view, which appears as a heading in the user interface.
4114
+ * @i2since 1.3
4115
+ */
4116
+ name: string;
4117
+ /**
4118
+ * Gets the path to the plug-in view to host in the tool view, relative to the plug-in entry point.
4119
+ *
4120
+ * @remarks For example, setting `path` to '`./`' makes the server request the contents of the folder
4121
+ * that contains the entry point.
4122
+ *
4123
+ * @i2since 1.3
4124
+ */
4125
+ path: string;
4126
+ /**
4127
+ * Gets the size of the tool view.
4128
+ * @i2since 1.3
4129
+ */
4130
+ size?: ToolSize;
4131
+ /**
4132
+ * Gets the position of the tool view.
4133
+ * @i2since 1.3
4134
+ */
4135
+ position?: ToolPosition;
4136
+ }
4089
4137
  /**
4090
4138
  * A callback function that handles tool view unload events.
4091
4139
  *
@@ -4174,7 +4222,8 @@ export declare namespace toolview {
4174
4222
  clear(): void;
4175
4223
  }
4176
4224
  /**
4177
- * A tool view, as returned by {@link IEntryPointApi.createToolView}.
4225
+ * A tool view, as returned by {@link IEntryPointApi.(createToolView:1)}.
4226
+ *
4178
4227
  * @i2since 1.0
4179
4228
  */
4180
4229
  export interface IToolView {
package/lib/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  * i2, i2 Group, the i2 Group logo, and i2group.com are trademarks of N.Harris Computer Corporation.
3
3
  * © N.Harris Computer Corporation (2022)
4
4
  */
5
- const apiVersion = '1.2';
5
+ const apiVersion = '1.3';
6
6
  /**
7
7
  * Retrieves the plug-in entry point API.
8
8
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@i2analyze/notebook-sdk",
3
- "version": "1.3.0-dev.0",
3
+ "version": "1.3.0-dev.2",
4
4
  "description": "i2 Notebook SDK",
5
5
  "license": "MIT",
6
6
  "publishConfig": {