@malloy-publisher/sdk 0.8.2 → 0.8.4

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 (44) hide show
  1. package/README.md +14 -65
  2. package/dist/{DocumentStorage-BZqn0x5r.es.js → Dashboard-DnqWRijB.es.js} +23691 -23538
  3. package/dist/Dashboard-FD3-Af-_.cjs.js +136 -0
  4. package/dist/{RenderedResult-DKOl0FQ8.es.js → RenderedResult-6UKAHaAj.es.js} +18 -18
  5. package/dist/{RenderedResult-Bu25oAAr.cjs.js → RenderedResult-CetSzFgW.cjs.js} +1 -1
  6. package/dist/ServerProvider-BsjJvkML.cjs.js +1 -0
  7. package/dist/{ServerProvider-CfUFleYe.es.js → ServerProvider-DgRFJ43L.es.js} +983 -957
  8. package/dist/builder/index.cjs.js +50 -50
  9. package/dist/builder/index.es.js +2587 -2511
  10. package/dist/client/api.d.ts +157 -44
  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 +62 -59
  15. package/dist/components/DashboardBuilder/malloyText.d.ts +49 -0
  16. package/dist/components/DashboardBuilder/malloyTree.d.ts +2 -18
  17. package/dist/components/DashboardBuilder/readDocument.d.ts +2 -0
  18. package/dist/components/Notebook/NotebookCell.d.ts +3 -2
  19. package/dist/components/Notebook/cellKind.d.ts +20 -0
  20. package/dist/components/given/filterValue.d.ts +11 -0
  21. package/dist/index.cjs.js +15 -12
  22. package/dist/index.es.js +4528 -4435
  23. package/package.json +1 -1
  24. package/src/components/DashboardBuilder/malloyText.spec.ts +70 -1
  25. package/src/components/DashboardBuilder/malloyText.ts +171 -3
  26. package/src/components/DashboardBuilder/malloyTree.spec.ts +35 -0
  27. package/src/components/DashboardBuilder/malloyTree.ts +28 -4
  28. package/src/components/DashboardBuilder/readDocument.spec.ts +180 -1
  29. package/src/components/DashboardBuilder/readDocument.ts +52 -14
  30. package/src/components/DashboardBuilder/spliceDocument.spec.ts +396 -2
  31. package/src/components/DashboardBuilder/spliceDocument.ts +121 -18
  32. package/src/components/Notebook/Notebook.served.spec.tsx +175 -0
  33. package/src/components/Notebook/Notebook.spec.tsx +33 -2
  34. package/src/components/Notebook/Notebook.tsx +13 -7
  35. package/src/components/Notebook/NotebookCell.tsx +124 -63
  36. package/src/components/Notebook/cellKind.spec.ts +191 -0
  37. package/src/components/Notebook/cellKind.ts +74 -0
  38. package/src/components/Package/Package.notebooks.spec.tsx +90 -0
  39. package/src/components/Package/Package.tsx +18 -4
  40. package/src/components/given/GivenInput.spec.tsx +66 -0
  41. package/src/components/given/GivenInput.tsx +99 -0
  42. package/src/components/given/filterValue.ts +21 -0
  43. package/dist/DocumentStorage-B0_YgSzt.cjs.js +0 -134
  44. package/dist/ServerProvider-CuYLH_Yi.cjs.js +0 -1
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Malloy Publisher - Semantic Model Serving API
3
- * The Malloy Publisher - Semantic Model Serving API provides access to Malloy packages and everything they contain. A Malloy package is a directory with a `publisher.json` manifest at its root, holding Malloy models (`.malloy` files), notebooks (`.malloynb` files), embedded data (`.parquet`, `.csv`, and `.xlsx` files), and optionally an HTML data app under `public/`. ## Key Features - **Discovery**: List environments, packages, and the models, notebooks, data apps, and data a package contains - **Query Execution**: Run queries against models, execute notebooks a cell at a time, and compile-check Malloy without running it - **Data Apps**: In-package HTML data apps served from a package\'s `public/` directory - **Materializations**: Persist Malloy sources as tables, on a schedule or on demand - **Connection Management**: Configure and test warehouse connections, and browse their schemas and tables - **Watch Mode**: File watching, and a change-event stream for development workflows ## Resource Hierarchy The API follows a hierarchical resource structure: ``` Server ├── /status, /theme server state, and the UI theme ├── /connections/test validate a connection config ├── /watch-mode/… development file watching └── Environments ├── Connections schemas, tables, and ad-hoc SQL └── Packages ├── Models query and compile ├── Notebooks execute a cell at a time ├── Data Apps static HTML data apps from public/ ├── Databases embedded data files ├── Materializations persisted sources ├── Connections package-scoped connection access └── Events SSE stream of file changes ``` For worked examples, see the packages this server bundles (https://github.com/malloydata/publisher/tree/main/examples); the package format is documented in docs/packages.md (https://github.com/malloydata/publisher/blob/main/docs/packages.md).
3
+ * The Malloy Publisher - Semantic Model Serving API provides access to Malloy packages and everything they contain. A Malloy package is a directory with a `publisher.json` manifest at its root, holding Malloy models (`.malloy` files), notebooks (`.malloynb` files and `.malloy` files under `notebooks/`), embedded data (`.parquet`, `.csv`, and `.xlsx` files), and optionally an HTML data app under `public/`. ## Key Features - **Discovery**: List environments, packages, and the models, notebooks, data apps, and data a package contains - **Query Execution**: Run queries against models, execute notebooks a cell at a time, and compile-check Malloy without running it - **Data Apps**: In-package HTML data apps served from a package\'s `public/` directory - **Materializations**: Persist Malloy sources as tables, on a schedule or on demand - **Connection Management**: Configure and test warehouse connections, and browse their schemas and tables - **Watch Mode**: File watching, and a change-event stream for development workflows ## Resource Hierarchy The API follows a hierarchical resource structure: ``` Server ├── /status, /theme server state, and the UI theme ├── /connections/test validate a connection config ├── /watch-mode/… development file watching └── Environments ├── Connections schemas, tables, and ad-hoc SQL └── Packages ├── Models query and compile ├── Notebooks execute a cell at a time ├── Data Apps static HTML data apps from public/ ├── Databases embedded data files ├── Materializations persisted sources ├── Connections package-scoped connection access └── Events SSE stream of file changes ``` For worked examples, see the packages this server bundles (https://github.com/malloydata/publisher/tree/main/examples); the package format is documented in docs/packages.md (https://github.com/malloydata/publisher/blob/main/docs/packages.md).
4
4
  *
5
5
  * The version of the OpenAPI document: v0
6
6
  *
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../ServerProvider-CuYLH_Yi.cjs.js");exports.AttachedDatabaseTypeEnum=e.AttachedDatabaseTypeEnum;exports.AzureConnectionAuthTypeEnum=e.AzureConnectionAuthTypeEnum;exports.CompileProblemSeverityEnum=e.CompileProblemSeverityEnum;exports.CompileRequestScopeEnum=e.CompileRequestScopeEnum;exports.CompileResultStatusEnum=e.CompileResultStatusEnum;exports.Configuration=e.Configuration;exports.ConnectionProxyTypeEnum=e.ConnectionProxyTypeEnum;exports.ConnectionStatusStatusEnum=e.ConnectionStatusStatusEnum;exports.ConnectionTypeEnum=e.ConnectionTypeEnum;exports.ConnectionsApi=e.ConnectionsApi;exports.ConnectionsApiAxiosParamCreator=e.ConnectionsApiAxiosParamCreator;exports.ConnectionsApiFactory=e.ConnectionsApiFactory;exports.ConnectionsApiFp=e.ConnectionsApiFp;exports.ConnectionsTestApi=e.ConnectionsTestApi;exports.ConnectionsTestApiAxiosParamCreator=e.ConnectionsTestApiAxiosParamCreator;exports.ConnectionsTestApiFactory=e.ConnectionsTestApiFactory;exports.ConnectionsTestApiFp=e.ConnectionsTestApiFp;exports.DashboardsApi=e.DashboardsApi;exports.DashboardsApiAxiosParamCreator=e.DashboardsApiAxiosParamCreator;exports.DashboardsApiFactory=e.DashboardsApiFactory;exports.DashboardsApiFp=e.DashboardsApiFp;exports.DataAppFitEnum=e.DataAppFitEnum;exports.DataAppsApi=e.DataAppsApi;exports.DataAppsApiAxiosParamCreator=e.DataAppsApiAxiosParamCreator;exports.DataAppsApiFactory=e.DataAppsApiFactory;exports.DataAppsApiFp=e.DataAppsApiFp;exports.DatabaseTypeEnum=e.DatabaseTypeEnum;exports.DatabasesApi=e.DatabasesApi;exports.DatabasesApiAxiosParamCreator=e.DatabasesApiAxiosParamCreator;exports.DatabasesApiFactory=e.DatabasesApiFactory;exports.DatabasesApiFp=e.DatabasesApiFp;exports.EnvironmentsApi=e.EnvironmentsApi;exports.EnvironmentsApiAxiosParamCreator=e.EnvironmentsApiAxiosParamCreator;exports.EnvironmentsApiFactory=e.EnvironmentsApiFactory;exports.EnvironmentsApiFp=e.EnvironmentsApiFp;exports.ExecuteNotebookCellBypassFiltersEnum=e.ExecuteNotebookCellBypassFiltersEnum;exports.FilterTypeEnum=e.FilterTypeEnum;exports.FreshnessFallbackEnum=e.FreshnessFallbackEnum;exports.GivenControlEnum=e.GivenControlEnum;exports.LedgerEntryStrategyEnum=e.LedgerEntryStrategyEnum;exports.LogMessageSeverityEnum=e.LogMessageSeverityEnum;exports.ManifestEntryFreshnessFallbackEnum=e.ManifestEntryFreshnessFallbackEnum;exports.ManifestEntryOriginEnum=e.ManifestEntryOriginEnum;exports.ManifestEntryRefreshEnum=e.ManifestEntryRefreshEnum;exports.MaterializationActionActionEnum=e.MaterializationActionActionEnum;exports.MaterializationStatus=e.MaterializationStatus;exports.MaterializationsApi=e.MaterializationsApi;exports.MaterializationsApiAxiosParamCreator=e.MaterializationsApiAxiosParamCreator;exports.MaterializationsApiFactory=e.MaterializationsApiFactory;exports.MaterializationsApiFp=e.MaterializationsApiFp;exports.ModelsApi=e.ModelsApi;exports.ModelsApiAxiosParamCreator=e.ModelsApiAxiosParamCreator;exports.ModelsApiFactory=e.ModelsApiFactory;exports.ModelsApiFp=e.ModelsApiFp;exports.NotebookCellResultTypeEnum=e.NotebookCellResultTypeEnum;exports.NotebookCellTypeEnum=e.NotebookCellTypeEnum;exports.NotebooksApi=e.NotebooksApi;exports.NotebooksApiAxiosParamCreator=e.NotebooksApiAxiosParamCreator;exports.NotebooksApiFactory=e.NotebooksApiFactory;exports.NotebooksApiFp=e.NotebooksApiFp;exports.PackageEmbeddingIndexStatusEnum=e.PackageEmbeddingIndexStatusEnum;exports.PackageManifestBindingStatusEnum=e.PackageManifestBindingStatusEnum;exports.PackageQueryableSourcesEnum=e.PackageQueryableSourcesEnum;exports.PackageScopeEnum=e.PackageScopeEnum;exports.PackageStorageServeBindingsInnerOriginEnum=e.PackageStorageServeBindingsInnerOriginEnum;exports.PackageWarningsInnerSeverityEnum=e.PackageWarningsInnerSeverityEnum;exports.PackagesApi=e.PackagesApi;exports.PackagesApiAxiosParamCreator=e.PackagesApiAxiosParamCreator;exports.PackagesApiFactory=e.PackagesApiFactory;exports.PackagesApiFp=e.PackagesApiFp;exports.PersistSourcePlanOriginEnum=e.PersistSourcePlanOriginEnum;exports.PostgresConnectionSslmodeEnum=e.PostgresConnectionSslmodeEnum;exports.PublisherApi=e.PublisherApi;exports.PublisherApiAxiosParamCreator=e.PublisherApiAxiosParamCreator;exports.PublisherApiFactory=e.PublisherApiFactory;exports.PublisherApiFp=e.PublisherApiFp;exports.QueryClass=e.QueryClass;exports.QueryResultQueryRowLimitSourceEnum=e.QueryResultQueryRowLimitSourceEnum;exports.QueryResultServedFromEnum=e.QueryResultServedFromEnum;exports.Realization=e.Realization;exports.RefusedSourceReasonEnum=e.RefusedSourceReasonEnum;exports.RefusedSourceTierEnum=e.RefusedSourceTierEnum;exports.RunContextTriggerEnum=e.RunContextTriggerEnum;exports.S3ConnectionProviderEnum=e.S3ConnectionProviderEnum;exports.ServerProvider=e.ServerProvider;exports.ServerStatusOperationalStateEnum=e.ServerStatusOperationalStateEnum;exports.ThemeDefaultModeEnum=e.ThemeDefaultModeEnum;exports.WatchModeApi=e.WatchModeApi;exports.WatchModeApiAxiosParamCreator=e.WatchModeApiAxiosParamCreator;exports.WatchModeApiFactory=e.WatchModeApiFactory;exports.WatchModeApiFp=e.WatchModeApiFp;exports.globalQueryClient=e.globalQueryClient;exports.useServer=e.useServer;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../ServerProvider-BsjJvkML.cjs.js");exports.AttachedDatabaseTypeEnum=e.AttachedDatabaseTypeEnum;exports.AzureConnectionAuthTypeEnum=e.AzureConnectionAuthTypeEnum;exports.CompileProblemSeverityEnum=e.CompileProblemSeverityEnum;exports.CompileRequestScopeEnum=e.CompileRequestScopeEnum;exports.CompileResultStatusEnum=e.CompileResultStatusEnum;exports.Configuration=e.Configuration;exports.ConnectionProxyTypeEnum=e.ConnectionProxyTypeEnum;exports.ConnectionStatusStatusEnum=e.ConnectionStatusStatusEnum;exports.ConnectionTypeEnum=e.ConnectionTypeEnum;exports.ConnectionsApi=e.ConnectionsApi;exports.ConnectionsApiAxiosParamCreator=e.ConnectionsApiAxiosParamCreator;exports.ConnectionsApiFactory=e.ConnectionsApiFactory;exports.ConnectionsApiFp=e.ConnectionsApiFp;exports.ConnectionsTestApi=e.ConnectionsTestApi;exports.ConnectionsTestApiAxiosParamCreator=e.ConnectionsTestApiAxiosParamCreator;exports.ConnectionsTestApiFactory=e.ConnectionsTestApiFactory;exports.ConnectionsTestApiFp=e.ConnectionsTestApiFp;exports.DashboardsApi=e.DashboardsApi;exports.DashboardsApiAxiosParamCreator=e.DashboardsApiAxiosParamCreator;exports.DashboardsApiFactory=e.DashboardsApiFactory;exports.DashboardsApiFp=e.DashboardsApiFp;exports.DataAppFitEnum=e.DataAppFitEnum;exports.DataAppsApi=e.DataAppsApi;exports.DataAppsApiAxiosParamCreator=e.DataAppsApiAxiosParamCreator;exports.DataAppsApiFactory=e.DataAppsApiFactory;exports.DataAppsApiFp=e.DataAppsApiFp;exports.DatabaseTypeEnum=e.DatabaseTypeEnum;exports.DatabasesApi=e.DatabasesApi;exports.DatabasesApiAxiosParamCreator=e.DatabasesApiAxiosParamCreator;exports.DatabasesApiFactory=e.DatabasesApiFactory;exports.DatabasesApiFp=e.DatabasesApiFp;exports.EnvironmentsApi=e.EnvironmentsApi;exports.EnvironmentsApiAxiosParamCreator=e.EnvironmentsApiAxiosParamCreator;exports.EnvironmentsApiFactory=e.EnvironmentsApiFactory;exports.EnvironmentsApiFp=e.EnvironmentsApiFp;exports.ExecuteNotebookCellBypassFiltersEnum=e.ExecuteNotebookCellBypassFiltersEnum;exports.FilterTypeEnum=e.FilterTypeEnum;exports.FreshnessFallbackEnum=e.FreshnessFallbackEnum;exports.GivenControlEnum=e.GivenControlEnum;exports.LedgerEntryStrategyEnum=e.LedgerEntryStrategyEnum;exports.LogMessageSeverityEnum=e.LogMessageSeverityEnum;exports.ManifestEntryFreshnessFallbackEnum=e.ManifestEntryFreshnessFallbackEnum;exports.ManifestEntryOriginEnum=e.ManifestEntryOriginEnum;exports.ManifestEntryRefreshEnum=e.ManifestEntryRefreshEnum;exports.MaterializationActionActionEnum=e.MaterializationActionActionEnum;exports.MaterializationStatus=e.MaterializationStatus;exports.MaterializationsApi=e.MaterializationsApi;exports.MaterializationsApiAxiosParamCreator=e.MaterializationsApiAxiosParamCreator;exports.MaterializationsApiFactory=e.MaterializationsApiFactory;exports.MaterializationsApiFp=e.MaterializationsApiFp;exports.ModelsApi=e.ModelsApi;exports.ModelsApiAxiosParamCreator=e.ModelsApiAxiosParamCreator;exports.ModelsApiFactory=e.ModelsApiFactory;exports.ModelsApiFp=e.ModelsApiFp;exports.NotebookCellKindEnum=e.NotebookCellKindEnum;exports.NotebookCellResultKindEnum=e.NotebookCellResultKindEnum;exports.NotebookCellResultTypeEnum=e.NotebookCellResultTypeEnum;exports.NotebookCellTypeEnum=e.NotebookCellTypeEnum;exports.NotebooksApi=e.NotebooksApi;exports.NotebooksApiAxiosParamCreator=e.NotebooksApiAxiosParamCreator;exports.NotebooksApiFactory=e.NotebooksApiFactory;exports.NotebooksApiFp=e.NotebooksApiFp;exports.PackageEmbeddingIndexStatusEnum=e.PackageEmbeddingIndexStatusEnum;exports.PackageManifestBindingStatusEnum=e.PackageManifestBindingStatusEnum;exports.PackageQueryableSourcesEnum=e.PackageQueryableSourcesEnum;exports.PackageScopeEnum=e.PackageScopeEnum;exports.PackageStorageServeBindingsInnerOriginEnum=e.PackageStorageServeBindingsInnerOriginEnum;exports.PackageWarningsInnerSeverityEnum=e.PackageWarningsInnerSeverityEnum;exports.PackagesApi=e.PackagesApi;exports.PackagesApiAxiosParamCreator=e.PackagesApiAxiosParamCreator;exports.PackagesApiFactory=e.PackagesApiFactory;exports.PackagesApiFp=e.PackagesApiFp;exports.PersistSourcePlanOriginEnum=e.PersistSourcePlanOriginEnum;exports.PostgresConnectionSslmodeEnum=e.PostgresConnectionSslmodeEnum;exports.PublisherApi=e.PublisherApi;exports.PublisherApiAxiosParamCreator=e.PublisherApiAxiosParamCreator;exports.PublisherApiFactory=e.PublisherApiFactory;exports.PublisherApiFp=e.PublisherApiFp;exports.QueryClass=e.QueryClass;exports.QueryResultQueryRowLimitSourceEnum=e.QueryResultQueryRowLimitSourceEnum;exports.QueryResultServedFromEnum=e.QueryResultServedFromEnum;exports.RawNotebookFormatEnum=e.RawNotebookFormatEnum;exports.Realization=e.Realization;exports.RefusedSourceReasonEnum=e.RefusedSourceReasonEnum;exports.RefusedSourceTierEnum=e.RefusedSourceTierEnum;exports.RunContextTriggerEnum=e.RunContextTriggerEnum;exports.S3ConnectionProviderEnum=e.S3ConnectionProviderEnum;exports.ServerProvider=e.ServerProvider;exports.ServerStatusOperationalStateEnum=e.ServerStatusOperationalStateEnum;exports.ThemeDefaultModeEnum=e.ThemeDefaultModeEnum;exports.WatchModeApi=e.WatchModeApi;exports.WatchModeApiAxiosParamCreator=e.WatchModeApiAxiosParamCreator;exports.WatchModeApiFactory=e.WatchModeApiFactory;exports.WatchModeApiFp=e.WatchModeApiFp;exports.globalQueryClient=e.globalQueryClient;exports.useServer=e.useServer;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Malloy Publisher - Semantic Model Serving API
3
- * The Malloy Publisher - Semantic Model Serving API provides access to Malloy packages and everything they contain. A Malloy package is a directory with a `publisher.json` manifest at its root, holding Malloy models (`.malloy` files), notebooks (`.malloynb` files), embedded data (`.parquet`, `.csv`, and `.xlsx` files), and optionally an HTML data app under `public/`. ## Key Features - **Discovery**: List environments, packages, and the models, notebooks, data apps, and data a package contains - **Query Execution**: Run queries against models, execute notebooks a cell at a time, and compile-check Malloy without running it - **Data Apps**: In-package HTML data apps served from a package\'s `public/` directory - **Materializations**: Persist Malloy sources as tables, on a schedule or on demand - **Connection Management**: Configure and test warehouse connections, and browse their schemas and tables - **Watch Mode**: File watching, and a change-event stream for development workflows ## Resource Hierarchy The API follows a hierarchical resource structure: ``` Server ├── /status, /theme server state, and the UI theme ├── /connections/test validate a connection config ├── /watch-mode/… development file watching └── Environments ├── Connections schemas, tables, and ad-hoc SQL └── Packages ├── Models query and compile ├── Notebooks execute a cell at a time ├── Data Apps static HTML data apps from public/ ├── Databases embedded data files ├── Materializations persisted sources ├── Connections package-scoped connection access └── Events SSE stream of file changes ``` For worked examples, see the packages this server bundles (https://github.com/malloydata/publisher/tree/main/examples); the package format is documented in docs/packages.md (https://github.com/malloydata/publisher/blob/main/docs/packages.md).
3
+ * The Malloy Publisher - Semantic Model Serving API provides access to Malloy packages and everything they contain. A Malloy package is a directory with a `publisher.json` manifest at its root, holding Malloy models (`.malloy` files), notebooks (`.malloynb` files and `.malloy` files under `notebooks/`), embedded data (`.parquet`, `.csv`, and `.xlsx` files), and optionally an HTML data app under `public/`. ## Key Features - **Discovery**: List environments, packages, and the models, notebooks, data apps, and data a package contains - **Query Execution**: Run queries against models, execute notebooks a cell at a time, and compile-check Malloy without running it - **Data Apps**: In-package HTML data apps served from a package\'s `public/` directory - **Materializations**: Persist Malloy sources as tables, on a schedule or on demand - **Connection Management**: Configure and test warehouse connections, and browse their schemas and tables - **Watch Mode**: File watching, and a change-event stream for development workflows ## Resource Hierarchy The API follows a hierarchical resource structure: ``` Server ├── /status, /theme server state, and the UI theme ├── /connections/test validate a connection config ├── /watch-mode/… development file watching └── Environments ├── Connections schemas, tables, and ad-hoc SQL └── Packages ├── Models query and compile ├── Notebooks execute a cell at a time ├── Data Apps static HTML data apps from public/ ├── Databases embedded data files ├── Materializations persisted sources ├── Connections package-scoped connection access └── Events SSE stream of file changes ``` For worked examples, see the packages this server bundles (https://github.com/malloydata/publisher/tree/main/examples); the package format is documented in docs/packages.md (https://github.com/malloydata/publisher/blob/main/docs/packages.md).
4
4
  *
5
5
  * The version of the OpenAPI document: v0
6
6
  *
@@ -1,8 +1,8 @@
1
- import { A as e, a as i, C as o, b as n, c as t, aC as r, e as p, f as u, d as A, O as m, I as c, K as E, J as l, X as C, U as y, W as P, V as F, $ as b, Y as g, _ as d, Z as S, D as k, a3 as M, a0 as h, a2 as x, a1 as v, h as D, a7 as T, a4 as R, a6 as f, a5 as z, ab as N, a8 as Q, aa as W, a9 as B, ap as O, F as I, i as L, G as q, L as w, j, k as G, M as H, l as J, ag as K, m as U, af as V, ac as X, ae as Y, ad as Z, ak as _, ah as $, aj as aa, ai as sa, n as ea, N as ia, ao as oa, al as na, an as ta, am as ra, q as pa, p as ua, o as Aa, P as ma, r as ca, s as Ea, at as la, aq as Ca, as as ya, ar as Pa, t as Fa, v as ba, ax as ga, au as da, aw as Sa, av as ka, Q as Ma, w as ha, x as xa, R as va, z as Da, y as Ta, B as Ra, E as fa, S as za, H as Na, T as Qa, aB as Wa, ay as Ba, aA as Oa, az as Ia, g as La, u as qa } from "../ServerProvider-CfUFleYe.es.js";
1
+ import { A as e, a as o, C as i, b as n, c as t, d as r, e as p, f as u, g as A, h as m, i as c, j as E, k as l, l as C, m as y, n as F, o as P, D as b, p as d, q as g, r as S, s as k, t as M, u as h, v as x, w as D, x as v, y as T, z as R, B as f, E as N, F as z, G as Q, H as W, I as B, J as O, K as w, L as I, M as L, N as q, O as K, P as j, Q as G, R as H, S as J, T as U, U as V, V as X, W as Y, X as Z, Y as _, Z as $, _ as aa, $ as sa, a0 as ea, a1 as oa, a2 as ia, a3 as na, a4 as ta, a5 as ra, a6 as pa, a7 as ua, a8 as Aa, a9 as ma, aa as ca, ab as Ea, ac as la, ad as Ca, ae as ya, af as Fa, ag as Pa, ah as ba, ai as da, aj as ga, ak as Sa, al as ka, am as Ma, an as ha, ao as xa, ap as Da, aq as va, ar as Ta, as as Ra, at as fa, au as Na, av as za, aw as Qa, ax as Wa, ay as Ba, az as Oa, aA as wa, aB as Ia, aC as La, aD as qa, aE as Ka, aF as ja } from "../ServerProvider-DgRFJ43L.es.js";
2
2
  export {
3
3
  e as AttachedDatabaseTypeEnum,
4
- i as AzureConnectionAuthTypeEnum,
5
- o as CompileProblemSeverityEnum,
4
+ o as AzureConnectionAuthTypeEnum,
5
+ i as CompileProblemSeverityEnum,
6
6
  n as CompileRequestScopeEnum,
7
7
  t as CompileResultStatusEnum,
8
8
  r as Configuration,
@@ -15,36 +15,36 @@ export {
15
15
  l as ConnectionsApiFp,
16
16
  C as ConnectionsTestApi,
17
17
  y as ConnectionsTestApiAxiosParamCreator,
18
- P as ConnectionsTestApiFactory,
19
- F as ConnectionsTestApiFp,
18
+ F as ConnectionsTestApiFactory,
19
+ P as ConnectionsTestApiFp,
20
20
  b as DashboardsApi,
21
- g as DashboardsApiAxiosParamCreator,
22
- d as DashboardsApiFactory,
21
+ d as DashboardsApiAxiosParamCreator,
22
+ g as DashboardsApiFactory,
23
23
  S as DashboardsApiFp,
24
24
  k as DataAppFitEnum,
25
25
  M as DataAppsApi,
26
26
  h as DataAppsApiAxiosParamCreator,
27
27
  x as DataAppsApiFactory,
28
- v as DataAppsApiFp,
29
- D as DatabaseTypeEnum,
28
+ D as DataAppsApiFp,
29
+ v as DatabaseTypeEnum,
30
30
  T as DatabasesApi,
31
31
  R as DatabasesApiAxiosParamCreator,
32
32
  f as DatabasesApiFactory,
33
- z as DatabasesApiFp,
34
- N as EnvironmentsApi,
33
+ N as DatabasesApiFp,
34
+ z as EnvironmentsApi,
35
35
  Q as EnvironmentsApiAxiosParamCreator,
36
36
  W as EnvironmentsApiFactory,
37
37
  B as EnvironmentsApiFp,
38
38
  O as ExecuteNotebookCellBypassFiltersEnum,
39
- I as FilterTypeEnum,
40
- L as FreshnessFallbackEnum,
41
- q as GivenControlEnum,
42
- w as LedgerEntryStrategyEnum,
43
- j as LogMessageSeverityEnum,
44
- G as ManifestEntryFreshnessFallbackEnum,
45
- H as ManifestEntryOriginEnum,
46
- J as ManifestEntryRefreshEnum,
47
- K as MaterializationActionActionEnum,
39
+ w as FilterTypeEnum,
40
+ I as FreshnessFallbackEnum,
41
+ L as GivenControlEnum,
42
+ q as LedgerEntryStrategyEnum,
43
+ K as LogMessageSeverityEnum,
44
+ j as ManifestEntryFreshnessFallbackEnum,
45
+ G as ManifestEntryOriginEnum,
46
+ H as ManifestEntryRefreshEnum,
47
+ J as MaterializationActionActionEnum,
48
48
  U as MaterializationStatus,
49
49
  V as MaterializationsApi,
50
50
  X as MaterializationsApiAxiosParamCreator,
@@ -54,43 +54,46 @@ export {
54
54
  $ as ModelsApiAxiosParamCreator,
55
55
  aa as ModelsApiFactory,
56
56
  sa as ModelsApiFp,
57
- ea as NotebookCellResultTypeEnum,
58
- ia as NotebookCellTypeEnum,
59
- oa as NotebooksApi,
60
- na as NotebooksApiAxiosParamCreator,
61
- ta as NotebooksApiFactory,
62
- ra as NotebooksApiFp,
63
- pa as PackageEmbeddingIndexStatusEnum,
64
- ua as PackageManifestBindingStatusEnum,
65
- Aa as PackageQueryableSourcesEnum,
66
- ma as PackageScopeEnum,
67
- ca as PackageStorageServeBindingsInnerOriginEnum,
68
- Ea as PackageWarningsInnerSeverityEnum,
69
- la as PackagesApi,
70
- Ca as PackagesApiAxiosParamCreator,
71
- ya as PackagesApiFactory,
72
- Pa as PackagesApiFp,
73
- Fa as PersistSourcePlanOriginEnum,
74
- ba as PostgresConnectionSslmodeEnum,
75
- ga as PublisherApi,
76
- da as PublisherApiAxiosParamCreator,
77
- Sa as PublisherApiFactory,
78
- ka as PublisherApiFp,
79
- Ma as QueryClass,
80
- ha as QueryResultQueryRowLimitSourceEnum,
81
- xa as QueryResultServedFromEnum,
82
- va as Realization,
83
- Da as RefusedSourceReasonEnum,
84
- Ta as RefusedSourceTierEnum,
85
- Ra as RunContextTriggerEnum,
86
- fa as S3ConnectionProviderEnum,
87
- za as ServerProvider,
88
- Na as ServerStatusOperationalStateEnum,
89
- Qa as ThemeDefaultModeEnum,
90
- Wa as WatchModeApi,
91
- Ba as WatchModeApiAxiosParamCreator,
92
- Oa as WatchModeApiFactory,
93
- Ia as WatchModeApiFp,
94
- La as globalQueryClient,
95
- qa as useServer
57
+ ea as NotebookCellKindEnum,
58
+ oa as NotebookCellResultKindEnum,
59
+ ia as NotebookCellResultTypeEnum,
60
+ na as NotebookCellTypeEnum,
61
+ ta as NotebooksApi,
62
+ ra as NotebooksApiAxiosParamCreator,
63
+ pa as NotebooksApiFactory,
64
+ ua as NotebooksApiFp,
65
+ Aa as PackageEmbeddingIndexStatusEnum,
66
+ ma as PackageManifestBindingStatusEnum,
67
+ ca as PackageQueryableSourcesEnum,
68
+ Ea as PackageScopeEnum,
69
+ la as PackageStorageServeBindingsInnerOriginEnum,
70
+ Ca as PackageWarningsInnerSeverityEnum,
71
+ ya as PackagesApi,
72
+ Fa as PackagesApiAxiosParamCreator,
73
+ Pa as PackagesApiFactory,
74
+ ba as PackagesApiFp,
75
+ da as PersistSourcePlanOriginEnum,
76
+ ga as PostgresConnectionSslmodeEnum,
77
+ Sa as PublisherApi,
78
+ ka as PublisherApiAxiosParamCreator,
79
+ Ma as PublisherApiFactory,
80
+ ha as PublisherApiFp,
81
+ xa as QueryClass,
82
+ Da as QueryResultQueryRowLimitSourceEnum,
83
+ va as QueryResultServedFromEnum,
84
+ Ta as RawNotebookFormatEnum,
85
+ Ra as Realization,
86
+ fa as RefusedSourceReasonEnum,
87
+ Na as RefusedSourceTierEnum,
88
+ za as RunContextTriggerEnum,
89
+ Qa as S3ConnectionProviderEnum,
90
+ Wa as ServerProvider,
91
+ Ba as ServerStatusOperationalStateEnum,
92
+ Oa as ThemeDefaultModeEnum,
93
+ wa as WatchModeApi,
94
+ Ia as WatchModeApiAxiosParamCreator,
95
+ La as WatchModeApiFactory,
96
+ qa as WatchModeApiFp,
97
+ Ka as globalQueryClient,
98
+ ja as useServer
96
99
  };
@@ -1,6 +1,55 @@
1
1
  export declare const isIdentifier: (text: string) => boolean;
2
+ /** The server's rule for the tag line: `## artifact` at the start of a line. */
3
+ export declare const ARTIFACT_LINE: RegExp;
4
+ /**
5
+ * A note's markdown route, by Malloy's prefix rule: the first whitespace-delimited token is
6
+ * `#`/`##`, an optional `|`, and `(markdown)` or its `<>`, `[]`, `{}` twin. `#(markdown)hi` has
7
+ * trailing junk on the prefix, which Malloy calls malformed and the server ignores.
8
+ */
9
+ export declare function markdownNote(line: string): {
10
+ level: 1 | 2;
11
+ block: boolean;
12
+ } | undefined;
13
+ /**
14
+ * Whether `line` closes a block annotation as Malloy's lexer reads it: the closer sits at the
15
+ * opener's own column, and `|##` never closes a `#|` block. An unknown `column` (a cell's first
16
+ * line has lost its indentation) accepts any indent.
17
+ */
18
+ export declare function closesBlock(line: string, column: number | undefined, closer: "|#" | "|##"): boolean;
19
+ /**
20
+ * The `##|` / `#|` blocks that have a closer, as `[opener line, closer line]`;
21
+ * an opener with none is not a block. An opener on a `skip` line (inside a
22
+ * block comment) opens nothing.
23
+ */
24
+ export declare function blockSpans(lines: string[], skip?: (line: number) => boolean): [number, number][];
25
+ /** The lines that sit inside or on a block, where prose is not a tag or a note. */
26
+ export declare function blockLines(lines: string[]): Set<number>;
27
+ /**
28
+ * The `#(markdown)` lines and `#|(markdown)` blocks: prose attached to a declaration, not tags.
29
+ * A line inside a block comment (`skip`) or inside another block is no annotation.
30
+ */
31
+ export declare function markdownLines(lines: string[], skip?: (line: number) => boolean): Set<number>;
2
32
  /** The line carrying the model-level `## artifact` tag, or -1. */
3
33
  export declare const artifactLine: (lines: string[]) => number;
34
+ /**
35
+ * The lines a dashboard's description is read from, by the server's rule: the
36
+ * notes above the artifact tag, or, when those carry no prose, the notes below
37
+ * it, `##"` lines and `##|"` blocks alike. `blankAbove` are the prose-less
38
+ * `##"` notes above when the text is read from below, which a rewrite has to
39
+ * clear; `below` are the `##"` notes under the tag, and `belowBlock` is true
40
+ * when a `##|"` block with prose sits there. `inBlock` is true when the text
41
+ * that is read is held in a block, which a rewrite cannot patch.
42
+ */
43
+ export declare function descriptionNotes(lines: string[]): {
44
+ read: number[];
45
+ blankAbove: number[];
46
+ below: number[];
47
+ belowBlock: boolean;
48
+ inBlock: boolean;
49
+ text?: string;
50
+ };
51
+ /** Whether `tiles=[…]` holds an entry that is not a quoted run expression, such as a `kind=text` tile. */
52
+ export declare function hasNonQuotedTiles(artifactText: string): boolean;
4
53
  /** A tile expression's steps: `orders -> by_brand + { limit: 2 }`. */
5
54
  export interface TileSteps {
6
55
  source: string;
@@ -1,21 +1,3 @@
1
- /**
2
- * Where everything in a dashboard file IS, according to Malloy's own parser.
3
- *
4
- * The only module that touches the parse tree. The reader and the writer both
5
- * locate through it, which is what makes a reader/writer disagreement about
6
- * where a declaration starts or ends impossible rather than unlikely — the
7
- * defect class that every hand-written scan here kept reintroducing.
8
- *
9
- * The rule the rest of the builder follows: LOCATORS come from this module,
10
- * RECOGNIZERS may read text over a span this module bounded, and EMITTERS take
11
- * positions only from a span or a token here. Nothing outside re-derives
12
- * Malloy's grammar from raw text.
13
- *
14
- * Node identity is by ACCESSOR, never `constructor.name`: `@malloydata/malloy`
15
- * is a peerDependency, so the host bundler minifies it and every class name
16
- * becomes a single letter. Accessor and token names are properties, which
17
- * minifiers leave alone.
18
- */
19
1
  /** A half-open range of UTF-16 offsets into the source text. */
20
2
  export interface Span {
21
3
  start: number;
@@ -177,6 +159,8 @@ export interface ParsedMalloy {
177
159
  * middle of a `/* … *\/`, whose text is prose however it begins.
178
160
  */
179
161
  commentLine(line: number): boolean;
162
+ /** Whether `line` is part of a `#(markdown)` line or a `#|(markdown)` block, which are prose, not tags. */
163
+ proseLine(line: number): boolean;
180
164
  /**
181
165
  * The `#`/comment block immediately above `line`, stopping at a blank line —
182
166
  * the unit that travels with a declaration when it moves.
@@ -56,6 +56,8 @@ export interface Block {
56
56
  line: number;
57
57
  text: string;
58
58
  }>;
59
+ /** The `(markdown)` annotation lines in the block, which are not tags but leave with the declaration they describe. */
60
+ prose: number[];
59
61
  }
60
62
  /**
61
63
  * The comment-and-tag block immediately above `declLine`, up to the blank line
@@ -9,7 +9,8 @@ interface NotebookCellProps {
9
9
  expandEmbedding?: boolean;
10
10
  hideEmbeddingIcon?: boolean;
11
11
  resourceUri: string;
12
- index: number;
12
+ /** Whether this is the notebook's first markdown cell, which carries the copy-link icon. */
13
+ showCopyLink?: boolean;
13
14
  maxResultSize?: number;
14
15
  isExecuting?: boolean;
15
16
  /**
@@ -55,5 +56,5 @@ interface NotebookCellProps {
55
56
  /** The notebook's declared givens, so that dialog renders their controls. */
56
57
  givenSpecs?: Given[];
57
58
  }
58
- export declare function NotebookCell({ cell, hideCodeCellIcon, hideEmbeddingIcon, resourceUri, index, maxResultSize, isExecuting, pendingRerun, onNavigate, onDrillSelf, canDrillSelf, onDrillNavigate, givens, givenSpecs, }: NotebookCellProps): import("react/jsx-runtime").JSX.Element;
59
+ export declare function NotebookCell({ cell, hideCodeCellIcon, hideEmbeddingIcon, resourceUri, showCopyLink, maxResultSize, isExecuting, pendingRerun, onNavigate, onDrillSelf, canDrillSelf, onDrillNavigate, givens, givenSpecs, }: NotebookCellProps): import("react/jsx-runtime").JSX.Element;
59
60
  export {};
@@ -0,0 +1,20 @@
1
+ import { NotebookCell } from '../../client';
2
+ /**
3
+ * Whether the viewer sends a cell to the server to run. A served notebook's
4
+ * definition cell is `type: code` too, so `type` alone would execute it.
5
+ */
6
+ export declare function cellRuns(cell: Pick<NotebookCell, "type" | "kind">): boolean;
7
+ type CellLines = Pick<NotebookCell, "text" | "proseLines" | "codeLine">;
8
+ /**
9
+ * A query cell's caption. A served cell's is the server's alone, absent meaning none; on an
10
+ * unserved cell (a `.malloynb`, an older server) it is the `#"` lines in the tag block above its `run:`.
11
+ */
12
+ export declare function cellCaption(cell: Pick<NotebookCell, "text" | "caption" | "proseLines" | "codeLine">): string | undefined;
13
+ /**
14
+ * A cell's code without its prose, which renders separately. A served cell loses exactly the
15
+ * lines the server named; an unserved one (a `.malloynb`, an older server) loses its `##` lines.
16
+ */
17
+ export declare function stripProse(cell: CellLines): string;
18
+ /** One-line label for a folded definition cell: its statement kind and name. */
19
+ export declare function definitionSummary(cell: CellLines): string;
20
+ export {};
@@ -1,6 +1,17 @@
1
1
  import { TemporalFilter } from '@malloydata/malloy-filter';
2
2
  /** True for the `filter<…>` family, whose values are filter syntax, not plain. */
3
3
  export declare function isFilterType(type: string | undefined): boolean;
4
+ /**
5
+ * The value a `filter<boolean>` dropdown shows for `value`: `"true"` or
6
+ * `"false"`, however it is spelled (`TRUE`, ` true `). Undefined for anything
7
+ * else the grammar can say (`=false`, `not true`, `null`, and text that does
8
+ * not parse), which the dropdown cannot show and must not rewrite.
9
+ *
10
+ * The plain forms are the ones offered because they are what a reader means:
11
+ * `true` matches true rows, and `false` matches false or null. `=false`, which
12
+ * leaves null out, is a different filter and stays in the text box as written.
13
+ */
14
+ export declare function decodeBooleanFilter(value: string): "true" | "false" | undefined;
4
15
  /** The `T` of a `filter<T>`, or undefined for any other type. */
5
16
  export declare function filterInnerType(type: string | undefined): string | undefined;
6
17
  /**