@malloy-publisher/sdk 0.9.9 → 0.9.11
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/dist/RenderedResult-BlNoIiSi.cjs.js +153 -0
- package/dist/{RenderedResult-BHuJpdSn.es.js → RenderedResult-Cmx8sX8d.es.js} +102 -102
- package/dist/ServerProvider-BOgiW8MX.cjs.js +1 -0
- package/dist/{ServerProvider-CQy4jVYK.es.js → ServerProvider-azXLkk1q.es.js} +619 -586
- package/dist/builder/index.cjs.js +78 -130
- package/dist/builder/index.es.js +7440 -6727
- package/dist/builder-entry.d.ts +3 -0
- package/dist/client/api.d.ts +26 -22
- package/dist/client/index.cjs.js +1 -1
- package/dist/client/index.es.js +1 -1
- package/dist/components/AppDialog.d.ts +9 -1
- package/dist/components/Dashboard/DashboardGrid.d.ts +14 -15
- package/dist/components/Dashboard/DashboardTile.d.ts +8 -1
- package/dist/components/Dashboard/DashboardView.d.ts +22 -23
- package/dist/components/Dashboard/TileCard.d.ts +10 -3
- package/dist/components/Dashboard/useStuck.d.ts +22 -0
- package/dist/components/DocumentCreate/newNotebook.d.ts +9 -5
- package/dist/components/DocumentCreate/useDocumentChoices.d.ts +6 -0
- package/dist/components/Package/PackageProblems.d.ts +14 -0
- package/dist/components/RemoveBadge.d.ts +40 -0
- package/dist/components/Report/Report.d.ts +13 -4
- package/dist/components/Report/ReportPage.d.ts +60 -0
- package/dist/components/Report/layoutRules.d.ts +32 -0
- package/dist/components/Report/reportQuery.d.ts +30 -0
- package/dist/components/Report/telemetry.d.ts +0 -2
- package/dist/components/ReportBuilder/AddTileDialog.d.ts +22 -3
- package/dist/components/ReportBuilder/BuilderBar.d.ts +17 -0
- package/dist/components/ReportBuilder/BuilderDialogs.d.ts +7 -6
- package/dist/components/ReportBuilder/BuilderGrid.d.ts +10 -4
- package/dist/components/ReportBuilder/BuilderHeader.d.ts +4 -7
- package/dist/components/ReportBuilder/BuilderToolbar.d.ts +88 -0
- package/dist/components/ReportBuilder/DrillDialog.d.ts +3 -1
- package/dist/components/ReportBuilder/EditorSurface.d.ts +7 -9
- package/dist/components/ReportBuilder/FilterDialog.d.ts +3 -1
- package/dist/components/ReportBuilder/FilterStrip.d.ts +30 -6
- package/dist/components/ReportBuilder/InlineMarkdown.d.ts +4 -4
- package/dist/components/ReportBuilder/ReportBuilder.d.ts +49 -12
- package/dist/components/ReportBuilder/ReportEditor.d.ts +53 -3
- package/dist/components/ReportBuilder/TextTileBody.d.ts +2 -5
- package/dist/components/ReportBuilder/TileFrame.d.ts +10 -4
- package/dist/components/ReportBuilder/TileMenu.d.ts +19 -11
- package/dist/components/ReportBuilder/ViewPicker.d.ts +53 -0
- package/dist/components/ReportBuilder/addTileToDocument.d.ts +24 -3
- package/dist/components/ReportBuilder/builderControls.d.ts +60 -0
- package/dist/components/ReportBuilder/catalog.d.ts +2 -4
- package/dist/components/ReportBuilder/inlineEdit.d.ts +9 -10
- package/dist/components/ReportBuilder/localGiven.d.ts +12 -0
- package/dist/components/ReportBuilder/preview.d.ts +17 -2
- package/dist/components/ReportBuilder/readDocument.d.ts +0 -2
- package/dist/components/ReportBuilder/readForEditor.d.ts +2 -7
- package/dist/components/ReportBuilder/reportTag.d.ts +11 -1
- package/dist/components/ReportBuilder/sortable.d.ts +4 -3
- package/dist/components/ReportBuilder/testing/inline.d.ts +5 -1
- package/dist/components/ReportBuilder/useBuilderSelection.d.ts +0 -1
- package/dist/components/ReportBuilder/useBuilderSession.d.ts +21 -12
- package/dist/components/ReportBuilder/useDocumentEditor.d.ts +2 -6
- package/dist/components/ReportBuilder/useExitGuard.d.ts +3 -0
- package/dist/components/ReportBuilder/useFilterForm.d.ts +3 -1
- package/dist/components/ReportBuilder/useOpenedDocument.d.ts +0 -4
- package/dist/components/ReportBuilder/useReportDraft.d.ts +66 -0
- package/dist/components/ReportBuilder/useReportEditor.d.ts +0 -9
- package/dist/components/ReportBuilder/useTileEditing.d.ts +6 -3
- package/dist/components/ReportBuilder/viewAnnotations.d.ts +9 -0
- package/dist/components/ReportBuilder/widthLabel.d.ts +6 -0
- package/dist/components/ServerProvider.d.ts +9 -0
- package/dist/components/controlTokens.d.ts +45 -0
- package/dist/components/drill/markDrillableCells.d.ts +1 -1
- package/dist/components/given/FilterButton.d.ts +35 -0
- package/dist/components/given/GivensPanel.d.ts +2 -1
- package/dist/components/given/filterEditing.d.ts +54 -0
- package/dist/components/given/filterSummary.d.ts +9 -0
- package/dist/components/given/paramCodec.d.ts +11 -0
- package/dist/components/given/required.d.ts +25 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/components/legacy/index.d.ts +1 -1
- package/dist/components/{Report/CellReport.d.ts → legacy/malloynb/CellRunnerView.d.ts} +9 -17
- package/dist/components/legacy/{MalloynbCells.d.ts → malloynb/MalloynbCells.d.ts} +3 -3
- package/dist/components/legacy/{Notebook.d.ts → malloynb/Notebook.d.ts} +1 -1
- package/dist/components/{Notebook → legacy/malloynb}/NotebookCell.d.ts +3 -3
- package/dist/components/legacy/malloynb/cellKind.d.ts +5 -0
- package/dist/components/{Notebook → legacy/malloynb}/types.d.ts +1 -1
- package/dist/components/styles.d.ts +0 -2
- package/dist/hooks/useQueryResult.d.ts +7 -0
- package/dist/index.cjs.js +16 -19
- package/dist/index.es.js +8324 -7769
- package/dist/theme/ThemeContext.d.ts +8 -1
- package/dist/theme/classes.d.ts +49 -0
- package/dist/theme/index.d.ts +2 -0
- package/dist/theme/types.d.ts +7 -0
- package/dist/theme/ui.d.ts +75 -0
- package/dist/{useCompiledDocument-1dgF5CC9.es.js → useCompiledDocument-7j5cBjQd.es.js} +8768 -7912
- package/dist/useCompiledDocument-B21sVbb4.cjs.js +141 -0
- package/package.json +2 -2
- package/src/builder-entry.ts +9 -0
- package/src/components/AppDialog.tsx +23 -0
- package/src/components/Dashboard/DashboardGrid.tsx +39 -17
- package/src/components/Dashboard/DashboardTile.tsx +19 -2
- package/src/components/Dashboard/DashboardView.spec.tsx +216 -15
- package/src/components/Dashboard/DashboardView.tsx +136 -105
- package/src/components/Dashboard/RowsDialog.tsx +1 -2
- package/src/components/Dashboard/TileCard.tsx +28 -10
- package/src/components/Dashboard/defaultTileSpan.spec.ts +24 -0
- package/src/components/Dashboard/useStuck.ts +49 -0
- package/src/components/DocumentCreate/newNotebook.spec.ts +8 -6
- package/src/components/DocumentCreate/newNotebook.ts +26 -12
- package/src/components/DocumentCreate/useDocumentChoices.ts +19 -2
- package/src/components/Package/NewDocumentDialog.spec.tsx +76 -59
- package/src/components/Package/NewDocumentDialog.tsx +383 -119
- package/src/components/Package/Package.artifacts.spec.tsx +1 -1
- package/src/components/Package/Package.create.spec.tsx +7 -6
- package/src/components/Package/Package.tsx +10 -7
- package/src/components/Package/PackageProblems.spec.tsx +41 -0
- package/src/components/Package/PackageProblems.tsx +95 -0
- package/src/components/Prose.tsx +12 -7
- package/src/components/RemoveBadge.tsx +94 -0
- package/src/components/RenderedResult/RenderedResult.tsx +5 -9
- package/src/components/RenderedResult/ResultPanel.tsx +59 -3
- package/src/components/Report/Report.spec.tsx +50 -32
- package/src/components/Report/Report.telemetry.spec.tsx +0 -45
- package/src/components/Report/Report.tsx +45 -77
- package/src/components/Report/ReportPage.tsx +168 -0
- package/src/components/Report/layoutRules.spec.ts +35 -0
- package/src/components/Report/layoutRules.ts +55 -0
- package/src/components/Report/reportQuery.ts +53 -0
- package/src/components/Report/telemetry.ts +0 -2
- package/src/components/ReportBuilder/AddTileDialog.spec.tsx +76 -41
- package/src/components/ReportBuilder/AddTileDialog.tsx +368 -133
- package/src/components/ReportBuilder/BuilderBar.tsx +599 -0
- package/src/components/ReportBuilder/BuilderDialogs.tsx +30 -39
- package/src/components/ReportBuilder/BuilderGrid.tsx +43 -31
- package/src/components/ReportBuilder/BuilderHeader.tsx +63 -75
- package/src/components/ReportBuilder/BuilderToolbar.tsx +95 -9
- package/src/components/ReportBuilder/DrillDialog.tsx +240 -128
- package/src/components/ReportBuilder/EditorSurface.tsx +345 -69
- package/src/components/ReportBuilder/FilterDialog.tsx +516 -166
- package/src/components/ReportBuilder/FilterStrip.tsx +129 -150
- package/src/components/ReportBuilder/InlineMarkdown.tsx +71 -45
- package/src/components/ReportBuilder/ReportBuilder.charts.spec.tsx +35 -40
- package/src/components/ReportBuilder/ReportBuilder.controls.spec.tsx +491 -0
- package/src/components/ReportBuilder/ReportBuilder.exit.spec.tsx +2 -4
- package/src/components/ReportBuilder/ReportBuilder.inline.spec.tsx +13 -16
- package/src/components/ReportBuilder/ReportBuilder.notebook.spec.tsx +27 -118
- package/src/components/ReportBuilder/ReportBuilder.openDraft.spec.tsx +12 -5
- package/src/components/ReportBuilder/ReportBuilder.sources.spec.tsx +2 -10
- package/src/components/ReportBuilder/ReportBuilder.spec.tsx +41 -36
- package/src/components/ReportBuilder/ReportBuilder.textTiles.spec.tsx +22 -15
- package/src/components/ReportBuilder/ReportBuilder.tsx +292 -116
- package/src/components/ReportBuilder/ReportEditor.emptyStart.spec.tsx +2 -1
- package/src/components/ReportBuilder/ReportEditor.modelFilters.spec.tsx +312 -0
- package/src/components/ReportBuilder/ReportEditor.notebook.spec.tsx +26 -75
- package/src/components/ReportBuilder/ReportEditor.package.spec.tsx +6 -2
- package/src/components/ReportBuilder/ReportEditor.resourceUri.spec.tsx +3 -2
- package/src/components/ReportBuilder/ReportEditor.spec.tsx +2 -4
- package/src/components/ReportBuilder/ReportEditor.textSource.spec.tsx +93 -13
- package/src/components/ReportBuilder/ReportEditor.tsx +104 -14
- package/src/components/ReportBuilder/TextTileBody.tsx +6 -7
- package/src/components/ReportBuilder/TileFrame.tsx +212 -75
- package/src/components/ReportBuilder/TileMenu.tsx +248 -142
- package/src/components/ReportBuilder/ViewPicker.tsx +349 -0
- package/src/components/ReportBuilder/addTile.compile.spec.ts +1 -1
- package/src/components/ReportBuilder/addTileToDocument.spec.ts +102 -3
- package/src/components/ReportBuilder/addTileToDocument.ts +122 -25
- package/src/components/ReportBuilder/builderControls.ts +164 -0
- package/src/components/ReportBuilder/builderReport.ts +1 -2
- package/src/components/ReportBuilder/catalog.ts +10 -26
- package/src/components/ReportBuilder/inlineEdit.tsx +22 -54
- package/src/components/ReportBuilder/localGiven.ts +56 -0
- package/src/components/ReportBuilder/newDashboard.spec.ts +2 -3
- package/src/components/ReportBuilder/preview.spec.ts +125 -5
- package/src/components/ReportBuilder/preview.ts +60 -44
- package/src/components/ReportBuilder/readDocument.spec.ts +16 -22
- package/src/components/ReportBuilder/readDocument.ts +14 -11
- package/src/components/ReportBuilder/readForEditor.spec.ts +12 -41
- package/src/components/ReportBuilder/readForEditor.ts +4 -26
- package/src/components/ReportBuilder/reportTag.ts +28 -7
- package/src/components/ReportBuilder/sortable.tsx +15 -7
- package/src/components/ReportBuilder/spliceDocument.imports.spec.ts +1 -1
- package/src/components/ReportBuilder/tagParse.spec.ts +0 -40
- package/src/components/ReportBuilder/testing/inline.ts +25 -5
- package/src/components/ReportBuilder/testing/reportLayoutParity.json +13 -8
- package/src/components/ReportBuilder/textTiles.spec.ts +7 -6
- package/src/components/ReportBuilder/useBuilderSelection.ts +35 -0
- package/src/components/ReportBuilder/useBuilderSession.spec.ts +2 -2
- package/src/components/ReportBuilder/useBuilderSession.ts +21 -13
- package/src/components/ReportBuilder/useDocumentEditor.spec.ts +0 -58
- package/src/components/ReportBuilder/useDocumentEditor.ts +3 -16
- package/src/components/ReportBuilder/useEditorCatalog.spec.tsx +26 -0
- package/src/components/ReportBuilder/useEditorCatalog.ts +7 -2
- package/src/components/ReportBuilder/useExitGuard.ts +16 -0
- package/src/components/ReportBuilder/useFilterForm.spec.tsx +17 -0
- package/src/components/ReportBuilder/useFilterForm.ts +5 -1
- package/src/components/ReportBuilder/useOpenedDocument.ts +0 -2
- package/src/components/ReportBuilder/useReportDraft.spec.ts +149 -0
- package/src/components/ReportBuilder/useReportDraft.ts +292 -0
- package/src/components/ReportBuilder/useReportEditor.ts +3 -12
- package/src/components/ReportBuilder/useSaveChannel.ts +0 -1
- package/src/components/ReportBuilder/useTileEditing.ts +43 -12
- package/src/components/ReportBuilder/viewAnnotations.ts +29 -0
- package/src/components/ReportBuilder/widthLabel.spec.ts +25 -0
- package/src/components/ReportBuilder/widthLabel.ts +26 -0
- package/src/components/ServerProvider.tsx +11 -0
- package/src/components/controlTokens.ts +47 -0
- package/src/components/drill/markDrillableCells.ts +2 -1
- package/src/components/given/FilterButton.spec.tsx +143 -0
- package/src/components/given/FilterButton.tsx +478 -0
- package/src/components/given/GivenInput.spec.tsx +47 -0
- package/src/components/given/GivenInput.tsx +20 -2
- package/src/components/given/GivensPanel.spec.tsx +11 -3
- package/src/components/given/GivensPanel.tsx +45 -44
- package/src/components/given/filterEditing.ts +60 -0
- package/src/components/given/filterSummary.spec.ts +108 -0
- package/src/components/given/filterSummary.ts +109 -0
- package/src/components/given/paramCodec.ts +1 -1
- package/src/components/given/required.spec.ts +60 -0
- package/src/components/given/required.ts +78 -0
- package/src/components/index.ts +9 -0
- package/src/components/legacy/Dashboard.spec.tsx +3 -1
- package/src/components/legacy/index.ts +1 -1
- package/src/components/{Report/CellReport.spec.tsx → legacy/malloynb/CellRunnerView.spec.tsx} +53 -57
- package/src/components/{Report/CellReport.tsx → legacy/malloynb/CellRunnerView.tsx} +122 -136
- package/src/components/legacy/{MalloynbCells.tsx → malloynb/MalloynbCells.tsx} +6 -6
- package/src/components/legacy/{Notebook.layout.spec.tsx → malloynb/Notebook.layout.spec.tsx} +16 -7
- package/src/components/legacy/malloynb/Notebook.served.spec.tsx +84 -0
- package/src/components/legacy/{Notebook.spec.tsx → malloynb/Notebook.spec.tsx} +5 -3
- package/src/components/legacy/{Notebook.tsx → malloynb/Notebook.tsx} +9 -7
- package/src/components/{Notebook → legacy/malloynb}/NotebookCell.tsx +70 -150
- package/src/components/legacy/malloynb/cellKind.spec.ts +33 -0
- package/src/components/legacy/malloynb/cellKind.ts +24 -0
- package/src/components/{Notebook → legacy/malloynb}/types.ts +1 -1
- package/src/components/styles.ts +0 -18
- package/src/hooks/useGivensState.ts +7 -3
- package/src/hooks/useQueryResult.placeholder.spec.ts +44 -0
- package/src/hooks/useQueryResult.ts +26 -1
- package/src/theme/ThemeContext.tsx +21 -1
- package/src/theme/classes.ts +52 -0
- package/src/theme/index.ts +8 -0
- package/src/theme/resolveTheme.ts +3 -0
- package/src/theme/types.ts +7 -0
- package/src/theme/ui.spec.tsx +91 -0
- package/src/theme/ui.ts +115 -0
- package/dist/RenderedResult-Bw7EQc42.cjs.js +0 -153
- package/dist/ServerProvider-B0dUY8be.cjs.js +0 -1
- package/dist/components/Notebook/cellKind.d.ts +0 -20
- package/dist/components/Report/LinearReport.d.ts +0 -18
- package/dist/components/ReportBuilder/SourceViewPicker.d.ts +0 -9
- package/dist/components/ReportBuilder/legacyNotebook.d.ts +0 -73
- package/dist/components/ReportBuilder/useConversionConfirm.d.ts +0 -20
- package/dist/useCompiledDocument-BKyRnXmA.cjs.js +0 -141
- package/src/components/Notebook/cellKind.spec.ts +0 -199
- package/src/components/Notebook/cellKind.ts +0 -74
- package/src/components/Report/LinearReport.tsx +0 -71
- package/src/components/ReportBuilder/SourceViewPicker.tsx +0 -122
- package/src/components/ReportBuilder/legacyNotebook.chart.spec.ts +0 -77
- package/src/components/ReportBuilder/legacyNotebook.convert.spec.ts +0 -626
- package/src/components/ReportBuilder/legacyNotebook.read.spec.ts +0 -338
- package/src/components/ReportBuilder/legacyNotebook.ts +0 -1122
- package/src/components/ReportBuilder/useConversionConfirm.ts +0 -55
- package/src/components/legacy/Notebook.served.spec.tsx +0 -183
- /package/dist/components/{Notebook → legacy/malloynb}/runPlan.d.ts +0 -0
- /package/src/components/{Notebook → legacy/malloynb}/runPlan.spec.ts +0 -0
- /package/src/components/{Notebook → legacy/malloynb}/runPlan.ts +0 -0
package/dist/builder-entry.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
export { ReportBuilder } from './components/ReportBuilder/ReportBuilder';
|
|
2
|
+
export type { FixedFilter } from './components/ReportBuilder/FilterStrip';
|
|
3
|
+
export { BuilderBar, type BuilderBarProps, } from './components/ReportBuilder/BuilderBar';
|
|
4
|
+
export type { BuilderControls, BuilderControlsHandler, } from './components/ReportBuilder/builderControls';
|
|
2
5
|
export type { BuilderGiven, ReportBuilderProps, } from './components/ReportBuilder/ReportBuilder';
|
|
3
6
|
export { ReportEditor, type ReportEditorProps, type TextSourceOptions, } from './components/ReportBuilder/ReportEditor';
|
|
4
7
|
export { DashboardBuilder, DashboardEditor, type DashboardBuilderProps, type DashboardEditorProps, } from './components/legacy/builderNames';
|
package/dist/client/api.d.ts
CHANGED
|
@@ -1070,6 +1070,10 @@ export interface Given {
|
|
|
1070
1070
|
* True when the declaration carries `#(secure)`: its value is the host\'s to set. The builder withholds its control only when it edits a document held as text; a saved dashboard or notebook renders it as before. Absent otherwise.
|
|
1071
1071
|
*/
|
|
1072
1072
|
'secure'?: boolean;
|
|
1073
|
+
/**
|
|
1074
|
+
* True when the given declares no default, so a query that reads it fails until a value is supplied (\"Given \'X\' has no value and no default\"). A report\'s reader asks for it before running the tiles that read it, rather than showing that error. Absent otherwise.
|
|
1075
|
+
*/
|
|
1076
|
+
'required'?: boolean;
|
|
1073
1077
|
/**
|
|
1074
1078
|
* The given\'s default value as a Malloy source literal (e.g. `\'WN\'`, `2003`, `@2024-01-01`, `f\'WN\'`), exactly as written in the model. Omitted when the given declares no default. Consumers render or prefill it per the given\'s `type` (e.g. unquote a string literal for a text input).
|
|
1075
1079
|
*/
|
|
@@ -1657,7 +1661,7 @@ export interface Package {
|
|
|
1657
1661
|
*/
|
|
1658
1662
|
'exploresWarnings'?: Array<string>;
|
|
1659
1663
|
/**
|
|
1660
|
-
* Non-fatal findings collected when the package loaded, none of which stop the model compiling or the package loading. Render-tag findings: a render annotation (e.g. `# big_value`, `# currency` or `# colspan`) the renderer cannot apply as written, either malformed for the field it sits on, so it renders as \"[object Object]\" or an inline error at query time, or inert where it sits and silently ignored. Materialization findings: a `storage=` source not served from storage, a `#@ persist` source that was not recognized as materializable, a `#@ persist` REFUSED by the compile-time eligibility gate (one entry per `BuildPlan.refusedSources` member, carrying that gate\'s own message), a persist-target collision, and materialization-config problems that degrade attribution. A refusal is the one materialization finding the build plan cannot also be read for: a refused `storage`/`colocated` source is ABSENT from `BuildPlan.sources`, so nothing there records that the annotation was written at all. Discovery findings: a model on the package\'s surface whose export closure surfaces no sources or named queries, so it lists as empty and renders a blank page; a surface whose every model failed to compile, so every model in the package answers 404 by name; and, on the reload that caused it, a package that had a surface and now has none, so every source that surface hid is listed and queryable by name again. Manifest findings: each deprecated use of `explores` or of `queryableSources: \"declared\"`, and a root file such as `Index.malloy` that differs from `index.malloy` only in case and so is ignored. A root `index.malloy` with no manifest keys gets no warning. Report findings (one lint pass per report, of either layout, wherever it lives): a file whose artifact tag does not parse or does not describe a report, a tile or suggest query that does not resolve, a `# drill` naming a destination that is not a report, and a tile, single query or filter suggest that reads a source the surface does not export, so it won\'t load. A `# drill` destination is a path from the package root (a bare name is a file at the root); one that names no report is unresolved (`error`). Curation findings: a root `index.malloy` carrying an artifact tag, which is ignored (`index-is-not-a-report`, `error`); and a report that `index.malloy` imports or `explores` lists (`report-on-surface`, `warn`). Two report findings are about Publisher rather than about the package: one when a file carrying an artifact tag could not be read and so is not served at all, and one when the lint stops early, in which case the list must be read as incomplete rather than as a clean package. A linear report whose cells could not be read gets a finding that names the line and the fix and is reported with severity `error`, because it is served with that error instead of opening. The per-file report findings each name their line and the fix and carry a `code`; they are computed at discovery and are also returned by `/compile` at file and package scope.
|
|
1664
|
+
* Non-fatal findings collected when the package loaded, none of which stop the model compiling or the package loading. Render-tag findings: a render annotation (e.g. `# big_value`, `# currency` or `# colspan`) the renderer cannot apply as written, either malformed for the field it sits on, so it renders as \"[object Object]\" or an inline error at query time, or inert where it sits and silently ignored. Materialization findings: a `storage=` source not served from storage, a `#@ persist` source that was not recognized as materializable, a `#@ persist` REFUSED by the compile-time eligibility gate (one entry per `BuildPlan.refusedSources` member, carrying that gate\'s own message), a persist-target collision, and materialization-config problems that degrade attribution. A refusal is the one materialization finding the build plan cannot also be read for: a refused `storage`/`colocated` source is ABSENT from `BuildPlan.sources`, so nothing there records that the annotation was written at all. Discovery findings: a model on the package\'s surface whose export closure surfaces no sources or named queries, so it lists as empty and renders a blank page; a surface whose every model failed to compile, so every model in the package answers 404 by name; and, on the reload that caused it, a package that had a surface and now has none, so every source that surface hid is listed and queryable by name again. Manifest findings: each deprecated use of `explores` or of `queryableSources: \"declared\"`, and a root file such as `Index.malloy` that differs from `index.malloy` only in case and so is ignored. A root `index.malloy` with no manifest keys gets no warning. Report findings (one lint pass per report, of either layout, wherever it lives): a file whose artifact tag does not parse or does not describe a report, a tile or suggest query that does not resolve, a `# drill` naming a destination that is not a report, and a tile, single query or filter suggest that reads a source the surface does not export, so it won\'t load. A `# drill` destination is a path from the package root (a bare name is a file at the root); one that names no report is unresolved (`error`). Curation findings: a root `index.malloy` carrying an artifact tag, which is ignored (`index-is-not-a-report`, `error`); and a report that `index.malloy` imports or `explores` lists (`report-on-surface`, `warn`). Two report findings are about Publisher rather than about the package: one when a file carrying an artifact tag could not be read and so is not served at all, and one when the lint stops early, in which case the list must be read as incomplete rather than as a clean package. A linear report whose cells could not be read gets a finding that names the line and the fix and is reported with severity `error`, because it is served with that error instead of opening. The per-file report findings each name their line and the fix and carry a `code`; they are computed at discovery and are also returned by `/compile` at file and package scope. These codes are `error` and fail `/compile`: `notebook-columns-conflict` (a tiled dashboard\'s `dashboard_columns` disagrees with `dashboard { columns }`), `notebook-markdown-opener-text` (more than a name after `(markdown)` on a block\'s opener), `notebook-markdown-attached-nowhere` (a `#(markdown)` annotation with no statement to take it), `notebook-artifact-unparsed` (an `## artifact` tag does not parse), and `notebook-cells-unreadable` (the reader could not read a linear report\'s cells), plus `report-kind-removed` (a tag that sets `kind=`, which is no longer read, so the file is not a report; the finding names the `layout=` to write), `report-cells-removed` (a linear tag that lists no `tiles`, the retired `run:` cell format, so the file is not a report; the fix is to list its tiles in `tiles=[…]`) and `report-layout-unknown` (a `layout=` other than `grid` or `linear`). The rest are `warn` (a mistyped `(markdown)` opener, a block that never closes, and similar). Skill and agent findings, all `warn`: a package skill under `skills/` that is not served (unreadable or linked-out `SKILL.md`, a frontmatter `name` that is not its directory name, a `skills/` directory that links out of the package) or served with a gap (no `description`, a `reference/` that cannot be listed or read); and each agent the manifest declares that is not served, or is served with a finding (an agent skill with no `description`, a skills directory with no skills, an unreadable reference). Deprecated-format findings, all `warn`: each `.malloynb` notebook (`model` is its path), and each source a file declares deprecated `#(filter)` annotations on (`model` is that file, `subject` the source; a source that only inherits or imports a filter is not reported). Both still load and run. Server-computed and read-only: ignored on create/update requests and only returned in responses. Present only when there are such findings. **Almost every `#@ preaggregate` that cannot be honored REJECTS A PUBLISH — a 400 at publish or PATCH — and fails a load thereafter.** The two access-modifier violations are the exception: they warn at BOTH gates and appear in this array. See the split below. Rejected are a `#@ preaggregate` anywhere but on a measure; a `#@ preaggregate` with no `grain=`; a grain naming anything but a dimension the base source itself declares, which rules out an inline time truncation such as `order_time.day`; a measure that cannot be correctly re-aggregated to a coarser grain, whether because its aggregate has no exact merge function (`count(distinct)`, `median`, percentiles, `mode`, and `avg` until it is decomposed) or because it carries its own filter, an ungrouping (`all`, `exclude`), or a required group-by; a measure whose expression cannot be POSITIVELY classified as re-aggregatable, which fails closed rather than being guessed at; a base source with a FAN-OUT join (`join_many` or `join_cross`), which can multiply rows, while a `join_one` is permitted and a measure aggregating through one is served normally; a base source that already fails persist eligibility (unbound parameters, `given` references, authorize gates); `sharing=` or `schedule=` at the resource level; and a synthesized rollup name that collides with an existing model object. WARNED rather than rejected, at publish and at load alike, is a `#@ preaggregate` on a measure the source does not publicly expose, or a grain naming a hidden dimension — a rollup STORES its grain and each measure\'s partial, and the stored table is served under the base\'s name without the source\'s field visibility applying to it. Each names the measure and the fix. Refusing rather than silently dropping the measure is the deliberate choice. A dropped measure is not served from the rollup at ANY grain, so the declaration would have no effect whatsoever while still reading as applied — and the build cost of the rollup would still be paid. An author who writes `#@ preaggregate` on a measure that cannot be rolled up has made a modeling mistake, and an error is where a mistake belongs. The same verdict is enforced at LOAD for every violation EXCEPT the two access-modifier ones, so a package whose declarations stopped being honorable does not load at all: it is absent from its environment and reported in `ServerStatus.loadErrors`. Worth knowing because whether a measure can be re-aggregated is derived from the compiled model, so a Malloy version change can in principle reclassify a measure that published cleanly long before. That surfaces as a package that stops loading rather than as a package quietly serving without its rollups — louder, and deliberately so, since the alternative is paying for rollups that answer nothing. The two access-modifier violations are the deliberate exception, and for two reasons rather than a lesser severity. They WARN at publish and at load alike and appear in this array. First, a package annotating a hidden field published and loaded before this rule existed — refusing it would stop an already-published package from doing either because a new validation was added, which is not a thing a server upgrade may do. Second, the refusal was unfollowable: an annotation INHERITED onto a source that then hides the measure raises it, while that source produces no plan at all and nothing is exposed, so the advice to make the field public or drop the annotation asks an author to give up either the hiding or the rollup over a model that was already safe. Warning is safe here and would not be for the others: what keeps a hidden field out of a rollup is that the planner refuses to plan one at all, so no table is built and nothing can be served whether or not anyone reads the message. For the other violations the refusal IS the enforcement, which is why they stay fatal.
|
|
1661
1665
|
*/
|
|
1662
1666
|
'warnings'?: Array<PackageWarningsInner>;
|
|
1663
1667
|
/**
|
|
@@ -2287,7 +2291,7 @@ export interface RawNotebook {
|
|
|
2287
2291
|
*/
|
|
2288
2292
|
'queries'?: Array<Query>;
|
|
2289
2293
|
/**
|
|
2290
|
-
* The tile layout of a linear report written as one (`## artifact { layout=linear tiles=[…] }`), in the shape a dashboard has, with `layout` `linear` and one column. Absent on a
|
|
2294
|
+
* The tile layout of a linear report written as one (`## artifact { layout=linear tiles=[…] }`), in the shape a dashboard has, with `layout` `linear` and one column. Absent on a `.malloynb`. Its tiles run through the model query endpoint at `modelPath`; `notebookCells` carries the same content as cells for readers that do not draw a layout.
|
|
2291
2295
|
* @deprecated
|
|
2292
2296
|
*/
|
|
2293
2297
|
'dashboard'?: DashboardManifest;
|
|
@@ -2382,7 +2386,7 @@ export interface Report {
|
|
|
2382
2386
|
*/
|
|
2383
2387
|
'layout': ReportLayoutEnum;
|
|
2384
2388
|
/**
|
|
2385
|
-
* Human title: the artifact tag\'s `title`, else the first line of the `\"` notes above the tag, else, for a
|
|
2389
|
+
* Human title: the artifact tag\'s `title`, else the first line of the `\"` notes above the tag, else, for a `.malloynb`, its first markdown heading, else `name`.
|
|
2386
2390
|
*/
|
|
2387
2391
|
'title': string;
|
|
2388
2392
|
/**
|
|
@@ -2390,7 +2394,7 @@ export interface Report {
|
|
|
2390
2394
|
*/
|
|
2391
2395
|
'description'?: string;
|
|
2392
2396
|
/**
|
|
2393
|
-
* Whether the builder opens it as it is:
|
|
2397
|
+
* Whether the builder opens it as it is: true for a `.malloy` report, false for a `.malloynb`.
|
|
2394
2398
|
*/
|
|
2395
2399
|
'editable': boolean;
|
|
2396
2400
|
/**
|
|
@@ -2404,7 +2408,7 @@ export declare const ReportLayoutEnum: {
|
|
|
2404
2408
|
};
|
|
2405
2409
|
export type ReportLayoutEnum = typeof ReportLayoutEnum[keyof typeof ReportLayoutEnum];
|
|
2406
2410
|
/**
|
|
2407
|
-
* A linear report
|
|
2411
|
+
* A `.malloynb`, or a linear `.malloy` report read as cells (its definitions, then its tiles): its cells, unexecuted, and its model.
|
|
2408
2412
|
*/
|
|
2409
2413
|
export interface ReportCells {
|
|
2410
2414
|
/**
|
|
@@ -2464,7 +2468,7 @@ export declare const ReportCellsFormatEnum: {
|
|
|
2464
2468
|
};
|
|
2465
2469
|
export type ReportCellsFormatEnum = typeof ReportCellsFormatEnum[keyof typeof ReportCellsFormatEnum];
|
|
2466
2470
|
/**
|
|
2467
|
-
* A `Report` plus what a viewer needs to draw it. A report
|
|
2471
|
+
* A `Report` plus what a viewer needs to draw it. A `.malloy` report, of either layout, carries `tiles`, `dashboardColumns`, `startingGivens`, `autorun` and `givens`, whose tiles and suggest queries run through `POST …/models/{path}/query` with `givens`. A `.malloynb` carries `notebook` instead.
|
|
2468
2472
|
*/
|
|
2469
2473
|
export interface ReportManifest {
|
|
2470
2474
|
/**
|
|
@@ -2488,7 +2492,7 @@ export interface ReportManifest {
|
|
|
2488
2492
|
*/
|
|
2489
2493
|
'layout': ReportManifestLayoutEnum;
|
|
2490
2494
|
/**
|
|
2491
|
-
* Human title: the artifact tag\'s `title`, else the first line of the `\"` notes above the tag, else, for a
|
|
2495
|
+
* Human title: the artifact tag\'s `title`, else the first line of the `\"` notes above the tag, else, for a `.malloynb`, its first markdown heading, else `name`.
|
|
2492
2496
|
*/
|
|
2493
2497
|
'title': string;
|
|
2494
2498
|
/**
|
|
@@ -2496,7 +2500,7 @@ export interface ReportManifest {
|
|
|
2496
2500
|
*/
|
|
2497
2501
|
'description'?: string;
|
|
2498
2502
|
/**
|
|
2499
|
-
* Whether the builder opens it as it is:
|
|
2503
|
+
* Whether the builder opens it as it is: true for a `.malloy` report, false for a `.malloynb`.
|
|
2500
2504
|
*/
|
|
2501
2505
|
'editable': boolean;
|
|
2502
2506
|
/**
|
|
@@ -2504,7 +2508,7 @@ export interface ReportManifest {
|
|
|
2504
2508
|
*/
|
|
2505
2509
|
'error'?: string;
|
|
2506
2510
|
/**
|
|
2507
|
-
* The report\'s tiles, each run as its own query (or shown as text), in order. Absent on a
|
|
2511
|
+
* The report\'s tiles, each run as its own query (or shown as text), in order. Absent on a `.malloynb`, and on a report that failed to compile.
|
|
2508
2512
|
*/
|
|
2509
2513
|
'tiles'?: Array<ReportTile>;
|
|
2510
2514
|
/**
|
|
@@ -2526,7 +2530,7 @@ export interface ReportManifest {
|
|
|
2526
2530
|
*/
|
|
2527
2531
|
'givens'?: Array<Given>;
|
|
2528
2532
|
/**
|
|
2529
|
-
* For a
|
|
2533
|
+
* For a `.malloynb`: its cells and model, each cell run with execute-notebook-cell. Absent on a `.malloy` report, and on a `.malloynb` that failed to compile.
|
|
2530
2534
|
*/
|
|
2531
2535
|
'notebook'?: ReportCells;
|
|
2532
2536
|
}
|
|
@@ -4842,7 +4846,7 @@ export declare const ModelsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
4842
4846
|
*/
|
|
4843
4847
|
listModels: (environmentName: string, packageName: string, versionId?: string, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4844
4848
|
/**
|
|
4845
|
-
* Writes the Malloy text of a report into the package, and reloads the package in place so it is served from the new text. This is the report builder\'s save. A report is any `.malloy` file carrying an artifact tag (see list-reports), of either layout, wherever it lives in the package. What it accepts: - CREATE (no `expectedHash`): any `.malloy` path in the package that does not exist yet, outside `public/`, and never the root `index.malloy`. Missing directories are created, inside the package root only. The text must carry an artifact tag (`## artifact`, or the deprecated query-level `# artifact`): an `artifact` property anywhere on a tag line, outside a string. Text without one is refused with 400. - REPLACE (with `expectedHash`): only a file the package currently reads as an editable report: a tagged `.malloy` report of either layout, including a tagged grid report that has no tiles yet. A model, an untagged file, a `.malloynb`, the root `index.malloy` and anything in `public/` cannot be overwritten, wherever they live, and answer 400. Two reports may share a basename in different directories; a report is identified by its path, so a taken basename is not refused. The text is compiled first, as the file, and refused with its problems when it does not compile; nothing is written. The write is atomic (a sibling temporary file renamed over the target). If the reload that follows fails to compile the package, the previous text is restored (or a new file removed) and the package reloaded again, so a save never leaves the package serving less than it did. `expectedHash` is the SHA-256 (hex) of the file\'s text as the caller opened it, as `GET …/models/{path}` returned it in `sourceText`. On a package with a surface, that GET withholds `sourceText` only when the text names a source the file does not publish, and returns it anyway with `includeHiddenFilesAndSources=true`. When the file on disk no longer hashes to it, the write is refused with 409 and nothing is merged: the caller re-opens and reapplies its change. Omit it to CREATE the file: a file that already exists is then refused with 409 too, so an unconditional overwrite is not something a caller can ask for by leaving a field out. A path over an existing file the package does not read as a report answers 400 instead, with or without a hash, because that check comes before the hash. The check, the write, the reload and the restore all happen under one hold of the package lock, so two saves racing on one file cannot both pass the check, and a rollback cannot revert the other writer\'s text instead of its own. A tag only inside a block comment passes the tag check but the compiled model carries none, so it is rolled back and answers 500. A tagged grid report with no tiles saves but is not served until it has one. A create answers 201 and an update 200; `created` in the body says the same thing. Refused with 403 when `publisher.config.json` has `frozenConfig: true`. Like every write on this server, it is unauthenticated and meant to sit behind an authenticating gateway; see docs/security-posture.md.
|
|
4849
|
+
* Writes the Malloy text of a report into the package, and reloads the package in place so it is served from the new text. This is the report builder\'s save. A report is any `.malloy` file carrying an artifact tag (see list-reports), of either layout, wherever it lives in the package. What it accepts: - CREATE (no `expectedHash`): any `.malloy` path in the package that does not exist yet, outside `public/`, and never the root `index.malloy`. Missing directories are created, inside the package root only. The text must carry an artifact tag (`## artifact`, or the deprecated query-level `# artifact`): an `artifact` property anywhere on a tag line, outside a string. Text without one is refused with 400. - REPLACE (with `expectedHash`): only a file the package currently reads as an editable report: a tagged `.malloy` report of either layout, including a tagged grid report that has no tiles yet, and a file whose tag makes no report (a `kind=` tag, or the retired `run:` cell format), so it can be rewritten as tiles. A model, an untagged file, a `.malloynb`, the root `index.malloy` and anything in `public/` cannot be overwritten, wherever they live, and answer 400. Two reports may share a basename in different directories; a report is identified by its path, so a taken basename is not refused. The text is compiled first, as the file, and refused with its problems when it does not compile, or when its tag makes no report (for example a linear tag with no `tiles`, `report-cells-removed`); nothing is written. The write is atomic (a sibling temporary file renamed over the target). If the reload that follows fails to compile the package, the previous text is restored (or a new file removed) and the package reloaded again, so a save never leaves the package serving less than it did. `expectedHash` is the SHA-256 (hex) of the file\'s text as the caller opened it, as `GET …/models/{path}` returned it in `sourceText`. On a package with a surface, that GET withholds `sourceText` only when the text names a source the file does not publish, and returns it anyway with `includeHiddenFilesAndSources=true`. When the file on disk no longer hashes to it, the write is refused with 409 and nothing is merged: the caller re-opens and reapplies its change. Omit it to CREATE the file: a file that already exists is then refused with 409 too, so an unconditional overwrite is not something a caller can ask for by leaving a field out. A path over an existing file the package does not read as a report answers 400 instead, with or without a hash, because that check comes before the hash. The check, the write, the reload and the restore all happen under one hold of the package lock, so two saves racing on one file cannot both pass the check, and a rollback cannot revert the other writer\'s text instead of its own. A tag only inside a block comment passes the tag check but the compiled model carries none, so it is rolled back and answers 500. A tagged grid report with no tiles saves but is not served until it has one. A create answers 201 and an update 200; `created` in the body says the same thing. Refused with 403 when `publisher.config.json` has `frozenConfig: true`. Like every write on this server, it is unauthenticated and meant to sit behind an authenticating gateway; see docs/security-posture.md.
|
|
4846
4850
|
* @summary Write a report file into the package
|
|
4847
4851
|
* @param {string} environmentName Name of the environment
|
|
4848
4852
|
* @param {string} packageName Name of the package
|
|
@@ -4905,7 +4909,7 @@ export declare const ModelsApiFp: (configuration?: Configuration) => {
|
|
|
4905
4909
|
*/
|
|
4906
4910
|
listModels(environmentName: string, packageName: string, versionId?: string, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Model>>>;
|
|
4907
4911
|
/**
|
|
4908
|
-
* Writes the Malloy text of a report into the package, and reloads the package in place so it is served from the new text. This is the report builder\'s save. A report is any `.malloy` file carrying an artifact tag (see list-reports), of either layout, wherever it lives in the package. What it accepts: - CREATE (no `expectedHash`): any `.malloy` path in the package that does not exist yet, outside `public/`, and never the root `index.malloy`. Missing directories are created, inside the package root only. The text must carry an artifact tag (`## artifact`, or the deprecated query-level `# artifact`): an `artifact` property anywhere on a tag line, outside a string. Text without one is refused with 400. - REPLACE (with `expectedHash`): only a file the package currently reads as an editable report: a tagged `.malloy` report of either layout, including a tagged grid report that has no tiles yet. A model, an untagged file, a `.malloynb`, the root `index.malloy` and anything in `public/` cannot be overwritten, wherever they live, and answer 400. Two reports may share a basename in different directories; a report is identified by its path, so a taken basename is not refused. The text is compiled first, as the file, and refused with its problems when it does not compile; nothing is written. The write is atomic (a sibling temporary file renamed over the target). If the reload that follows fails to compile the package, the previous text is restored (or a new file removed) and the package reloaded again, so a save never leaves the package serving less than it did. `expectedHash` is the SHA-256 (hex) of the file\'s text as the caller opened it, as `GET …/models/{path}` returned it in `sourceText`. On a package with a surface, that GET withholds `sourceText` only when the text names a source the file does not publish, and returns it anyway with `includeHiddenFilesAndSources=true`. When the file on disk no longer hashes to it, the write is refused with 409 and nothing is merged: the caller re-opens and reapplies its change. Omit it to CREATE the file: a file that already exists is then refused with 409 too, so an unconditional overwrite is not something a caller can ask for by leaving a field out. A path over an existing file the package does not read as a report answers 400 instead, with or without a hash, because that check comes before the hash. The check, the write, the reload and the restore all happen under one hold of the package lock, so two saves racing on one file cannot both pass the check, and a rollback cannot revert the other writer\'s text instead of its own. A tag only inside a block comment passes the tag check but the compiled model carries none, so it is rolled back and answers 500. A tagged grid report with no tiles saves but is not served until it has one. A create answers 201 and an update 200; `created` in the body says the same thing. Refused with 403 when `publisher.config.json` has `frozenConfig: true`. Like every write on this server, it is unauthenticated and meant to sit behind an authenticating gateway; see docs/security-posture.md.
|
|
4912
|
+
* Writes the Malloy text of a report into the package, and reloads the package in place so it is served from the new text. This is the report builder\'s save. A report is any `.malloy` file carrying an artifact tag (see list-reports), of either layout, wherever it lives in the package. What it accepts: - CREATE (no `expectedHash`): any `.malloy` path in the package that does not exist yet, outside `public/`, and never the root `index.malloy`. Missing directories are created, inside the package root only. The text must carry an artifact tag (`## artifact`, or the deprecated query-level `# artifact`): an `artifact` property anywhere on a tag line, outside a string. Text without one is refused with 400. - REPLACE (with `expectedHash`): only a file the package currently reads as an editable report: a tagged `.malloy` report of either layout, including a tagged grid report that has no tiles yet, and a file whose tag makes no report (a `kind=` tag, or the retired `run:` cell format), so it can be rewritten as tiles. A model, an untagged file, a `.malloynb`, the root `index.malloy` and anything in `public/` cannot be overwritten, wherever they live, and answer 400. Two reports may share a basename in different directories; a report is identified by its path, so a taken basename is not refused. The text is compiled first, as the file, and refused with its problems when it does not compile, or when its tag makes no report (for example a linear tag with no `tiles`, `report-cells-removed`); nothing is written. The write is atomic (a sibling temporary file renamed over the target). If the reload that follows fails to compile the package, the previous text is restored (or a new file removed) and the package reloaded again, so a save never leaves the package serving less than it did. `expectedHash` is the SHA-256 (hex) of the file\'s text as the caller opened it, as `GET …/models/{path}` returned it in `sourceText`. On a package with a surface, that GET withholds `sourceText` only when the text names a source the file does not publish, and returns it anyway with `includeHiddenFilesAndSources=true`. When the file on disk no longer hashes to it, the write is refused with 409 and nothing is merged: the caller re-opens and reapplies its change. Omit it to CREATE the file: a file that already exists is then refused with 409 too, so an unconditional overwrite is not something a caller can ask for by leaving a field out. A path over an existing file the package does not read as a report answers 400 instead, with or without a hash, because that check comes before the hash. The check, the write, the reload and the restore all happen under one hold of the package lock, so two saves racing on one file cannot both pass the check, and a rollback cannot revert the other writer\'s text instead of its own. A tag only inside a block comment passes the tag check but the compiled model carries none, so it is rolled back and answers 500. A tagged grid report with no tiles saves but is not served until it has one. A create answers 201 and an update 200; `created` in the body says the same thing. Refused with 403 when `publisher.config.json` has `frozenConfig: true`. Like every write on this server, it is unauthenticated and meant to sit behind an authenticating gateway; see docs/security-posture.md.
|
|
4909
4913
|
* @summary Write a report file into the package
|
|
4910
4914
|
* @param {string} environmentName Name of the environment
|
|
4911
4915
|
* @param {string} packageName Name of the package
|
|
@@ -4968,7 +4972,7 @@ export declare const ModelsApiFactory: (configuration?: Configuration, basePath?
|
|
|
4968
4972
|
*/
|
|
4969
4973
|
listModels(environmentName: string, packageName: string, versionId?: string, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<Array<Model>>;
|
|
4970
4974
|
/**
|
|
4971
|
-
* Writes the Malloy text of a report into the package, and reloads the package in place so it is served from the new text. This is the report builder\'s save. A report is any `.malloy` file carrying an artifact tag (see list-reports), of either layout, wherever it lives in the package. What it accepts: - CREATE (no `expectedHash`): any `.malloy` path in the package that does not exist yet, outside `public/`, and never the root `index.malloy`. Missing directories are created, inside the package root only. The text must carry an artifact tag (`## artifact`, or the deprecated query-level `# artifact`): an `artifact` property anywhere on a tag line, outside a string. Text without one is refused with 400. - REPLACE (with `expectedHash`): only a file the package currently reads as an editable report: a tagged `.malloy` report of either layout, including a tagged grid report that has no tiles yet. A model, an untagged file, a `.malloynb`, the root `index.malloy` and anything in `public/` cannot be overwritten, wherever they live, and answer 400. Two reports may share a basename in different directories; a report is identified by its path, so a taken basename is not refused. The text is compiled first, as the file, and refused with its problems when it does not compile; nothing is written. The write is atomic (a sibling temporary file renamed over the target). If the reload that follows fails to compile the package, the previous text is restored (or a new file removed) and the package reloaded again, so a save never leaves the package serving less than it did. `expectedHash` is the SHA-256 (hex) of the file\'s text as the caller opened it, as `GET …/models/{path}` returned it in `sourceText`. On a package with a surface, that GET withholds `sourceText` only when the text names a source the file does not publish, and returns it anyway with `includeHiddenFilesAndSources=true`. When the file on disk no longer hashes to it, the write is refused with 409 and nothing is merged: the caller re-opens and reapplies its change. Omit it to CREATE the file: a file that already exists is then refused with 409 too, so an unconditional overwrite is not something a caller can ask for by leaving a field out. A path over an existing file the package does not read as a report answers 400 instead, with or without a hash, because that check comes before the hash. The check, the write, the reload and the restore all happen under one hold of the package lock, so two saves racing on one file cannot both pass the check, and a rollback cannot revert the other writer\'s text instead of its own. A tag only inside a block comment passes the tag check but the compiled model carries none, so it is rolled back and answers 500. A tagged grid report with no tiles saves but is not served until it has one. A create answers 201 and an update 200; `created` in the body says the same thing. Refused with 403 when `publisher.config.json` has `frozenConfig: true`. Like every write on this server, it is unauthenticated and meant to sit behind an authenticating gateway; see docs/security-posture.md.
|
|
4975
|
+
* Writes the Malloy text of a report into the package, and reloads the package in place so it is served from the new text. This is the report builder\'s save. A report is any `.malloy` file carrying an artifact tag (see list-reports), of either layout, wherever it lives in the package. What it accepts: - CREATE (no `expectedHash`): any `.malloy` path in the package that does not exist yet, outside `public/`, and never the root `index.malloy`. Missing directories are created, inside the package root only. The text must carry an artifact tag (`## artifact`, or the deprecated query-level `# artifact`): an `artifact` property anywhere on a tag line, outside a string. Text without one is refused with 400. - REPLACE (with `expectedHash`): only a file the package currently reads as an editable report: a tagged `.malloy` report of either layout, including a tagged grid report that has no tiles yet, and a file whose tag makes no report (a `kind=` tag, or the retired `run:` cell format), so it can be rewritten as tiles. A model, an untagged file, a `.malloynb`, the root `index.malloy` and anything in `public/` cannot be overwritten, wherever they live, and answer 400. Two reports may share a basename in different directories; a report is identified by its path, so a taken basename is not refused. The text is compiled first, as the file, and refused with its problems when it does not compile, or when its tag makes no report (for example a linear tag with no `tiles`, `report-cells-removed`); nothing is written. The write is atomic (a sibling temporary file renamed over the target). If the reload that follows fails to compile the package, the previous text is restored (or a new file removed) and the package reloaded again, so a save never leaves the package serving less than it did. `expectedHash` is the SHA-256 (hex) of the file\'s text as the caller opened it, as `GET …/models/{path}` returned it in `sourceText`. On a package with a surface, that GET withholds `sourceText` only when the text names a source the file does not publish, and returns it anyway with `includeHiddenFilesAndSources=true`. When the file on disk no longer hashes to it, the write is refused with 409 and nothing is merged: the caller re-opens and reapplies its change. Omit it to CREATE the file: a file that already exists is then refused with 409 too, so an unconditional overwrite is not something a caller can ask for by leaving a field out. A path over an existing file the package does not read as a report answers 400 instead, with or without a hash, because that check comes before the hash. The check, the write, the reload and the restore all happen under one hold of the package lock, so two saves racing on one file cannot both pass the check, and a rollback cannot revert the other writer\'s text instead of its own. A tag only inside a block comment passes the tag check but the compiled model carries none, so it is rolled back and answers 500. A tagged grid report with no tiles saves but is not served until it has one. A create answers 201 and an update 200; `created` in the body says the same thing. Refused with 403 when `publisher.config.json` has `frozenConfig: true`. Like every write on this server, it is unauthenticated and meant to sit behind an authenticating gateway; see docs/security-posture.md.
|
|
4972
4976
|
* @summary Write a report file into the package
|
|
4973
4977
|
* @param {string} environmentName Name of the environment
|
|
4974
4978
|
* @param {string} packageName Name of the package
|
|
@@ -5031,7 +5035,7 @@ export declare class ModelsApi extends BaseAPI {
|
|
|
5031
5035
|
*/
|
|
5032
5036
|
listModels(environmentName: string, packageName: string, versionId?: string, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Model[], any, {}, any>>;
|
|
5033
5037
|
/**
|
|
5034
|
-
* Writes the Malloy text of a report into the package, and reloads the package in place so it is served from the new text. This is the report builder\'s save. A report is any `.malloy` file carrying an artifact tag (see list-reports), of either layout, wherever it lives in the package. What it accepts: - CREATE (no `expectedHash`): any `.malloy` path in the package that does not exist yet, outside `public/`, and never the root `index.malloy`. Missing directories are created, inside the package root only. The text must carry an artifact tag (`## artifact`, or the deprecated query-level `# artifact`): an `artifact` property anywhere on a tag line, outside a string. Text without one is refused with 400. - REPLACE (with `expectedHash`): only a file the package currently reads as an editable report: a tagged `.malloy` report of either layout, including a tagged grid report that has no tiles yet. A model, an untagged file, a `.malloynb`, the root `index.malloy` and anything in `public/` cannot be overwritten, wherever they live, and answer 400. Two reports may share a basename in different directories; a report is identified by its path, so a taken basename is not refused. The text is compiled first, as the file, and refused with its problems when it does not compile; nothing is written. The write is atomic (a sibling temporary file renamed over the target). If the reload that follows fails to compile the package, the previous text is restored (or a new file removed) and the package reloaded again, so a save never leaves the package serving less than it did. `expectedHash` is the SHA-256 (hex) of the file\'s text as the caller opened it, as `GET …/models/{path}` returned it in `sourceText`. On a package with a surface, that GET withholds `sourceText` only when the text names a source the file does not publish, and returns it anyway with `includeHiddenFilesAndSources=true`. When the file on disk no longer hashes to it, the write is refused with 409 and nothing is merged: the caller re-opens and reapplies its change. Omit it to CREATE the file: a file that already exists is then refused with 409 too, so an unconditional overwrite is not something a caller can ask for by leaving a field out. A path over an existing file the package does not read as a report answers 400 instead, with or without a hash, because that check comes before the hash. The check, the write, the reload and the restore all happen under one hold of the package lock, so two saves racing on one file cannot both pass the check, and a rollback cannot revert the other writer\'s text instead of its own. A tag only inside a block comment passes the tag check but the compiled model carries none, so it is rolled back and answers 500. A tagged grid report with no tiles saves but is not served until it has one. A create answers 201 and an update 200; `created` in the body says the same thing. Refused with 403 when `publisher.config.json` has `frozenConfig: true`. Like every write on this server, it is unauthenticated and meant to sit behind an authenticating gateway; see docs/security-posture.md.
|
|
5038
|
+
* Writes the Malloy text of a report into the package, and reloads the package in place so it is served from the new text. This is the report builder\'s save. A report is any `.malloy` file carrying an artifact tag (see list-reports), of either layout, wherever it lives in the package. What it accepts: - CREATE (no `expectedHash`): any `.malloy` path in the package that does not exist yet, outside `public/`, and never the root `index.malloy`. Missing directories are created, inside the package root only. The text must carry an artifact tag (`## artifact`, or the deprecated query-level `# artifact`): an `artifact` property anywhere on a tag line, outside a string. Text without one is refused with 400. - REPLACE (with `expectedHash`): only a file the package currently reads as an editable report: a tagged `.malloy` report of either layout, including a tagged grid report that has no tiles yet, and a file whose tag makes no report (a `kind=` tag, or the retired `run:` cell format), so it can be rewritten as tiles. A model, an untagged file, a `.malloynb`, the root `index.malloy` and anything in `public/` cannot be overwritten, wherever they live, and answer 400. Two reports may share a basename in different directories; a report is identified by its path, so a taken basename is not refused. The text is compiled first, as the file, and refused with its problems when it does not compile, or when its tag makes no report (for example a linear tag with no `tiles`, `report-cells-removed`); nothing is written. The write is atomic (a sibling temporary file renamed over the target). If the reload that follows fails to compile the package, the previous text is restored (or a new file removed) and the package reloaded again, so a save never leaves the package serving less than it did. `expectedHash` is the SHA-256 (hex) of the file\'s text as the caller opened it, as `GET …/models/{path}` returned it in `sourceText`. On a package with a surface, that GET withholds `sourceText` only when the text names a source the file does not publish, and returns it anyway with `includeHiddenFilesAndSources=true`. When the file on disk no longer hashes to it, the write is refused with 409 and nothing is merged: the caller re-opens and reapplies its change. Omit it to CREATE the file: a file that already exists is then refused with 409 too, so an unconditional overwrite is not something a caller can ask for by leaving a field out. A path over an existing file the package does not read as a report answers 400 instead, with or without a hash, because that check comes before the hash. The check, the write, the reload and the restore all happen under one hold of the package lock, so two saves racing on one file cannot both pass the check, and a rollback cannot revert the other writer\'s text instead of its own. A tag only inside a block comment passes the tag check but the compiled model carries none, so it is rolled back and answers 500. A tagged grid report with no tiles saves but is not served until it has one. A create answers 201 and an update 200; `created` in the body says the same thing. Refused with 403 when `publisher.config.json` has `frozenConfig: true`. Like every write on this server, it is unauthenticated and meant to sit behind an authenticating gateway; see docs/security-posture.md.
|
|
5035
5039
|
* @summary Write a report file into the package
|
|
5036
5040
|
* @param {string} environmentName Name of the environment
|
|
5037
5041
|
* @param {string} packageName Name of the package
|
|
@@ -5577,7 +5581,7 @@ export declare class PublisherApi extends BaseAPI {
|
|
|
5577
5581
|
*/
|
|
5578
5582
|
export declare const ReportsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
5579
5583
|
/**
|
|
5580
|
-
* Everything a viewer needs to render one report, addressed by its path in the package, including its extension, exactly as list-reports gives it (`sales/q3.malloy`). A report
|
|
5584
|
+
* Everything a viewer needs to render one report, addressed by its path in the package, including its extension, exactly as list-reports gives it (`sales/q3.malloy`). A `.malloy` report, of either layout, carries the manifest fields (`tiles` or `query`, `dashboardColumns`, `startingGivens`, `autorun`, `givens`): its tiles run through the model query endpoint with `givens`, using `path` as the model. A `.malloynb`, the one cell format left, carries `notebook` instead: its cells as get-notebook returned them, run through the deprecated execute-notebook-cell.
|
|
5581
5585
|
* @summary Get a report manifest
|
|
5582
5586
|
* @param {string} environmentName Name of the environment
|
|
5583
5587
|
* @param {string} packageName Name of the package
|
|
@@ -5588,7 +5592,7 @@ export declare const ReportsApiAxiosParamCreator: (configuration?: Configuration
|
|
|
5588
5592
|
*/
|
|
5589
5593
|
getReport: (environmentName: string, packageName: string, path: string, versionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
5590
5594
|
/**
|
|
5591
|
-
* Lists every report in the package, in path order. A report is a `.malloy` file anywhere in the package, outside `public/`, that carries an artifact tag: a model-level `## artifact`, or the deprecated query-level `# artifact` on a `query:`. The package\'s root `index.malloy` is never a report (it is the surface). A legacy `.malloynb` is also a report, linear and read-only. Where a file lives carries no meaning: `dashboards/` and `notebooks/` are ordinary directory names. Everything else is an ordinary model, which a report may import. A report\'s `layout` is decided by its tags, first match wins: the tag\'s `layout=` (`grid` or `linear`); else
|
|
5595
|
+
* Lists every report in the package, in path order. A report is a `.malloy` file anywhere in the package, outside `public/`, that carries an artifact tag: a model-level `## artifact`, or the deprecated query-level `# artifact` on a `query:`. The package\'s root `index.malloy` is never a report (it is the surface). A legacy `.malloynb` is also a report, linear and read-only. Where a file lives carries no meaning: `dashboards/` and `notebooks/` are ordinary directory names. Everything else is an ordinary model, which a report may import. A report\'s `layout` is decided by its tags, first match wins: the tag\'s `layout=` (`grid` or `linear`); else grid for a query-level `# artifact`; else grid for a model-level tag that lists `tiles` or carries a `dashboard { … }` grid tag; else linear. A tag that sets `kind=` is no report (`report-kind-removed`), and neither is a linear tag that lists no `tiles`: that is the retired `run:` cell format (`report-cells-removed`). An empty `tiles=[]` is a linear report with no tiles yet. A report is identified by its `path`. `name`, its basename, is a display label only: two reports may share one. Every report is listed whatever the package\'s surface; the surface limits what its tiles and cells may read, not whether it is listed. A report that failed to compile is listed with its `error`. A tagged grid report with no tiles yet is not served and not listed.
|
|
5592
5596
|
* @summary List package reports
|
|
5593
5597
|
* @param {string} environmentName Name of the environment
|
|
5594
5598
|
* @param {string} packageName Name of the package
|
|
@@ -5603,7 +5607,7 @@ export declare const ReportsApiAxiosParamCreator: (configuration?: Configuration
|
|
|
5603
5607
|
*/
|
|
5604
5608
|
export declare const ReportsApiFp: (configuration?: Configuration) => {
|
|
5605
5609
|
/**
|
|
5606
|
-
* Everything a viewer needs to render one report, addressed by its path in the package, including its extension, exactly as list-reports gives it (`sales/q3.malloy`). A report
|
|
5610
|
+
* Everything a viewer needs to render one report, addressed by its path in the package, including its extension, exactly as list-reports gives it (`sales/q3.malloy`). A `.malloy` report, of either layout, carries the manifest fields (`tiles` or `query`, `dashboardColumns`, `startingGivens`, `autorun`, `givens`): its tiles run through the model query endpoint with `givens`, using `path` as the model. A `.malloynb`, the one cell format left, carries `notebook` instead: its cells as get-notebook returned them, run through the deprecated execute-notebook-cell.
|
|
5607
5611
|
* @summary Get a report manifest
|
|
5608
5612
|
* @param {string} environmentName Name of the environment
|
|
5609
5613
|
* @param {string} packageName Name of the package
|
|
@@ -5614,7 +5618,7 @@ export declare const ReportsApiFp: (configuration?: Configuration) => {
|
|
|
5614
5618
|
*/
|
|
5615
5619
|
getReport(environmentName: string, packageName: string, path: string, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReportManifest>>;
|
|
5616
5620
|
/**
|
|
5617
|
-
* Lists every report in the package, in path order. A report is a `.malloy` file anywhere in the package, outside `public/`, that carries an artifact tag: a model-level `## artifact`, or the deprecated query-level `# artifact` on a `query:`. The package\'s root `index.malloy` is never a report (it is the surface). A legacy `.malloynb` is also a report, linear and read-only. Where a file lives carries no meaning: `dashboards/` and `notebooks/` are ordinary directory names. Everything else is an ordinary model, which a report may import. A report\'s `layout` is decided by its tags, first match wins: the tag\'s `layout=` (`grid` or `linear`); else
|
|
5621
|
+
* Lists every report in the package, in path order. A report is a `.malloy` file anywhere in the package, outside `public/`, that carries an artifact tag: a model-level `## artifact`, or the deprecated query-level `# artifact` on a `query:`. The package\'s root `index.malloy` is never a report (it is the surface). A legacy `.malloynb` is also a report, linear and read-only. Where a file lives carries no meaning: `dashboards/` and `notebooks/` are ordinary directory names. Everything else is an ordinary model, which a report may import. A report\'s `layout` is decided by its tags, first match wins: the tag\'s `layout=` (`grid` or `linear`); else grid for a query-level `# artifact`; else grid for a model-level tag that lists `tiles` or carries a `dashboard { … }` grid tag; else linear. A tag that sets `kind=` is no report (`report-kind-removed`), and neither is a linear tag that lists no `tiles`: that is the retired `run:` cell format (`report-cells-removed`). An empty `tiles=[]` is a linear report with no tiles yet. A report is identified by its `path`. `name`, its basename, is a display label only: two reports may share one. Every report is listed whatever the package\'s surface; the surface limits what its tiles and cells may read, not whether it is listed. A report that failed to compile is listed with its `error`. A tagged grid report with no tiles yet is not served and not listed.
|
|
5618
5622
|
* @summary List package reports
|
|
5619
5623
|
* @param {string} environmentName Name of the environment
|
|
5620
5624
|
* @param {string} packageName Name of the package
|
|
@@ -5629,7 +5633,7 @@ export declare const ReportsApiFp: (configuration?: Configuration) => {
|
|
|
5629
5633
|
*/
|
|
5630
5634
|
export declare const ReportsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
5631
5635
|
/**
|
|
5632
|
-
* Everything a viewer needs to render one report, addressed by its path in the package, including its extension, exactly as list-reports gives it (`sales/q3.malloy`). A report
|
|
5636
|
+
* Everything a viewer needs to render one report, addressed by its path in the package, including its extension, exactly as list-reports gives it (`sales/q3.malloy`). A `.malloy` report, of either layout, carries the manifest fields (`tiles` or `query`, `dashboardColumns`, `startingGivens`, `autorun`, `givens`): its tiles run through the model query endpoint with `givens`, using `path` as the model. A `.malloynb`, the one cell format left, carries `notebook` instead: its cells as get-notebook returned them, run through the deprecated execute-notebook-cell.
|
|
5633
5637
|
* @summary Get a report manifest
|
|
5634
5638
|
* @param {string} environmentName Name of the environment
|
|
5635
5639
|
* @param {string} packageName Name of the package
|
|
@@ -5640,7 +5644,7 @@ export declare const ReportsApiFactory: (configuration?: Configuration, basePath
|
|
|
5640
5644
|
*/
|
|
5641
5645
|
getReport(environmentName: string, packageName: string, path: string, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<ReportManifest>;
|
|
5642
5646
|
/**
|
|
5643
|
-
* Lists every report in the package, in path order. A report is a `.malloy` file anywhere in the package, outside `public/`, that carries an artifact tag: a model-level `## artifact`, or the deprecated query-level `# artifact` on a `query:`. The package\'s root `index.malloy` is never a report (it is the surface). A legacy `.malloynb` is also a report, linear and read-only. Where a file lives carries no meaning: `dashboards/` and `notebooks/` are ordinary directory names. Everything else is an ordinary model, which a report may import. A report\'s `layout` is decided by its tags, first match wins: the tag\'s `layout=` (`grid` or `linear`); else
|
|
5647
|
+
* Lists every report in the package, in path order. A report is a `.malloy` file anywhere in the package, outside `public/`, that carries an artifact tag: a model-level `## artifact`, or the deprecated query-level `# artifact` on a `query:`. The package\'s root `index.malloy` is never a report (it is the surface). A legacy `.malloynb` is also a report, linear and read-only. Where a file lives carries no meaning: `dashboards/` and `notebooks/` are ordinary directory names. Everything else is an ordinary model, which a report may import. A report\'s `layout` is decided by its tags, first match wins: the tag\'s `layout=` (`grid` or `linear`); else grid for a query-level `# artifact`; else grid for a model-level tag that lists `tiles` or carries a `dashboard { … }` grid tag; else linear. A tag that sets `kind=` is no report (`report-kind-removed`), and neither is a linear tag that lists no `tiles`: that is the retired `run:` cell format (`report-cells-removed`). An empty `tiles=[]` is a linear report with no tiles yet. A report is identified by its `path`. `name`, its basename, is a display label only: two reports may share one. Every report is listed whatever the package\'s surface; the surface limits what its tiles and cells may read, not whether it is listed. A report that failed to compile is listed with its `error`. A tagged grid report with no tiles yet is not served and not listed.
|
|
5644
5648
|
* @summary List package reports
|
|
5645
5649
|
* @param {string} environmentName Name of the environment
|
|
5646
5650
|
* @param {string} packageName Name of the package
|
|
@@ -5655,7 +5659,7 @@ export declare const ReportsApiFactory: (configuration?: Configuration, basePath
|
|
|
5655
5659
|
*/
|
|
5656
5660
|
export declare class ReportsApi extends BaseAPI {
|
|
5657
5661
|
/**
|
|
5658
|
-
* Everything a viewer needs to render one report, addressed by its path in the package, including its extension, exactly as list-reports gives it (`sales/q3.malloy`). A report
|
|
5662
|
+
* Everything a viewer needs to render one report, addressed by its path in the package, including its extension, exactly as list-reports gives it (`sales/q3.malloy`). A `.malloy` report, of either layout, carries the manifest fields (`tiles` or `query`, `dashboardColumns`, `startingGivens`, `autorun`, `givens`): its tiles run through the model query endpoint with `givens`, using `path` as the model. A `.malloynb`, the one cell format left, carries `notebook` instead: its cells as get-notebook returned them, run through the deprecated execute-notebook-cell.
|
|
5659
5663
|
* @summary Get a report manifest
|
|
5660
5664
|
* @param {string} environmentName Name of the environment
|
|
5661
5665
|
* @param {string} packageName Name of the package
|
|
@@ -5666,7 +5670,7 @@ export declare class ReportsApi extends BaseAPI {
|
|
|
5666
5670
|
*/
|
|
5667
5671
|
getReport(environmentName: string, packageName: string, path: string, versionId?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<ReportManifest, any, {}, any>>;
|
|
5668
5672
|
/**
|
|
5669
|
-
* Lists every report in the package, in path order. A report is a `.malloy` file anywhere in the package, outside `public/`, that carries an artifact tag: a model-level `## artifact`, or the deprecated query-level `# artifact` on a `query:`. The package\'s root `index.malloy` is never a report (it is the surface). A legacy `.malloynb` is also a report, linear and read-only. Where a file lives carries no meaning: `dashboards/` and `notebooks/` are ordinary directory names. Everything else is an ordinary model, which a report may import. A report\'s `layout` is decided by its tags, first match wins: the tag\'s `layout=` (`grid` or `linear`); else
|
|
5673
|
+
* Lists every report in the package, in path order. A report is a `.malloy` file anywhere in the package, outside `public/`, that carries an artifact tag: a model-level `## artifact`, or the deprecated query-level `# artifact` on a `query:`. The package\'s root `index.malloy` is never a report (it is the surface). A legacy `.malloynb` is also a report, linear and read-only. Where a file lives carries no meaning: `dashboards/` and `notebooks/` are ordinary directory names. Everything else is an ordinary model, which a report may import. A report\'s `layout` is decided by its tags, first match wins: the tag\'s `layout=` (`grid` or `linear`); else grid for a query-level `# artifact`; else grid for a model-level tag that lists `tiles` or carries a `dashboard { … }` grid tag; else linear. A tag that sets `kind=` is no report (`report-kind-removed`), and neither is a linear tag that lists no `tiles`: that is the retired `run:` cell format (`report-cells-removed`). An empty `tiles=[]` is a linear report with no tiles yet. A report is identified by its `path`. `name`, its basename, is a display label only: two reports may share one. Every report is listed whatever the package\'s surface; the surface limits what its tiles and cells may read, not whether it is listed. A report that failed to compile is listed with its `error`. A tagged grid report with no tiles yet is not served and not listed.
|
|
5670
5674
|
* @summary List package reports
|
|
5671
5675
|
* @param {string} environmentName Name of the environment
|
|
5672
5676
|
* @param {string} packageName Name of the package
|
package/dist/client/index.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../ServerProvider-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../ServerProvider-BOgiW8MX.cjs.js");exports.AgentsApi=e.AgentsApi;exports.AgentsApiAxiosParamCreator=e.AgentsApiAxiosParamCreator;exports.AgentsApiFactory=e.AgentsApiFactory;exports.AgentsApiFp=e.AgentsApiFp;exports.AttachedDatabaseTypeEnum=e.AttachedDatabaseTypeEnum;exports.AzureConnectionAuthTypeEnum=e.AzureConnectionAuthTypeEnum;exports.CompileProblemSeverityEnum=e.CompileProblemSeverityEnum;exports.CompileRequestScopeEnum=e.CompileRequestScopeEnum;exports.CompileResultStatusEnum=e.CompileResultStatusEnum;exports.CompiledDocumentKindEnum=e.CompiledDocumentKindEnum;exports.CompiledDocumentLayoutEnum=e.CompiledDocumentLayoutEnum;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.DashboardManifestKindEnum=e.DashboardManifestKindEnum;exports.DashboardManifestLayoutEnum=e.DashboardManifestLayoutEnum;exports.DashboardTileKindEnum=e.DashboardTileKindEnum;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.GetAgentSkillsEnum=e.GetAgentSkillsEnum;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.ManifestEntryUpstreamReuseEnum=e.ManifestEntryUpstreamReuseEnum;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.PackageEmbeddingIndexReasonEnum=e.PackageEmbeddingIndexReasonEnum;exports.PackageEmbeddingIndexStageEnum=e.PackageEmbeddingIndexStageEnum;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.ReportCellsFormatEnum=e.ReportCellsFormatEnum;exports.ReportLayoutEnum=e.ReportLayoutEnum;exports.ReportManifestLayoutEnum=e.ReportManifestLayoutEnum;exports.ReportTileKindEnum=e.ReportTileKindEnum;exports.ReportsApi=e.ReportsApi;exports.ReportsApiAxiosParamCreator=e.ReportsApiAxiosParamCreator;exports.ReportsApiFactory=e.ReportsApiFactory;exports.ReportsApiFp=e.ReportsApiFp;exports.RunContextTriggerEnum=e.RunContextTriggerEnum;exports.S3ConnectionProviderEnum=e.S3ConnectionProviderEnum;exports.ServerProvider=e.ServerProvider;exports.ServerStatusOperationalStateEnum=e.ServerStatusOperationalStateEnum;exports.SkillOriginEnum=e.SkillOriginEnum;exports.SkillSummaryOriginEnum=e.SkillSummaryOriginEnum;exports.SkillsApi=e.SkillsApi;exports.SkillsApiAxiosParamCreator=e.SkillsApiAxiosParamCreator;exports.SkillsApiFactory=e.SkillsApiFactory;exports.SkillsApiFp=e.SkillsApiFp;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.usePublisherTheme=e.usePublisherTheme;exports.useServer=e.useServer;
|
package/dist/client/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as e, a as i, b as o, c as n, d as t, e as r, C as p, f as u, g as m, h as A, i as l, j as E, k as c, l as y, m as C, n as d, o as b, p as F, q as g, r as P, s as S, t as k, u as M, D as R, v as h, w as x, x as D, y as T, z as v, B as f, E as N, F as z, G as L, H as K, I as O, J as Q, K as I, L as W, M as B, N as w, O as G, P as q, Q as U, R as j, S as H, T as J, 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 ia, a2 as oa, a3 as na, a4 as ta, a5 as ra, a6 as pa, a7 as ua, a8 as ma, a9 as Aa, aa as la, ab as Ea, ac as ca, ad as ya, ae as Ca, af as da, ag as ba, ah as Fa, ai as ga, aj as Pa, ak as Sa, al as ka, am as Ma, an as Ra, ao as ha, ap as xa, aq as Da, ar as Ta, as as va, at as fa, au as Na, av as za, aw as La, ax as Ka, ay as Oa, az as Qa, aA as Ia, aB as Wa, aC as Ba, aD as wa, aE as Ga, aF as qa, aG as Ua, aH as ja, aI as Ha, aJ as Ja, aK as Va, aL as Xa, aM as Ya, aN as Za, aO as _a, aP as $a, aQ as as, aR as ss, aS as es, aT as is, aU as os, aV as ns, aW as ts, aX as rs, aY as ps, aZ as us, a_ as ms, a$ as As, b0 as ls, b1 as Es, b2 as cs, b3 as ys, b4 as Cs, b5 as ds } from "../ServerProvider-
|
|
1
|
+
import { A as e, a as i, b as o, c as n, d as t, e as r, C as p, f as u, g as m, h as A, i as l, j as E, k as c, l as y, m as C, n as d, o as b, p as F, q as g, r as P, s as S, t as k, u as M, D as R, v as h, w as x, x as D, y as T, z as v, B as f, E as N, F as z, G as L, H as K, I as O, J as Q, K as I, L as W, M as B, N as w, O as G, P as q, Q as U, R as j, S as H, T as J, 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 ia, a2 as oa, a3 as na, a4 as ta, a5 as ra, a6 as pa, a7 as ua, a8 as ma, a9 as Aa, aa as la, ab as Ea, ac as ca, ad as ya, ae as Ca, af as da, ag as ba, ah as Fa, ai as ga, aj as Pa, ak as Sa, al as ka, am as Ma, an as Ra, ao as ha, ap as xa, aq as Da, ar as Ta, as as va, at as fa, au as Na, av as za, aw as La, ax as Ka, ay as Oa, az as Qa, aA as Ia, aB as Wa, aC as Ba, aD as wa, aE as Ga, aF as qa, aG as Ua, aH as ja, aI as Ha, aJ as Ja, aK as Va, aL as Xa, aM as Ya, aN as Za, aO as _a, aP as $a, aQ as as, aR as ss, aS as es, aT as is, aU as os, aV as ns, aW as ts, aX as rs, aY as ps, aZ as us, a_ as ms, a$ as As, b0 as ls, b1 as Es, b2 as cs, b3 as ys, b4 as Cs, b5 as ds } from "../ServerProvider-azXLkk1q.es.js";
|
|
2
2
|
export {
|
|
3
3
|
e as AgentsApi,
|
|
4
4
|
i as AgentsApiAxiosParamCreator,
|
|
@@ -14,7 +14,7 @@ import * as React from "react";
|
|
|
14
14
|
* more than text (`RowsDialog`, `MaterializationDetailDialog`) can move onto
|
|
15
15
|
* this rather than hand-roll its own close button and type.
|
|
16
16
|
*/
|
|
17
|
-
export declare function AppDialog({ open, onClose, title, description, maxWidth, showClose, actions, children, }: {
|
|
17
|
+
export declare function AppDialog({ open, onClose, title, description, maxWidth, showClose, actions, initialFocus, className, children, }: {
|
|
18
18
|
open: boolean;
|
|
19
19
|
onClose: () => void;
|
|
20
20
|
/** The heading. A string in the common case; a node when it needs more. */
|
|
@@ -26,5 +26,13 @@ export declare function AppDialog({ open, onClose, title, description, maxWidth,
|
|
|
26
26
|
showClose?: boolean;
|
|
27
27
|
/** The buttons, in order. Cancel first, the thing it does last. */
|
|
28
28
|
actions?: React.ReactNode;
|
|
29
|
+
/**
|
|
30
|
+
* The control to start in. Focused once the window has opened: a child's
|
|
31
|
+
* own `autoFocus` loses to the focus trap, which takes focus to the
|
|
32
|
+
* window's container as it opens, after the child has mounted.
|
|
33
|
+
*/
|
|
34
|
+
initialFocus?: React.RefObject<HTMLElement | null>;
|
|
35
|
+
/** Classes on the window's root, for a host to style it by. */
|
|
36
|
+
className?: string;
|
|
29
37
|
children: React.ReactNode;
|
|
30
38
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import { ReactNode, RefObject } from 'react';
|
|
2
2
|
/** Grid width when the dashboard declares no `# dashboard { columns=N }`. */
|
|
3
3
|
export declare const DEFAULT_COLUMNS = 2;
|
|
4
4
|
/** The widest grid the builder offers; the server lints wider ones and the reader still renders them. */
|
|
@@ -14,20 +14,10 @@ export declare const nudgedSpan: (current: number, delta: 1 | -1, columns: numbe
|
|
|
14
14
|
*/
|
|
15
15
|
export declare const GRID_GAP_PX = 16;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
* so the builder's selection ring, drawn {@link BARE_RING_OFFSET_PX} clear of
|
|
20
|
-
* a bare tile, never meets the next tile's.
|
|
17
|
+
* How far a bare (uncarded) tile's selection ring sits from its prose: half the
|
|
18
|
+
* {@link GRID_GAP_PX} between tiles, so a ring never reaches into the next tile.
|
|
21
19
|
*/
|
|
22
|
-
export declare const
|
|
23
|
-
/** How far a bare (uncarded) tile's selection ring sits from its content. */
|
|
24
|
-
export declare const BARE_RING_OFFSET_PX = 12;
|
|
25
|
-
/**
|
|
26
|
-
* The space above and below a notebook's description, in both modes: a bare
|
|
27
|
-
* description's ring in the builder is {@link BARE_RING_OFFSET_PX} clear of
|
|
28
|
-
* its text, and needs the room to stay clear of the title and the filters.
|
|
29
|
-
*/
|
|
30
|
-
export declare const BARE_DESCRIPTION_MARGIN_PX: number;
|
|
20
|
+
export declare const BARE_RING_OFFSET_PX: number;
|
|
31
21
|
/**
|
|
32
22
|
* The `grid-column` one tile occupies: its `# colspan`, and a `# break` forcing
|
|
33
23
|
* it to start a fresh row.
|
|
@@ -41,6 +31,15 @@ export declare function tileGridColumn(tile: {
|
|
|
41
31
|
colspan?: number;
|
|
42
32
|
break?: boolean;
|
|
43
33
|
}, columns: number): string;
|
|
34
|
+
/** Narrowest a tile that sets no `colspan` is drawn, by the reader and the builder alike. */
|
|
35
|
+
export declare const MIN_TILE_PX = 240;
|
|
36
|
+
/**
|
|
37
|
+
* The span a tile with no `# colspan` is drawn at in the grid inside `box`:
|
|
38
|
+
* {@link defaultTileSpan} on its measured width. For a surface that lays the
|
|
39
|
+
* grid out itself (the builder, whose width handle and row arithmetic need
|
|
40
|
+
* the span a tile is drawn at, not the one it writes).
|
|
41
|
+
*/
|
|
42
|
+
export declare function useDefaultTileSpan(box: RefObject<HTMLElement | null>, columns: number, minTilePx?: number): number;
|
|
44
43
|
/**
|
|
45
44
|
* Columns a tile with no `# colspan` spans so it is at least `minTilePx` wide.
|
|
46
45
|
*
|
|
@@ -94,6 +93,6 @@ export declare function DashboardGrid<T extends GridTile>({ tiles, columns, keyO
|
|
|
94
93
|
* builder assumes an unset colspan is one column.
|
|
95
94
|
*/
|
|
96
95
|
minTilePx?: number;
|
|
97
|
-
/** The space between rows
|
|
96
|
+
/** The space between rows. */
|
|
98
97
|
rowGapPx?: number;
|
|
99
98
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -59,6 +59,13 @@ export interface DashboardTileProps {
|
|
|
59
59
|
preamble?: string;
|
|
60
60
|
/** The server marked this tile unreadable for the viewer: nothing is run. */
|
|
61
61
|
restricted?: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Set while a required filter this tile reads has no value: what to say in
|
|
64
|
+
* place of the result ("Waiting for Recall Year."). Nothing is run, since
|
|
65
|
+
* the query would only fail with the compiler's "has no value and no
|
|
66
|
+
* default".
|
|
67
|
+
*/
|
|
68
|
+
waitingFor?: string;
|
|
62
69
|
/** Its position in the report, for the `report.query_failed` it reports. */
|
|
63
70
|
index?: number;
|
|
64
71
|
}
|
|
@@ -80,4 +87,4 @@ export declare function tileTitle(tile: string): string;
|
|
|
80
87
|
* tile: the broken one shows its error in place and the rest of the grid still
|
|
81
88
|
* renders, rather than one failure blanking the page.
|
|
82
89
|
*/
|
|
83
|
-
export declare function DashboardTile({ environmentName, packageName, versionId, modelPath, queryName, tile, annotation, label, subtitle, heading, borderless, givens, hostGivens, declaredTypes, givenNames, height, maxResultSize, drill, onExplore, chrome, ignoredFilters, preamble, restricted, index, }: DashboardTileProps): import("react/jsx-runtime").JSX.Element;
|
|
90
|
+
export declare function DashboardTile({ environmentName, packageName, versionId, modelPath, queryName, tile, annotation, label, subtitle, heading, borderless, givens, hostGivens, declaredTypes, givenNames, height, maxResultSize, drill, onExplore, chrome, ignoredFilters, preamble, restricted, waitingFor, index, }: DashboardTileProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,14 +2,10 @@ import { DashboardManifest } from '../../client';
|
|
|
2
2
|
import { HostGivenValue } from '../../hooks/givenValue';
|
|
3
3
|
import { DrillNavigation } from '../drill';
|
|
4
4
|
import { GivensLayout } from '../given';
|
|
5
|
+
import { NavigationClick } from '../click_helper';
|
|
5
6
|
import { TileChrome } from './TileCard';
|
|
6
|
-
/**
|
|
7
|
-
|
|
8
|
-
* inside itself as it scrolls under (a result's floating buttons sit at 1–2),
|
|
9
|
-
* and below MUI's app bar, popovers and dialogs. Shared so the builder's
|
|
10
|
-
* control row sits at the same level as the reader's.
|
|
11
|
-
*/
|
|
12
|
-
export declare const STICKY_CONTROLS_Z = 4;
|
|
7
|
+
/** Re-exported for hosts that import it from here; defined with the page parts. */
|
|
8
|
+
export { STICKY_CONTROLS_Z } from '../Report/ReportPage';
|
|
13
9
|
export interface DashboardViewProps {
|
|
14
10
|
/** The dashboard, or the tile layout a layout notebook carries. */
|
|
15
11
|
manifest: DashboardManifest;
|
|
@@ -28,7 +24,11 @@ export interface DashboardViewProps {
|
|
|
28
24
|
onNavigate?: (target: DrillNavigation, event?: MouseEvent) => void;
|
|
29
25
|
height?: number;
|
|
30
26
|
maxResultSize?: number;
|
|
31
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Ignored: kept so existing callers compile. A linear report and a grid
|
|
29
|
+
* draw the same header, cards and controls, and differ only in how tiles
|
|
30
|
+
* are arranged, which the manifest says.
|
|
31
|
+
*/
|
|
32
32
|
chrome?: TileChrome;
|
|
33
33
|
/**
|
|
34
34
|
* How the control row is drawn: `bar` for a dashboard, `panel` for a
|
|
@@ -45,6 +45,19 @@ export interface DashboardViewProps {
|
|
|
45
45
|
runModelPath?: string;
|
|
46
46
|
/** Givens the host sets itself: no control is shown for them. */
|
|
47
47
|
hiddenGivens?: readonly string[];
|
|
48
|
+
/**
|
|
49
|
+
* Filters each tile reads through values the host writes into its query
|
|
50
|
+
* text rather than sending them as givens: a report held as text whose
|
|
51
|
+
* own `given:` the host resolves to literals before compiling. Keyed by
|
|
52
|
+
* the manifest's `tile.query`. Counted as read, so the tile is not marked
|
|
53
|
+
* as ignoring that filter, and never sent: the server does not know them.
|
|
54
|
+
*/
|
|
55
|
+
literalReads?: Readonly<Record<string, readonly string[]>>;
|
|
56
|
+
/**
|
|
57
|
+
* An ordinary link in the report's prose (its description and text tiles),
|
|
58
|
+
* for a host with its own router. Omitted, links are plain anchors.
|
|
59
|
+
*/
|
|
60
|
+
onLinkNavigate?: (to: string, event?: NavigationClick) => void;
|
|
48
61
|
}
|
|
49
62
|
/**
|
|
50
63
|
* A loaded dashboard manifest, drawn: the control row and the tile grid.
|
|
@@ -52,18 +65,4 @@ export interface DashboardViewProps {
|
|
|
52
65
|
* Split from the manifest fetch so a notebook written as a tile layout, whose
|
|
53
66
|
* manifest arrives inside the notebook response, renders through the same code.
|
|
54
67
|
*/
|
|
55
|
-
export declare function DashboardView({ manifest, environmentName, packageName, versionId, documentName, givens, onGivensChange, onNavigate, height, maxResultSize,
|
|
56
|
-
/**
|
|
57
|
-
* The prose header over just the two fields it needs, so the BUILDER can draw
|
|
58
|
-
* the same header over a `DashboardDocument`, which is not a manifest.
|
|
59
|
-
*
|
|
60
|
-
* The description is drawn as a text tile is, in the document's own tile
|
|
61
|
-
* chrome: the same box and the same type as the markdown between the tiles,
|
|
62
|
-
* so the page's prose reads as one kind of thing wherever it sits.
|
|
63
|
-
*/
|
|
64
|
-
export declare function DashboardProse({ title, description, chrome, }: {
|
|
65
|
-
title: string;
|
|
66
|
-
description?: string;
|
|
67
|
-
/** The chrome the document's tiles take, which the description matches. */
|
|
68
|
-
chrome?: TileChrome;
|
|
69
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
68
|
+
export declare function DashboardView({ manifest, environmentName, packageName, versionId, documentName, givens, onGivensChange, onNavigate, height, maxResultSize, controlsLayout, preamble, runModelPath, hiddenGivens, literalReads, onLinkNavigate, }: DashboardViewProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -23,8 +23,10 @@ export declare const TILE_MIN_HEIGHT: {
|
|
|
23
23
|
* a different card. Both surfaces moved together when the edge was darkened;
|
|
24
24
|
* either one left behind is a dashboard whose tiles are outlined two ways.
|
|
25
25
|
*
|
|
26
|
-
* Radius
|
|
27
|
-
*
|
|
26
|
+
* Radius is the report surfaces' tile radius ({@link ui.radius.tile}), which the
|
|
27
|
+
* renderer card is pointed at too, rather than the host's `shape.borderRadius`:
|
|
28
|
+
* a host's control radius is not a card radius, and taking it made tiles as
|
|
29
|
+
* round as buttons. The
|
|
28
30
|
* background is `theme.tile`, the value the renderer card paints — left unset,
|
|
29
31
|
* on a theme whose page is also white the composite tiles lost the tint that
|
|
30
32
|
* separates a card from the page while the single-query form kept it.
|
|
@@ -51,6 +53,11 @@ export declare function TileCard({ borderless, chrome, kind, sx, cardRef, childr
|
|
|
51
53
|
cardRef?: Ref<HTMLDivElement>;
|
|
52
54
|
children: ReactNode;
|
|
53
55
|
}): import("react/jsx-runtime").JSX.Element;
|
|
56
|
+
/**
|
|
57
|
+
* The class on a tile heading's root, so a surface that draws controls over
|
|
58
|
+
* the heading (the builder's tile menu) can leave room for them.
|
|
59
|
+
*/
|
|
60
|
+
export declare const TILE_HEADING_CLASS: "publisher-tile-heading";
|
|
54
61
|
/** The heading's text as nodes, for a surface that makes it editable in place. */
|
|
55
62
|
export interface TileHeadingSlots {
|
|
56
63
|
title: ReactNode;
|
|
@@ -62,7 +69,7 @@ export interface TileHeadingSlots {
|
|
|
62
69
|
* whichever surface draws it.
|
|
63
70
|
*/
|
|
64
71
|
export declare function TileHeading({ title, subtitle, tooltip, action, quiet, }: {
|
|
65
|
-
/** A
|
|
72
|
+
/** A tighter gap under the heading, for a tile with no card around it. */
|
|
66
73
|
quiet?: boolean;
|
|
67
74
|
title: ReactNode;
|
|
68
75
|
subtitle?: ReactNode;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* How far above the scroller's edge a pinned bar sits: one pixel, so the bar
|
|
3
|
+
* is clipped by exactly that pixel while pinned and whole while it is not,
|
|
4
|
+
* which is what {@link useStuck} observes.
|
|
5
|
+
*/
|
|
6
|
+
export declare const STUCK_TOP_PX = -1;
|
|
7
|
+
/**
|
|
8
|
+
* Whether a `position: sticky` bar (pinned at `top: {@link STUCK_TOP_PX}px`)
|
|
9
|
+
* is currently pinned, so it can draw an edge only while content scrolls under
|
|
10
|
+
* it. Unpinned, the bar sits in the flow and an edge would be a stray line
|
|
11
|
+
* between it and the first tile.
|
|
12
|
+
*
|
|
13
|
+
* Observes the bar itself: pinned, its top pixel is clipped by the scroller,
|
|
14
|
+
* so less than all of it is visible. No sentinel element, which as a sibling
|
|
15
|
+
* in a `gap` layout cost the page a gap of its own above the bar. No explicit
|
|
16
|
+
* root, so it works whichever ancestor scrolls: an observer with the implicit
|
|
17
|
+
* root counts clipping by every scrolling ancestor, not just the viewport.
|
|
18
|
+
*/
|
|
19
|
+
export declare function useStuck(): {
|
|
20
|
+
stickyRef: (node: HTMLElement | null) => void;
|
|
21
|
+
stuck: boolean;
|
|
22
|
+
};
|