You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by mi...@apache.org on 2026/06/30 13:36:30 UTC
(superset) 01/01: feat(extensions): add Chat contribution type (SIP-214) (#41205)
This is an automated email from the ASF dual-hosted git repository.
michael-s-molina pushed a commit to branch 6.2
in repository https://gitbox.apache.org/repos/asf/superset.git
commit 592d92e58251f1056112ac6e24adfbafc2c13133
Author: Michael S. Molina <mi...@gmail.com>
AuthorDate: Tue Jun 30 10:04:05 2026 -0300
feat(extensions): add Chat contribution type (SIP-214) (#41205)
Co-authored-by: Enzo Martellucci <52...@users.noreply.github.com>
Co-authored-by: Enzo Martellucci <en...@gmail.com>
Co-authored-by: Claude Opus 4.8 (1M context) <no...@anthropic.com>
(cherry picked from commit a90c8e034762c639ce7dbc38217f9ecf3406f38c)
---
.pylintrc | 2 +-
.../extensions/contribution-types.md | 23 +-
.../extensions/extension-points/chat.md | 141 ++
docs/developer_docs/sidebars.js | 2 +
package-lock.json | 6 +
superset-frontend/package-lock.json | 1904 +++++++++-----------
superset-frontend/package.json | 3 +
.../packages/superset-core/package.json | 8 +
.../packages/superset-core/src/chat/index.ts | 156 ++
.../packages/superset-core/src/common/index.ts | 2 -
.../superset-core/src/contributions/index.ts | 12 +-
.../packages/superset-core/src/index.ts | 2 +
.../packages/superset-core/src/menus/index.ts | 36 +-
.../packages/superset-core/src/navigation/index.ts | 81 +
.../packages/superset-core/src/views/index.ts | 42 +-
superset-frontend/src/core/chat/ChatHost.test.tsx | 277 +++
superset-frontend/src/core/chat/ChatHost.tsx | 133 ++
.../src/core/chat/ChatProvider.test.ts | 257 +++
superset-frontend/src/core/chat/ChatProvider.ts | 209 +++
superset-frontend/src/core/chat/index.test.ts | 68 +
superset-frontend/src/core/chat/index.ts | 82 +
.../src/core/editors/EditorProviders.test.ts | 27 -
.../src/core/editors/EditorProviders.ts | 70 +-
superset-frontend/src/core/editors/index.ts | 123 +-
superset-frontend/src/core/index.ts | 2 +
superset-frontend/src/core/menus/index.ts | 66 +-
.../src/core/navigation/index.test.ts | 124 ++
superset-frontend/src/core/navigation/index.ts | 94 +
superset-frontend/src/core/sqlLab/index.ts | 2 +-
.../src/core/{utils.ts => storeUtils.ts} | 15 +-
superset-frontend/src/core/utils.ts | 67 +-
superset-frontend/src/core/views/index.ts | 82 +-
.../src/extensions/ExtensionsLoader.test.ts | 1 -
.../src/extensions/ExtensionsStartup.test.tsx | 10 +
.../src/extensions/ExtensionsStartup.tsx | 29 +-
superset-frontend/src/extensions/Namespaces.ts | 60 +
superset-frontend/src/utils/localStorageHelpers.ts | 2 +
superset-frontend/src/views/App.tsx | 168 +-
superset-frontend/src/views/routePaths.ts | 60 +
superset-frontend/src/views/routes.tsx | 208 +--
superset/commands/report/execute.py | 2 +-
superset/db_engine_specs/base.py | 2 +-
superset/extensions/utils.py | 1 +
superset/migrations/shared/utils.py | 2 +-
superset/utils/log.py | 2 +-
45 files changed, 3104 insertions(+), 1561 deletions(-)
diff --git a/.pylintrc b/.pylintrc
index 010f0d16b47..8483a1f6c4d 100644
--- a/.pylintrc
+++ b/.pylintrc
@@ -53,7 +53,7 @@ extension-pkg-whitelist=pyarrow
[MESSAGES CONTROL]
disable=all
-enable=json-import,disallowed-sql-import,consider-using-transaction
+enable=disallowed-sql-import,consider-using-transaction
[REPORTS]
diff --git a/docs/developer_docs/extensions/contribution-types.md b/docs/developer_docs/extensions/contribution-types.md
index 6fa8bf7f9a5..9d14c337cab 100644
--- a/docs/developer_docs/extensions/contribution-types.md
+++ b/docs/developer_docs/extensions/contribution-types.md
@@ -34,15 +34,14 @@ Frontend contribution types allow extensions to extend Superset's user interface
Extensions can add new views or panels to the host application, such as custom SQL Lab panels, dashboards, or other UI components. Contribution areas are uniquely identified (e.g., `sqllab.panels` for SQL Lab panels), enabling seamless integration into specific parts of the application.
-```tsx
-import React from 'react';
+```typescript
import { views } from '@apache-superset/core';
import MyPanel from './MyPanel';
views.registerView(
{ id: 'my-extension.main', name: 'My Panel Name' },
'sqllab.panels',
- () => <MyPanel />,
+ MyPanel,
);
```
@@ -112,6 +111,24 @@ editors.registerEditor(
See [Editors Extension Point](./extension-points/editors) for implementation details.
+### Chat
+
+Extensions can add a chat interface to Superset by registering a trigger component and a panel component. The host owns the layout, open/close state, and display mode — the extension only provides the UI. The panel can be displayed as a floating overlay or docked as a resizable sidebar beside the page content, and the user's preference is persisted across reloads.
+
+```tsx
+import { chat } from '@apache-superset/core';
+import ChatTrigger from './ChatTrigger';
+import ChatPanel from './ChatPanel';
+
+chat.registerChat(
+ { id: 'my-org.my-chat', name: 'My Chat' },
+ ChatTrigger,
+ ChatPanel,
+);
+```
+
+See [Chat](./extension-points/chat.md) for implementation details.
+
## Backend
Backend contribution types allow extensions to extend Superset's server-side capabilities. Backend contributions are registered at startup via classes and functions imported from the auto-discovered `entrypoint.py` file.
diff --git a/docs/developer_docs/extensions/extension-points/chat.md b/docs/developer_docs/extensions/extension-points/chat.md
new file mode 100644
index 00000000000..e99b7979d78
--- /dev/null
+++ b/docs/developer_docs/extensions/extension-points/chat.md
@@ -0,0 +1,141 @@
+---
+title: Chat
+sidebar_position: 3
+---
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+# Chat Contributions
+
+Extensions can add a chat interface to Superset by registering a trigger and a panel. The host owns the layout, open/close state, and display mode — the extension only needs to provide the UI components.
+
+## Overview
+
+A chat registration consists of two React components:
+
+| Component | Role |
+|-----------|------|
+| **Trigger** | Always-visible entry point (e.g., a floating button). Rendered in the bottom-right corner in floating mode, or as a fixed overlay in panel mode. |
+| **Panel** | The chat UI itself (message list, input, etc.). Mounted by the host in the active display mode. |
+
+## Display Modes
+
+The host supports two display modes, switchable by the user or the extension at runtime:
+
+| Mode | Behavior |
+|------|----------|
+| `floating` | Panel floats above page content, anchored to the bottom-right corner. |
+| `panel` | Panel is docked to the right side of the application as a resizable sidebar, sitting beside the page content. |
+
+The user's last selected mode and open/closed state are persisted across page reloads.
+
+## Registering a Chat
+
+Call `chat.registerChat` from your extension's entry point with a descriptor, a trigger factory, and a panel factory:
+
+```tsx
+import { chat } from '@apache-superset/core';
+import ChatTrigger from './ChatTrigger';
+import ChatPanel from './ChatPanel';
+
+chat.registerChat(
+ { id: 'my-org.my-chat', name: 'My Chat' },
+ ChatTrigger,
+ ChatPanel,
+);
+```
+
+Only one chat registration is active at a time. If a second extension calls `registerChat`, it replaces the first and a warning is logged.
+
+## Opening and Closing the Chat
+
+The trigger component is responsible for toggling the panel. Use `chat.isOpen()`, `chat.open()`, and `chat.close()` to control visibility:
+
+```tsx
+import { chat } from '@apache-superset/core';
+
+export default function ChatTrigger() {
+ return (
+ <button onClick={() => (chat.isOpen() ? chat.close() : chat.open())}>
+ 💬
+ </button>
+ );
+}
+```
+
+You can also subscribe to open/close events from any component:
+
+```tsx
+useEffect(() => {
+ const { dispose } = chat.onDidOpen(() => console.log('chat opened'));
+ return dispose;
+}, []);
+```
+
+## Changing the Display Mode
+
+Call `chat.setDisplayMode` to switch between `'floating'` and `'panel'` modes. In your panel component, subscribe to `onDidChangeDisplayMode` to react to changes (including those triggered by the user):
+
+```tsx
+import { useState, useEffect } from 'react';
+import { chat } from '@apache-superset/core';
+
+export default function ChatPanel() {
+ const [mode, setMode] = useState(chat.getDisplayMode());
+
+ useEffect(() => {
+ const { dispose } = chat.onDidChangeDisplayMode(m => setMode(m));
+ return dispose;
+ }, []);
+
+ return (
+ <div style={{ height: mode === 'panel' ? '100%' : '80vh' }}>
+ <button onClick={() => chat.setDisplayMode(mode === 'panel' ? 'floating' : 'panel')}>
+ {mode === 'panel' ? 'Float' : 'Dock'}
+ </button>
+ {/* message list and input */}
+ </div>
+ );
+}
+```
+
+## Chat API Reference
+
+All methods are available on the `chat` namespace from `@apache-superset/core`:
+
+| Method / Event | Description |
+|----------------|-------------|
+| `registerChat(descriptor, trigger, panel)` | Register a chat extension. Returns a `Disposable` to unregister. |
+| `open()` | Open the chat panel. No-op if already open or no registration. |
+| `close()` | Close the chat panel. |
+| `isOpen()` | Returns `true` if the panel is currently open. |
+| `getDisplayMode()` | Returns the current display mode (`'floating'` or `'panel'`). |
+| `setDisplayMode(mode)` | Switch between `'floating'` and `'panel'` mode. |
+| `onDidOpen(listener)` | Subscribe to panel open events. Returns a `Disposable`. |
+| `onDidClose(listener)` | Subscribe to panel close events. Returns a `Disposable`. |
+| `onDidChangeDisplayMode(listener)` | Subscribe to display mode changes. Returns a `Disposable`. |
+| `onDidRegisterChat(listener)` | Subscribe to registration events. |
+| `onDidUnregisterChat(listener)` | Subscribe to unregistration events. |
+| `onDidResizePanel(listener)` | Subscribe to panel resize events (panel mode only). Not all hosts provide a resizer — do not rely on this firing. Returns a `Disposable`. |
+
+## Next Steps
+
+- **[Contribution Types](../contribution-types.md)** — Explore other contribution types
+- **[Development](../development.md)** — Set up your development environment
diff --git a/docs/developer_docs/sidebars.js b/docs/developer_docs/sidebars.js
index 7926d80cf61..fe03dac7b8f 100644
--- a/docs/developer_docs/sidebars.js
+++ b/docs/developer_docs/sidebars.js
@@ -47,6 +47,8 @@ module.exports = {
collapsed: true,
items: [
'extensions/extension-points/sqllab',
+ 'extensions/extension-points/editors',
+ 'extensions/extension-points/chat',
],
},
'extensions/development',
diff --git a/package-lock.json b/package-lock.json
new file mode 100644
index 00000000000..4f536ac9732
--- /dev/null
+++ b/package-lock.json
@@ -0,0 +1,6 @@
+{
+ "name": "superset-release",
+ "lockfileVersion": 3,
+ "requires": true,
+ "packages": {}
+}
diff --git a/superset-frontend/package-lock.json b/superset-frontend/package-lock.json
index f74eb647614..c33f2c3de36 100644
--- a/superset-frontend/package-lock.json
+++ b/superset-frontend/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "superset",
- "version": "0.0.0-dev",
+ "version": "6.1.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "superset",
- "version": "0.0.0-dev",
+ "version": "6.1.0",
"license": "Apache-2.0",
"workspaces": [
"packages/*",
@@ -149,6 +149,7 @@
"use-event-callback": "^0.1.0",
"use-immer": "^0.11.0",
"use-query-params": "^2.2.2",
+ "use-sync-external-store": "^1.2.0",
"uuid": "^13.0.0",
"xlsx": "https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz",
"yargs": "^17.7.2"
@@ -217,6 +218,7 @@
"@types/rison": "0.1.0",
"@types/tinycolor2": "^1.4.3",
"@types/unzipper": "^0.10.11",
+ "@types/use-sync-external-store": "^0.0.6",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"babel-jest": "^30.0.2",
@@ -270,6 +272,7 @@
"prettier": "3.8.1",
"prettier-plugin-packagejson": "^3.0.0",
"process": "^0.11.10",
+ "react-ace": "^10.1.0",
"react-refresh": "^0.18.0",
"react-resizable": "^3.1.3",
"redux-mock-store": "^1.5.4",
@@ -2694,18 +2697,6 @@
"node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0"
}
},
- "node_modules/@colors/colors": {
- "version": "1.5.0",
- "resolved": "https://registry.npmjs.org/@colors/colors/-/colors-1.5.0.tgz",
- "integrity": "sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ==",
- "dev": true,
- "license": "MIT",
- "optional": true,
- "peer": true,
- "engines": {
- "node": ">=0.1.90"
- }
- },
"node_modules/@cspotcode/source-map-support": {
"version": "0.8.1",
"resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz",
@@ -2879,9 +2870,9 @@
}
},
"node_modules/@cypress/request": {
- "version": "3.0.10",
- "resolved": "https://registry.npmjs.org/@cypress/request/-/request-3.0.10.tgz",
- "integrity": "sha512-hauBrOdvu08vOsagkZ/Aju5XuiZx6ldsLfByg1htFeldhex+PeMrYauANzFsMJeAA0+dyPLbDoX2OYuvVoLDkQ==",
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/@cypress/request/-/request-4.0.1.tgz",
+ "integrity": "sha512-y20e+e6dFYkOUUJLVUZTsJRuTiXZaUQ32WD+R/ux/HBybbTx4ge7cNINcua0pU8+SNkKuRbOF12mBmzuzM8n5w==",
"dev": true,
"license": "Apache-2.0",
"peer": true,
@@ -2899,25 +2890,31 @@
"json-stringify-safe": "~5.0.1",
"mime-types": "~2.1.19",
"performance-now": "^2.1.0",
- "qs": "~6.14.1",
+ "qs": "^6.15.2",
"safe-buffer": "^5.1.2",
"tough-cookie": "^5.0.0",
- "tunnel-agent": "^0.6.0",
- "uuid": "^8.3.2"
+ "tunnel-agent": "^0.6.0"
},
"engines": {
- "node": ">= 6"
+ "node": ">= 14.17.0"
}
},
- "node_modules/@cypress/request/node_modules/uuid": {
- "version": "8.3.2",
- "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz",
- "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==",
+ "node_modules/@cypress/request/node_modules/qs": {
+ "version": "6.15.3",
+ "resolved": "https://registry.npmjs.org/qs/-/qs-6.15.3.tgz",
+ "integrity": "sha512-O9gl3zCl5h5blw1KGUzQKhA5oUXSl8rwUIM5o0S3nCXMliSvy5Dzx7/DJcI+SwgICv+IneSZwhBh1oSyEHA71A==",
"dev": true,
- "license": "MIT",
+ "license": "BSD-3-Clause",
"peer": true,
- "bin": {
- "uuid": "dist/bin/uuid"
+ "dependencies": {
+ "es-define-property": "^1.0.1",
+ "side-channel": "^1.1.1"
+ },
+ "engines": {
+ "node": ">=0.6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/@cypress/xvfb": {
@@ -3091,9 +3088,9 @@
}
},
"node_modules/@deck.gl/widgets": {
- "version": "9.2.6",
- "resolved": "https://registry.npmjs.org/@deck.gl/widgets/-/widgets-9.2.6.tgz",
- "integrity": "sha512-WkKP+HB90x1qwOxs5l6Dg0d1iAvf999jJGDdGUbDVsRF7+hJDv03GZY6XKpoiEW7VfcZ1y1iU2vRwV/GHuQ57g==",
+ "version": "9.2.11",
+ "resolved": "https://registry.npmjs.org/@deck.gl/widgets/-/widgets-9.2.11.tgz",
+ "integrity": "sha512-90HWlQPsiRyTPWR4aYfLwnYDrJdHG2mqCzRcyMUKewWBNQLu4upB//l4ewIkUeXXCzAprjjVeRnNb7wdYj2CXQ==",
"license": "MIT",
"peer": true,
"dependencies": {
@@ -4052,9 +4049,9 @@
}
},
"node_modules/@fontsource/inter": {
- "version": "5.2.6",
- "resolved": "https://registry.npmjs.org/@fontsource/inter/-/inter-5.2.6.tgz",
- "integrity": "sha512-CZs9S1CrjD0jPwsNy9W6j0BhsmRSQrgwlTNkgQXTsAeDRM42LBRLo3eo9gCzfH4GvV7zpyf78Ozfl773826csw==",
+ "version": "5.2.8",
+ "resolved": "https://registry.npmjs.org/@fontsource/inter/-/inter-5.2.8.tgz",
+ "integrity": "sha512-P6r5WnJoKiNVV+zvW2xM13gNdFhAEpQ9dQJHt3naLvfg+LkF2ldgSLiF4T41lf1SQCM9QmkqPTn4TH568IRagg==",
"license": "OFL-1.1",
"peer": true,
"funding": {
@@ -4179,6 +4176,7 @@
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/@inquirer/external-editor/-/external-editor-1.0.2.tgz",
"integrity": "sha512-yy9cOoBnx58TlsPrIxauKIFQTiyH+0MK4e97y4sV9ERbI+zDxw7i2hxHLCIEGIE/8PPvDxGhgzIOTSOWcs6/MQ==",
+ "dev": true,
"license": "MIT",
"dependencies": {
"chardet": "^2.1.0",
@@ -4200,12 +4198,14 @@
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/chardet/-/chardet-2.1.0.tgz",
"integrity": "sha512-bNFETTG/pM5ryzQ9Ad0lJOTa6HWD/YsScAR3EnCPZRPlQh77JocYktSHOUHelyhm8IARL+o4c4F1bP5KVOjiRA==",
+ "dev": true,
"license": "MIT"
},
"node_modules/@inquirer/external-editor/node_modules/iconv-lite": {
"version": "0.7.0",
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.0.tgz",
"integrity": "sha512-cf6L2Ds3h57VVmkZe+Pn+5APsT7FpqJtEhhieDCvrE2MK5Qk9MyffgQyuxQTm6BChfeZNtcOLHp9IcWRVcIcBQ==",
+ "dev": true,
"license": "MIT",
"dependencies": {
"safer-buffer": ">= 2.1.2 < 3.0.0"
@@ -4218,16 +4218,6 @@
"url": "https://opencollective.com/express"
}
},
- "node_modules/@inquirer/figures": {
- "version": "1.0.13",
- "resolved": "https://registry.npmjs.org/@inquirer/figures/-/figures-1.0.13.tgz",
- "integrity": "sha512-lGPVU3yO9ZNqA7vTYz26jny41lE7yoQansmqdMLBEfqaGsmdg7V3W9mK9Pvb5IL4EVZ9GnSDGMO/cJXud5dMaw==",
- "license": "MIT",
- "peer": true,
- "engines": {
- "node": ">=18"
- }
- },
"node_modules/@isaacs/cliui": {
"version": "8.0.2",
"resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz",
@@ -6658,19 +6648,6 @@
"node": ">=8"
}
},
- "node_modules/@lerna/create/node_modules/is-unicode-supported": {
- "version": "0.1.0",
- "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz",
- "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=10"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
"node_modules/@lerna/create/node_modules/js-yaml": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz",
@@ -6684,23 +6661,6 @@
"js-yaml": "bin/js-yaml.js"
}
},
- "node_modules/@lerna/create/node_modules/log-symbols": {
- "version": "4.1.0",
- "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz",
- "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "chalk": "^4.1.0",
- "is-unicode-supported": "^0.1.0"
- },
- "engines": {
- "node": ">=10"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
"node_modules/@lerna/create/node_modules/make-dir": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz",
@@ -14245,13 +14205,6 @@
"dev": true,
"license": "MIT"
},
- "node_modules/@types/expect": {
- "version": "1.20.4",
- "resolved": "https://registry.npmjs.org/@types/expect/-/expect-1.20.4.tgz",
- "integrity": "sha512-Q5Vn3yjTDyCMV50TB6VRIbQNxSE4OmZR86VSbGaNpfUolm0iePBB4KdEEHmxoY5sT2+2DIvXW0rvMDP2nHZ4Mg==",
- "license": "MIT",
- "peer": true
- },
"node_modules/@types/express": {
"version": "4.17.25",
"resolved": "https://registry.npmjs.org/@types/express/-/express-4.17.25.tgz",
@@ -14372,17 +14325,6 @@
"@types/node": "*"
}
},
- "node_modules/@types/inquirer": {
- "version": "9.0.7",
- "resolved": "https://registry.npmjs.org/@types/inquirer/-/inquirer-9.0.7.tgz",
- "integrity": "sha512-Q0zyBupO6NxGRZut/JdmqYKOnN95Eg5V8Csg3PGKkP+FnvsUZx1jAyK7fztIszxxMuoBA6E3KXWvdZVXIpx60g==",
- "license": "MIT",
- "peer": true,
- "dependencies": {
- "@types/through": "*",
- "rxjs": "^7.2.0"
- }
- },
"node_modules/@types/istanbul-lib-coverage": {
"version": "2.0.6",
"resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz",
@@ -15120,6 +15062,14 @@
"@types/send": "*"
}
},
+ "node_modules/@types/sinonjs__fake-timers": {
+ "version": "8.1.1",
+ "resolved": "https://registry.npmjs.org/@types/sinonjs__fake-timers/-/sinonjs__fake-timers-8.1.1.tgz",
+ "integrity": "sha512-0kSuKjAS0TrGLJ0M/+8MaFkGsQhZpB6pxOmvS3K8FYI72K//YmdfoW9X2qPsAKh1mkwxGD5zib9s1FIFed6E8g==",
+ "dev": true,
+ "license": "MIT",
+ "peer": true
+ },
"node_modules/@types/sizzle": {
"version": "2.3.9",
"resolved": "https://registry.npmjs.org/@types/sizzle/-/sizzle-2.3.9.tgz",
@@ -15165,22 +15115,20 @@
"integrity": "sha512-bTHG8fcxEqv1M9+TD14P8ok8hjxoOCkfKc8XXLaaD05kI7ohpeI956jtDOD3XHKBQrlyPughUtzm1jtVhHpA5Q==",
"license": "MIT"
},
- "node_modules/@types/through": {
- "version": "0.0.33",
- "resolved": "https://registry.npmjs.org/@types/through/-/through-0.0.33.tgz",
- "integrity": "sha512-HsJ+z3QuETzP3cswwtzt2vEIiHBk/dCcHGhbmG5X3ecnwFD/lPrMpliGXxSCg03L9AhrdwA4Oz/qfspkDW+xGQ==",
- "license": "MIT",
- "peer": true,
- "dependencies": {
- "@types/node": "*"
- }
- },
"node_modules/@types/tinycolor2": {
"version": "1.4.6",
"resolved": "https://registry.npmjs.org/@types/tinycolor2/-/tinycolor2-1.4.6.tgz",
"integrity": "sha512-iEN8J0BoMnsWBqjVbWH/c0G0Hh7O21lpR2/+PrvAVgWdzL7eexIFm4JN/Wn10PTcmNdtS6U67r499mlWMXOxNw==",
"license": "MIT"
},
+ "node_modules/@types/tmp": {
+ "version": "0.2.6",
+ "resolved": "https://registry.npmjs.org/@types/tmp/-/tmp-0.2.6.tgz",
+ "integrity": "sha512-chhaNf2oKHlRkDGt+tiKE2Z5aJ6qalm7Z9rlLdBwmOiAAf09YQvvoLXjWK4HWPF1xU/fqvMgfNfpVoBscA/tKA==",
+ "dev": true,
+ "license": "MIT",
+ "peer": true
+ },
"node_modules/@types/tough-cookie": {
"version": "4.0.5",
"resolved": "https://registry.npmjs.org/@types/tough-cookie/-/tough-cookie-4.0.5.tgz",
@@ -15243,6 +15191,13 @@
"dev": true,
"license": "MIT"
},
+ "node_modules/@types/use-sync-external-store": {
+ "version": "0.0.6",
+ "resolved": "https://registry.npmjs.org/@types/use-sync-external-store/-/use-sync-external-store-0.0.6.tgz",
+ "integrity": "sha512-zFDAD+tlpf2r4asuHEj0XH6pY6i0g5NeAHPn+15wk3BV6JA69eERFXC1gyGThDkVa1zCyKr5jox1+2LbV/AMLg==",
+ "dev": true,
+ "license": "MIT"
+ },
"node_modules/@types/uuid": {
"version": "9.0.8",
"resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-9.0.8.tgz",
@@ -15250,17 +15205,6 @@
"dev": true,
"license": "MIT"
},
- "node_modules/@types/vinyl": {
- "version": "2.0.12",
- "resolved": "https://registry.npmjs.org/@types/vinyl/-/vinyl-2.0.12.tgz",
- "integrity": "sha512-Sr2fYMBUVGYq8kj3UthXFAu5UN6ZW+rYr4NACjZQJvHvj+c8lYv0CahmZ2P/r7iUkN44gGUBwqxZkrKXYPb7cw==",
- "license": "MIT",
- "peer": true,
- "dependencies": {
- "@types/expect": "^1.20.4",
- "@types/node": "*"
- }
- },
"node_modules/@types/wait-on": {
"version": "5.3.4",
"resolved": "https://registry.npmjs.org/@types/wait-on/-/wait-on-5.3.4.tgz",
@@ -15298,18 +15242,6 @@
"integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==",
"license": "MIT"
},
- "node_modules/@types/yauzl": {
- "version": "2.10.3",
- "resolved": "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.10.3.tgz",
- "integrity": "sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==",
- "dev": true,
- "license": "MIT",
- "optional": true,
- "peer": true,
- "dependencies": {
- "@types/node": "*"
- }
- },
"node_modules/@typescript-eslint/eslint-plugin": {
"version": "7.18.0",
"resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-7.18.0.tgz",
@@ -17031,234 +16963,6 @@
"node": ">=18.12.0"
}
},
- "node_modules/@yeoman/adapter": {
- "version": "1.6.0",
- "resolved": "https://registry.npmjs.org/@yeoman/adapter/-/adapter-1.6.0.tgz",
- "integrity": "sha512-oJw/i6zUDdfsT5VOPuANDDEWs5NhlMq5+rmyZIVdgBTXalbCw6nUfJQOblO2Fnq+Ov6CxlyzDBTWQvL5cEjA+g==",
- "license": "MIT",
- "peer": true,
- "dependencies": {
- "@types/inquirer": "^9.0.3",
- "chalk": "^5.2.0",
- "inquirer": "^9.2.2",
- "log-symbols": "^7.0.0",
- "ora": "^8.1.0",
- "p-queue": "^8.0.1",
- "text-table": "^0.2.0"
- },
- "engines": {
- "node": ">=18.12.0"
- }
- },
- "node_modules/@yeoman/adapter/node_modules/ansi-regex": {
- "version": "6.1.0",
- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.1.0.tgz",
- "integrity": "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==",
- "license": "MIT",
- "peer": true,
- "engines": {
- "node": ">=12"
- },
- "funding": {
- "url": "https://github.com/chalk/ansi-regex?sponsor=1"
- }
- },
- "node_modules/@yeoman/adapter/node_modules/chalk": {
- "version": "5.4.1",
- "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.4.1.tgz",
- "integrity": "sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w==",
- "license": "MIT",
- "peer": true,
- "engines": {
- "node": "^12.17.0 || ^14.13 || >=16.0.0"
- },
- "funding": {
- "url": "https://github.com/chalk/chalk?sponsor=1"
- }
- },
- "node_modules/@yeoman/adapter/node_modules/cli-cursor": {
- "version": "5.0.0",
- "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-5.0.0.tgz",
- "integrity": "sha512-aCj4O5wKyszjMmDT4tZj93kxyydN/K5zPWSCe6/0AV/AA1pqe5ZBIw0a2ZfPQV7lL5/yb5HsUreJ6UFAF1tEQw==",
- "license": "MIT",
- "peer": true,
- "dependencies": {
- "restore-cursor": "^5.0.0"
- },
- "engines": {
- "node": ">=18"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/@yeoman/adapter/node_modules/cli-spinners": {
- "version": "2.9.2",
- "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.9.2.tgz",
- "integrity": "sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg==",
- "license": "MIT",
- "peer": true,
- "engines": {
- "node": ">=6"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/@yeoman/adapter/node_modules/emoji-regex": {
- "version": "10.4.0",
- "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.4.0.tgz",
- "integrity": "sha512-EC+0oUMY1Rqm4O6LLrgjtYDvcVYTy7chDnM4Q7030tP4Kwj3u/pR6gP9ygnp2CJMK5Gq+9Q2oqmrFJAz01DXjw==",
- "license": "MIT",
- "peer": true
- },
- "node_modules/@yeoman/adapter/node_modules/is-interactive": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/is-interactive/-/is-interactive-2.0.0.tgz",
- "integrity": "sha512-qP1vozQRI+BMOPcjFzrjXuQvdak2pHNUMZoeG2eRbiSqyvbEf/wQtEOTOX1guk6E3t36RkaqiSt8A/6YElNxLQ==",
- "license": "MIT",
- "peer": true,
- "engines": {
- "node": ">=12"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/@yeoman/adapter/node_modules/onetime": {
- "version": "7.0.0",
- "resolved": "https://registry.npmjs.org/onetime/-/onetime-7.0.0.tgz",
- "integrity": "sha512-VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ==",
- "license": "MIT",
- "peer": true,
- "dependencies": {
- "mimic-function": "^5.0.0"
- },
- "engines": {
- "node": ">=18"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/@yeoman/adapter/node_modules/ora": {
- "version": "8.1.1",
- "resolved": "https://registry.npmjs.org/ora/-/ora-8.1.1.tgz",
- "integrity": "sha512-YWielGi1XzG1UTvOaCFaNgEnuhZVMSHYkW/FQ7UX8O26PtlpdM84c0f7wLPlkvx2RfiQmnzd61d/MGxmpQeJPw==",
- "license": "MIT",
- "peer": true,
- "dependencies": {
- "chalk": "^5.3.0",
- "cli-cursor": "^5.0.0",
- "cli-spinners": "^2.9.2",
- "is-interactive": "^2.0.0",
- "is-unicode-supported": "^2.0.0",
- "log-symbols": "^6.0.0",
- "stdin-discarder": "^0.2.2",
- "string-width": "^7.2.0",
- "strip-ansi": "^7.1.0"
- },
- "engines": {
- "node": ">=18"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/@yeoman/adapter/node_modules/ora/node_modules/log-symbols": {
- "version": "6.0.0",
- "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-6.0.0.tgz",
- "integrity": "sha512-i24m8rpwhmPIS4zscNzK6MSEhk0DUWa/8iYQWxhffV8jkI4Phvs3F+quL5xvS0gdQR0FyTCMMH33Y78dDTzzIw==",
- "license": "MIT",
- "peer": true,
- "dependencies": {
- "chalk": "^5.3.0",
- "is-unicode-supported": "^1.3.0"
- },
- "engines": {
- "node": ">=18"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/@yeoman/adapter/node_modules/ora/node_modules/log-symbols/node_modules/is-unicode-supported": {
- "version": "1.3.0",
- "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-1.3.0.tgz",
- "integrity": "sha512-43r2mRvz+8JRIKnWJ+3j8JtjRKZ6GmjzfaE/qiBJnikNnYv/6bagRJ1kUhNk8R5EX/GkobD+r+sfxCPJsiKBLQ==",
- "license": "MIT",
- "peer": true,
- "engines": {
- "node": ">=12"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/@yeoman/adapter/node_modules/restore-cursor": {
- "version": "5.1.0",
- "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-5.1.0.tgz",
- "integrity": "sha512-oMA2dcrw6u0YfxJQXm342bFKX/E4sG9rbTzO9ptUcR/e8A33cHuvStiYOwH7fszkZlZ1z/ta9AAoPk2F4qIOHA==",
- "license": "MIT",
- "peer": true,
- "dependencies": {
- "onetime": "^7.0.0",
- "signal-exit": "^4.1.0"
- },
- "engines": {
- "node": ">=18"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/@yeoman/adapter/node_modules/signal-exit": {
- "version": "4.1.0",
- "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz",
- "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==",
- "license": "ISC",
- "peer": true,
- "engines": {
- "node": ">=14"
- },
- "funding": {
- "url": "https://github.com/sponsors/isaacs"
- }
- },
- "node_modules/@yeoman/adapter/node_modules/string-width": {
- "version": "7.2.0",
- "resolved": "https://registry.npmjs.org/string-width/-/string-width-7.2.0.tgz",
- "integrity": "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==",
- "license": "MIT",
- "peer": true,
- "dependencies": {
- "emoji-regex": "^10.3.0",
- "get-east-asian-width": "^1.0.0",
- "strip-ansi": "^7.1.0"
- },
- "engines": {
- "node": ">=18"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/@yeoman/adapter/node_modules/strip-ansi": {
- "version": "7.1.0",
- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz",
- "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==",
- "license": "MIT",
- "peer": true,
- "dependencies": {
- "ansi-regex": "^6.0.1"
- },
- "engines": {
- "node": ">=12"
- },
- "funding": {
- "url": "https://github.com/chalk/strip-ansi?sponsor=1"
- }
- },
"node_modules/@yeoman/namespace": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/@yeoman/namespace/-/namespace-1.0.1.tgz",
@@ -17268,38 +16972,6 @@
"node": "^16.13.0 || >=18.12.0"
}
},
- "node_modules/@yeoman/types": {
- "version": "1.5.0",
- "resolved": "https://registry.npmjs.org/@yeoman/types/-/types-1.5.0.tgz",
- "integrity": "sha512-uyeQdpKw3ftj3zN5gG28vOgMuqOGEfKiqWH1R04bm5RK8LRsnXO9SqPao1kC6dwowVQE0Wl/D9+6XmA6y/4qzQ==",
- "license": "MIT",
- "peer": true,
- "dependencies": {
- "@yeoman/adapter": "^1.6.0"
- },
- "acceptDependencies": {
- "@yeoman/adapter": "^2.0.0-beta.0",
- "mem-fs": "^4.0.0-beta.1",
- "mem-fs-editor": ">=10.0.2"
- },
- "engines": {
- "node": "^16.13.0 || >=18.12.0"
- },
- "peerDependencies": {
- "@types/node": ">=16.18.26",
- "@yeoman/adapter": "^1.6.0",
- "mem-fs": "^3.0.0",
- "mem-fs-editor": "^10.0.2"
- },
- "peerDependenciesMeta": {
- "mem-fs": {
- "optional": true
- },
- "mem-fs-editor": {
- "optional": true
- }
- }
- },
"node_modules/@zarrita/storage": {
"version": "0.1.4",
"resolved": "https://registry.npmjs.org/@zarrita/storage/-/storage-0.1.4.tgz",
@@ -17529,6 +17201,7 @@
"version": "4.3.2",
"resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz",
"integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==",
+ "dev": true,
"license": "MIT",
"dependencies": {
"type-fest": "^0.21.3"
@@ -17544,6 +17217,7 @@
"version": "0.21.3",
"resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz",
"integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==",
+ "dev": true,
"license": "(MIT OR CC0-1.0)",
"engines": {
"node": ">=10"
@@ -18000,17 +17674,6 @@
"node": ">=4"
}
},
- "node_modules/astral-regex": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz",
- "integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==",
- "dev": true,
- "license": "MIT",
- "peer": true,
- "engines": {
- "node": ">=8"
- }
- },
"node_modules/async": {
"version": "3.2.6",
"resolved": "https://registry.npmjs.org/async/-/async-3.2.6.tgz",
@@ -18572,6 +18235,7 @@
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz",
"integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==",
+ "dev": true,
"license": "MIT",
"dependencies": {
"buffer": "^5.5.0",
@@ -18842,6 +18506,7 @@
"version": "5.7.1",
"resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz",
"integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==",
+ "dev": true,
"funding": [
{
"type": "github",
@@ -18862,17 +18527,6 @@
"ieee754": "^1.1.13"
}
},
- "node_modules/buffer-crc32": {
- "version": "0.2.13",
- "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz",
- "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==",
- "dev": true,
- "license": "MIT",
- "peer": true,
- "engines": {
- "node": "*"
- }
- },
"node_modules/buffer-equal": {
"version": "0.0.1",
"resolved": "https://registry.npmjs.org/buffer-equal/-/buffer-equal-0.0.1.tgz",
@@ -19386,17 +19040,6 @@
"node": ">= 16"
}
},
- "node_modules/check-more-types": {
- "version": "2.24.0",
- "resolved": "https://registry.npmjs.org/check-more-types/-/check-more-types-2.24.0.tgz",
- "integrity": "sha512-Pj779qHxV2tuapviy1bSZNEL1maXr13bPYpsvSDB68HlYcYuhlDrmGd63i0JHMCLKzc7rUSNIrpdJlhVlNwrxA==",
- "dev": true,
- "license": "MIT",
- "peer": true,
- "engines": {
- "node": ">= 0.8.0"
- }
- },
"node_modules/cheerio": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/cheerio/-/cheerio-1.2.0.tgz",
@@ -19614,6 +19257,7 @@
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz",
"integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==",
+ "dev": true,
"license": "MIT",
"dependencies": {
"restore-cursor": "^3.1.0"
@@ -19626,6 +19270,7 @@
"version": "2.6.1",
"resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.6.1.tgz",
"integrity": "sha512-x/5fWmGMnbKQAaNwN+UZlV79qBLM9JFnJuJ03gIi5whrob0xV0ofNVHy9DhwGdsMJQc2OKv0oGmLzvaqvAVv+g==",
+ "dev": true,
"license": "MIT",
"engines": {
"node": ">=6"
@@ -19635,9 +19280,9 @@
}
},
"node_modules/cli-table3": {
- "version": "0.6.5",
- "resolved": "https://registry.npmjs.org/cli-table3/-/cli-table3-0.6.5.tgz",
- "integrity": "sha512-+W/5efTR7y5HRD7gACw9yQjqMVvEMLBHmboM/kPWam+H+Hmyrgjh6YncVKK122YZkXrLudzTuAukUw9FnMf7IQ==",
+ "version": "0.6.1",
+ "resolved": "https://registry.npmjs.org/cli-table3/-/cli-table3-0.6.1.tgz",
+ "integrity": "sha512-w0q/enDHhPLq44ovMGdQeeDLvwxwavsJX7oQGYt/LrBlYsyaxyDnp6z3QzFut/6kLLKnlcUVJLrpB7KBfgG/RA==",
"dev": true,
"license": "MIT",
"peer": true,
@@ -19648,35 +19293,74 @@
"node": "10.* || >= 12.*"
},
"optionalDependencies": {
- "@colors/colors": "1.5.0"
+ "colors": "1.4.0"
}
},
"node_modules/cli-truncate": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-2.1.0.tgz",
- "integrity": "sha512-n8fOixwDD6b/ObinzTrp1ZKFzbgvKZvuz/TvejnLn1aQfC6r52XEx85FmuC+3HI+JM7coBRXUvNqEU2PHVrHpg==",
+ "version": "5.2.0",
+ "resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-5.2.0.tgz",
+ "integrity": "sha512-xRwvIOMGrfOAnM1JYtqQImuaNtDEv9v6oIYAs4LIHwTiKee8uwvIi363igssOC0O5U04i4AlENs79LQLu9tEMw==",
"dev": true,
"license": "MIT",
"peer": true,
"dependencies": {
- "slice-ansi": "^3.0.0",
- "string-width": "^4.2.0"
+ "slice-ansi": "^8.0.0",
+ "string-width": "^8.2.0"
},
"engines": {
- "node": ">=8"
+ "node": ">=20"
},
"funding": {
"url": "https://github.com/sponsors/sindresorhus"
}
},
- "node_modules/cli-width": {
- "version": "4.1.0",
- "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-4.1.0.tgz",
- "integrity": "sha512-ouuZd4/dm2Sw5Gmqy6bGyNNNe1qt9RpmxveLSO7KcgsTnU7RXfsw+/bukWGo1abgBiMAic068rclZsO4IWmmxQ==",
- "license": "ISC",
+ "node_modules/cli-truncate/node_modules/ansi-regex": {
+ "version": "6.2.2",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz",
+ "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==",
+ "dev": true,
+ "license": "MIT",
"peer": true,
"engines": {
- "node": ">= 12"
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/ansi-regex?sponsor=1"
+ }
+ },
+ "node_modules/cli-truncate/node_modules/string-width": {
+ "version": "8.2.1",
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-8.2.1.tgz",
+ "integrity": "sha512-IIaP0g3iy9Cyy18w3M9YcaDudujEAVHKt3a3QJg1+sr/oX96TbaGUubG0hJyCjCBThFH+tFpcIyoUHUn1ogaLA==",
+ "dev": true,
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "get-east-asian-width": "^1.5.0",
+ "strip-ansi": "^7.1.2"
+ },
+ "engines": {
+ "node": ">=20"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/cli-truncate/node_modules/strip-ansi": {
+ "version": "7.2.0",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.2.0.tgz",
+ "integrity": "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==",
+ "dev": true,
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "ansi-regex": "^6.2.2"
+ },
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/strip-ansi?sponsor=1"
}
},
"node_modules/cliui": {
@@ -19854,6 +19538,18 @@
"dev": true,
"license": "MIT"
},
+ "node_modules/colors": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/colors/-/colors-1.4.0.tgz",
+ "integrity": "sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "peer": true,
+ "engines": {
+ "node": ">=0.1.90"
+ }
+ },
"node_modules/columnify": {
"version": "1.6.0",
"resolved": "https://registry.npmjs.org/columnify/-/columnify-1.6.0.tgz",
@@ -21887,44 +21583,39 @@
}
},
"node_modules/cypress": {
- "version": "14.0.0",
- "resolved": "https://registry.npmjs.org/cypress/-/cypress-14.0.0.tgz",
- "integrity": "sha512-kEGqQr23so5IpKeg/dp6GVi7RlHx1NmW66o2a2Q4wk9gRaAblLZQSiZJuDI8UMC4LlG5OJ7Q6joAiqTrfRNbTw==",
+ "version": "15.18.0",
+ "resolved": "https://registry.npmjs.org/cypress/-/cypress-15.18.0.tgz",
+ "integrity": "sha512-aLfOYSLlVt1b6QSoVUjbCY27taZlYAT8ST47xQbwd9pvQrY/g5gXi12yItZTB+kxkkj+ZcvUYmRLUC95SlCJsw==",
"dev": true,
"hasInstallScript": true,
"license": "MIT",
"peer": true,
"dependencies": {
- "@cypress/request": "^3.0.6",
+ "@cypress/request": "^4.0.0",
"@cypress/xvfb": "^1.2.4",
"@types/sinonjs__fake-timers": "8.1.1",
"@types/sizzle": "^2.3.2",
+ "@types/tmp": "^0.2.3",
"arch": "^2.2.0",
"blob-util": "^2.0.2",
"bluebird": "^3.7.2",
"buffer": "^5.7.1",
- "cachedir": "^2.3.0",
+ "cachedir": "^2.4.0",
"chalk": "^4.1.0",
- "check-more-types": "^2.24.0",
- "ci-info": "^4.0.0",
- "cli-cursor": "^3.1.0",
- "cli-table3": "~0.6.1",
+ "ci-info": "^4.1.0",
+ "cli-table3": "0.6.1",
"commander": "^6.2.1",
"common-tags": "^1.8.0",
"dayjs": "^1.10.4",
"debug": "^4.3.4",
- "enquirer": "^2.3.6",
"eventemitter2": "6.4.7",
"execa": "4.1.0",
"executable": "^4.1.1",
- "extract-zip": "2.0.1",
- "figures": "^3.2.0",
"fs-extra": "^9.1.0",
- "getos": "^3.2.1",
+ "hasha": "5.2.2",
"is-installed-globally": "~0.4.0",
- "lazy-ass": "^1.6.0",
- "listr2": "^3.8.3",
- "lodash": "^4.17.21",
+ "listr2": "^9.0.5",
+ "lodash": "^4.17.23",
"log-symbols": "^4.0.0",
"minimist": "^1.2.8",
"ospath": "^1.2.2",
@@ -21932,28 +21623,21 @@
"process": "^0.11.10",
"proxy-from-env": "1.0.0",
"request-progress": "^3.0.0",
- "semver": "^7.5.3",
"supports-color": "^8.1.1",
- "tmp": "~0.2.3",
+ "systeminformation": "^5.31.1",
+ "tmp": "~0.2.4",
"tree-kill": "1.2.2",
+ "tslib": "1.14.1",
"untildify": "^4.0.0",
- "yauzl": "^2.10.0"
+ "yauzl": "^3.3.1"
},
"bin": {
"cypress": "bin/cypress"
},
"engines": {
- "node": "^18.0.0 || ^20.0.0 || >=22.0.0"
+ "node": "^20.1.0 || ^22.0.0 || >=24.0.0"
}
},
- "node_modules/cypress/node_modules/@types/sinonjs__fake-timers": {
- "version": "8.1.1",
- "resolved": "https://registry.npmjs.org/@types/sinonjs__fake-timers/-/sinonjs__fake-timers-8.1.1.tgz",
- "integrity": "sha512-0kSuKjAS0TrGLJ0M/+8MaFkGsQhZpB6pxOmvS3K8FYI72K//YmdfoW9X2qPsAKh1mkwxGD5zib9s1FIFed6E8g==",
- "dev": true,
- "license": "MIT",
- "peer": true
- },
"node_modules/cypress/node_modules/chalk": {
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
@@ -22056,38 +21740,6 @@
"node": ">=8.12.0"
}
},
- "node_modules/cypress/node_modules/is-unicode-supported": {
- "version": "0.1.0",
- "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz",
- "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==",
- "dev": true,
- "license": "MIT",
- "peer": true,
- "engines": {
- "node": ">=10"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/cypress/node_modules/log-symbols": {
- "version": "4.1.0",
- "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz",
- "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==",
- "dev": true,
- "license": "MIT",
- "peer": true,
- "dependencies": {
- "chalk": "^4.1.0",
- "is-unicode-supported": "^0.1.0"
- },
- "engines": {
- "node": ">=10"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
"node_modules/cypress/node_modules/supports-color": {
"version": "8.1.1",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz",
@@ -22105,6 +21757,14 @@
"url": "https://github.com/chalk/supports-color?sponsor=1"
}
},
+ "node_modules/cypress/node_modules/tslib": {
+ "version": "1.14.1",
+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",
+ "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==",
+ "dev": true,
+ "license": "0BSD",
+ "peer": true
+ },
"node_modules/d3": {
"version": "3.5.17",
"resolved": "https://registry.npmjs.org/d3/-/d3-3.5.17.tgz",
@@ -22678,6 +22338,7 @@
"version": "1.0.4",
"resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.4.tgz",
"integrity": "sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A==",
+ "dev": true,
"license": "MIT",
"dependencies": {
"clone": "^1.0.2"
@@ -22690,6 +22351,7 @@
"version": "1.0.4",
"resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz",
"integrity": "sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==",
+ "dev": true,
"license": "MIT",
"engines": {
"node": ">=0.8"
@@ -23511,35 +23173,6 @@
"node": ">=10.13.0"
}
},
- "node_modules/enquirer": {
- "version": "2.4.1",
- "resolved": "https://registry.npmjs.org/enquirer/-/enquirer-2.4.1.tgz",
- "integrity": "sha512-rRqJg/6gd538VHvR3PSrdRBb/1Vy2YfzHqzvbhGIQpDRKIa4FgV/54b5Q1xYSxOOwKvjXweS26E0Q+nAMwp2pQ==",
- "dev": true,
- "license": "MIT",
- "peer": true,
- "dependencies": {
- "ansi-colors": "^4.1.1",
- "strip-ansi": "^6.0.1"
- },
- "engines": {
- "node": ">=8.6"
- }
- },
- "node_modules/enquirer/node_modules/strip-ansi": {
- "version": "6.0.1",
- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
- "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
- "dev": true,
- "license": "MIT",
- "peer": true,
- "dependencies": {
- "ansi-regex": "^5.0.1"
- },
- "engines": {
- "node": ">=8"
- }
- },
"node_modules/entities": {
"version": "4.5.0",
"resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz",
@@ -23576,6 +23209,20 @@
"node": ">=4"
}
},
+ "node_modules/environment": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/environment/-/environment-1.1.0.tgz",
+ "integrity": "sha512-xUtoPkMggbz0MPyPiIWr1Kp4aeWJjDZ6SMvURhimjdZgsRuDplF5/s9hcgGhyXMhs+6vpnuoiZ2kFiu3FMnS8Q==",
+ "dev": true,
+ "license": "MIT",
+ "peer": true,
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
"node_modules/err-code": {
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/err-code/-/err-code-2.0.3.tgz",
@@ -24987,9 +24634,10 @@
"peer": true
},
"node_modules/eventemitter3": {
- "version": "5.0.1",
- "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.1.tgz",
- "integrity": "sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==",
+ "version": "5.0.4",
+ "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.4.tgz",
+ "integrity": "sha512-mlsTRyGaPBjPedk6Bvw+aqbsXDtoAyAzm5MO7JgU+yVRyMQ5O8bD4Kcci7BS85f93veegeCPkL8R4GLClnjLFw==",
+ "dev": true,
"license": "MIT",
"peer": true
},
@@ -25188,45 +24836,6 @@
"integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==",
"license": "MIT"
},
- "node_modules/extract-zip": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-2.0.1.tgz",
- "integrity": "sha512-GDhU9ntwuKyGXdZBUgTIe+vXnWj0fppUEtMDL0+idd5Sta8TGpHssn/eusA9mrPr9qNDym6SxAYZjNvCn/9RBg==",
- "dev": true,
- "license": "BSD-2-Clause",
- "peer": true,
- "dependencies": {
- "debug": "^4.1.1",
- "get-stream": "^5.1.0",
- "yauzl": "^2.10.0"
- },
- "bin": {
- "extract-zip": "cli.js"
- },
- "engines": {
- "node": ">= 10.17.0"
- },
- "optionalDependencies": {
- "@types/yauzl": "^2.9.1"
- }
- },
- "node_modules/extract-zip/node_modules/get-stream": {
- "version": "5.2.0",
- "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz",
- "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==",
- "dev": true,
- "license": "MIT",
- "peer": true,
- "dependencies": {
- "pump": "^3.0.0"
- },
- "engines": {
- "node": ">=8"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
"node_modules/extsprintf": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz",
@@ -25424,17 +25033,6 @@
"bser": "2.1.1"
}
},
- "node_modules/fd-slicer": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz",
- "integrity": "sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==",
- "dev": true,
- "license": "MIT",
- "peer": true,
- "dependencies": {
- "pend": "~1.2.0"
- }
- },
"node_modules/fetch-blob": {
"version": "3.2.0",
"resolved": "https://registry.npmjs.org/fetch-blob/-/fetch-blob-3.2.0.tgz",
@@ -25837,19 +25435,6 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
- "node_modules/first-chunk-stream": {
- "version": "5.0.0",
- "resolved": "https://registry.npmjs.org/first-chunk-stream/-/first-chunk-stream-5.0.0.tgz",
- "integrity": "sha512-WdHo4ejd2cG2Dl+sLkW79SctU7mUQDfr4s1i26ffOZRs5mgv+BRttIM9gwcq0rDbemo0KlpVPaa3LBVLqPXzcQ==",
- "license": "MIT",
- "peer": true,
- "engines": {
- "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
"node_modules/flat": {
"version": "5.0.2",
"resolved": "https://registry.npmjs.org/flat/-/flat-5.0.2.tgz",
@@ -27069,9 +26654,10 @@
}
},
"node_modules/get-east-asian-width": {
- "version": "1.3.0",
- "resolved": "https://registry.npmjs.org/get-east-asian-width/-/get-east-asian-width-1.3.0.tgz",
- "integrity": "sha512-vpeMIQKxczTD/0s2CdEWHcb0eeJe6TFjxb+J5xgX7hScxqrGuyjmv4c1D4A/gelKfyox0gJJwIHF+fLjeaM8kQ==",
+ "version": "1.6.0",
+ "resolved": "https://registry.npmjs.org/get-east-asian-width/-/get-east-asian-width-1.6.0.tgz",
+ "integrity": "sha512-QRbvDIbx6YklUe6RxeTeleMR0yv3cYH6PsPZHcnVn7xv7zO1BHN8r0XETu8n6Ye3Q+ahtSarc3WgtNWmehIBfA==",
+ "dev": true,
"license": "MIT",
"peer": true,
"engines": {
@@ -27307,17 +26893,6 @@
"url": "https://github.com/privatenumber/get-tsconfig?sponsor=1"
}
},
- "node_modules/getos": {
- "version": "3.2.1",
- "resolved": "https://registry.npmjs.org/getos/-/getos-3.2.1.tgz",
- "integrity": "sha512-U56CfOK17OKgTVqozZjUKNdkfEv6jk5WISBJ8SHoagjE6L69zOwl3Z+O8myjY9MEW3i2HPWQBt/LTbCgcC973Q==",
- "dev": true,
- "license": "MIT",
- "peer": true,
- "dependencies": {
- "async": "^3.2.0"
- }
- },
"node_modules/getpass": {
"version": "0.1.7",
"resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz",
@@ -27514,17 +27089,6 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
- "node_modules/global-dirs/node_modules/ini": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/ini/-/ini-2.0.0.tgz",
- "integrity": "sha512-7PnF4oN3CvZF23ADhA5wRaYEQpJ8qygSkbtTXWBeXWXmEVRXK+1ITciHWwHhsjv1TmW0MgacIv6hEi5pX5NQdA==",
- "dev": true,
- "license": "ISC",
- "peer": true,
- "engines": {
- "node": ">=10"
- }
- },
"node_modules/global-modules": {
"version": "0.2.3",
"resolved": "https://registry.npmjs.org/global-modules/-/global-modules-0.2.3.tgz",
@@ -29056,6 +28620,17 @@
"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
"license": "ISC"
},
+ "node_modules/ini": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/ini/-/ini-2.0.0.tgz",
+ "integrity": "sha512-7PnF4oN3CvZF23ADhA5wRaYEQpJ8qygSkbtTXWBeXWXmEVRXK+1ITciHWwHhsjv1TmW0MgacIv6hEi5pX5NQdA==",
+ "dev": true,
+ "license": "ISC",
+ "peer": true,
+ "engines": {
+ "node": ">=10"
+ }
+ },
"node_modules/init-package-json": {
"version": "6.0.3",
"resolved": "https://registry.npmjs.org/init-package-json/-/init-package-json-6.0.3.tgz",
@@ -29081,114 +28656,6 @@
"integrity": "sha512-7NXolsK4CAS5+xvdj5OMMbI962hU/wvwoxk+LWR9Ek9bVtyuuYScDN6eS0rUm6TxApFpw7CX1o4uJzcd4AyD3Q==",
"license": "MIT"
},
- "node_modules/inquirer": {
- "version": "9.3.8",
- "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-9.3.8.tgz",
- "integrity": "sha512-pFGGdaHrmRKMh4WoDDSowddgjT1Vkl90atobmTeSmcPGdYiwikch/m/Ef5wRaiamHejtw0cUUMMerzDUXCci2w==",
- "license": "MIT",
- "peer": true,
- "dependencies": {
- "@inquirer/external-editor": "^1.0.2",
- "@inquirer/figures": "^1.0.3",
- "ansi-escapes": "^4.3.2",
- "cli-width": "^4.1.0",
- "mute-stream": "1.0.0",
- "ora": "^5.4.1",
- "run-async": "^3.0.0",
- "rxjs": "^7.8.1",
- "string-width": "^4.2.3",
- "strip-ansi": "^6.0.1",
- "wrap-ansi": "^6.2.0",
- "yoctocolors-cjs": "^2.1.2"
- },
- "engines": {
- "node": ">=18"
- }
- },
- "node_modules/inquirer/node_modules/chalk": {
- "version": "4.1.2",
- "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
- "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
- "license": "MIT",
- "peer": true,
- "dependencies": {
- "ansi-styles": "^4.1.0",
- "supports-color": "^7.1.0"
- },
- "engines": {
- "node": ">=10"
- },
- "funding": {
- "url": "https://github.com/chalk/chalk?sponsor=1"
- }
- },
- "node_modules/inquirer/node_modules/is-unicode-supported": {
- "version": "0.1.0",
- "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz",
- "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==",
- "license": "MIT",
- "peer": true,
- "engines": {
- "node": ">=10"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/inquirer/node_modules/log-symbols": {
- "version": "4.1.0",
- "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz",
- "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==",
- "license": "MIT",
- "peer": true,
- "dependencies": {
- "chalk": "^4.1.0",
- "is-unicode-supported": "^0.1.0"
- },
- "engines": {
- "node": ">=10"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/inquirer/node_modules/ora": {
- "version": "5.4.1",
- "resolved": "https://registry.npmjs.org/ora/-/ora-5.4.1.tgz",
- "integrity": "sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ==",
- "license": "MIT",
- "peer": true,
- "dependencies": {
- "bl": "^4.1.0",
- "chalk": "^4.1.0",
- "cli-cursor": "^3.1.0",
- "cli-spinners": "^2.5.0",
- "is-interactive": "^1.0.0",
- "is-unicode-supported": "^0.1.0",
- "log-symbols": "^4.1.0",
- "strip-ansi": "^6.0.0",
- "wcwidth": "^1.0.1"
- },
- "engines": {
- "node": ">=10"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/inquirer/node_modules/strip-ansi": {
- "version": "6.0.1",
- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
- "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
- "license": "MIT",
- "peer": true,
- "dependencies": {
- "ansi-regex": "^5.0.1"
- },
- "engines": {
- "node": ">=8"
- }
- },
"node_modules/internal-slot": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.1.0.tgz",
@@ -29704,6 +29171,7 @@
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/is-interactive/-/is-interactive-1.0.0.tgz",
"integrity": "sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w==",
+ "dev": true,
"license": "MIT",
"engines": {
"node": ">=8"
@@ -29965,25 +29433,18 @@
"license": "MIT"
},
"node_modules/is-unicode-supported": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-2.1.0.tgz",
- "integrity": "sha512-mE00Gnza5EEB3Ds0HfMyllZzbBrmLOX3vfWoj9A9PEnTfratQ/BcaJOuMhnkhjXvb2+FkY3VuHqtAGpTPmglFQ==",
+ "version": "0.1.0",
+ "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz",
+ "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==",
+ "dev": true,
"license": "MIT",
- "peer": true,
"engines": {
- "node": ">=18"
+ "node": ">=10"
},
"funding": {
"url": "https://github.com/sponsors/sindresorhus"
}
},
- "node_modules/is-utf8": {
- "version": "0.2.1",
- "resolved": "https://registry.npmjs.org/is-utf8/-/is-utf8-0.2.1.tgz",
- "integrity": "sha512-rMYPYvCzsXywIsldgLaSoPlw5PfoB/ssr7hY4pLfcodrA5M/eArza1a9VmTiNIBNMjOGr1Ow9mTyU2o69U6U9Q==",
- "license": "MIT",
- "peer": true
- },
"node_modules/is-weakmap": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.2.tgz",
@@ -33963,15 +33424,15 @@
}
},
"node_modules/jsdom/node_modules/@noble/hashes": {
- "version": "1.8.0",
- "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.8.0.tgz",
- "integrity": "sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==",
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-2.2.0.tgz",
+ "integrity": "sha512-IYqDGiTXab6FniAgnSdZwgWbomxpy9FtYvLKs7wCUs2a8RkITG+DFGO1DM9cr+E3/RgADRpFjrKVaJ1z6sjtEg==",
"dev": true,
"license": "MIT",
"optional": true,
"peer": true,
"engines": {
- "node": "^14.21.3 || >=16"
+ "node": ">= 20.19.0"
},
"funding": {
"url": "https://paulmillr.com/funding/"
@@ -34466,17 +33927,6 @@
"shell-quote": "^1.8.1"
}
},
- "node_modules/lazy-ass": {
- "version": "1.6.0",
- "resolved": "https://registry.npmjs.org/lazy-ass/-/lazy-ass-1.6.0.tgz",
- "integrity": "sha512-cc8oEVoctTvsFZ/Oje/kGnHbpWHYBe8IAJe4C0QNc3t8uM/0Y8+erSz/7Y1ALuXTEZTMvxXwO6YbX1ey3ujiZw==",
- "dev": true,
- "license": "MIT",
- "peer": true,
- "engines": {
- "node": "> 0.8"
- }
- },
"node_modules/lerc": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/lerc/-/lerc-3.0.0.tgz",
@@ -34983,19 +34433,6 @@
"node": ">=8"
}
},
- "node_modules/lerna/node_modules/is-unicode-supported": {
- "version": "0.1.0",
- "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz",
- "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=10"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
"node_modules/lerna/node_modules/js-yaml": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz",
@@ -35009,23 +34446,6 @@
"js-yaml": "bin/js-yaml.js"
}
},
- "node_modules/lerna/node_modules/log-symbols": {
- "version": "4.1.0",
- "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz",
- "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "chalk": "^4.1.0",
- "is-unicode-supported": "^0.1.0"
- },
- "engines": {
- "node": ">=10"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
"node_modules/lerna/node_modules/make-dir": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz",
@@ -35565,48 +34985,110 @@
}
},
"node_modules/listr2": {
- "version": "3.14.0",
- "resolved": "https://registry.npmjs.org/listr2/-/listr2-3.14.0.tgz",
- "integrity": "sha512-TyWI8G99GX9GjE54cJ+RrNMcIFBfwMPxc3XTFiAYGN4s10hWROGtOg7+O6u6LE3mNkyld7RSLE6nrKBvTfcs3g==",
+ "version": "9.0.5",
+ "resolved": "https://registry.npmjs.org/listr2/-/listr2-9.0.5.tgz",
+ "integrity": "sha512-ME4Fb83LgEgwNw96RKNvKV4VTLuXfoKudAmm2lP8Kk87KaMK0/Xrx/aAkMWmT8mDb+3MlFDspfbCs7adjRxA2g==",
"dev": true,
"license": "MIT",
"peer": true,
"dependencies": {
- "cli-truncate": "^2.1.0",
- "colorette": "^2.0.16",
- "log-update": "^4.0.0",
- "p-map": "^4.0.0",
- "rfdc": "^1.3.0",
- "rxjs": "^7.5.1",
- "through": "^2.3.8",
- "wrap-ansi": "^7.0.0"
+ "cli-truncate": "^5.0.0",
+ "colorette": "^2.0.20",
+ "eventemitter3": "^5.0.1",
+ "log-update": "^6.1.0",
+ "rfdc": "^1.4.1",
+ "wrap-ansi": "^9.0.0"
},
"engines": {
- "node": ">=10.0.0"
+ "node": ">=20.0.0"
+ }
+ },
+ "node_modules/listr2/node_modules/ansi-regex": {
+ "version": "6.2.2",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz",
+ "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==",
+ "dev": true,
+ "license": "MIT",
+ "peer": true,
+ "engines": {
+ "node": ">=12"
},
- "peerDependencies": {
- "enquirer": ">= 2.3.0 < 3"
+ "funding": {
+ "url": "https://github.com/chalk/ansi-regex?sponsor=1"
+ }
+ },
+ "node_modules/listr2/node_modules/ansi-styles": {
+ "version": "6.2.3",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz",
+ "integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==",
+ "dev": true,
+ "license": "MIT",
+ "peer": true,
+ "engines": {
+ "node": ">=12"
},
- "peerDependenciesMeta": {
- "enquirer": {
- "optional": true
- }
+ "funding": {
+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"
+ }
+ },
+ "node_modules/listr2/node_modules/emoji-regex": {
+ "version": "10.6.0",
+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.6.0.tgz",
+ "integrity": "sha512-toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A==",
+ "dev": true,
+ "license": "MIT",
+ "peer": true
+ },
+ "node_modules/listr2/node_modules/string-width": {
+ "version": "7.2.0",
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-7.2.0.tgz",
+ "integrity": "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==",
+ "dev": true,
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "emoji-regex": "^10.3.0",
+ "get-east-asian-width": "^1.0.0",
+ "strip-ansi": "^7.1.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/listr2/node_modules/strip-ansi": {
+ "version": "7.2.0",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.2.0.tgz",
+ "integrity": "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==",
+ "dev": true,
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "ansi-regex": "^6.2.2"
+ },
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/strip-ansi?sponsor=1"
}
},
"node_modules/listr2/node_modules/wrap-ansi": {
- "version": "7.0.0",
- "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",
- "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",
+ "version": "9.0.2",
+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-9.0.2.tgz",
+ "integrity": "sha512-42AtmgqjV+X1VpdOfyTGOYRi0/zsoLqtXQckTmqTeybT+BDIbM/Guxo7x3pE2vtpr1ok6xRqM9OpBe+Jyoqyww==",
"dev": true,
"license": "MIT",
"peer": true,
"dependencies": {
- "ansi-styles": "^4.0.0",
- "string-width": "^4.1.0",
- "strip-ansi": "^6.0.0"
+ "ansi-styles": "^6.2.1",
+ "string-width": "^7.0.0",
+ "strip-ansi": "^7.1.0"
},
"engines": {
- "node": ">=10"
+ "node": ">=18"
},
"funding": {
"url": "https://github.com/chalk/wrap-ansi?sponsor=1"
@@ -35750,14 +35232,156 @@
"license": "MIT"
},
"node_modules/log-symbols": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz",
+ "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "chalk": "^4.1.0",
+ "is-unicode-supported": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/log-symbols/node_modules/chalk": {
+ "version": "4.1.2",
+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
+ "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-styles": "^4.1.0",
+ "supports-color": "^7.1.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/chalk?sponsor=1"
+ }
+ },
+ "node_modules/log-update": {
+ "version": "6.1.0",
+ "resolved": "https://registry.npmjs.org/log-update/-/log-update-6.1.0.tgz",
+ "integrity": "sha512-9ie8ItPR6tjY5uYJh8K/Zrv/RMZ5VOlOWvtZdEHYSTFKZfIBPQa9tOAEeAWhd+AnIneLJ22w5fjOYtoutpWq5w==",
+ "dev": true,
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "ansi-escapes": "^7.0.0",
+ "cli-cursor": "^5.0.0",
+ "slice-ansi": "^7.1.0",
+ "strip-ansi": "^7.1.0",
+ "wrap-ansi": "^9.0.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/log-update/node_modules/ansi-escapes": {
+ "version": "7.3.0",
+ "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-7.3.0.tgz",
+ "integrity": "sha512-BvU8nYgGQBxcmMuEeUEmNTvrMVjJNSH7RgW24vXexN4Ven6qCvy4TntnvlnwnMLTVlcRQQdbRY8NKnaIoeWDNg==",
+ "dev": true,
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "environment": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/log-update/node_modules/ansi-regex": {
+ "version": "6.2.2",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz",
+ "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==",
+ "dev": true,
+ "license": "MIT",
+ "peer": true,
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/ansi-regex?sponsor=1"
+ }
+ },
+ "node_modules/log-update/node_modules/ansi-styles": {
+ "version": "6.2.3",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz",
+ "integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==",
+ "dev": true,
+ "license": "MIT",
+ "peer": true,
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"
+ }
+ },
+ "node_modules/log-update/node_modules/cli-cursor": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-5.0.0.tgz",
+ "integrity": "sha512-aCj4O5wKyszjMmDT4tZj93kxyydN/K5zPWSCe6/0AV/AA1pqe5ZBIw0a2ZfPQV7lL5/yb5HsUreJ6UFAF1tEQw==",
+ "dev": true,
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "restore-cursor": "^5.0.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/log-update/node_modules/emoji-regex": {
+ "version": "10.6.0",
+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.6.0.tgz",
+ "integrity": "sha512-toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A==",
+ "dev": true,
+ "license": "MIT",
+ "peer": true
+ },
+ "node_modules/log-update/node_modules/is-fullwidth-code-point": {
+ "version": "5.1.0",
+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-5.1.0.tgz",
+ "integrity": "sha512-5XHYaSyiqADb4RnZ1Bdad6cPp8Toise4TzEjcOYDHZkTCbKgiUl7WTUCpNWHuxmDt91wnsZBc9xinNzopv3JMQ==",
+ "dev": true,
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "get-east-asian-width": "^1.3.1"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/log-update/node_modules/onetime": {
"version": "7.0.0",
- "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-7.0.0.tgz",
- "integrity": "sha512-zrc91EDk2M+2AXo/9BTvK91pqb7qrPg2nX/Hy+u8a5qQlbaOflCKO+6SqgZ+M+xUFxGdKTgwnGiL96b1W3ikRA==",
+ "resolved": "https://registry.npmjs.org/onetime/-/onetime-7.0.0.tgz",
+ "integrity": "sha512-VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ==",
+ "dev": true,
"license": "MIT",
"peer": true,
"dependencies": {
- "is-unicode-supported": "^2.0.0",
- "yoctocolors": "^2.1.1"
+ "mimic-function": "^5.0.0"
},
"engines": {
"node": ">=18"
@@ -35766,45 +35390,111 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
- "node_modules/log-update": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/log-update/-/log-update-4.0.0.tgz",
- "integrity": "sha512-9fkkDevMefjg0mmzWFBW8YkFP91OrizzkW3diF7CpG+S2EYdy4+TVfGwz1zeF8x7hCx1ovSPTOE9Ngib74qqUg==",
+ "node_modules/log-update/node_modules/restore-cursor": {
+ "version": "5.1.0",
+ "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-5.1.0.tgz",
+ "integrity": "sha512-oMA2dcrw6u0YfxJQXm342bFKX/E4sG9rbTzO9ptUcR/e8A33cHuvStiYOwH7fszkZlZ1z/ta9AAoPk2F4qIOHA==",
"dev": true,
"license": "MIT",
"peer": true,
"dependencies": {
- "ansi-escapes": "^4.3.0",
- "cli-cursor": "^3.1.0",
- "slice-ansi": "^4.0.0",
- "wrap-ansi": "^6.2.0"
+ "onetime": "^7.0.0",
+ "signal-exit": "^4.1.0"
},
"engines": {
- "node": ">=10"
+ "node": ">=18"
},
"funding": {
"url": "https://github.com/sponsors/sindresorhus"
}
},
+ "node_modules/log-update/node_modules/signal-exit": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz",
+ "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==",
+ "dev": true,
+ "license": "ISC",
+ "peer": true,
+ "engines": {
+ "node": ">=14"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
"node_modules/log-update/node_modules/slice-ansi": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz",
- "integrity": "sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==",
+ "version": "7.1.2",
+ "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-7.1.2.tgz",
+ "integrity": "sha512-iOBWFgUX7caIZiuutICxVgX1SdxwAVFFKwt1EvMYYec/NWO5meOJ6K5uQxhrYBdQJne4KxiqZc+KptFOWFSI9w==",
"dev": true,
"license": "MIT",
"peer": true,
"dependencies": {
- "ansi-styles": "^4.0.0",
- "astral-regex": "^2.0.0",
- "is-fullwidth-code-point": "^3.0.0"
+ "ansi-styles": "^6.2.1",
+ "is-fullwidth-code-point": "^5.0.0"
},
"engines": {
- "node": ">=10"
+ "node": ">=18"
},
"funding": {
"url": "https://github.com/chalk/slice-ansi?sponsor=1"
}
},
+ "node_modules/log-update/node_modules/string-width": {
+ "version": "7.2.0",
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-7.2.0.tgz",
+ "integrity": "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==",
+ "dev": true,
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "emoji-regex": "^10.3.0",
+ "get-east-asian-width": "^1.0.0",
+ "strip-ansi": "^7.1.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/log-update/node_modules/strip-ansi": {
+ "version": "7.2.0",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.2.0.tgz",
+ "integrity": "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==",
+ "dev": true,
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "ansi-regex": "^6.2.2"
+ },
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/strip-ansi?sponsor=1"
+ }
+ },
+ "node_modules/log-update/node_modules/wrap-ansi": {
+ "version": "9.0.2",
+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-9.0.2.tgz",
+ "integrity": "sha512-42AtmgqjV+X1VpdOfyTGOYRi0/zsoLqtXQckTmqTeybT+BDIbM/Guxo7x3pE2vtpr1ok6xRqM9OpBe+Jyoqyww==",
+ "dev": true,
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "ansi-styles": "^6.2.1",
+ "string-width": "^7.0.0",
+ "strip-ansi": "^7.1.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/wrap-ansi?sponsor=1"
+ }
+ },
"node_modules/loglevel": {
"version": "1.9.2",
"resolved": "https://registry.npmjs.org/loglevel/-/loglevel-1.9.2.tgz",
@@ -36314,22 +36004,6 @@
"node": ">= 0.6"
}
},
- "node_modules/mem-fs": {
- "version": "4.1.2",
- "resolved": "https://registry.npmjs.org/mem-fs/-/mem-fs-4.1.2.tgz",
- "integrity": "sha512-CMwusHK+Kz0tu1qjgbd0rwcJxzgg76jlkPpqK+pDTv8Hth8JyM7JlgxNWaAFRKe969HATPTz/sp8T63QflyI+w==",
- "license": "MIT",
- "peer": true,
- "dependencies": {
- "@types/node": ">=18",
- "@types/vinyl": "^2.0.8",
- "vinyl": "^3.0.0",
- "vinyl-file": "^5.0.0"
- },
- "engines": {
- "node": ">=18.0.0"
- }
- },
"node_modules/mem-fs-editor": {
"version": "11.1.4",
"resolved": "https://registry.npmjs.org/mem-fs-editor/-/mem-fs-editor-11.1.4.tgz",
@@ -36949,6 +36623,7 @@
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz",
"integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==",
+ "dev": true,
"license": "MIT",
"engines": {
"node": ">=6"
@@ -36958,6 +36633,7 @@
"version": "5.0.1",
"resolved": "https://registry.npmjs.org/mimic-function/-/mimic-function-5.0.1.tgz",
"integrity": "sha512-VP79XUPxV2CigYP3jWwAUFSku2aKqBH7uTAapFWCBqutsbmDo96KY5o8uh6U+/YSIn5OxJnXp73beVkpqMIGhA==",
+ "dev": true,
"license": "MIT",
"peer": true,
"engines": {
@@ -37041,10 +36717,10 @@
}
},
"node_modules/minipass": {
- "version": "7.1.2",
- "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz",
- "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==",
- "license": "ISC",
+ "version": "7.1.3",
+ "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.3.tgz",
+ "integrity": "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==",
+ "license": "BlueOak-1.0.0",
"engines": {
"node": ">=16 || 14 >=14.17"
}
@@ -37258,16 +36934,6 @@
"node": ">=0.10.0"
}
},
- "node_modules/moment": {
- "version": "2.30.1",
- "resolved": "https://registry.npmjs.org/moment/-/moment-2.30.1.tgz",
- "integrity": "sha512-uEmtNhbDOrWPFS+hdjFCBfy9f2YoyzRpwcl+DqpC6taX21FzsTLQVbMV/W7PzNSX6x/bhC1zA3c2UQ5NzH6how==",
- "license": "MIT",
- "peer": true,
- "engines": {
- "node": "*"
- }
- },
"node_modules/monaco-editor": {
"version": "0.49.0",
"resolved": "https://registry.npmjs.org/monaco-editor/-/monaco-editor-0.49.0.tgz",
@@ -37368,6 +37034,7 @@
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-1.0.0.tgz",
"integrity": "sha512-avsJQhyd+680gKXyG/sQc0nXaC6rBkPOfyHYcFb9+hdkqQkR9bdnkJ0AMZhke0oesPqIO+mFFJ+IdBc7mst4IA==",
+ "dev": true,
"license": "ISC",
"engines": {
"node": "^14.17.0 || ^16.13.0 || >=18.0.0"
@@ -38052,36 +37719,6 @@
"node": ">=8.6"
}
},
- "node_modules/nx/node_modules/is-unicode-supported": {
- "version": "0.1.0",
- "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz",
- "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=10"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/nx/node_modules/log-symbols": {
- "version": "4.1.0",
- "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz",
- "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "chalk": "^4.1.0",
- "is-unicode-supported": "^0.1.0"
- },
- "engines": {
- "node": ">=10"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
"node_modules/nx/node_modules/minimatch": {
"version": "9.0.3",
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz",
@@ -38122,9 +37759,9 @@
}
},
"node_modules/nyc": {
- "version": "17.1.0",
- "resolved": "https://registry.npmjs.org/nyc/-/nyc-17.1.0.tgz",
- "integrity": "sha512-U42vQ4czpKa0QdI1hu950XuNhYqgoM+ZF1HT+VuUHL9hPfDPVvNQyltmMqdE9bUHMVa+8yNbc3QKTj8zQhlVxQ==",
+ "version": "18.0.0",
+ "resolved": "https://registry.npmjs.org/nyc/-/nyc-18.0.0.tgz",
+ "integrity": "sha512-G5UyHinFkB1BxqGTrmZdB6uIYH0+v7ZnVssuflUDi+J+RhKWyAhRT1RCehBSI6jLFLuUUgFDyLt49mUtdO1XeQ==",
"dev": true,
"license": "ISC",
"peer": true,
@@ -38138,11 +37775,11 @@
"find-up": "^4.1.0",
"foreground-child": "^3.3.0",
"get-package-type": "^0.1.0",
- "glob": "^7.1.6",
+ "glob": "^13.0.6",
"istanbul-lib-coverage": "^3.0.0",
"istanbul-lib-hook": "^3.0.0",
"istanbul-lib-instrument": "^6.0.2",
- "istanbul-lib-processinfo": "^2.0.2",
+ "istanbul-lib-processinfo": "^3.0.0",
"istanbul-lib-report": "^3.0.0",
"istanbul-lib-source-maps": "^4.0.0",
"istanbul-reports": "^3.0.2",
@@ -38151,17 +37788,42 @@
"p-map": "^3.0.0",
"process-on-spawn": "^1.0.0",
"resolve-from": "^5.0.0",
- "rimraf": "^3.0.0",
+ "rimraf": "^6.1.3",
"signal-exit": "^3.0.2",
- "spawn-wrap": "^2.0.0",
- "test-exclude": "^6.0.0",
+ "spawn-wrap": "^3.0.0",
+ "test-exclude": "^8.0.0",
"yargs": "^15.0.2"
},
"bin": {
"nyc": "bin/nyc.js"
},
"engines": {
- "node": ">=18"
+ "node": "20 || >=22"
+ }
+ },
+ "node_modules/nyc/node_modules/balanced-match": {
+ "version": "4.0.4",
+ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz",
+ "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==",
+ "dev": true,
+ "license": "MIT",
+ "peer": true,
+ "engines": {
+ "node": "18 || 20 || >=22"
+ }
+ },
+ "node_modules/nyc/node_modules/brace-expansion": {
+ "version": "5.0.7",
+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.7.tgz",
+ "integrity": "sha512-7oFy703dxfY3/NLxC1fh2SUCQ0H9rmAY+5EpDVfXjUTTs+HEwR2nYaqLv+GWcTsumwxPfiz6CzCNkwXwBUwqCA==",
+ "dev": true,
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "balanced-match": "^4.0.2"
+ },
+ "engines": {
+ "node": "18 || 20 || >=22"
}
},
"node_modules/nyc/node_modules/camelcase": {
@@ -38230,6 +37892,43 @@
"node": ">=8"
}
},
+ "node_modules/nyc/node_modules/glob": {
+ "version": "13.0.6",
+ "resolved": "https://registry.npmjs.org/glob/-/glob-13.0.6.tgz",
+ "integrity": "sha512-Wjlyrolmm8uDpm/ogGyXZXb1Z+Ca2B8NbJwqBVg0axK9GbBeoS7yGV6vjXnYdGm6X53iehEuxxbyiKp8QmN4Vw==",
+ "dev": true,
+ "license": "BlueOak-1.0.0",
+ "peer": true,
+ "dependencies": {
+ "minimatch": "^10.2.2",
+ "minipass": "^7.1.3",
+ "path-scurry": "^2.0.2"
+ },
+ "engines": {
+ "node": "18 || 20 || >=22"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
+ "node_modules/nyc/node_modules/istanbul-lib-processinfo": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/istanbul-lib-processinfo/-/istanbul-lib-processinfo-3.0.1.tgz",
+ "integrity": "sha512-s3mX05h5wGZeScG6XnOanygPh4SJu5ujMc9YbvpnLGXWy1cRiGbp0NdVcjHxgoZt3WfQppfBsa0y+gWdYJ2pGQ==",
+ "dev": true,
+ "license": "ISC",
+ "peer": true,
+ "dependencies": {
+ "archy": "^1.0.0",
+ "cross-spawn": "^7.0.3",
+ "istanbul-lib-coverage": "^3.2.0",
+ "p-map": "^3.0.0",
+ "rimraf": "^6.1.3"
+ },
+ "engines": {
+ "node": "20 || >=22"
+ }
+ },
"node_modules/nyc/node_modules/locate-path": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz",
@@ -38244,6 +37943,17 @@
"node": ">=8"
}
},
+ "node_modules/nyc/node_modules/lru-cache": {
+ "version": "11.5.1",
+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.5.1.tgz",
+ "integrity": "sha512-RPimw/7aMdv2oqRrxKwvZXcPfwBrn/JZ2xYcY9Hus/6LaS3VOAKVWKWgNLCFSiOm1ESXinjsDlidVU7JlnCN2A==",
+ "dev": true,
+ "license": "BlueOak-1.0.0",
+ "peer": true,
+ "engines": {
+ "node": "20 || >=22"
+ }
+ },
"node_modules/nyc/node_modules/make-dir": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz",
@@ -38261,15 +37971,21 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
- "node_modules/nyc/node_modules/make-dir/node_modules/semver": {
- "version": "6.3.1",
- "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",
- "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",
+ "node_modules/nyc/node_modules/minimatch": {
+ "version": "10.2.5",
+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.5.tgz",
+ "integrity": "sha512-MULkVLfKGYDFYejP07QOurDLLQpcjk7Fw+7jXS2R2czRQzR56yHRveU5NDJEOviH+hETZKSkIk5c+T23GjFUMg==",
"dev": true,
- "license": "ISC",
+ "license": "BlueOak-1.0.0",
"peer": true,
- "bin": {
- "semver": "bin/semver.js"
+ "dependencies": {
+ "brace-expansion": "^5.0.5"
+ },
+ "engines": {
+ "node": "18 || 20 || >=22"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
}
},
"node_modules/nyc/node_modules/p-limit": {
@@ -38317,24 +38033,107 @@
"node": ">=8"
}
},
+ "node_modules/nyc/node_modules/path-scurry": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-2.0.2.tgz",
+ "integrity": "sha512-3O/iVVsJAPsOnpwWIeD+d6z/7PmqApyQePUtCndjatj/9I5LylHvt5qluFaBT3I5h3r1ejfR056c+FCv+NnNXg==",
+ "dev": true,
+ "license": "BlueOak-1.0.0",
+ "peer": true,
+ "dependencies": {
+ "lru-cache": "^11.0.0",
+ "minipass": "^7.1.2"
+ },
+ "engines": {
+ "node": "18 || 20 || >=22"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
"node_modules/nyc/node_modules/rimraf": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz",
- "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==",
- "deprecated": "Rimraf versions prior to v4 are no longer supported",
+ "version": "6.1.3",
+ "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-6.1.3.tgz",
+ "integrity": "sha512-LKg+Cr2ZF61fkcaK1UdkH2yEBBKnYjTyWzTJT6KNPcSPaiT7HSdhtMXQuN5wkTX0Xu72KQ1l8S42rlmexS2hSA==",
"dev": true,
- "license": "ISC",
+ "license": "BlueOak-1.0.0",
"peer": true,
"dependencies": {
- "glob": "^7.1.3"
+ "glob": "^13.0.3",
+ "package-json-from-dist": "^1.0.1"
},
"bin": {
- "rimraf": "bin.js"
+ "rimraf": "dist/esm/bin.mjs"
+ },
+ "engines": {
+ "node": "20 || >=22"
},
"funding": {
"url": "https://github.com/sponsors/isaacs"
}
},
+ "node_modules/nyc/node_modules/semver": {
+ "version": "6.3.1",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",
+ "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",
+ "dev": true,
+ "license": "ISC",
+ "peer": true,
+ "bin": {
+ "semver": "bin/semver.js"
+ }
+ },
+ "node_modules/nyc/node_modules/spawn-wrap": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/spawn-wrap/-/spawn-wrap-3.0.0.tgz",
+ "integrity": "sha512-z+s5vv4KzFPJVddGab0xX2n7kQPGMdNUX5l9T8EJqsXdKTWpcxmAqWHpsgHEXoC1taGBCc7b79bi62M5kdbrxQ==",
+ "dev": true,
+ "license": "BlueOak-1.0.0",
+ "peer": true,
+ "dependencies": {
+ "cross-spawn": "^7.0.6",
+ "foreground-child": "^2.0.0",
+ "is-windows": "^1.0.2",
+ "make-dir": "^3.0.0",
+ "rimraf": "^6.1.3",
+ "signal-exit": "^3.0.2",
+ "which": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/nyc/node_modules/spawn-wrap/node_modules/foreground-child": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-2.0.0.tgz",
+ "integrity": "sha512-dCIq9FpEcyQyXKCkyzmlPTFNgrCzPudOe+mhvJU5zAtlBnGVy2yKxtfsxK2tQBThwq225jcvBjpw1Gr40uzZCA==",
+ "dev": true,
+ "license": "ISC",
+ "peer": true,
+ "dependencies": {
+ "cross-spawn": "^7.0.0",
+ "signal-exit": "^3.0.2"
+ },
+ "engines": {
+ "node": ">=8.0.0"
+ }
+ },
+ "node_modules/nyc/node_modules/test-exclude": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-8.0.0.tgz",
+ "integrity": "sha512-ZOffsNrXYggvU1mDGHk54I96r26P8SyMjO5slMKSc7+IWmtB/MQKnEC2fP51imB3/pT6YK5cT5E8f+Dd9KdyOQ==",
+ "dev": true,
+ "license": "ISC",
+ "peer": true,
+ "dependencies": {
+ "@istanbuljs/schema": "^0.1.2",
+ "glob": "^13.0.6",
+ "minimatch": "^10.2.2"
+ },
+ "engines": {
+ "node": "20 || >=22"
+ }
+ },
"node_modules/nyc/node_modules/y18n": {
"version": "4.0.3",
"resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz",
@@ -38609,6 +38408,7 @@
"version": "5.1.2",
"resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz",
"integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==",
+ "dev": true,
"license": "MIT",
"dependencies": {
"mimic-fn": "^2.1.0"
@@ -38929,23 +38729,6 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
- "node_modules/p-queue": {
- "version": "8.1.0",
- "resolved": "https://registry.npmjs.org/p-queue/-/p-queue-8.1.0.tgz",
- "integrity": "sha512-mxLDbbGIBEXTJL0zEx8JIylaj3xQ7Z/7eEVjcF9fJX4DBiH9oqe+oahYnlKKxm0Ci9TlWTyhSHgygxMxjIB2jw==",
- "license": "MIT",
- "peer": true,
- "dependencies": {
- "eventemitter3": "^5.0.1",
- "p-timeout": "^6.1.2"
- },
- "engines": {
- "node": ">=18"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
"node_modules/p-reduce": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/p-reduce/-/p-reduce-2.1.0.tgz",
@@ -38956,19 +38739,6 @@
"node": ">=8"
}
},
- "node_modules/p-timeout": {
- "version": "6.1.4",
- "resolved": "https://registry.npmjs.org/p-timeout/-/p-timeout-6.1.4.tgz",
- "integrity": "sha512-MyIV3ZA/PmyBN/ud8vV9XzwTrNtR4jFrObymZYnZqMmW0zA8Z17vnT0rBgFE/TlohB+YCHqXMgZzb3Csp49vqg==",
- "license": "MIT",
- "peer": true,
- "engines": {
- "node": ">=14.16"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
"node_modules/p-try": {
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz",
@@ -40283,9 +40053,9 @@
"license": "ISC"
},
"node_modules/preact": {
- "version": "10.28.3",
- "resolved": "https://registry.npmjs.org/preact/-/preact-10.28.3.tgz",
- "integrity": "sha512-tCmoRkPQLpBeWzpmbhryairGnhW9tKV6c6gr/w+RhoRoKEJwsjzipwp//1oCpGPOchvSLaAPlpcJi9MwMmoPyA==",
+ "version": "10.29.3",
+ "resolved": "https://registry.npmjs.org/preact/-/preact-10.29.3.tgz",
+ "integrity": "sha512-D9NL1GAnJZhc3RndVs4gDdxEeU9TcHgywMrhhOsnpdlvFjdbx0gAsLUnH6JEhlJH5giL7Tx5biWPUSEXE/HPzw==",
"license": "MIT",
"peer": true,
"funding": {
@@ -40674,9 +40444,9 @@
}
},
"node_modules/pump": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.2.tgz",
- "integrity": "sha512-tUPXtzlGM8FE3P0ZL6DVs/3P58k9nk8/jZeQCurTJylQA8qFYzHFfhBJkuqyE0FifOsQ0uKWekiZ5g8wtr28cw==",
+ "version": "3.0.4",
+ "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.4.tgz",
+ "integrity": "sha512-VS7sjc6KR7e1ukRFhQSY5LM2uBWAUPiOPa/A3mkKmiMwSmRFUITt0xuj+/lesgnCv+dPIEYlkzrcyXgquIHMcA==",
"dev": true,
"license": "MIT",
"peer": true,
@@ -41618,7 +41388,6 @@
"resolved": "https://registry.npmjs.org/react-ace/-/react-ace-10.1.0.tgz",
"integrity": "sha512-VkvUjZNhdYTuKOKQpMIZi7uzZZVgzCjM7cLYu6F64V0mejY8a2XTyPUIMszC6A4trbeMIHbK5fYFcT/wkP/8VA==",
"license": "MIT",
- "peer": true,
"dependencies": {
"ace-builds": "^1.4.14",
"diff-match-patch": "^1.0.5",
@@ -44106,6 +43875,7 @@
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz",
"integrity": "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==",
+ "dev": true,
"license": "MIT",
"dependencies": {
"onetime": "^5.1.0",
@@ -44253,16 +44023,6 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
- "node_modules/run-async": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/run-async/-/run-async-3.0.0.tgz",
- "integrity": "sha512-540WwVDOMxA6dN6We19EcT9sc3hkXPw5mzRNGM3FkdN/vtE9NFvj5lFAPNwUDmJjXidm3v7TC1cTE7t17Ulm1Q==",
- "license": "MIT",
- "peer": true,
- "engines": {
- "node": ">=0.12.0"
- }
- },
"node_modules/run-parallel": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz",
@@ -44295,6 +44055,7 @@
"version": "7.8.2",
"resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.2.tgz",
"integrity": "sha512-dhKf903U/PQZY6boNNtAGdWbG85WAbjT/1xYoZIC7FAY0yWapOBQVsVrDl58W86//e1VpMNBtRV4MaXfdMySFA==",
+ "dev": true,
"license": "Apache-2.0",
"dependencies": {
"tslib": "^2.1.0"
@@ -44397,6 +44158,7 @@
"version": "2.1.2",
"resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
"integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",
+ "dev": true,
"license": "MIT"
},
"node_modules/sax": {
@@ -44827,14 +44589,14 @@
}
},
"node_modules/side-channel": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz",
- "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==",
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.1.tgz",
+ "integrity": "sha512-6x6dK6zJdpTzF4sQeNYxwtvBzf6Eg4GtlesS94HOvTudUeyK2WXAaIfmDgsyslYrRBeFIlsi54AYsFGUuhmvrQ==",
"license": "MIT",
"dependencies": {
"es-errors": "^1.3.0",
- "object-inspect": "^1.13.3",
- "side-channel-list": "^1.0.0",
+ "object-inspect": "^1.13.4",
+ "side-channel-list": "^1.0.1",
"side-channel-map": "^1.0.1",
"side-channel-weakmap": "^1.0.2"
},
@@ -44846,13 +44608,13 @@
}
},
"node_modules/side-channel-list": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz",
- "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==",
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.1.tgz",
+ "integrity": "sha512-mjn/0bi/oUURjc5Xl7IaWi/OJJJumuoJFQJfDDyO46+hBWsfaVM65TBHq2eoZBhzl9EchxOijpkbRC8SVBQU0w==",
"license": "MIT",
"dependencies": {
"es-errors": "^1.3.0",
- "object-inspect": "^1.13.3"
+ "object-inspect": "^1.13.4"
},
"engines": {
"node": ">= 0.4"
@@ -44902,6 +44664,7 @@
"version": "3.0.7",
"resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz",
"integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==",
+ "dev": true,
"license": "ISC"
},
"node_modules/sigstore": {
@@ -45006,19 +44769,52 @@
}
},
"node_modules/slice-ansi": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-3.0.0.tgz",
- "integrity": "sha512-pSyv7bSTC7ig9Dcgbw9AuRNUb5k5V6oDudjZoMBSr13qpLBG7tB+zgCkARjq7xIUgdz5P1Qe8u+rSGdouOOIyQ==",
+ "version": "8.0.0",
+ "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-8.0.0.tgz",
+ "integrity": "sha512-stxByr12oeeOyY2BlviTNQlYV5xOj47GirPr4yA1hE9JCtxfQN0+tVbkxwCtYDQWhEKWFHsEK48ORg5jrouCAg==",
"dev": true,
"license": "MIT",
"peer": true,
"dependencies": {
- "ansi-styles": "^4.0.0",
- "astral-regex": "^2.0.0",
- "is-fullwidth-code-point": "^3.0.0"
+ "ansi-styles": "^6.2.3",
+ "is-fullwidth-code-point": "^5.1.0"
},
"engines": {
- "node": ">=8"
+ "node": ">=20"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/slice-ansi?sponsor=1"
+ }
+ },
+ "node_modules/slice-ansi/node_modules/ansi-styles": {
+ "version": "6.2.3",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz",
+ "integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==",
+ "dev": true,
+ "license": "MIT",
+ "peer": true,
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"
+ }
+ },
+ "node_modules/slice-ansi/node_modules/is-fullwidth-code-point": {
+ "version": "5.1.0",
+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-5.1.0.tgz",
+ "integrity": "sha512-5XHYaSyiqADb4RnZ1Bdad6cPp8Toise4TzEjcOYDHZkTCbKgiUl7WTUCpNWHuxmDt91wnsZBc9xinNzopv3JMQ==",
+ "dev": true,
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "get-east-asian-width": "^1.3.1"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/smart-buffer": {
@@ -45805,19 +45601,6 @@
"node": ">= 0.8"
}
},
- "node_modules/stdin-discarder": {
- "version": "0.2.2",
- "resolved": "https://registry.npmjs.org/stdin-discarder/-/stdin-discarder-0.2.2.tgz",
- "integrity": "sha512-UhDfHmA92YAlNnCfhmq0VeNL5bDbiZGg7sZ2IvPsXubGkiNa9EC+tUTsjBRsYUAz87btI6/1wf4XoVvQ3uRnmQ==",
- "license": "MIT",
- "peer": true,
- "engines": {
- "node": ">=18"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
"node_modules/stop-iteration-iterator": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/stop-iteration-iterator/-/stop-iteration-iterator-1.1.0.tgz",
@@ -46073,39 +45856,6 @@
"node": ">=8"
}
},
- "node_modules/strip-bom-buf": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/strip-bom-buf/-/strip-bom-buf-3.0.1.tgz",
- "integrity": "sha512-iJaWw2WroigLHzQysdc5WWeUc99p7ea7AEgB6JkY8CMyiO1yTVAA1gIlJJgORElUIR+lcZJkNl1OGChMhvc2Cw==",
- "license": "MIT",
- "peer": true,
- "dependencies": {
- "is-utf8": "^0.2.1"
- },
- "engines": {
- "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/strip-bom-stream": {
- "version": "5.0.0",
- "resolved": "https://registry.npmjs.org/strip-bom-stream/-/strip-bom-stream-5.0.0.tgz",
- "integrity": "sha512-Yo472mU+3smhzqeKlIxClre4s4pwtYZEvDNQvY/sJpnChdaxmKuwU28UVx/v1ORKNMxkmj1GBuvxJQyBk6wYMQ==",
- "license": "MIT",
- "peer": true,
- "dependencies": {
- "first-chunk-stream": "^5.0.0",
- "strip-bom-buf": "^3.0.0"
- },
- "engines": {
- "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
"node_modules/strip-comments": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/strip-comments/-/strip-comments-2.0.1.tgz",
@@ -46364,6 +46114,34 @@
"url": "https://opencollective.com/synckit"
}
},
+ "node_modules/systeminformation": {
+ "version": "5.31.11",
+ "resolved": "https://registry.npmjs.org/systeminformation/-/systeminformation-5.31.11.tgz",
+ "integrity": "sha512-I6O7iaUj23AXRgCPDDnvi3xHvdOLp4+1YMbF+X194lJwY1NeWojgHJPhslVKcmTtrLTguRk3QJK+xEdTiI3P0w==",
+ "dev": true,
+ "license": "MIT",
+ "os": [
+ "darwin",
+ "linux",
+ "win32",
+ "freebsd",
+ "openbsd",
+ "netbsd",
+ "sunos",
+ "android"
+ ],
+ "peer": true,
+ "bin": {
+ "systeminformation": "lib/cli.js"
+ },
+ "engines": {
+ "node": ">=8.0.0"
+ },
+ "funding": {
+ "type": "Buy me a coffee",
+ "url": "https://www.buymeacoffee.com/systeminfo"
+ }
+ },
"node_modules/tagged-tag": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/tagged-tag/-/tagged-tag-1.0.0.tgz",
@@ -46911,23 +46689,23 @@
}
},
"node_modules/tldts": {
- "version": "6.1.74",
- "resolved": "https://registry.npmjs.org/tldts/-/tldts-6.1.74.tgz",
- "integrity": "sha512-O5vTZ1UmmEmrLl/59U9igitnSMlprALLaLgbv//dEvjobPT9vyURhHXKMCDLEhn3qxZFIkb9PwAfNYV0Ol7RPQ==",
+ "version": "6.1.86",
+ "resolved": "https://registry.npmjs.org/tldts/-/tldts-6.1.86.tgz",
+ "integrity": "sha512-WMi/OQ2axVTf/ykqCQgXiIct+mSQDFdH2fkwhPwgEwvJ1kSzZRiinb0zF2Xb8u4+OqPChmyI6MEu4EezNJz+FQ==",
"dev": true,
"license": "MIT",
"peer": true,
"dependencies": {
- "tldts-core": "^6.1.74"
+ "tldts-core": "^6.1.86"
},
"bin": {
"tldts": "bin/cli.js"
}
},
"node_modules/tldts-core": {
- "version": "6.1.74",
- "resolved": "https://registry.npmjs.org/tldts-core/-/tldts-core-6.1.74.tgz",
- "integrity": "sha512-gTwtY6L2GfuxiL4CWpLknv9JDYYqBvKCk/BT5uAaAvCA0s6pzX7lr2IrkQZSUlnSjRHIjTl8ZwKCVXJ7XNRWYw==",
+ "version": "6.1.86",
+ "resolved": "https://registry.npmjs.org/tldts-core/-/tldts-core-6.1.86.tgz",
+ "integrity": "sha512-Je6p7pkk+KMzMv2XXKmAE3McmolOQFdxkKw0R8EYNr7sELW46JqnNeTX8ybPiQgvg1ymCoF8LXs5fzFaZvJPTA==",
"dev": true,
"license": "MIT",
"peer": true
@@ -47034,9 +46812,9 @@
}
},
"node_modules/tough-cookie": {
- "version": "5.1.0",
- "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-5.1.0.tgz",
- "integrity": "sha512-rvZUv+7MoBYTiDmFPBrhL7Ujx9Sk+q9wwm22x8c8T5IJaR+Wsyc7TNxbVxo84kZoRJZZMazowFLqpankBEQrGg==",
+ "version": "5.1.2",
+ "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-5.1.2.tgz",
+ "integrity": "sha512-FVDYdxtnj0G6Qm/DhNPSb8Ju59ULcup3tuJxkFb5K8Bv2pUXILbf0xZWU8PX8Ov19OXljbUyveOFwRMwkXzO+A==",
"dev": true,
"license": "BSD-3-Clause",
"peer": true,
@@ -49100,25 +48878,6 @@
"node": ">=10.13.0"
}
},
- "node_modules/vinyl-file": {
- "version": "5.0.0",
- "resolved": "https://registry.npmjs.org/vinyl-file/-/vinyl-file-5.0.0.tgz",
- "integrity": "sha512-MvkPF/yA1EX7c6p+juVIvp9+Lxp70YUfNKzEWeHMKpUNVSnTZh2coaOqLxI0pmOe2V9nB+OkgFaMDkodaJUyGw==",
- "license": "MIT",
- "peer": true,
- "dependencies": {
- "@types/vinyl": "^2.0.7",
- "strip-bom-buf": "^3.0.1",
- "strip-bom-stream": "^5.0.0",
- "vinyl": "^3.0.0"
- },
- "engines": {
- "node": ">=14.16"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
"node_modules/vlq": {
"version": "0.2.3",
"resolved": "https://registry.npmjs.org/vlq/-/vlq-0.2.3.tgz",
@@ -49324,6 +49083,7 @@
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz",
"integrity": "sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg==",
+ "dev": true,
"license": "MIT",
"dependencies": {
"defaults": "^1.0.3"
@@ -50112,15 +49872,15 @@
}
},
"node_modules/whatwg-url/node_modules/@noble/hashes": {
- "version": "1.8.0",
- "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.8.0.tgz",
- "integrity": "sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==",
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-2.2.0.tgz",
+ "integrity": "sha512-IYqDGiTXab6FniAgnSdZwgWbomxpy9FtYvLKs7wCUs2a8RkITG+DFGO1DM9cr+E3/RgADRpFjrKVaJ1z6sjtEg==",
"dev": true,
"license": "MIT",
"optional": true,
"peer": true,
"engines": {
- "node": "^14.21.3 || >=16"
+ "node": ">= 20.19.0"
},
"funding": {
"url": "https://paulmillr.com/funding/"
@@ -50285,6 +50045,7 @@
"version": "6.2.0",
"resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz",
"integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==",
+ "dev": true,
"license": "MIT",
"dependencies": {
"ansi-styles": "^4.0.0",
@@ -50608,15 +50369,17 @@
}
},
"node_modules/yauzl": {
- "version": "2.10.0",
- "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz",
- "integrity": "sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==",
+ "version": "3.4.0",
+ "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-3.4.0.tgz",
+ "integrity": "sha512-jIH9yLR9wqr0wOS0TpBvo/g/2UgZH5qePVbjgRliiF0BYvOZyaBknKsF+x9Iht0O6sqgnB93rCICdOZFecJuDw==",
"dev": true,
"license": "MIT",
"peer": true,
"dependencies": {
- "buffer-crc32": "~0.2.3",
- "fd-slicer": "~1.1.0"
+ "pend": "~1.2.0"
+ },
+ "engines": {
+ "node": ">=12"
}
},
"node_modules/yeoman-generator": {
@@ -50851,32 +50614,6 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
- "node_modules/yoctocolors": {
- "version": "2.1.1",
- "resolved": "https://registry.npmjs.org/yoctocolors/-/yoctocolors-2.1.1.tgz",
- "integrity": "sha512-GQHQqAopRhwU8Kt1DDM8NjibDXHC8eoh1erhGAJPEyveY9qqVeXvVikNKrDz69sHowPMorbPUrH/mx8c50eiBQ==",
- "license": "MIT",
- "peer": true,
- "engines": {
- "node": ">=18"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/yoctocolors-cjs": {
- "version": "2.1.2",
- "resolved": "https://registry.npmjs.org/yoctocolors-cjs/-/yoctocolors-cjs-2.1.2.tgz",
- "integrity": "sha512-cYVsTjKl8b+FrnidjibDWskAv7UKOfcwaVZdp/it9n1s9fU3IkgDbhdIRKCW4JDsAlECJY0ytoVPT3sK6kideA==",
- "license": "MIT",
- "peer": true,
- "engines": {
- "node": ">=18"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
"node_modules/yosay": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/yosay/-/yosay-3.0.0.tgz",
@@ -52992,13 +52729,6 @@
"sprintf-js": ">= 1.1.1 < 2"
}
},
- "plugins/plugin-chart-handlebars/node_modules/sprintf-js": {
- "version": "1.1.3",
- "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.3.tgz",
- "integrity": "sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==",
- "license": "BSD-3-Clause",
- "peer": true
- },
"plugins/plugin-chart-pivot-table": {
"name": "@superset-ui/plugin-chart-pivot-table",
"version": "0.20.3",
diff --git a/superset-frontend/package.json b/superset-frontend/package.json
index 56f8eb3de6e..fb538d76d70 100644
--- a/superset-frontend/package.json
+++ b/superset-frontend/package.json
@@ -195,6 +195,7 @@
"query-string": "9.3.1",
"re-resizable": "^6.11.2",
"react": "^17.0.2",
+ "use-sync-external-store": "^1.2.0",
"react-arborist": "^3.4.3",
"react-checkbox-tree": "^1.8.0",
"react-diff-viewer-continued": "^3.4.0",
@@ -286,6 +287,7 @@
"@types/mousetrap": "^1.6.15",
"@types/node": "^25.3.3",
"@types/react": "^17.0.83",
+ "@types/use-sync-external-store": "^0.0.6",
"@types/react-dom": "^17.0.26",
"@types/react-loadable": "^5.5.11",
"@types/react-redux": "^7.1.10",
@@ -351,6 +353,7 @@
"prettier": "3.8.1",
"prettier-plugin-packagejson": "^3.0.0",
"process": "^0.11.10",
+ "react-ace": "^10.1.0",
"react-refresh": "^0.18.0",
"react-resizable": "^3.1.3",
"redux-mock-store": "^1.5.4",
diff --git a/superset-frontend/packages/superset-core/package.json b/superset-frontend/packages/superset-core/package.json
index 708a857e1dc..a8581dc55ef 100644
--- a/superset-frontend/packages/superset-core/package.json
+++ b/superset-frontend/packages/superset-core/package.json
@@ -18,6 +18,14 @@
"types": "./lib/authentication/index.d.ts",
"default": "./lib/authentication/index.js"
},
+ "./chat": {
+ "types": "./lib/chat/index.d.ts",
+ "default": "./lib/chat/index.js"
+ },
+ "./navigation": {
+ "types": "./lib/navigation/index.d.ts",
+ "default": "./lib/navigation/index.js"
+ },
"./commands": {
"types": "./lib/commands/index.d.ts",
"default": "./lib/commands/index.js"
diff --git a/superset-frontend/packages/superset-core/src/chat/index.ts b/superset-frontend/packages/superset-core/src/chat/index.ts
new file mode 100644
index 00000000000..ad91761f150
--- /dev/null
+++ b/superset-frontend/packages/superset-core/src/chat/index.ts
@@ -0,0 +1,156 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/**
+ * @fileoverview Chat contribution API for Superset extensions.
+ *
+ * Chat is a dedicated contribution type: an extension registers
+ * a chat via {@link registerChat} and the host owns where and how it is
+ * mounted. The host applies singleton resolution — multiple chat extensions
+ * may register, but exactly one is active at a time.
+ *
+ * @example
+ * ```typescript
+ * import { chat } from '@apache-superset/core';
+ *
+ * chat.registerChat(
+ * { id: 'acme.chat', name: 'Acme Chat' },
+ * AcmeTrigger,
+ * AcmePanel,
+ * );
+ * ```
+ */
+
+import { ComponentType } from 'react';
+import type { Disposable, Event } from '../common';
+
+export interface Chat {
+ /** The unique identifier for the chat. */
+ id: string;
+ /** The display name of the chat. */
+ name: string;
+ /** Optional description of the chat. */
+ description?: string;
+}
+
+export type DisplayMode = 'floating' | 'panel';
+
+/**
+ * Registers a chat provider. Only one chat is active at a time; the most
+ * recently registered chat wins. Disposing the returned Disposable unregisters
+ * the chat.
+ *
+ * @param chat The chat descriptor (id, name).
+ * @param trigger The trigger component — the collapsed bubble entry point.
+ * Owns dynamic state such as unread counts.
+ * @param panel The panel component, rendered in either display mode. In
+ * 'floating' mode it appears as an overlay; in 'panel' mode it is docked
+ * alongside the main content.
+ * @returns A Disposable that unregisters the chat when disposed.
+ *
+ * @example
+ * ```typescript
+ * chat.registerChat(
+ * { id: 'acme.chat', name: 'Acme Chat' },
+ * AcmeTrigger,
+ * AcmePanel,
+ * );
+ * ```
+ */
+export declare function registerChat(
+ chat: Chat,
+ trigger: ComponentType,
+ panel: ComponentType,
+): Disposable;
+
+/**
+ * Returns the active chat descriptor, or undefined if none is registered.
+ */
+export declare function getChat(): Chat | undefined;
+
+/**
+ * Event fired when a chat is registered.
+ */
+export declare const onDidRegisterChat: Event<Chat>;
+
+/**
+ * Event fired when a chat is unregistered.
+ */
+export declare const onDidUnregisterChat: Event<Chat>;
+
+/**
+ * Opens the active chat's panel.
+ *
+ * Acts on whichever chat is active, regardless of which extension calls it.
+ * No-op when no chat is registered or the panel is already open.
+ */
+export declare function open(): void;
+
+/**
+ * Closes the active chat's panel.
+ *
+ * Acts on whichever chat is active, regardless of which extension calls it.
+ * No-op when the panel is not open.
+ */
+export declare function close(): void;
+
+/**
+ * Returns whether the active chat's panel is currently open.
+ */
+export declare function isOpen(): boolean;
+
+/**
+ * Event fired when the chat panel opens. Also fired by the host's own
+ * controls, not only by an extension's open() call.
+ */
+export declare const onDidOpen: Event<void>;
+
+/**
+ * Event fired when the chat panel closes, whether triggered by an extension
+ * or by the host.
+ */
+export declare const onDidClose: Event<void>;
+
+/**
+ * Returns the current display mode.
+ */
+export declare function getDisplayMode(): DisplayMode;
+
+/**
+ * Sets the display mode. The mode is host-global and applies to whichever
+ * chat is active. Use {@link onDidChangeDisplayMode} to observe all changes,
+ * including those triggered by the host.
+ */
+export declare function setDisplayMode(displayMode: DisplayMode): void;
+
+/**
+ * Event fired when the display mode changes, whether triggered by an
+ * extension via setDisplayMode() or by host-provided controls.
+ */
+export declare const onDidChangeDisplayMode: Event<DisplayMode>;
+
+/**
+ * Event fired when the panel is resized in panel mode. Not all hosts provide
+ * a resizer — do not rely on this event firing.
+ */
+export declare const onDidResizePanel: Event<{ width: number }>;
+
+// TODO: client actions API — tool availability functions will be added here
+// once the client_actions SIP is finalized. The chat namespace is the
+// intended integration point between the two SIPs.
diff --git a/superset-frontend/packages/superset-core/src/common/index.ts b/superset-frontend/packages/superset-core/src/common/index.ts
index cc399cf6275..7f28aba584b 100644
--- a/superset-frontend/packages/superset-core/src/common/index.ts
+++ b/superset-frontend/packages/superset-core/src/common/index.ts
@@ -223,8 +223,6 @@ export interface Extension {
dependencies: string[];
/** Human-readable description of the extension */
description: string;
- /** List of other extensions that this extension depends on */
- extensionDependencies: string[];
/** Unique identifier for the extension */
id: string;
/** Human-readable name of the extension */
diff --git a/superset-frontend/packages/superset-core/src/contributions/index.ts b/superset-frontend/packages/superset-core/src/contributions/index.ts
index faccbb305dc..f24ae36dba0 100644
--- a/superset-frontend/packages/superset-core/src/contributions/index.ts
+++ b/superset-frontend/packages/superset-core/src/contributions/index.ts
@@ -23,9 +23,10 @@
* This module defines the aggregate interfaces used by the extension.json
* manifest and the `superset-extensions` build command. Individual metadata
* types are defined in their respective namespace modules (commands, views,
- * menus, editors) and re-exported here for the manifest schema.
+ * menus, editors, chat) and re-exported here for the manifest schema.
*/
+import { Chat } from '../chat';
import { Command } from '../commands';
import { View } from '../views';
import { Menu } from '../menus';
@@ -71,7 +72,8 @@ export interface MenuContributions {
}
/**
- * Aggregates all contributions (commands, menus, views, and editors) provided by an extension or module.
+ * Aggregates all contributions (commands, menus, views, editors, and chat)
+ * provided by an extension or module.
*/
export interface Contributions {
/** List of commands. */
@@ -82,4 +84,10 @@ export interface Contributions {
views: ViewContributions;
/** List of editors. */
editors?: Editor[];
+ /**
+ * The chat contributed by the extension — at most one per extension, since
+ * the host applies singleton resolution and renders exactly one active
+ * chat at a time.
+ */
+ chat?: Chat;
}
diff --git a/superset-frontend/packages/superset-core/src/index.ts b/superset-frontend/packages/superset-core/src/index.ts
index 75863372409..be41ac88a19 100644
--- a/superset-frontend/packages/superset-core/src/index.ts
+++ b/superset-frontend/packages/superset-core/src/index.ts
@@ -18,10 +18,12 @@
*/
export * as common from './common';
export * as authentication from './authentication';
+export * as chat from './chat';
export * as commands from './commands';
export * as editors from './editors';
export * as extensions from './extensions';
export * as menus from './menus';
+export * as navigation from './navigation';
export * as sqlLab from './sqlLab';
export * as views from './views';
export * as contributions from './contributions';
diff --git a/superset-frontend/packages/superset-core/src/menus/index.ts b/superset-frontend/packages/superset-core/src/menus/index.ts
index a7c7c504cef..fe1f9399d9b 100644
--- a/superset-frontend/packages/superset-core/src/menus/index.ts
+++ b/superset-frontend/packages/superset-core/src/menus/index.ts
@@ -37,7 +37,7 @@
* ```
*/
-import { Disposable } from '../common';
+import { Disposable, Event } from '../common';
/**
* Represents a menu item that links a view to a command.
@@ -102,3 +102,37 @@ export declare function registerMenuItem(
* ```
*/
export declare function getMenu(location: string): Menu | undefined;
+
+/**
+ * Event fired when a menu item is registered.
+ */
+export interface MenuItemRegisteredEvent {
+ /** The menu item that was registered. */
+ item: MenuItem;
+ /** The location where the item was registered. */
+ location: string;
+ /** The group the item was placed in. */
+ group: 'primary' | 'secondary' | 'context';
+}
+
+/**
+ * Event fired when a menu item is unregistered.
+ */
+export interface MenuItemUnregisteredEvent {
+ /** The menu item that was unregistered. */
+ item: MenuItem;
+ /** The location where the item was registered. */
+ location: string;
+ /** The group the item was placed in. */
+ group: 'primary' | 'secondary' | 'context';
+}
+
+/**
+ * Event fired when a menu item is registered.
+ */
+export declare const onDidRegisterMenuItem: Event<MenuItemRegisteredEvent>;
+
+/**
+ * Event fired when a menu item is unregistered.
+ */
+export declare const onDidUnregisterMenuItem: Event<MenuItemUnregisteredEvent>;
diff --git a/superset-frontend/packages/superset-core/src/navigation/index.ts b/superset-frontend/packages/superset-core/src/navigation/index.ts
new file mode 100644
index 00000000000..585a87f2e9f
--- /dev/null
+++ b/superset-frontend/packages/superset-core/src/navigation/index.ts
@@ -0,0 +1,81 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/**
+ * @fileoverview Navigation namespace for Superset extensions.
+ *
+ * Exposes the current application surface so extensions can react to route
+ * changes without polling. Entity-level context (chart, dashboard, dataset)
+ * is intentionally not included here — surface-specific namespaces that
+ * resolve entity payloads are introduced in later phases.
+ */
+
+import { Event } from '../common';
+
+/**
+ * The set of top-level application surfaces.
+ *
+ * `'explore'`, `'dashboard'` and `'dataset'` are the single-entity
+ * editing/viewing surfaces. `'chart_list'`, `'dashboard_list'` and
+ * `'dataset_list'` are the browse/list surfaces, distinct from those because no
+ * single entity is active. `'sqllab'` is the SQL editor where
+ * `sqlLab.getCurrentTab()` resolves; `'query_history'` and `'saved_queries'`
+ * are the related SQL Lab browse pages, which are not the editor. `'home'` is
+ * the welcome surface and the fallback for any route not explicitly enumerated.
+ */
+export type Page =
+ | 'dashboard'
+ | 'dashboard_list'
+ | 'explore'
+ | 'chart_list'
+ | 'sqllab'
+ | 'query_history'
+ | 'saved_queries'
+ | 'dataset'
+ | 'dataset_list'
+ | 'home';
+
+/**
+ * Returns the current page surface.
+ *
+ * @example
+ * ```typescript
+ * const page = navigation.getPage();
+ * if (page === 'dashboard') {
+ * // react to being on a dashboard surface
+ * }
+ * ```
+ */
+export declare function getPage(): Page;
+
+/**
+ * Event fired whenever the user navigates to a different surface.
+ *
+ * @example
+ * ```typescript
+ * const sub = navigation.onDidChangePage(page => {
+ * if (page === 'dashboard') {
+ * // react to navigating onto a dashboard surface
+ * }
+ * });
+ * // later:
+ * sub.dispose();
+ * ```
+ */
+export declare const onDidChangePage: Event<Page>;
diff --git a/superset-frontend/packages/superset-core/src/views/index.ts b/superset-frontend/packages/superset-core/src/views/index.ts
index 99c8ad09eb2..b3d57babe39 100644
--- a/superset-frontend/packages/superset-core/src/views/index.ts
+++ b/superset-frontend/packages/superset-core/src/views/index.ts
@@ -30,13 +30,13 @@
*
* views.registerView(
* { id: 'my_ext.result_stats', name: 'Result Stats', location: 'sqllab.panels' },
- * () => <ResultStatsPanel />,
+ * ResultStatsPanel,
* );
* ```
*/
-import { ReactElement } from 'react';
-import { Disposable } from '../common';
+import { ComponentType } from 'react';
+import { Disposable, Event } from '../common';
/**
* Represents a contributed view in the application.
@@ -58,7 +58,7 @@ export interface View {
*
* @param view The view descriptor (id and name).
* @param location The location where this view should appear (e.g. "sqllab.panels").
- * @param provider A function that returns the React element to render.
+ * @param component The React component to render at that location.
* @returns A Disposable that unregisters the view when disposed.
*
* @example
@@ -66,14 +66,14 @@ export interface View {
* views.registerView(
* { id: 'my_ext.result_stats', name: 'Result Stats' },
* 'sqllab.panels',
- * () => <ResultStatsPanel />,
+ * ResultStatsPanel,
* );
* ```
*/
export declare function registerView(
view: View,
location: string,
- provider: () => ReactElement,
+ component: ComponentType,
): Disposable;
/**
@@ -88,3 +88,33 @@ export declare function registerView(
* ```
*/
export declare function getViews(location: string): View[] | undefined;
+
+/**
+ * Event fired when a view is registered.
+ */
+export interface ViewRegisteredEvent {
+ /** The descriptor of the view that was registered. */
+ view: View;
+ /** The location where the view was registered. */
+ location: string;
+}
+
+/**
+ * Event fired when a view is unregistered.
+ */
+export interface ViewUnregisteredEvent {
+ /** The descriptor of the view that was unregistered. */
+ view: View;
+ /** The location where the view was registered. */
+ location: string;
+}
+
+/**
+ * Event fired when a view is registered.
+ */
+export declare const onDidRegisterView: Event<ViewRegisteredEvent>;
+
+/**
+ * Event fired when a view is unregistered.
+ */
+export declare const onDidUnregisterView: Event<ViewUnregisteredEvent>;
diff --git a/superset-frontend/src/core/chat/ChatHost.test.tsx b/superset-frontend/src/core/chat/ChatHost.test.tsx
new file mode 100644
index 00000000000..aa4d569c70e
--- /dev/null
+++ b/superset-frontend/src/core/chat/ChatHost.test.tsx
@@ -0,0 +1,277 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+import { act, render, screen } from 'spec/helpers/testing-library';
+import { chat } from 'src/core/chat';
+import ChatProvider from './ChatProvider';
+import { ChatFloatingHost as ChatHost, ChatPanelHost } from './ChatHost';
+
+beforeEach(() => {
+ ChatProvider.getInstance().reset();
+});
+
+test('renders nothing when no chat extension is registered', () => {
+ render(<ChatHost />);
+
+ expect(screen.queryByTestId('chat-mount')).not.toBeInTheDocument();
+});
+
+test('renders the trigger bubble of the registered chat', () => {
+ chat.registerChat(
+ { id: 'acme.chat', name: 'Acme Chat' },
+ () => <button type="button">Acme Bubble</button>,
+ () => <div>Acme Panel</div>,
+ );
+
+ render(<ChatHost />);
+
+ expect(screen.getByTestId('chat-mount')).toBeInTheDocument();
+ expect(screen.getByText('Acme Bubble')).toBeInTheDocument();
+ // The panel stays unmounted until the chat is opened.
+ expect(screen.queryByText('Acme Panel')).not.toBeInTheDocument();
+});
+
+test('mounts the panel when the chat opens and unmounts it on close', () => {
+ chat.registerChat(
+ { id: 'acme.chat', name: 'Acme Chat' },
+ () => <button type="button">Acme Bubble</button>,
+ () => <div>Acme Panel</div>,
+ );
+
+ render(<ChatHost />);
+
+ act(() => chat.open());
+
+ expect(screen.getByText('Acme Panel')).toBeInTheDocument();
+ // In floating mode the trigger stays mounted alongside the open panel.
+ expect(screen.getByText('Acme Bubble')).toBeInTheDocument();
+
+ act(() => chat.close());
+
+ expect(screen.queryByText('Acme Panel')).not.toBeInTheDocument();
+});
+
+test('renders the last-registered chat when several are installed', () => {
+ jest.spyOn(console, 'warn').mockImplementation(() => {});
+
+ chat.registerChat(
+ { id: 'first.chat', name: 'First Chat' },
+ () => <div>First Bubble</div>,
+ () => <div>First Panel</div>,
+ );
+ chat.registerChat(
+ { id: 'second.chat', name: 'Second Chat' },
+ () => <div>Second Bubble</div>,
+ () => <div>Second Panel</div>,
+ );
+
+ jest.restoreAllMocks();
+ render(<ChatHost />);
+
+ // Last-loaded wins: the second registration takes over the singleton slot.
+ expect(screen.getByText('Second Bubble')).toBeInTheDocument();
+ expect(screen.queryByText('First Bubble')).not.toBeInTheDocument();
+});
+
+test('reacts to a chat registering after the initial render', () => {
+ render(<ChatHost />);
+
+ expect(screen.queryByTestId('chat-mount')).not.toBeInTheDocument();
+
+ act(() => {
+ chat.registerChat(
+ { id: 'acme.chat', name: 'Acme Chat' },
+ () => <button type="button">Acme Bubble</button>,
+ () => <div>Acme Panel</div>,
+ );
+ });
+
+ expect(screen.getByText('Acme Bubble')).toBeInTheDocument();
+});
+
+test('a takeover mounts the incoming chat closed', () => {
+ chat.registerChat(
+ { id: 'first.chat', name: 'First Chat' },
+ () => <div>First Bubble</div>,
+ () => <div>First Panel</div>,
+ );
+
+ render(<ChatHost />);
+ act(() => chat.open());
+ expect(screen.getByText('First Panel')).toBeInTheDocument();
+
+ act(() => {
+ jest.spyOn(console, 'warn').mockImplementation(() => {});
+ chat.registerChat(
+ { id: 'second.chat', name: 'Second Chat' },
+ () => <div>Second Bubble</div>,
+ () => <div>Second Panel</div>,
+ );
+ jest.restoreAllMocks();
+ });
+
+ // The displaced chat's open state must not leak into the winner.
+ expect(screen.getByText('Second Bubble')).toBeInTheDocument();
+ expect(screen.queryByText('Second Panel')).not.toBeInTheDocument();
+ expect(screen.queryByText('First Panel')).not.toBeInTheDocument();
+});
+
+test('ChatPanelHost renders the panel when open in panel mode', () => {
+ chat.registerChat(
+ { id: 'acme.chat', name: 'Acme Chat' },
+ () => <button type="button">Acme Bubble</button>,
+ () => <div>Acme Panel</div>,
+ );
+
+ render(<ChatPanelHost />);
+
+ act(() => {
+ chat.setDisplayMode('panel');
+ chat.open();
+ });
+
+ expect(screen.getByText('Acme Panel')).toBeInTheDocument();
+});
+
+test('ChatFloatingHost suppresses the floating panel in panel mode but keeps the trigger', () => {
+ chat.registerChat(
+ { id: 'acme.chat', name: 'Acme Chat' },
+ () => <button type="button">Acme Bubble</button>,
+ () => <div>Acme Panel</div>,
+ );
+
+ render(<ChatHost />);
+
+ act(() => {
+ chat.setDisplayMode('panel');
+ chat.open();
+ });
+
+ // In panel mode the floating panel is suppressed (ChatPanelHost owns that slot).
+ expect(screen.queryByText('Acme Panel')).not.toBeInTheDocument();
+ // The trigger stays rendered so the user can reopen after collapsing.
+ expect(screen.getByText('Acme Bubble')).toBeInTheDocument();
+
+ act(() => chat.close());
+
+ // Trigger remains visible even when closed — it's the user's only way back.
+ expect(screen.getByText('Acme Bubble')).toBeInTheDocument();
+});
+
+test('a crashing panel does not take the trigger down with it', () => {
+ const FailingPanel = () => {
+ throw new Error('panel blew up');
+ };
+ chat.registerChat(
+ { id: 'acme.chat', name: 'Acme Chat' },
+ () => <button type="button">Acme Bubble</button>,
+ () => <FailingPanel />,
+ );
+
+ render(<ChatHost />);
+ act(() => chat.open());
+
+ // The panel's boundary contains the crash; the trigger keeps rendering so
+ // the user is not stranded without a way back.
+ expect(screen.queryByText('panel blew up')).not.toBeInTheDocument();
+ expect(screen.getByText('Acme Bubble')).toBeInTheDocument();
+});
+
+test('isolates a failing trigger so it does not crash the host', () => {
+ const FailingTrigger = () => {
+ throw new Error('chat blew up');
+ };
+ chat.registerChat(
+ { id: 'acme.chat', name: 'Acme Chat' },
+ () => <FailingTrigger />,
+ () => <div>Acme Panel</div>,
+ );
+
+ // The host-owned error boundary catches the failure; render does not throw.
+ expect(() => render(<ChatHost />)).not.toThrow();
+ // The mount slot still renders (the boundary lives inside it), confirming
+ // the provider was actually exercised and contained.
+ expect(screen.getByTestId('chat-mount')).toBeInTheDocument();
+});
+
+test('isolates a component that throws during render', () => {
+ chat.registerChat(
+ { id: 'acme.chat', name: 'Acme Chat' },
+ () => {
+ throw new Error('provider blew up');
+ },
+ () => <div>Acme Panel</div>,
+ );
+
+ expect(() => render(<ChatHost />)).not.toThrow();
+ expect(screen.getByTestId('chat-mount')).toBeInTheDocument();
+});
+
+test('recovers from a crashed chat when a different chat takes over', () => {
+ const FailingTrigger = () => {
+ throw new Error('first chat blew up');
+ };
+ chat.registerChat(
+ { id: 'first.chat', name: 'First Chat' },
+ () => <FailingTrigger />,
+ () => <div>First Panel</div>,
+ );
+
+ render(<ChatHost />);
+ expect(screen.queryByText('Second Bubble')).not.toBeInTheDocument();
+
+ act(() => {
+ jest.spyOn(console, 'warn').mockImplementation(() => {});
+ chat.registerChat(
+ { id: 'second.chat', name: 'Second Chat' },
+ () => <div>Second Bubble</div>,
+ () => <div>Second Panel</div>,
+ );
+ jest.restoreAllMocks();
+ });
+
+ // The boundary is keyed per registration, so the latched crash from the
+ // first chat does not blank the second one.
+ expect(screen.getByText('Second Bubble')).toBeInTheDocument();
+});
+
+test('recovers from a crashed chat when a different id takes over', () => {
+ const FailingTrigger = () => {
+ throw new Error('broken release');
+ };
+ chat.registerChat(
+ { id: 'acme.chat', name: 'Acme Chat' },
+ () => <FailingTrigger />,
+ () => <div>Acme Panel</div>,
+ );
+
+ render(<ChatHost />);
+
+ act(() => {
+ jest.spyOn(console, 'warn').mockImplementation(() => {});
+ chat.registerChat(
+ { id: 'fixed.chat', name: 'Fixed Chat' },
+ () => <div>Fixed Bubble</div>,
+ () => <div>Fixed Panel</div>,
+ );
+ jest.restoreAllMocks();
+ });
+
+ // Different id: boundary key changes, latch resets, fix renders.
+ expect(screen.getByText('Fixed Bubble')).toBeInTheDocument();
+});
diff --git a/superset-frontend/src/core/chat/ChatHost.tsx b/superset-frontend/src/core/chat/ChatHost.tsx
new file mode 100644
index 00000000000..73ba519f694
--- /dev/null
+++ b/superset-frontend/src/core/chat/ChatHost.tsx
@@ -0,0 +1,133 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+import { type ComponentType, useRef } from 'react';
+import { t } from '@apache-superset/core/translation';
+import { logging } from '@apache-superset/core/utils';
+import { css, useTheme } from '@apache-superset/core/theme';
+import { ErrorBoundary } from 'src/components/ErrorBoundary';
+import { addDangerToast } from 'src/components/MessageToasts/actions';
+import { store } from 'src/views/store';
+import { useChat } from '.';
+
+const CHAT_EDGE_MARGIN = 24;
+
+/**
+ * Returns an onError handler that shows a toast on crash, once per chat id.
+ */
+function useCrashNotifier(chatId: string | undefined) {
+ const notifiedFor = useRef<string | undefined>(undefined);
+ return (error: Error) => {
+ if (!chatId) return;
+ logging.error('[chat] provider crashed', error);
+ if (notifiedFor.current !== chatId) {
+ notifiedFor.current = chatId;
+ store.dispatch(addDangerToast(t('The chat failed to load.')));
+ }
+ };
+}
+
+/**
+ * Wraps a component in an ErrorBoundary, keyed by chat id so the boundary
+ * resets when a different chat takes over.
+ */
+const ChatBoundary = ({
+ component: Component,
+ onError,
+}: {
+ component: ComponentType;
+ onError: (error: Error) => void;
+}) => (
+ <ErrorBoundary showMessage={false} onError={onError}>
+ <Component />
+ </ErrorBoundary>
+);
+
+/**
+ * Renders the chat panel content in panel mode. Fills its container height.
+ */
+export const ChatPanelHost = () => {
+ const { chat, panel } = useChat();
+ const onError = useCrashNotifier(chat?.id);
+
+ if (!chat || !panel) {
+ return null;
+ }
+
+ return (
+ <div
+ data-test="chat-mount"
+ css={css`
+ display: flex;
+ flex-direction: column;
+ height: 100%;
+ `}
+ >
+ <ChatBoundary key={chat.id} component={panel} onError={onError} />
+ </div>
+ );
+};
+
+/**
+ * Renders the chat trigger and, when the panel is open in floating mode, the
+ * floating panel overlay. The trigger is always visible when a chat is
+ * registered; the panel overlay is suppressed in panel mode.
+ */
+export const ChatFloatingHost = () => {
+ const theme = useTheme();
+ const { open: panelOpen, mode, chat, trigger, panel } = useChat();
+ const onError = useCrashNotifier(chat?.id);
+
+ if (!chat || !trigger || !panel) {
+ return null;
+ }
+
+ return (
+ <div
+ data-test="chat-mount"
+ css={css`
+ position: fixed;
+ right: ${CHAT_EDGE_MARGIN}px;
+ bottom: ${CHAT_EDGE_MARGIN}px;
+ display: flex;
+ flex-direction: column;
+ align-items: flex-end;
+ gap: ${theme.sizeUnit * 2}px;
+ /* Above dashboard content and the toast layer, below modal dialogs. */
+ z-index: ${theme.zIndexPopupBase + 2};
+ `}
+ >
+ {/*
+ Separate boundaries so a crashing panel cannot take the trigger down
+ with it — the trigger is the user's only way back.
+ */}
+ {panelOpen && mode !== 'panel' && (
+ <ChatBoundary
+ key={`panel-${chat.id}`}
+ component={panel}
+ onError={onError}
+ />
+ )}
+ <ChatBoundary
+ key={`trigger-${chat.id}`}
+ component={trigger}
+ onError={onError}
+ />
+ </div>
+ );
+};
diff --git a/superset-frontend/src/core/chat/ChatProvider.test.ts b/superset-frontend/src/core/chat/ChatProvider.test.ts
new file mode 100644
index 00000000000..392f50a114f
--- /dev/null
+++ b/superset-frontend/src/core/chat/ChatProvider.test.ts
@@ -0,0 +1,257 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+import { createElement } from 'react';
+import ChatProvider from './ChatProvider';
+
+const trigger = () => createElement('button', null, 'Bubble');
+const panel = () => createElement('div', null, 'Panel');
+
+beforeEach(() => {
+ ChatProvider.getInstance().reset();
+});
+
+test('returns the singleton instance', () => {
+ expect(ChatProvider.getInstance()).toBe(ChatProvider.getInstance());
+});
+
+test('getChat returns undefined when no chat is registered', () => {
+ expect(ChatProvider.getInstance().getChat()).toBeUndefined();
+});
+
+test('registerChat sets the registration and returns the descriptor copy', () => {
+ const provider = ChatProvider.getInstance();
+ const descriptor = { id: 'acme.chat', name: 'Acme Chat' };
+ const disposable = provider.registerChat(descriptor, trigger, panel);
+
+ expect(provider.getChat()).toEqual(descriptor);
+ disposable.dispose();
+});
+
+test('the last-registered chat wins and logs a warning', () => {
+ const provider = ChatProvider.getInstance();
+ const warn = jest.spyOn(console, 'warn').mockImplementation(() => {});
+
+ provider.registerChat({ id: 'first.chat', name: 'First' }, trigger, panel);
+ provider.registerChat({ id: 'second.chat', name: 'Second' }, trigger, panel);
+
+ expect(provider.getChat()?.id).toBe('second.chat');
+ expect(warn).toHaveBeenCalledTimes(1);
+ expect(warn.mock.calls[0][0]).toContain('second.chat');
+ expect(warn.mock.calls[0][0]).toContain('first.chat');
+ warn.mockRestore();
+});
+
+test('re-registering with a different id replaces the active chat', () => {
+ const provider = ChatProvider.getInstance();
+ jest.spyOn(console, 'warn').mockImplementation(() => {});
+
+ provider.registerChat({ id: 'first.chat', name: 'First' }, trigger, panel);
+ expect(provider.getChat()?.id).toBe('first.chat');
+
+ provider.registerChat({ id: 'second.chat', name: 'Second' }, trigger, panel);
+ expect(provider.getChat()?.id).toBe('second.chat');
+
+ jest.restoreAllMocks();
+});
+
+test('disposing the registration clears it', () => {
+ const provider = ChatProvider.getInstance();
+ const disposable = provider.registerChat(
+ { id: 'acme.chat', name: 'Acme' },
+ trigger,
+ panel,
+ );
+
+ disposable.dispose();
+
+ expect(provider.getChat()).toBeUndefined();
+});
+
+test('disposing twice fires unregister only once', () => {
+ const provider = ChatProvider.getInstance();
+ const unregistered = jest.fn();
+ provider.onDidUnregisterChat(unregistered);
+
+ const disposable = provider.registerChat(
+ { id: 'acme.chat', name: 'Acme' },
+ trigger,
+ panel,
+ );
+ disposable.dispose();
+ disposable.dispose();
+
+ expect(unregistered).toHaveBeenCalledTimes(1);
+});
+
+test('onDidRegisterChat and onDidUnregisterChat fire with the descriptor', () => {
+ const provider = ChatProvider.getInstance();
+ const registered = jest.fn();
+ const unregistered = jest.fn();
+ provider.onDidRegisterChat(registered);
+ provider.onDidUnregisterChat(unregistered);
+
+ const descriptor = { id: 'acme.chat', name: 'Acme' };
+ const disposable = provider.registerChat(descriptor, trigger, panel);
+
+ expect(registered).toHaveBeenCalledWith(descriptor);
+ expect(unregistered).not.toHaveBeenCalled();
+
+ disposable.dispose();
+
+ expect(unregistered).toHaveBeenCalledWith(descriptor);
+});
+
+test('open and close toggle the panel state', () => {
+ const provider = ChatProvider.getInstance();
+ provider.registerChat({ id: 'acme.chat', name: 'Acme' }, trigger, panel);
+
+ expect(provider.isOpen()).toBe(false);
+
+ provider.open();
+ expect(provider.isOpen()).toBe(true);
+
+ provider.close();
+ expect(provider.isOpen()).toBe(false);
+});
+
+test('open fires once; duplicate open is a no-op', () => {
+ const provider = ChatProvider.getInstance();
+ const opened = jest.fn();
+ provider.onDidOpen(opened);
+ provider.registerChat({ id: 'acme.chat', name: 'Acme' }, trigger, panel);
+
+ provider.open();
+ provider.open();
+
+ expect(opened).toHaveBeenCalledTimes(1);
+});
+
+test('close fires once; duplicate close is a no-op', () => {
+ const provider = ChatProvider.getInstance();
+ const closed = jest.fn();
+ provider.onDidClose(closed);
+ provider.registerChat({ id: 'acme.chat', name: 'Acme' }, trigger, panel);
+
+ provider.open();
+ provider.close();
+ provider.close();
+
+ expect(closed).toHaveBeenCalledTimes(1);
+});
+
+test('open is a no-op when no chat is registered', () => {
+ const provider = ChatProvider.getInstance();
+ const opened = jest.fn();
+ provider.onDidOpen(opened);
+
+ provider.open();
+
+ expect(provider.isOpen()).toBe(false);
+ expect(opened).not.toHaveBeenCalled();
+});
+
+test('registering a second chat while open closes the panel', () => {
+ const provider = ChatProvider.getInstance();
+ const closed = jest.fn();
+ provider.onDidClose(closed);
+ jest.spyOn(console, 'warn').mockImplementation(() => {});
+
+ provider.registerChat({ id: 'first.chat', name: 'First' }, trigger, panel);
+ provider.open();
+ provider.registerChat({ id: 'second.chat', name: 'Second' }, trigger, panel);
+
+ expect(provider.isOpen()).toBe(false);
+ expect(closed).toHaveBeenCalledTimes(1);
+ jest.restoreAllMocks();
+});
+
+test('disposing the active chat while open closes the panel', () => {
+ const provider = ChatProvider.getInstance();
+ const closed = jest.fn();
+ provider.onDidClose(closed);
+
+ const disposable = provider.registerChat(
+ { id: 'acme.chat', name: 'Acme' },
+ trigger,
+ panel,
+ );
+ provider.open();
+ disposable.dispose();
+
+ expect(provider.isOpen()).toBe(false);
+ expect(closed).toHaveBeenCalledTimes(1);
+});
+
+test('a late registration does not inherit a stale open state', () => {
+ const provider = ChatProvider.getInstance();
+ const disposable = provider.registerChat(
+ { id: 'acme.chat', name: 'Acme' },
+ trigger,
+ panel,
+ );
+ provider.open();
+ disposable.dispose();
+
+ provider.registerChat({ id: 'late.chat', name: 'Late' }, trigger, panel);
+
+ expect(provider.isOpen()).toBe(false);
+});
+
+test('getDisplayMode defaults to floating', () => {
+ expect(ChatProvider.getInstance().getDisplayMode()).toBe('floating');
+});
+
+test('setDisplayMode updates mode and fires event only on change', () => {
+ const provider = ChatProvider.getInstance();
+ const modeChanged = jest.fn();
+ provider.onDidChangeDisplayMode(modeChanged);
+
+ provider.setDisplayMode('floating');
+ expect(modeChanged).not.toHaveBeenCalled();
+
+ provider.setDisplayMode('panel');
+ expect(provider.getDisplayMode()).toBe('panel');
+ expect(modeChanged).toHaveBeenCalledWith('panel');
+});
+
+test('state reflects changes after registration and open', () => {
+ const provider = ChatProvider.getInstance();
+
+ expect(provider.getChat()).toBeUndefined();
+ expect(provider.isOpen()).toBe(false);
+
+ provider.registerChat({ id: 'acme.chat', name: 'Acme' }, trigger, panel);
+ provider.open();
+
+ expect(provider.isOpen()).toBe(true);
+ expect(provider.getChat()?.id).toBe('acme.chat');
+});
+
+test('reset clears all state', () => {
+ const provider = ChatProvider.getInstance();
+ provider.registerChat({ id: 'acme.chat', name: 'Acme' }, trigger, panel);
+ provider.open();
+ provider.setDisplayMode('panel');
+
+ provider.reset();
+
+ expect(provider.getChat()).toBeUndefined();
+ expect(provider.isOpen()).toBe(false);
+ expect(provider.getDisplayMode()).toBe('floating');
+});
diff --git a/superset-frontend/src/core/chat/ChatProvider.ts b/superset-frontend/src/core/chat/ChatProvider.ts
new file mode 100644
index 00000000000..b0d2f79af50
--- /dev/null
+++ b/superset-frontend/src/core/chat/ChatProvider.ts
@@ -0,0 +1,209 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+import { ComponentType } from 'react';
+import type { chat as chatApi } from '@apache-superset/core';
+import {
+ LocalStorageKeys,
+ getItem,
+ setItem,
+} from 'src/utils/localStorageHelpers';
+import { Disposable } from '../models';
+import { createValueEventEmitter, createEventEmitter } from '../utils';
+
+type Chat = chatApi.Chat;
+type DisplayMode = chatApi.DisplayMode;
+
+/**
+ * Singleton manager for the chat provider.
+ * Handles registration, open/close state, and display mode.
+ */
+class ChatProvider {
+ private static instance: ChatProvider;
+
+ private chat: Chat | undefined;
+
+ private trigger: ComponentType | undefined;
+
+ private panel: ComponentType | undefined;
+
+ private opened: boolean;
+
+ private stateSubscribers = new Set<() => void>();
+
+ private registerEmitter = createEventEmitter<Chat>();
+
+ private unregisterEmitter = createEventEmitter<Chat>();
+
+ private openEmitter = createEventEmitter<void>();
+
+ private closeEmitter = createEventEmitter<void>();
+
+ private resizePanelEmitter = createEventEmitter<{ width: number }>();
+
+ private modeEmitter: ReturnType<typeof createValueEventEmitter<DisplayMode>>;
+
+ private constructor() {
+ const persisted = getItem(LocalStorageKeys.ChatState, {
+ open: false,
+ mode: 'floating',
+ });
+ const mode = (
+ persisted.mode === 'panel' ? 'panel' : 'floating'
+ ) as DisplayMode;
+ this.opened = persisted.open === true;
+ this.modeEmitter = createValueEventEmitter<DisplayMode>(mode);
+ }
+
+ public static getInstance(): ChatProvider {
+ if (!ChatProvider.instance) {
+ ChatProvider.instance = new ChatProvider();
+ }
+ return ChatProvider.instance;
+ }
+
+ public subscribe = (listener: () => void): (() => void) => {
+ this.stateSubscribers.add(listener);
+ return () => this.stateSubscribers.delete(listener);
+ };
+
+ private notifyState(): void {
+ setItem(LocalStorageKeys.ChatState, {
+ open: this.opened,
+ mode: this.modeEmitter.getCurrent(),
+ });
+ this.stateSubscribers.forEach(fn => fn());
+ }
+
+ private closePanel(): void {
+ this.opened = false;
+ this.closeEmitter.fire();
+ }
+
+ public registerChat(
+ chat: Chat,
+ trigger: ComponentType,
+ panel: ComponentType,
+ ): Disposable {
+ if (this.chat) {
+ // eslint-disable-next-line no-console
+ console.warn(
+ `[Superset] Multiple chat extensions registered. Using "${chat.id}"; discarding "${this.chat.id}".`,
+ );
+ this.unregisterEmitter.fire(this.chat);
+ if (this.opened) this.closePanel();
+ }
+
+ this.chat = chat;
+ this.trigger = trigger;
+ this.panel = panel;
+ this.registerEmitter.fire(chat);
+ this.notifyState();
+
+ return new Disposable(() => {
+ if (this.chat !== chat) return;
+ this.chat = undefined;
+ this.trigger = undefined;
+ this.panel = undefined;
+ this.unregisterEmitter.fire(chat);
+ if (this.opened) this.closePanel();
+ this.notifyState();
+ });
+ }
+
+ public getChat(): Chat | undefined {
+ return this.chat;
+ }
+
+ public getTrigger(): ComponentType | undefined {
+ return this.trigger;
+ }
+
+ public getPanel(): ComponentType | undefined {
+ return this.panel;
+ }
+
+ public open(): void {
+ if (this.opened || !this.chat) return;
+ this.opened = true;
+ this.openEmitter.fire();
+ this.notifyState();
+ }
+
+ public close(): void {
+ if (!this.opened || !this.chat) return;
+ this.closePanel();
+ this.notifyState();
+ }
+
+ public isOpen(): boolean {
+ return this.opened;
+ }
+
+ public getDisplayMode(): DisplayMode {
+ return this.modeEmitter.getCurrent();
+ }
+
+ public setDisplayMode(displayMode: DisplayMode): void {
+ if (displayMode === this.modeEmitter.getCurrent()) return;
+ this.modeEmitter.fire(displayMode);
+ this.notifyState();
+ }
+
+ public get onDidRegisterChat() {
+ return this.registerEmitter.subscribe;
+ }
+
+ public get onDidUnregisterChat() {
+ return this.unregisterEmitter.subscribe;
+ }
+
+ public get onDidOpen() {
+ return this.openEmitter.subscribe;
+ }
+
+ public get onDidClose() {
+ return this.closeEmitter.subscribe;
+ }
+
+ public get onDidChangeDisplayMode() {
+ return this.modeEmitter.subscribe;
+ }
+
+ public get onDidResizePanel() {
+ return this.resizePanelEmitter.subscribe;
+ }
+
+ public reset(): void {
+ this.chat = undefined;
+ this.trigger = undefined;
+ this.panel = undefined;
+ this.opened = false;
+ this.registerEmitter = createEventEmitter<Chat>();
+ this.unregisterEmitter = createEventEmitter<Chat>();
+ this.openEmitter = createEventEmitter<void>();
+ this.closeEmitter = createEventEmitter<void>();
+ this.resizePanelEmitter = createEventEmitter<{ width: number }>();
+ this.modeEmitter = createValueEventEmitter<DisplayMode>('floating');
+ this.stateSubscribers.clear();
+ setItem(LocalStorageKeys.ChatState, { open: false, mode: 'floating' });
+ }
+}
+
+export default ChatProvider;
diff --git a/superset-frontend/src/core/chat/index.test.ts b/superset-frontend/src/core/chat/index.test.ts
new file mode 100644
index 00000000000..2fee1989135
--- /dev/null
+++ b/superset-frontend/src/core/chat/index.test.ts
@@ -0,0 +1,68 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+import { createElement } from 'react';
+import { chat } from './index';
+import ChatProvider from './ChatProvider';
+
+const trigger = () => createElement('button', null, 'Bubble');
+const panel = () => createElement('div', null, 'Panel');
+
+beforeEach(() => {
+ ChatProvider.getInstance().reset();
+});
+
+test('getChat returns undefined when no chat is registered', () => {
+ expect(chat.getChat()).toBeUndefined();
+});
+
+test('registerChat makes the chat retrievable via getChat', () => {
+ const descriptor = { id: 'acme.chat', name: 'Acme Chat' };
+ chat.registerChat(descriptor, trigger, panel);
+
+ expect(chat.getChat()).toEqual(descriptor);
+});
+
+test('the last-registered chat wins when multiple are registered', () => {
+ jest.spyOn(console, 'warn').mockImplementation(() => {});
+
+ chat.registerChat({ id: 'first.chat', name: 'First' }, trigger, panel);
+ chat.registerChat({ id: 'second.chat', name: 'Second' }, trigger, panel);
+
+ expect(chat.getChat()?.id).toBe('second.chat');
+ jest.restoreAllMocks();
+});
+
+test('open and close toggle isOpen', () => {
+ chat.registerChat({ id: 'acme.chat', name: 'Acme' }, trigger, panel);
+
+ expect(chat.isOpen()).toBe(false);
+ chat.open();
+ expect(chat.isOpen()).toBe(true);
+ chat.close();
+ expect(chat.isOpen()).toBe(false);
+});
+
+test('getDisplayMode defaults to floating', () => {
+ expect(chat.getDisplayMode()).toBe('floating');
+});
+
+test('setDisplayMode updates the display mode', () => {
+ chat.setDisplayMode('panel');
+ expect(chat.getDisplayMode()).toBe('panel');
+});
diff --git a/superset-frontend/src/core/chat/index.ts b/superset-frontend/src/core/chat/index.ts
new file mode 100644
index 00000000000..342c534361d
--- /dev/null
+++ b/superset-frontend/src/core/chat/index.ts
@@ -0,0 +1,82 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/**
+ * @fileoverview Host implementation of the `chat` contribution type.
+ *
+ * Extensions register via the public `chat.registerChat()` and the host owns
+ * mounting, open/close state, and the display mode. Only the last-registered
+ * chat is active at a time.
+ *
+ * The public namespace (`chat`) is exposed to extensions on `window.superset`.
+ * `useChat` is host-internal and NOT part of the public `@apache-superset/core` API.
+ */
+
+import { useSyncExternalStore } from 'use-sync-external-store/shim';
+import memoizeOne from 'memoize-one';
+import type { chat as chatApi } from '@apache-superset/core';
+import ChatProvider from './ChatProvider';
+
+export { ChatFloatingHost, ChatPanelHost } from './ChatHost';
+
+const provider = ChatProvider.getInstance();
+
+const buildSnapshot = memoizeOne(
+ (
+ open: boolean,
+ mode: chatApi.DisplayMode,
+ chat: chatApi.Chat | undefined,
+ trigger: ReturnType<typeof provider.getTrigger>,
+ panel: ReturnType<typeof provider.getPanel>,
+ ) => ({ open, mode, chat, trigger, panel }),
+);
+
+const getSnapshot = () =>
+ buildSnapshot(
+ provider.isOpen(),
+ provider.getDisplayMode(),
+ provider.getChat(),
+ provider.getTrigger(),
+ provider.getPanel(),
+ );
+
+/**
+ * Host-internal hook. Returns the current open/mode state and the active chat
+ * (trigger, panel, descriptor).
+ */
+export const useChat = () =>
+ useSyncExternalStore(provider.subscribe, getSnapshot);
+
+export const chat: typeof chatApi = {
+ registerChat: provider.registerChat.bind(provider),
+ getChat: provider.getChat.bind(provider),
+ onDidRegisterChat: provider.onDidRegisterChat,
+ onDidUnregisterChat: provider.onDidUnregisterChat,
+ open: provider.open.bind(provider),
+ close: provider.close.bind(provider),
+ isOpen: provider.isOpen.bind(provider),
+ onDidOpen: provider.onDidOpen,
+ onDidClose: provider.onDidClose,
+ getDisplayMode: provider.getDisplayMode.bind(provider),
+ setDisplayMode: provider.setDisplayMode.bind(provider),
+ onDidChangeDisplayMode: provider.onDidChangeDisplayMode,
+ // The host fires this from its panel resizer; until that chrome exists the
+ // event is exposed but never fires.
+ onDidResizePanel: provider.onDidResizePanel,
+};
diff --git a/superset-frontend/src/core/editors/EditorProviders.test.ts b/superset-frontend/src/core/editors/EditorProviders.test.ts
index c3d0580ef18..9f4ac0b2be2 100644
--- a/superset-frontend/src/core/editors/EditorProviders.test.ts
+++ b/superset-frontend/src/core/editors/EditorProviders.test.ts
@@ -254,33 +254,6 @@ test('event listeners can be disposed', () => {
expect(listener).toHaveBeenCalledTimes(1); // Still only 1 call
});
-test('handles errors in event listeners gracefully', () => {
- const manager = EditorProviders.getInstance();
- const consoleErrorSpy = jest.spyOn(console, 'error').mockImplementation();
-
- const errorListener = jest.fn(() => {
- throw new Error('Listener error');
- });
- const successListener = jest.fn();
-
- manager.onDidRegister(errorListener);
- manager.onDidRegister(successListener);
-
- manager.registerProvider(createMockEditor(), createMockEditorComponent());
-
- // Both listeners should have been called
- expect(errorListener).toHaveBeenCalledTimes(1);
- expect(successListener).toHaveBeenCalledTimes(1);
-
- // Error should have been logged
- expect(consoleErrorSpy).toHaveBeenCalledWith(
- 'Error in event listener:',
- expect.any(Error),
- );
-
- consoleErrorSpy.mockRestore();
-});
-
test('reset clears all providers and language mappings', () => {
const manager = EditorProviders.getInstance();
diff --git a/superset-frontend/src/core/editors/EditorProviders.ts b/superset-frontend/src/core/editors/EditorProviders.ts
index 81e35268e41..8cb5514fbe6 100644
--- a/superset-frontend/src/core/editors/EditorProviders.ts
+++ b/superset-frontend/src/core/editors/EditorProviders.ts
@@ -19,6 +19,7 @@
import type { editors } from '@apache-superset/core';
import { Disposable } from '../models';
+import { createEventEmitter } from '../utils';
type EditorLanguage = editors.EditorLanguage;
type EditorProvider = editors.EditorProvider;
@@ -27,45 +28,8 @@ type EditorComponent = editors.EditorComponent;
type EditorRegisteredEvent = editors.EditorRegisteredEvent;
type EditorUnregisteredEvent = editors.EditorUnregisteredEvent;
-/**
- * Listener function type for events.
- */
type Listener<T> = (e: T) => void;
-/**
- * Simple event emitter for editor provider lifecycle events.
- */
-class EventEmitter<T> {
- private listeners: Set<Listener<T>> = new Set();
-
- /**
- * Subscribe to this event.
- * @param listener The listener function to call when the event is fired.
- * @returns A Disposable to unsubscribe from the event.
- */
- subscribe(listener: Listener<T>): Disposable {
- this.listeners.add(listener);
- return new Disposable(() => {
- this.listeners.delete(listener);
- });
- }
-
- /**
- * Fire the event with the given data.
- * @param data The event data to pass to listeners.
- */
- fire(data: T): void {
- this.listeners.forEach(listener => {
- try {
- listener(data);
- } catch (error) {
- // eslint-disable-next-line no-console
- console.error('Error in event listener:', error);
- }
- });
- }
-}
-
/**
* Singleton manager for editor providers.
* Handles registration, resolution, and lifecycle of custom editor implementations.
@@ -83,15 +47,16 @@ class EditorProviders {
*/
private languageToProvider: Map<EditorLanguage, string> = new Map();
- /**
- * Event emitter for provider registration events.
- */
- private registerEmitter = new EventEmitter<EditorRegisteredEvent>();
+ private registerEmitter = createEventEmitter<EditorRegisteredEvent>();
- /**
- * Event emitter for provider unregistration events.
- */
- private unregisterEmitter = new EventEmitter<EditorUnregisteredEvent>();
+ private unregisterEmitter = createEventEmitter<EditorUnregisteredEvent>();
+
+ private syncListeners: Set<() => void> = new Set();
+
+ public subscribe = (listener: () => void): (() => void) => {
+ this.syncListeners.add(listener);
+ return () => this.syncListeners.delete(listener);
+ };
// eslint-disable-next-line no-useless-constructor
private constructor() {
@@ -145,6 +110,7 @@ class EditorProviders {
// Fire registration event
this.registerEmitter.fire({ editor });
+ this.syncListeners.forEach(l => l());
// Return disposable for cleanup
return new Disposable(() => {
@@ -176,6 +142,7 @@ class EditorProviders {
// Fire unregistration event
this.unregisterEmitter.fire({ editor });
+ this.syncListeners.forEach(l => l());
}
/**
@@ -213,8 +180,11 @@ class EditorProviders {
* @param listener The listener function.
* @returns A Disposable to unsubscribe.
*/
- public onDidRegister(listener: Listener<EditorRegisteredEvent>): Disposable {
- return this.registerEmitter.subscribe(listener);
+ public onDidRegister(
+ listener: Listener<EditorRegisteredEvent>,
+ thisArgs?: unknown,
+ ): Disposable {
+ return this.registerEmitter.subscribe(listener, thisArgs);
}
/**
@@ -224,8 +194,9 @@ class EditorProviders {
*/
public onDidUnregister(
listener: Listener<EditorUnregisteredEvent>,
+ thisArgs?: unknown,
): Disposable {
- return this.unregisterEmitter.subscribe(listener);
+ return this.unregisterEmitter.subscribe(listener, thisArgs);
}
/**
@@ -234,6 +205,9 @@ class EditorProviders {
public reset(): void {
this.providers.clear();
this.languageToProvider.clear();
+ this.syncListeners.clear();
+ this.registerEmitter = createEventEmitter<EditorRegisteredEvent>();
+ this.unregisterEmitter = createEventEmitter<EditorUnregisteredEvent>();
}
}
diff --git a/superset-frontend/src/core/editors/index.ts b/superset-frontend/src/core/editors/index.ts
index 641fad56e8f..367fe0a0339 100644
--- a/superset-frontend/src/core/editors/index.ts
+++ b/superset-frontend/src/core/editors/index.ts
@@ -18,112 +18,39 @@
*/
/**
- * @fileoverview Implementation of the editors API for Superset.
+ * @fileoverview Host implementation of the `editors` contribution type.
*
- * This module provides the runtime implementation of the editor registration
- * and resolution functions declared in the API types.
+ * Extensions register via the public `editors.registerEditor()` and the host
+ * resolves the appropriate provider per language, falling back to the built-in
+ * AceEditorProvider when no extension is registered.
+ *
+ * The public namespace (`editors`) is exposed to extensions on `window.superset`.
+ * `EditorHost` is the host-internal component for rendering editors and is NOT
+ * part of the public `@apache-superset/core` API.
*/
+import { useSyncExternalStore } from 'use-sync-external-store/shim';
import { editors as editorsApi } from '@apache-superset/core';
-import { Disposable } from '../models';
import EditorProviders from './EditorProviders';
-type EditorLanguage = editorsApi.EditorLanguage;
-type Editor = editorsApi.Editor;
-type EditorProvider = editorsApi.EditorProvider;
-type EditorComponent = editorsApi.EditorComponent;
-type EditorRegisteredEvent = editorsApi.EditorRegisteredEvent;
-type EditorUnregisteredEvent = editorsApi.EditorUnregisteredEvent;
-
-/**
- * Register an editor provider as a module-level side effect.
- * Takes the editor descriptor directly rather than looking it up
- * from a manifest by ID.
- *
- * @param editor The editor descriptor.
- * @param component The React component implementing the editor.
- * @returns A Disposable to unregister the provider.
- */
-export const registerEditor = (
- editor: Editor,
- component: EditorComponent,
-): Disposable => {
- const providers = EditorProviders.getInstance();
- return providers.registerProvider(editor, component);
-};
-
-/**
- * Get the editor provider for a specific language.
- * Returns the extension's editor if registered, otherwise undefined.
- *
- * @param language The language to get an editor for
- * @returns The editor provider or undefined if no extension provides one
- */
-export const getEditor = (
- language: EditorLanguage,
-): EditorProvider | undefined => {
- const manager = EditorProviders.getInstance();
- return manager.getProvider(language);
-};
-
-/**
- * Check if an extension has registered an editor for a language.
- *
- * @param language The language to check
- * @returns True if an extension provides an editor for this language
- */
-export const hasEditor = (language: EditorLanguage): boolean => {
- const manager = EditorProviders.getInstance();
- return manager.hasProvider(language);
-};
-
-/**
- * Get all registered editor providers.
- *
- * @returns Array of all registered editor providers
- */
-export const getAllEditors = (): EditorProvider[] => {
- const manager = EditorProviders.getInstance();
- return manager.getAllProviders();
-};
+export type { EditorHostProps } from './EditorHost';
+export { default as EditorHost } from './EditorHost';
+export { default as AceEditorProvider } from './AceEditorProvider';
-/**
- * Event fired when an editor is registered.
- * Subscribe to this event to react when extensions register new editors.
- */
-export const onDidRegisterEditor = (
- listener: (e: EditorRegisteredEvent) => void,
-): Disposable => {
- const manager = EditorProviders.getInstance();
- return manager.onDidRegister(listener);
-};
+const provider = EditorProviders.getInstance();
-/**
- * Event fired when an editor is unregistered.
- * Subscribe to this event to react when extensions unregister editors.
- */
-export const onDidUnregisterEditor = (
- listener: (e: EditorUnregisteredEvent) => void,
-): Disposable => {
- const manager = EditorProviders.getInstance();
- return manager.onDidUnregister(listener);
-};
+export const useEditor = (language: editorsApi.EditorLanguage) =>
+ useSyncExternalStore(
+ provider.subscribe,
+ () => provider.getProvider(language),
+ () => undefined,
+ );
-/**
- * Editors API object for use in the extension system.
- */
export const editors: typeof editorsApi = {
- registerEditor,
- getEditor,
- hasEditor,
- getAllEditors,
- onDidRegisterEditor,
- onDidUnregisterEditor,
+ registerEditor: provider.registerProvider.bind(provider),
+ getEditor: provider.getProvider.bind(provider),
+ hasEditor: provider.hasProvider.bind(provider),
+ getAllEditors: provider.getAllProviders.bind(provider),
+ onDidRegisterEditor: provider.onDidRegister.bind(provider),
+ onDidUnregisterEditor: provider.onDidUnregister.bind(provider),
};
-
-export { EditorProviders };
-
-// Component exports
-export { default as EditorHost } from './EditorHost';
-export type { EditorHostProps } from './EditorHost';
-export { default as AceEditorProvider } from './AceEditorProvider';
diff --git a/superset-frontend/src/core/index.ts b/superset-frontend/src/core/index.ts
index 6a106ebe87a..ce5b7f4d505 100644
--- a/superset-frontend/src/core/index.ts
+++ b/superset-frontend/src/core/index.ts
@@ -27,11 +27,13 @@ export const core: typeof coreType = {
};
export * from './authentication';
+export * from './chat';
export * from './commands';
export * from './editors';
export * from './extensions';
export * from './menus';
export * from './models';
+export * from './navigation';
export * from './sqlLab';
export * from './utils';
export * from './views';
diff --git a/superset-frontend/src/core/menus/index.ts b/superset-frontend/src/core/menus/index.ts
index 56da039a66f..bf657d70915 100644
--- a/superset-frontend/src/core/menus/index.ts
+++ b/superset-frontend/src/core/menus/index.ts
@@ -24,12 +24,15 @@
* Extensions register menu items as side effects at import time.
*/
-import { useEffect, useState } from 'react';
+import { useSyncExternalStore } from 'use-sync-external-store/shim';
import type { menus as menusApi } from '@apache-superset/core';
import { Disposable } from '../models';
+import { createEventEmitter } from '../utils';
type MenuItem = menusApi.MenuItem;
type Menu = menusApi.Menu;
+type MenuItemRegisteredEvent = menusApi.MenuItemRegisteredEvent;
+type MenuItemUnregisteredEvent = menusApi.MenuItemUnregisteredEvent;
type StoredMenuItem = {
item: MenuItem;
@@ -39,8 +42,26 @@ type StoredMenuItem = {
const menuItems: StoredMenuItem[] = [];
-const listeners = new Set<() => void>();
-const notify = () => listeners.forEach(l => l());
+const syncListeners = new Set<() => void>();
+const subscribe = (listener: () => void) => {
+ syncListeners.add(listener);
+ return () => syncListeners.delete(listener);
+};
+
+const registerEmitter = createEventEmitter<MenuItemRegisteredEvent>();
+const unregisterEmitter = createEventEmitter<MenuItemUnregisteredEvent>();
+
+const menuCache = new Map<string, Menu | undefined>();
+const notifyRegister = (event: MenuItemRegisteredEvent) => {
+ menuCache.clear();
+ syncListeners.forEach(l => l());
+ registerEmitter.fire(event);
+};
+const notifyUnregister = (event: MenuItemUnregisteredEvent) => {
+ menuCache.clear();
+ syncListeners.forEach(l => l());
+ unregisterEmitter.fire(event);
+};
const registerMenuItem: typeof menusApi.registerMenuItem = (
item: MenuItem,
@@ -49,13 +70,13 @@ const registerMenuItem: typeof menusApi.registerMenuItem = (
): Disposable => {
const stored: StoredMenuItem = { item, location, group };
menuItems.push(stored);
- notify();
+ notifyRegister({ item, location, group });
return new Disposable(() => {
const index = menuItems.indexOf(stored);
if (index >= 0) {
menuItems.splice(index, 1);
}
- notify();
+ notifyUnregister({ item, location, group });
});
};
@@ -83,19 +104,32 @@ const getMenu: typeof menusApi.getMenu = (
return result;
};
-export const useMenu = (location: string): Menu | undefined => {
- const [value, setValue] = useState(() => getMenu(location));
- useEffect(() => {
- const listener = () => setValue(getMenu(location));
- listeners.add(listener);
- return () => {
- listeners.delete(listener);
- };
- }, [location]);
- return value;
-};
+export const useMenu = (location: string): Menu | undefined =>
+ useSyncExternalStore(
+ subscribe,
+ () => {
+ if (!menuCache.has(location)) {
+ menuCache.set(location, getMenu(location));
+ }
+ return menuCache.get(location);
+ },
+ () => undefined,
+ );
+
+export const onDidRegisterMenuItem: typeof menusApi.onDidRegisterMenuItem = (
+ listener: (e: MenuItemRegisteredEvent) => void,
+ thisArgs?: unknown,
+): Disposable => registerEmitter.subscribe(listener, thisArgs);
+
+export const onDidUnregisterMenuItem: typeof menusApi.onDidUnregisterMenuItem =
+ (
+ listener: (e: MenuItemUnregisteredEvent) => void,
+ thisArgs?: unknown,
+ ): Disposable => unregisterEmitter.subscribe(listener, thisArgs);
export const menus: typeof menusApi = {
registerMenuItem,
getMenu,
+ onDidRegisterMenuItem,
+ onDidUnregisterMenuItem,
};
diff --git a/superset-frontend/src/core/navigation/index.test.ts b/superset-frontend/src/core/navigation/index.test.ts
new file mode 100644
index 00000000000..e7c2fbe183d
--- /dev/null
+++ b/superset-frontend/src/core/navigation/index.test.ts
@@ -0,0 +1,124 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+// Reset module state between tests so currentPage is re-initialized.
+beforeEach(() => {
+ jest.resetModules();
+ Object.defineProperty(window, 'location', {
+ writable: true,
+ value: { pathname: '/' },
+ });
+});
+
+async function importNavigation() {
+ const mod = await import('./index');
+ return mod;
+}
+
+test('getPage falls back to "home" for the welcome page and unknown pathnames', async () => {
+ const { navigation, notifyLocationChanged } = await importNavigation();
+ // The default pathname ('/') is not enumerated and falls back to home.
+ expect(navigation.getPage()).toBe('home');
+ notifyLocationChanged('/superset/welcome/');
+ expect(navigation.getPage()).toBe('home');
+});
+
+test('getPage derives the page from window.location.pathname', async () => {
+ window.location.pathname = '/superset/dashboard/42/';
+ const { navigation } = await importNavigation();
+ expect(navigation.getPage()).toBe('dashboard');
+});
+
+test('notifyLocationChanged updates the current page type', async () => {
+ const { navigation, notifyLocationChanged } = await importNavigation();
+ notifyLocationChanged('/explore/?form_data={}');
+ expect(navigation.getPage()).toBe('explore');
+});
+
+test('notifyLocationChanged fires listeners on page type change', async () => {
+ const { navigation, notifyLocationChanged } = await importNavigation();
+ const listener = jest.fn();
+ const disposable = navigation.onDidChangePage(listener);
+
+ notifyLocationChanged('/superset/dashboard/1/');
+ expect(listener).toHaveBeenCalledWith('dashboard');
+
+ disposable.dispose();
+});
+
+test('notifyLocationChanged does not fire listeners when page type is unchanged', async () => {
+ window.location.pathname = '/superset/dashboard/1/';
+ const { navigation, notifyLocationChanged } = await importNavigation();
+ const listener = jest.fn();
+ navigation.onDidChangePage(listener);
+
+ notifyLocationChanged('/superset/dashboard/2/');
+ expect(listener).not.toHaveBeenCalled();
+});
+
+test('onDidChangePage listener is removed after dispose', async () => {
+ const { navigation, notifyLocationChanged } = await importNavigation();
+ const listener = jest.fn();
+ const disposable = navigation.onDidChangePage(listener);
+
+ disposable.dispose();
+ notifyLocationChanged('/superset/dashboard/1/');
+ expect(listener).not.toHaveBeenCalled();
+});
+
+test('sqllab path is matched with and without trailing slash', async () => {
+ const { notifyLocationChanged, navigation } = await importNavigation();
+ notifyLocationChanged('/sqllab');
+ expect(navigation.getPage()).toBe('sqllab');
+ notifyLocationChanged('/explore/');
+ notifyLocationChanged('/sqllab/');
+ expect(navigation.getPage()).toBe('sqllab');
+});
+
+test('chart and dashboard list pages get their own page types', async () => {
+ const { notifyLocationChanged, navigation } = await importNavigation();
+ notifyLocationChanged('/chart/list/');
+ expect(navigation.getPage()).toBe('chart_list');
+ notifyLocationChanged('/dashboard/list/');
+ expect(navigation.getPage()).toBe('dashboard_list');
+});
+
+test('dataset list and single-dataset pages get distinct page types', async () => {
+ const { notifyLocationChanged, navigation } = await importNavigation();
+ notifyLocationChanged('/tablemodelview/list/');
+ expect(navigation.getPage()).toBe('dataset_list');
+ notifyLocationChanged('/dataset/42');
+ expect(navigation.getPage()).toBe('dataset');
+});
+
+test('sqllab editor, query history, and saved queries get distinct page types', async () => {
+ const { notifyLocationChanged, navigation } = await importNavigation();
+ notifyLocationChanged('/sqllab/');
+ expect(navigation.getPage()).toBe('sqllab');
+ notifyLocationChanged('/sqllab/history/');
+ expect(navigation.getPage()).toBe('query_history');
+ notifyLocationChanged('/savedqueryview/list/');
+ expect(navigation.getPage()).toBe('saved_queries');
+});
+
+test('chart/add resolves to explore, not chart_list', async () => {
+ const { notifyLocationChanged, navigation } = await importNavigation();
+ notifyLocationChanged('/chart/add');
+ expect(navigation.getPage()).toBe('explore');
+});
diff --git a/superset-frontend/src/core/navigation/index.ts b/superset-frontend/src/core/navigation/index.ts
new file mode 100644
index 00000000000..d41e76e50bf
--- /dev/null
+++ b/superset-frontend/src/core/navigation/index.ts
@@ -0,0 +1,94 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/**
+ * @fileoverview Host-internal implementation of the `navigation` namespace.
+ *
+ * Derives the current {@link Page} from the browser location by matching
+ * against {@link RoutePaths}. Call {@link useNavigationTracker} once in the
+ * app shell to keep the page in sync with React Router.
+ */
+
+import { useEffect, useRef } from 'react';
+import { useLocation, matchPath } from 'react-router-dom';
+import type { navigation as navigationApi } from '@apache-superset/core';
+import { RoutePaths } from '../../views/routePaths';
+import { Disposable } from '../models';
+import { createValueEventEmitter } from '../utils';
+
+type Page = navigationApi.Page;
+
+/** Maps route path patterns to their corresponding Page type. */
+const PAGE_ROUTES: { path: string; page: Page }[] = [
+ { path: RoutePaths.DASHBOARD, page: 'dashboard' },
+ { path: RoutePaths.DASHBOARD_LIST, page: 'dashboard_list' },
+ { path: RoutePaths.QUERY_HISTORY, page: 'query_history' },
+ { path: RoutePaths.SAVED_QUERIES, page: 'saved_queries' },
+ { path: RoutePaths.SQLLAB, page: 'sqllab' },
+ { path: RoutePaths.CHART_ADD, page: 'explore' },
+ { path: RoutePaths.CHART_LIST, page: 'chart_list' },
+ { path: RoutePaths.EXPLORE, page: 'explore' },
+ { path: RoutePaths.EXPLORE_PERMALINK, page: 'explore' },
+ { path: RoutePaths.DATASET_LIST, page: 'dataset_list' },
+ { path: RoutePaths.DATASET_ADD, page: 'dataset' },
+ { path: RoutePaths.DATASET, page: 'dataset' },
+];
+
+function derivePage(pathname: string): Page {
+ for (const { path, page } of PAGE_ROUTES) {
+ if (matchPath(pathname, { path, exact: false })) return page;
+ }
+ return 'home';
+}
+
+const pageEmitter = createValueEventEmitter<Page>(
+ derivePage(window.location.pathname),
+);
+
+/** Updates the current page from a pathname. No-op when the page is unchanged. */
+export const notifyLocationChanged = (pathname: string): void => {
+ const next = derivePage(pathname);
+ if (next === pageEmitter.getCurrent()) return;
+ pageEmitter.fire(next);
+};
+
+const getPage: typeof navigationApi.getPage = () => pageEmitter.getCurrent();
+
+const onDidChangePage: typeof navigationApi.onDidChangePage = (
+ listener: (page: Page) => void,
+ thisArgs?: unknown,
+): Disposable => pageEmitter.subscribe(listener, thisArgs);
+
+/** Synchronizes the navigation module with React Router. Call once in the app shell. */
+export const useNavigationTracker = () => {
+ const location = useLocation();
+ const prevPathname = useRef<string | null>(null);
+
+ useEffect(() => {
+ if (prevPathname.current !== location.pathname) {
+ prevPathname.current = location.pathname;
+ notifyLocationChanged(location.pathname);
+ }
+ }, [location.pathname]);
+};
+
+export const navigation: typeof navigationApi = {
+ getPage,
+ onDidChangePage,
+};
diff --git a/superset-frontend/src/core/sqlLab/index.ts b/superset-frontend/src/core/sqlLab/index.ts
index b14be7efd07..707b731c1b1 100644
--- a/superset-frontend/src/core/sqlLab/index.ts
+++ b/superset-frontend/src/core/sqlLab/index.ts
@@ -48,7 +48,7 @@ import { AnyListenerPredicate } from '@reduxjs/toolkit';
import type { QueryEditor, SqlLabRootState } from 'src/SqlLab/types';
import { newQueryTabName } from 'src/SqlLab/utils/newQueryTabName';
import { Database, Disposable } from '../models';
-import { createActionListener } from '../utils';
+import { createActionListener } from '../storeUtils';
import {
Panel,
Tab,
diff --git a/superset-frontend/src/core/utils.ts b/superset-frontend/src/core/storeUtils.ts
similarity index 77%
copy from superset-frontend/src/core/utils.ts
copy to superset-frontend/src/core/storeUtils.ts
index 1e4dded93c3..620a6b8a54b 100644
--- a/superset-frontend/src/core/utils.ts
+++ b/superset-frontend/src/core/storeUtils.ts
@@ -17,24 +17,23 @@
* under the License.
*/
import type { common as core } from '@apache-superset/core';
-import { AnyAction } from 'redux';
import { listenerMiddleware, RootState, store } from 'src/views/store';
import { AnyListenerPredicate } from '@reduxjs/toolkit';
-export function createActionListener<V>(
+export function createActionListener<V, A = unknown>(
predicate: AnyListenerPredicate<RootState>,
listener: (v: V) => void,
- valueParser: (action: AnyAction, state: RootState) => V | null | undefined,
- thisArgs?: any,
+ valueParser: (action: A, state: RootState) => V | null | undefined,
+ thisArgs?: unknown,
): core.Disposable {
- const boundListener = thisArgs ? listener.bind(thisArgs) : listener;
+ const boundListener = thisArgs ? listener.bind(thisArgs as object) : listener;
const unsubscribe = listenerMiddleware.startListening({
predicate,
- effect: (action: AnyAction) => {
+ effect: action => {
const state = store.getState();
- const value = valueParser(action, state);
- // Skip calling listener if valueParser returns null/undefined
+ // The predicate already ensures the action matches type A at runtime.
+ const value = valueParser(action as unknown as A, state);
if (value != null) {
boundListener(value);
}
diff --git a/superset-frontend/src/core/utils.ts b/superset-frontend/src/core/utils.ts
index 1e4dded93c3..536508d88a0 100644
--- a/superset-frontend/src/core/utils.ts
+++ b/superset-frontend/src/core/utils.ts
@@ -17,33 +17,54 @@
* under the License.
*/
import type { common as core } from '@apache-superset/core';
-import { AnyAction } from 'redux';
-import { listenerMiddleware, RootState, store } from 'src/views/store';
-import { AnyListenerPredicate } from '@reduxjs/toolkit';
-export function createActionListener<V>(
- predicate: AnyListenerPredicate<RootState>,
- listener: (v: V) => void,
- valueParser: (action: AnyAction, state: RootState) => V | null | undefined,
- thisArgs?: any,
-): core.Disposable {
- const boundListener = thisArgs ? listener.bind(thisArgs) : listener;
+type Listener<T> = (e: T) => unknown;
- const unsubscribe = listenerMiddleware.startListening({
- predicate,
- effect: (action: AnyAction) => {
- const state = store.getState();
- const value = valueParser(action, state);
- // Skip calling listener if valueParser returns null/undefined
- if (value != null) {
- boundListener(value);
- }
- },
- });
+/** A stateless event emitter exposing a VS Code-style `event` subscriber. */
+export interface EventEmitter<T> {
+ /** Notifies every current subscriber with `value`. */
+ fire(value: T): void;
+ /** Registers a listener; returns a Disposable that removes it. */
+ subscribe: core.Event<T>;
+}
+
+/** An event emitter that also retains the last fired value. */
+export interface ValueEventEmitter<T> extends EventEmitter<T> {
+ /** Returns the value last passed to {@link fire} (or the initial value). */
+ getCurrent(): T;
+}
+/**
+ * Creates a stateless event emitter. Listeners registered via `event` receive
+ * every subsequent `fire`; a returned Disposable removes the listener.
+ */
+export function createEventEmitter<T>(): EventEmitter<T> {
+ const listeners = new Set<Listener<T>>();
+ const subscribe: core.Event<T> = (listener, thisArgs) => {
+ const bound = thisArgs ? listener.bind(thisArgs) : listener;
+ listeners.add(bound);
+ return { dispose: () => listeners.delete(bound) };
+ };
+ return {
+ fire: value => listeners.forEach(fn => fn(value)),
+ subscribe,
+ };
+}
+
+/**
+ * Creates a value event emitter seeded with `initial`. Behaves like
+ * {@link createEventEmitter} but also tracks the last fired value, readable
+ * via `getCurrent` — useful for state that is both observed and queried.
+ */
+export function createValueEventEmitter<T>(initial: T): ValueEventEmitter<T> {
+ const { fire, subscribe } = createEventEmitter<T>();
+ let current = initial;
return {
- dispose: () => {
- unsubscribe();
+ fire: value => {
+ current = value;
+ fire(value);
},
+ subscribe,
+ getCurrent: () => current,
};
}
diff --git a/superset-frontend/src/core/views/index.ts b/superset-frontend/src/core/views/index.ts
index f22cdc4d372..59af43f21c6 100644
--- a/superset-frontend/src/core/views/index.ts
+++ b/superset-frontend/src/core/views/index.ts
@@ -24,51 +24,77 @@
* Extensions register views as side effects at import time.
*/
-import React, { ReactElement, useEffect, useState } from 'react';
+import React, { ComponentType } from 'react';
+import { useSyncExternalStore } from 'use-sync-external-store/shim';
import type { views as viewsApi } from '@apache-superset/core';
import { ErrorBoundary } from 'src/components/ErrorBoundary';
import ExtensionPlaceholder from 'src/extensions/ExtensionPlaceholder';
import { Disposable } from '../models';
+import { createEventEmitter } from '../utils';
type View = viewsApi.View;
+type ViewRegisteredEvent = viewsApi.ViewRegisteredEvent;
+type ViewUnregisteredEvent = viewsApi.ViewUnregisteredEvent;
const viewRegistry: Map<
string,
- { view: View; location: string; provider: () => ReactElement }
+ { view: View; location: string; component: ComponentType }
> = new Map();
const locationIndex: Map<string, Set<string>> = new Map();
-const listeners = new Set<() => void>();
-const notify = () => listeners.forEach(l => l());
+const syncListeners = new Set<() => void>();
+const subscribe = (listener: () => void) => {
+ syncListeners.add(listener);
+ return () => syncListeners.delete(listener);
+};
+
+const registerEmitter = createEventEmitter<ViewRegisteredEvent>();
+const unregisterEmitter = createEventEmitter<ViewUnregisteredEvent>();
+
+const viewsCache = new Map<string, View[] | undefined>();
+const notifyRegister = (event: ViewRegisteredEvent) => {
+ viewsCache.clear();
+ syncListeners.forEach(l => l());
+ registerEmitter.fire(event);
+};
+const notifyUnregister = (event: ViewUnregisteredEvent) => {
+ viewsCache.clear();
+ syncListeners.forEach(l => l());
+ unregisterEmitter.fire(event);
+};
const registerView: typeof viewsApi.registerView = (
view: View,
location: string,
- provider: () => ReactElement,
+ component: ComponentType,
): Disposable => {
const { id } = view;
- viewRegistry.set(id, { view, location, provider });
+ viewRegistry.set(id, { view, location, component });
const ids = locationIndex.get(location) ?? new Set();
ids.add(id);
locationIndex.set(location, ids);
- notify();
+ notifyRegister({ view, location });
return new Disposable(() => {
viewRegistry.delete(id);
locationIndex.get(location)?.delete(id);
- notify();
+ notifyUnregister({ view, location });
});
};
-export const resolveView = (id: string): ReactElement => {
- const provider = viewRegistry.get(id)?.provider;
- if (!provider) {
+export const resolveView = (id: string): React.ReactElement => {
+ const entry = viewRegistry.get(id);
+ if (!entry) {
return React.createElement(ExtensionPlaceholder, { id });
}
- return React.createElement(ErrorBoundary, null, provider());
+ return React.createElement(
+ ErrorBoundary,
+ null,
+ React.createElement(entry.component),
+ );
};
const getViews: typeof viewsApi.getViews = (
@@ -82,19 +108,29 @@ const getViews: typeof viewsApi.getViews = (
.filter((c): c is View => !!c);
};
-export const useViews = (location: string): View[] | undefined => {
- const [value, setValue] = useState(() => getViews(location));
- useEffect(() => {
- const listener = () => setValue(getViews(location));
- listeners.add(listener);
- return () => {
- listeners.delete(listener);
- };
- }, [location]);
- return value;
-};
+export const useViews = (location: string): View[] | undefined =>
+ useSyncExternalStore(
+ subscribe,
+ () => {
+ if (!viewsCache.has(location)) {
+ viewsCache.set(location, getViews(location));
+ }
+ return viewsCache.get(location);
+ },
+ () => undefined,
+ );
+
+export const onDidRegisterView: typeof viewsApi.onDidRegisterView = (
+ listener: (e: ViewRegisteredEvent) => void,
+): Disposable => registerEmitter.subscribe(listener);
+
+export const onDidUnregisterView: typeof viewsApi.onDidUnregisterView = (
+ listener: (e: ViewUnregisteredEvent) => void,
+): Disposable => unregisterEmitter.subscribe(listener);
export const views: typeof viewsApi = {
registerView,
getViews,
+ onDidRegisterView,
+ onDidUnregisterView,
};
diff --git a/superset-frontend/src/extensions/ExtensionsLoader.test.ts b/superset-frontend/src/extensions/ExtensionsLoader.test.ts
index 1d2493671ad..d2debd6d69c 100644
--- a/superset-frontend/src/extensions/ExtensionsLoader.test.ts
+++ b/superset-frontend/src/extensions/ExtensionsLoader.test.ts
@@ -31,7 +31,6 @@ function createMockExtension(overrides: Partial<Extension> = {}): Extension {
version: '1.0.0',
dependencies: [],
remoteEntry: '',
- extensionDependencies: [],
...overrides,
};
}
diff --git a/superset-frontend/src/extensions/ExtensionsStartup.test.tsx b/superset-frontend/src/extensions/ExtensionsStartup.test.tsx
index 4a8d92c8d8a..59ec6100bfe 100644
--- a/superset-frontend/src/extensions/ExtensionsStartup.test.tsx
+++ b/superset-frontend/src/extensions/ExtensionsStartup.test.tsx
@@ -72,6 +72,7 @@ afterEach(() => {
test('renders without crashing', () => {
render(<ExtensionsStartup />, {
useRedux: true,
+ useRouter: true,
initialState: mockInitialState,
});
@@ -88,6 +89,7 @@ test('sets up global superset object when user is logged in', async () => {
render(<ExtensionsStartup />, {
useRedux: true,
+ useRouter: true,
initialState: mockInitialState,
});
@@ -95,6 +97,7 @@ test('sets up global superset object when user is logged in', async () => {
// Verify the global superset object is set up
expect((window as any).superset).toBeDefined();
expect((window as any).superset.authentication).toBeDefined();
+ expect((window as any).superset.chat).toBeDefined();
expect((window as any).superset.core).toBeDefined();
expect((window as any).superset.commands).toBeDefined();
expect((window as any).superset.extensions).toBeDefined();
@@ -109,6 +112,7 @@ test('sets up global superset object when user is logged in', async () => {
test('does not set up global superset object when user is not logged in', async () => {
render(<ExtensionsStartup />, {
useRedux: true,
+ useRouter: true,
initialState: mockInitialStateNoUser,
});
@@ -127,6 +131,7 @@ test('initializes ExtensionsLoader when user is logged in', async () => {
render(<ExtensionsStartup />, {
useRedux: true,
+ useRouter: true,
initialState: mockInitialState,
});
@@ -144,6 +149,7 @@ test('initializes ExtensionsLoader when user is logged in', async () => {
test('does not initialize ExtensionsLoader when user is not logged in', async () => {
render(<ExtensionsStartup />, {
useRedux: true,
+ useRouter: true,
initialState: mockInitialStateNoUser,
});
@@ -169,6 +175,7 @@ test('only initializes once even with multiple renders', async () => {
const { rerender } = render(<ExtensionsStartup />, {
useRedux: true,
+ useRouter: true,
initialState: mockInitialState,
});
@@ -205,6 +212,7 @@ test('initializes ExtensionsLoader when EnableExtensions feature flag is enabled
render(<ExtensionsStartup />, {
useRedux: true,
+ useRouter: true,
initialState: mockInitialState,
});
@@ -234,6 +242,7 @@ test('does not initialize ExtensionsLoader when EnableExtensions feature flag is
render(<ExtensionsStartup />, {
useRedux: true,
+ useRouter: true,
initialState: mockInitialState,
});
@@ -268,6 +277,7 @@ test('continues rendering children even when ExtensionsLoader initialization fai
</ExtensionsStartup>,
{
useRedux: true,
+ useRouter: true,
initialState: mockInitialState,
},
);
diff --git a/superset-frontend/src/extensions/ExtensionsStartup.tsx b/superset-frontend/src/extensions/ExtensionsStartup.tsx
index 28e9d2a159f..8dc663b96dc 100644
--- a/superset-frontend/src/extensions/ExtensionsStartup.tsx
+++ b/superset-frontend/src/extensions/ExtensionsStartup.tsx
@@ -17,41 +17,32 @@
* under the License.
*/
import { useEffect } from 'react';
+import { FeatureFlag, isFeatureEnabled } from '@superset-ui/core';
// eslint-disable-next-line no-restricted-syntax
import * as supersetCore from '@apache-superset/core';
-import { FeatureFlag, isFeatureEnabled } from '@superset-ui/core';
import {
authentication,
+ chat,
core,
commands,
editors,
extensions,
menus,
+ navigation,
+ useNavigationTracker,
sqlLab,
views,
} from 'src/core';
import { useSelector } from 'react-redux';
import { RootState } from 'src/views/store';
import ExtensionsLoader from './ExtensionsLoader';
-
-declare global {
- interface Window {
- superset: {
- authentication: typeof authentication;
- core: typeof core;
- commands: typeof commands;
- editors: typeof editors;
- extensions: typeof extensions;
- menus: typeof menus;
- sqlLab: typeof sqlLab;
- views: typeof views;
- };
- }
-}
+import 'src/extensions/Namespaces';
const ExtensionsStartup: React.FC<{ children?: React.ReactNode }> = ({
children,
}) => {
+ useNavigationTracker();
+
const userId = useSelector<RootState, number | undefined>(
({ user }) => user.userId,
);
@@ -59,15 +50,19 @@ const ExtensionsStartup: React.FC<{ children?: React.ReactNode }> = ({
useEffect(() => {
if (!userId) return;
- // Provide the implementations for @apache-superset/core
+ // Provide the implementations for @apache-superset/core.
+ // Namespaces are listed explicitly — do not spread the core package here,
+ // as that would leak un-contracted symbols onto window.superset.
window.superset = {
...supersetCore,
authentication,
+ chat,
core,
commands,
editors,
extensions,
menus,
+ navigation,
sqlLab,
views,
};
diff --git a/superset-frontend/src/extensions/Namespaces.ts b/superset-frontend/src/extensions/Namespaces.ts
new file mode 100644
index 00000000000..0e7f6a3063b
--- /dev/null
+++ b/superset-frontend/src/extensions/Namespaces.ts
@@ -0,0 +1,60 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/**
+ * Global `window.superset` type augmentation.
+ *
+ * Lives in its own module (rather than inline in ExtensionsStartup) so every
+ * file that reads or writes `window.superset` — notably ExtensionsLoader —
+ * sees the type regardless of how files are batched during compilation. Both
+ * the startup component and the loader import this module for its side effect.
+ */
+
+import type {
+ authentication,
+ chat,
+ commands,
+ core,
+ editors,
+ extensions,
+ menus,
+ navigation,
+ sqlLab,
+ views,
+} from 'src/core';
+
+/** The host namespaces exposed to extensions on `window.superset`. */
+export interface Namespaces {
+ authentication: typeof authentication;
+ core: typeof core;
+ chat: typeof chat;
+ commands: typeof commands;
+ editors: typeof editors;
+ extensions: typeof extensions;
+ menus: typeof menus;
+ navigation: typeof navigation;
+ sqlLab: typeof sqlLab;
+ views: typeof views;
+}
+
+declare global {
+ interface Window {
+ superset: Namespaces;
+ }
+}
diff --git a/superset-frontend/src/utils/localStorageHelpers.ts b/superset-frontend/src/utils/localStorageHelpers.ts
index 3c59b04b9c4..3bc302caf81 100644
--- a/superset-frontend/src/utils/localStorageHelpers.ts
+++ b/superset-frontend/src/utils/localStorageHelpers.ts
@@ -57,6 +57,7 @@ export enum LocalStorageKeys {
DashboardExploreContext = 'dashboard__explore_context',
DashboardEditorShowOnlyMyCharts = 'dashboard__editor_show_only_my_charts',
CommonResizableSidebarWidths = 'common__resizable_sidebar_widths',
+ ChatState = 'chat__state',
}
export type LocalStorageValues = {
@@ -78,6 +79,7 @@ export type LocalStorageValues = {
dashboard__explore_context: Record<string, DashboardContextForExplore>;
dashboard__editor_show_only_my_charts: boolean;
common__resizable_sidebar_widths: Record<string, number>;
+ chat__state: { open: boolean; mode: string };
};
/*
diff --git a/superset-frontend/src/views/App.tsx b/superset-frontend/src/views/App.tsx
index 270a344d817..f0d19c7b9c7 100644
--- a/superset-frontend/src/views/App.tsx
+++ b/superset-frontend/src/views/App.tsx
@@ -21,11 +21,12 @@ import {
BrowserRouter as Router,
Switch,
Route,
+ Redirect,
useLocation,
} from 'react-router-dom';
import { bindActionCreators } from 'redux';
-import { css } from '@apache-superset/core/theme';
-import { Layout, Loading } from '@superset-ui/core/components';
+import { css, useTheme } from '@apache-superset/core/theme';
+import { Flex, Layout, Loading } from '@superset-ui/core/components';
import { setupAGGridModules } from '@superset-ui/core/components/ThemedAgGridReact';
import { ErrorBoundary } from 'src/components';
import Menu from 'src/features/home/Menu';
@@ -38,7 +39,12 @@ import { Logger, LOG_ACTIONS_SPA_NAVIGATION } from 'src/logger/LogUtils';
import setupCodeOverrides from 'src/setup/setupCodeOverrides';
import { logEvent } from 'src/logger/actions';
import { store } from 'src/views/store';
+import { FeatureFlag, isFeatureEnabled } from '@superset-ui/core';
+import { isUser } from 'src/types/bootstrapTypes';
import ExtensionsStartup from 'src/extensions/ExtensionsStartup';
+import { Splitter } from 'src/components/Splitter';
+import { ChatFloatingHost, ChatPanelHost, useChat } from 'src/core/chat';
+import useStoredSidebarWidth from 'src/components/ResizableSidebar/useStoredSidebarWidth';
import { RootContextProviders } from './RootContextProviders';
import { ScrollToTop } from './ScrollToTop';
@@ -70,41 +76,139 @@ const LocationPathnameLogger = () => {
return <></>;
};
+const CHAT_PANEL_DEFAULT_WIDTH = 400;
+const CHAT_PANEL_MIN_WIDTH = 280;
+
+const RouteSwitch = () => {
+ const theme = useTheme();
+ return (
+ <Switch>
+ {routes.map(({ path, Component, props = {}, Fallback = Loading }) => (
+ <Route path={path} key={path}>
+ <Suspense fallback={<Fallback />}>
+ <ErrorBoundary
+ css={css`
+ margin: ${theme.sizeUnit * 4}px;
+ `}
+ >
+ <Component user={bootstrapData.user} {...props} />
+ </ErrorBoundary>
+ </Suspense>
+ </Route>
+ ))}
+ <Redirect from="/" to="/superset/welcome/" exact />
+ </Switch>
+ );
+};
+
+const layoutCss = css`
+ flex: 1;
+ min-height: 0;
+ overflow: hidden;
+`;
+
+const contentCss = css`
+ display: flex;
+ flex-direction: column;
+ min-height: 0;
+ overflow-y: auto;
+ position: relative;
+`;
+
+/**
+ * Renders the main content area. When the chat panel is open in panel mode,
+ * wraps <Layout> and <ChatPanelContent> in a Splitter so they sit side-by-side
+ * with a lazy drag bar (blue preview line, resize committed on mouseup).
+ * The full <Layout> tree lives inside the first panel so its internal flex
+ * context is preserved — SQL Lab, Explore, and other pages are unaffected.
+ */
+const AppContent = () => {
+ const isAuthenticated =
+ isUser(bootstrapData.user) && !bootstrapData.user.isAnonymous;
+ const chatExtensionsEnabled =
+ isFeatureEnabled(FeatureFlag.EnableExtensions) && isAuthenticated;
+ const { open: panelOpen, mode, chat } = useChat();
+ const hasChatExtension = chatExtensionsEnabled && !!chat;
+ const isPanelOpen = hasChatExtension && mode === 'panel' && panelOpen;
+
+ const [storedWidth, setStoredWidth] = useStoredSidebarWidth(
+ 'chat:panel',
+ CHAT_PANEL_DEFAULT_WIDTH,
+ );
+
+ const layoutContent = (
+ <Layout css={layoutCss}>
+ <Layout.Content css={contentCss}>
+ <RouteSwitch />
+ </Layout.Content>
+ </Layout>
+ );
+
+ if (!isPanelOpen) {
+ return (
+ <>
+ {layoutContent}
+ {hasChatExtension && <ChatFloatingHost />}
+ </>
+ );
+ }
+
+ return (
+ <Splitter
+ lazy
+ onResizeEnd={sizes => {
+ const chatWidth = sizes[sizes.length - 1];
+ if (
+ typeof chatWidth === 'number' &&
+ chatWidth >= CHAT_PANEL_MIN_WIDTH
+ ) {
+ setStoredWidth(chatWidth);
+ }
+ }}
+ css={css`
+ flex: 1;
+ min-height: 0;
+ overflow: hidden;
+
+ /*
+ * Splitter.Panel is not a flex container by default, so flex:1 on
+ * children (Layout, ChatPanelHost) has no height effect and
+ * panels collapse. Making them flex columns lets children fill them.
+ */
+ & > .ant-splitter-panel {
+ display: flex !important;
+ flex-direction: column;
+ }
+ `}
+ >
+ <Splitter.Panel>{layoutContent}</Splitter.Panel>
+ <Splitter.Panel size={storedWidth} min={CHAT_PANEL_MIN_WIDTH}>
+ <ChatPanelHost />
+ </Splitter.Panel>
+ </Splitter>
+ );
+};
+
const App = () => (
<Router basename={applicationRoot()}>
<ScrollToTop />
<LocationPathnameLogger />
<RootContextProviders>
- <Menu
- data={bootstrapData.common.menu_data}
- isFrontendRoute={isFrontendRoute}
- />
- <ExtensionsStartup>
- <Switch>
- {routes.map(({ path, Component, props = {}, Fallback = Loading }) => (
- <Route path={path} key={path}>
- <Suspense fallback={<Fallback />}>
- <Layout>
- <Layout.Content
- css={css`
- display: flex;
- flex-direction: column;
- `}
- >
- <ErrorBoundary
- css={css`
- margin: 16px;
- `}
- >
- <Component user={bootstrapData.user} {...props} />
- </ErrorBoundary>
- </Layout.Content>
- </Layout>
- </Suspense>
- </Route>
- ))}
- </Switch>
- </ExtensionsStartup>
+ <Flex
+ vertical
+ css={css`
+ height: 100vh;
+ overflow: hidden;
+ `}
+ >
+ <Menu
+ data={bootstrapData.common.menu_data}
+ isFrontendRoute={isFrontendRoute}
+ />
+ <ExtensionsStartup>
+ <AppContent />
+ </ExtensionsStartup>
+ </Flex>
<ToastContainer />
</RootContextProviders>
</Router>
diff --git a/superset-frontend/src/views/routePaths.ts b/superset-frontend/src/views/routePaths.ts
new file mode 100644
index 00000000000..7cc682ea632
--- /dev/null
+++ b/superset-frontend/src/views/routePaths.ts
@@ -0,0 +1,60 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+export const RoutePaths = {
+ REDIRECT: '/redirect/',
+ LOGIN: '/login/',
+ REGISTER_ACTIVATION: '/register/activation/:activationHash',
+ REGISTER: '/register/',
+ LOGOUT: '/logout/',
+ HOME: '/superset/welcome/',
+ FILE_HANDLER: '/superset/file-handler',
+ DASHBOARD: '/superset/dashboard/:idOrSlug/',
+ DASHBOARD_LIST: '/dashboard/list/',
+ CHART_ADD: '/chart/add',
+ CHART_LIST: '/chart/list/',
+ DATASET_LIST: '/tablemodelview/list/',
+ DATABASE_LIST: '/databaseview/list/',
+ SAVED_QUERIES: '/savedqueryview/list/',
+ CSS_TEMPLATES: '/csstemplatemodelview/list/',
+ THEMES: '/theme/list/',
+ ANNOTATION_LAYERS: '/annotationlayer/list/',
+ ANNOTATION_LIST: '/annotationlayer/:annotationLayerId/annotation/',
+ QUERY_HISTORY: '/sqllab/history/',
+ ALERTS: '/alert/list/',
+ REPORTS: '/report/list/',
+ ALERT_LOG: '/alert/:alertId/log/',
+ REPORT_LOG: '/report/:alertId/log/',
+ EXPLORE: '/explore/',
+ EXPLORE_PERMALINK: '/superset/explore/p',
+ DATASET_ADD: '/dataset/add/',
+ DATASET: '/dataset/:datasetId',
+ ROW_LEVEL_SECURITY: '/rowlevelsecurity/list',
+ TASKS: '/tasks/list/',
+ SQLLAB: '/sqllab/',
+ USER_INFO: '/user_info/',
+ ACTION_LOG: '/actionlog/list',
+ REGISTRATIONS: '/registrations/',
+ ALL_ENTITIES: '/superset/all_entities/',
+ TAGS: '/superset/tags/',
+ ROLES: '/roles/',
+ USERS: '/users/',
+ GROUPS: '/list_groups/',
+ EXTENSIONS: '/extensions/list/',
+} as const;
diff --git a/superset-frontend/src/views/routes.tsx b/superset-frontend/src/views/routes.tsx
index 4f066e3ec2c..4c18e28ab42 100644
--- a/superset-frontend/src/views/routes.tsx
+++ b/superset-frontend/src/views/routes.tsx
@@ -26,6 +26,7 @@ import {
} from 'react';
import { isUserAdmin } from 'src/dashboard/util/permissionUtils';
import getBootstrapData from 'src/utils/getBootstrapData';
+import { RoutePaths } from './routePaths';
// not lazy loaded since this is the home page.
import Home from 'src/pages/Home';
@@ -189,158 +190,58 @@ const RedirectWarning = lazy(
type Routes = {
path: string;
- Component: ComponentType;
- Fallback?: ComponentType;
+ Component: ComponentType<any>;
+ Fallback?: ComponentType<any>;
props?: ComponentProps<any>;
}[];
export const routes: Routes = [
- {
- path: '/redirect/',
- Component: RedirectWarning,
- },
- {
- path: '/login/',
- Component: Login,
- },
- {
- path: '/register/activation/:activationHash',
- Component: Register,
- },
- {
- path: '/register/',
- Component: Register,
- },
- {
- path: '/logout/',
- Component: Login,
- },
- {
- path: '/superset/welcome/',
- Component: Home,
- },
- {
- path: '/superset/file-handler',
- Component: FileHandler,
- },
- {
- path: '/dashboard/list/',
- Component: DashboardList,
- },
- {
- path: '/superset/dashboard/:idOrSlug/',
- Component: Dashboard,
- },
- {
- path: '/chart/add',
- Component: ChartCreation,
- },
- {
- path: '/chart/list/',
- Component: ChartList,
- },
- {
- path: '/tablemodelview/list/',
- Component: DatasetList,
- },
- {
- path: '/databaseview/list/',
- Component: DatabaseList,
- },
- {
- path: '/savedqueryview/list/',
- Component: SavedQueryList,
- },
- {
- path: '/csstemplatemodelview/list/',
- Component: CssTemplateList,
- },
- {
- path: '/theme/list/',
- Component: ThemeList,
- },
- {
- path: '/annotationlayer/list/',
- Component: AnnotationLayerList,
- },
- {
- path: '/annotationlayer/:annotationLayerId/annotation/',
- Component: AnnotationList,
- },
- {
- path: '/sqllab/history/',
- Component: QueryHistoryList,
- },
- {
- path: '/alert/list/',
- Component: AlertReportList,
- },
- {
- path: '/report/list/',
+ { path: RoutePaths.REDIRECT, Component: RedirectWarning },
+ { path: RoutePaths.LOGIN, Component: Login },
+ { path: RoutePaths.REGISTER_ACTIVATION, Component: Register },
+ { path: RoutePaths.REGISTER, Component: Register },
+ { path: RoutePaths.LOGOUT, Component: Login },
+ { path: RoutePaths.HOME, Component: Home },
+ { path: RoutePaths.FILE_HANDLER, Component: FileHandler },
+ { path: RoutePaths.DASHBOARD_LIST, Component: DashboardList },
+ { path: RoutePaths.DASHBOARD, Component: Dashboard },
+ { path: RoutePaths.CHART_ADD, Component: ChartCreation },
+ { path: RoutePaths.CHART_LIST, Component: ChartList },
+ { path: RoutePaths.DATASET_LIST, Component: DatasetList },
+ { path: RoutePaths.DATABASE_LIST, Component: DatabaseList },
+ { path: RoutePaths.SAVED_QUERIES, Component: SavedQueryList },
+ { path: RoutePaths.CSS_TEMPLATES, Component: CssTemplateList },
+ { path: RoutePaths.THEMES, Component: ThemeList },
+ { path: RoutePaths.ANNOTATION_LAYERS, Component: AnnotationLayerList },
+ { path: RoutePaths.ANNOTATION_LIST, Component: AnnotationList },
+ { path: RoutePaths.QUERY_HISTORY, Component: QueryHistoryList },
+ { path: RoutePaths.ALERTS, Component: AlertReportList },
+ {
+ path: RoutePaths.REPORTS,
Component: AlertReportList,
- props: {
- isReportEnabled: true,
- },
- },
- {
- path: '/alert/:alertId/log/',
- Component: ExecutionLogList,
+ props: { isReportEnabled: true },
},
+ { path: RoutePaths.ALERT_LOG, Component: ExecutionLogList },
{
- path: '/report/:alertId/log/',
+ path: RoutePaths.REPORT_LOG,
Component: ExecutionLogList,
- props: {
- isReportEnabled: true,
- },
- },
- {
- path: '/explore/',
- Component: Chart,
- },
- {
- path: '/superset/explore/p',
- Component: Chart,
- },
- {
- path: '/dataset/add/',
- Component: DatasetCreation,
- },
- {
- path: '/dataset/:datasetId',
- Component: DatasetCreation,
- },
- {
- path: '/rowlevelsecurity/list',
- Component: RowLevelSecurityList,
- },
- {
- path: '/tasks/list/',
- Component: TaskList,
- },
- {
- path: '/sqllab/',
- Component: SqlLab,
- },
- { path: '/user_info/', Component: UserInfo },
- {
- path: '/actionlog/list',
- Component: ActionLogList,
- },
- {
- path: '/registrations/',
- Component: UserRegistrations,
- },
+ props: { isReportEnabled: true },
+ },
+ { path: RoutePaths.EXPLORE, Component: Chart },
+ { path: RoutePaths.EXPLORE_PERMALINK, Component: Chart },
+ { path: RoutePaths.DATASET_ADD, Component: DatasetCreation },
+ { path: RoutePaths.DATASET, Component: DatasetCreation },
+ { path: RoutePaths.ROW_LEVEL_SECURITY, Component: RowLevelSecurityList },
+ { path: RoutePaths.TASKS, Component: TaskList },
+ { path: RoutePaths.SQLLAB, Component: SqlLab },
+ { path: RoutePaths.USER_INFO, Component: UserInfo },
+ { path: RoutePaths.ACTION_LOG, Component: ActionLogList },
+ { path: RoutePaths.REGISTRATIONS, Component: UserRegistrations },
];
if (isFeatureEnabled(FeatureFlag.TaggingSystem)) {
- routes.push({
- path: '/superset/all_entities/',
- Component: AllEntities,
- });
- routes.push({
- path: '/superset/tags/',
- Component: Tags,
- });
+ routes.push({ path: RoutePaths.ALL_ENTITIES, Component: AllEntities });
+ routes.push({ path: RoutePaths.TAGS, Component: Tags });
}
const user = getBootstrapData()?.user;
@@ -350,33 +251,18 @@ const isAdmin = isUserAdmin(user);
if (isAdmin) {
routes.push(
- {
- path: '/roles/',
- Component: RolesList,
- },
- {
- path: '/users/',
- Component: UsersList,
- },
- {
- path: '/list_groups/',
- Component: GroupsList,
- },
+ { path: RoutePaths.ROLES, Component: RolesList },
+ { path: RoutePaths.USERS, Component: UsersList },
+ { path: RoutePaths.GROUPS, Component: GroupsList },
);
if (isFeatureEnabled(FeatureFlag.EnableExtensions)) {
- routes.push({
- path: '/extensions/list/',
- Component: Extensions,
- });
+ routes.push({ path: RoutePaths.EXTENSIONS, Component: Extensions });
}
}
if (authRegistrationEnabled) {
- routes.push({
- path: '/registrations/',
- Component: UserRegistrations,
- });
+ routes.push({ path: RoutePaths.REGISTRATIONS, Component: UserRegistrations });
}
const frontEndRoutes: Record<string, boolean> = routes
diff --git a/superset/commands/report/execute.py b/superset/commands/report/execute.py
index e94d215057e..2ab44655808 100644
--- a/superset/commands/report/execute.py
+++ b/superset/commands/report/execute.py
@@ -196,7 +196,7 @@ class BaseReportState:
db.session.commit() # pylint: disable=consider-using-transaction
except StaleDataError as ex:
# Report schedule was modified or deleted by another process
- db.session.rollback()
+ db.session.rollback() # pylint: disable=consider-using-transaction
logger.warning(
"Report schedule (execution %s) was modified or deleted "
"during execution. This can occur when a report is deleted "
diff --git a/superset/db_engine_specs/base.py b/superset/db_engine_specs/base.py
index bd1e2f9c361..7e386b8cd87 100644
--- a/superset/db_engine_specs/base.py
+++ b/superset/db_engine_specs/base.py
@@ -672,7 +672,7 @@ class BaseEngineSpec: # pylint: disable=too-many-public-methods
)
# We need to commit here because we're going to raise an exception, which will
# revert any non-commited changes.
- db.session.commit()
+ db.session.commit() # pylint: disable=consider-using-transaction
# The state is passed to the OAuth2 provider, and sent back to Superset after
# the user authorizes the access. The redirect endpoint in Superset can then
diff --git a/superset/extensions/utils.py b/superset/extensions/utils.py
index 6332c97435d..878fbf0bb75 100644
--- a/superset/extensions/utils.py
+++ b/superset/extensions/utils.py
@@ -234,6 +234,7 @@ def build_extension_data(extension: LoadedExtension) -> dict[str, Any]:
manifest = extension.manifest
extension_data: dict[str, Any] = {
"id": manifest.id,
+ "publisher": manifest.publisher,
"name": extension.name,
"version": extension.version,
"description": manifest.description or "",
diff --git a/superset/migrations/shared/utils.py b/superset/migrations/shared/utils.py
index f91f3d1a45e..a20be5456ae 100644
--- a/superset/migrations/shared/utils.py
+++ b/superset/migrations/shared/utils.py
@@ -174,7 +174,7 @@ def paginated_update(
for row in rows:
yield row[0]
- session.commit()
+ session.commit() # pylint: disable=consider-using-transaction
processed += len(rows)
if print_page_progress:
diff --git a/superset/utils/log.py b/superset/utils/log.py
index e840c61f037..b0667bae68f 100644
--- a/superset/utils/log.py
+++ b/superset/utils/log.py
@@ -419,7 +419,7 @@ class DBEventLogger(AbstractEventLogger):
logging.exception(ex)
# Rollback to clean up the session state
try:
- db.session.rollback()
+ db.session.rollback() # pylint: disable=consider-using-transaction
except Exception: # pylint: disable=broad-except
# If rollback also fails, just continue - don't let issues crash the app
logging.error(