@marimo-team/islands 0.21.1-dev94 → 0.21.2-dev0

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.
Files changed (55) hide show
  1. package/dist/{Combination-Dk6JxauT.js → Combination-BBPQRrDo.js} +1 -1
  2. package/dist/{ConnectedDataExplorerComponent-Bh11efrC.js → ConnectedDataExplorerComponent-D0GoOd_c.js} +14 -13
  3. package/dist/{any-language-editor-BIj11a2e.js → any-language-editor-DlsjUw_l.js} +4 -4
  4. package/dist/{button-DQpBib29.js → button-BKkuUpZh.js} +8 -0
  5. package/dist/{check-DpqPQmzz.js → check-Diwc5emq.js} +1 -1
  6. package/dist/{copy-BkBF0Xgk.js → copy-DIK6DiIA.js} +2 -2
  7. package/dist/{dist-WIWVvdBh.js → dist-C0Rnbr-_.js} +2 -2
  8. package/dist/{error-banner-BctofTCP.js → error-banner-Dmi5ujan.js} +2 -2
  9. package/dist/{esm-BBkPJL8N.js → esm-BLobyqMs.js} +8 -7
  10. package/dist/{glide-data-editor-DqxJOnJk.js → glide-data-editor-pZyd9UJ_.js} +6 -6
  11. package/dist/{label-BLDcDYdI.js → label-BbpGrh4j.js} +4 -4
  12. package/dist/{loader-DsE3MiYo.js → loader-CABJs6GU.js} +12 -3
  13. package/dist/main.js +186 -127
  14. package/dist/{mermaid-DkdSmFY8.js → mermaid-CrKqsE2j.js} +5 -5
  15. package/dist/{slides-component-DwvL_HJi.js → slides-component-GkilRW21.js} +2 -2
  16. package/dist/{spec-CbYkiXG3.js → spec-Bfvf9Hre.js} +4 -4
  17. package/dist/style.css +1 -1
  18. package/dist/{tooltip-SPkubVH3.js → tooltip-CKG75XQa.js} +3 -3
  19. package/dist/{types-0FB-N7AA.js → types-CGc7peZV.js} +6 -6
  20. package/dist/{useAsyncData-D7-oahg5.js → useAsyncData-CEjJxwFB.js} +1 -1
  21. package/dist/{useDeepCompareMemoize-DLS-bHHT.js → useDeepCompareMemoize-BWUwfh37.js} +4 -4
  22. package/dist/{useIframeCapabilities-DFGZKWkO.js → useIframeCapabilities-OQaMKgZl.js} +1 -1
  23. package/dist/{useTheme-D0rdoMBF.js → useTheme-CPybHVFN.js} +2 -2
  24. package/dist/{vega-component-CnO3mkFC.js → vega-component-CuPTCRp5.js} +13 -10
  25. package/package.json +1 -1
  26. package/src/components/data-table/charts/lazy-chart.tsx +2 -0
  27. package/src/components/data-table/column-summary/column-summary.tsx +1 -0
  28. package/src/components/datasources/column-preview.tsx +1 -0
  29. package/src/components/editor/Output.tsx +2 -0
  30. package/src/components/editor/actions/useCellActionButton.tsx +38 -29
  31. package/src/components/editor/cell/code/cell-editor.tsx +9 -0
  32. package/src/components/editor/chrome/panels/context-aware-panel/context-aware-panel.tsx +6 -0
  33. package/src/components/editor/chrome/wrapper/__tests__/utils.test.ts +35 -0
  34. package/src/components/editor/chrome/wrapper/app-chrome.tsx +12 -14
  35. package/src/components/editor/chrome/wrapper/utils.ts +5 -1
  36. package/src/components/editor/header/status.tsx +19 -11
  37. package/src/components/editor/renderers/grid-layout/grid-layout.tsx +10 -3
  38. package/src/core/cells/cells.ts +6 -0
  39. package/src/core/cells/utils.ts +1 -0
  40. package/src/core/codemirror/__tests__/setup.test.ts +1 -0
  41. package/src/core/codemirror/cells/state.ts +1 -0
  42. package/src/core/codemirror/extensions.ts +20 -0
  43. package/src/core/codemirror/language/utils.ts +16 -1
  44. package/src/core/codemirror/reactive-references/__tests__/analyzer.test.ts +54 -0
  45. package/src/core/codemirror/reactive-references/analyzer.ts +14 -0
  46. package/src/core/dom/outline.ts +1 -1
  47. package/src/core/hotkeys/hotkeys.ts +8 -0
  48. package/src/css/md.css +4 -0
  49. package/src/plugins/core/sanitize-html.ts +50 -0
  50. package/src/plugins/core/sanitize.ts +3 -49
  51. package/src/plugins/impl/data-explorer/ConnectedDataExplorerComponent.tsx +6 -3
  52. package/src/plugins/impl/vega/__tests__/utils.test.ts +36 -0
  53. package/src/plugins/impl/vega/utils.ts +14 -0
  54. package/src/plugins/impl/vega/vega-component.tsx +6 -7
  55. package/src/plugins/impl/vega/vega.css +1 -1
@@ -1,7 +1,7 @@
1
1
  import { r as __export, s as __toESM } from "./chunk-BNovOVIE.js";
2
2
  import { t as require_react } from "./react-Bs6Z0kvn.js";
3
3
  import { t as require_compiler_runtime } from "./compiler-runtime-B_OLMU9S.js";
4
- import { f as useEventListener, m as useComposedRefs, p as composeRefs } from "./button-DQpBib29.js";
4
+ import { f as useEventListener, m as useComposedRefs, p as composeRefs } from "./button-BKkuUpZh.js";
5
5
  import { t as require_jsx_runtime } from "./jsx-runtime-CTBg5pdT.js";
6
6
  import { t as require_react_dom } from "./react-dom-CqtLRVZP.js";
7
7
  typeof window < "u" && window.document && window.document.createElement;
@@ -1,21 +1,21 @@
1
1
  import { a as __toCommonJS, n as __esmMin, r as __export, s as __toESM, t as __commonJSMin } from "./chunk-BNovOVIE.js";
2
2
  import { t as require_react } from "./react-Bs6Z0kvn.js";
3
3
  import { t as require_compiler_runtime } from "./compiler-runtime-B_OLMU9S.js";
4
- import { l as createLucideIcon } from "./dist-WIWVvdBh.js";
5
- import { A as useOnMount, F as $896ba0a80a8f4d36$export$85fd5fdf27bacc79, H as ListFilter, K as Calendar, M as Badge, N as createReducerAndAtoms, P as startCase_default, R as Type, U as Hash, V as SquareFunction, t as augmentSpecWithData, z as ToggleLeft } from "./spec-CbYkiXG3.js";
6
- import { A as $a916eb452884faea$export$b7a616150fdb9f44, a as SelectGroup, c as SelectSeparator, i as SelectContent, l as SelectTrigger, o as SelectItem, r as Select, s as SelectLabel, t as Label, u as SelectValue } from "./label-BLDcDYdI.js";
7
- import { d as Objects, g as Logger, t as Button, y as cn } from "./button-DQpBib29.js";
8
- import "./Combination-Dk6JxauT.js";
4
+ import { l as createLucideIcon } from "./dist-C0Rnbr-_.js";
5
+ import { A as useOnMount, F as $896ba0a80a8f4d36$export$85fd5fdf27bacc79, H as ListFilter, K as Calendar, M as Badge, N as createReducerAndAtoms, P as startCase_default, R as Type, U as Hash, V as SquareFunction, t as augmentSpecWithData, z as ToggleLeft } from "./spec-Bfvf9Hre.js";
6
+ import { A as $a916eb452884faea$export$b7a616150fdb9f44, a as SelectGroup, c as SelectSeparator, i as SelectContent, l as SelectTrigger, o as SelectItem, r as Select, s as SelectLabel, t as Label, u as SelectValue } from "./label-BbpGrh4j.js";
7
+ import { d as Objects, g as Logger, t as Button, y as cn } from "./button-BKkuUpZh.js";
8
+ import "./Combination-BBPQRrDo.js";
9
9
  import { t as require_jsx_runtime } from "./jsx-runtime-CTBg5pdT.js";
10
10
  import "./react-dom-CqtLRVZP.js";
11
- import { t as Tooltip } from "./tooltip-SPkubVH3.js";
11
+ import { t as Tooltip } from "./tooltip-CKG75XQa.js";
12
12
  import { t as isString_default } from "./isString-D-vNYDBA.js";
13
- import { b as createStore, g as useAtomValue, m as Provider, n as useTheme, y as atom } from "./useTheme-D0rdoMBF.js";
14
- import { a as tooltipHandler, n as vegaLoadData } from "./loader-DsE3MiYo.js";
13
+ import { b as createStore, g as useAtomValue, m as Provider, n as useTheme, y as atom } from "./useTheme-CPybHVFN.js";
14
+ import { a as getContainerWidth, n as vegaLoadData, s as tooltipHandler } from "./loader-CABJs6GU.js";
15
15
  import { t as invariant } from "./invariant-D9QLJ4SZ.js";
16
- import { n as ErrorBanner } from "./error-banner-BctofTCP.js";
16
+ import { n as ErrorBanner } from "./error-banner-Dmi5ujan.js";
17
17
  import "./vega-loader.browser-CQ-lnUkI.js";
18
- import { t as useAsyncData } from "./useAsyncData-D7-oahg5.js";
18
+ import { t as useAsyncData } from "./useAsyncData-CEjJxwFB.js";
19
19
  import { n as q, r as contains } from "./react-vega-C6kwcd86.js";
20
20
  import "./defaultLocale-Bklbu-Tp.js";
21
21
  import "./defaultLocale-CfQ4kBaV.js";
@@ -6211,11 +6211,12 @@ const DataExplorerComponent = (e3) => {
6211
6211
  let P = j, F;
6212
6212
  p[11] !== D || p[12] !== A || p[13] !== k || p[14] !== E ? (F = () => {
6213
6213
  if (!A) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ColumnSummary, { schema: k });
6214
- let e4 = A.spec, p2 = makeResponsive(e4), m2 = augmentSpecWithData(p2, D);
6214
+ let e4 = A.spec, p2 = augmentSpecWithData(makeResponsive(e4), D);
6215
6215
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
6216
- className: cn("flex overflow-y-auto justify-center items-center flex-1 w-[90%]", p2.width === "container" && "vega-container-width"),
6216
+ className: cn("flex overflow-y-auto justify-center items-center flex-1 w-[90%]"),
6217
6217
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(q, {
6218
- spec: m2,
6218
+ "data-container-width": getContainerWidth(p2),
6219
+ spec: p2,
6219
6220
  options: chartOptions(E)
6220
6221
  })
6221
6222
  });
@@ -1,18 +1,18 @@
1
1
  import { s as __toESM } from "./chunk-BNovOVIE.js";
2
2
  import { t as require_react } from "./react-Bs6Z0kvn.js";
3
3
  import "./compiler-runtime-B_OLMU9S.js";
4
- import { g as Logger } from "./button-DQpBib29.js";
5
- import "./Combination-Dk6JxauT.js";
4
+ import { g as Logger } from "./button-BKkuUpZh.js";
5
+ import "./Combination-BBPQRrDo.js";
6
6
  import { t as require_jsx_runtime } from "./jsx-runtime-CTBg5pdT.js";
7
7
  import "./react-dom-CqtLRVZP.js";
8
- import { d as CopyClipboardIcon, n as loadLanguage, r as esm_default, t as langs } from "./esm-BBkPJL8N.js";
8
+ import { f as CopyClipboardIcon, n as loadLanguage, r as esm_default, t as langs } from "./esm-BLobyqMs.js";
9
9
  import "./dist-DOoqn-VL.js";
10
10
  import "./dist-BGZ7TWS9.js";
11
11
  import "./dist-BpMlUdNO.js";
12
12
  import "./dist-Ux6dL_VB.js";
13
13
  import "./dist-D4gcY469.js";
14
14
  import "./dist-C4K7pumm.js";
15
- import { n as ErrorBanner } from "./error-banner-BctofTCP.js";
15
+ import { n as ErrorBanner } from "./error-banner-Dmi5ujan.js";
16
16
  import "./dist-lNe4i1Nm.js";
17
17
  import "./dist-D5NMgbbv.js";
18
18
  import "./dist-B9EjSb9T.js";
@@ -1538,6 +1538,14 @@ var DEFAULT_HOT_KEY = {
1538
1538
  group: "Editing",
1539
1539
  key: "Mod-Shift-m"
1540
1540
  },
1541
+ "cell.viewAsSQL": {
1542
+ name: "Toggle SQL",
1543
+ group: "Editing",
1544
+ key: {
1545
+ windows: "Alt-Shift-l",
1546
+ main: "Mod-Shift-l"
1547
+ }
1548
+ },
1541
1549
  "cell.complete": {
1542
1550
  name: "Code completion",
1543
1551
  group: "Editing",
@@ -1,4 +1,4 @@
1
- import { l as createLucideIcon } from "./dist-WIWVvdBh.js";
1
+ import { l as createLucideIcon } from "./dist-C0Rnbr-_.js";
2
2
  var Check = createLucideIcon("check", [["path", {
3
3
  d: "M20 6 9 17l-5-5",
4
4
  key: "1gmf2c"
@@ -1,8 +1,8 @@
1
1
  import { s as __toESM } from "./chunk-BNovOVIE.js";
2
2
  import { t as require_react } from "./react-Bs6Z0kvn.js";
3
3
  import { t as require_compiler_runtime } from "./compiler-runtime-B_OLMU9S.js";
4
- import { l as createLucideIcon } from "./dist-WIWVvdBh.js";
5
- import { g as Logger } from "./button-DQpBib29.js";
4
+ import { l as createLucideIcon } from "./dist-C0Rnbr-_.js";
5
+ import { g as Logger } from "./button-BKkuUpZh.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,7 +1,7 @@
1
1
  import { s as __toESM } from "./chunk-BNovOVIE.js";
2
2
  import { t as require_react } from "./react-Bs6Z0kvn.js";
3
- import { m as useComposedRefs } from "./button-DQpBib29.js";
4
- import { _t as createContextScope, dt as useCallbackRef, ft as Primitive, lt as useLayoutEffect2 } from "./Combination-Dk6JxauT.js";
3
+ import { m as useComposedRefs } from "./button-BKkuUpZh.js";
4
+ import { _t as createContextScope, dt as useCallbackRef, ft as Primitive, lt as useLayoutEffect2 } from "./Combination-BBPQRrDo.js";
5
5
  import { t as require_jsx_runtime } from "./jsx-runtime-CTBg5pdT.js";
6
6
  import { t as require_react_dom } from "./react-dom-CqtLRVZP.js";
7
7
  /**
@@ -1,8 +1,8 @@
1
1
  import { s as __toESM } from "./chunk-BNovOVIE.js";
2
2
  import { t as require_react } from "./react-Bs6Z0kvn.js";
3
3
  import { t as require_compiler_runtime } from "./compiler-runtime-B_OLMU9S.js";
4
- import { a as cva, g as Logger, m as useComposedRefs, n as buttonVariants, y as cn } from "./button-DQpBib29.js";
5
- import { H as string, R as object, _t as createContextScope, at as useControllableState, ct as useId, ft as Primitive, gt as createContext2, ht as createSlottable, i as useFocusGuards, it as StyleNamespace, mt as createSlot, n as hideOthers, ot as Presence, r as FocusScope, st as Portal, t as Combination_default, tt as withFullScreenAsRoot, ut as DismissableLayer, vt as composeEventHandlers } from "./Combination-Dk6JxauT.js";
4
+ import { a as cva, g as Logger, m as useComposedRefs, n as buttonVariants, y as cn } from "./button-BKkuUpZh.js";
5
+ import { H as string, R as object, _t as createContextScope, at as useControllableState, ct as useId, ft as Primitive, gt as createContext2, ht as createSlottable, i as useFocusGuards, it as StyleNamespace, mt as createSlot, n as hideOthers, ot as Presence, r as FocusScope, st as Portal, t as Combination_default, tt as withFullScreenAsRoot, ut as DismissableLayer, vt as composeEventHandlers } from "./Combination-BBPQRrDo.js";
6
6
  import { t as require_jsx_runtime } from "./jsx-runtime-CTBg5pdT.js";
7
7
  var DetailsSchema = object({ detail: string() }), ErrorSchema = object({ error: string() });
8
8
  function prettyError(t) {
@@ -1,11 +1,11 @@
1
1
  import { s as __toESM } from "./chunk-BNovOVIE.js";
2
2
  import { t as require_react } from "./react-Bs6Z0kvn.js";
3
3
  import { t as require_compiler_runtime } from "./compiler-runtime-B_OLMU9S.js";
4
- import { n as Copy, r as toast, t as copyToClipboard } from "./copy-BkBF0Xgk.js";
5
- import { t as Check } from "./check-DpqPQmzz.js";
6
- import { h as Events, y as cn } from "./button-DQpBib29.js";
4
+ import { n as Copy, r as toast, t as copyToClipboard } from "./copy-DIK6DiIA.js";
5
+ import { t as Check } from "./check-Diwc5emq.js";
6
+ import { h as Events, y as cn } from "./button-BKkuUpZh.js";
7
7
  import { t as require_jsx_runtime } from "./jsx-runtime-CTBg5pdT.js";
8
- import { t as Tooltip } from "./tooltip-SPkubVH3.js";
8
+ import { t as Tooltip } from "./tooltip-CKG75XQa.js";
9
9
  import { $ as ViewPlugin, A as indentString, At as Prec, B as tags, Bt as combineConfig, C as foldKeymap, Ct as ChangeSet, D as getIndentation, Dt as EditorState, E as getIndentUnit, Et as EditorSelection, F as syntaxHighlighting, Ft as StateField, H as NodeProp, Ht as findClusterBreak, I as syntaxTree, It as Text, J as parseMixed, Lt as Transaction, Mt as RangeSetBuilder, N as matchBrackets, O as indentNodeProp, Ot as Facet, Pt as StateEffect, R as Tag, Rt as codePointAt, S as foldInside, St as ChangeDesc, Ut as fromCodePoint, Vt as countColumn, X as Direction, Y as Decoration, Z as EditorView, _t as showDialog, a as HighlightStyle, bt as crelt, ct as highlightActiveLineGutter, dt as keymap, et as WidgetType, f as StreamLanguage, ft as lineNumbers, g as defaultHighlightStyle, gt as runScopeHandlers, h as continuedIndent, ht as rectangularSelection, it as getPanel, j as indentUnit, jt as RangeSet, k as indentOnInput, lt as highlightSpecialChars, mt as placeholder, n as ExternalTokenizer, nt as drawSelection, o as IndentContext, p as bracketMatching, pt as logException, r as LRParser, rt as dropCursor, s as LRLanguage, st as highlightActiveLine, t as ContextTracker, tt as crosshairCursor, u as LanguageSupport, ut as hoverTooltip, v as delimitedIndent, vt as showPanel, w as foldNodeProp, wt as CharCategory, x as foldGutter, xt as Annotation, z as styleTags, zt as codePointSize } from "./dist-DOoqn-VL.js";
10
10
  import { a as closeBracketsKeymap, c as completionKeymap, f as snippetCompletion, i as closeBrackets, l as ifNotIn, r as autocompletion, s as completeFromList } from "./dist-CSEWGuDq.js";
11
11
  import { a as PLSQL, f as sql, l as StandardSQL, t as Cassandra } from "./dist-Bq5eYK43.js";
@@ -4374,13 +4374,14 @@ function loadLanguage(e6) {
4374
4374
  export {
4375
4375
  _extends as a,
4376
4376
  setDiagnostics as c,
4377
- CopyClipboardIcon as d,
4377
+ insertTab as d,
4378
+ CopyClipboardIcon as f,
4378
4379
  minimalSetup as i,
4379
- historyField as l,
4380
+ history as l,
4380
4381
  loadLanguage as n,
4381
4382
  forEachDiagnostic as o,
4382
4383
  esm_default as r,
4383
4384
  linter as s,
4384
4385
  langs as t,
4385
- insertTab as u
4386
+ historyField as u
4386
4387
  };
@@ -4,14 +4,14 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
4
4
  import { s as __toESM, t as __commonJSMin } from "./chunk-BNovOVIE.js";
5
5
  import { t as require_react } from "./react-Bs6Z0kvn.js";
6
6
  import { t as require_compiler_runtime } from "./compiler-runtime-B_OLMU9S.js";
7
- import { n as Copy, r as toast, t as copyToClipboard } from "./copy-BkBF0Xgk.js";
8
- import { O as logNever, i as SelectContent, l as SelectTrigger, o as SelectItem, r as Select, t as Label, u as SelectValue } from "./label-BLDcDYdI.js";
9
- import { H as ErrorBoundary, U as require_prop_types, _ as DropdownMenuSeparator, _n as Plus, _t as capitalize_default, b as DropdownMenuSubTrigger, d as DropdownMenu, f as DropdownMenuContent, g as DropdownMenuPortal, hn as Trash, i as Input, m as DropdownMenuItem, mt as marked, pt as useNonce, t as BulkEdit, v as DropdownMenuSub, vn as Pencil, y as DropdownMenuSubContent } from "./types-0FB-N7AA.js";
10
- import { g as Logger, h as Events, t as Button } from "./button-DQpBib29.js";
11
- import "./Combination-Dk6JxauT.js";
7
+ import { n as Copy, r as toast, t as copyToClipboard } from "./copy-DIK6DiIA.js";
8
+ import { O as logNever, i as SelectContent, l as SelectTrigger, o as SelectItem, r as Select, t as Label, u as SelectValue } from "./label-BbpGrh4j.js";
9
+ import { H as ErrorBoundary, U as require_prop_types, _ as DropdownMenuSeparator, _n as Plus, _t as capitalize_default, b as DropdownMenuSubTrigger, d as DropdownMenu, f as DropdownMenuContent, g as DropdownMenuPortal, hn as Trash, i as Input, m as DropdownMenuItem, mt as marked, pt as useNonce, t as BulkEdit, v as DropdownMenuSub, vn as Pencil, y as DropdownMenuSubContent } from "./types-CGc7peZV.js";
10
+ import { g as Logger, h as Events, t as Button } from "./button-BKkuUpZh.js";
11
+ import "./Combination-BBPQRrDo.js";
12
12
  import { t as require_jsx_runtime } from "./jsx-runtime-CTBg5pdT.js";
13
13
  import "./react-dom-CqtLRVZP.js";
14
- import { C as useEvent_default, n as useTheme } from "./useTheme-D0rdoMBF.js";
14
+ import { C as useEvent_default, n as useTheme } from "./useTheme-CPybHVFN.js";
15
15
  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-CKfwEZqH.js";
16
16
  import { t as styled_default } from "./dist-COpDrwi-.js";
17
17
  let GlideDataEditor, glide_data_editor_default;
@@ -1,10 +1,10 @@
1
1
  import { s as __toESM } from "./chunk-BNovOVIE.js";
2
2
  import { t as require_react } from "./react-Bs6Z0kvn.js";
3
3
  import { t as require_compiler_runtime } from "./compiler-runtime-B_OLMU9S.js";
4
- import { a as Content, i as Arrow, l as createLucideIcon, n as VISUALLY_HIDDEN_STYLES, o as Root2$1, r as Anchor, s as createPopperScope } from "./dist-WIWVvdBh.js";
5
- import { t as Check } from "./check-DpqPQmzz.js";
6
- import { a as cva, g as Logger, h as Events, i as createSlot, m as useComposedRefs, y as cn } from "./button-DQpBib29.js";
7
- import { _t as createContextScope, at as useControllableState, ct as useId, dt as useCallbackRef, ft as Primitive$1, i as useFocusGuards, it as StyleNamespace, lt as useLayoutEffect2, mt as createSlot$1, n as hideOthers, nt as withSmartCollisionBoundary, r as FocusScope, st as Portal, t as Combination_default, tt as withFullScreenAsRoot, ut as DismissableLayer, vt as composeEventHandlers } from "./Combination-Dk6JxauT.js";
4
+ import { a as Content, i as Arrow, l as createLucideIcon, n as VISUALLY_HIDDEN_STYLES, o as Root2$1, r as Anchor, s as createPopperScope } from "./dist-C0Rnbr-_.js";
5
+ import { t as Check } from "./check-Diwc5emq.js";
6
+ import { a as cva, g as Logger, h as Events, i as createSlot, m as useComposedRefs, y as cn } from "./button-BKkuUpZh.js";
7
+ import { _t as createContextScope, at as useControllableState, ct as useId, dt as useCallbackRef, ft as Primitive$1, i as useFocusGuards, it as StyleNamespace, lt as useLayoutEffect2, mt as createSlot$1, n as hideOthers, nt as withSmartCollisionBoundary, r as FocusScope, st as Portal, t as Combination_default, tt as withFullScreenAsRoot, ut as DismissableLayer, vt as composeEventHandlers } from "./Combination-BBPQRrDo.js";
8
8
  import { t as require_jsx_runtime } from "./jsx-runtime-CTBg5pdT.js";
9
9
  import { t as require_react_dom } from "./react-dom-CqtLRVZP.js";
10
10
  import { t as toString_default } from "./toString-DbIAWQpF.js";
@@ -2,7 +2,7 @@ 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
  var _a, _b, _c, _d, _e;
5
- import { d as Objects, g as Logger } from "./button-DQpBib29.js";
5
+ import { d as Objects, g as Logger } from "./button-BKkuUpZh.js";
6
6
  import { H as _baseGetTag_default, V as isObjectLike_default } from "./isArrayLikeObject-BrYl-ETg.js";
7
7
  import { St as isObject, a as loader, c as typeParsers$1, gt as isArray, o as read$1, wt as isString } from "./vega-loader.browser-CQ-lnUkI.js";
8
8
  var numberTag = "[object Number]";
@@ -169,7 +169,14 @@ var Handler = class {
169
169
  }
170
170
  };
171
171
  pkg.version;
172
- const tooltipHandler = new Handler(), MAGIC = Uint8Array.of(65, 82, 82, 79, 87, 49), Version = {
172
+ const tooltipHandler = new Handler();
173
+ function getContainerWidth(m2) {
174
+ if (typeof m2 == "object" && m2 && "width" in m2) return m2.width;
175
+ }
176
+ function getVegaFieldTypes(U) {
177
+ return !U || Object.keys(U).length === 0 ? "auto" : Objects.mapValues(U, (m2) => m2 === "date" || m2 === "time" ? "string" : m2 === "datetime" ? "date" : m2);
178
+ }
179
+ const MAGIC = Uint8Array.of(65, 82, 82, 79, 87, 49), Version = {
173
180
  V1: 0,
174
181
  V2: 1,
175
182
  V3: 2,
@@ -1422,9 +1429,11 @@ function getUniqueKey(m2, U) {
1422
1429
  return W;
1423
1430
  }
1424
1431
  export {
1425
- tooltipHandler as a,
1432
+ getContainerWidth as a,
1426
1433
  tableFromIPC as i,
1427
1434
  vegaLoadData as n,
1435
+ getVegaFieldTypes as o,
1428
1436
  createBatchedLoader as r,
1437
+ tooltipHandler as s,
1429
1438
  parseCsvData as t
1430
1439
  };