@i2analyze/notebook-sdk 1.10.0-dev.24 → 1.10.0-dev.26

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.
@@ -1789,6 +1789,20 @@ export declare namespace chart {
1789
1789
  * @i2since 1.0
1790
1790
  */
1791
1791
  readonly name: string;
1792
+ /**
1793
+ * Indicates whether the chart is read-only for the current user.
1794
+ *
1795
+ * @remarks
1796
+ * A chart is read-only when the current user opened it as a read-only snapshot, for example because they
1797
+ * have view-only access to it, or because another user is editing it. The value is fixed for as long as the
1798
+ * chart remains open; the user must reopen the chart to change it.
1799
+ *
1800
+ * On a read-only chart, the application rolls back any mutation that would change the chart.
1801
+ * The mutation does not report an error; its promise resolves with a result that contains no changes.
1802
+ * Changes to the selection and to the view of the chart still apply for the current user.
1803
+ * @i2since 1.10
1804
+ */
1805
+ readonly isReadOnly: boolean;
1792
1806
  /**
1793
1807
  * Gets the schema of the chart, which describes the types and properties that records in the chart can have.
1794
1808
  * @i2since 1.0
@@ -5032,9 +5046,9 @@ export declare namespace dialog {
5032
5046
  * Explicit dimensions for a dialog window, as CSS length strings.
5033
5047
  *
5034
5048
  * @remarks
5035
- * Each axis is independent and is clamped to the `'large'` size (approximately the size of the
5036
- * viewport): a larger value is reduced to it. An omitted axis uses the `'medium'` size for that
5037
- * axis; it does not size the dialog to fit its content.
5049
+ * Both axes are required. Each axis is independent and is clamped to the `'large'` size
5050
+ * (approximately the size of the viewport): a larger value is reduced to it. To size the dialog's
5051
+ * height to fit its content, use {@link dialog.IDialogAutoHeightSize} instead.
5038
5052
  *
5039
5053
  * Each value must be an unsigned number followed by one of the units `px`, `rem`, `em`, `vh`,
5040
5054
  * `vw`, or `%` (for example, `'600px'`, `'40rem'`, or `'75%'`).
@@ -5042,15 +5056,42 @@ export declare namespace dialog {
5042
5056
  */
5043
5057
  export interface IDialogDimensions {
5044
5058
  /**
5045
- * Gets the width of the dialog. Omit to use the `'medium'` width. Clamped to the `'large'` size.
5059
+ * Gets the width of the dialog. Clamped to the `'large'` size.
5060
+ * @i2since 1.10
5061
+ */
5062
+ readonly width: string;
5063
+ /**
5064
+ * Gets the height of the dialog. Clamped to the `'large'` size.
5065
+ * @i2since 1.10
5066
+ */
5067
+ readonly height: string;
5068
+ }
5069
+ /**
5070
+ * A size for a dialog window that has a preset width and a height that fits its content.
5071
+ *
5072
+ * @remarks
5073
+ * The dialog's height follows the height of the content that it hosts, and changes as the content
5074
+ * changes. The height is at least a small minimum, and at most the `'large'` size (approximately
5075
+ * the size of the viewport); content that is taller than that scrolls.
5076
+ *
5077
+ * Either the dialog determines the size of the content, as with a preset or explicit dimensions,
5078
+ * or the content determines the size of the dialog, as it does here. The content must therefore
5079
+ * determine its own height. Content whose height depends on the height of the dialog, such as a
5080
+ * root element with `height: 100%` or a height in `vh` units, keeps the dialog at its current
5081
+ * height.
5082
+ * @i2since 1.10
5083
+ */
5084
+ export interface IDialogAutoHeightSize {
5085
+ /**
5086
+ * Gets the preset that sets the width of the dialog.
5046
5087
  * @i2since 1.10
5047
5088
  */
5048
- readonly width?: string;
5089
+ readonly width: DialogSize;
5049
5090
  /**
5050
- * Gets the height of the dialog. Omit to use the `'medium'` height. Clamped to the `'large'` size.
5091
+ * Gets the value that makes the height of the dialog fit its content.
5051
5092
  * @i2since 1.10
5052
5093
  */
5053
- readonly height?: string;
5094
+ readonly height: 'auto';
5054
5095
  }
5055
5096
  /**
5056
5097
  * An identifier of a dialog action.
@@ -5105,14 +5146,15 @@ export declare namespace dialog {
5105
5146
  */
5106
5147
  readonly path: string;
5107
5148
  /**
5108
- * Gets the size of the dialog, either as a named preset or as explicit dimensions.
5149
+ * Gets the size of the dialog, as a named preset, as a preset width with a height that fits the
5150
+ * content, or as explicit dimensions.
5109
5151
  *
5110
5152
  * @remarks
5111
- * Explicit {@link dialog.IDialogDimensions | dimensions} and the `'xmedium'` preset require
5112
- * version 1.10 or later.
5153
+ * The `'xmedium'` preset, {@link dialog.IDialogAutoHeightSize | auto-height sizes}, and explicit
5154
+ * {@link dialog.IDialogDimensions | dimensions} require version 1.10 or later.
5113
5155
  * @i2since 1.4
5114
5156
  */
5115
- readonly size: DialogSize | IDialogDimensions;
5157
+ readonly size: DialogSize | IDialogAutoHeightSize | IDialogDimensions;
5116
5158
  /**
5117
5159
  * Gets the data for populating the dialog when it's first displayed.
5118
5160
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@i2analyze/notebook-sdk",
3
- "version": "1.10.0-dev.24",
3
+ "version": "1.10.0-dev.26",
4
4
  "description": "i2 Notebook SDK",
5
5
  "license": "MIT",
6
6
  "publishConfig": {