@malloy-publisher/sdk 0.0.137 → 0.0.139
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/README.md +122 -1
- package/dist/ServerProvider-Bzid56gJ.cjs.js +1 -0
- package/dist/{ServerProvider-BGGK1ZQ_.es.js → ServerProvider-D-y63tG0.es.js} +550 -478
- package/dist/client/api.d.ts +144 -53
- package/dist/client/index.cjs.js +1 -1
- package/dist/client/index.es.js +22 -21
- package/dist/components/Notebook/Notebook.d.ts +4 -1
- package/dist/components/Notebook/NotebookCell.d.ts +2 -2
- package/dist/components/Notebook/types.d.ts +21 -0
- package/dist/components/filter/DimensionFilter.d.ts +43 -0
- package/dist/components/filter/index.d.ts +4 -0
- package/dist/components/filter/utils.d.ts +75 -0
- package/dist/components/index.d.ts +7 -6
- package/dist/components/styles.d.ts +3 -3
- package/dist/hooks/index.d.ts +4 -0
- package/dist/hooks/useDimensionFilters.d.ts +84 -0
- package/dist/hooks/useDimensionFiltersFromSpec.d.ts +52 -0
- package/dist/hooks/useDimensionFiltersQuery.d.ts +79 -0
- package/dist/hooks/useDimensionalFilterRangeData.d.ts +106 -0
- package/dist/index.cjs.js +141 -112
- package/dist/index.d.ts +3 -2
- package/dist/index.es.js +47903 -39798
- package/dist/sdk.css +1 -1
- package/package.json +16 -11
- package/src/components/Home/Home.tsx +15 -11
- package/src/components/Notebook/Notebook.tsx +391 -6
- package/src/components/Notebook/NotebookCell.tsx +2 -2
- package/src/components/Notebook/types.ts +24 -0
- package/src/components/Package/Connections.tsx +3 -6
- package/src/components/RenderedResult/RenderedResult.tsx +22 -3
- package/src/components/filter/DimensionFilter.tsx +738 -0
- package/src/components/filter/index.ts +20 -0
- package/src/components/filter/utils.ts +354 -0
- package/src/components/highlighter.ts +14 -6
- package/src/components/index.ts +7 -6
- package/src/hooks/index.ts +31 -0
- package/src/hooks/useDimensionFilters.ts +322 -0
- package/src/hooks/useDimensionFiltersFromSpec.ts +117 -0
- package/src/hooks/useDimensionFiltersQuery.ts +300 -0
- package/src/hooks/useDimensionalFilterRangeData.ts +758 -0
- package/src/index.ts +3 -2
- package/dist/ServerProvider-lXAaPKBb.cjs.js +0 -1
- package/dist/abap-BmBUA35e.es.js +0 -6
- package/dist/abap-Dwt2rH6y.cjs.js +0 -1
- package/dist/actionscript-3-mj8Uhnsc.cjs.js +0 -1
- package/dist/actionscript-3-zFUbzQa9.es.js +0 -6
- package/dist/ada-CBvPkFpZ.es.js +0 -6
- package/dist/ada-DZM58Vqs.cjs.js +0 -1
- package/dist/andromeeda-BXc5FOIb.cjs.js +0 -1
- package/dist/andromeeda-uXNdzNpk.es.js +0 -4
- package/dist/angular-html-B60m4jt-.cjs.js +0 -1
- package/dist/angular-html-D3aW1y6T.es.js +0 -32
- package/dist/angular-ts-Jud40GrY.es.js +0 -21
- package/dist/angular-ts-SIlYrqkG.cjs.js +0 -1
- package/dist/apache-CVNlsSDc.es.js +0 -6
- package/dist/apache-D7v5fxtZ.cjs.js +0 -1
- package/dist/apex-4hrAnw0a.cjs.js +0 -1
- package/dist/apex-DFk3KRB1.es.js +0 -6
- package/dist/apl-CKSaOFbt.cjs.js +0 -1
- package/dist/apl-pE3PRTDr.es.js +0 -16
- package/dist/applescript-CYMR_y0g.es.js +0 -6
- package/dist/applescript-Cnd3Dxju.cjs.js +0 -1
- package/dist/ara-4QmU5e04.es.js +0 -6
- package/dist/ara-BQ2aGbFQ.cjs.js +0 -1
- package/dist/asciidoc-C6nYvw8K.cjs.js +0 -1
- package/dist/asciidoc-v_1bjgUg.es.js +0 -6
- package/dist/asm-CQnBVCj-.cjs.js +0 -1
- package/dist/asm-RC0Yh-NZ.es.js +0 -6
- package/dist/astro-Be6fybGX.es.js +0 -16
- package/dist/astro-KhYkz6Xu.cjs.js +0 -1
- package/dist/aurora-x-BwoVEUWZ.es.js +0 -4
- package/dist/aurora-x-C5IpmIOG.cjs.js +0 -1
- package/dist/awk-DUx4h__E.cjs.js +0 -1
- package/dist/awk-gPH8MVMW.es.js +0 -6
- package/dist/ayu-dark-Cv7nTiif.cjs.js +0 -1
- package/dist/ayu-dark-CxPZkpb2.es.js +0 -4
- package/dist/ballerina-CXlzbmzl.cjs.js +0 -1
- package/dist/ballerina-kvLnRU_e.es.js +0 -6
- package/dist/bat-BHYy44sT.es.js +0 -6
- package/dist/bat-DlMT9sut.cjs.js +0 -1
- package/dist/beancount-CyyiuUzM.cjs.js +0 -1
- package/dist/beancount-D-MADTs_.es.js +0 -6
- package/dist/berry-B0EjuzrL.cjs.js +0 -1
- package/dist/berry-Ci9U0o4h.es.js +0 -6
- package/dist/bibtex-CX618D15.es.js +0 -6
- package/dist/bibtex-CfoG9xRq.cjs.js +0 -1
- package/dist/bicep-D6PH_9IY.cjs.js +0 -1
- package/dist/bicep-iuYiPopT.es.js +0 -6
- package/dist/blade-C0tMuk8f.cjs.js +0 -1
- package/dist/blade-DmXp5Zcz.es.js +0 -18
- package/dist/bsl-CfHcite8.cjs.js +0 -1
- package/dist/bsl-NPX_d-bb.es.js +0 -8
- package/dist/c-C4sXGJZM.cjs.js +0 -1
- package/dist/c-DASdrs7p.es.js +0 -6
- package/dist/cadence-BDALQi26.es.js +0 -6
- package/dist/cadence-Dq2CYzXG.cjs.js +0 -1
- package/dist/cairo-17kO8-kb.es.js +0 -8
- package/dist/cairo-CcKpJkyf.cjs.js +0 -1
- package/dist/catppuccin-frappe-BrTOiad2.es.js +0 -4
- package/dist/catppuccin-frappe-DXAedND3.cjs.js +0 -1
- package/dist/catppuccin-latte-D-dc_R4m.es.js +0 -4
- package/dist/catppuccin-latte-mwGw3-Ej.cjs.js +0 -1
- package/dist/catppuccin-macchiato-DN4jOp0G.es.js +0 -4
- package/dist/catppuccin-macchiato-cQCk9ADg.cjs.js +0 -1
- package/dist/catppuccin-mocha-B8yCE3-3.es.js +0 -4
- package/dist/catppuccin-mocha-ClSzDZSl.cjs.js +0 -1
- package/dist/clarity-CNgV2Ths.es.js +0 -6
- package/dist/clarity-ytMkUD5Q.cjs.js +0 -1
- package/dist/clojure-B_Wv414H.cjs.js +0 -1
- package/dist/clojure-CsKKFGwv.es.js +0 -6
- package/dist/cmake-Dr-A3iJx.es.js +0 -6
- package/dist/cmake-TBUaQXYY.cjs.js +0 -1
- package/dist/cobol-BzcJm6ie.es.js +0 -10
- package/dist/cobol-DXFNH4EH.cjs.js +0 -1
- package/dist/codeowners-Bt9yU6NX.es.js +0 -6
- package/dist/codeowners-QhPK6lIJ.cjs.js +0 -1
- package/dist/codeql-B7Q9tkDJ.cjs.js +0 -1
- package/dist/codeql-DBNTqJi1.es.js +0 -6
- package/dist/coffee-GRRSkgX1.cjs.js +0 -1
- package/dist/coffee-q2iaxUnQ.es.js +0 -8
- package/dist/common-lisp-Ced3ctK5.cjs.js +0 -1
- package/dist/common-lisp-r7ZEOG7T.es.js +0 -6
- package/dist/coq-BTRB4iqi.cjs.js +0 -1
- package/dist/coq-CB6Pv_W9.es.js +0 -6
- package/dist/cpp-CPOvHZqs.cjs.js +0 -1
- package/dist/cpp-CPQtoCcU.es.js +0 -18
- package/dist/crystal-BY_Cg265.es.js +0 -18
- package/dist/crystal-C6AG-iew.cjs.js +0 -1
- package/dist/csharp-CYWRhZ2R.es.js +0 -6
- package/dist/csharp-TKds-MhG.cjs.js +0 -1
- package/dist/css-B0kbn78J.cjs.js +0 -1
- package/dist/css-D1aVdRIU.es.js +0 -6
- package/dist/csv-BVJjiaC3.cjs.js +0 -1
- package/dist/csv-DvCncUGQ.es.js +0 -6
- package/dist/cue-BXMrmvay.es.js +0 -6
- package/dist/cue-Cz4J-rnd.cjs.js +0 -1
- package/dist/cypher-DTm5zNR1.es.js +0 -6
- package/dist/cypher-DuKTiyez.cjs.js +0 -1
- package/dist/d-BW9Wd7aK.cjs.js +0 -1
- package/dist/d-D6ZXmn3l.es.js +0 -6
- package/dist/dark-plus-Cd5emcYO.cjs.js +0 -1
- package/dist/dark-plus-pUHDTVV0.es.js +0 -4
- package/dist/dart-CWs-er6b.cjs.js +0 -1
- package/dist/dart-Dz59Is3F.es.js +0 -6
- package/dist/dax-CDxFL2Kb.cjs.js +0 -1
- package/dist/dax-DTVGzydb.es.js +0 -6
- package/dist/desktop-CFgo0jo7.cjs.js +0 -1
- package/dist/desktop-Db9vb-dl.es.js +0 -6
- package/dist/diff-BsEkKwI8.cjs.js +0 -1
- package/dist/diff-XmNrvgM1.es.js +0 -6
- package/dist/docker-DWH2onkn.es.js +0 -6
- package/dist/docker-hwiw4W8I.cjs.js +0 -1
- package/dist/dotenv-4337wvzu.es.js +0 -6
- package/dist/dotenv-CJ5o3G1C.cjs.js +0 -1
- package/dist/dracula-BNgwAJ-d.cjs.js +0 -1
- package/dist/dracula-BtZx2Kac.es.js +0 -4
- package/dist/dracula-soft-BHZ7sHFu.cjs.js +0 -1
- package/dist/dracula-soft-BKa-aqBv.es.js +0 -4
- package/dist/dream-maker-CvvfrJSx.es.js +0 -6
- package/dist/dream-maker-DBharE9Q.cjs.js +0 -1
- package/dist/edge-DI6_BHKG.es.js +0 -12
- package/dist/edge-i77KJtJz.cjs.js +0 -1
- package/dist/elixir-D00NoPSM.cjs.js +0 -1
- package/dist/elixir-ic9y5jcd.es.js +0 -8
- package/dist/elm-Bhj5Vf-e.cjs.js +0 -1
- package/dist/elm-DxnUqUaW.es.js +0 -8
- package/dist/emacs-lisp-BAefI874.es.js +0 -6
- package/dist/emacs-lisp-CDDyFsvQ.cjs.js +0 -1
- package/dist/erb-Cbj2YePa.es.js +0 -10
- package/dist/erb-Dybaw01v.cjs.js +0 -1
- package/dist/erlang-3VgdrQXV.cjs.js +0 -1
- package/dist/erlang-CmIiwF3I.es.js +0 -6
- package/dist/everforest-dark-DMCBqXCK.es.js +0 -4
- package/dist/everforest-dark-_sBMomR1.cjs.js +0 -1
- package/dist/everforest-light-BbXl82Em.es.js +0 -4
- package/dist/everforest-light-H0xoYxl0.cjs.js +0 -1
- package/dist/fennel-BvcDRFAV.cjs.js +0 -1
- package/dist/fennel-DNqkz9pE.es.js +0 -6
- package/dist/fish-CnamI0Ar.cjs.js +0 -1
- package/dist/fish-DIm72t2T.es.js +0 -6
- package/dist/fluent-BapTxJsC.es.js +0 -6
- package/dist/fluent-DFpT66K8.cjs.js +0 -1
- package/dist/fortran-fixed-form-DECY15PY.es.js +0 -8
- package/dist/fortran-fixed-form-u_RcUPMu.cjs.js +0 -1
- package/dist/fortran-free-form-CNDsBFUj.es.js +0 -6
- package/dist/fortran-free-form-IaGrWIda.cjs.js +0 -1
- package/dist/fsharp-B-aK2rr3.cjs.js +0 -1
- package/dist/fsharp-D2ZqviWP.es.js +0 -8
- package/dist/gdresource-BBAqNWe4.cjs.js +0 -1
- package/dist/gdresource-RIsK8sku.es.js +0 -10
- package/dist/gdscript-5N_43TPQ.cjs.js +0 -1
- package/dist/gdscript-D7aheHm-.es.js +0 -6
- package/dist/gdshader-BGJEsM2Z.es.js +0 -6
- package/dist/gdshader-Bl85Hrm5.cjs.js +0 -1
- package/dist/genie-C9gPjc6J.es.js +0 -6
- package/dist/genie-DGsxMAbQ.cjs.js +0 -1
- package/dist/gherkin-CVV6nEUH.cjs.js +0 -1
- package/dist/gherkin-bka1Exbx.es.js +0 -6
- package/dist/git-commit-BRJ1E4Bx.es.js +0 -8
- package/dist/git-commit-CwfgI4fD.cjs.js +0 -1
- package/dist/git-rebase-C3X7aMpn.es.js +0 -8
- package/dist/git-rebase-DUvbIQDw.cjs.js +0 -1
- package/dist/github-dark-BKL9xNgN.cjs.js +0 -1
- package/dist/github-dark-DenFmJkN.es.js +0 -4
- package/dist/github-dark-default-BJPUVz4H.es.js +0 -4
- package/dist/github-dark-default-Dsv5MuSi.cjs.js +0 -1
- package/dist/github-dark-dimmed-CtB9hz8U.cjs.js +0 -1
- package/dist/github-dark-dimmed-DUshB20C.es.js +0 -4
- package/dist/github-dark-high-contrast-BqZVM-jF.cjs.js +0 -1
- package/dist/github-dark-high-contrast-D3aGCnF8.es.js +0 -4
- package/dist/github-light-BFTOhCbz.cjs.js +0 -1
- package/dist/github-light-JYsPkUQd.es.js +0 -4
- package/dist/github-light-default-BZoWH9dH.cjs.js +0 -1
- package/dist/github-light-default-D99KPAby.es.js +0 -4
- package/dist/github-light-high-contrast-BbmZE-Mp.es.js +0 -4
- package/dist/github-light-high-contrast-Ks3kPGJU.cjs.js +0 -1
- package/dist/gleam-B4k9YFGD.es.js +0 -6
- package/dist/gleam-nR4mjrhK.cjs.js +0 -1
- package/dist/glimmer-js-C4MQf3Na.es.js +0 -14
- package/dist/glimmer-js-CNfyUqSb.cjs.js +0 -1
- package/dist/glimmer-ts-Bp7_dELi.cjs.js +0 -1
- package/dist/glimmer-ts-CoYpqZrZ.es.js +0 -14
- package/dist/glsl-BYTq1Tfl.es.js +0 -8
- package/dist/glsl-CIu1PL9X.cjs.js +0 -1
- package/dist/gnuplot-CurtDYoJ.cjs.js +0 -1
- package/dist/gnuplot-DnWoRZt-.es.js +0 -6
- package/dist/go-BErP6iv1.es.js +0 -6
- package/dist/go-CM9_GlwL.cjs.js +0 -1
- package/dist/graphql-BnnSMMC2.cjs.js +0 -1
- package/dist/graphql-g3nHRc0M.es.js +0 -14
- package/dist/groovy-BaVp9Il5.cjs.js +0 -1
- package/dist/groovy-IWs5-NIO.es.js +0 -6
- package/dist/hack-BVxH3fsq.cjs.js +0 -1
- package/dist/hack-wPAsyujS.es.js +0 -10
- package/dist/haml-4TJ757dz.es.js +0 -10
- package/dist/haml-vutdexHh.cjs.js +0 -1
- package/dist/handlebars-7GDLw__F.es.js +0 -14
- package/dist/handlebars-COmZnO8P.cjs.js +0 -1
- package/dist/haskell-CtlGos0K.es.js +0 -6
- package/dist/haskell-suhyCHEm.cjs.js +0 -1
- package/dist/haxe-BIQU1qHi.cjs.js +0 -1
- package/dist/haxe-CZZ33vZw.es.js +0 -6
- package/dist/hcl-6hOg9WP4.es.js +0 -6
- package/dist/hcl-CbQ1yCnz.cjs.js +0 -1
- package/dist/hjson-CgwED-oz.es.js +0 -6
- package/dist/hjson-Ddklb4QM.cjs.js +0 -1
- package/dist/hlsl-3-lv4gi7.es.js +0 -6
- package/dist/hlsl-B4NkiBfC.cjs.js +0 -1
- package/dist/houston-BDYrDoDW.es.js +0 -4
- package/dist/houston-T57H3gQZ.cjs.js +0 -1
- package/dist/html-Dc-Bg17s.cjs.js +0 -1
- package/dist/html-PSPajZka.es.js +0 -10
- package/dist/html-derivative-Brb3b4aI.es.js +0 -8
- package/dist/html-derivative-CY9mJeT0.cjs.js +0 -1
- package/dist/http-BrKsebcH.cjs.js +0 -1
- package/dist/http-CWBcr-Ch.es.js +0 -14
- package/dist/hxml-DLduiIv3.es.js +0 -8
- package/dist/hxml-DbGPHkY4.cjs.js +0 -1
- package/dist/hy-C2xHhR6I.es.js +0 -6
- package/dist/hy-DpyTdO3T.cjs.js +0 -1
- package/dist/imba-BEYqRZzB.es.js +0 -8
- package/dist/imba-CAIkF-GD.cjs.js +0 -1
- package/dist/ini-BUcvsX-U.es.js +0 -6
- package/dist/ini-CymULaw_.cjs.js +0 -1
- package/dist/java-B7odJ7Ap.es.js +0 -6
- package/dist/java-Bn1Lvoni.cjs.js +0 -1
- package/dist/javascript-Bnnicc83.cjs.js +0 -1
- package/dist/javascript-fa8UlHZE.es.js +0 -6
- package/dist/jinja-BoeZymy4.cjs.js +0 -1
- package/dist/jinja-DKLHYjK0.es.js +0 -11
- package/dist/jison-C0DlFEjB.cjs.js +0 -1
- package/dist/jison-CzPfUIvM.es.js +0 -8
- package/dist/json-71t8ZF9g.es.js +0 -6
- package/dist/json-y-J1j5EW.cjs.js +0 -1
- package/dist/json5-CzvlWgZ7.cjs.js +0 -1
- package/dist/json5-Z7F6rA6a.es.js +0 -6
- package/dist/jsonc-BnhWfmQw.cjs.js +0 -1
- package/dist/jsonc-Dphhs4m2.es.js +0 -6
- package/dist/jsonl-BbGkWPJz.cjs.js +0 -1
- package/dist/jsonl-D9jj92Gg.es.js +0 -6
- package/dist/jsonnet-Bn--UDZ1.cjs.js +0 -1
- package/dist/jsonnet-DEQ7IUoJ.es.js +0 -6
- package/dist/jssm-4CSVp8lc.cjs.js +0 -1
- package/dist/jssm-j74e88UX.es.js +0 -6
- package/dist/jsx-Bkesy5tT.es.js +0 -6
- package/dist/jsx-D8YwVp-7.cjs.js +0 -1
- package/dist/julia-B_r6juN7.es.js +0 -16
- package/dist/julia-DLxGoAlk.cjs.js +0 -1
- package/dist/kanagawa-dragon-BJZF7xDr.cjs.js +0 -1
- package/dist/kanagawa-dragon-CiKur4Hl.es.js +0 -4
- package/dist/kanagawa-lotus-BKu-smKu.es.js +0 -4
- package/dist/kanagawa-lotus-BhgzmRV4.cjs.js +0 -1
- package/dist/kanagawa-wave-BgJip59C.cjs.js +0 -1
- package/dist/kanagawa-wave-CQwozSzG.es.js +0 -4
- package/dist/kotlin-DCgZY7Ii.es.js +0 -6
- package/dist/kotlin-DDI6myF6.cjs.js +0 -1
- package/dist/kusto-Cw029H-v.es.js +0 -6
- package/dist/kusto-OZxALJZT.cjs.js +0 -1
- package/dist/laserwave--izBLY1I.cjs.js +0 -1
- package/dist/laserwave-6a00oqik.es.js +0 -4
- package/dist/latex-CXOK56Uv.cjs.js +0 -1
- package/dist/latex-GxBxlqbc.es.js +0 -8
- package/dist/lean-CYSet4vs.es.js +0 -6
- package/dist/lean-D1iY-35j.cjs.js +0 -1
- package/dist/less-DIaY7vQJ.cjs.js +0 -1
- package/dist/less-DQA4v-Nm.es.js +0 -6
- package/dist/light-plus-B5D0le0o.cjs.js +0 -1
- package/dist/light-plus-CZuVqSLX.es.js +0 -4
- package/dist/liquid-BYouVITI.cjs.js +0 -1
- package/dist/liquid-BxBkR-z5.es.js +0 -14
- package/dist/log-BIXUeBaj.cjs.js +0 -1
- package/dist/log-D2eRfqDn.es.js +0 -6
- package/dist/logo-B2d3b27P.cjs.js +0 -1
- package/dist/logo-QEAtGWZ9.es.js +0 -6
- package/dist/lua-B2_GGnC5.cjs.js +0 -1
- package/dist/lua-DeXVjwzF.es.js +0 -8
- package/dist/luau-BjYGiqID.es.js +0 -6
- package/dist/luau-CvqAeq4F.cjs.js +0 -1
- package/dist/make-BjuHP00g.es.js +0 -6
- package/dist/make-Oob5Z9Pk.cjs.js +0 -1
- package/dist/markdown-B6guhLWd.es.js +0 -6
- package/dist/markdown-BGBuj4LZ.cjs.js +0 -1
- package/dist/marko-CS7eEGs3.cjs.js +0 -1
- package/dist/marko-DwPYPpB3.es.js +0 -14
- package/dist/material-theme-D6KBX41T.es.js +0 -4
- package/dist/material-theme-Dj0-OyRN.cjs.js +0 -1
- package/dist/material-theme-darker-CkRroheE.es.js +0 -4
- package/dist/material-theme-darker-Dvfs29ir.cjs.js +0 -1
- package/dist/material-theme-lighter-BUBw43Yz.es.js +0 -4
- package/dist/material-theme-lighter-EU3ZGl_r.cjs.js +0 -1
- package/dist/material-theme-ocean-ClGX14Ja.es.js +0 -4
- package/dist/material-theme-ocean-px_3Pwqa.cjs.js +0 -1
- package/dist/material-theme-palenight-38jxvsGX.cjs.js +0 -1
- package/dist/material-theme-palenight-C1RVm8K1.es.js +0 -4
- package/dist/matlab-BpQlIJiw.es.js +0 -6
- package/dist/matlab-CbN2rF6P.cjs.js +0 -1
- package/dist/mdc-Bkl-bu_Z.cjs.js +0 -1
- package/dist/mdc-X4YjkufV.es.js +0 -12
- package/dist/mdx-Cl31h8mi.cjs.js +0 -1
- package/dist/mdx-DIoECIFU.es.js +0 -6
- package/dist/mermaid-BZ7WHNIe.es.js +0 -6
- package/dist/mermaid-CSogK_LM.cjs.js +0 -1
- package/dist/min-dark-C7ak0t6c.es.js +0 -4
- package/dist/min-dark-tt5o_I5e.cjs.js +0 -1
- package/dist/min-light-CKFxVcPp.es.js +0 -4
- package/dist/min-light-tmTHl_CQ.cjs.js +0 -1
- package/dist/mipsasm-BseoYJQp.cjs.js +0 -1
- package/dist/mipsasm-DusDYkFc.es.js +0 -6
- package/dist/mojo-CY9jaezJ.es.js +0 -6
- package/dist/mojo-D8QAG3Ze.cjs.js +0 -1
- package/dist/monokai-C1KBYcO0.es.js +0 -4
- package/dist/monokai-DMIxv6MM.cjs.js +0 -1
- package/dist/move-ChphFumd.es.js +0 -6
- package/dist/move-DaBrcjat.cjs.js +0 -1
- package/dist/narrat-Dz4d7OmN.es.js +0 -6
- package/dist/narrat-oOfAO4q8.cjs.js +0 -1
- package/dist/nextflow-BxJSKvPb.cjs.js +0 -1
- package/dist/nextflow-DW0Yq9a2.es.js +0 -6
- package/dist/nginx-ChI-VqNT.es.js +0 -8
- package/dist/nginx-LuyFICzP.cjs.js +0 -1
- package/dist/night-owl-BN78kThQ.cjs.js +0 -1
- package/dist/night-owl-Bm2rzalh.es.js +0 -4
- package/dist/nim-BiJA-5u7.es.js +0 -20
- package/dist/nim-DkC83hsN.cjs.js +0 -1
- package/dist/nix-Cg5uV_xg.es.js +0 -6
- package/dist/nix-DNME0Ea7.cjs.js +0 -1
- package/dist/nord-CC5OiUXg.es.js +0 -4
- package/dist/nord-Ca5AGUWc.cjs.js +0 -1
- package/dist/nushell-BfRnzRWn.es.js +0 -6
- package/dist/nushell-DI9Z3l3M.cjs.js +0 -1
- package/dist/objective-c-BGg9R27G.es.js +0 -6
- package/dist/objective-c-DVx8Rcni.cjs.js +0 -1
- package/dist/objective-cpp-CJ3y3V_5.es.js +0 -6
- package/dist/objective-cpp-s6XI7Jvk.cjs.js +0 -1
- package/dist/ocaml-BZLsfx_o.es.js +0 -6
- package/dist/ocaml-kUzDDUf2.cjs.js +0 -1
- package/dist/one-dark-pro-D7-kP8fv.es.js +0 -4
- package/dist/one-dark-pro-JOzzHStv.cjs.js +0 -1
- package/dist/one-light-020-h_lv.cjs.js +0 -1
- package/dist/one-light-D9sNaUtq.es.js +0 -4
- package/dist/pascal-D509_I72.cjs.js +0 -1
- package/dist/pascal-l2bqd7Dz.es.js +0 -6
- package/dist/perl-CkXYjL3t.es.js +0 -16
- package/dist/perl-DUnCLRB_.cjs.js +0 -1
- package/dist/php-D0k1sQr6.cjs.js +0 -1
- package/dist/php-q40Yjh5d.es.js +0 -18
- package/dist/plastic-CSTz3KZp.es.js +0 -4
- package/dist/plastic-r5piqq-S.cjs.js +0 -1
- package/dist/plsql-C_qH_YOK.cjs.js +0 -1
- package/dist/plsql-oVq_K_wH.es.js +0 -6
- package/dist/po-5jaeIyVd.es.js +0 -6
- package/dist/po-CBsLQIcu.cjs.js +0 -1
- package/dist/poimandres-BLP3NNjc.cjs.js +0 -1
- package/dist/poimandres-C-VADXHD.es.js +0 -4
- package/dist/polar-De-CDeYv.cjs.js +0 -1
- package/dist/polar-wcLp8ci7.es.js +0 -6
- package/dist/postcss-BZ3MNRIJ.es.js +0 -6
- package/dist/postcss-BtcsgaYj.cjs.js +0 -1
- package/dist/powerquery-B0rHn13V.cjs.js +0 -1
- package/dist/powerquery-CgRa2XRw.es.js +0 -6
- package/dist/powershell-Diwyv8Eh.es.js +0 -6
- package/dist/powershell-rCX2OYXT.cjs.js +0 -1
- package/dist/prisma-BaaUHYMp.cjs.js +0 -1
- package/dist/prisma-COL_v1x4.es.js +0 -6
- package/dist/prolog-CuvJOxqT.es.js +0 -6
- package/dist/prolog-DrXD2tGS.cjs.js +0 -1
- package/dist/proto-BtmQjBQu.cjs.js +0 -1
- package/dist/proto-o9HLmF90.es.js +0 -6
- package/dist/pug-Br4hpvIv.es.js +0 -12
- package/dist/pug-CFQMpTUe.cjs.js +0 -1
- package/dist/puppet-cIrXIuy8.cjs.js +0 -1
- package/dist/puppet-wpGOnQp5.es.js +0 -6
- package/dist/purescript-B_1NgE2N.es.js +0 -6
- package/dist/purescript-CX9QPs2N.cjs.js +0 -1
- package/dist/python-B9x3euv6.cjs.js +0 -1
- package/dist/python-xYxLFJY-.es.js +0 -6
- package/dist/qml-CzqrIM5W.cjs.js +0 -1
- package/dist/qml-D5gi21kK.es.js +0 -8
- package/dist/qmldir-BInDYbpo.es.js +0 -6
- package/dist/qmldir-DNF9H2ir.cjs.js +0 -1
- package/dist/qss-C744dLby.cjs.js +0 -1
- package/dist/qss-D-h4NdUG.es.js +0 -6
- package/dist/r-DgOc9oMe.cjs.js +0 -1
- package/dist/r-F-9I-ITZ.es.js +0 -6
- package/dist/racket-BoD1TBFT.es.js +0 -6
- package/dist/racket-Do9_vqnd.cjs.js +0 -1
- package/dist/raku-BW8wAUIz.cjs.js +0 -1
- package/dist/raku-IaYcw19m.es.js +0 -6
- package/dist/razor-Bt_t1YJb.es.js +0 -10
- package/dist/razor-COQhlwWF.cjs.js +0 -1
- package/dist/red-7y8PH7HH.es.js +0 -4
- package/dist/red-BQGOv1D5.cjs.js +0 -1
- package/dist/reg-CGWN_v-z.cjs.js +0 -1
- package/dist/reg-CMUdAgIP.es.js +0 -6
- package/dist/regexp-GiFkbxS-.es.js +0 -6
- package/dist/regexp-N7Z4hEeU.cjs.js +0 -1
- package/dist/rel-BYqA7mnV.cjs.js +0 -1
- package/dist/rel-BaRn3QX7.es.js +0 -6
- package/dist/riscv-B9V3SsvW.es.js +0 -6
- package/dist/riscv-ayQMUpo9.cjs.js +0 -1
- package/dist/rose-pine-DKEdv1Oe.cjs.js +0 -1
- package/dist/rose-pine-DhT-HZE9.es.js +0 -4
- package/dist/rose-pine-dawn-Bvt6DtVH.cjs.js +0 -1
- package/dist/rose-pine-dawn-DiCjL2i4.es.js +0 -4
- package/dist/rose-pine-moon-BNmGHlcn.es.js +0 -4
- package/dist/rose-pine-moon-cHuJy0Ng.cjs.js +0 -1
- package/dist/rst-BmKw97ch.es.js +0 -22
- package/dist/rst-Bq-h_T5U.cjs.js +0 -1
- package/dist/ruby-Bw5IEIKD.cjs.js +0 -1
- package/dist/ruby-cs7BSa_9.es.js +0 -30
- package/dist/rust-BnFKGEfa.cjs.js +0 -1
- package/dist/rust-Pc7DCsZD.es.js +0 -6
- package/dist/sas-BWKaSYkZ.cjs.js +0 -1
- package/dist/sas-DgvHx4mL.es.js +0 -8
- package/dist/sass-B9gYryDE.cjs.js +0 -1
- package/dist/sass-iCyS6eP9.es.js +0 -6
- package/dist/scala-C85dOwSU.cjs.js +0 -1
- package/dist/scala-Cly-fENF.es.js +0 -6
- package/dist/scheme-B_XUaARm.cjs.js +0 -1
- package/dist/scheme-Zi24oEYu.es.js +0 -6
- package/dist/scss-B_hSZppj.es.js +0 -8
- package/dist/scss-CV3c8_Y7.cjs.js +0 -1
- package/dist/sdbl-7Y5u0OW0.cjs.js +0 -1
- package/dist/sdbl-BBamrXFL.es.js +0 -6
- package/dist/shaderlab-CJ8U2E2w.cjs.js +0 -1
- package/dist/shaderlab-U9mqcu_f.es.js +0 -8
- package/dist/shellscript-3DYM9fut.cjs.js +0 -1
- package/dist/shellscript-Dn0-btNd.es.js +0 -6
- package/dist/shellsession-CbKmorC3.cjs.js +0 -1
- package/dist/shellsession-LvXGClmj.es.js +0 -8
- package/dist/slack-dark-akqwQ7ED.cjs.js +0 -1
- package/dist/slack-dark-i7wN4OET.es.js +0 -4
- package/dist/slack-ochin-BoQQWmTv.cjs.js +0 -1
- package/dist/slack-ochin-ndHf0LoP.es.js +0 -4
- package/dist/smalltalk-CCvytUuW.cjs.js +0 -1
- package/dist/smalltalk-Cns31tKw.es.js +0 -6
- package/dist/snazzy-light-BlSJXAu4.es.js +0 -4
- package/dist/snazzy-light-D_IwRieF.cjs.js +0 -1
- package/dist/solarized-dark-UTmkh7lw.es.js +0 -4
- package/dist/solarized-dark-gmm-WbDC.cjs.js +0 -1
- package/dist/solarized-light-BheCkDPT.es.js +0 -4
- package/dist/solarized-light-DzcxRSZP.cjs.js +0 -1
- package/dist/solidity-BG_k8fA_.es.js +0 -6
- package/dist/solidity-BcNcjFC4.cjs.js +0 -1
- package/dist/soy-B2d9ZydM.cjs.js +0 -1
- package/dist/soy-C0yEn39K.es.js +0 -8
- package/dist/sparql-CiBxIK0g.cjs.js +0 -1
- package/dist/sparql-CuZaxpno.es.js +0 -8
- package/dist/splunk-CTqDjQdo.es.js +0 -6
- package/dist/splunk-CzITjJj7.cjs.js +0 -1
- package/dist/sql-BqWZrLHB.cjs.js +0 -1
- package/dist/sql-DCkt643-.es.js +0 -6
- package/dist/ssh-config-DHHGll-v.es.js +0 -6
- package/dist/ssh-config-DUPeuEdB.cjs.js +0 -1
- package/dist/stata-B8m3qL-x.cjs.js +0 -1
- package/dist/stata-Dv81f34z.es.js +0 -8
- package/dist/stylus-ByHs6N-o.cjs.js +0 -1
- package/dist/stylus-n_9f0QQ5.es.js +0 -6
- package/dist/svelte-CfLoBBrI.cjs.js +0 -1
- package/dist/svelte-SoJd35Jr.es.js +0 -14
- package/dist/swift-BAWqNR8A.es.js +0 -6
- package/dist/swift-C5DnOriA.cjs.js +0 -1
- package/dist/synthwave-84-BBRLOmNT.cjs.js +0 -1
- package/dist/synthwave-84-NU3C_KFZ.es.js +0 -4
- package/dist/system-verilog-ClPLYLwh.cjs.js +0 -1
- package/dist/system-verilog-Cui-g-ut.es.js +0 -6
- package/dist/systemd-BASX0DlX.cjs.js +0 -1
- package/dist/systemd-CsKYQIQK.es.js +0 -6
- package/dist/talonscript-D2dGh8FO.es.js +0 -6
- package/dist/talonscript-DkCSnLHD.cjs.js +0 -1
- package/dist/tasl-BAQJK7KZ.cjs.js +0 -1
- package/dist/tasl-D3W8HMV6.es.js +0 -6
- package/dist/tcl-2y0Fuc4S.es.js +0 -6
- package/dist/tcl-CwJAYTvh.cjs.js +0 -1
- package/dist/templ-BSMv2wKZ.cjs.js +0 -1
- package/dist/templ-C7he2afp.es.js +0 -12
- package/dist/terraform-BGW6Oerf.es.js +0 -6
- package/dist/terraform-s-pzyVvp.cjs.js +0 -1
- package/dist/tex-B0y3cEZp.es.js +0 -8
- package/dist/tex-DwtFCA08.cjs.js +0 -1
- package/dist/tokyo-night-9T7_vGSy.cjs.js +0 -1
- package/dist/tokyo-night-LhP3hHhi.es.js +0 -4
- package/dist/toml-CQSfOn0e.es.js +0 -6
- package/dist/toml-CyMM7IXy.cjs.js +0 -1
- package/dist/ts-tags-C5-4VQhf.es.js +0 -41
- package/dist/ts-tags-MIr66hKK.cjs.js +0 -1
- package/dist/tsv-BtvSkaG0.es.js +0 -6
- package/dist/tsv-DqNGnuVj.cjs.js +0 -1
- package/dist/tsx-DiGsgWT8.es.js +0 -6
- package/dist/tsx-DpBRUnKC.cjs.js +0 -1
- package/dist/turtle-BJ2wmjPc.es.js +0 -6
- package/dist/turtle-DfO3eAsu.cjs.js +0 -1
- package/dist/twig-BzjoX4ZJ.cjs.js +0 -1
- package/dist/twig-OmkATFdv.es.js +0 -18
- package/dist/typescript-BqvpT6pB.cjs.js +0 -1
- package/dist/typescript-buWNZFwO.es.js +0 -6
- package/dist/typespec-P-ZVy8yC.cjs.js +0 -1
- package/dist/typespec-bLbdsxJL.es.js +0 -6
- package/dist/typst-BVh2IsT9.cjs.js +0 -1
- package/dist/typst-Y9_SmXTs.es.js +0 -6
- package/dist/v-BUlE9136.cjs.js +0 -1
- package/dist/v-wa8Orrdd.es.js +0 -6
- package/dist/vala-BIymb2K_.cjs.js +0 -1
- package/dist/vala-DRdriFr_.es.js +0 -6
- package/dist/vb-E2_-jk4M.es.js +0 -6
- package/dist/vb-IXOh8mqV.cjs.js +0 -1
- package/dist/verilog-B1iBoR5_.es.js +0 -6
- package/dist/verilog-BiglCqvO.cjs.js +0 -1
- package/dist/vesper-CJsaOsSM.es.js +0 -4
- package/dist/vesper-DqLWLxOu.cjs.js +0 -1
- package/dist/vhdl-CJUzuS2t.cjs.js +0 -1
- package/dist/vhdl-CRVaAhXk.es.js +0 -6
- package/dist/viml-B-zWOd7Z.es.js +0 -6
- package/dist/viml-B1nKLcgt.cjs.js +0 -1
- package/dist/vitesse-black-BoGvW84i.es.js +0 -4
- package/dist/vitesse-black-MF-1S1MG.cjs.js +0 -1
- package/dist/vitesse-dark-Cym-eLtO.es.js +0 -4
- package/dist/vitesse-dark-SIffJYSe.cjs.js +0 -1
- package/dist/vitesse-light-CcmG315c.es.js +0 -4
- package/dist/vitesse-light-U63SkYGT.cjs.js +0 -1
- package/dist/vue-DCwwWMGI.es.js +0 -31
- package/dist/vue-DYZqcRaZ.cjs.js +0 -1
- package/dist/vue-html-CdPbyrq1.cjs.js +0 -1
- package/dist/vue-html-sRE_Ny23.es.js +0 -10
- package/dist/vyper-CO9xUkIY.cjs.js +0 -1
- package/dist/vyper-DWutKXpa.es.js +0 -6
- package/dist/wasm-Bv5f0gKv.es.js +0 -6
- package/dist/wasm-CdIThIat.cjs.js +0 -1
- package/dist/wenyan-BMYnfus1.es.js +0 -6
- package/dist/wenyan-BSJ3fk7e.cjs.js +0 -1
- package/dist/wgsl-DnPoPGDU.es.js +0 -6
- package/dist/wgsl-d3zZE7ZN.cjs.js +0 -1
- package/dist/wikitext-BRCqXN2g.cjs.js +0 -1
- package/dist/wikitext-CntM04PE.es.js +0 -6
- package/dist/wolfram-C3rR92zj.cjs.js +0 -1
- package/dist/wolfram-Ws5qPlX9.es.js +0 -6
- package/dist/xml-BRLTD55J.cjs.js +0 -1
- package/dist/xml-Ch1q_kJp.es.js +0 -8
- package/dist/xsl-DyL8yqXw.es.js +0 -8
- package/dist/xsl-ETbYGV_-.cjs.js +0 -1
- package/dist/yaml-7DV6pRKj.cjs.js +0 -1
- package/dist/yaml-Bbg74JKr.es.js +0 -6
- package/dist/zenscript-BWMxwjeH.cjs.js +0 -1
- package/dist/zenscript-C0RKE4nU.es.js +0 -6
- package/dist/zig-D6SXBGNm.es.js +0 -6
- package/dist/zig-yAcNfpgW.cjs.js +0 -1
package/dist/client/api.d.ts
CHANGED
|
@@ -161,43 +161,6 @@ export interface CompiledModel {
|
|
|
161
161
|
*/
|
|
162
162
|
'queries'?: Array<Query>;
|
|
163
163
|
}
|
|
164
|
-
/**
|
|
165
|
-
* Compiled Malloy notebook with cells, results, and execution data
|
|
166
|
-
* @export
|
|
167
|
-
* @interface CompiledNotebook
|
|
168
|
-
*/
|
|
169
|
-
export interface CompiledNotebook {
|
|
170
|
-
/**
|
|
171
|
-
* Resource path to the notebook
|
|
172
|
-
* @type {string}
|
|
173
|
-
* @memberof CompiledNotebook
|
|
174
|
-
*/
|
|
175
|
-
'resource'?: string;
|
|
176
|
-
/**
|
|
177
|
-
* Name of the package containing this notebook
|
|
178
|
-
* @type {string}
|
|
179
|
-
* @memberof CompiledNotebook
|
|
180
|
-
*/
|
|
181
|
-
'packageName'?: string;
|
|
182
|
-
/**
|
|
183
|
-
* Relative path to the notebook file within its package directory
|
|
184
|
-
* @type {string}
|
|
185
|
-
* @memberof CompiledNotebook
|
|
186
|
-
*/
|
|
187
|
-
'path'?: string;
|
|
188
|
-
/**
|
|
189
|
-
* Version of the Malloy compiler used to generate the notebook data
|
|
190
|
-
* @type {string}
|
|
191
|
-
* @memberof CompiledNotebook
|
|
192
|
-
*/
|
|
193
|
-
'malloyVersion'?: string;
|
|
194
|
-
/**
|
|
195
|
-
* Array of notebook cells containing code, markdown, and execution results
|
|
196
|
-
* @type {Array<NotebookCell>}
|
|
197
|
-
* @memberof CompiledNotebook
|
|
198
|
-
*/
|
|
199
|
-
'notebookCells'?: Array<NotebookCell>;
|
|
200
|
-
}
|
|
201
164
|
/**
|
|
202
165
|
* Database connection configuration and metadata
|
|
203
166
|
* @export
|
|
@@ -535,29 +498,65 @@ export interface NotebookCell {
|
|
|
535
498
|
*/
|
|
536
499
|
'type'?: NotebookCellTypeEnum;
|
|
537
500
|
/**
|
|
538
|
-
* Text contents of the notebook cell
|
|
501
|
+
* Text contents of the notebook cell (either markdown or Malloy code)
|
|
539
502
|
* @type {string}
|
|
540
503
|
* @memberof NotebookCell
|
|
541
504
|
*/
|
|
542
505
|
'text'?: string;
|
|
543
506
|
/**
|
|
544
|
-
* JSON
|
|
507
|
+
* Array of JSON strings containing SourceInfo objects made available in this cell
|
|
508
|
+
* @type {Array<string>}
|
|
509
|
+
* @memberof NotebookCell
|
|
510
|
+
*/
|
|
511
|
+
'newSources'?: Array<string>;
|
|
512
|
+
/**
|
|
513
|
+
* JSON string containing QueryInfo object for the query in this cell (if the cell contains a query)
|
|
545
514
|
* @type {string}
|
|
546
515
|
* @memberof NotebookCell
|
|
547
516
|
*/
|
|
517
|
+
'queryInfo'?: string;
|
|
518
|
+
}
|
|
519
|
+
export declare const NotebookCellTypeEnum: {
|
|
520
|
+
readonly Markdown: "markdown";
|
|
521
|
+
readonly Code: "code";
|
|
522
|
+
};
|
|
523
|
+
export type NotebookCellTypeEnum = typeof NotebookCellTypeEnum[keyof typeof NotebookCellTypeEnum];
|
|
524
|
+
/**
|
|
525
|
+
* Result of executing a notebook cell
|
|
526
|
+
* @export
|
|
527
|
+
* @interface NotebookCellResult
|
|
528
|
+
*/
|
|
529
|
+
export interface NotebookCellResult {
|
|
530
|
+
/**
|
|
531
|
+
* Type of notebook cell
|
|
532
|
+
* @type {string}
|
|
533
|
+
* @memberof NotebookCellResult
|
|
534
|
+
*/
|
|
535
|
+
'type'?: NotebookCellResultTypeEnum;
|
|
536
|
+
/**
|
|
537
|
+
* Text contents of the notebook cell
|
|
538
|
+
* @type {string}
|
|
539
|
+
* @memberof NotebookCellResult
|
|
540
|
+
*/
|
|
541
|
+
'text'?: string;
|
|
542
|
+
/**
|
|
543
|
+
* JSON string containing the execution result for this cell
|
|
544
|
+
* @type {string}
|
|
545
|
+
* @memberof NotebookCellResult
|
|
546
|
+
*/
|
|
548
547
|
'result'?: string;
|
|
549
548
|
/**
|
|
550
549
|
* Array of JSON strings containing SourceInfo objects made available in this cell
|
|
551
550
|
* @type {Array<string>}
|
|
552
|
-
* @memberof
|
|
551
|
+
* @memberof NotebookCellResult
|
|
553
552
|
*/
|
|
554
553
|
'newSources'?: Array<string>;
|
|
555
554
|
}
|
|
556
|
-
export declare const
|
|
555
|
+
export declare const NotebookCellResultTypeEnum: {
|
|
557
556
|
readonly Markdown: "markdown";
|
|
558
557
|
readonly Code: "code";
|
|
559
558
|
};
|
|
560
|
-
export type
|
|
559
|
+
export type NotebookCellResultTypeEnum = typeof NotebookCellResultTypeEnum[keyof typeof NotebookCellResultTypeEnum];
|
|
561
560
|
/**
|
|
562
561
|
* Represents a Malloy package containing models, notebooks, and embedded databases
|
|
563
562
|
* @export
|
|
@@ -782,6 +781,49 @@ export interface QueryResult {
|
|
|
782
781
|
*/
|
|
783
782
|
'resource'?: string;
|
|
784
783
|
}
|
|
784
|
+
/**
|
|
785
|
+
* Raw Malloy notebook with unexecuted cell contents
|
|
786
|
+
* @export
|
|
787
|
+
* @interface RawNotebook
|
|
788
|
+
*/
|
|
789
|
+
export interface RawNotebook {
|
|
790
|
+
/**
|
|
791
|
+
* Resource path to the notebook
|
|
792
|
+
* @type {string}
|
|
793
|
+
* @memberof RawNotebook
|
|
794
|
+
*/
|
|
795
|
+
'resource'?: string;
|
|
796
|
+
/**
|
|
797
|
+
* Name of the package containing this notebook
|
|
798
|
+
* @type {string}
|
|
799
|
+
* @memberof RawNotebook
|
|
800
|
+
*/
|
|
801
|
+
'packageName'?: string;
|
|
802
|
+
/**
|
|
803
|
+
* Relative path to the notebook file within its package directory
|
|
804
|
+
* @type {string}
|
|
805
|
+
* @memberof RawNotebook
|
|
806
|
+
*/
|
|
807
|
+
'path'?: string;
|
|
808
|
+
/**
|
|
809
|
+
* Version of the Malloy compiler used to generate the notebook data
|
|
810
|
+
* @type {string}
|
|
811
|
+
* @memberof RawNotebook
|
|
812
|
+
*/
|
|
813
|
+
'malloyVersion'?: string;
|
|
814
|
+
/**
|
|
815
|
+
* Array of notebook cells containing raw markdown and code content
|
|
816
|
+
* @type {Array<NotebookCell>}
|
|
817
|
+
* @memberof RawNotebook
|
|
818
|
+
*/
|
|
819
|
+
'notebookCells'?: Array<NotebookCell>;
|
|
820
|
+
/**
|
|
821
|
+
* Array of file-level (##) annotations attached to the notebook
|
|
822
|
+
* @type {Array<string>}
|
|
823
|
+
* @memberof RawNotebook
|
|
824
|
+
*/
|
|
825
|
+
'annotations'?: Array<string>;
|
|
826
|
+
}
|
|
785
827
|
/**
|
|
786
828
|
* A schema name in a Connection.
|
|
787
829
|
* @export
|
|
@@ -1947,8 +1989,20 @@ export declare class ModelsApi extends BaseAPI {
|
|
|
1947
1989
|
*/
|
|
1948
1990
|
export declare const NotebooksApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
1949
1991
|
/**
|
|
1950
|
-
*
|
|
1951
|
-
* @summary
|
|
1992
|
+
* Executes a specific cell in a Malloy notebook by index. For code cells, this compiles and runs the Malloy code, returning query results and any new sources defined. For markdown cells, this simply returns the cell content.
|
|
1993
|
+
* @summary Execute a specific notebook cell
|
|
1994
|
+
* @param {string} projectName Name of the project
|
|
1995
|
+
* @param {string} packageName Name of the package
|
|
1996
|
+
* @param {string} path Path to notebook within the package
|
|
1997
|
+
* @param {number} cellIndex Index of the cell to execute (0-based)
|
|
1998
|
+
* @param {string} [versionId] Version identifier for the package
|
|
1999
|
+
* @param {*} [options] Override http request option.
|
|
2000
|
+
* @throws {RequiredError}
|
|
2001
|
+
*/
|
|
2002
|
+
executeNotebookCell: (projectName: string, packageName: string, path: string, cellIndex: number, versionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2003
|
+
/**
|
|
2004
|
+
* Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
|
|
2005
|
+
* @summary Get Malloy notebook cells
|
|
1952
2006
|
* @param {string} projectName Name of the project
|
|
1953
2007
|
* @param {string} packageName Name of the package
|
|
1954
2008
|
* @param {string} path Path to notebook within the package.
|
|
@@ -1974,8 +2028,20 @@ export declare const NotebooksApiAxiosParamCreator: (configuration?: Configurati
|
|
|
1974
2028
|
*/
|
|
1975
2029
|
export declare const NotebooksApiFp: (configuration?: Configuration) => {
|
|
1976
2030
|
/**
|
|
1977
|
-
*
|
|
1978
|
-
* @summary
|
|
2031
|
+
* Executes a specific cell in a Malloy notebook by index. For code cells, this compiles and runs the Malloy code, returning query results and any new sources defined. For markdown cells, this simply returns the cell content.
|
|
2032
|
+
* @summary Execute a specific notebook cell
|
|
2033
|
+
* @param {string} projectName Name of the project
|
|
2034
|
+
* @param {string} packageName Name of the package
|
|
2035
|
+
* @param {string} path Path to notebook within the package
|
|
2036
|
+
* @param {number} cellIndex Index of the cell to execute (0-based)
|
|
2037
|
+
* @param {string} [versionId] Version identifier for the package
|
|
2038
|
+
* @param {*} [options] Override http request option.
|
|
2039
|
+
* @throws {RequiredError}
|
|
2040
|
+
*/
|
|
2041
|
+
executeNotebookCell(projectName: string, packageName: string, path: string, cellIndex: number, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<NotebookCellResult>>;
|
|
2042
|
+
/**
|
|
2043
|
+
* Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
|
|
2044
|
+
* @summary Get Malloy notebook cells
|
|
1979
2045
|
* @param {string} projectName Name of the project
|
|
1980
2046
|
* @param {string} packageName Name of the package
|
|
1981
2047
|
* @param {string} path Path to notebook within the package.
|
|
@@ -1983,7 +2049,7 @@ export declare const NotebooksApiFp: (configuration?: Configuration) => {
|
|
|
1983
2049
|
* @param {*} [options] Override http request option.
|
|
1984
2050
|
* @throws {RequiredError}
|
|
1985
2051
|
*/
|
|
1986
|
-
getNotebook(projectName: string, packageName: string, path: string, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
2052
|
+
getNotebook(projectName: string, packageName: string, path: string, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RawNotebook>>;
|
|
1987
2053
|
/**
|
|
1988
2054
|
* Retrieves a list of all Malloy notebooks within the specified package. Each notebook entry includes the relative path, package name, and any compilation errors. This endpoint is useful for discovering available notebooks and checking their status.
|
|
1989
2055
|
* @summary List package notebooks
|
|
@@ -2001,8 +2067,20 @@ export declare const NotebooksApiFp: (configuration?: Configuration) => {
|
|
|
2001
2067
|
*/
|
|
2002
2068
|
export declare const NotebooksApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
2003
2069
|
/**
|
|
2004
|
-
*
|
|
2005
|
-
* @summary
|
|
2070
|
+
* Executes a specific cell in a Malloy notebook by index. For code cells, this compiles and runs the Malloy code, returning query results and any new sources defined. For markdown cells, this simply returns the cell content.
|
|
2071
|
+
* @summary Execute a specific notebook cell
|
|
2072
|
+
* @param {string} projectName Name of the project
|
|
2073
|
+
* @param {string} packageName Name of the package
|
|
2074
|
+
* @param {string} path Path to notebook within the package
|
|
2075
|
+
* @param {number} cellIndex Index of the cell to execute (0-based)
|
|
2076
|
+
* @param {string} [versionId] Version identifier for the package
|
|
2077
|
+
* @param {*} [options] Override http request option.
|
|
2078
|
+
* @throws {RequiredError}
|
|
2079
|
+
*/
|
|
2080
|
+
executeNotebookCell(projectName: string, packageName: string, path: string, cellIndex: number, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<NotebookCellResult>;
|
|
2081
|
+
/**
|
|
2082
|
+
* Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
|
|
2083
|
+
* @summary Get Malloy notebook cells
|
|
2006
2084
|
* @param {string} projectName Name of the project
|
|
2007
2085
|
* @param {string} packageName Name of the package
|
|
2008
2086
|
* @param {string} path Path to notebook within the package.
|
|
@@ -2010,7 +2088,7 @@ export declare const NotebooksApiFactory: (configuration?: Configuration, basePa
|
|
|
2010
2088
|
* @param {*} [options] Override http request option.
|
|
2011
2089
|
* @throws {RequiredError}
|
|
2012
2090
|
*/
|
|
2013
|
-
getNotebook(projectName: string, packageName: string, path: string, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
2091
|
+
getNotebook(projectName: string, packageName: string, path: string, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<RawNotebook>;
|
|
2014
2092
|
/**
|
|
2015
2093
|
* Retrieves a list of all Malloy notebooks within the specified package. Each notebook entry includes the relative path, package name, and any compilation errors. This endpoint is useful for discovering available notebooks and checking their status.
|
|
2016
2094
|
* @summary List package notebooks
|
|
@@ -2030,8 +2108,21 @@ export declare const NotebooksApiFactory: (configuration?: Configuration, basePa
|
|
|
2030
2108
|
*/
|
|
2031
2109
|
export declare class NotebooksApi extends BaseAPI {
|
|
2032
2110
|
/**
|
|
2033
|
-
*
|
|
2034
|
-
* @summary
|
|
2111
|
+
* Executes a specific cell in a Malloy notebook by index. For code cells, this compiles and runs the Malloy code, returning query results and any new sources defined. For markdown cells, this simply returns the cell content.
|
|
2112
|
+
* @summary Execute a specific notebook cell
|
|
2113
|
+
* @param {string} projectName Name of the project
|
|
2114
|
+
* @param {string} packageName Name of the package
|
|
2115
|
+
* @param {string} path Path to notebook within the package
|
|
2116
|
+
* @param {number} cellIndex Index of the cell to execute (0-based)
|
|
2117
|
+
* @param {string} [versionId] Version identifier for the package
|
|
2118
|
+
* @param {*} [options] Override http request option.
|
|
2119
|
+
* @throws {RequiredError}
|
|
2120
|
+
* @memberof NotebooksApi
|
|
2121
|
+
*/
|
|
2122
|
+
executeNotebookCell(projectName: string, packageName: string, path: string, cellIndex: number, versionId?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<NotebookCellResult, any, {}>>;
|
|
2123
|
+
/**
|
|
2124
|
+
* Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
|
|
2125
|
+
* @summary Get Malloy notebook cells
|
|
2035
2126
|
* @param {string} projectName Name of the project
|
|
2036
2127
|
* @param {string} packageName Name of the package
|
|
2037
2128
|
* @param {string} path Path to notebook within the package.
|
|
@@ -2040,7 +2131,7 @@ export declare class NotebooksApi extends BaseAPI {
|
|
|
2040
2131
|
* @throws {RequiredError}
|
|
2041
2132
|
* @memberof NotebooksApi
|
|
2042
2133
|
*/
|
|
2043
|
-
getNotebook(projectName: string, packageName: string, path: string, versionId?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<
|
|
2134
|
+
getNotebook(projectName: string, packageName: string, path: string, versionId?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<RawNotebook, any, {}>>;
|
|
2044
2135
|
/**
|
|
2045
2136
|
* Retrieves a list of all Malloy notebooks within the specified package. Each notebook entry includes the relative path, package name, and any compilation errors. This endpoint is useful for discovering available notebooks and checking their status.
|
|
2046
2137
|
* @summary List package notebooks
|
package/dist/client/index.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../ServerProvider-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../ServerProvider-Bzid56gJ.cjs.js");exports.AttachedDatabaseTypeEnum=o.AttachedDatabaseTypeEnum;exports.Configuration=o.Configuration;exports.ConnectionStatusStatusEnum=o.ConnectionStatusStatusEnum;exports.ConnectionTypeEnum=o.ConnectionTypeEnum;exports.ConnectionsApi=o.ConnectionsApi;exports.ConnectionsApiAxiosParamCreator=o.ConnectionsApiAxiosParamCreator;exports.ConnectionsApiFactory=o.ConnectionsApiFactory;exports.ConnectionsApiFp=o.ConnectionsApiFp;exports.ConnectionsTestApi=o.ConnectionsTestApi;exports.ConnectionsTestApiAxiosParamCreator=o.ConnectionsTestApiAxiosParamCreator;exports.ConnectionsTestApiFactory=o.ConnectionsTestApiFactory;exports.ConnectionsTestApiFp=o.ConnectionsTestApiFp;exports.DatabaseTypeEnum=o.DatabaseTypeEnum;exports.DatabasesApi=o.DatabasesApi;exports.DatabasesApiAxiosParamCreator=o.DatabasesApiAxiosParamCreator;exports.DatabasesApiFactory=o.DatabasesApiFactory;exports.DatabasesApiFp=o.DatabasesApiFp;exports.ModelsApi=o.ModelsApi;exports.ModelsApiAxiosParamCreator=o.ModelsApiAxiosParamCreator;exports.ModelsApiFactory=o.ModelsApiFactory;exports.ModelsApiFp=o.ModelsApiFp;exports.NotebookCellResultTypeEnum=o.NotebookCellResultTypeEnum;exports.NotebookCellTypeEnum=o.NotebookCellTypeEnum;exports.NotebooksApi=o.NotebooksApi;exports.NotebooksApiAxiosParamCreator=o.NotebooksApiAxiosParamCreator;exports.NotebooksApiFactory=o.NotebooksApiFactory;exports.NotebooksApiFp=o.NotebooksApiFp;exports.PackagesApi=o.PackagesApi;exports.PackagesApiAxiosParamCreator=o.PackagesApiAxiosParamCreator;exports.PackagesApiFactory=o.PackagesApiFactory;exports.PackagesApiFp=o.PackagesApiFp;exports.ProjectsApi=o.ProjectsApi;exports.ProjectsApiAxiosParamCreator=o.ProjectsApiAxiosParamCreator;exports.ProjectsApiFactory=o.ProjectsApiFactory;exports.ProjectsApiFp=o.ProjectsApiFp;exports.PublisherApi=o.PublisherApi;exports.PublisherApiAxiosParamCreator=o.PublisherApiAxiosParamCreator;exports.PublisherApiFactory=o.PublisherApiFactory;exports.PublisherApiFp=o.PublisherApiFp;exports.ServerProvider=o.ServerProvider;exports.WatchModeApi=o.WatchModeApi;exports.WatchModeApiAxiosParamCreator=o.WatchModeApiAxiosParamCreator;exports.WatchModeApiFactory=o.WatchModeApiFactory;exports.WatchModeApiFp=o.WatchModeApiFp;exports.globalQueryClient=o.globalQueryClient;exports.useServer=o.useServer;
|
package/dist/client/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as o,
|
|
1
|
+
import { A as o, R as e, a as i, C as t, f as r, c as p, e as A, d as n, k as c, h as C, j as P, i as F, D as b, o as l, l as m, n as u, m as y, r as d, M as k, q as x, p as h, b as M, N as T, w as g, s as D, v as E, t as N, z as j, P as S, y as W, x as v, G as f, B as Q, F as R, E as q, K as w, H as z, J as B, I as G, S as H, Q as I, W as J, O as K, L, g as O, u as U } from "../ServerProvider-D-y63tG0.es.js";
|
|
2
2
|
export {
|
|
3
3
|
o as AttachedDatabaseTypeEnum,
|
|
4
4
|
e as Configuration,
|
|
@@ -13,26 +13,27 @@ export {
|
|
|
13
13
|
P as ConnectionsTestApiFactory,
|
|
14
14
|
F as ConnectionsTestApiFp,
|
|
15
15
|
b as DatabaseTypeEnum,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
l as DatabasesApi,
|
|
17
|
+
m as DatabasesApiAxiosParamCreator,
|
|
18
|
+
u as DatabasesApiFactory,
|
|
19
|
+
y as DatabasesApiFp,
|
|
20
20
|
d as ModelsApi,
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
M as
|
|
25
|
-
T as
|
|
26
|
-
g as
|
|
27
|
-
D as
|
|
28
|
-
E as
|
|
29
|
-
N as
|
|
30
|
-
j as
|
|
31
|
-
S as
|
|
32
|
-
W as
|
|
33
|
-
v as
|
|
34
|
-
f as
|
|
35
|
-
Q as
|
|
21
|
+
k as ModelsApiAxiosParamCreator,
|
|
22
|
+
x as ModelsApiFactory,
|
|
23
|
+
h as ModelsApiFp,
|
|
24
|
+
M as NotebookCellResultTypeEnum,
|
|
25
|
+
T as NotebookCellTypeEnum,
|
|
26
|
+
g as NotebooksApi,
|
|
27
|
+
D as NotebooksApiAxiosParamCreator,
|
|
28
|
+
E as NotebooksApiFactory,
|
|
29
|
+
N as NotebooksApiFp,
|
|
30
|
+
j as PackagesApi,
|
|
31
|
+
S as PackagesApiAxiosParamCreator,
|
|
32
|
+
W as PackagesApiFactory,
|
|
33
|
+
v as PackagesApiFp,
|
|
34
|
+
f as ProjectsApi,
|
|
35
|
+
Q as ProjectsApiAxiosParamCreator,
|
|
36
|
+
R as ProjectsApiFactory,
|
|
36
37
|
q as ProjectsApiFp,
|
|
37
38
|
w as PublisherApi,
|
|
38
39
|
z as PublisherApiAxiosParamCreator,
|
|
@@ -44,5 +45,5 @@ export {
|
|
|
44
45
|
K as WatchModeApiFactory,
|
|
45
46
|
L as WatchModeApiFp,
|
|
46
47
|
O as globalQueryClient,
|
|
47
|
-
|
|
48
|
+
U as useServer
|
|
48
49
|
};
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import { RetrievalFunction } from '../filter/DimensionFilter';
|
|
1
2
|
interface NotebookProps {
|
|
2
3
|
resourceUri: string;
|
|
3
4
|
maxResultSize?: number;
|
|
5
|
+
/** Optional retrieval function for semantic search filters */
|
|
6
|
+
retrievalFn?: RetrievalFunction;
|
|
4
7
|
}
|
|
5
|
-
export default function Notebook({ resourceUri, maxResultSize, }: NotebookProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default function Notebook({ resourceUri, maxResultSize, retrievalFn, }: NotebookProps): import("react/jsx-runtime").JSX.Element;
|
|
6
9
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EnhancedNotebookCell } from './types';
|
|
2
2
|
interface NotebookCellProps {
|
|
3
|
-
cell:
|
|
3
|
+
cell: EnhancedNotebookCell;
|
|
4
4
|
expandCodeCell?: boolean;
|
|
5
5
|
hideCodeCellIcon?: boolean;
|
|
6
6
|
expandEmbedding?: boolean;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { NotebookCell as ClientNotebookCell } from '../../client';
|
|
2
|
+
/**
|
|
3
|
+
* Enhanced notebook cell that extends the base API cell with execution results.
|
|
4
|
+
* The base ClientNotebookCell only contains type and text (raw content).
|
|
5
|
+
* This interface adds the runtime execution data.
|
|
6
|
+
*/
|
|
7
|
+
export interface EnhancedNotebookCell extends ClientNotebookCell {
|
|
8
|
+
/**
|
|
9
|
+
* Name of the query that was executed (for code cells that run queries)
|
|
10
|
+
*/
|
|
11
|
+
queryName?: string;
|
|
12
|
+
/**
|
|
13
|
+
* JSON string containing the query execution results
|
|
14
|
+
*/
|
|
15
|
+
result?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Array of JSON strings containing SourceInfo objects for data sources
|
|
18
|
+
* that become available in this cell (e.g., from imports or source definitions)
|
|
19
|
+
*/
|
|
20
|
+
newSources?: string[];
|
|
21
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { DimensionSpec, DimensionValue } from '../../hooks/useDimensionalFilterRangeData';
|
|
2
|
+
import { FilterSelection } from '../../hooks/useDimensionFilters';
|
|
3
|
+
/**
|
|
4
|
+
* Type for the retrieval function used by Retrieval filter type
|
|
5
|
+
*/
|
|
6
|
+
export type RetrievalFunction = (query: string, spec: DimensionSpec) => Promise<DimensionValue[]>;
|
|
7
|
+
/**
|
|
8
|
+
* Props for DimensionFilter component
|
|
9
|
+
*/
|
|
10
|
+
export interface DimensionFilterProps {
|
|
11
|
+
/** The dimension specification */
|
|
12
|
+
spec: DimensionSpec;
|
|
13
|
+
/** Available values for this dimension */
|
|
14
|
+
values: DimensionValue[];
|
|
15
|
+
/** Current filter selection (optional) */
|
|
16
|
+
selection?: FilterSelection | null;
|
|
17
|
+
/** Callback when filter changes */
|
|
18
|
+
onChange: (selection: FilterSelection | null) => void;
|
|
19
|
+
/** Retrieval function for semantic search (required for Retrieval filter type) */
|
|
20
|
+
retrievalFn?: RetrievalFunction;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* DimensionFilter component - Renders appropriate filter UI based on dimension type
|
|
24
|
+
*
|
|
25
|
+
* This component dynamically renders the appropriate filter UI based on the dimension's
|
|
26
|
+
* filter type and selected match type. It supports:
|
|
27
|
+
* - Star filters: Dropdown selection or text search
|
|
28
|
+
* - MinMax filters: Numeric input with comparison operators
|
|
29
|
+
* - DateMinMax filters: Date pickers with date comparison operators
|
|
30
|
+
*
|
|
31
|
+
* @param props - Component props including spec, values, selection, and onChange callback
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```tsx
|
|
35
|
+
* <DimensionFilter
|
|
36
|
+
* spec={{ dimensionName: "category", filterType: "Star" }}
|
|
37
|
+
* values={categoryValues}
|
|
38
|
+
* selection={currentSelection}
|
|
39
|
+
* onChange={(selection) => updateFilter("category", selection)}
|
|
40
|
+
* />
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
export declare function DimensionFilter({ spec, values, selection, onChange, retrievalFn, }: DimensionFilterProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { DimensionFilter } from './DimensionFilter';
|
|
2
|
+
export type { DimensionFilterProps, RetrievalFunction, } from './DimensionFilter';
|
|
3
|
+
export { extractDimensionSpecs, extractSourceFromQuery, generateFilterClause, getJoinedSources, injectWhereClause, parseAllSourceInfos, parseDimensionFilterAnnotation, parseNotebookFilterAnnotation, } from './utils';
|
|
4
|
+
export type { DimensionFilterAnnotation, FilterSpec, NotebookFilterConfig, } from './utils';
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { DimensionSpec, FilterType } from '../../hooks/useDimensionalFilterRangeData';
|
|
2
|
+
import { FilterSelection } from '../../hooks/useDimensionFilters';
|
|
3
|
+
import * as Malloy from "@malloydata/malloy-interfaces";
|
|
4
|
+
/**
|
|
5
|
+
* A single filter specification with source and dimension
|
|
6
|
+
* Parsed from "source.dimension" string format
|
|
7
|
+
*/
|
|
8
|
+
export interface FilterSpec {
|
|
9
|
+
source: string;
|
|
10
|
+
dimension: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Configuration parsed from notebook ##(filter) annotation
|
|
14
|
+
*/
|
|
15
|
+
export interface NotebookFilterConfig {
|
|
16
|
+
filters: FilterSpec[];
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Filter annotation parsed from dimension #(filter) tag
|
|
20
|
+
*/
|
|
21
|
+
export interface DimensionFilterAnnotation {
|
|
22
|
+
type: FilterType;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Get the names of all sources that are joined into a given source
|
|
26
|
+
* Looks for fields with kind: "join" in the SourceInfo
|
|
27
|
+
*/
|
|
28
|
+
export declare function getJoinedSources(sourceInfo: Malloy.SourceInfo): Set<string>;
|
|
29
|
+
/**
|
|
30
|
+
* Parse ##(filter) annotation from notebook annotations
|
|
31
|
+
* Format: ##(filters) ["source.dimension", "source2.dimension2", ...]
|
|
32
|
+
* Returns the filter config or null if not found
|
|
33
|
+
*/
|
|
34
|
+
export declare function parseNotebookFilterAnnotation(annotations: string[] | undefined): NotebookFilterConfig | null;
|
|
35
|
+
/**
|
|
36
|
+
* Parse #(filter) annotation from a dimension annotation string
|
|
37
|
+
* Returns the filter annotation or null if not found
|
|
38
|
+
*/
|
|
39
|
+
export declare function parseDimensionFilterAnnotation(annotation: string): DimensionFilterAnnotation | null;
|
|
40
|
+
/**
|
|
41
|
+
* Parse all source infos from notebook cells and create a map of source_name -> SourceInfo
|
|
42
|
+
* Also returns the model path from the first import statement found
|
|
43
|
+
*/
|
|
44
|
+
export declare function parseAllSourceInfos(cells: Array<{
|
|
45
|
+
type?: string;
|
|
46
|
+
newSources?: string[];
|
|
47
|
+
text?: string;
|
|
48
|
+
}>): {
|
|
49
|
+
sourceInfoMap: Map<string, Malloy.SourceInfo>;
|
|
50
|
+
modelPath: string;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* Extract dimension specs from SourceInfo map based on filter specs from notebook annotation
|
|
54
|
+
* Looks for #(filter) annotations on the dimensions to determine filter types
|
|
55
|
+
* Each spec includes source and model for proper query routing
|
|
56
|
+
*/
|
|
57
|
+
export declare function extractDimensionSpecs(sourceInfoMap: Map<string, Malloy.SourceInfo>, filterSpecs: FilterSpec[], modelPath: string): DimensionSpec[];
|
|
58
|
+
/**
|
|
59
|
+
* Generate a Malloy WHERE clause filter string from filter selections
|
|
60
|
+
* Uses source.dimension format only for joined sources (not the query's main source)
|
|
61
|
+
*/
|
|
62
|
+
export declare function generateFilterClause(activeFilters: FilterSelection[], dimensionToSourceMap: Map<string, string>, querySourceName: string | null): string;
|
|
63
|
+
/**
|
|
64
|
+
* Extract the source name from a Malloy query
|
|
65
|
+
* Handles patterns like:
|
|
66
|
+
* - "run: source_name -> ..."
|
|
67
|
+
* - "run: source_name->view_name"
|
|
68
|
+
* Returns null if no source name can be extracted
|
|
69
|
+
*/
|
|
70
|
+
export declare function extractSourceFromQuery(query: string): string | null;
|
|
71
|
+
/**
|
|
72
|
+
* Injects a where clause into a Malloy query by appending "+ {where: ...}"
|
|
73
|
+
* Uses Malloy's refinement syntax which works with any query pattern.
|
|
74
|
+
*/
|
|
75
|
+
export declare function injectWhereClause(query: string, filterClause: string): string;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
+
export { AnalyzePackageButton } from './AnalyzePackageButton';
|
|
2
|
+
export { useRouterClickHandler } from './click_helper';
|
|
3
|
+
export * from './filter';
|
|
4
|
+
export * from './Home';
|
|
5
|
+
export * from './Loading';
|
|
1
6
|
export * from './Model';
|
|
2
7
|
export * from './Notebook';
|
|
3
|
-
export * from './Workbook';
|
|
4
8
|
export * from './Package';
|
|
5
9
|
export * from './Project';
|
|
6
10
|
export * from './QueryResult';
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './Loading';
|
|
9
|
-
export { useRouterClickHandler } from './click_helper';
|
|
11
|
+
export * from './RenderedResult';
|
|
10
12
|
export { ServerProvider, useServer } from './ServerProvider';
|
|
11
13
|
export type { ServerContextValue, ServerProviderProps } from './ServerProvider';
|
|
12
|
-
export
|
|
14
|
+
export * from './Workbook';
|
|
13
15
|
export type { WorkbookStorage } from './Workbook';
|
|
14
|
-
export * from './RenderedResult';
|
|
@@ -3,9 +3,9 @@ import { CardOwnProps, Theme, CardContentOwnProps, CardMediaOwnProps } from '@mu
|
|
|
3
3
|
import { CommonProps } from '@mui/material/OverridableComponent';
|
|
4
4
|
import { DetailedHTMLProps, HTMLAttributes } from 'react';
|
|
5
5
|
import { MUIStyledCommonProps } from '@mui/system';
|
|
6
|
-
export declare const StyledCard: StyledComponent< CardOwnProps & CommonProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "className" | "style" | "classes" | "children" | "
|
|
6
|
+
export declare const StyledCard: StyledComponent< CardOwnProps & CommonProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "className" | "style" | "classes" | "children" | "elevation" | "square" | "sx" | "variant" | "raised"> & MUIStyledCommonProps<Theme>, {}, {}>;
|
|
7
7
|
export declare const StyledCardContent: StyledComponent< CardContentOwnProps & CommonProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "className" | "style" | "classes" | "children" | "sx"> & MUIStyledCommonProps<Theme>, {}, {}>;
|
|
8
|
-
export declare const StyledCardMedia: StyledComponent< CardMediaOwnProps & CommonProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "className" | "style" | "classes" | "
|
|
8
|
+
export declare const StyledCardMedia: StyledComponent< CardMediaOwnProps & CommonProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "className" | "style" | "classes" | "image" | "children" | "sx" | "src"> & MUIStyledCommonProps<Theme>, {}, {}>;
|
|
9
9
|
export declare const CleanNotebookContainer: StyledComponent<MUIStyledCommonProps<Theme>, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
10
10
|
export declare const CleanNotebookHeader: StyledComponent<MUIStyledCommonProps<Theme>, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
11
11
|
export declare const CleanNotebookSection: StyledComponent<MUIStyledCommonProps<Theme>, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -17,7 +17,7 @@ export declare const StyledExplorerPage: StyledComponent<MUIStyledCommonProps<Th
|
|
|
17
17
|
export declare const StyledExplorerBanner: StyledComponent<MUIStyledCommonProps<Theme>, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
18
18
|
export declare const StyledExplorerContent: StyledComponent<MUIStyledCommonProps<Theme>, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
19
19
|
export declare const StyledExplorerPanel: StyledComponent<MUIStyledCommonProps<Theme>, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
20
|
-
export declare const PackageCard: StyledComponent< CardOwnProps & CommonProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "className" | "style" | "classes" | "children" | "
|
|
20
|
+
export declare const PackageCard: StyledComponent< CardOwnProps & CommonProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "className" | "style" | "classes" | "children" | "elevation" | "square" | "sx" | "variant" | "raised"> & MUIStyledCommonProps<Theme>, {}, {}>;
|
|
21
21
|
export declare const PackageCardContent: StyledComponent< CardContentOwnProps & CommonProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "className" | "style" | "classes" | "children" | "sx"> & MUIStyledCommonProps<Theme>, {}, {}>;
|
|
22
22
|
export declare const PackageSectionTitle: StyledComponent<MUIStyledCommonProps<Theme>, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
23
23
|
export declare const PackageContainer: StyledComponent<MUIStyledCommonProps<Theme>, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { useDimensionFilters, type DimensionFilterState, type FilterSelection, type MatchType, type UseDimensionFiltersParams, type UseDimensionFiltersResult, } from './useDimensionFilters';
|
|
2
|
+
export { useDimensionFiltersFromSpec, type DimensionFiltersConfig, type UseDimensionFiltersFromSpecOptions, } from './useDimensionFiltersFromSpec';
|
|
3
|
+
export { useDimensionFiltersQuery, type DimensionFiltersQueryResult, type UseDimensionFiltersQueryParams, } from './useDimensionFiltersQuery';
|
|
4
|
+
export { useDimensionalFilterRangeData, type DimensionalFilterRangeDataResult, type DimensionSpec, type DimensionValue, type DimensionValues, type FilterType, type UseDimensionalFilterRangeDataParams, } from './useDimensionalFilterRangeData';
|