@marimo-team/islands 0.23.12-dev1 → 0.23.12-dev10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ConnectedDataExplorerComponent-WqG-xX4l.js → ConnectedDataExplorerComponent-Du3_nUzI.js} +13 -13
- package/dist/{ErrorBoundary-BNx_OSVo.js → ErrorBoundary-DE6tzZf-.js} +2 -2
- package/dist/{any-language-editor-rPSlOll9.js → any-language-editor-DN1R-1KZ.js} +5 -5
- package/dist/{button-vQhauTmO.js → button-BacYv-bE.js} +7 -1
- package/dist/{capabilities-BEHzIS99.js → capabilities-D_4LYhSU.js} +1 -1
- package/dist/{chat-ui-k2kqhCv5.js → chat-ui-BEOvjkmJ.js} +16 -16
- package/dist/{check-nrzHDi45.js → check-C9OoNtR4.js} +1 -1
- package/dist/{code-visibility-CqnbA4Ex.js → code-visibility-D1W_9sHW.js} +664 -663
- package/dist/{copy-UhDed7D4.js → copy-COam1EG7.js} +2 -2
- package/dist/{dist-DYGLrbYQ.js → dist--2Bqjvs0.js} +2 -2
- package/dist/{error-banner-BHAkVFc2.js → error-banner-DFPfz_Qf.js} +2 -2
- package/dist/{esm-Bqu9AE2K.js → esm-M837UxV5.js} +1 -1
- package/dist/{extends-9Yl5BEcg.js → extends-9MVIxxRo.js} +4 -4
- package/dist/{formats-BV4bOfMI.js → formats-d6MhLuQ9.js} +4 -4
- package/dist/{glide-data-editor-BDTq6YUb.js → glide-data-editor-DkzAInWG.js} +9 -9
- package/dist/{html-to-image-C86pQALH.js → html-to-image-Di0mtt6O.js} +73 -73
- package/dist/{input-AKkGXdyV.js → input-CbEz_aj_.js} +6 -6
- package/dist/{label-E3ZJXHu8.js → label-WfTSU8L4.js} +2 -2
- package/dist/{loader-YPuQvn1Y.js → loader-Boph2xIS.js} +1 -1
- package/dist/main.js +1619 -1592
- package/dist/{mermaid-QFAR9YgY.js → mermaid-CJW9vIyO.js} +5 -5
- package/dist/{process-output-nNw4OpSj.js → process-output-BLd4KuwX.js} +3 -3
- package/dist/{reveal-component-CKXMgI4_.js → reveal-component-BXP8Y-bq.js} +11 -11
- package/dist/{spec-B45_YCNI.js → spec-Bv-XlYiv.js} +4 -4
- package/dist/{strings-Cq2s9_EQ.js → strings-Dq_j3Rxw.js} +4 -4
- package/dist/style.css +2 -2
- package/dist/{swiper-component-BNa_4kh2.js → swiper-component-5HoSsPi1.js} +2 -2
- package/dist/{toDate-Do1xRzAo.js → toDate-D-l5s8nn.js} +3 -3
- package/dist/{tooltip-Bz3OAwrU.js → tooltip-Czds6Qr8.js} +3 -3
- package/dist/{types-D8gEGs4R.js → types-C2Ir191_.js} +1 -1
- package/dist/{useAsyncData-CL3o2p4i.js → useAsyncData-1Dhzjfwf.js} +1 -1
- package/dist/{useDateFormatter-BC6iSz9g.js → useDateFormatter-CMnRuVmN.js} +2 -2
- package/dist/{useDeepCompareMemoize-BPx2MuOK.js → useDeepCompareMemoize-CDWT3BDz.js} +1 -1
- package/dist/{useIframeCapabilities-C6Ta3EyP.js → useIframeCapabilities-DWIYvDh7.js} +1 -1
- package/dist/{useLifecycle-C3Ec71q0.js → useLifecycle-AHlswLw-.js} +3 -3
- package/dist/{useTheme-ZhT6uIu3.js → useTheme-BrYvK-_A.js} +2 -2
- package/dist/{vega-component-C3AWYGAL.js → vega-component-Pk6lyc_a.js} +10 -10
- package/dist/{zod-DXqkaI_w.js → zod-CijjQh4u.js} +1 -1
- package/package.json +3 -3
- package/src/components/ai/display-helpers.tsx +5 -5
- package/src/components/app-config/ai-config.tsx +5 -5
- package/src/components/app-config/mcp-config.tsx +3 -3
- package/src/components/chat/acp/agent-panel.tsx +3 -3
- package/src/components/chat/acp/blocks.tsx +36 -38
- package/src/components/chat/acp/common.tsx +12 -16
- package/src/components/chat/acp/scroll-to-bottom-button.tsx +1 -1
- package/src/components/chat/acp/session-tabs.tsx +2 -2
- package/src/components/chat/chat-history-popover.tsx +1 -1
- package/src/components/chat/chat-panel.tsx +47 -23
- package/src/components/data-table/TableBottomBar.tsx +4 -1
- package/src/components/data-table/columns.tsx +2 -2
- package/src/components/data-table/data-table.tsx +26 -17
- package/src/components/data-table/filter-pill-editor.tsx +1 -1
- package/src/components/dependency-graph/minimap-content.tsx +1 -1
- package/src/components/editor/RecoveryButton.tsx +1 -1
- package/src/components/editor/actions/pair-with-agent-modal.tsx +2 -2
- package/src/components/editor/actions/useNotebookActions.tsx +4 -4
- package/src/components/editor/ai/__tests__/completion-utils.test.ts +91 -1
- package/src/components/editor/ai/ai-completion-editor.tsx +1 -1
- package/src/components/editor/ai/completion-utils.ts +86 -1
- package/src/components/editor/cell/CreateCellButton.tsx +1 -1
- package/src/components/editor/chrome/panels/empty-state.tsx +1 -1
- package/src/components/editor/chrome/panels/outline/floating-outline.tsx +1 -1
- package/src/components/editor/chrome/wrapper/pending-ai-cells.tsx +1 -1
- package/src/components/editor/columns/cell-column.tsx +1 -1
- package/src/components/editor/columns/sortable-column.tsx +2 -2
- package/src/components/editor/output/MarimoErrorOutput.tsx +1 -1
- package/src/components/editor/output/TextOutput.tsx +2 -2
- package/src/components/home/components.tsx +4 -4
- package/src/components/icons/github.tsx +21 -0
- package/src/components/icons/youtube.tsx +21 -0
- package/src/components/slides/minimap.tsx +2 -2
- package/src/components/slides/reveal-component.tsx +1 -1
- package/src/components/storage/components.tsx +3 -7
- package/src/components/ui/alert.tsx +1 -1
- package/src/components/ui/command.tsx +2 -2
- package/src/components/ui/reorderable-list.tsx +1 -1
- package/src/components/ui/table.tsx +2 -5
- package/src/core/codemirror/language/languages/sql/renderers.tsx +60 -68
- package/src/core/hotkeys/hotkeys.ts +1 -0
- package/src/plugins/impl/DataTablePlugin.tsx +20 -1
- package/src/plugins/impl/FileBrowserPlugin.tsx +165 -74
- package/src/plugins/impl/MatrixPlugin.tsx +2 -2
- package/src/plugins/impl/TabsPlugin.tsx +1 -1
- package/src/plugins/impl/__tests__/DataTablePlugin.test.tsx +141 -1
- package/src/plugins/impl/__tests__/FileBrowserPlugin.test.tsx +314 -0
- package/src/plugins/impl/matplotlib/matplotlib-renderer.ts +1 -1
- package/src/plugins/impl/mpl-interactive/MplInteractivePlugin.tsx +155 -98
- package/src/plugins/impl/mpl-interactive/__tests__/MplInteractivePlugin.test.tsx +154 -1
- package/src/plugins/impl/mpl-interactive/mpl-websocket-shim.ts +10 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { s as __toESM } from "./chunk-BNovOVIE.js";
|
|
2
|
-
import { _ as Logger } from "./button-
|
|
2
|
+
import { _ as Logger } from "./button-BacYv-bE.js";
|
|
3
3
|
import { t as require_react } from "./react-DA-nE2FX.js";
|
|
4
4
|
import { t as require_compiler_runtime } from "./compiler-runtime-CEbnTgxf.js";
|
|
5
|
-
import { u as createLucideIcon } from "./dist
|
|
5
|
+
import { u as createLucideIcon } from "./dist--2Bqjvs0.js";
|
|
6
6
|
require_compiler_runtime(), require_react();
|
|
7
7
|
var TOAST_LIMIT = 1, TOAST_REMOVE_DELAY = 1e4, count = 0;
|
|
8
8
|
function genId() {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { s as __toESM } from "./chunk-BNovOVIE.js";
|
|
2
|
-
import { m as useComposedRefs } from "./button-
|
|
2
|
+
import { m as useComposedRefs } from "./button-BacYv-bE.js";
|
|
3
3
|
import { t as require_react } from "./react-DA-nE2FX.js";
|
|
4
4
|
import { t as require_react_dom } from "./react-dom-BTJzcVJ9.js";
|
|
5
5
|
import { t as require_jsx_runtime } from "./jsx-runtime-DebpN0FN.js";
|
|
6
|
-
import { _t as createContextScope, mt as useLayoutEffect2, ut as useCallbackRef, vt as Primitive } from "./zod-
|
|
6
|
+
import { _t as createContextScope, mt as useLayoutEffect2, ut as useCallbackRef, vt as Primitive } from "./zod-CijjQh4u.js";
|
|
7
7
|
/**
|
|
8
8
|
* @license lucide-react v0.563.0 - ISC
|
|
9
9
|
*
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { s as __toESM } from "./chunk-BNovOVIE.js";
|
|
2
|
-
import { _ as Logger, d as createSlot, f as createSlottable, g as cn, m as useComposedRefs, n as buttonVariants, r as cva } from "./button-
|
|
2
|
+
import { _ as Logger, d as createSlot, f as createSlottable, g as cn, m as useComposedRefs, n as buttonVariants, r as cva } from "./button-BacYv-bE.js";
|
|
3
3
|
import { t as require_react } from "./react-DA-nE2FX.js";
|
|
4
4
|
import { t as require_compiler_runtime } from "./compiler-runtime-CEbnTgxf.js";
|
|
5
5
|
import { t as require_jsx_runtime } from "./jsx-runtime-DebpN0FN.js";
|
|
6
|
-
import { P as object, R as string, Z as withFullScreenAsRoot, _t as createContextScope, at as Portal, ct as DismissableLayer, dt as useId, et as StyleNamespace, ft as Presence, gt as createContext2, ht as composeEventHandlers, it as useFocusGuards, nt as Combination_default, ot as FocusScope, pt as useControllableState, tt as hideOthers, vt as Primitive } from "./zod-
|
|
6
|
+
import { P as object, R as string, Z as withFullScreenAsRoot, _t as createContextScope, at as Portal, ct as DismissableLayer, dt as useId, et as StyleNamespace, ft as Presence, gt as createContext2, ht as composeEventHandlers, it as useFocusGuards, nt as Combination_default, ot as FocusScope, pt as useControllableState, tt as hideOthers, vt as Primitive } from "./zod-CijjQh4u.js";
|
|
7
7
|
var import_react = /* @__PURE__ */ __toESM(require_react(), 1), import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime(), 1), DIALOG_NAME = "Dialog", [createDialogContext, createDialogScope] = createContextScope(DIALOG_NAME), [DialogProvider, useDialogContext] = createDialogContext(DIALOG_NAME), Dialog = (t) => {
|
|
8
8
|
let { __scopeDialog: F, children: I, open: L, defaultOpen: R, onOpenChange: z, modal: B = true } = t, V = import_react.useRef(null), H = import_react.useRef(null), [U, W] = useControllableState({
|
|
9
9
|
prop: L,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { s as __toESM } from "./chunk-BNovOVIE.js";
|
|
2
2
|
import { t as require_react } from "./react-DA-nE2FX.js";
|
|
3
3
|
import { t as require_jsx_runtime } from "./jsx-runtime-DebpN0FN.js";
|
|
4
|
-
import { l as historyKeymap, o as defaultKeymap, r as lintKeymap, s as history, t as _extends, u as indentWithTab } from "./extends-
|
|
4
|
+
import { l as historyKeymap, o as defaultKeymap, r as lintKeymap, s as history, t as _extends, u as indentWithTab } from "./extends-9MVIxxRo.js";
|
|
5
5
|
import { $ as EditorView, At as Facet, Bt as codePointAt, C as foldKeymap, Ct as Annotation, Et as CharCategory, F as syntaxHighlighting, Gt as fromCodePoint, H as tags, Ht as combineConfig, It as StateEffect, Lt as StateField, Mt as Prec, Ot as EditorSelection, Pt as RangeSetBuilder, St as crelt, Vt as codePointSize, Wt as findClusterBreak, Z as Decoration, _t as rectangularSelection, a as HighlightStyle, at as dropCursor, bt as showPanel, dt as highlightSpecialChars, g as defaultHighlightStyle, gt as placeholder, it as drawSelection, j as indentUnit, k as indentOnInput, kt as EditorState, lt as highlightActiveLine, mt as lineNumbers, ot as getPanel, p as bracketMatching, pt as keymap, rt as crosshairCursor, tt as ViewPlugin, ut as highlightActiveLineGutter, vt as runScopeHandlers, x as foldGutter, yt as showDialog } from "./dist-U4F-tbMs.js";
|
|
6
6
|
import { a as closeBracketsKeymap, c as completionKeymap, i as closeBrackets, r as autocompletion } from "./dist-hT4QzYX-.js";
|
|
7
7
|
var basicNormalize = typeof String.prototype.normalize == "function" ? (e2) => e2.normalize("NFKD") : (e2) => e2, SearchCursor = class {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { s as __toESM } from "./chunk-BNovOVIE.js";
|
|
2
|
-
import { g as cn, h as Events } from "./button-
|
|
2
|
+
import { g as cn, h as Events } from "./button-BacYv-bE.js";
|
|
3
3
|
import { t as require_react } from "./react-DA-nE2FX.js";
|
|
4
4
|
import { t as require_compiler_runtime } from "./compiler-runtime-CEbnTgxf.js";
|
|
5
|
-
import { n as Copy, r as toast, t as copyToClipboard } from "./copy-
|
|
6
|
-
import { t as Check } from "./check-
|
|
5
|
+
import { n as Copy, r as toast, t as copyToClipboard } from "./copy-COam1EG7.js";
|
|
6
|
+
import { t as Check } from "./check-C9OoNtR4.js";
|
|
7
7
|
import { t as require_jsx_runtime } from "./jsx-runtime-DebpN0FN.js";
|
|
8
|
-
import { t as Tooltip } from "./tooltip-
|
|
8
|
+
import { t as Tooltip } from "./tooltip-Czds6Qr8.js";
|
|
9
9
|
import { $ as EditorView, A as indentString, At as Facet, Ct as Annotation, D as getIndentation, E as getIndentUnit, Ht as combineConfig, I as syntaxTree, It as StateEffect, Lt as StateField, N as matchBrackets, Nt as RangeSet, Ot as EditorSelection, Pt as RangeSetBuilder, Q as Direction, Rt as Text, St as crelt, Tt as ChangeSet, Ut as countColumn, W as NodeProp, Wt as findClusterBreak, Z as Decoration, bt as showPanel, ft as hoverTooltip, ht as logException, j as indentUnit, nt as WidgetType, o as IndentContext, ot as getPanel, tt as ViewPlugin, wt as ChangeDesc, zt as Transaction } from "./dist-U4F-tbMs.js";
|
|
10
10
|
var import_compiler_runtime = require_compiler_runtime(), import_react = /* @__PURE__ */ __toESM(require_react(), 1), import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime(), 1);
|
|
11
11
|
const CopyClipboardIcon = (e5) => {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { s as __toESM } from "./chunk-BNovOVIE.js";
|
|
2
|
-
import { g as cn, r as cva } from "./button-
|
|
2
|
+
import { g as cn, r as cva } from "./button-BacYv-bE.js";
|
|
3
3
|
import { t as require_react } from "./react-DA-nE2FX.js";
|
|
4
4
|
import { t as require_compiler_runtime } from "./compiler-runtime-CEbnTgxf.js";
|
|
5
|
-
import { t as toDate } from "./toDate-
|
|
5
|
+
import { t as toDate } from "./toDate-D-l5s8nn.js";
|
|
6
6
|
import { t as require_jsx_runtime } from "./jsx-runtime-DebpN0FN.js";
|
|
7
|
-
import { i as tableFromIPC } from "./loader-
|
|
7
|
+
import { i as tableFromIPC } from "./loader-Boph2xIS.js";
|
|
8
8
|
function isDate(e) {
|
|
9
9
|
return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
|
|
10
10
|
}
|
|
11
11
|
function isValid(e) {
|
|
12
12
|
return !(!isDate(e) && typeof e != "number" || isNaN(+toDate(e)));
|
|
13
13
|
}
|
|
14
|
-
var import_compiler_runtime = require_compiler_runtime(), import_react = /* @__PURE__ */ __toESM(require_react(), 1), import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime(), 1), alertVariants = cva("relative w-full rounded-lg border p-4 [&>svg]:absolute [&>svg]:text-foreground [&>svg]:left-4 [&>svg]:top-4 [&>svg+div]:translate-y-[-3px] [
|
|
14
|
+
var import_compiler_runtime = require_compiler_runtime(), import_react = /* @__PURE__ */ __toESM(require_react(), 1), import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime(), 1), alertVariants = cva("relative w-full rounded-lg border p-4 [&>svg]:absolute [&>svg]:text-foreground [&>svg]:left-4 [&>svg]:top-4 [&>svg+div]:translate-y-[-3px] has-[svg]:pl-11", {
|
|
15
15
|
variants: { variant: {
|
|
16
16
|
default: "bg-background text-foreground",
|
|
17
17
|
destructive: "text-destructive border-destructive/50 dark:border-destructive [&>svg]:text-destructive text-destructive",
|
|
@@ -2,19 +2,19 @@ var __defProp = Object.defineProperty;
|
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
4
|
import { s as __toESM, t as __commonJSMin } from "./chunk-BNovOVIE.js";
|
|
5
|
-
import { _ as Logger, h as Events, t as Button } from "./button-
|
|
5
|
+
import { _ as Logger, h as Events, t as Button } from "./button-BacYv-bE.js";
|
|
6
6
|
import { t as require_react } from "./react-DA-nE2FX.js";
|
|
7
7
|
import { t as require_compiler_runtime } from "./compiler-runtime-CEbnTgxf.js";
|
|
8
|
-
import { n as Copy, r as toast, t as copyToClipboard } from "./copy-
|
|
9
|
-
import { C as logNever, i as SelectContent, l as SelectTrigger, n as capitalize, o as SelectItem, r as Select, u as SelectValue } from "./strings-
|
|
10
|
-
import { J as marked, S as DropdownMenuSubTrigger, _ as DropdownMenuPortal, b as DropdownMenuSub, f as DropdownMenu, h as DropdownMenuItem, p as DropdownMenuContent, q as useNonce, r as Input, v as DropdownMenuSeparator, x as DropdownMenuSubContent } from "./input-
|
|
11
|
-
import { n as Trash, r as Pencil, t as BulkEdit } from "./types-
|
|
12
|
-
import { n as require_prop_types, r as Plus, t as ErrorBoundary } from "./ErrorBoundary-
|
|
8
|
+
import { n as Copy, r as toast, t as copyToClipboard } from "./copy-COam1EG7.js";
|
|
9
|
+
import { C as logNever, i as SelectContent, l as SelectTrigger, n as capitalize, o as SelectItem, r as Select, u as SelectValue } from "./strings-Dq_j3Rxw.js";
|
|
10
|
+
import { J as marked, S as DropdownMenuSubTrigger, _ as DropdownMenuPortal, b as DropdownMenuSub, f as DropdownMenu, h as DropdownMenuItem, p as DropdownMenuContent, q as useNonce, r as Input, v as DropdownMenuSeparator, x as DropdownMenuSubContent } from "./input-CbEz_aj_.js";
|
|
11
|
+
import { n as Trash, r as Pencil, t as BulkEdit } from "./types-C2Ir191_.js";
|
|
12
|
+
import { n as require_prop_types, r as Plus, t as ErrorBoundary } from "./ErrorBoundary-DE6tzZf-.js";
|
|
13
13
|
import "./react-dom-BTJzcVJ9.js";
|
|
14
14
|
import { t as require_jsx_runtime } from "./jsx-runtime-DebpN0FN.js";
|
|
15
|
-
import "./zod-
|
|
16
|
-
import { t as Label } from "./label-
|
|
17
|
-
import { T as useEvent_default, n as useTheme } from "./useTheme-
|
|
15
|
+
import "./zod-CijjQh4u.js";
|
|
16
|
+
import { t as Label } from "./label-WfTSU8L4.js";
|
|
17
|
+
import { T as useEvent_default, n as useTheme } from "./useTheme-BrYvK-_A.js";
|
|
18
18
|
import { A as require__Map, B as require__baseGetTag, C as require__hasPath, D as require_isArguments, E as require__isIndex, F as require_isFunction, G as assert, H as require__root, I as require_isObject, J as maybe, K as assertNever, L as require__isKey, M as require_eq, N as require__getNative, O as require__castPath, P as require__toSource, R as require_isSymbol, S as resolveCellsThunk, T as require_isLength, U as require__freeGlobal, V as require__Symbol, W as require_isArray, _ as isEditableGridCell, a as mergeAndRealizeTheme, b as isReadWriteCell, c as withAlpha, d as CompactSelection, f as GridCellKind, g as booleanCellIsEditable, h as InnerGridCellKind, i as makeCSSStyle, j as require__ListCache, k as require__MapCache, l as BooleanEmpty, m as GridColumnMenuIcon, n as ThemeContext, o as blend, p as GridColumnIcon, q as deepEqual, r as getDataEditorTheme, s as blendCache, t as ClickOutsideContainer, u as BooleanIndeterminate, v as isInnerOnlyCell, w as require__toKey, x as isSizedGridColumn, y as isObjectEditorCallbackResult, z as require_isObjectLike } from "./click-outside-container-BDd67_1U.js";
|
|
19
19
|
import { t as styled_default } from "./dist-D_bzzWBm.js";
|
|
20
20
|
let GlideDataEditor, glide_data_editor_default;
|
|
@@ -2,29 +2,29 @@ var __defProp = Object.defineProperty;
|
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
4
|
import { a as __toCommonJS, n as __esmMin, o as __toDynamicImportESM, r as __export, s as __toESM, t as __commonJSMin } from "./chunk-BNovOVIE.js";
|
|
5
|
-
import { _ as Logger, c as Objects, d as createSlot, g as cn, m as useComposedRefs, o as isPlatformMac, r as cva, t as Button } from "./button-
|
|
5
|
+
import { _ as Logger, c as Objects, d as createSlot, g as cn, m as useComposedRefs, o as isPlatformMac, r as cva, t as Button } from "./button-BacYv-bE.js";
|
|
6
6
|
import { t as require_react } from "./react-DA-nE2FX.js";
|
|
7
7
|
import { t as require_compiler_runtime } from "./compiler-runtime-CEbnTgxf.js";
|
|
8
|
-
import { r as toast, t as copyToClipboard } from "./copy-
|
|
8
|
+
import { r as toast, t as copyToClipboard } from "./copy-COam1EG7.js";
|
|
9
9
|
import { a as gn, c as rehypeSanitize, l as defaultSchema, s as xn, u as require_cjs, __tla as __tla_0 } from "./chunk-5FQGJX7Z-BbqSm5gU.js";
|
|
10
|
-
import { a as createPopperScope, i as Root2$3, l as VisuallyHidden, n as Arrow, o as useSize, r as Content$1, t as Anchor, u as createLucideIcon } from "./dist
|
|
11
|
-
import { a as Type, c as Calendar, i as createReducerAndAtoms, o as ToggleLeft, r as Badge, s as Hash, t as useOnMount } from "./useLifecycle-
|
|
12
|
-
import { t as Check } from "./check-
|
|
13
|
-
import { C as logNever, F as createCollection, I as X, N as usePrevious, P as useDirection, R as ChevronDown, S as assertNever, a as SelectGroup, c as SelectSeparator, i as SelectContent, l as SelectTrigger, o as SelectItem, r as Select, s as SelectLabel, t as Strings, u as SelectValue } from "./strings-
|
|
14
|
-
import { J as marked, X as useDebouncedCallback, _t as $f6c31cce2adf654f$export$45712eceda6fad21, q as useNonce } from "./input-
|
|
15
|
-
import { _ as isWasm, g as Deferred, h as waitForConnectionOpen, l as getRuntimeManager, t as toDate, v as CircleQuestionMark } from "./toDate-
|
|
10
|
+
import { a as createPopperScope, i as Root2$3, l as VisuallyHidden, n as Arrow, o as useSize, r as Content$1, t as Anchor, u as createLucideIcon } from "./dist--2Bqjvs0.js";
|
|
11
|
+
import { a as Type, c as Calendar, i as createReducerAndAtoms, o as ToggleLeft, r as Badge, s as Hash, t as useOnMount } from "./useLifecycle-AHlswLw-.js";
|
|
12
|
+
import { t as Check } from "./check-C9OoNtR4.js";
|
|
13
|
+
import { C as logNever, F as createCollection, I as X, N as usePrevious, P as useDirection, R as ChevronDown, S as assertNever, a as SelectGroup, c as SelectSeparator, i as SelectContent, l as SelectTrigger, o as SelectItem, r as Select, s as SelectLabel, t as Strings, u as SelectValue } from "./strings-Dq_j3Rxw.js";
|
|
14
|
+
import { J as marked, X as useDebouncedCallback, _t as $f6c31cce2adf654f$export$45712eceda6fad21, q as useNonce } from "./input-CbEz_aj_.js";
|
|
15
|
+
import { _ as isWasm, g as Deferred, h as waitForConnectionOpen, l as getRuntimeManager, t as toDate, v as CircleQuestionMark } from "./toDate-D-l5s8nn.js";
|
|
16
16
|
import { t as require_react_dom } from "./react-dom-BTJzcVJ9.js";
|
|
17
17
|
import { t as require_jsx_runtime } from "./jsx-runtime-DebpN0FN.js";
|
|
18
|
-
import { B as union, N as number, P as object, Q as withSmartCollisionBoundary, R as string, T as boolean, Y as MAX_HEIGHT_OFFSET, Z as withFullScreenAsRoot, _t as createContextScope, at as Portal, ct as DismissableLayer, dt as useId, et as StyleNamespace, ft as Presence, ht as composeEventHandlers, it as useFocusGuards, k as literal, lt as Root$1, mt as useLayoutEffect2, nt as Combination_default, ot as FocusScope, pt as useControllableState, st as Branch, tt as hideOthers, ut as useCallbackRef, vt as Primitive, w as array, yt as dispatchDiscreteCustomEvent } from "./zod-
|
|
19
|
-
import { i as TooltipProvider, t as Tooltip } from "./tooltip-
|
|
20
|
-
import { a as setDiagnostics, c as historyField, d as insertTab, f as CopyClipboardIcon, i as linter, n as forEachDiagnostic, s as history } from "./extends-
|
|
18
|
+
import { B as union, N as number, P as object, Q as withSmartCollisionBoundary, R as string, T as boolean, Y as MAX_HEIGHT_OFFSET, Z as withFullScreenAsRoot, _t as createContextScope, at as Portal, ct as DismissableLayer, dt as useId, et as StyleNamespace, ft as Presence, ht as composeEventHandlers, it as useFocusGuards, k as literal, lt as Root$1, mt as useLayoutEffect2, nt as Combination_default, ot as FocusScope, pt as useControllableState, st as Branch, tt as hideOthers, ut as useCallbackRef, vt as Primitive, w as array, yt as dispatchDiscreteCustomEvent } from "./zod-CijjQh4u.js";
|
|
19
|
+
import { i as TooltipProvider, t as Tooltip } from "./tooltip-Czds6Qr8.js";
|
|
20
|
+
import { a as setDiagnostics, c as historyField, d as insertTab, f as CopyClipboardIcon, i as linter, n as forEachDiagnostic, s as history } from "./extends-9MVIxxRo.js";
|
|
21
21
|
import { i as debounce_default } from "./constants-T20xxyNf.js";
|
|
22
|
-
import { _ as useAtomValue, a as getResolvedMarimoConfig, b as atom, d as store, g as useAtom, h as Provider, i as autoInstantiateAtom, m as isIslands, n as useTheme, t as resolvedThemeAtom, u as createDeepEqualAtom, w as dequal } from "./useTheme-
|
|
22
|
+
import { _ as useAtomValue, a as getResolvedMarimoConfig, b as atom, d as store, g as useAtom, h as Provider, i as autoInstantiateAtom, m as isIslands, n as useTheme, t as resolvedThemeAtom, u as createDeepEqualAtom, w as dequal } from "./useTheme-BrYvK-_A.js";
|
|
23
23
|
import { $ as EditorView, At as Facet, B as highlightCode, Ct as Annotation, Dt as Compartment, E as getIndentUnit, H as tags, I as syntaxTree, It as StateEffect, L as unfoldAll, Lt as StateField, Mt as Prec, Nt as RangeSet, Ot as EditorSelection, Rt as Text, S as foldInside, X as parseMixed, Z as Decoration, b as foldAll, bt as showPanel, ct as gutter, et as GutterMarker, f as StreamLanguage, ft as hoverTooltip, gt as placeholder, kt as EditorState, l as LanguageDescription, pt as keymap, tt as ViewPlugin, u as LanguageSupport, w as foldNodeProp, xt as showTooltip, z as classHighlighter, zt as Transaction } from "./dist-U4F-tbMs.js";
|
|
24
24
|
import { t as invariant } from "./invariant-wRzNXIsJ.js";
|
|
25
25
|
import { a as arrayMove, i as arrayInsertMany, l as clamp, n as arrayDelete, r as arrayInsert } from "./arrays-sEtDRoG4.js";
|
|
26
26
|
import { n as once } from "./once-DPuqGUeo.js";
|
|
27
|
-
import { t as getIframeCapabilities } from "./capabilities-
|
|
27
|
+
import { t as getIframeCapabilities } from "./capabilities-D_4LYhSU.js";
|
|
28
28
|
import { d as snippet, n as acceptCompletion, r as autocompletion, u as insertCompletionText } from "./dist-hT4QzYX-.js";
|
|
29
29
|
import { t as require_main } from "./main-Tj_-QTyF.js";
|
|
30
30
|
import { a as PLSQL, c as SQLite, d as schemaCompletionSource, f as sql, i as MySQL, l as StandardSQL, n as MSSQL, o as PostgreSQL, r as MariaSQL, s as SQLDialect, t as Cassandra, u as keywordCompletionSource } from "./dist-CcWX6tmx.js";
|
|
@@ -32,7 +32,7 @@ import { a as markdown, s as markdownLanguage } from "./dist-Dv_Y15yk.js";
|
|
|
32
32
|
import { a as parser, i as pythonLanguage, n as localCompletionSource, r as python, t as globalCompletion } from "./dist-C_Y3oV3C.js";
|
|
33
33
|
import { n as stexMath } from "./stex-BIsgBmK4.js";
|
|
34
34
|
import { t as purify } from "./purify.es-H92eMd9-.js";
|
|
35
|
-
import { t as useAsyncData } from "./useAsyncData-
|
|
35
|
+
import { t as useAsyncData } from "./useAsyncData-1Dhzjfwf.js";
|
|
36
36
|
let reducer$1, extractAllTracebackInfo, ChevronRightIcon, Minus, goToCellLine, safeExtractSetUIElementMessageBuffers, CircleAlert, DATA_TYPE_ICON, AccordionContent, Root2$2, Checkbox, ChatBubbleIcon, Table2, PathBuilder, BorderAllIcon, Trash2, createVariableInfoElement, base64ToDataView, Eye, adaptForLocalStorage, cellErrorsAtom, getTableType, getMarimoExportContext, esm_default, require_client, base64ToUint8Array, ExternalLink, jotaiJsonStorage, getCellNames, requestClientAtom, createActions$1, convertStatsName, dataViewToBase64, Database, variablesAtom, PinLeftIcon, Layers, generateUUID, PinRightIcon, Info, useChromeActions, CheckIcon, PaintRoller, Paths, base64ToDataURL, FileText, repl, numColumnsAtom, elementContainsMarimoCellFile, extractBase64FromDataURL, Columns2, PluralWord, Accordion, Item, normalizeName, AccordionTrigger, Wrench, MarkdownLanguageAdapter, hasTrustedExportContext, import_lib$1, allTablesAtom, renderHTML, Braces, getDataTypeColor, hasRunAnyCellAtom, dataSourceConnectionsAtom, notebookAtom, isUninstantiated, hasOnlyOneCellAtom, useRequestClient, notebookOutline, singleFacet, Boosts, atomWithStorage, DATA_CELL_ID, useCellFocusActions, parseDataset, parseHtmlContent, AIContextProvider, Close$1, getValidName, Popover, HTMLCellId, initialModeAtom, PopoverTrigger, findCellId, viewStateAtom, getTracebackInfo, useCellActions, isOutputEmpty, OBJECT_ID_ATTR, outputIsLoading, getDatasourceContext, atomWithReducer, sanitizeHtml, DatasourceContextProvider, jsonToMarkdown, headingToIdentifier, LazyAnyLanguageCodeMirror, parseAttrValue, ansiToPlainText, DotFilledIcon, LoaderCircle, DeferredRequestRegistry, ChevronDownIcon, NotebookPen, moveToEndOfEditor, PopoverClose, SCRATCH_CELL_ID, kioskModeAtom, useExpandedOutput, jsonParseWithSpecialChar, isErrorMime, Spinner, ZodLocalStorage, useCellNames, useLastFocusedCellId, parseInitialValue, AnsiUp, useExpandedConsoleOutput, RANDOM_ID_ATTR, outputIsStale, getCellEditorView, getRequestClient, MarkdownRenderer, filenameAtom, createCell, maybeAddAltairImport, CellOutputId, getInitialAppMode, toPng$1, NotebookScopedLocalStorage, useCellIds, PopoverContent, UIElementId, useInstallAllowed, Sections, selectAtom, getCellDomProps, AccordionItem, Trigger2, customPythonLanguageSupport, AIContextRegistry, Content2$1, isInternalCellName, contextToXml, Anchor2, displayCellName, isDataURLString, CircleX, PluralWords;
|
|
37
37
|
let __tla = Promise.all([
|
|
38
38
|
(() => {
|
|
@@ -16422,20 +16422,20 @@ let __tla = Promise.all([
|
|
|
16422
16422
|
import_compiler_runtime$19 = require_compiler_runtime();
|
|
16423
16423
|
PREVIEW_ITEM_LIMIT = 5;
|
|
16424
16424
|
DATA_TYPE_COLORS = {
|
|
16425
|
-
boolean: "bg-
|
|
16426
|
-
date: "bg-
|
|
16427
|
-
time: "bg-
|
|
16428
|
-
datetime: "bg-
|
|
16429
|
-
number: "bg-
|
|
16430
|
-
integer: "bg-
|
|
16431
|
-
string: "bg-
|
|
16432
|
-
unknown: "bg-
|
|
16425
|
+
boolean: "bg-(--orange-4) text-(--orange-11)",
|
|
16426
|
+
date: "bg-(--grass-4) text-(--grass-11)",
|
|
16427
|
+
time: "bg-(--grass-4) text-(--grass-11)",
|
|
16428
|
+
datetime: "bg-(--grass-4) text-(--grass-11)",
|
|
16429
|
+
number: "bg-(--purple-4) text-(--purple-11)",
|
|
16430
|
+
integer: "bg-(--purple-4) text-(--purple-11)",
|
|
16431
|
+
string: "bg-(--blue-4) text-(--blue-11)",
|
|
16432
|
+
unknown: "bg-(--slate-4) text-(--slate-11)"
|
|
16433
16433
|
};
|
|
16434
16434
|
SOURCE_TYPE_COLORS = {
|
|
16435
|
-
local: "bg-
|
|
16436
|
-
duckdb: "bg-
|
|
16437
|
-
connection: "bg-
|
|
16438
|
-
catalog: "bg-
|
|
16435
|
+
local: "bg-(--blue-4) text-(--blue-11)",
|
|
16436
|
+
duckdb: "bg-(--amber-4) text-(--amber-11)",
|
|
16437
|
+
connection: "bg-(--green-4) text-(--green-11)",
|
|
16438
|
+
catalog: "bg-(--purple-4) text-(--purple-11)"
|
|
16439
16439
|
};
|
|
16440
16440
|
CONTAINER_STYLES = "p-3 min-w-[250px] flex flex-col divide-y";
|
|
16441
16441
|
columnsText = new PluralWord("column", "columns");
|
|
@@ -16462,7 +16462,7 @@ let __tla = Promise.all([
|
|
|
16462
16462
|
MetadataRow = (e) => {
|
|
16463
16463
|
let t = (0, import_compiler_runtime$19.c)(5), { label: n, value: r } = e, i;
|
|
16464
16464
|
t[0] === n ? i = t[1] : (i = (0, import_jsx_runtime.jsxs)("span", {
|
|
16465
|
-
className: "text-
|
|
16465
|
+
className: "text-(--slate-11)",
|
|
16466
16466
|
children: [
|
|
16467
16467
|
n,
|
|
16468
16468
|
":"
|
|
@@ -16480,7 +16480,7 @@ let __tla = Promise.all([
|
|
|
16480
16480
|
StatisticItem = (e) => {
|
|
16481
16481
|
let t = (0, import_compiler_runtime$19.c)(5), { icon: n, text: r } = e, i;
|
|
16482
16482
|
t[0] === r ? i = t[1] : (i = (0, import_jsx_runtime.jsx)("span", {
|
|
16483
|
-
className: "text-xs text-
|
|
16483
|
+
className: "text-xs text-(--slate-11)",
|
|
16484
16484
|
children: r
|
|
16485
16485
|
}), t[0] = r, t[1] = i);
|
|
16486
16486
|
let a;
|
|
@@ -16499,7 +16499,7 @@ let __tla = Promise.all([
|
|
|
16499
16499
|
t[0] !== r || t[1] !== s ? (c = r.slice(0, s), t[0] = r, t[1] = s, t[2] = c) : c = t[2];
|
|
16500
16500
|
let l = c, u = i > s, d;
|
|
16501
16501
|
t[3] === o ? d = t[4] : (d = o && (0, import_jsx_runtime.jsxs)("h4", {
|
|
16502
|
-
className: "text-xs font-medium text-
|
|
16502
|
+
className: "text-xs font-medium text-(--slate-11) mb-2",
|
|
16503
16503
|
children: [
|
|
16504
16504
|
o,
|
|
16505
16505
|
":"
|
|
@@ -16507,7 +16507,7 @@ let __tla = Promise.all([
|
|
|
16507
16507
|
}), t[3] = o, t[4] = d);
|
|
16508
16508
|
let f;
|
|
16509
16509
|
t[5] !== u || t[6] !== s || t[7] !== i ? (f = u && (0, import_jsx_runtime.jsxs)("div", {
|
|
16510
|
-
className: "text-xs text-
|
|
16510
|
+
className: "text-xs text-(--slate-10) text-center py-1",
|
|
16511
16511
|
children: [
|
|
16512
16512
|
"... and ",
|
|
16513
16513
|
i - s,
|
|
@@ -16535,12 +16535,12 @@ let __tla = Promise.all([
|
|
|
16535
16535
|
const renderTableInfo = (e) => {
|
|
16536
16536
|
var _a2, _b2;
|
|
16537
16537
|
let t = e.type === "view" ? (0, import_jsx_runtime.jsx)(Eye, {
|
|
16538
|
-
className: "w-4 h-4 text-
|
|
16538
|
+
className: "w-4 h-4 text-(--blue-9)"
|
|
16539
16539
|
}) : (0, import_jsx_runtime.jsx)(Table2, {
|
|
16540
|
-
className: "w-4 h-4 text-
|
|
16540
|
+
className: "w-4 h-4 text-(--green-9)"
|
|
16541
16541
|
}), n = (0, import_jsx_runtime.jsx)(Badge, {
|
|
16542
16542
|
variant: "secondary",
|
|
16543
|
-
className: `text-xs ${e.type === "view" ? "bg-
|
|
16543
|
+
className: `text-xs ${e.type === "view" ? "bg-(--blue-4) text-(--blue-11)" : "bg-(--green-4) text-(--green-11)"}`,
|
|
16544
16544
|
children: e.type
|
|
16545
16545
|
}), r = e.columns.map((e2) => {
|
|
16546
16546
|
let t2 = DATA_TYPE_ICON[e2.type];
|
|
@@ -16551,7 +16551,7 @@ let __tla = Promise.all([
|
|
|
16551
16551
|
className: "flex items-center gap-2",
|
|
16552
16552
|
children: [
|
|
16553
16553
|
(0, import_jsx_runtime.jsx)(t2, {
|
|
16554
|
-
className: "w-3 h-3 text-
|
|
16554
|
+
className: "w-3 h-3 text-(--slate-9)"
|
|
16555
16555
|
}),
|
|
16556
16556
|
(0, import_jsx_runtime.jsx)("span", {
|
|
16557
16557
|
className: "font-mono",
|
|
@@ -16589,14 +16589,14 @@ let __tla = Promise.all([
|
|
|
16589
16589
|
e.variable_name && (0, import_jsx_runtime.jsx)(MetadataRow, {
|
|
16590
16590
|
label: "Variable",
|
|
16591
16591
|
value: (0, import_jsx_runtime.jsx)("code", {
|
|
16592
|
-
className: "text-xs bg-
|
|
16592
|
+
className: "text-xs bg-(--slate-4) px-1 rounded",
|
|
16593
16593
|
children: e.variable_name
|
|
16594
16594
|
})
|
|
16595
16595
|
}),
|
|
16596
16596
|
e.engine && (0, import_jsx_runtime.jsx)(MetadataRow, {
|
|
16597
16597
|
label: "Engine",
|
|
16598
16598
|
value: (0, import_jsx_runtime.jsx)("code", {
|
|
16599
|
-
className: "text-xs bg-
|
|
16599
|
+
className: "text-xs bg-(--slate-4) px-1 rounded",
|
|
16600
16600
|
children: e.engine
|
|
16601
16601
|
})
|
|
16602
16602
|
})
|
|
@@ -16607,13 +16607,13 @@ let __tla = Promise.all([
|
|
|
16607
16607
|
children: [
|
|
16608
16608
|
e.num_columns != null && (0, import_jsx_runtime.jsx)(StatisticItem, {
|
|
16609
16609
|
icon: (0, import_jsx_runtime.jsx)(Columns2, {
|
|
16610
|
-
className: "w-3 h-3 text-
|
|
16610
|
+
className: "w-3 h-3 text-(--slate-9)"
|
|
16611
16611
|
}),
|
|
16612
16612
|
text: `${e.num_columns} ${columnsText.pluralize(e.num_columns)}`
|
|
16613
16613
|
}),
|
|
16614
16614
|
e.num_rows != null && (0, import_jsx_runtime.jsx)(StatisticItem, {
|
|
16615
16615
|
icon: (0, import_jsx_runtime.jsx)(Hash, {
|
|
16616
|
-
className: "w-3 h-3 text-
|
|
16616
|
+
className: "w-3 h-3 text-(--slate-9)"
|
|
16617
16617
|
}),
|
|
16618
16618
|
text: `${e.num_rows} ${rowsText.pluralize(e.num_rows)}`
|
|
16619
16619
|
})
|
|
@@ -16630,17 +16630,17 @@ let __tla = Promise.all([
|
|
|
16630
16630
|
className: "flex items-center gap-1",
|
|
16631
16631
|
children: [
|
|
16632
16632
|
(0, import_jsx_runtime.jsx)(Key, {
|
|
16633
|
-
className: "w-3 h-3 text-
|
|
16633
|
+
className: "w-3 h-3 text-(--amber-9)"
|
|
16634
16634
|
}),
|
|
16635
16635
|
(0, import_jsx_runtime.jsx)("span", {
|
|
16636
|
-
className: "text-xs font-medium text-
|
|
16636
|
+
className: "text-xs font-medium text-(--slate-11)",
|
|
16637
16637
|
children: "Primary Keys:"
|
|
16638
16638
|
})
|
|
16639
16639
|
]
|
|
16640
16640
|
}),
|
|
16641
16641
|
(_a2 = e.primary_keys) == null ? void 0 : _a2.map((e2) => (0, import_jsx_runtime.jsx)(Badge, {
|
|
16642
16642
|
variant: "outline",
|
|
16643
|
-
className: "text-xs text-
|
|
16643
|
+
className: "text-xs text-(--slate-11)",
|
|
16644
16644
|
children: e2
|
|
16645
16645
|
}, e2))
|
|
16646
16646
|
]
|
|
@@ -16652,17 +16652,17 @@ let __tla = Promise.all([
|
|
|
16652
16652
|
className: "flex items-center gap-1 mb-1",
|
|
16653
16653
|
children: [
|
|
16654
16654
|
(0, import_jsx_runtime.jsx)(BookMarked, {
|
|
16655
|
-
className: "w-3 h-3 text-
|
|
16655
|
+
className: "w-3 h-3 text-(--purple-9)"
|
|
16656
16656
|
}),
|
|
16657
16657
|
(0, import_jsx_runtime.jsx)("span", {
|
|
16658
|
-
className: "text-xs font-medium text-
|
|
16658
|
+
className: "text-xs font-medium text-(--slate-11)",
|
|
16659
16659
|
children: "Indexes:"
|
|
16660
16660
|
})
|
|
16661
16661
|
]
|
|
16662
16662
|
}),
|
|
16663
16663
|
(_b2 = e.indexes) == null ? void 0 : _b2.map((e2) => (0, import_jsx_runtime.jsx)(Badge, {
|
|
16664
16664
|
variant: "outline",
|
|
16665
|
-
className: "text-xs text-
|
|
16665
|
+
className: "text-xs text-(--slate-11)",
|
|
16666
16666
|
children: e2
|
|
16667
16667
|
}, e2))
|
|
16668
16668
|
]
|
|
@@ -16682,7 +16682,7 @@ let __tla = Promise.all([
|
|
|
16682
16682
|
className: `text-xs ${getDataTypeColorClass(e.type)}`,
|
|
16683
16683
|
children: e.type
|
|
16684
16684
|
}), r = ((_a2 = e.sample_values) == null ? void 0 : _a2.map((e2, t2) => (0, import_jsx_runtime.jsx)("div", {
|
|
16685
|
-
className: "text-xs bg-
|
|
16685
|
+
className: "text-xs bg-(--slate-3) rounded font-mono",
|
|
16686
16686
|
children: e2 == null ? "null" : String(e2)
|
|
16687
16687
|
}, t2))) || [];
|
|
16688
16688
|
return (0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -16690,7 +16690,7 @@ let __tla = Promise.all([
|
|
|
16690
16690
|
children: [
|
|
16691
16691
|
(0, import_jsx_runtime.jsx)(SectionHeader, {
|
|
16692
16692
|
icon: (0, import_jsx_runtime.jsx)(t, {
|
|
16693
|
-
className: "w-4 h-4 text-
|
|
16693
|
+
className: "w-4 h-4 text-(--slate-9)"
|
|
16694
16694
|
}),
|
|
16695
16695
|
title: e.name,
|
|
16696
16696
|
badge: n
|
|
@@ -16708,7 +16708,7 @@ let __tla = Promise.all([
|
|
|
16708
16708
|
(0, import_jsx_runtime.jsx)(MetadataRow, {
|
|
16709
16709
|
label: "External Type",
|
|
16710
16710
|
value: (0, import_jsx_runtime.jsx)("code", {
|
|
16711
|
-
className: "text-xs bg-
|
|
16711
|
+
className: "text-xs bg-(--slate-4) px-1 rounded",
|
|
16712
16712
|
children: e.external_type
|
|
16713
16713
|
})
|
|
16714
16714
|
})
|
|
@@ -16724,16 +16724,16 @@ let __tla = Promise.all([
|
|
|
16724
16724
|
}, renderDatabaseInfo = (e) => {
|
|
16725
16725
|
let t = (0, import_jsx_runtime.jsx)(Badge, {
|
|
16726
16726
|
variant: "outline",
|
|
16727
|
-
className: "text-xs bg-
|
|
16727
|
+
className: "text-xs bg-(--blue-4) text-(--blue-11)",
|
|
16728
16728
|
children: e.dialect
|
|
16729
16729
|
}), n = e.schemas.map((e2) => (0, import_jsx_runtime.jsxs)("div", {
|
|
16730
|
-
className: "flex items-center justify-between text-xs rounded hover:bg-
|
|
16730
|
+
className: "flex items-center justify-between text-xs rounded hover:bg-(--slate-3)",
|
|
16731
16731
|
children: [
|
|
16732
16732
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
16733
16733
|
className: "flex items-center gap-2",
|
|
16734
16734
|
children: [
|
|
16735
16735
|
(0, import_jsx_runtime.jsx)(Layers, {
|
|
16736
|
-
className: "w-3 h-3 text-
|
|
16736
|
+
className: "w-3 h-3 text-(--slate-9)"
|
|
16737
16737
|
}),
|
|
16738
16738
|
(0, import_jsx_runtime.jsx)("span", {
|
|
16739
16739
|
children: e2.name
|
|
@@ -16756,7 +16756,7 @@ let __tla = Promise.all([
|
|
|
16756
16756
|
children: [
|
|
16757
16757
|
(0, import_jsx_runtime.jsx)(SectionHeader, {
|
|
16758
16758
|
icon: (0, import_jsx_runtime.jsx)(Database, {
|
|
16759
|
-
className: "w-4 h-4 text-
|
|
16759
|
+
className: "w-4 h-4 text-(--blue-9)"
|
|
16760
16760
|
}),
|
|
16761
16761
|
title: e.name,
|
|
16762
16762
|
badge: t
|
|
@@ -16774,7 +16774,7 @@ let __tla = Promise.all([
|
|
|
16774
16774
|
e.engine && (0, import_jsx_runtime.jsx)(MetadataRow, {
|
|
16775
16775
|
label: "Engine",
|
|
16776
16776
|
value: (0, import_jsx_runtime.jsx)("code", {
|
|
16777
|
-
className: "text-xs bg-
|
|
16777
|
+
className: "text-xs bg-(--slate-4) px-1 rounded",
|
|
16778
16778
|
children: e.engine
|
|
16779
16779
|
})
|
|
16780
16780
|
})
|
|
@@ -16784,7 +16784,7 @@ let __tla = Promise.all([
|
|
|
16784
16784
|
className: "py-2",
|
|
16785
16785
|
children: (0, import_jsx_runtime.jsx)(StatisticItem, {
|
|
16786
16786
|
icon: (0, import_jsx_runtime.jsx)(Layers, {
|
|
16787
|
-
className: "w-3 h-3 text-
|
|
16787
|
+
className: "w-3 h-3 text-(--slate-9)"
|
|
16788
16788
|
}),
|
|
16789
16789
|
text: `${e.schemas.length} schema${e.schemas.length === 1 ? "" : "s"}`
|
|
16790
16790
|
})
|
|
@@ -16800,18 +16800,18 @@ let __tla = Promise.all([
|
|
|
16800
16800
|
}, renderSchemaInfo = (e) => {
|
|
16801
16801
|
let t = (0, import_jsx_runtime.jsx)(Badge, {
|
|
16802
16802
|
variant: "outline",
|
|
16803
|
-
className: "text-xs bg-
|
|
16803
|
+
className: "text-xs bg-(--green-4) text-(--green-11)",
|
|
16804
16804
|
children: "Schema"
|
|
16805
16805
|
}), n = e.tables.map((e2) => (0, import_jsx_runtime.jsxs)("div", {
|
|
16806
|
-
className: "flex items-center justify-between text-xs rounded hover:bg-
|
|
16806
|
+
className: "flex items-center justify-between text-xs rounded hover:bg-(--slate-3)",
|
|
16807
16807
|
children: [
|
|
16808
16808
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
16809
16809
|
className: "flex items-center gap-2",
|
|
16810
16810
|
children: [
|
|
16811
16811
|
e2.type === "view" ? (0, import_jsx_runtime.jsx)(Eye, {
|
|
16812
|
-
className: "w-3 h-3 text-
|
|
16812
|
+
className: "w-3 h-3 text-(--blue-9)"
|
|
16813
16813
|
}) : (0, import_jsx_runtime.jsx)(Table2, {
|
|
16814
|
-
className: "w-3 h-3 text-
|
|
16814
|
+
className: "w-3 h-3 text-(--green-9)"
|
|
16815
16815
|
}),
|
|
16816
16816
|
(0, import_jsx_runtime.jsx)("span", {
|
|
16817
16817
|
children: e2.name
|
|
@@ -16820,7 +16820,7 @@ let __tla = Promise.all([
|
|
|
16820
16820
|
}),
|
|
16821
16821
|
(0, import_jsx_runtime.jsx)(Badge, {
|
|
16822
16822
|
variant: "outline",
|
|
16823
|
-
className: `text-xs ${e2.type === "view" ? "bg-
|
|
16823
|
+
className: `text-xs ${e2.type === "view" ? "bg-(--blue-4) text-(--blue-11)" : "bg-(--green-4) text-(--green-11)"}`,
|
|
16824
16824
|
children: e2.type
|
|
16825
16825
|
})
|
|
16826
16826
|
]
|
|
@@ -16830,7 +16830,7 @@ let __tla = Promise.all([
|
|
|
16830
16830
|
children: [
|
|
16831
16831
|
(0, import_jsx_runtime.jsx)(SectionHeader, {
|
|
16832
16832
|
icon: (0, import_jsx_runtime.jsx)(Layers, {
|
|
16833
|
-
className: "w-4 h-4 text-
|
|
16833
|
+
className: "w-4 h-4 text-(--green-9)"
|
|
16834
16834
|
}),
|
|
16835
16835
|
title: e.name,
|
|
16836
16836
|
badge: t
|
|
@@ -16839,7 +16839,7 @@ let __tla = Promise.all([
|
|
|
16839
16839
|
className: "py-2",
|
|
16840
16840
|
children: (0, import_jsx_runtime.jsx)(StatisticItem, {
|
|
16841
16841
|
icon: (0, import_jsx_runtime.jsx)(Table2, {
|
|
16842
|
-
className: "w-3 h-3 text-
|
|
16842
|
+
className: "w-3 h-3 text-(--slate-9)"
|
|
16843
16843
|
}),
|
|
16844
16844
|
text: `${e.tables.length} table${e.tables.length === 1 ? "" : "s"}`
|
|
16845
16845
|
})
|
|
@@ -16865,7 +16865,7 @@ let __tla = Promise.all([
|
|
|
16865
16865
|
className: "flex items-center gap-2 ml-4",
|
|
16866
16866
|
children: [
|
|
16867
16867
|
(0, import_jsx_runtime.jsx)(Table2, {
|
|
16868
|
-
className: "w-3 h-3 text-
|
|
16868
|
+
className: "w-3 h-3 text-(--green-9)"
|
|
16869
16869
|
}),
|
|
16870
16870
|
(0, import_jsx_runtime.jsx)("span", {
|
|
16871
16871
|
className: "text-xs",
|
|
@@ -16875,10 +16875,10 @@ let __tla = Promise.all([
|
|
|
16875
16875
|
}, e2.name))), (0, import_jsx_runtime.jsxs)("div", {
|
|
16876
16876
|
children: [
|
|
16877
16877
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
16878
|
-
className: "flex items-center gap-2 text-xs rounded hover:bg-
|
|
16878
|
+
className: "flex items-center gap-2 text-xs rounded hover:bg-(--slate-3) ml-2",
|
|
16879
16879
|
children: [
|
|
16880
16880
|
(0, import_jsx_runtime.jsx)(Layers, {
|
|
16881
|
-
className: "w-3 h-3 text-
|
|
16881
|
+
className: "w-3 h-3 text-(--slate-9)"
|
|
16882
16882
|
}),
|
|
16883
16883
|
(0, import_jsx_runtime.jsx)("span", {
|
|
16884
16884
|
children: t2.name
|
|
@@ -16909,7 +16909,7 @@ let __tla = Promise.all([
|
|
|
16909
16909
|
className: "flex items-center gap-2",
|
|
16910
16910
|
children: [
|
|
16911
16911
|
(0, import_jsx_runtime.jsx)(Database, {
|
|
16912
|
-
className: "w-3 h-3 text-
|
|
16912
|
+
className: "w-3 h-3 text-(--blue-9)"
|
|
16913
16913
|
}),
|
|
16914
16914
|
(0, import_jsx_runtime.jsx)("span", {
|
|
16915
16915
|
className: "text-xs",
|
|
@@ -16930,7 +16930,7 @@ let __tla = Promise.all([
|
|
|
16930
16930
|
className: "flex items-center gap-2",
|
|
16931
16931
|
children: [
|
|
16932
16932
|
(0, import_jsx_runtime.jsx)(Table2, {
|
|
16933
|
-
className: "w-3 h-3 text-
|
|
16933
|
+
className: "w-3 h-3 text-(--blue-9)"
|
|
16934
16934
|
}),
|
|
16935
16935
|
(0, import_jsx_runtime.jsx)("span", {
|
|
16936
16936
|
className: "text-xs",
|
|
@@ -16943,7 +16943,7 @@ let __tla = Promise.all([
|
|
|
16943
16943
|
children: [
|
|
16944
16944
|
(0, import_jsx_runtime.jsx)(SectionHeader, {
|
|
16945
16945
|
icon: (0, import_jsx_runtime.jsx)(Cog, {
|
|
16946
|
-
className: "w-4 h-4 text-
|
|
16946
|
+
className: "w-4 h-4 text-(--purple-9)"
|
|
16947
16947
|
}),
|
|
16948
16948
|
title: o
|
|
16949
16949
|
}),
|
|
@@ -16961,7 +16961,7 @@ let __tla = Promise.all([
|
|
|
16961
16961
|
label: "Source",
|
|
16962
16962
|
value: (0, import_jsx_runtime.jsx)(Badge, {
|
|
16963
16963
|
variant: "outline",
|
|
16964
|
-
className: "text-xs bg-
|
|
16964
|
+
className: "text-xs bg-(--green-4) text-(--green-11)",
|
|
16965
16965
|
children: e.source
|
|
16966
16966
|
})
|
|
16967
16967
|
})
|
|
@@ -16972,13 +16972,13 @@ let __tla = Promise.all([
|
|
|
16972
16972
|
children: [
|
|
16973
16973
|
(0, import_jsx_runtime.jsx)(StatisticItem, {
|
|
16974
16974
|
icon: (0, import_jsx_runtime.jsx)(Database, {
|
|
16975
|
-
className: "w-3 h-3 text-
|
|
16975
|
+
className: "w-3 h-3 text-(--slate-9)"
|
|
16976
16976
|
}),
|
|
16977
16977
|
text: `${n} ${databasesText.pluralize(n)}`
|
|
16978
16978
|
}),
|
|
16979
16979
|
(0, import_jsx_runtime.jsx)(StatisticItem, {
|
|
16980
16980
|
icon: (0, import_jsx_runtime.jsx)(Layers, {
|
|
16981
|
-
className: "w-3 h-3 text-
|
|
16981
|
+
className: "w-3 h-3 text-(--slate-9)"
|
|
16982
16982
|
}),
|
|
16983
16983
|
text: `${r} ${schemasText.pluralize(r)}`
|
|
16984
16984
|
})
|
|
@@ -17000,17 +17000,17 @@ let __tla = Promise.all([
|
|
|
17000
17000
|
children: [
|
|
17001
17001
|
(0, import_jsx_runtime.jsx)(Info, {
|
|
17002
17002
|
size: 10,
|
|
17003
|
-
className: "mt-1 text-
|
|
17003
|
+
className: "mt-1 text-(--slate-10) shrink-0"
|
|
17004
17004
|
}),
|
|
17005
17005
|
(0, import_jsx_runtime.jsxs)("span", {
|
|
17006
|
-
className: "text-xs text-
|
|
17006
|
+
className: "text-xs text-(--slate-11)",
|
|
17007
17007
|
children: [
|
|
17008
17008
|
"No ",
|
|
17009
17009
|
e,
|
|
17010
17010
|
" information available.",
|
|
17011
17011
|
" \n",
|
|
17012
17012
|
(0, import_jsx_runtime.jsx)("span", {
|
|
17013
|
-
className: "text-
|
|
17013
|
+
className: "text-(--blue-10)",
|
|
17014
17014
|
children: "Introspect to see more details."
|
|
17015
17015
|
})
|
|
17016
17016
|
]
|
|
@@ -28128,7 +28128,7 @@ ${n.sqlString}
|
|
|
28128
28128
|
hasConsoleOutput: (o == null ? void 0 : o.consoleOutputs) != null
|
|
28129
28129
|
};
|
|
28130
28130
|
}
|
|
28131
|
-
LazyAnyLanguageCodeMirror = (0, import_react.lazy)(() => import("./any-language-editor-
|
|
28131
|
+
LazyAnyLanguageCodeMirror = (0, import_react.lazy)(() => import("./any-language-editor-DN1R-1KZ.js"));
|
|
28132
28132
|
var import_compiler_runtime$1 = require_compiler_runtime(), extensions = [
|
|
28133
28133
|
EditorView.lineWrapping
|
|
28134
28134
|
];
|
|
@@ -3,18 +3,18 @@ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { en
|
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
4
|
var _a;
|
|
5
5
|
import { s as __toESM } from "./chunk-BNovOVIE.js";
|
|
6
|
-
import { _ as Logger, d as createSlot, g as cn, h as Events, m as useComposedRefs, p as composeRefs } from "./button-
|
|
6
|
+
import { _ as Logger, d as createSlot, g as cn, h as Events, m as useComposedRefs, p as composeRefs } from "./button-BacYv-bE.js";
|
|
7
7
|
import { t as require_react } from "./react-DA-nE2FX.js";
|
|
8
8
|
import { t as require_compiler_runtime } from "./compiler-runtime-CEbnTgxf.js";
|
|
9
|
-
import { a as createPopperScope, i as Root2$1, n as Arrow, r as Content, t as Anchor, u as createLucideIcon } from "./dist
|
|
10
|
-
import { t as Check } from "./check-
|
|
11
|
-
import { E as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7, F as createCollection, I as X, L as ChevronUp, P as useDirection, R as ChevronDown, T as $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5, _ as menuControlVariants, b as menuSeparatorVariants, g as menuControlCheckVariants, h as menuContentCommon, k as $b5e257d569688ac6$export$619500959fc48b26, m as MenuShortcut, v as menuItemVariants, w as $a916eb452884faea$export$b7a616150fdb9f44, x as menuSubTriggerVariants, y as menuLabelVariants } from "./strings-
|
|
9
|
+
import { a as createPopperScope, i as Root2$1, n as Arrow, r as Content, t as Anchor, u as createLucideIcon } from "./dist--2Bqjvs0.js";
|
|
10
|
+
import { t as Check } from "./check-C9OoNtR4.js";
|
|
11
|
+
import { E as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7, F as createCollection, I as X, L as ChevronUp, P as useDirection, R as ChevronDown, T as $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5, _ as menuControlVariants, b as menuSeparatorVariants, g as menuControlCheckVariants, h as menuContentCommon, k as $b5e257d569688ac6$export$619500959fc48b26, m as MenuShortcut, v as menuItemVariants, w as $a916eb452884faea$export$b7a616150fdb9f44, x as menuSubTriggerVariants, y as menuLabelVariants } from "./strings-Dq_j3Rxw.js";
|
|
12
12
|
import { n as clsx_default } from "./clsx-CIWA5tNO.js";
|
|
13
13
|
import { t as require_react_dom } from "./react-dom-BTJzcVJ9.js";
|
|
14
14
|
import { t as require_jsx_runtime } from "./jsx-runtime-DebpN0FN.js";
|
|
15
|
-
import { Q as withSmartCollisionBoundary, Y as MAX_HEIGHT_OFFSET, Z as withFullScreenAsRoot, _t as createContextScope, at as Portal, ct as DismissableLayer, dt as useId, et as StyleNamespace, ft as Presence, ht as composeEventHandlers, it as useFocusGuards, nt as Combination_default, ot as FocusScope, pt as useControllableState, tt as hideOthers, ut as useCallbackRef, vt as Primitive, yt as dispatchDiscreteCustomEvent } from "./zod-
|
|
15
|
+
import { Q as withSmartCollisionBoundary, Y as MAX_HEIGHT_OFFSET, Z as withFullScreenAsRoot, _t as createContextScope, at as Portal, ct as DismissableLayer, dt as useId, et as StyleNamespace, ft as Presence, ht as composeEventHandlers, it as useFocusGuards, nt as Combination_default, ot as FocusScope, pt as useControllableState, tt as hideOthers, ut as useCallbackRef, vt as Primitive, yt as dispatchDiscreteCustomEvent } from "./zod-CijjQh4u.js";
|
|
16
16
|
import { i as debounce_default } from "./constants-T20xxyNf.js";
|
|
17
|
-
import { T as useEvent_default } from "./useTheme-
|
|
17
|
+
import { T as useEvent_default } from "./useTheme-BrYvK-_A.js";
|
|
18
18
|
import { t as memoizeLastValue } from "./once-DPuqGUeo.js";
|
|
19
19
|
var ChevronRight = createLucideIcon("chevron-right", [["path", {
|
|
20
20
|
d: "m9 18 6-6-6-6",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { s as __toESM } from "./chunk-BNovOVIE.js";
|
|
2
|
-
import { g as cn, r as cva } from "./button-
|
|
2
|
+
import { g as cn, r as cva } from "./button-BacYv-bE.js";
|
|
3
3
|
import { t as require_react } from "./react-DA-nE2FX.js";
|
|
4
4
|
import { t as require_compiler_runtime } from "./compiler-runtime-CEbnTgxf.js";
|
|
5
5
|
import { t as require_jsx_runtime } from "./jsx-runtime-DebpN0FN.js";
|
|
6
|
-
import { vt as Primitive } from "./zod-
|
|
6
|
+
import { vt as Primitive } from "./zod-CijjQh4u.js";
|
|
7
7
|
var import_react = /* @__PURE__ */ __toESM(require_react(), 1), import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime(), 1), NAME = "Label", Label$1 = import_react.forwardRef((e, c) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.label, {
|
|
8
8
|
...e,
|
|
9
9
|
ref: c,
|