@malloy-publisher/sdk 0.9.1 → 0.9.2

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 (292) hide show
  1. package/dist/{Dashboard-H1kJlDFo.es.js → DashboardTile-BFcxdv7R.es.js} +15918 -17760
  2. package/dist/DashboardTile-sg8LjUk8.cjs.js +137 -0
  3. package/dist/RenderedResult-B48wAjM8.cjs.js +141 -0
  4. package/dist/{RenderedResult-BRgIgxWh.es.js → RenderedResult-CBLHr32C.es.js} +193 -183
  5. package/dist/{ServerProvider-Boxrv6Ym.es.js → ServerProvider-DCV8BUWD.es.js} +529 -521
  6. package/dist/ServerProvider-HRqT3w1C.cjs.js +1 -0
  7. package/dist/builder/index.cjs.js +146 -58
  8. package/dist/builder/index.es.js +9076 -6479
  9. package/dist/builder-entry.d.ts +4 -0
  10. package/dist/client/api.d.ts +77 -47
  11. package/dist/client/configuration.d.ts +1 -1
  12. package/dist/client/index.cjs.js +1 -1
  13. package/dist/client/index.d.ts +1 -1
  14. package/dist/client/index.es.js +84 -82
  15. package/dist/components/Dashboard/Dashboard.d.ts +8 -15
  16. package/dist/components/Dashboard/DashboardGrid.d.ts +23 -6
  17. package/dist/components/Dashboard/DashboardTile.d.ts +10 -1
  18. package/dist/components/Dashboard/DashboardView.d.ts +36 -0
  19. package/dist/components/Dashboard/TileCard.d.ts +15 -4
  20. package/dist/components/Dashboard/TileFilterTag.d.ts +12 -0
  21. package/dist/components/Dashboard/index.d.ts +3 -0
  22. package/dist/components/Dashboard/telemetry.d.ts +15 -3
  23. package/dist/components/DashboardBuilder/AddTileDialog.d.ts +8 -1
  24. package/dist/components/DashboardBuilder/BuilderToolbar.d.ts +16 -5
  25. package/dist/components/DashboardBuilder/ChartPicker.d.ts +29 -0
  26. package/dist/components/DashboardBuilder/DashboardBuilder.d.ts +48 -21
  27. package/dist/components/DashboardBuilder/DashboardEditor.d.ts +17 -4
  28. package/dist/components/DashboardBuilder/DiffDialog.d.ts +2 -10
  29. package/dist/components/DashboardBuilder/FilterDialog.d.ts +2 -2
  30. package/dist/components/DashboardBuilder/FilterStrip.d.ts +3 -1
  31. package/dist/components/DashboardBuilder/InlineMarkdown.d.ts +18 -0
  32. package/dist/components/DashboardBuilder/InlineText.d.ts +19 -0
  33. package/dist/components/DashboardBuilder/NotebookEditor.d.ts +15 -0
  34. package/dist/components/DashboardBuilder/SaveNotice.d.ts +27 -0
  35. package/dist/components/DashboardBuilder/SettingsPopover.d.ts +19 -7
  36. package/dist/components/DashboardBuilder/SourceViewPicker.d.ts +9 -0
  37. package/dist/components/DashboardBuilder/TextTileBody.d.ts +7 -0
  38. package/dist/components/DashboardBuilder/TileFrame.d.ts +14 -12
  39. package/dist/components/DashboardBuilder/TileMenu.d.ts +11 -3
  40. package/dist/components/DashboardBuilder/annotationText.d.ts +4 -0
  41. package/dist/components/DashboardBuilder/catalog.d.ts +4 -0
  42. package/dist/components/DashboardBuilder/changedTile.d.ts +7 -0
  43. package/dist/components/DashboardBuilder/chartLine.d.ts +33 -0
  44. package/dist/components/DashboardBuilder/controls.d.ts +2 -2
  45. package/dist/components/DashboardBuilder/document.d.ts +42 -26
  46. package/dist/components/DashboardBuilder/documentSession.d.ts +100 -0
  47. package/dist/components/DashboardBuilder/legacyNotebook.d.ts +73 -0
  48. package/dist/components/DashboardBuilder/loadMalloy.d.ts +15 -0
  49. package/dist/components/DashboardBuilder/malloyText.d.ts +45 -5
  50. package/dist/components/DashboardBuilder/malloyTree.d.ts +119 -0
  51. package/dist/components/DashboardBuilder/newDashboard.d.ts +3 -1
  52. package/dist/components/DashboardBuilder/openDraft.d.ts +10 -0
  53. package/dist/components/DashboardBuilder/preview.d.ts +24 -4
  54. package/dist/components/DashboardBuilder/readDocument.d.ts +4 -1
  55. package/dist/components/DashboardBuilder/readForEditor.d.ts +16 -0
  56. package/dist/components/DashboardBuilder/sortable.d.ts +14 -0
  57. package/dist/components/DashboardBuilder/spliceDocument.d.ts +13 -13
  58. package/dist/components/DashboardBuilder/spliceResult.d.ts +11 -0
  59. package/dist/components/DashboardBuilder/tagParse.d.ts +24 -0
  60. package/dist/components/DashboardBuilder/telemetry.d.ts +43 -0
  61. package/dist/components/DashboardBuilder/testing/fixtures.d.ts +3 -1
  62. package/dist/components/DashboardBuilder/testing/inline.d.ts +4 -0
  63. package/dist/components/DashboardBuilder/useBuilderSession.d.ts +89 -0
  64. package/dist/components/DashboardBuilder/useBuilderShortcuts.d.ts +9 -6
  65. package/dist/components/DashboardBuilder/useDashboardEditor.d.ts +17 -55
  66. package/dist/components/DashboardBuilder/useDocumentEditor.d.ts +105 -0
  67. package/dist/components/DashboardBuilder/useExitGuard.d.ts +19 -0
  68. package/dist/components/DashboardBuilder/useFilterForm.d.ts +3 -3
  69. package/dist/components/DocumentCreate/canRetry.d.ts +6 -0
  70. package/dist/components/DocumentCreate/createDocument.d.ts +58 -0
  71. package/dist/components/DocumentCreate/documentPath.d.ts +10 -0
  72. package/dist/components/DocumentCreate/events.d.ts +10 -0
  73. package/dist/components/DocumentCreate/exportedSources.d.ts +7 -0
  74. package/dist/components/DocumentCreate/guards.d.ts +12 -0
  75. package/dist/components/DocumentCreate/index.d.ts +6 -0
  76. package/dist/components/DocumentCreate/newNotebook.d.ts +9 -0
  77. package/dist/components/DocumentCreate/useDocumentChoices.d.ts +32 -0
  78. package/dist/components/DocumentStorage/DocumentStorage.d.ts +2 -1
  79. package/dist/components/NarrowEditGate.d.ts +8 -0
  80. package/dist/components/Notebook/Notebook.d.ts +1 -1
  81. package/dist/components/Package/NewDocumentDialog.d.ts +33 -0
  82. package/dist/components/Package/Package.d.ts +1 -0
  83. package/dist/components/Package/documentLocation.d.ts +28 -0
  84. package/dist/components/Package/index.d.ts +4 -0
  85. package/dist/components/Package/useDocumentLocation.d.ts +12 -0
  86. package/dist/components/PackageSection.d.ts +2 -2
  87. package/dist/components/RenderedResult/RenderedResult.d.ts +2 -0
  88. package/dist/components/RenderedResult/ResultContainer.d.ts +8 -1
  89. package/dist/components/RenderedResult/ResultPanel.d.ts +3 -1
  90. package/dist/components/RenderedResult/resultSizing.d.ts +9 -1
  91. package/dist/components/ServerProvider.d.ts +2 -1
  92. package/dist/components/UnsavedChangesDialog.d.ts +9 -0
  93. package/dist/components/given/GivensPanel.d.ts +2 -2
  94. package/dist/components/index.d.ts +2 -0
  95. package/dist/hooks/index.d.ts +1 -0
  96. package/dist/hooks/useNarrowScreen.d.ts +4 -0
  97. package/dist/hooks/useQueryResult.d.ts +2 -0
  98. package/dist/hooks/useSettled.d.ts +14 -0
  99. package/dist/index.cjs.js +23 -24
  100. package/dist/index.es.js +9714 -7072
  101. package/dist/text/index.cjs.js +1 -0
  102. package/dist/text/index.d.ts +2 -0
  103. package/dist/text/index.es.js +6 -0
  104. package/dist/text-entry-BJwltZiy.cjs.js +7 -0
  105. package/dist/text-entry-CbbBcZl8.es.js +196 -0
  106. package/dist/text-entry.d.ts +2 -0
  107. package/dist/utils/clock.d.ts +2 -0
  108. package/package.json +10 -1
  109. package/src/builder-entry.ts +35 -0
  110. package/src/components/Dashboard/Dashboard.tsx +27 -278
  111. package/src/components/Dashboard/DashboardGrid.tsx +68 -7
  112. package/src/components/Dashboard/DashboardTile.spec.tsx +24 -0
  113. package/src/components/Dashboard/DashboardTile.tsx +31 -4
  114. package/src/components/Dashboard/DashboardView.spec.tsx +212 -0
  115. package/src/components/Dashboard/DashboardView.tsx +352 -0
  116. package/src/components/Dashboard/RowsDialog.tsx +1 -1
  117. package/src/components/Dashboard/TileCard.tsx +44 -10
  118. package/src/components/Dashboard/TileFilterTag.spec.tsx +73 -0
  119. package/src/components/Dashboard/TileFilterTag.tsx +78 -0
  120. package/src/components/Dashboard/defaultTileSpan.spec.ts +32 -0
  121. package/src/components/Dashboard/index.ts +3 -0
  122. package/src/components/Dashboard/telemetry.ts +16 -5
  123. package/src/components/DashboardBuilder/AddTileDialog.spec.tsx +88 -0
  124. package/src/components/DashboardBuilder/AddTileDialog.tsx +137 -111
  125. package/src/components/DashboardBuilder/BuilderToolbar.tsx +85 -27
  126. package/src/components/DashboardBuilder/ChartPicker.render.spec.tsx +25 -0
  127. package/src/components/DashboardBuilder/ChartPicker.spec.ts +77 -0
  128. package/src/components/DashboardBuilder/ChartPicker.tsx +153 -0
  129. package/src/components/DashboardBuilder/DashboardBuilder.charts.spec.tsx +205 -0
  130. package/src/components/DashboardBuilder/DashboardBuilder.exit.spec.tsx +192 -0
  131. package/src/components/DashboardBuilder/DashboardBuilder.inline.spec.tsx +329 -0
  132. package/src/components/DashboardBuilder/DashboardBuilder.notebook.spec.tsx +363 -0
  133. package/src/components/DashboardBuilder/DashboardBuilder.notice.spec.tsx +194 -0
  134. package/src/components/DashboardBuilder/DashboardBuilder.openDraft.spec.tsx +157 -0
  135. package/src/components/DashboardBuilder/DashboardBuilder.sources.spec.tsx +124 -0
  136. package/src/components/DashboardBuilder/DashboardBuilder.spec.tsx +103 -78
  137. package/src/components/DashboardBuilder/DashboardBuilder.textTiles.spec.tsx +177 -0
  138. package/src/components/DashboardBuilder/DashboardBuilder.tsx +610 -315
  139. package/src/components/DashboardBuilder/DashboardEditor.authoritative.spec.tsx +58 -8
  140. package/src/components/DashboardBuilder/DashboardEditor.emptyStart.spec.tsx +191 -0
  141. package/src/components/DashboardBuilder/DashboardEditor.filterTag.spec.tsx +162 -0
  142. package/src/components/DashboardBuilder/DashboardEditor.notebook.spec.tsx +316 -0
  143. package/src/components/DashboardBuilder/DashboardEditor.package.spec.tsx +56 -10
  144. package/src/components/DashboardBuilder/DashboardEditor.resourceUri.spec.tsx +5 -22
  145. package/src/components/DashboardBuilder/DashboardEditor.spec.tsx +96 -14
  146. package/src/components/DashboardBuilder/DashboardEditor.tsx +482 -332
  147. package/src/components/DashboardBuilder/DiffDialog.spec.tsx +25 -0
  148. package/src/components/DashboardBuilder/DiffDialog.tsx +5 -24
  149. package/src/components/DashboardBuilder/DrillDialog.tsx +1 -1
  150. package/src/components/DashboardBuilder/FilterDialog.tsx +10 -3
  151. package/src/components/DashboardBuilder/FilterStrip.tsx +26 -4
  152. package/src/components/DashboardBuilder/InlineMarkdown.tsx +184 -0
  153. package/src/components/DashboardBuilder/InlineText.tsx +106 -0
  154. package/src/components/DashboardBuilder/NotebookEditor.tsx +44 -0
  155. package/src/components/DashboardBuilder/SaveNotice.tsx +113 -0
  156. package/src/components/DashboardBuilder/SettingsPopover.spec.tsx +87 -0
  157. package/src/components/DashboardBuilder/SettingsPopover.tsx +225 -67
  158. package/src/components/DashboardBuilder/SourceViewPicker.tsx +122 -0
  159. package/src/components/DashboardBuilder/TextTileBody.tsx +28 -0
  160. package/src/components/DashboardBuilder/TileFrame.tsx +89 -115
  161. package/src/components/DashboardBuilder/TileMenu.tsx +168 -90
  162. package/src/components/DashboardBuilder/annotationText.spec.ts +33 -0
  163. package/src/components/DashboardBuilder/annotationText.ts +17 -0
  164. package/src/components/DashboardBuilder/artifactBlock.spec.ts +248 -0
  165. package/src/components/DashboardBuilder/artifactTagParity.spec.ts +41 -0
  166. package/src/components/DashboardBuilder/catalog.aggregate.spec.ts +49 -0
  167. package/src/components/DashboardBuilder/catalog.spec.ts +2 -0
  168. package/src/components/DashboardBuilder/catalog.ts +61 -21
  169. package/src/components/DashboardBuilder/changedTile.spec.ts +46 -0
  170. package/src/components/DashboardBuilder/changedTile.ts +28 -0
  171. package/src/components/DashboardBuilder/chartLine.spec.ts +180 -0
  172. package/src/components/DashboardBuilder/chartLine.ts +121 -0
  173. package/src/components/DashboardBuilder/controls.spec.ts +21 -10
  174. package/src/components/DashboardBuilder/controls.ts +22 -8
  175. package/src/components/DashboardBuilder/document.ts +53 -5
  176. package/src/components/DashboardBuilder/documentSession.spec.ts +209 -0
  177. package/src/components/DashboardBuilder/documentSession.ts +257 -0
  178. package/src/components/DashboardBuilder/emptyStart.spec.ts +131 -0
  179. package/src/components/DashboardBuilder/invariants.spec.ts +6 -2
  180. package/src/components/DashboardBuilder/legacyNotebook.chart.spec.ts +77 -0
  181. package/src/components/DashboardBuilder/legacyNotebook.convert.spec.ts +630 -0
  182. package/src/components/DashboardBuilder/legacyNotebook.read.spec.ts +338 -0
  183. package/src/components/DashboardBuilder/legacyNotebook.ts +1117 -0
  184. package/src/components/DashboardBuilder/loadMalloy.spec.ts +80 -0
  185. package/src/components/DashboardBuilder/loadMalloy.ts +39 -0
  186. package/src/components/DashboardBuilder/malloyText.spec.ts +48 -0
  187. package/src/components/DashboardBuilder/malloyText.ts +181 -27
  188. package/src/components/DashboardBuilder/malloyTree.ts +155 -7
  189. package/src/components/DashboardBuilder/newDashboard.spec.ts +46 -2
  190. package/src/components/DashboardBuilder/newDashboard.ts +30 -3
  191. package/src/components/DashboardBuilder/openDraft.ts +52 -0
  192. package/src/components/DashboardBuilder/preview.shapes.spec.ts +75 -0
  193. package/src/components/DashboardBuilder/preview.spec.ts +159 -12
  194. package/src/components/DashboardBuilder/preview.ts +83 -9
  195. package/src/components/DashboardBuilder/readDocument.spec.ts +139 -27
  196. package/src/components/DashboardBuilder/readDocument.ts +130 -44
  197. package/src/components/DashboardBuilder/readForEditor.spec.ts +80 -0
  198. package/src/components/DashboardBuilder/readForEditor.ts +47 -0
  199. package/src/components/DashboardBuilder/scannerShapes.spec.ts +14 -13
  200. package/src/components/DashboardBuilder/sortable.spec.ts +65 -0
  201. package/src/components/DashboardBuilder/sortable.tsx +2 -12
  202. package/src/components/DashboardBuilder/spliceDocument.chart.spec.ts +340 -0
  203. package/src/components/DashboardBuilder/spliceDocument.imports.spec.ts +167 -0
  204. package/src/components/DashboardBuilder/spliceDocument.spec.ts +229 -94
  205. package/src/components/DashboardBuilder/spliceDocument.ts +762 -130
  206. package/src/components/DashboardBuilder/spliceResult.ts +15 -0
  207. package/src/components/DashboardBuilder/statementExtent.spec.ts +33 -30
  208. package/src/components/DashboardBuilder/tagParse.spec.ts +149 -0
  209. package/src/components/DashboardBuilder/tagParse.ts +103 -0
  210. package/src/components/DashboardBuilder/telemetry.ts +47 -0
  211. package/src/components/DashboardBuilder/testing/artifactTagParity.json +197 -0
  212. package/src/components/DashboardBuilder/testing/fixtures.ts +16 -1
  213. package/src/components/DashboardBuilder/testing/inline.ts +25 -0
  214. package/src/components/DashboardBuilder/textTiles.spec.ts +718 -0
  215. package/src/components/DashboardBuilder/useBuilderSession.spec.ts +335 -0
  216. package/src/components/DashboardBuilder/useBuilderSession.ts +292 -0
  217. package/src/components/DashboardBuilder/useBuilderShortcuts.overlay.spec.tsx +65 -0
  218. package/src/components/DashboardBuilder/useBuilderShortcuts.spec.tsx +60 -0
  219. package/src/components/DashboardBuilder/useBuilderShortcuts.ts +36 -10
  220. package/src/components/DashboardBuilder/useDashboardEditor.spec.ts +16 -13
  221. package/src/components/DashboardBuilder/useDashboardEditor.ts +54 -181
  222. package/src/components/DashboardBuilder/useDocumentEditor.spec.ts +565 -0
  223. package/src/components/DashboardBuilder/useDocumentEditor.ts +399 -0
  224. package/src/components/DashboardBuilder/useExitGuard.spec.ts +159 -0
  225. package/src/components/DashboardBuilder/useExitGuard.ts +89 -0
  226. package/src/components/DashboardBuilder/useFilterForm.existing.spec.tsx +41 -0
  227. package/src/components/DashboardBuilder/useFilterForm.spec.tsx +24 -2
  228. package/src/components/DashboardBuilder/useFilterForm.ts +41 -13
  229. package/src/components/DashboardBuilder/useTileReorder.spec.tsx +28 -5
  230. package/src/components/DashboardBuilder/useTileReorder.ts +5 -7
  231. package/src/components/DocumentCreate/canRetry.spec.ts +32 -0
  232. package/src/components/DocumentCreate/canRetry.ts +19 -0
  233. package/src/components/DocumentCreate/createDocument.spec.ts +310 -0
  234. package/src/components/DocumentCreate/createDocument.ts +159 -0
  235. package/src/components/DocumentCreate/documentPath.ts +40 -0
  236. package/src/components/DocumentCreate/events.ts +15 -0
  237. package/src/components/DocumentCreate/exportedSources.ts +25 -0
  238. package/src/components/DocumentCreate/guards.ts +45 -0
  239. package/src/components/DocumentCreate/index.ts +27 -0
  240. package/src/components/DocumentCreate/newNotebook.spec.ts +156 -0
  241. package/src/components/DocumentCreate/newNotebook.ts +44 -0
  242. package/src/components/DocumentCreate/useDocumentChoices.spec.tsx +138 -0
  243. package/src/components/DocumentCreate/useDocumentChoices.ts +113 -0
  244. package/src/components/DocumentStorage/DocumentStorage.ts +2 -1
  245. package/src/components/Model/ModelExplorer.spec.tsx +2 -2
  246. package/src/components/Model/SourcesExplorer.tsx +2 -4
  247. package/src/components/NarrowEditGate.spec.tsx +73 -0
  248. package/src/components/NarrowEditGate.tsx +29 -0
  249. package/src/components/Notebook/Notebook.layout.spec.tsx +94 -0
  250. package/src/components/Notebook/Notebook.tsx +66 -27
  251. package/src/components/Package/NewDocumentDialog.spec.tsx +749 -0
  252. package/src/components/Package/NewDocumentDialog.tsx +401 -0
  253. package/src/components/Package/Package.artifacts.spec.tsx +190 -0
  254. package/src/components/Package/Package.create.spec.tsx +380 -0
  255. package/src/components/Package/Package.notebooks.spec.tsx +18 -0
  256. package/src/components/Package/Package.tsx +366 -171
  257. package/src/components/Package/documentLocation.spec.ts +81 -0
  258. package/src/components/Package/documentLocation.ts +55 -0
  259. package/src/components/Package/index.ts +13 -0
  260. package/src/components/Package/useDocumentLocation.ts +59 -0
  261. package/src/components/PackageSection.tsx +2 -2
  262. package/src/components/RenderedResult/RenderedResult.tsx +18 -1
  263. package/src/components/RenderedResult/ResultContainer.tsx +44 -11
  264. package/src/components/RenderedResult/ResultPanel.tsx +4 -0
  265. package/src/components/RenderedResult/resultSizing.spec.ts +68 -0
  266. package/src/components/RenderedResult/resultSizing.ts +14 -3
  267. package/src/components/ServerProvider.tsx +2 -1
  268. package/src/components/UnsavedChangesDialog.spec.tsx +70 -0
  269. package/src/components/UnsavedChangesDialog.tsx +49 -0
  270. package/src/components/given/GivensPanel.spec.tsx +6 -6
  271. package/src/components/given/GivensPanel.tsx +3 -3
  272. package/src/components/index.ts +2 -0
  273. package/src/hooks/index.ts +3 -0
  274. package/src/hooks/useNarrowScreen.ts +21 -0
  275. package/src/hooks/useQueryResult.ts +16 -0
  276. package/src/hooks/useSettled.spec.ts +41 -0
  277. package/src/hooks/useSettled.ts +27 -0
  278. package/src/mainEntry.spec.ts +145 -0
  279. package/src/text-entry.ts +12 -0
  280. package/src/textEntry.spec.ts +118 -0
  281. package/src/utils/clock.spec.ts +12 -0
  282. package/src/utils/clock.ts +6 -0
  283. package/vite.config.ts +4 -0
  284. package/dist/Dashboard-ChyylkTD.cjs.js +0 -136
  285. package/dist/RenderedResult-AJPMUkAD.cjs.js +0 -135
  286. package/dist/ServerProvider-CXrOKD6g.cjs.js +0 -1
  287. package/dist/components/DashboardBuilder/useTileResize.d.ts +0 -29
  288. package/dist/components/Package/NewDashboardDialog.d.ts +0 -18
  289. package/src/components/DashboardBuilder/useTileResize.spec.tsx +0 -121
  290. package/src/components/DashboardBuilder/useTileResize.ts +0 -110
  291. package/src/components/Package/NewDashboardDialog.spec.tsx +0 -129
  292. package/src/components/Package/NewDashboardDialog.tsx +0 -265
@@ -1,88 +1,88 @@
1
1
  import { jsx as I } from "react/jsx-runtime";
2
- import { Box as oe, useTheme as ce } from "@mui/material";
3
- import { Suspense as ue, useRef as z, useCallback as he, useMemo as me, useEffect as be, useLayoutEffect as fe } from "react";
4
- import { D as ye, r as K, b as pe, a as ge, m as ve, c as we, d as ae } from "./Dashboard-H1kJlDFo.es.js";
5
- import { aG as ke, aH as Ce, aI as xe } from "./ServerProvider-Boxrv6Ym.es.js";
2
+ import { Box as ne, useTheme as he } from "@mui/material";
3
+ import { Suspense as me, useRef as z, useCallback as be, useMemo as fe, useEffect as ye, useLayoutEffect as pe } from "react";
4
+ import { D as ge, r as U, l as ve, b as we, a as ke, m as xe, c as Ce, d as le } from "./DashboardTile-BFcxdv7R.es.js";
5
+ import { aI as Re, aJ as Ee, aK as Se } from "./ServerProvider-DCV8BUWD.es.js";
6
6
  const g = "publisher-drill";
7
- function Re(e, r) {
7
+ function Ae(e, r) {
8
8
  const t = /* @__PURE__ */ new Set();
9
- let a;
9
+ let o;
10
10
  try {
11
- a = e.getMetadata()?.getAllFields() ?? [];
11
+ o = e.getMetadata()?.getAllFields() ?? [];
12
12
  } catch {
13
13
  return t;
14
14
  }
15
15
  const n = /* @__PURE__ */ new Set();
16
- for (const o of a)
17
- !o || r(o) || o.tag?.tag("hidden") === void 0 && n.add(o.tag?.text("label") ?? o.name);
18
- for (const o of a) {
19
- if (!o || !r(o)) continue;
20
- const l = o.tag?.text("label") ?? o.name;
16
+ for (const a of o)
17
+ !a || r(a) || a.tag?.tag("hidden") === void 0 && n.add(a.tag?.text("label") ?? a.name);
18
+ for (const a of o) {
19
+ if (!a || !r(a)) continue;
20
+ const l = a.tag?.text("label") ?? a.name;
21
21
  n.has(l) || t.add(l);
22
22
  }
23
23
  return t;
24
24
  }
25
- function L(e) {
25
+ function M(e) {
26
26
  const r = /^\s*(\d+)/.exec(e.style?.gridColumn ?? "");
27
27
  return r ? r[1] : void 0;
28
28
  }
29
- function Ee(e, r) {
29
+ function Te(e, r) {
30
30
  if (r.size !== 0)
31
31
  for (const t of e.querySelectorAll(
32
32
  ".malloy-table"
33
33
  )) {
34
- const a = (l) => l.closest(".malloy-table") === t, n = /* @__PURE__ */ new Set();
34
+ const o = (l) => l.closest(".malloy-table") === t, n = /* @__PURE__ */ new Set();
35
35
  for (const l of t.querySelectorAll(
36
36
  ".column-cell.th"
37
37
  )) {
38
- if (!a(l)) continue;
39
- const s = (l.textContent ?? "").replace(/\u200b/g, "").trim(), y = L(l);
40
- y && r.has(s) && n.add(y);
38
+ if (!o(l)) continue;
39
+ const s = (l.textContent ?? "").replace(/\u200b/g, "").trim(), b = M(l);
40
+ b && r.has(s) && n.add(b);
41
41
  }
42
42
  if (n.size === 0) continue;
43
- const o = /* @__PURE__ */ new Set();
43
+ const a = /* @__PURE__ */ new Set();
44
44
  for (const l of t.querySelectorAll(
45
45
  `.${g}[tabindex="0"]`
46
46
  )) {
47
- if (!a(l)) continue;
48
- const s = L(l);
49
- s && (o.has(s) ? l.tabIndex = -1 : o.add(s));
47
+ if (!o(l)) continue;
48
+ const s = M(l);
49
+ s && (a.has(s) ? l.tabIndex = -1 : a.add(s));
50
50
  }
51
51
  for (const l of t.querySelectorAll(
52
52
  ".column-cell.td"
53
53
  )) {
54
- if (!a(l)) continue;
55
- const s = L(l), y = !l.querySelector(".value-null") && (l.textContent ?? "").trim() !== "";
56
- if (s && y && n.has(s) && !l.querySelector(".malloy-table")) {
54
+ if (!o(l)) continue;
55
+ const s = M(l), b = !l.querySelector(".value-null") && (l.textContent ?? "").trim() !== "";
56
+ if (s && b && n.has(s) && !l.querySelector(".malloy-table")) {
57
57
  if (l.classList.add(g), l.tabIndex === 0)
58
- o.add(s);
58
+ a.add(s);
59
59
  else {
60
- const h = o.has(s);
61
- h || o.add(s), l.tabIndex = h ? -1 : 0;
60
+ const y = a.has(s);
61
+ y || a.add(s), l.tabIndex = y ? -1 : 0;
62
62
  }
63
63
  l.setAttribute("role", "button");
64
64
  }
65
65
  }
66
66
  }
67
67
  }
68
- function Se(e) {
69
- const r = e.closest(".malloy-table"), t = L(e);
68
+ function De(e) {
69
+ const r = e.closest(".malloy-table"), t = M(e);
70
70
  return !r || !t ? [] : Array.from(
71
71
  r.querySelectorAll(`.${g}`)
72
72
  ).filter(
73
- (a) => a.closest(".malloy-table") === r && L(a) === t
73
+ (o) => o.closest(".malloy-table") === r && M(o) === t
74
74
  );
75
75
  }
76
- function ne(e, r) {
77
- const t = Se(e), a = t.indexOf(e);
78
- if (a === -1) return;
79
- const n = r === "first" ? t[0] : r === "last" ? t[t.length - 1] : t[Math.min(Math.max(a + r, 0), t.length - 1)];
76
+ function ie(e, r) {
77
+ const t = De(e), o = t.indexOf(e);
78
+ if (o === -1) return;
79
+ const n = r === "first" ? t[0] : r === "last" ? t[t.length - 1] : t[Math.min(Math.max(o + r, 0), t.length - 1)];
80
80
  if (n) {
81
- for (const o of t) o.tabIndex = o === n ? 0 : -1;
81
+ for (const a of t) a.tabIndex = a === n ? 0 : -1;
82
82
  return n;
83
83
  }
84
84
  }
85
- function Ae(e) {
85
+ function Oe(e) {
86
86
  return {
87
87
  background: e.dashboardRoot,
88
88
  tableBackground: e.tableBackground,
@@ -104,76 +104,76 @@ function Ae(e) {
104
104
  mapColor: e.mapColor
105
105
  };
106
106
  }
107
- function De(e) {
108
- const { foreground: r, axisFaint: t, font: a } = e, n = {
107
+ function _e(e) {
108
+ const { foreground: r, axisFaint: t, font: o } = e, n = {
109
109
  background: e.background,
110
- font: a.family,
111
- title: { color: r, font: a.family },
110
+ font: o.family,
111
+ title: { color: r, font: o.family },
112
112
  axis: {
113
113
  labelColor: r,
114
114
  titleColor: r,
115
115
  domainColor: t,
116
116
  tickColor: t,
117
117
  gridColor: t,
118
- labelFont: a.family,
119
- titleFont: a.family
118
+ labelFont: o.family,
119
+ titleFont: o.family
120
120
  },
121
121
  legend: {
122
122
  labelColor: r,
123
123
  titleColor: r,
124
- labelFont: a.family,
125
- titleFont: a.family
124
+ labelFont: o.family,
125
+ titleFont: o.family
126
126
  },
127
127
  header: { labelColor: r, titleColor: r },
128
128
  range: { category: e.series }
129
129
  };
130
- return (o) => n;
130
+ return (a) => n;
131
131
  }
132
- function Oe(e) {
132
+ function Fe(e) {
133
133
  if (!e) return;
134
134
  const r = e.tag("theme");
135
135
  if (!r) return;
136
- const t = {}, a = r.tag("palette");
137
- if (a) {
138
- const o = {}, l = a.textArray("series");
139
- l && l.length > 0 && (o.series = l);
140
- for (const s of ke) {
141
- const y = a.tag(s);
142
- if (!y) continue;
143
- const h = {}, v = y.text("light"), x = y.text("dark");
144
- v && (h.light = v), x && (h.dark = x), Object.keys(h).length > 0 && (o[s] = h);
136
+ const t = {}, o = r.tag("palette");
137
+ if (o) {
138
+ const a = {}, l = o.textArray("series");
139
+ l && l.length > 0 && (a.series = l);
140
+ for (const s of Re) {
141
+ const b = o.tag(s);
142
+ if (!b) continue;
143
+ const y = {}, k = b.text("light"), v = b.text("dark");
144
+ k && (y.light = k), v && (y.dark = v), Object.keys(y).length > 0 && (a[s] = y);
145
145
  }
146
- Object.keys(o).length > 0 && (t.palette = o);
146
+ Object.keys(a).length > 0 && (t.palette = a);
147
147
  }
148
148
  const n = r.tag("font");
149
149
  if (n) {
150
- const o = {}, l = n.text("family");
151
- l && (o.family = l);
150
+ const a = {}, l = n.text("family");
151
+ l && (a.family = l);
152
152
  const s = n.numeric("size");
153
- typeof s == "number" && Number.isFinite(s) && (o.size = s), Object.keys(o).length > 0 && (t.font = o);
153
+ typeof s == "number" && Number.isFinite(s) && (a.size = s), Object.keys(a).length > 0 && (t.font = a);
154
154
  }
155
155
  return Object.keys(t).length > 0 ? t : void 0;
156
156
  }
157
- const Te = async (e, r) => {
157
+ const L = "data-publisher-fill", ze = async (e, r) => {
158
158
  if (typeof window > "u")
159
159
  throw new Error("MalloyRenderer can only be used in browser environment");
160
160
  const { MalloyRenderer: t } = await import("@malloydata/render");
161
161
  return new t({
162
162
  onClick: r,
163
- vegaConfigOverride: De(e),
163
+ vegaConfigOverride: _e(e),
164
164
  // Pass the explicit theme so table chrome and dashboard tiles
165
165
  // pick up the operator's colours directly. Without this the
166
166
  // renderer's own inline style writes `--malloy-render--*` values
167
167
  // sourced from its built-in defaults and shadows whatever we set
168
168
  // on the outer wrapper.
169
- theme: Ae(e),
169
+ theme: Oe(e),
170
170
  onError: (n) => {
171
171
  console.error("Error rendering visualization:", typeof n, n);
172
172
  }
173
173
  }).createViz();
174
174
  };
175
175
  typeof window < "u" && import("@malloydata/render");
176
- async function _e(e) {
176
+ async function Ie(e) {
177
177
  if (!e || typeof e != "object") return;
178
178
  const r = e, t = [
179
179
  ...Array.isArray(r.model_annotations) ? r.model_annotations : [],
@@ -181,15 +181,15 @@ async function _e(e) {
181
181
  ...Array.isArray(r.annotations) ? r.annotations : []
182
182
  ].map((n) => typeof n?.value == "string" ? n.value : void 0).filter((n) => !!n);
183
183
  if (t.length === 0) return;
184
- let a;
184
+ let o;
185
185
  try {
186
- ({ parseAnnotation: a } = await import("@malloydata/malloy-tag"));
186
+ ({ parseAnnotation: o } = await ve());
187
187
  } catch {
188
188
  return;
189
189
  }
190
190
  try {
191
- const { tag: n } = a(t);
192
- return Oe(n);
191
+ const { tag: n } = o(t);
192
+ return Fe(n);
193
193
  } catch (n) {
194
194
  console.warn(
195
195
  "Failed to parse # theme.* annotations; chart will render with the shell theme.",
@@ -198,12 +198,12 @@ async function _e(e) {
198
198
  return;
199
199
  }
200
200
  }
201
- function Fe(e, r, t) {
202
- const a = pe(r, t);
203
- for (const [n, o] of Object.entries(a))
204
- e.style.setProperty(n, o);
201
+ function Le(e, r, t) {
202
+ const o = we(r, t);
203
+ for (const [n, a] of Object.entries(o))
204
+ e.style.setProperty(n, a);
205
205
  }
206
- const ze = `
206
+ const Me = `
207
207
  /* Card geometry, through the renderer's OWN theme vars rather than over the top
208
208
  of them. It declares --malloy-theme--dashboard-* on .malloy-render itself and
209
209
  passes each through to the --malloy-render--* the card CSS reads, so a value
@@ -288,6 +288,12 @@ div.malloy-render .malloy-dashboard .dashboard-row-header {
288
288
  .malloy-render .malloy-dashboard .dashboard-row-header-separator {
289
289
  background: var(--malloy-render--table-border) !important;
290
290
  }
291
+ /* !important because the malloy-explorer stylesheet pins these same properties with it. */
292
+ [${L}] .malloy-table.root {
293
+ height: 100% !important;
294
+ align-content: start !important;
295
+ grid-template-columns: repeat(var(--total-header-size), minmax(max-content, 1fr)) !important;
296
+ }
291
297
  .malloy-render .malloy-table .th.column-cell {
292
298
  /* Non-pinned tables have no header background in the renderer's
293
299
  own CSS (only pinned scrolled tables paint the pinned-header
@@ -337,56 +343,59 @@ div.malloy-render .malloy-dashboard .dashboard-row-header {
337
343
  color: var(--publisher-drill-link) !important;
338
344
  text-decoration: underline;
339
345
  }
340
- `, le = "publisher-malloy-renderer-overrides";
341
- function Ie() {
342
- if (typeof document > "u" || document.getElementById(le)) return;
346
+ `, se = "publisher-malloy-renderer-overrides";
347
+ function Be() {
348
+ if (typeof document > "u" || document.getElementById(se)) return;
343
349
  const e = document.createElement("style");
344
- e.id = le, e.textContent = ze, document.head.appendChild(e);
350
+ e.id = se, e.textContent = Me, document.head.appendChild(e);
345
351
  }
346
- function Le({
352
+ function Ne({
347
353
  result: e,
348
354
  height: r,
349
355
  drill: t,
350
- onSizeChange: a,
351
- onSizing: n
356
+ onSizeChange: o,
357
+ onSizing: n,
358
+ fill: a
352
359
  }) {
353
- const o = z(null), l = z(t);
354
- l.current = t;
355
- const s = he((c) => {
356
- l.current?.onClick(c);
357
- }, []), y = t !== void 0, h = z(!1), v = z(
360
+ const l = z(null), s = z(t);
361
+ s.current = t;
362
+ const b = be((c) => {
363
+ s.current?.onClick(c);
364
+ }, []), y = t !== void 0, k = z(!1), v = z(
358
365
  null
359
- ), x = z(0), { theme: G, layers: U, mode: X } = Ce(), Y = ce().shape.borderRadius, J = me(
366
+ ), P = z(0), { theme: J, layers: X, mode: Y } = Ee(), W = he().shape.borderRadius, Q = fe(
360
367
  () => ({
361
- radius: `${Y}px`,
362
- padding: `${ye}px`
368
+ radius: `${W}px`,
369
+ padding: `${ge}px`
363
370
  }),
364
- [Y]
371
+ [W]
365
372
  );
366
- return be(() => () => {
367
- x.current += 1;
373
+ return ye(() => () => {
374
+ P.current += 1;
368
375
  const c = v.current;
369
376
  c?.viz.remove(), c?.node.remove(), v.current = null;
370
- }, []), fe(() => {
371
- if (!o.current || !e) return;
372
- Ie();
373
- const c = o.current, ie = x.current += 1;
374
- let j = !1;
375
- const P = () => !j && ie === x.current;
376
- let d, m, B = null, V = 0, M = null, N = null, $ = null, O = null, T = null, _ = null, W = null, Q = 0, R = null;
377
- h.current = !1;
378
- let p, E;
379
- const H = (w) => {
380
- if (j || !w.firstElementChild || K(p, E) === "container") return;
381
- const F = ge(p, E);
382
- if (h.current && !F) return;
383
- const k = ve(
377
+ }, []), pe(() => {
378
+ if (!l.current || !e) return;
379
+ Be();
380
+ const c = l.current, de = P.current += 1;
381
+ let V = !1;
382
+ const q = () => !V && de === P.current;
383
+ let d, h, B = null, H = 0, N = null, $ = null, j = null, T = null, D = null, O = null, Z = null, ee = 0, C = null;
384
+ k.current = !1;
385
+ let p, R;
386
+ const K = (w) => {
387
+ if (V || !w.firstElementChild || U(p, R) === "container") return;
388
+ const _ = ke(p, R);
389
+ if (k.current && !_) return;
390
+ const F = c.hasAttribute(L);
391
+ F && c.removeAttribute(L);
392
+ const E = xe(
384
393
  w,
385
- ae(p)
394
+ le(p)
386
395
  );
387
- k > 0 && (h.current = !0, a && k !== Q && (Q = k, a(k)));
388
- const S = we(w, ae(p));
389
- F && S && W !== S && (W = S, _?.disconnect(), _ = new ResizeObserver(() => H(w)), _.observe(S));
396
+ F && c.setAttribute(L, ""), E > 0 && (k.current = !0, o && E !== ee && (ee = E, o(E)));
397
+ const u = Ce(w, le(p));
398
+ _ && u && Z !== u && (Z = u, O?.disconnect(), O = new ResizeObserver(() => K(w)), O.observe(u));
390
399
  };
391
400
  return (async () => {
392
401
  let w;
@@ -396,121 +405,122 @@ function Le({
396
405
  console.error("Error parsing visualization result:", f);
397
406
  return;
398
407
  }
399
- const F = await _e(w), k = F ? xe([...U, F], X) : G;
400
- if (!P()) return;
408
+ const _ = await Ie(w), F = _ ? Se([...X, _], Y) : J;
409
+ if (!q()) return;
401
410
  try {
402
- m = await Te(k, s);
411
+ h = await ze(F, b);
403
412
  } catch (f) {
404
413
  console.error("Failed to create renderer:", f);
405
414
  return;
406
415
  }
407
- if (!P()) {
408
- m.remove(), m = void 0;
416
+ if (!q()) {
417
+ h.remove(), h = void 0;
409
418
  return;
410
419
  }
411
- const S = v.current;
412
- d = document.createElement("div"), d.style.width = "100%", d.style.height = "100%", Fe(d, k, J), c.childElementCount > 0 && (c.style.position = "relative", d.style.position = "absolute", d.style.inset = "0", d.style.visibility = "hidden"), c.appendChild(d);
420
+ const E = v.current;
421
+ d = document.createElement("div"), d.style.width = "100%", d.style.height = "100%", Le(d, F, Q), c.childElementCount > 0 && (c.style.position = "relative", d.style.position = "absolute", d.style.inset = "0", d.style.visibility = "hidden"), c.appendChild(d);
413
422
  const u = d;
414
- O = new MutationObserver(() => {
415
- T && clearTimeout(T), T = setTimeout(() => {
416
- H(u), h.current && O?.disconnect();
423
+ T = new MutationObserver(() => {
424
+ D && clearTimeout(D), D = setTimeout(() => {
425
+ K(u), k.current && T?.disconnect();
417
426
  }, 100);
418
- }), O.observe(d, {
427
+ }), T.observe(d, {
419
428
  childList: !0,
420
429
  subtree: !0,
421
430
  attributes: !0
422
431
  });
423
- const se = m;
424
- let Z = !1;
425
- const ee = () => {
426
- if (!(Z || !P())) {
427
- Z = !0, R && (clearTimeout(R), R = null), S?.viz.remove();
432
+ const ce = h;
433
+ let re = !1;
434
+ const te = () => {
435
+ if (!(re || !q())) {
436
+ re = !0, C && (clearTimeout(C), C = null), E?.viz.remove();
428
437
  for (const f of Array.from(c.children))
429
438
  f !== u && c.removeChild(f);
430
- u.style.position = "", u.style.inset = "", u.style.visibility = "", c.style.position = "", v.current = { viz: se, node: u }, H(u);
439
+ u.style.position = "", u.style.inset = "", u.style.visibility = "", c.style.position = "", v.current = { viz: ce, node: u }, K(u);
431
440
  }
432
441
  };
433
442
  try {
434
- m.setResult(w);
443
+ h.setResult(w);
435
444
  try {
436
- const C = m.getMetadata(), A = C?.getRootField();
437
- p = A?.renderAs(), E = A ? C?.getPluginsForField(A.key)?.[0]?.sizingStrategy : void 0;
445
+ const x = h.getMetadata(), S = x?.getRootField();
446
+ p = S?.renderAs(), R = S ? x?.getPluginsForField(S.key)?.[0]?.sizingStrategy : void 0;
438
447
  } catch {
439
- p = void 0, E = void 0;
448
+ p = void 0, R = void 0;
440
449
  }
441
- n?.(K(p, E)), d.dataset.malloyRenderAs = p ?? "unknown", d.dataset.malloySizing = K(p, E), m.render(d);
442
- const f = l.current;
450
+ n?.(U(p, R)), d.dataset.malloyRenderAs = p ?? "unknown", d.dataset.malloySizing = U(p, R), h.render(d);
451
+ const f = s.current;
443
452
  try {
444
453
  if (f) {
445
- const C = Re(m, f.canDrill), A = () => {
454
+ const x = Ae(h, f.canDrill), S = () => {
446
455
  try {
447
- Ee(u, C);
456
+ Te(u, x);
448
457
  } catch (i) {
449
458
  console.warn("Drill affordance skipped:", i);
450
459
  }
451
460
  };
452
- A();
453
- const re = (i) => {
454
- const D = i.querySelector(".cell-content") ?? i, q = D.getBoundingClientRect();
455
- D.dispatchEvent(
461
+ S();
462
+ const oe = (i) => {
463
+ const A = i.querySelector(".cell-content") ?? i, G = A.getBoundingClientRect();
464
+ A.dispatchEvent(
456
465
  new MouseEvent("click", {
457
466
  bubbles: !0,
458
467
  cancelable: !0,
459
- view: D.ownerDocument.defaultView,
460
- clientX: Math.round(q.left + q.width / 2),
461
- clientY: Math.round(q.bottom)
468
+ view: A.ownerDocument.defaultView,
469
+ clientX: Math.round(G.left + G.width / 2),
470
+ clientY: Math.round(G.bottom)
462
471
  })
463
472
  );
464
- }, te = (i) => i.target?.closest?.(`.${g}`) ?? null, de = (i, b) => {
465
- ne(i, b)?.focus();
473
+ }, ae = (i) => i.target?.closest?.(`.${g}`) ?? null, ue = (i, m) => {
474
+ ie(i, m)?.focus();
466
475
  };
467
- M = (i) => {
468
- const b = te(i);
469
- if (!b) return;
470
- const D = i.key === "ArrowDown" ? 1 : i.key === "ArrowUp" ? -1 : i.key === "Home" ? "first" : i.key === "End" ? "last" : void 0;
471
- if (D !== void 0) {
472
- i.preventDefault(), de(b, D);
476
+ N = (i) => {
477
+ const m = ae(i);
478
+ if (!m) return;
479
+ const A = i.key === "ArrowDown" ? 1 : i.key === "ArrowUp" ? -1 : i.key === "Home" ? "first" : i.key === "End" ? "last" : void 0;
480
+ if (A !== void 0) {
481
+ i.preventDefault(), ue(m, A);
473
482
  return;
474
483
  }
475
- i.key === "Enter" ? (i.preventDefault(), re(b)) : i.key === " " && i.preventDefault();
476
- }, N = (i) => {
477
- if (i.key !== " ") return;
478
- const b = te(i);
479
- b && (i.preventDefault(), re(b));
484
+ i.key === "Enter" ? (i.preventDefault(), oe(m)) : i.key === " " && i.preventDefault();
480
485
  }, $ = (i) => {
481
- const b = i.target?.closest?.(`.${g}`);
482
- b && ne(b, 0);
483
- }, u.addEventListener("keydown", M), u.addEventListener("keyup", N), u.addEventListener("focusin", $), C.size > 0 && typeof MutationObserver < "u" && (B = new MutationObserver(() => {
484
- cancelAnimationFrame(V), V = requestAnimationFrame(A);
486
+ if (i.key !== " ") return;
487
+ const m = ae(i);
488
+ m && (i.preventDefault(), oe(m));
489
+ }, j = (i) => {
490
+ const m = i.target?.closest?.(`.${g}`);
491
+ m && ie(m, 0);
492
+ }, u.addEventListener("keydown", N), u.addEventListener("keyup", $), u.addEventListener("focusin", j), x.size > 0 && typeof MutationObserver < "u" && (B = new MutationObserver(() => {
493
+ cancelAnimationFrame(H), H = requestAnimationFrame(S);
485
494
  }), B.observe(u, {
486
495
  childList: !0,
487
496
  subtree: !0
488
497
  }));
489
498
  }
490
- } catch (C) {
491
- console.warn("Drill affordance skipped:", C);
499
+ } catch (x) {
500
+ console.warn("Drill affordance skipped:", x);
492
501
  }
493
- m.onReady(ee), R = setTimeout(ee, 1e4);
502
+ h.onReady(te), C = setTimeout(te, 1e4);
494
503
  } catch (f) {
495
- console.error("Error rendering visualization:", f), O?.disconnect(), _?.disconnect(), B?.disconnect(), m.remove(), m = void 0, u.parentNode === c && c.removeChild(u);
504
+ console.error("Error rendering visualization:", f), T?.disconnect(), O?.disconnect(), B?.disconnect(), h.remove(), h = void 0, u.parentNode === c && c.removeChild(u);
496
505
  }
497
506
  })(), () => {
498
- j = !0, O?.disconnect(), _?.disconnect(), T && clearTimeout(T), R && clearTimeout(R), d && v.current?.node !== d && (M && d.removeEventListener("keydown", M), N && d.removeEventListener("keyup", N), $ && d.removeEventListener("focusin", $), B?.disconnect(), cancelAnimationFrame(V), m?.remove(), d.parentNode === c && c.removeChild(d), c.style.position = "");
507
+ V = !0, T?.disconnect(), O?.disconnect(), D && clearTimeout(D), C && clearTimeout(C), d && v.current?.node !== d && (N && d.removeEventListener("keydown", N), $ && d.removeEventListener("keyup", $), j && d.removeEventListener("focusin", j), B?.disconnect(), cancelAnimationFrame(H), h?.remove(), d.parentNode === c && c.removeChild(d), c.style.position = "");
499
508
  };
500
509
  }, [
501
510
  e,
502
- s,
511
+ b,
503
512
  y,
504
- a,
513
+ o,
505
514
  n,
506
- G,
507
- U,
515
+ J,
508
516
  X,
509
- J
517
+ Y,
518
+ Q
510
519
  ]), /* @__PURE__ */ I(
511
520
  "div",
512
521
  {
513
- ref: o,
522
+ ref: l,
523
+ ...a ? { [L]: "" } : {},
514
524
  style: {
515
525
  width: "100%",
516
526
  height: r ? `${r}px` : "400px"
@@ -518,9 +528,9 @@ function Le({
518
528
  }
519
529
  );
520
530
  }
521
- function Be(e) {
531
+ function $e(e) {
522
532
  return typeof window > "u" ? /* @__PURE__ */ I(
523
- oe,
533
+ ne,
524
534
  {
525
535
  sx: {
526
536
  width: "100%",
@@ -533,10 +543,10 @@ function Be(e) {
533
543
  children: "Loading..."
534
544
  }
535
545
  ) : /* @__PURE__ */ I(
536
- ue,
546
+ me,
537
547
  {
538
548
  fallback: /* @__PURE__ */ I(
539
- oe,
549
+ ne,
540
550
  {
541
551
  sx: {
542
552
  width: "100%",
@@ -549,21 +559,21 @@ function Be(e) {
549
559
  children: "Loading visualization..."
550
560
  }
551
561
  ),
552
- children: /* @__PURE__ */ I(Le, { ...e })
562
+ children: /* @__PURE__ */ I(Ne, { ...e })
553
563
  }
554
564
  );
555
565
  }
556
- const Ve = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
566
+ const Ke = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
557
567
  __proto__: null,
558
- default: Be
568
+ default: $e
559
569
  }, Symbol.toStringTag, { value: "Module" }));
560
570
  export {
561
571
  g as D,
562
- Be as R,
563
- De as a,
564
- Ae as b,
565
- Ve as c,
566
- Re as d,
567
- Ee as m,
568
- Oe as r
572
+ $e as R,
573
+ _e as a,
574
+ Oe as b,
575
+ Ke as c,
576
+ Ae as d,
577
+ Te as m,
578
+ Fe as r
569
579
  };