@malloy-publisher/sdk 0.9.7 → 0.9.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +117 -17
- package/dist/{RenderedResult-CkUS04tl.es.js → RenderedResult-BHuJpdSn.es.js} +2 -2
- package/dist/{RenderedResult-qnpbr4tc.cjs.js → RenderedResult-Bw7EQc42.cjs.js} +1 -1
- package/dist/ServerProvider-B0dUY8be.cjs.js +1 -0
- package/dist/{ServerProvider-DnLLeXEX.es.js → ServerProvider-CQy4jVYK.es.js} +1602 -1074
- package/dist/builder/index.cjs.js +93 -93
- package/dist/builder/index.es.js +4630 -4562
- package/dist/builder-entry.d.ts +13 -12
- package/dist/client/api.d.ts +893 -104
- package/dist/client/index.cjs.js +1 -1
- package/dist/client/index.es.js +125 -104
- package/dist/components/Dashboard/DashboardTile.d.ts +3 -1
- package/dist/components/Dashboard/DashboardView.d.ts +1 -3
- package/dist/components/Dashboard/index.d.ts +0 -2
- package/dist/components/DocumentCreate/createDocument.d.ts +29 -9
- package/dist/components/DocumentCreate/documentPath.d.ts +21 -6
- package/dist/components/DocumentCreate/guards.d.ts +2 -3
- package/dist/components/DocumentCreate/index.d.ts +2 -3
- package/dist/components/DocumentCreate/newNotebook.d.ts +14 -5
- package/dist/components/DocumentStorage/BrowserDocumentStorage.d.ts +6 -0
- package/dist/components/DocumentStorage/DocumentStorage.d.ts +52 -24
- package/dist/components/Loading.d.ts +1 -1
- package/dist/components/Package/ContentTypeIcon.d.ts +3 -3
- package/dist/components/Package/DataSchemaDialog.d.ts +26 -0
- package/dist/components/Package/NewDocumentDialog.d.ts +19 -10
- package/dist/components/Package/Package.d.ts +14 -9
- package/dist/components/Package/documentLocation.d.ts +66 -23
- package/dist/components/Package/index.d.ts +3 -2
- package/dist/components/Package/reportQueries.d.ts +8 -0
- package/dist/components/Package/useDocumentLocation.d.ts +36 -6
- package/dist/components/Package/useDraftLayout.d.ts +20 -0
- package/dist/components/Report/CellReport.d.ts +89 -0
- package/dist/components/Report/LinearReport.d.ts +18 -0
- package/dist/components/Report/Report.d.ts +62 -0
- package/dist/components/Report/index.d.ts +2 -0
- package/dist/components/Report/telemetry.d.ts +163 -0
- package/dist/components/{DashboardBuilder → ReportBuilder}/BuilderDialogs.d.ts +2 -2
- package/dist/components/{DashboardBuilder → ReportBuilder}/BuilderGrid.d.ts +2 -2
- package/dist/components/{DashboardBuilder → ReportBuilder}/BuilderHeader.d.ts +5 -4
- package/dist/components/{DashboardBuilder → ReportBuilder}/BuilderToolbar.d.ts +5 -1
- package/dist/components/{DashboardBuilder → ReportBuilder}/EditorSurface.d.ts +10 -7
- package/dist/components/{DashboardBuilder/DashboardBuilder.d.ts → ReportBuilder/ReportBuilder.d.ts} +17 -8
- package/dist/components/{DashboardBuilder/DashboardEditor.d.ts → ReportBuilder/ReportEditor.d.ts} +41 -14
- package/dist/components/ReportBuilder/builderReport.d.ts +14 -0
- package/dist/components/{DashboardBuilder → ReportBuilder}/catalog.d.ts +8 -5
- package/dist/components/{DashboardBuilder → ReportBuilder}/document.d.ts +3 -4
- package/dist/components/{DashboardBuilder → ReportBuilder}/documentSession.d.ts +1 -1
- package/dist/components/{DashboardBuilder → ReportBuilder}/imports.d.ts +5 -1
- package/dist/components/{DashboardBuilder → ReportBuilder}/malloyTree.d.ts +9 -0
- package/dist/components/{DashboardBuilder → ReportBuilder}/newDashboard.d.ts +7 -1
- package/dist/components/{DashboardBuilder → ReportBuilder}/readDocument.d.ts +7 -5
- package/dist/components/{DashboardBuilder → ReportBuilder}/readForEditor.d.ts +1 -1
- package/dist/components/ReportBuilder/reportTag.d.ts +52 -0
- package/dist/components/{DashboardBuilder → ReportBuilder}/spliceDocument.d.ts +1 -7
- package/dist/components/{DashboardBuilder → ReportBuilder}/useBuilderSelection.d.ts +2 -2
- package/dist/components/{DashboardBuilder → ReportBuilder}/useControlBindings.d.ts +2 -2
- package/dist/components/ReportBuilder/useEditorCatalog.d.ts +25 -0
- package/dist/components/{DashboardBuilder → ReportBuilder}/useHostCopy.d.ts +5 -3
- package/dist/components/{DashboardBuilder → ReportBuilder}/useOpenedDocument.d.ts +7 -5
- package/dist/components/{DashboardBuilder/useDashboardEditor.d.ts → ReportBuilder/useReportEditor.d.ts} +3 -7
- package/dist/components/{DashboardBuilder → ReportBuilder}/useSaveChannel.d.ts +6 -4
- package/dist/components/{DashboardBuilder → ReportBuilder}/useTileEditing.d.ts +2 -2
- package/dist/components/ServerProvider.d.ts +2 -1
- package/dist/components/drill/resolveDrill.d.ts +8 -1
- package/dist/components/drill/useDrillSelf.d.ts +4 -2
- package/dist/components/index.d.ts +2 -1
- package/dist/components/{Dashboard → legacy}/Dashboard.d.ts +15 -9
- package/dist/components/legacy/MalloynbCells.d.ts +13 -0
- package/dist/components/legacy/Notebook.d.ts +15 -0
- package/dist/components/{DashboardBuilder → legacy}/NotebookEditor.d.ts +3 -3
- package/dist/components/legacy/builderNames.d.ts +10 -0
- package/dist/components/legacy/index.d.ts +11 -0
- package/dist/components/legacy/kindAdapter.d.ts +11 -0
- package/dist/components/legacy/kindTypedDrafts.d.ts +10 -0
- package/dist/components/legacy/nameAlias.d.ts +44 -0
- package/dist/components/legacy/queryKeys.d.ts +8 -0
- package/dist/index.cjs.js +19 -19
- package/dist/index.es.js +8216 -7635
- package/dist/text/index.es.js +2 -2
- package/dist/{text-entry-CA0LZ1xL.es.js → text-entry-72YFLeNk.es.js} +10 -10
- package/dist/{useCompiledDocument-Bf72Ob5v.es.js → useCompiledDocument-1dgF5CC9.es.js} +4593 -4395
- package/dist/useCompiledDocument-BKyRnXmA.cjs.js +141 -0
- package/package.json +2 -2
- package/src/builder-entry.ts +32 -24
- package/src/components/Dashboard/DashboardTile.tsx +17 -0
- package/src/components/Dashboard/DashboardView.spec.tsx +0 -21
- package/src/components/Dashboard/DashboardView.tsx +8 -24
- package/src/components/Dashboard/dropValueUrlTags.spec.ts +1 -4
- package/src/components/Dashboard/index.ts +0 -2
- package/src/components/DocumentCreate/createDocument.spec.ts +346 -53
- package/src/components/DocumentCreate/createDocument.ts +143 -63
- package/src/components/DocumentCreate/documentPath.ts +41 -12
- package/src/components/DocumentCreate/guards.ts +7 -15
- package/src/components/DocumentCreate/index.ts +3 -7
- package/src/components/DocumentCreate/newNotebook.spec.ts +113 -43
- package/src/components/DocumentCreate/newNotebook.ts +32 -10
- package/src/components/DocumentStorage/BrowserDocumentStorage.spec.ts +130 -28
- package/src/components/DocumentStorage/BrowserDocumentStorage.ts +78 -40
- package/src/components/DocumentStorage/DocumentStorage.contract.spec.tsx +426 -0
- package/src/components/DocumentStorage/DocumentStorage.ts +57 -24
- package/src/components/Home/AddEnvironmentDialog.tsx +1 -1
- package/src/components/Home/Home.tsx +1 -1
- package/src/components/Loading.tsx +1 -1
- package/src/components/Model/SourcesExplorer.tsx +1 -1
- package/src/components/Notebook/NotebookCell.tsx +6 -5
- package/src/components/Notebook/cellKind.spec.ts +15 -7
- package/src/components/Package/ContentTypeIcon.tsx +16 -3
- package/src/components/Package/DataSchemaDialog.spec.tsx +85 -0
- package/src/components/Package/DataSchemaDialog.tsx +367 -0
- package/src/components/Package/NewDocumentDialog.spec.tsx +145 -88
- package/src/components/Package/NewDocumentDialog.tsx +93 -48
- package/src/components/Package/Package.agents.spec.tsx +76 -0
- package/src/components/Package/Package.artifacts.spec.tsx +79 -60
- package/src/components/Package/Package.create.spec.tsx +126 -112
- package/src/components/Package/Package.notebooks.spec.tsx +46 -27
- package/src/components/Package/Package.spec.tsx +43 -30
- package/src/components/Package/Package.tsx +217 -293
- package/src/components/Package/documentLocation.spec.ts +145 -50
- package/src/components/Package/documentLocation.ts +118 -39
- package/src/components/Package/index.ts +12 -3
- package/src/components/Package/reportQueries.ts +25 -0
- package/src/components/Package/useDocumentLocation.spec.ts +58 -0
- package/src/components/Package/useDocumentLocation.ts +90 -32
- package/src/components/Package/useDraftLayout.spec.tsx +143 -0
- package/src/components/Package/useDraftLayout.ts +81 -0
- package/src/components/Prose.spec.tsx +3 -3
- package/src/components/RenderedResult/RenderedResult.tsx +1 -1
- package/src/components/Report/CellReport.spec.tsx +155 -0
- package/src/components/{Notebook/Notebook.tsx → Report/CellReport.tsx} +178 -220
- package/src/components/Report/LinearReport.tsx +71 -0
- package/src/components/Report/Report.spec.tsx +238 -0
- package/src/components/Report/Report.telemetry.spec.tsx +292 -0
- package/src/components/Report/Report.tsx +277 -0
- package/src/components/Report/index.ts +12 -0
- package/src/components/Report/telemetry.spec.ts +90 -0
- package/src/components/Report/telemetry.ts +250 -0
- package/src/components/{DashboardBuilder → ReportBuilder}/BuilderDialogs.tsx +5 -5
- package/src/components/{DashboardBuilder → ReportBuilder}/BuilderGrid.tsx +2 -2
- package/src/components/{DashboardBuilder → ReportBuilder}/BuilderHeader.tsx +6 -7
- package/src/components/{DashboardBuilder → ReportBuilder}/BuilderToolbar.tsx +33 -0
- package/src/components/{DashboardBuilder → ReportBuilder}/DrillDialog.tsx +2 -2
- package/src/components/{DashboardBuilder → ReportBuilder}/EditorSurface.tsx +67 -107
- package/src/components/{DashboardBuilder → ReportBuilder}/FilterDialog.tsx +3 -4
- package/src/components/{DashboardBuilder/DashboardBuilder.charts.spec.tsx → ReportBuilder/ReportBuilder.charts.spec.tsx} +4 -4
- package/src/components/{DashboardBuilder/DashboardBuilder.exit.spec.tsx → ReportBuilder/ReportBuilder.exit.spec.tsx} +5 -5
- package/src/components/{DashboardBuilder/DashboardBuilder.inline.spec.tsx → ReportBuilder/ReportBuilder.inline.spec.tsx} +4 -4
- package/src/components/ReportBuilder/ReportBuilder.layoutSwitch.spec.tsx +145 -0
- package/src/components/{DashboardBuilder/DashboardBuilder.notebook.spec.tsx → ReportBuilder/ReportBuilder.notebook.spec.tsx} +22 -21
- package/src/components/{DashboardBuilder/DashboardBuilder.openDraft.spec.tsx → ReportBuilder/ReportBuilder.openDraft.spec.tsx} +3 -3
- package/src/components/{DashboardBuilder/DashboardBuilder.sources.spec.tsx → ReportBuilder/ReportBuilder.sources.spec.tsx} +19 -8
- package/src/components/{DashboardBuilder/DashboardBuilder.spec.tsx → ReportBuilder/ReportBuilder.spec.tsx} +34 -34
- package/src/components/{DashboardBuilder/DashboardBuilder.textTiles.spec.tsx → ReportBuilder/ReportBuilder.textTiles.spec.tsx} +5 -5
- package/src/components/{DashboardBuilder/DashboardBuilder.tsx → ReportBuilder/ReportBuilder.tsx} +46 -21
- package/src/components/{DashboardBuilder/DashboardEditor.authoritative.spec.tsx → ReportBuilder/ReportEditor.authoritative.spec.tsx} +28 -20
- package/src/components/{DashboardBuilder/DashboardEditor.emptyStart.spec.tsx → ReportBuilder/ReportEditor.emptyStart.spec.tsx} +19 -11
- package/src/components/{DashboardBuilder/DashboardEditor.filterTag.spec.tsx → ReportBuilder/ReportEditor.filterTag.spec.tsx} +7 -7
- package/src/components/{DashboardBuilder/DashboardEditor.notebook.spec.tsx → ReportBuilder/ReportEditor.notebook.spec.tsx} +70 -49
- package/src/components/{DashboardBuilder/DashboardEditor.package.spec.tsx → ReportBuilder/ReportEditor.package.spec.tsx} +52 -8
- package/src/components/{DashboardBuilder/DashboardEditor.resourceUri.spec.tsx → ReportBuilder/ReportEditor.resourceUri.spec.tsx} +50 -18
- package/src/components/{DashboardBuilder/DashboardEditor.spec.tsx → ReportBuilder/ReportEditor.spec.tsx} +65 -20
- package/src/components/{DashboardBuilder/DashboardEditor.textSource.spec.tsx → ReportBuilder/ReportEditor.textSource.spec.tsx} +6 -6
- package/src/components/{DashboardBuilder/DashboardEditor.tsx → ReportBuilder/ReportEditor.tsx} +92 -35
- package/src/components/{DashboardBuilder → ReportBuilder}/addTile.compile.spec.ts +1 -3
- package/src/components/{DashboardBuilder → ReportBuilder}/addTileToDocument.spec.ts +1 -0
- package/src/components/{DashboardBuilder → ReportBuilder}/artifactBlock.spec.ts +21 -29
- package/src/components/ReportBuilder/builderReport.ts +53 -0
- package/src/components/{DashboardBuilder → ReportBuilder}/catalog.spec.ts +28 -10
- package/src/components/{DashboardBuilder → ReportBuilder}/catalog.ts +17 -10
- package/src/components/{DashboardBuilder → ReportBuilder}/controls.spec.ts +1 -0
- package/src/components/{DashboardBuilder → ReportBuilder}/document.ts +4 -7
- package/src/components/{DashboardBuilder → ReportBuilder}/documentSession.spec.ts +5 -5
- package/src/components/{DashboardBuilder → ReportBuilder}/documentSession.ts +1 -1
- package/src/components/{DashboardBuilder → ReportBuilder}/imports.spec.ts +6 -2
- package/src/components/{DashboardBuilder → ReportBuilder}/imports.ts +8 -4
- package/src/components/{DashboardBuilder → ReportBuilder}/legacyNotebook.chart.spec.ts +1 -1
- package/src/components/{DashboardBuilder → ReportBuilder}/legacyNotebook.convert.spec.ts +9 -13
- package/src/components/{DashboardBuilder → ReportBuilder}/legacyNotebook.read.spec.ts +15 -15
- package/src/components/{DashboardBuilder → ReportBuilder}/legacyNotebook.ts +7 -2
- package/src/components/{DashboardBuilder → ReportBuilder}/malloyTree.ts +25 -0
- package/src/components/{DashboardBuilder → ReportBuilder}/newDashboard.spec.ts +12 -4
- package/src/components/{DashboardBuilder → ReportBuilder}/newDashboard.ts +11 -24
- package/src/components/{DashboardBuilder → ReportBuilder}/preview.spec.ts +1 -0
- package/src/components/{DashboardBuilder → ReportBuilder}/readDocument.spec.ts +64 -36
- package/src/components/{DashboardBuilder → ReportBuilder}/readDocument.ts +33 -32
- package/src/components/ReportBuilder/readForEditor.spec.ts +96 -0
- package/src/components/{DashboardBuilder → ReportBuilder}/readForEditor.ts +3 -11
- package/src/components/ReportBuilder/reportTag.ts +108 -0
- package/src/components/{DashboardBuilder → ReportBuilder}/spliceDocument.imports.spec.ts +28 -1
- package/src/components/{DashboardBuilder → ReportBuilder}/spliceDocument.spec.ts +32 -3
- package/src/components/{DashboardBuilder → ReportBuilder}/spliceDocument.ts +37 -60
- package/src/components/{DashboardBuilder → ReportBuilder}/tagParse.spec.ts +3 -3
- package/src/components/{DashboardBuilder → ReportBuilder}/testing/artifactTagParity.json +2 -2
- package/src/components/ReportBuilder/testing/drillResolution.json +279 -0
- package/src/components/ReportBuilder/testing/reportLayoutParity.json +125 -0
- package/src/components/{DashboardBuilder → ReportBuilder}/textTiles.spec.ts +66 -143
- package/src/components/{DashboardBuilder → ReportBuilder}/useBuilderSelection.ts +2 -2
- package/src/components/{DashboardBuilder → ReportBuilder}/useControlBindings.ts +2 -2
- package/src/components/ReportBuilder/useEditorCatalog.spec.tsx +156 -0
- package/src/components/ReportBuilder/useEditorCatalog.ts +119 -0
- package/src/components/{DashboardBuilder → ReportBuilder}/useHostCopy.ts +7 -5
- package/src/components/{DashboardBuilder → ReportBuilder}/useOpenedDocument.ts +56 -35
- package/src/components/{DashboardBuilder/useDashboardEditor.spec.ts → ReportBuilder/useReportEditor.spec.ts} +6 -6
- package/src/components/{DashboardBuilder/useDashboardEditor.ts → ReportBuilder/useReportEditor.ts} +6 -17
- package/src/components/{DashboardBuilder → ReportBuilder}/useSaveChannel.ts +36 -35
- package/src/components/{DashboardBuilder → ReportBuilder}/useTileEditing.ts +2 -2
- package/src/components/ServerProvider.tsx +2 -0
- package/src/components/drill/resolveDrill.ts +9 -2
- package/src/components/drill/useDrill.tsx +1 -0
- package/src/components/drill/useDrillSelf.spec.tsx +60 -7
- package/src/components/drill/useDrillSelf.ts +29 -12
- package/src/components/index.ts +2 -1
- package/src/components/{Dashboard → legacy}/Dashboard.spec.tsx +1 -1
- package/src/components/{Dashboard → legacy}/Dashboard.tsx +40 -28
- package/src/components/legacy/MalloynbCells.tsx +88 -0
- package/src/components/{Notebook → legacy}/Notebook.served.spec.tsx +17 -13
- package/src/components/{Notebook → legacy}/Notebook.spec.tsx +24 -20
- package/src/components/legacy/Notebook.tsx +44 -0
- package/src/components/{DashboardBuilder → legacy}/NotebookEditor.tsx +7 -4
- package/src/components/legacy/builderNames.ts +25 -0
- package/src/components/legacy/index.ts +20 -0
- package/src/components/legacy/kindAdapter.ts +19 -0
- package/src/components/legacy/kindTypedDrafts.ts +34 -0
- package/src/components/legacy/nameAlias.spec.ts +124 -0
- package/src/components/legacy/nameAlias.ts +95 -0
- package/src/components/legacy/queryKeys.ts +26 -0
- package/src/hooks/useGivensState.spec.ts +9 -9
- package/src/mainEntry.spec.ts +1 -1
- package/src/textEntry.spec.ts +9 -9
- package/src/utils/formatting.spec.ts +5 -5
- package/src/utils/parsing.spec.ts +1 -1
- package/src/utils/parsing.ts +1 -1
- package/dist/ServerProvider-Gj-im5VD.cjs.js +0 -1
- package/dist/components/Dashboard/telemetry.d.ts +0 -73
- package/dist/components/DashboardBuilder/builderReport.d.ts +0 -13
- package/dist/components/DashboardBuilder/telemetry.d.ts +0 -43
- package/dist/components/DocumentCreate/events.d.ts +0 -10
- package/dist/components/Notebook/Notebook.d.ts +0 -52
- package/dist/components/Notebook/index.d.ts +0 -1
- package/dist/useCompiledDocument-tBejqZ7s.cjs.js +0 -142
- package/src/components/Dashboard/telemetry.ts +0 -75
- package/src/components/DashboardBuilder/builderReport.ts +0 -74
- package/src/components/DashboardBuilder/readForEditor.spec.ts +0 -80
- package/src/components/DashboardBuilder/telemetry.ts +0 -47
- package/src/components/DashboardBuilder/testing/documentKindRule.json +0 -40
- package/src/components/DocumentCreate/events.ts +0 -15
- package/src/components/Notebook/index.ts +0 -4
- /package/dist/components/{DashboardBuilder → ReportBuilder}/AddTileDialog.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/ChartPicker.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/DrillDialog.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/FilterDialog.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/FilterStrip.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/InlineMarkdown.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/InlineText.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/SourceViewPicker.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/TextTileBody.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/TileFrame.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/TileMenu.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/addTileToDocument.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/annotationText.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/changedTile.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/chartLine.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/controls.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/inlineEdit.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/layout.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/legacyNotebook.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/loadMalloy.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/openDraft.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/preview.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/sortable.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/spliceResult.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/tagParse.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/testing/fixtures.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/testing/inline.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/testing/resize.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/tileDisplayTitle.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/useBuilderSession.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/useBuilderShortcuts.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/useConversionConfirm.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/useDocumentEditor.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/useDraft.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/useExitGuard.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/useFilterForm.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/useOpenDraftCommit.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/useTileReorder.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/useTileResize.d.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/AddTileDialog.spec.tsx +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/AddTileDialog.tsx +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/ChartPicker.render.spec.tsx +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/ChartPicker.spec.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/ChartPicker.tsx +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/FilterStrip.tsx +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/InlineMarkdown.tsx +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/InlineText.tsx +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/SourceViewPicker.tsx +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/TextTileBody.tsx +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/TileFrame.tsx +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/TileMenu.tsx +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/__test__/inventory.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/addTileToDocument.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/annotationText.spec.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/annotationText.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/artifactTagParity.spec.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/catalog.aggregate.spec.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/changedTile.spec.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/changedTile.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/chartLine.spec.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/chartLine.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/controls.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/emptyStart.spec.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/inlineEdit.tsx +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/invariants.spec.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/keepRowStructure.spec.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/layout.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/loadMalloy.spec.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/loadMalloy.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/malloyTree.spec.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/moveIntoGap.spec.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/openDraft.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/preview.shapes.spec.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/preview.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/scannerShapes.spec.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/sortable.spec.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/sortable.tsx +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/spliceDocument.chart.spec.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/spliceResult.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/statementExtent.spec.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/tagParse.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/testing/fixtures.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/testing/inline.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/testing/resize.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/testing/urlRenderTags.json +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/tileDisplayTitle.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/useBuilderSession.spec.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/useBuilderSession.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/useBuilderShortcuts.overlay.spec.tsx +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/useBuilderShortcuts.spec.tsx +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/useBuilderShortcuts.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/useConversionConfirm.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/useDocumentEditor.spec.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/useDocumentEditor.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/useDraft.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/useExitGuard.spec.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/useExitGuard.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/useFilterForm.existing.spec.tsx +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/useFilterForm.spec.tsx +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/useFilterForm.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/useOpenDraftCommit.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/useTileReorder.spec.tsx +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/useTileReorder.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/useTileResize.spec.tsx +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/useTileResize.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/withGaps.spec.ts +0 -0
- /package/src/components/{Notebook → legacy}/Notebook.layout.spec.tsx +0 -0
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-B0dUY8be.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,106 +1,127 @@
|
|
|
1
|
-
import { A as e, a as
|
|
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-CQy4jVYK.es.js";
|
|
2
2
|
export {
|
|
3
|
-
e as
|
|
4
|
-
|
|
5
|
-
o as
|
|
6
|
-
|
|
7
|
-
t as
|
|
8
|
-
r as
|
|
9
|
-
p as
|
|
10
|
-
u as
|
|
11
|
-
m as
|
|
12
|
-
A as
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
C as
|
|
18
|
-
|
|
19
|
-
b as
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
S as
|
|
24
|
-
k as
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
f as
|
|
33
|
-
N as
|
|
34
|
-
z as
|
|
35
|
-
|
|
36
|
-
K as
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
w as
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
V as
|
|
50
|
-
X as
|
|
51
|
-
Y as
|
|
52
|
-
Z as
|
|
53
|
-
_ as
|
|
54
|
-
$ as
|
|
55
|
-
aa as
|
|
56
|
-
sa as
|
|
57
|
-
ea as
|
|
58
|
-
|
|
59
|
-
oa as
|
|
60
|
-
|
|
61
|
-
ta as
|
|
62
|
-
ra as
|
|
63
|
-
pa as
|
|
64
|
-
ua as
|
|
65
|
-
ma as
|
|
66
|
-
Aa as
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
Ca as
|
|
72
|
-
|
|
73
|
-
ba as
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
Sa as
|
|
78
|
-
ka as
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
fa as
|
|
87
|
-
Na as
|
|
88
|
-
za as
|
|
89
|
-
|
|
90
|
-
Ka as
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
wa as
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
Va as
|
|
104
|
-
Xa as
|
|
105
|
-
Ya as
|
|
3
|
+
e as AgentsApi,
|
|
4
|
+
i as AgentsApiAxiosParamCreator,
|
|
5
|
+
o as AgentsApiFactory,
|
|
6
|
+
n as AgentsApiFp,
|
|
7
|
+
t as AttachedDatabaseTypeEnum,
|
|
8
|
+
r as AzureConnectionAuthTypeEnum,
|
|
9
|
+
p as CompileProblemSeverityEnum,
|
|
10
|
+
u as CompileRequestScopeEnum,
|
|
11
|
+
m as CompileResultStatusEnum,
|
|
12
|
+
A as CompiledDocumentKindEnum,
|
|
13
|
+
l as CompiledDocumentLayoutEnum,
|
|
14
|
+
E as Configuration,
|
|
15
|
+
c as ConnectionProxyTypeEnum,
|
|
16
|
+
y as ConnectionStatusStatusEnum,
|
|
17
|
+
C as ConnectionTypeEnum,
|
|
18
|
+
d as ConnectionsApi,
|
|
19
|
+
b as ConnectionsApiAxiosParamCreator,
|
|
20
|
+
F as ConnectionsApiFactory,
|
|
21
|
+
g as ConnectionsApiFp,
|
|
22
|
+
P as ConnectionsTestApi,
|
|
23
|
+
S as ConnectionsTestApiAxiosParamCreator,
|
|
24
|
+
k as ConnectionsTestApiFactory,
|
|
25
|
+
M as ConnectionsTestApiFp,
|
|
26
|
+
R as DashboardManifestKindEnum,
|
|
27
|
+
h as DashboardManifestLayoutEnum,
|
|
28
|
+
x as DashboardTileKindEnum,
|
|
29
|
+
D as DashboardsApi,
|
|
30
|
+
T as DashboardsApiAxiosParamCreator,
|
|
31
|
+
v as DashboardsApiFactory,
|
|
32
|
+
f as DashboardsApiFp,
|
|
33
|
+
N as DataAppFitEnum,
|
|
34
|
+
z as DataAppsApi,
|
|
35
|
+
L as DataAppsApiAxiosParamCreator,
|
|
36
|
+
K as DataAppsApiFactory,
|
|
37
|
+
O as DataAppsApiFp,
|
|
38
|
+
Q as DatabaseTypeEnum,
|
|
39
|
+
I as DatabasesApi,
|
|
40
|
+
W as DatabasesApiAxiosParamCreator,
|
|
41
|
+
B as DatabasesApiFactory,
|
|
42
|
+
w as DatabasesApiFp,
|
|
43
|
+
G as EnvironmentsApi,
|
|
44
|
+
q as EnvironmentsApiAxiosParamCreator,
|
|
45
|
+
U as EnvironmentsApiFactory,
|
|
46
|
+
j as EnvironmentsApiFp,
|
|
47
|
+
H as ExecuteNotebookCellBypassFiltersEnum,
|
|
48
|
+
J as FilterTypeEnum,
|
|
49
|
+
V as FreshnessFallbackEnum,
|
|
50
|
+
X as GetAgentSkillsEnum,
|
|
51
|
+
Y as GivenControlEnum,
|
|
52
|
+
Z as LedgerEntryStrategyEnum,
|
|
53
|
+
_ as LogMessageSeverityEnum,
|
|
54
|
+
$ as ManifestEntryFreshnessFallbackEnum,
|
|
55
|
+
aa as ManifestEntryOriginEnum,
|
|
56
|
+
sa as ManifestEntryRefreshEnum,
|
|
57
|
+
ea as ManifestEntryUpstreamReuseEnum,
|
|
58
|
+
ia as MaterializationActionActionEnum,
|
|
59
|
+
oa as MaterializationStatus,
|
|
60
|
+
na as MaterializationsApi,
|
|
61
|
+
ta as MaterializationsApiAxiosParamCreator,
|
|
62
|
+
ra as MaterializationsApiFactory,
|
|
63
|
+
pa as MaterializationsApiFp,
|
|
64
|
+
ua as ModelsApi,
|
|
65
|
+
ma as ModelsApiAxiosParamCreator,
|
|
66
|
+
Aa as ModelsApiFactory,
|
|
67
|
+
la as ModelsApiFp,
|
|
68
|
+
Ea as NotebookCellKindEnum,
|
|
69
|
+
ca as NotebookCellResultKindEnum,
|
|
70
|
+
ya as NotebookCellResultTypeEnum,
|
|
71
|
+
Ca as NotebookCellTypeEnum,
|
|
72
|
+
da as NotebooksApi,
|
|
73
|
+
ba as NotebooksApiAxiosParamCreator,
|
|
74
|
+
Fa as NotebooksApiFactory,
|
|
75
|
+
ga as NotebooksApiFp,
|
|
76
|
+
Pa as PackageEmbeddingIndexReasonEnum,
|
|
77
|
+
Sa as PackageEmbeddingIndexStageEnum,
|
|
78
|
+
ka as PackageEmbeddingIndexStatusEnum,
|
|
79
|
+
Ma as PackageManifestBindingStatusEnum,
|
|
80
|
+
Ra as PackageQueryableSourcesEnum,
|
|
81
|
+
ha as PackageScopeEnum,
|
|
82
|
+
xa as PackageStorageServeBindingsInnerOriginEnum,
|
|
83
|
+
Da as PackageWarningsInnerSeverityEnum,
|
|
84
|
+
Ta as PackagesApi,
|
|
85
|
+
va as PackagesApiAxiosParamCreator,
|
|
86
|
+
fa as PackagesApiFactory,
|
|
87
|
+
Na as PackagesApiFp,
|
|
88
|
+
za as PersistSourcePlanOriginEnum,
|
|
89
|
+
La as PostgresConnectionSslmodeEnum,
|
|
90
|
+
Ka as PublisherApi,
|
|
91
|
+
Oa as PublisherApiAxiosParamCreator,
|
|
92
|
+
Qa as PublisherApiFactory,
|
|
93
|
+
Ia as PublisherApiFp,
|
|
94
|
+
Wa as QueryClass,
|
|
95
|
+
Ba as QueryResultQueryRowLimitSourceEnum,
|
|
96
|
+
wa as QueryResultServedFromEnum,
|
|
97
|
+
Ga as RawNotebookFormatEnum,
|
|
98
|
+
qa as Realization,
|
|
99
|
+
Ua as RefusedSourceReasonEnum,
|
|
100
|
+
ja as RefusedSourceTierEnum,
|
|
101
|
+
Ha as ReportCellsFormatEnum,
|
|
102
|
+
Ja as ReportLayoutEnum,
|
|
103
|
+
Va as ReportManifestLayoutEnum,
|
|
104
|
+
Xa as ReportTileKindEnum,
|
|
105
|
+
Ya as ReportsApi,
|
|
106
|
+
Za as ReportsApiAxiosParamCreator,
|
|
107
|
+
_a as ReportsApiFactory,
|
|
108
|
+
$a as ReportsApiFp,
|
|
109
|
+
as as RunContextTriggerEnum,
|
|
110
|
+
ss as S3ConnectionProviderEnum,
|
|
111
|
+
es as ServerProvider,
|
|
112
|
+
is as ServerStatusOperationalStateEnum,
|
|
113
|
+
os as SkillOriginEnum,
|
|
114
|
+
ns as SkillSummaryOriginEnum,
|
|
115
|
+
ts as SkillsApi,
|
|
116
|
+
rs as SkillsApiAxiosParamCreator,
|
|
117
|
+
ps as SkillsApiFactory,
|
|
118
|
+
us as SkillsApiFp,
|
|
119
|
+
ms as ThemeDefaultModeEnum,
|
|
120
|
+
As as WatchModeApi,
|
|
121
|
+
ls as WatchModeApiAxiosParamCreator,
|
|
122
|
+
Es as WatchModeApiFactory,
|
|
123
|
+
cs as WatchModeApiFp,
|
|
124
|
+
ys as globalQueryClient,
|
|
125
|
+
Cs as usePublisherTheme,
|
|
126
|
+
ds as useServer
|
|
106
127
|
};
|
|
@@ -59,6 +59,8 @@ 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
|
+
/** Its position in the report, for the `report.query_failed` it reports. */
|
|
63
|
+
index?: number;
|
|
62
64
|
}
|
|
63
65
|
/**
|
|
64
66
|
* A composite tile's heading when the view it names carries no `# label`: the
|
|
@@ -78,4 +80,4 @@ export declare function tileTitle(tile: string): string;
|
|
|
78
80
|
* tile: the broken one shows its error in place and the rest of the grid still
|
|
79
81
|
* renders, rather than one failure blanking the page.
|
|
80
82
|
*/
|
|
81
|
-
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, }: DashboardTileProps): import("react/jsx-runtime").JSX.Element;
|
|
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;
|
|
@@ -2,7 +2,6 @@ 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 { DashboardEventHandler } from './telemetry';
|
|
6
5
|
import { TileChrome } from './TileCard';
|
|
7
6
|
/**
|
|
8
7
|
* The sticky control row's stacking level: above anything a tile raises
|
|
@@ -29,7 +28,6 @@ export interface DashboardViewProps {
|
|
|
29
28
|
onNavigate?: (target: DrillNavigation, event?: MouseEvent) => void;
|
|
30
29
|
height?: number;
|
|
31
30
|
maxResultSize?: number;
|
|
32
|
-
onEvent?: DashboardEventHandler;
|
|
33
31
|
/** `none` renders tiles as a document, with no cards or title block. */
|
|
34
32
|
chrome?: TileChrome;
|
|
35
33
|
/**
|
|
@@ -54,7 +52,7 @@ export interface DashboardViewProps {
|
|
|
54
52
|
* Split from the manifest fetch so a notebook written as a tile layout, whose
|
|
55
53
|
* manifest arrives inside the notebook response, renders through the same code.
|
|
56
54
|
*/
|
|
57
|
-
export declare function DashboardView({ manifest, environmentName, packageName, versionId, documentName, givens, onGivensChange, onNavigate, height, maxResultSize,
|
|
55
|
+
export declare function DashboardView({ manifest, environmentName, packageName, versionId, documentName, givens, onGivensChange, onNavigate, height, maxResultSize, chrome, controlsLayout, preamble, runModelPath, hiddenGivens, }: DashboardViewProps): import("react/jsx-runtime").JSX.Element;
|
|
58
56
|
/**
|
|
59
57
|
* The prose header over just the two fields it needs, so the BUILDER can draw
|
|
60
58
|
* the same header over a `DashboardDocument`, which is not a manifest.
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
export { Dashboard, type DashboardProps } from './Dashboard';
|
|
2
1
|
export { DashboardView, STICKY_CONTROLS_Z, type DashboardViewProps, } from './DashboardView';
|
|
3
2
|
export { TileFilterTag, tileIgnoredFilterLabels } from './TileFilterTag';
|
|
4
3
|
export { DashboardTile, type DashboardTileProps } from './DashboardTile';
|
|
5
4
|
export { documentPreamble, RESTRICTED_NOTICE, withPreamble, } from './textSource';
|
|
6
|
-
export type { DashboardEvent, DashboardEventHandler } from './telemetry';
|
|
7
5
|
export { TILE_MIN_HEIGHT, TileCard, TileHeading } from './TileCard';
|
|
8
6
|
export type { TileHeadingSlots } from './TileCard';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { DocumentLocator, DocumentStorage,
|
|
2
|
-
import {
|
|
1
|
+
import { DocumentLocator, DocumentStorage, Workspace } from '../DocumentStorage/DocumentStorage';
|
|
2
|
+
import { ReportLayout } from '../Package/documentLocation';
|
|
3
|
+
import { ReportEventHandler } from '../Report/telemetry';
|
|
3
4
|
import { NewDocument } from './guards';
|
|
4
5
|
/** How many names are tried before a create gives up: `title`, `title-2`, ... */
|
|
5
6
|
export declare const MAX_SLUG_ATTEMPTS = 20;
|
|
@@ -32,24 +33,43 @@ export type CreateTarget = {
|
|
|
32
33
|
existing?: readonly string[];
|
|
33
34
|
};
|
|
34
35
|
export interface CreatedDocument {
|
|
35
|
-
|
|
36
|
-
/**
|
|
36
|
+
layout: ReportLayout;
|
|
37
|
+
/**
|
|
38
|
+
* Package-relative, e.g. `sales.malloy`: the report's identity. At the
|
|
39
|
+
* package root unless a `directory` or `path` was given. On the storage
|
|
40
|
+
* route this is where the store says the file lands
|
|
41
|
+
* ({@link DocumentStorage.resolveDocumentPath}), which may differ from the
|
|
42
|
+
* path asked for.
|
|
43
|
+
*/
|
|
37
44
|
path: string;
|
|
38
|
-
/** `sales` for `
|
|
45
|
+
/** `sales` for `sales.malloy` or `team/sales.malloy`: a display label. */
|
|
39
46
|
slug: string;
|
|
40
47
|
/** Set on the storage route: the new document's address there. */
|
|
41
48
|
locator?: DocumentLocator;
|
|
42
49
|
}
|
|
43
50
|
export interface CreateDocumentOptions {
|
|
44
|
-
|
|
51
|
+
/** The report's layout. Default linear. */
|
|
52
|
+
layout?: ReportLayout;
|
|
53
|
+
/**
|
|
54
|
+
* Exactly where to write it, package-relative with `.malloy`. A path that is
|
|
55
|
+
* taken is refused rather than renamed. Absent, the title's slug is used at
|
|
56
|
+
* the package root (or in `directory`), with `-2`, `-3`… when taken.
|
|
57
|
+
*/
|
|
58
|
+
path?: string;
|
|
59
|
+
/** The directory a title-named file goes in; default the package root. */
|
|
60
|
+
directory?: string;
|
|
45
61
|
document: NewDocument;
|
|
46
62
|
target: CreateTarget;
|
|
47
63
|
onCreated?: (created: CreatedDocument) => void;
|
|
48
|
-
|
|
64
|
+
/** `report.created` with where it landed, or `report.create_refused` with why not. */
|
|
65
|
+
onEvent?: ReportEventHandler;
|
|
49
66
|
}
|
|
67
|
+
/** Why `path` cannot be where a new report is written, or undefined when it can. */
|
|
68
|
+
export declare function reportPathProblem(path: string): string | undefined;
|
|
50
69
|
/**
|
|
51
|
-
* Write a new
|
|
52
|
-
*
|
|
70
|
+
* Write a new report, never over an existing file, and say where it went: at
|
|
71
|
+
* the package root unless the caller names a directory or a path. Reads
|
|
72
|
+
* nothing back: the host navigates from what this returns.
|
|
53
73
|
*
|
|
54
74
|
* On the storage route the listing alone cannot be trusted to be current, and
|
|
55
75
|
* `saveDocument` replaces what is there, so each candidate name is read first
|
|
@@ -1,10 +1,25 @@
|
|
|
1
1
|
import { DocumentLocator, DocumentType } from '../DocumentStorage';
|
|
2
|
-
export { newDashboardSource, slugFor } from '../
|
|
3
|
-
/**
|
|
4
|
-
|
|
2
|
+
export { newDashboardSource, slugFor } from '../ReportBuilder/newDashboard';
|
|
3
|
+
/**
|
|
4
|
+
* A directory as the create dialog takes it: no leading or trailing slash,
|
|
5
|
+
* `""` for the package root.
|
|
6
|
+
*/
|
|
7
|
+
export declare const normalizeDirectory: (directory: string | undefined) => string;
|
|
8
|
+
/**
|
|
9
|
+
* The package-relative file for a slug: `<slug>.malloy` at the package root,
|
|
10
|
+
* or under `directory` when the author typed one. No directory is chosen for
|
|
11
|
+
* a report by its layout.
|
|
12
|
+
*/
|
|
13
|
+
export declare function reportPathFor(slug: string, directory?: string): string;
|
|
5
14
|
/** A title's slug, with a stand-in for a title that has no letters or digits. */
|
|
6
15
|
export declare function slugOrFallback(title: string): string;
|
|
7
16
|
/** The file for a title; `suffix` 1 is the bare slug, 2 and up append `-N`. */
|
|
8
|
-
export declare function
|
|
9
|
-
/**
|
|
10
|
-
|
|
17
|
+
export declare function reportPathForTitle(title: string, suffix?: number, directory?: string): string;
|
|
18
|
+
/**
|
|
19
|
+
* A report's identity in a host's store: `<environment>/<package>/<path>`.
|
|
20
|
+
* Every reader and writer of a store mints it here, and `draftKey(env, pkg,
|
|
21
|
+
* "")` is the prefix every report of one package shares.
|
|
22
|
+
*/
|
|
23
|
+
export declare const draftKey: (environmentName: string, packageName: string, path: string) => string;
|
|
24
|
+
/** A report's address in a store, its {@link draftKey}, with the layout a save records. */
|
|
25
|
+
export declare const locatorFor: (layout: DocumentType, workspace: string, environmentName: string, packageName: string, path: string) => DocumentLocator;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { DocumentType } from '../DocumentStorage';
|
|
2
1
|
export declare const malloyName: (name: string) => string;
|
|
3
2
|
/** What a new document is made from: a view of a source in a model. */
|
|
4
3
|
export interface NewDocument {
|
|
@@ -8,5 +7,5 @@ export interface NewDocument {
|
|
|
8
7
|
source: string;
|
|
9
8
|
view: string;
|
|
10
9
|
}
|
|
11
|
-
/** Why `input` cannot be written into a new
|
|
12
|
-
export declare function newDocumentProblem(
|
|
10
|
+
/** Why `input` cannot be written into a new report, of either layout, or undefined when it can. */
|
|
11
|
+
export declare function newDocumentProblem(input: NewDocument): string | undefined;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
export { createDocument, createRoute, MAX_SLUG_ATTEMPTS, type CreatedDocument, type CreateDocumentOptions, type CreateTarget, } from './createDocument';
|
|
2
|
-
export {
|
|
3
|
-
export type { DashboardCreatedEvent, DocumentCreatedEvent, NotebookCreatedEvent, } from './events';
|
|
1
|
+
export { createDocument, createRoute, MAX_SLUG_ATTEMPTS, reportPathProblem, type CreatedDocument, type CreateDocumentOptions, type CreateTarget, } from './createDocument';
|
|
2
|
+
export { locatorFor, newDashboardSource, reportPathFor, reportPathForTitle, slugFor, slugOrFallback, } from './documentPath';
|
|
4
3
|
export { newDocumentProblem, type NewDocument } from './guards';
|
|
5
4
|
export { newNotebookSource } from './newNotebook';
|
|
6
5
|
export { useDocumentChoices, type DocumentChoice } from './useDocumentChoices';
|
|
@@ -1,9 +1,18 @@
|
|
|
1
|
+
import { ReportLayout } from '../Package/documentLocation';
|
|
1
2
|
import { NewDocument } from './guards';
|
|
2
3
|
/**
|
|
3
|
-
* A new
|
|
4
|
-
*
|
|
5
|
-
* import of the one source it runs (
|
|
6
|
-
* the
|
|
4
|
+
* A new report file, in the format the builder writes: the givens flag, the
|
|
5
|
+
* artifact tag (a block, a tile per line) listing an intro text tile and one
|
|
6
|
+
* query tile, a named import of the one source it runs (written relative to
|
|
7
|
+
* where the report sits, so a report at the root imports `"<model>"`), the
|
|
8
|
+
* intro block, and one extension of the source (`<source>_tiles`, the
|
|
7
9
|
* builder's naming) holding the picked view as the query tile.
|
|
10
|
+
*
|
|
11
|
+
* The two layouts differ only in `layout=` and the grid tag a grid carries.
|
|
12
|
+
* `layout=` is always written, so the file never depends on the reading rule.
|
|
8
13
|
*/
|
|
9
|
-
export declare function
|
|
14
|
+
export declare function newReportSource(input: NewDocument, layout: ReportLayout,
|
|
15
|
+
/** The package path the report is written at; the import is relative to it. Default: the root. */
|
|
16
|
+
reportPath?: string): string;
|
|
17
|
+
/** A new linear report; see {@link newReportSource}. */
|
|
18
|
+
export declare function newNotebookSource(input: NewDocument, reportPath?: string): string;
|
|
@@ -3,11 +3,17 @@ import { DocumentLocator, DocumentStorage, DocumentType, Workspace } from './Doc
|
|
|
3
3
|
* A {@link DocumentStorage} in the browser's localStorage: one workspace,
|
|
4
4
|
* `Local`, private to this browser and this origin. The Console's default, and
|
|
5
5
|
* what a host uses before it has a store of its own.
|
|
6
|
+
*
|
|
7
|
+
* A document is keyed by its path alone; its layout is stored with it.
|
|
6
8
|
*/
|
|
7
9
|
export declare class BrowserDocumentStorage implements DocumentStorage {
|
|
10
|
+
private migrated;
|
|
11
|
+
/** Drafts saved under the old type-keyed scheme, moved once per store so they are still found. */
|
|
12
|
+
private migrate;
|
|
8
13
|
listWorkspaces(writeableOnly: boolean): Promise<Workspace[]>;
|
|
9
14
|
listDocuments(workspace: Workspace, type?: DocumentType): Promise<DocumentLocator[]>;
|
|
10
15
|
getDocument(locator: DocumentLocator): Promise<string>;
|
|
16
|
+
getDocumentType(locator: Pick<DocumentLocator, "workspace" | "path">): Promise<DocumentType>;
|
|
11
17
|
saveDocument(locator: DocumentLocator, content: string): Promise<void>;
|
|
12
18
|
deleteDocument(locator: DocumentLocator): Promise<void>;
|
|
13
19
|
moveDocument(from: DocumentLocator, to: DocumentLocator): Promise<void>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ReportLayout } from '../Package/documentLocation';
|
|
1
2
|
/**
|
|
2
3
|
* Where authored documents are kept, as an interface the host hands the SDK.
|
|
3
4
|
*
|
|
@@ -9,12 +10,12 @@
|
|
|
9
10
|
* {@link DocumentStorage} through {@link DocumentStorageProvider} and calls it,
|
|
10
11
|
* and never touches a backend itself.
|
|
11
12
|
*
|
|
12
|
-
* A document is a string
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
13
|
+
* A document is a string, addressed by its workspace and its path: one path is
|
|
14
|
+
* one document. The {@link DocumentLocator.type} is metadata beside it, the
|
|
15
|
+
* report's layout, which a backend keeps (a column, a field) so a listing can
|
|
16
|
+
* say which layout each document is without reading it, and filter by one.
|
|
17
|
+
* Everything else a backend may know about a document, who changed it and
|
|
18
|
+
* when, who may see it, stays with the backend.
|
|
18
19
|
*
|
|
19
20
|
* A host hands the SDK ONE storage and keeps handing it the same one. What a
|
|
20
21
|
* storage says about its workspaces decides how the editor routes a save, and
|
|
@@ -40,11 +41,12 @@ export declare class DocumentNotFoundError extends Error {
|
|
|
40
41
|
/** Whether a rejection means absence rather than a backend that could not answer. */
|
|
41
42
|
export declare const isDocumentNotFound: (error: unknown) => boolean;
|
|
42
43
|
/**
|
|
43
|
-
* The
|
|
44
|
-
* `
|
|
45
|
-
*
|
|
44
|
+
* The layout of a report the SDK authors, as a store records it beside the
|
|
45
|
+
* document: `grid` or `linear`. Metadata, not identity: a report's path is
|
|
46
|
+
* its identity wherever in the package the file lives, and a layout switch
|
|
47
|
+
* changes this and nothing else.
|
|
46
48
|
*/
|
|
47
|
-
export type DocumentType =
|
|
49
|
+
export type DocumentType = ReportLayout;
|
|
48
50
|
/** A place documents live, as the backend presents it to a reader. */
|
|
49
51
|
export interface Workspace {
|
|
50
52
|
name: string;
|
|
@@ -78,30 +80,44 @@ export interface Workspace {
|
|
|
78
80
|
*/
|
|
79
81
|
authoritative?: boolean;
|
|
80
82
|
}
|
|
81
|
-
/**
|
|
83
|
+
/**
|
|
84
|
+
* One document's address, `workspace` and `path`, and its layout.
|
|
85
|
+
*
|
|
86
|
+
* The SDK spells `path` as `<environment>/<package>/<package path>`
|
|
87
|
+
* (`draftKey`), and a store keys a document by it: a read, a delete or a move
|
|
88
|
+
* finds the document at `path` whatever `type` says, and a save records
|
|
89
|
+
* `type` as the document's layout, replacing what it was.
|
|
90
|
+
*/
|
|
82
91
|
export interface DocumentLocator {
|
|
83
92
|
workspace: string;
|
|
93
|
+
/** The report's layout, which a save records and a listing reports. */
|
|
84
94
|
type: DocumentType;
|
|
85
|
-
/**
|
|
86
|
-
* The document's path within the workspace, spelled the way the backend
|
|
87
|
-
* spells it. For a repo-backed store that is the file path relative to the
|
|
88
|
-
* package (`dashboards/overview.malloy`); a database store may use a slug.
|
|
89
|
-
*/
|
|
95
|
+
/** The document's identity within the workspace. */
|
|
90
96
|
path: string;
|
|
91
97
|
}
|
|
92
98
|
export interface DocumentStorage {
|
|
93
99
|
/** The workspaces this reader can see; only the writeable ones when asked. */
|
|
94
100
|
listWorkspaces(writeableOnly: boolean): Promise<Workspace[]>;
|
|
95
|
-
/** Every document in a workspace, or only those of one
|
|
101
|
+
/** Every document in a workspace, or only those of one layout, each with the layout its last save recorded. */
|
|
96
102
|
listDocuments(workspace: Workspace, type?: DocumentType): Promise<DocumentLocator[]>;
|
|
97
103
|
/**
|
|
98
|
-
* The
|
|
99
|
-
*
|
|
100
|
-
* not be asked.
|
|
104
|
+
* The content of the document at `locator.path`, whatever its layout.
|
|
105
|
+
* Rejects with a {@link DocumentNotFoundError} when there is no document
|
|
106
|
+
* there, and with anything else when the backend could not be asked.
|
|
101
107
|
*/
|
|
102
108
|
getDocument(locator: DocumentLocator): Promise<string>;
|
|
103
109
|
/**
|
|
104
|
-
*
|
|
110
|
+
* Optional. The layout the last save recorded for the document at
|
|
111
|
+
* `locator.path`, read for that document alone. Rejects with a
|
|
112
|
+
* {@link DocumentNotFoundError} when there is no document there, and with
|
|
113
|
+
* anything else when the backend could not be asked. Left out, the SDK
|
|
114
|
+
* finds the layout in {@link listDocuments}, which reads the whole
|
|
115
|
+
* workspace to answer for one document.
|
|
116
|
+
*/
|
|
117
|
+
getDocumentType?(locator: Pick<DocumentLocator, "workspace" | "path">): Promise<DocumentType>;
|
|
118
|
+
/**
|
|
119
|
+
* Write the content at `locator.path`, creating the document or replacing
|
|
120
|
+
* it, and record `locator.type` as its layout.
|
|
105
121
|
*
|
|
106
122
|
* There is no expected-version slot, so this is last writer wins and a
|
|
107
123
|
* caller cannot tell that it overwrote someone. A backend that has to stop
|
|
@@ -109,15 +125,27 @@ export interface DocumentStorage {
|
|
|
109
125
|
*/
|
|
110
126
|
saveDocument(locator: DocumentLocator, content: string): Promise<void>;
|
|
111
127
|
/**
|
|
112
|
-
* Remove the document. Rejects with a {@link DocumentNotFoundError} when
|
|
128
|
+
* Remove the document at `locator.path`. Rejects with a {@link DocumentNotFoundError} when
|
|
113
129
|
* there is no document there, and with anything else when the backend could
|
|
114
130
|
* not be asked — a caller must not read the second as the first and report
|
|
115
131
|
* the document gone.
|
|
116
132
|
*/
|
|
117
133
|
deleteDocument(locator: DocumentLocator): Promise<void>;
|
|
118
134
|
/**
|
|
119
|
-
* Rename or relocate a document, keeping its content
|
|
120
|
-
* {@link DocumentNotFoundError} when
|
|
135
|
+
* Rename or relocate a document, keeping its content, and record `to.type`
|
|
136
|
+
* as its layout. Rejects with a {@link DocumentNotFoundError} when nothing
|
|
137
|
+
* is at `from.path`.
|
|
121
138
|
*/
|
|
122
139
|
moveDocument(from: DocumentLocator, to: DocumentLocator): Promise<void>;
|
|
140
|
+
/**
|
|
141
|
+
* Optional. The package-relative path at which {@link saveDocument} will
|
|
142
|
+
* put the file for `locator`, for a store that files a document somewhere
|
|
143
|
+
* other than the package path the SDK asked for (one that files a report
|
|
144
|
+
* by its layout, say). `createDocument` asks before it renders a new
|
|
145
|
+
* report, so the report's imports are written relative to
|
|
146
|
+
* where the file really lands, and returns that path as the report's
|
|
147
|
+
* `path`. Left out, the SDK assumes the requested package path: the
|
|
148
|
+
* locator's `path` minus its `<environment>/<package>/` prefix.
|
|
149
|
+
*/
|
|
150
|
+
resolveDocumentPath?(locator: DocumentLocator): string | Promise<string>;
|
|
123
151
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* document rather than a mix of "Fetching", "Loading" and "Opening".
|
|
5
5
|
*/
|
|
6
6
|
export declare const LOADING_COPY: {
|
|
7
|
-
/** A document being fetched: "Opening the
|
|
7
|
+
/** A document being fetched: "Opening the report…", or "Opening…". */
|
|
8
8
|
readonly opening: (noun?: string) => string;
|
|
9
9
|
/** A query on its way to a result. */
|
|
10
10
|
readonly running: "Running…";
|