@deephaven/console 1.30.1-plotly-v4.888ad98.0.sha-888ad98 → 1.30.1

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.
@@ -1,5 +1,7 @@
1
1
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
2
2
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
3
+ function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
4
+ function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
3
5
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
4
6
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
5
7
  function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
@@ -8,7 +10,6 @@ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e =
8
10
  */
9
11
  import React, { Component } from 'react';
10
12
  import classNames from 'classnames';
11
- import * as monaco from 'monaco-editor';
12
13
  import { assertNotNull } from '@deephaven/utils';
13
14
  import MonacoUtils from "../monaco/MonacoUtils.js";
14
15
  import "./Editor.css";
@@ -23,7 +24,11 @@ class Editor extends Component {
23
24
  this.state = {};
24
25
  }
25
26
  componentDidMount() {
26
- this.initEditor();
27
+ this.initEditor().catch(error => {
28
+ this.setState({
29
+ error
30
+ });
31
+ });
27
32
  window.addEventListener('resize', this.handleResize);
28
33
  }
29
34
  componentWillUnmount() {
@@ -34,7 +39,7 @@ class Editor extends Component {
34
39
  if (this.editor) {
35
40
  var model = this.editor.getModel();
36
41
  assertNotNull(model);
37
- monaco.editor.setModelLanguage(model, language);
42
+ MonacoUtils.getMonaco().editor.setModelLanguage(model, language);
38
43
  }
39
44
  }
40
45
  handleResize() {
@@ -54,57 +59,69 @@ class Editor extends Component {
54
59
  (_this$editor = this.editor) === null || _this$editor === void 0 || _this$editor.layout();
55
60
  }
56
61
  initEditor() {
57
- var onEditorInitialized = this.props.onEditorInitialized;
58
- var settings = this.props.settings;
59
- settings = _objectSpread({
60
- copyWithSyntaxHighlighting: false,
61
- fixedOverflowWidgets: true,
62
- folding: false,
63
- fontFamily: 'Fira Mono',
64
- glyphMargin: false,
65
- language: "python",
66
- lineNumbersMinChars: 3,
67
- minimap: {
68
- enabled: false
69
- },
70
- scrollBeyondLastLine: false,
71
- tabCompletion: 'on',
72
- value: '',
73
- wordWrap: 'off',
74
- links: true,
75
- autoClosingBrackets: 'beforeWhitespace'
76
- }, settings);
77
- assertNotNull(this.container);
78
- this.editor = monaco.editor.create(this.container, settings);
79
- this.editor.addAction({
80
- id: 'find',
81
- label: 'Find',
82
- keybindings: [
83
- // eslint-disable-next-line no-bitwise
84
- monaco.KeyMod.CtrlCmd | monaco.KeyCode.KeyF],
85
- precondition: undefined,
86
- keybindingContext: undefined,
87
- contextMenuGroupId: 'navigation',
88
- contextMenuOrder: 1.0,
89
- run: () => {
90
- this.toggleFind();
62
+ var _this = this;
63
+ return _asyncToGenerator(function* () {
64
+ var monaco = yield MonacoUtils.load();
65
+ // Unmounted, or mounted again, while loading
66
+ if (_this.container == null || _this.editor != null) {
67
+ return;
91
68
  }
92
- });
93
- this.editor.layout();
94
- monaco.languages.registerLinkProvider('plaintext', {
95
- provideLinks: MonacoUtils.provideLinks
96
- });
97
- onEditorInitialized(this.editor);
69
+ var onEditorInitialized = _this.props.onEditorInitialized;
70
+ var settings = _this.props.settings;
71
+ settings = _objectSpread({
72
+ copyWithSyntaxHighlighting: false,
73
+ fixedOverflowWidgets: true,
74
+ folding: false,
75
+ fontFamily: 'Fira Mono',
76
+ glyphMargin: false,
77
+ language: "python",
78
+ lineNumbersMinChars: 3,
79
+ minimap: {
80
+ enabled: false
81
+ },
82
+ scrollBeyondLastLine: false,
83
+ tabCompletion: 'on',
84
+ value: '',
85
+ wordWrap: 'off',
86
+ links: true,
87
+ autoClosingBrackets: 'beforeWhitespace'
88
+ }, settings);
89
+ _this.editor = monaco.editor.create(_this.container, settings);
90
+ _this.editor.addAction({
91
+ id: 'find',
92
+ label: 'Find',
93
+ keybindings: [
94
+ // eslint-disable-next-line no-bitwise
95
+ monaco.KeyMod.CtrlCmd | monaco.KeyCode.KeyF],
96
+ precondition: undefined,
97
+ keybindingContext: undefined,
98
+ contextMenuGroupId: 'navigation',
99
+ contextMenuOrder: 1.0,
100
+ run: () => {
101
+ _this.toggleFind();
102
+ }
103
+ });
104
+ _this.editor.layout();
105
+ MonacoUtils.registerLinkProvider();
106
+ onEditorInitialized(_this.editor);
107
+ })();
98
108
  }
99
109
  destroyEditor() {
100
110
  var onEditorWillDestroy = this.props.onEditorWillDestroy;
101
- assertNotNull(this.editor);
111
+ if (this.editor == null) {
112
+ return;
113
+ }
102
114
  onEditorWillDestroy(this.editor);
103
115
  this.editor.dispose();
104
116
  this.editor = undefined;
105
117
  }
106
118
  render() {
107
119
  var className = this.props.className;
120
+ var error = this.state.error;
121
+ if (error != null) {
122
+ // Surface a failed Monaco load to the nearest error boundary
123
+ throw error;
124
+ }
108
125
  return /*#__PURE__*/_jsx("div", {
109
126
  className: classNames('editor-container', className),
110
127
  ref: container => {
@@ -1 +1 @@
1
- {"version":3,"file":"Editor.js","names":["React","Component","classNames","monaco","assertNotNull","MonacoUtils","jsx","_jsx","Editor","constructor","props","_defineProperty","handleResize","bind","container","state","componentDidMount","initEditor","window","addEventListener","componentWillUnmount","removeEventListener","destroyEditor","setLanguage","language","editor","model","getModel","setModelLanguage","updateDimensions","toggleFind","focus","trigger","undefined","_this$editor","layout","onEditorInitialized","settings","_objectSpread","copyWithSyntaxHighlighting","fixedOverflowWidgets","folding","fontFamily","glyphMargin","lineNumbersMinChars","minimap","enabled","scrollBeyondLastLine","tabCompletion","value","wordWrap","links","autoClosingBrackets","create","addAction","id","label","keybindings","KeyMod","CtrlCmd","KeyCode","KeyF","precondition","keybindingContext","contextMenuGroupId","contextMenuOrder","run","languages","registerLinkProvider","provideLinks","onEditorWillDestroy","dispose","render","className","ref"],"sources":["../../src/notebook/Editor.tsx"],"sourcesContent":["/**\n * Editor editor for large blocks of code\n */\nimport React, { Component, type ReactElement } from 'react';\nimport classNames from 'classnames';\nimport * as monaco from 'monaco-editor';\nimport { assertNotNull } from '@deephaven/utils';\nimport MonacoUtils from '../monaco/MonacoUtils';\nimport './Editor.scss';\n\nexport interface EditorProps {\n className: string;\n onEditorInitialized: (editor: monaco.editor.IStandaloneCodeEditor) => void;\n onEditorWillDestroy: (editor: monaco.editor.IStandaloneCodeEditor) => void;\n settings: monaco.editor.IStandaloneEditorConstructionOptions;\n}\n\nclass Editor extends Component<EditorProps, Record<string, never>> {\n static defaultProps = {\n className: 'fill-parent-absolute',\n onEditorInitialized: (): void => undefined,\n onEditorWillDestroy: (): void => undefined,\n settings: {},\n };\n\n constructor(props: EditorProps) {\n super(props);\n\n this.handleResize = this.handleResize.bind(this);\n\n this.container = null;\n this.state = {};\n }\n\n componentDidMount(): void {\n this.initEditor();\n\n window.addEventListener('resize', this.handleResize);\n }\n\n componentWillUnmount(): void {\n window.removeEventListener('resize', this.handleResize);\n\n this.destroyEditor();\n }\n\n container: HTMLDivElement | null;\n\n editor?: monaco.editor.IStandaloneCodeEditor;\n\n setLanguage(language: string): void {\n if (this.editor) {\n const model = this.editor.getModel();\n assertNotNull(model);\n monaco.editor.setModelLanguage(model, language);\n }\n }\n\n handleResize(): void {\n this.updateDimensions();\n }\n\n toggleFind(): void {\n if (this.editor) {\n // The actions.find action can no longer be triggered when the editor is not in focus, with monaco 0.22.x.\n // As a workaround, just focus the editor before triggering the action\n // https://github.com/microsoft/monaco-editor/issues/2355\n this.editor.focus();\n this.editor.trigger('toggleFind', 'actions.find', undefined);\n }\n }\n\n updateDimensions(): void {\n this.editor?.layout();\n }\n\n initEditor(): void {\n const { onEditorInitialized } = this.props;\n let { settings } = this.props;\n settings = {\n copyWithSyntaxHighlighting: false,\n fixedOverflowWidgets: true,\n folding: false,\n fontFamily: 'Fira Mono',\n glyphMargin: false,\n language: `python`,\n lineNumbersMinChars: 3,\n minimap: { enabled: false },\n scrollBeyondLastLine: false,\n tabCompletion: 'on',\n value: '',\n wordWrap: 'off',\n links: true,\n autoClosingBrackets: 'beforeWhitespace',\n ...settings,\n };\n assertNotNull(this.container);\n\n this.editor = monaco.editor.create(this.container, settings);\n\n this.editor.addAction({\n id: 'find',\n label: 'Find',\n keybindings: [\n // eslint-disable-next-line no-bitwise\n monaco.KeyMod.CtrlCmd | monaco.KeyCode.KeyF,\n ],\n precondition: undefined,\n keybindingContext: undefined,\n contextMenuGroupId: 'navigation',\n contextMenuOrder: 1.0,\n\n run: () => {\n this.toggleFind();\n },\n });\n this.editor.layout();\n\n monaco.languages.registerLinkProvider('plaintext', {\n provideLinks: MonacoUtils.provideLinks,\n });\n\n onEditorInitialized(this.editor);\n }\n\n destroyEditor(): void {\n const { onEditorWillDestroy } = this.props;\n assertNotNull(this.editor);\n onEditorWillDestroy(this.editor);\n this.editor.dispose();\n this.editor = undefined;\n }\n\n render(): ReactElement {\n const { className } = this.props;\n return (\n <div\n className={classNames('editor-container', className)}\n ref={container => {\n this.container = container;\n }}\n />\n );\n }\n}\n\nexport default Editor;\n"],"mappings":";;;;;AAAA;AACA;AACA;AACA,OAAOA,KAAK,IAAIC,SAAS,QAA2B,OAAO;AAC3D,OAAOC,UAAU,MAAM,YAAY;AACnC,OAAO,KAAKC,MAAM,MAAM,eAAe;AACvC,SAASC,aAAa,QAAQ,kBAAkB;AAAC,OAC1CC,WAAW;AAAA;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAUlB,MAAMC,MAAM,SAASP,SAAS,CAAqC;EAQjEQ,WAAWA,CAACC,KAAkB,EAAE;IAC9B,KAAK,CAACA,KAAK,CAAC;IAACC,eAAA;IAAAA,eAAA;IAEb,IAAI,CAACC,YAAY,GAAG,IAAI,CAACA,YAAY,CAACC,IAAI,CAAC,IAAI,CAAC;IAEhD,IAAI,CAACC,SAAS,GAAG,IAAI;IACrB,IAAI,CAACC,KAAK,GAAG,CAAC,CAAC;EACjB;EAEAC,iBAAiBA,CAAA,EAAS;IACxB,IAAI,CAACC,UAAU,CAAC,CAAC;IAEjBC,MAAM,CAACC,gBAAgB,CAAC,QAAQ,EAAE,IAAI,CAACP,YAAY,CAAC;EACtD;EAEAQ,oBAAoBA,CAAA,EAAS;IAC3BF,MAAM,CAACG,mBAAmB,CAAC,QAAQ,EAAE,IAAI,CAACT,YAAY,CAAC;IAEvD,IAAI,CAACU,aAAa,CAAC,CAAC;EACtB;EAMAC,WAAWA,CAACC,QAAgB,EAAQ;IAClC,IAAI,IAAI,CAACC,MAAM,EAAE;MACf,IAAMC,KAAK,GAAG,IAAI,CAACD,MAAM,CAACE,QAAQ,CAAC,CAAC;MACpCvB,aAAa,CAACsB,KAAK,CAAC;MACpBvB,MAAM,CAACsB,MAAM,CAACG,gBAAgB,CAACF,KAA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E,sBAAsB;EACjCrC,mBAAmB,EAAEA,CAAA,KAAYH,SAAS;EAC1CqC,mBAAmB,EAAEA,CAAA,KAAYrC,SAAS;EAC1CI,QAAQ,EAAE,CAAC;AACb,CAAC;AA2HH,eAAe7B,MAAM","ignoreList":[]}
1
+ {"version":3,"file":"Editor.js","names":["React","Component","classNames","assertNotNull","MonacoUtils","jsx","_jsx","Editor","constructor","props","_defineProperty","handleResize","bind","container","state","componentDidMount","initEditor","catch","error","setState","window","addEventListener","componentWillUnmount","removeEventListener","destroyEditor","setLanguage","language","editor","model","getModel","getMonaco","setModelLanguage","updateDimensions","toggleFind","focus","trigger","undefined","_this$editor","layout","_this","_asyncToGenerator","monaco","load","onEditorInitialized","settings","_objectSpread","copyWithSyntaxHighlighting","fixedOverflowWidgets","folding","fontFamily","glyphMargin","lineNumbersMinChars","minimap","enabled","scrollBeyondLastLine","tabCompletion","value","wordWrap","links","autoClosingBrackets","create","addAction","id","label","keybindings","KeyMod","CtrlCmd","KeyCode","KeyF","precondition","keybindingContext","contextMenuGroupId","contextMenuOrder","run","registerLinkProvider","onEditorWillDestroy","dispose","render","className","ref"],"sources":["../../src/notebook/Editor.tsx"],"sourcesContent":["/**\n * Editor editor for large blocks of code\n */\nimport React, { Component, type ReactElement } from 'react';\nimport classNames from 'classnames';\nimport type * as monaco from 'monaco-editor';\nimport { assertNotNull } from '@deephaven/utils';\nimport MonacoUtils from '../monaco/MonacoUtils';\nimport './Editor.scss';\n\nexport interface EditorProps {\n className: string;\n onEditorInitialized: (editor: monaco.editor.IStandaloneCodeEditor) => void;\n onEditorWillDestroy: (editor: monaco.editor.IStandaloneCodeEditor) => void;\n settings: monaco.editor.IStandaloneEditorConstructionOptions;\n}\n\nclass Editor extends Component<EditorProps, { error?: unknown }> {\n static defaultProps = {\n className: 'fill-parent-absolute',\n onEditorInitialized: (): void => undefined,\n onEditorWillDestroy: (): void => undefined,\n settings: {},\n };\n\n constructor(props: EditorProps) {\n super(props);\n\n this.handleResize = this.handleResize.bind(this);\n\n this.container = null;\n this.state = {};\n }\n\n componentDidMount(): void {\n this.initEditor().catch(error => {\n this.setState({ error });\n });\n\n window.addEventListener('resize', this.handleResize);\n }\n\n componentWillUnmount(): void {\n window.removeEventListener('resize', this.handleResize);\n\n this.destroyEditor();\n }\n\n container: HTMLDivElement | null;\n\n editor?: monaco.editor.IStandaloneCodeEditor;\n\n setLanguage(language: string): void {\n if (this.editor) {\n const model = this.editor.getModel();\n assertNotNull(model);\n MonacoUtils.getMonaco().editor.setModelLanguage(model, language);\n }\n }\n\n handleResize(): void {\n this.updateDimensions();\n }\n\n toggleFind(): void {\n if (this.editor) {\n // The actions.find action can no longer be triggered when the editor is not in focus, with monaco 0.22.x.\n // As a workaround, just focus the editor before triggering the action\n // https://github.com/microsoft/monaco-editor/issues/2355\n this.editor.focus();\n this.editor.trigger('toggleFind', 'actions.find', undefined);\n }\n }\n\n updateDimensions(): void {\n this.editor?.layout();\n }\n\n async initEditor(): Promise<void> {\n const monaco = await MonacoUtils.load();\n // Unmounted, or mounted again, while loading\n if (this.container == null || this.editor != null) {\n return;\n }\n\n const { onEditorInitialized } = this.props;\n let { settings } = this.props;\n settings = {\n copyWithSyntaxHighlighting: false,\n fixedOverflowWidgets: true,\n folding: false,\n fontFamily: 'Fira Mono',\n glyphMargin: false,\n language: `python`,\n lineNumbersMinChars: 3,\n minimap: { enabled: false },\n scrollBeyondLastLine: false,\n tabCompletion: 'on',\n value: '',\n wordWrap: 'off',\n links: true,\n autoClosingBrackets: 'beforeWhitespace',\n ...settings,\n };\n\n this.editor = monaco.editor.create(this.container, settings);\n\n this.editor.addAction({\n id: 'find',\n label: 'Find',\n keybindings: [\n // eslint-disable-next-line no-bitwise\n monaco.KeyMod.CtrlCmd | monaco.KeyCode.KeyF,\n ],\n precondition: undefined,\n keybindingContext: undefined,\n contextMenuGroupId: 'navigation',\n contextMenuOrder: 1.0,\n\n run: () => {\n this.toggleFind();\n },\n });\n this.editor.layout();\n\n MonacoUtils.registerLinkProvider();\n\n onEditorInitialized(this.editor);\n }\n\n destroyEditor(): void {\n const { onEditorWillDestroy } = this.props;\n if (this.editor == null) {\n return;\n }\n onEditorWillDestroy(this.editor);\n this.editor.dispose();\n this.editor = undefined;\n }\n\n render(): ReactElement {\n const { className } = this.props;\n const { error } = this.state;\n if (error != null) {\n // Surface a failed Monaco load to the nearest error boundary\n throw error;\n }\n return (\n <div\n className={classNames('editor-container', className)}\n ref={container => {\n this.container = container;\n }}\n />\n );\n }\n}\n\nexport default Editor;\n"],"mappings":";;;;;;;AAAA;AACA;AACA;AACA,OAAOA,KAAK,IAAIC,SAAS,QAA2B,OAAO;AAC3D,OAAOC,UAAU,MAAM,YAAY;AAEnC,SAASC,aAAa,QAAQ,kBAAkB;AAAC,OAC1CC,WAAW;AAAA;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAUlB,MAAMC,MAAM,SAASN,SAAS,CAAmC;EAQ/DO,WAAWA,CAACC,KAAkB,EAAE;IAC9B,KAAK,CAACA,KAAK,CAAC;IAACC,eAAA;IAAAA,eAAA;IAEb,IAAI,CAACC,YAAY,GAAG,IAAI,CAACA,YAAY,CAACC,IAAI,CAAC,IAAI,CAAC;IAEhD,IAAI,CAACC,SAAS,GAAG,IAAI;IACrB,IAAI,CAACC,KAAK,GAAG,CAAC,CAAC;EACjB;EAEAC,iBAAiBA,CAAA,EAAS;IACxB,IAAI,CAACC,UAAU,CAAC,CAAC,CAACC,KAAK,CAACC,KAAK,IAAI;MAC/B,IAAI,CAACC,QAAQ,CAAC;QAAED;MAAM,CAAC,CAAC;IAC1B,CAAC,CAAC;IAEFE,MAAM,CAACC,gBAAgB,CAAC,QAAQ,EAAE,IAAI,CAACV,YAAY,CAAC;EACtD;EAEAW,oBAAoBA,CAAA,EAAS;IAC3BF,MAAM,CAACG,mBAAmB,CAAC,QAAQ,EAAE,IAAI,CAACZ,YAAY,CAAC;IAEvD,IAAI,CAACa,aAAa,CAAC,CAAC;EACtB;EAMAC,WA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AM,GAAGS,SAAS;EACzB;EAEAyC,MAAMA,CAAA,EAAiB;IACrB,IAAQC,SAAS,GAAK,IAAI,CAACrE,KAAK,CAAxBqE,SAAS;IACjB,IAAQ5D,KAAK,GAAK,IAAI,CAACJ,KAAK,CAApBI,KAAK;IACb,IAAIA,KAAK,IAAI,IAAI,EAAE;MACjB;MACA,MAAMA,KAAK;IACb;IACA,oBACEZ,IAAA;MACEwE,SAAS,EAAE5E,UAAU,CAAC,kBAAkB,EAAE4E,SAAS,CAAE;MACrDC,GAAG,EAAElE,SAAS,IAAI;QAChB,IAAI,CAACA,SAAS,GAAGA,SAAS;MAC5B;IAAE,CACH,CAAC;EAEN;AACF;AAACH,eAAA,CA3IKH,MAAM,kBACY;EACpBuE,SAAS,EAAE,sBAAsB;EACjCnC,mBAAmB,EAAEA,CAAA,KAAYP,SAAS;EAC1CuC,mBAAmB,EAAEA,CAAA,KAAYvC,SAAS;EAC1CQ,QAAQ,EAAE,CAAC;AACb,CAAC;AAuIH,eAAerC,MAAM","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deephaven/console",
3
- "version": "1.30.1-plotly-v4.888ad98.0.sha-888ad98",
3
+ "version": "1.30.1",
4
4
  "description": "Deephaven Console",
5
5
  "author": "Deephaven Data Labs LLC",
6
6
  "license": "Apache-2.0",
@@ -15,7 +15,7 @@
15
15
  "source": "src/index.js",
16
16
  "types": "dist/index.d.ts",
17
17
  "engines": {
18
- "node": ">=22"
18
+ "node": ">=16"
19
19
  },
20
20
  "scripts": {
21
21
  "build": "cross-env NODE_ENV=production run-p build:*",
@@ -24,16 +24,16 @@
24
24
  },
25
25
  "dependencies": {
26
26
  "@astral-sh/ruff-wasm-web": "0.6.4",
27
- "@deephaven/chart": "^1.30.1-plotly-v4.888ad98.0.sha-888ad98",
28
- "@deephaven/components": "^1.30.1-plotly-v4.888ad98.0.sha-888ad98",
29
- "@deephaven/icons": "^1.30.1-plotly-v4.888ad98.0.sha-888ad98",
30
- "@deephaven/jsapi-bootstrap": "^1.30.1-plotly-v4.888ad98.0.sha-888ad98",
27
+ "@deephaven/chart": "^1.30.0",
28
+ "@deephaven/components": "^1.30.0",
29
+ "@deephaven/icons": "^1.2.0",
30
+ "@deephaven/jsapi-bootstrap": "^1.30.0",
31
31
  "@deephaven/jsapi-types": "^1.0.0-dev0.40.4",
32
- "@deephaven/jsapi-utils": "^1.30.1-plotly-v4.888ad98.0.sha-888ad98",
33
- "@deephaven/log": "^1.30.1-plotly-v4.888ad98.0.sha-888ad98",
34
- "@deephaven/react-hooks": "^1.30.1-plotly-v4.888ad98.0.sha-888ad98",
35
- "@deephaven/storage": "^1.30.1-plotly-v4.888ad98.0.sha-888ad98",
36
- "@deephaven/utils": "^1.30.1-plotly-v4.888ad98.0.sha-888ad98",
32
+ "@deephaven/jsapi-utils": "^1.29.0",
33
+ "@deephaven/log": "^1.8.0",
34
+ "@deephaven/react-hooks": "^1.30.0",
35
+ "@deephaven/storage": "^1.8.0",
36
+ "@deephaven/utils": "^1.29.0",
37
37
  "@fortawesome/react-fontawesome": "^0.2.0",
38
38
  "classnames": "^2.3.1",
39
39
  "linkifyjs": "^4.1.0",
@@ -48,13 +48,13 @@
48
48
  "shell-quote": "^1.7.2"
49
49
  },
50
50
  "peerDependencies": {
51
- "react": "^18.0.0 || ^19.0.0",
52
- "react-dom": "^18.0.0 || ^19.0.0"
51
+ "react": ">=16.8.0",
52
+ "react-dom": ">=16.8.0"
53
53
  },
54
54
  "devDependencies": {
55
- "@deephaven/jsapi-shim": "^1.30.1-plotly-v4.888ad98.0.sha-888ad98",
56
- "@deephaven/mocks": "^1.30.1-plotly-v4.888ad98.0.sha-888ad98",
57
- "@deephaven/test-utils": "^1.30.1-plotly-v4.888ad98.0.sha-888ad98"
55
+ "@deephaven/jsapi-shim": "^1.9.0",
56
+ "@deephaven/mocks": "^1.1.0",
57
+ "@deephaven/test-utils": "^1.8.0"
58
58
  },
59
59
  "files": [
60
60
  "dist"
@@ -65,5 +65,5 @@
65
65
  "publishConfig": {
66
66
  "access": "public"
67
67
  },
68
- "gitHead": "888ad98495074ec23535376001b109715945d819"
68
+ "gitHead": "9f01b8714c1b2b7edeba5a231a5d3e84cf73f690"
69
69
  }