@malloy-publisher/sdk 0.9.4 → 0.9.5

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 (53) hide show
  1. package/dist/{RenderedResult-DwB0-9Yx.es.js → RenderedResult-BUb2Xvr2.es.js} +34 -19
  2. package/dist/{RenderedResult-hKjFEqaN.cjs.js → RenderedResult-qnpbr4tc.cjs.js} +15 -3
  3. package/dist/{ServerProvider-CcSrGaRN.es.js → ServerProvider-C6QQVKPm.es.js} +149 -141
  4. package/dist/ServerProvider-Gj-im5VD.cjs.js +1 -0
  5. package/dist/builder/index.cjs.js +82 -82
  6. package/dist/builder/index.es.js +3242 -3188
  7. package/dist/client/api.d.ts +49 -10
  8. package/dist/client/index.cjs.js +1 -1
  9. package/dist/client/index.es.js +57 -56
  10. package/dist/components/DashboardBuilder/AddTileDialog.d.ts +8 -5
  11. package/dist/components/DashboardBuilder/DashboardBuilder.d.ts +3 -1
  12. package/dist/components/DashboardBuilder/addTileToDocument.d.ts +14 -0
  13. package/dist/components/DashboardBuilder/catalog.d.ts +5 -1
  14. package/dist/components/DashboardBuilder/imports.d.ts +11 -12
  15. package/dist/components/DashboardBuilder/spliceDocument.d.ts +2 -0
  16. package/dist/components/DashboardBuilder/useDashboardEditor.d.ts +2 -0
  17. package/dist/components/DashboardBuilder/useTileEditing.d.ts +3 -1
  18. package/dist/index.cjs.js +1 -1
  19. package/dist/index.es.js +5 -5
  20. package/dist/theme/buildVegaThemeOverride.d.ts +7 -3
  21. package/dist/{useCompiledDocument-BU6d8FPp.es.js → useCompiledDocument-0sxonf6N.es.js} +3707 -3686
  22. package/dist/{useCompiledDocument-pOg2W-Yt.cjs.js → useCompiledDocument-tBejqZ7s.cjs.js} +31 -31
  23. package/package.json +2 -1
  24. package/src/components/DashboardBuilder/AddTileDialog.tsx +16 -11
  25. package/src/components/DashboardBuilder/DashboardBuilder.sources.spec.tsx +13 -5
  26. package/src/components/DashboardBuilder/DashboardBuilder.tsx +5 -0
  27. package/src/components/DashboardBuilder/DashboardEditor.emptyStart.spec.tsx +3 -0
  28. package/src/components/DashboardBuilder/DashboardEditor.resourceUri.spec.tsx +3 -0
  29. package/src/components/DashboardBuilder/DashboardEditor.spec.tsx +10 -2
  30. package/src/components/DashboardBuilder/DashboardEditor.textSource.spec.tsx +79 -3
  31. package/src/components/DashboardBuilder/EditorSurface.tsx +30 -2
  32. package/src/components/DashboardBuilder/addTile.compile.spec.ts +184 -0
  33. package/src/components/DashboardBuilder/addTileToDocument.spec.ts +58 -0
  34. package/src/components/DashboardBuilder/addTileToDocument.ts +64 -0
  35. package/src/components/DashboardBuilder/catalog.aggregate.spec.ts +1 -0
  36. package/src/components/DashboardBuilder/catalog.spec.ts +79 -3
  37. package/src/components/DashboardBuilder/catalog.ts +23 -5
  38. package/src/components/DashboardBuilder/imports.spec.ts +56 -0
  39. package/src/components/DashboardBuilder/imports.ts +16 -13
  40. package/src/components/DashboardBuilder/preview.spec.ts +21 -0
  41. package/src/components/DashboardBuilder/preview.ts +10 -1
  42. package/src/components/DashboardBuilder/spliceDocument.spec.ts +24 -9
  43. package/src/components/DashboardBuilder/spliceDocument.ts +18 -6
  44. package/src/components/DashboardBuilder/useDashboardEditor.ts +6 -2
  45. package/src/components/DashboardBuilder/useTileEditing.ts +13 -48
  46. package/src/components/RenderedResult/RenderedResult.tsx +12 -0
  47. package/src/components/given/GivenInput.tsx +39 -16
  48. package/src/components/given/utils.spec.ts +5 -0
  49. package/src/components/given/utils.ts +1 -1
  50. package/src/theme/buildVegaThemeOverride.spec.ts +11 -1
  51. package/src/theme/buildVegaThemeOverride.ts +10 -3
  52. package/src/timezone_runs.spec.ts +64 -0
  53. package/dist/ServerProvider-Gbf1YPOP.cjs.js +0 -1
package/dist/index.es.js CHANGED
@@ -2,15 +2,15 @@ import { jsx as n, jsxs as T, Fragment as be } from "react/jsx-runtime";
2
2
  import { Link as Fc, useMediaQuery as Lc, Stack as Ye, Typography as ie, Button as mt, Alert as xn, Box as ue, Tooltip as gn, IconButton as Ut, TextField as mn, Grid as ir, Paper as ro, FormControlLabel as us, Switch as ds, Divider as lr, List as hs, ListItemButton as fs, ListItemText as On, TableContainer as Rc, Table as Gr, TableHead as Zr, TableRow as rn, TableCell as ke, TableBody as Yr, Snackbar as ka, Menu as ur, MenuItem as nn, ListItemIcon as dr, Container as po, FormGroup as _c, Dialog as ms, DialogTitle as ps, Chip as qc, DialogContent as gs, CircularProgress as Wc, LinearProgress as zc } from "@mui/material";
3
3
  import * as me from "react";
4
4
  import Ce, { useState as X, useMemo as ut, useRef as Ht, useCallback as Jt, useEffect as ct, useId as ys } from "react";
5
- import { h as tt, ag as ze, z as Be, a4 as St, L as Et, ah as go, ai as bs, P as fa, S as Kr, aj as Vc, ak as Rn, al as gi, am as vs, an as Hc, ao as Va, ap as an, aq as Lt, ar as on, as as Ft, at as sn, au as He, av as yo, aw as Ct, ax as yi, ay as Uc, az as kt, aA as Bc, aB as pt, aC as en, aD as Sa, A as ot, aE as jc, aF as Gc, aG as Zc, aH as ya, aI as We, aJ as bi, aK as Yc, aL as ws, aM as bo, aN as Me, n as ks, aO as Ca, aP as rt, _ as xa, aQ as Kc, aR as ma, aS as Xc, aT as Qc, aU as Ss, aV as Jc, aW as rr, aX as Pn, aY as vi, aZ as Ha, a_ as hn, a$ as wi, b0 as ki, b1 as Si, b2 as eu, b3 as Ci, b4 as xi, b5 as Ua, b6 as tu, b7 as Tn, b8 as nu, b9 as ru, ba as Cs, bb as xs, bc as au, bd as Ti, be as ou, bf as iu, C as su, bg as Ts, bh as lu, bi as Os, bj as Ur, bk as Ms, bl as cu, bm as uu, bn as du, H as Ds, bo as Es, O as Is, bp as hu, bq as fu, br as mu, bs as pu, bt as gu, af as yu, a5 as bu, a9 as vu, ab as wu, a6 as ku, bu as Su, a1 as Cu, Q as xu, a7 as Tu, g as Ou, bv as Mu } from "./useCompiledDocument-BU6d8FPp.es.js";
6
- import { bw as pp, I as gp, bx as yp, by as bp, bz as vp, M as wp, bA as kp, s as Sp, J as Cp, bB as xp, T as Tp, bC as Op, o as Mp, bD as Dp, U as Ep, b as Ip, e as $p, f as Np, F as Ap, bE as Pp, bF as Fp, bG as Lp, bH as Rp, bI as _p, V as qp, m as Wp, bJ as zp, i as Vp, c as Hp, bK as Up, bL as Bp, r as jp, u as Gp, K as Zp, E as Yp, bM as Kp, bN as Xp, bO as Qp, bP as Jp, bQ as eg, bR as tg } from "./useCompiledDocument-BU6d8FPp.es.js";
7
- import { aL as _e, aO as lt, h as Oi, A as $s, aP as vo, W as ft, ag as ua, V as Du, aK as Ns, aQ as Wr, aR as As, aS as Eu, aT as Ps, aU as Iu, aV as $u, aW as Fs, aX as Ls, aY as ar } from "./ServerProvider-CcSrGaRN.es.js";
8
- import { aZ as rg, aC as ag, a_ as og, a$ as ig, b0 as sg, b1 as lg, aN as cg } from "./ServerProvider-CcSrGaRN.es.js";
5
+ import { h as tt, ah as ze, E as Be, a5 as St, L as Et, ai as go, aj as bs, P as fa, S as Kr, ak as Vc, al as Rn, am as gi, an as vs, ao as Hc, ap as Va, aq as an, ar as Lt, as as on, at as Ft, au as sn, av as He, aw as yo, ax as Ct, ay as yi, az as Uc, aA as kt, aB as Bc, aC as pt, aD as en, aE as Sa, A as ot, aF as jc, aG as Gc, aH as Zc, aI as ya, aJ as We, aK as bi, aL as Yc, aM as ws, aN as bo, aO as Me, n as ks, aP as Ca, aQ as rt, $ as xa, aR as Kc, aS as ma, aT as Xc, aU as Qc, aV as Ss, aW as Jc, aX as rr, aY as Pn, aZ as vi, a_ as Ha, a$ as hn, b0 as wi, b1 as ki, b2 as Si, b3 as eu, b4 as Ci, b5 as xi, b6 as Ua, b7 as tu, b8 as Tn, b9 as nu, ba as ru, bb as Cs, bc as xs, bd as au, be as Ti, bf as ou, bg as iu, C as su, bh as Ts, bi as lu, bj as Os, bk as Ur, bl as Ms, bm as cu, bn as uu, bo as du, I as Ds, bp as Es, Q as Is, bq as hu, br as fu, bs as mu, bt as pu, bu as gu, ag as yu, a6 as bu, aa as vu, ac as wu, a7 as ku, bv as Su, a2 as Cu, R as xu, a8 as Tu, g as Ou, bw as Mu } from "./useCompiledDocument-0sxonf6N.es.js";
6
+ import { bx as pp, J as gp, by as yp, bz as bp, bA as vp, M as wp, bB as kp, s as Sp, K as Cp, bC as xp, T as Tp, bD as Op, o as Mp, bE as Dp, U as Ep, b as Ip, e as $p, f as Np, H as Ap, bF as Pp, bG as Fp, bH as Lp, bI as Rp, bJ as _p, W as qp, m as Wp, bK as zp, i as Vp, c as Hp, bL as Up, bM as Bp, r as jp, u as Gp, O as Zp, F as Yp, bN as Kp, bO as Xp, bP as Qp, bQ as Jp, bR as eg, bS as tg } from "./useCompiledDocument-0sxonf6N.es.js";
7
+ import { aM as _e, aP as lt, h as Oi, A as $s, aQ as vo, X as ft, ah as ua, W as Du, aL as Ns, aR as Wr, aS as As, aT as Eu, aU as Ps, aV as Iu, aW as $u, aX as Fs, aY as Ls, aZ as ar } from "./ServerProvider-C6QQVKPm.es.js";
8
+ import { a_ as rg, aD as ag, a$ as og, b0 as ig, b1 as sg, b2 as lg, aO as cg } from "./ServerProvider-C6QQVKPm.es.js";
9
9
  import { useQueryClient as Ta } from "@tanstack/react-query";
10
10
  import { createBox as Nu, createStack as Au, Stack as Pu, Box as Rs } from "@mui/system";
11
11
  import { Delete as Oa, Edit as wo, MoreVert as Ma } from "@mui/icons-material";
12
12
  import { n as Fu } from "./text-entry-CA0LZ1xL.es.js";
13
- import { D as dg, R as hg, b as fg, a as mg, d as pg, m as gg, r as yg } from "./RenderedResult-DwB0-9Yx.es.js";
13
+ import { D as dg, R as hg, b as fg, a as mg, d as pg, m as gg, r as yg } from "./RenderedResult-BUb2Xvr2.es.js";
14
14
  import { useNavigate as _s, useSearchParams as Lu, useLocation as Ru } from "react-router-dom";
15
15
  const _u = tt(/* @__PURE__ */ n("path", {
16
16
  d: "M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"
@@ -10,7 +10,11 @@ import { ResolvedTheme } from './types';
10
10
  * (computed once in `resolveTheme`), so this builder no longer branches
11
11
  * on mode itself.
12
12
  *
13
- * The same config is returned for every chart type today. The
14
- * parameter is reserved for future per-chart-type tweaks.
13
+ * The same config is returned for every chart type except `shape_map`,
14
+ * which also moves its legend below the map.
15
15
  */
16
- export declare function buildVegaThemeOverride(theme: ResolvedTheme): (_chartType: string) => Record<string, unknown>;
16
+ export declare function buildVegaThemeOverride(theme: ResolvedTheme): (chartType: string) => Record<string, unknown> | {
17
+ legend: {
18
+ orient: string;
19
+ };
20
+ };