@i2analyze/notebook-sdk 1.1.0-dev.26 → 1.1.0-dev.27

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @i2analyze/notebook-sdk
2
2
 
3
+ ## 1.1.0-dev.27
4
+
5
+ ### Minor Changes
6
+
7
+ - Add options parameter to IApplication.runTrackedMutation and IApplication.runUntrackedMutation.
8
+
3
9
  ## 1.1.0-dev.26
4
10
 
5
11
  ### Minor Changes
@@ -75,9 +75,10 @@ export declare namespace app {
75
75
  * A successful set of tracked mutations is added as a single entry to the undo stack.
76
76
  *
77
77
  * @param mutationHandler - A function that performs one or more tracked mutations and reports on their success as a whole.
78
+ * @param options - An object that can control the transaction.
78
79
  * @i2since 1.1
79
80
  */
80
- runTrackedMutations(mutationHandler: TrackedMutationHandler): void;
81
+ runTrackedMutations(mutationHandler: TrackedMutationHandler, options?: ITransactionOptions): void;
81
82
  /**
82
83
  * Queues a function that performs untracked mutations on the application contents at the next available opportunity.
83
84
  *
@@ -86,9 +87,10 @@ export declare namespace app {
86
87
  * Untracked mutations are not added to the undo stack, and therefore cannot be undone.
87
88
  *
88
89
  * @param mutationHandler - A function that performs one or more untracked mutations and reports on their success as a whole.
90
+ * @param options - An object that can control the transaction.
89
91
  * @i2since 1.1
90
92
  */
91
- runUntrackedMutations(mutationHandler: UntrackedMutationHandler): void;
93
+ runUntrackedMutations(mutationHandler: UntrackedMutationHandler, options?: ITransactionOptions): void;
92
94
  }
93
95
  /**
94
96
  * A report on the result of one or more mutations.
@@ -851,11 +853,10 @@ export declare namespace app {
851
853
  */
852
854
  export interface IServerComponents {
853
855
  /**
854
- * Gets the base url of the i2 Analyze server.
856
+ * Gets the base URL of the i2 Analyze server. For example, `http://localhost:3000/opal/`.
855
857
  *
856
- * E.g. http://localhost:3000/opal/.
857
- *
858
- * @remarks Note: The url will not contain any query parameters.
858
+ * @remarks
859
+ * The base URL always ends with a forward slash, and never contains query parameters.
859
860
  * @i2since 1.1
860
861
  */
861
862
  readonly baseUrl: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@i2analyze/notebook-sdk",
3
- "version": "1.1.0-dev.26",
3
+ "version": "1.1.0-dev.27",
4
4
  "description": "i2 Notebook SDK",
5
5
  "license": "MIT",
6
6
  "publishConfig": {