@malloy-publisher/sdk 0.9.7 → 0.9.8
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-qnpbr4tc.cjs.js → RenderedResult-BrvrMDAP.cjs.js} +1 -1
- package/dist/{RenderedResult-CkUS04tl.es.js → RenderedResult-DZj-FnOJ.es.js} +2 -2
- package/dist/{ServerProvider-DnLLeXEX.es.js → ServerProvider-B_bPAsu2.es.js} +583 -398
- package/dist/ServerProvider-DuEOzwPc.cjs.js +1 -0
- 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 +472 -94
- package/dist/client/index.cjs.js +1 -1
- package/dist/client/index.es.js +105 -95
- 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/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 +7984 -7452
- 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-oocN5cGE.cjs.js +141 -0
- package/dist/{useCompiledDocument-Bf72Ob5v.es.js → useCompiledDocument-x0B2RAH3.es.js} +4593 -4395
- 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/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.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 +173 -292
- 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
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Credible Data Inc.
|
|
2
|
-
// SPDX-License-Identifier: MIT
|
|
3
|
-
|
|
4
|
-
/** Where a host's Save lands, as an editor's events report it. */
|
|
5
|
-
export type SavesTo = "package" | "browser" | "host";
|
|
6
|
-
import type { DashboardCreatedEvent } from "../DocumentCreate/events";
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* What a dashboard surface reports about itself, for the host to log or
|
|
10
|
-
* count: the operations that matter (open, save, the rows behind a value,
|
|
11
|
-
* exploring a tile), each with its outcome and how long it took.
|
|
12
|
-
*
|
|
13
|
-
* Context-free on purpose — the host that mounted the surface knows which
|
|
14
|
-
* environment, package and dashboard it is, and adds that when it logs.
|
|
15
|
-
*/
|
|
16
|
-
export type DashboardEvent =
|
|
17
|
-
| {
|
|
18
|
-
type: "dashboard.opened";
|
|
19
|
-
/**
|
|
20
|
-
* The package file, a draft the host had saved beside it, or the
|
|
21
|
-
* host's own copy when that copy is the record. A record open is not a
|
|
22
|
-
* "draft" open: nothing was resumed and nothing is pending.
|
|
23
|
-
*/
|
|
24
|
-
from: "package" | "draft" | "record";
|
|
25
|
-
tiles: number;
|
|
26
|
-
durationMs: number;
|
|
27
|
-
}
|
|
28
|
-
| { type: "dashboard.open_refused"; reason: string }
|
|
29
|
-
| {
|
|
30
|
-
type: "dashboard.saved";
|
|
31
|
-
tiles: number;
|
|
32
|
-
/** Whether a tile was added or removed, which moves declarations. */
|
|
33
|
-
structural: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* Where it went, named by which storage took the write rather than by
|
|
36
|
-
* where that storage happens to keep things, since "browser" and
|
|
37
|
-
* "host" do not divide by English: `package` is the package file on
|
|
38
|
-
* the server, `browser` is the Console's own browser store, and `host`
|
|
39
|
-
* is a host storage that holds the record.
|
|
40
|
-
*
|
|
41
|
-
* Separate because they are not the same event. A save into the
|
|
42
|
-
* package or the record is a change every reader sees; a browser save
|
|
43
|
-
* is one person's copy on one machine. Counting them together makes
|
|
44
|
-
* "dashboards are being edited" unreadable, because a read-only server
|
|
45
|
-
* reports exactly as much saving as a writable one.
|
|
46
|
-
*/
|
|
47
|
-
where: SavesTo;
|
|
48
|
-
/** The workspace that took the write, so the event says so itself. */
|
|
49
|
-
workspace?: string;
|
|
50
|
-
durationMs: number;
|
|
51
|
-
}
|
|
52
|
-
| { type: "dashboard.save_refused"; reason: string }
|
|
53
|
-
| {
|
|
54
|
-
/** Undo save wrote the file back as it was before the last save. */
|
|
55
|
-
type: "dashboard.save_undone";
|
|
56
|
-
tiles: number;
|
|
57
|
-
/** Whether the save it took back added or removed a tile. */
|
|
58
|
-
structural: boolean;
|
|
59
|
-
where: SavesTo;
|
|
60
|
-
workspace?: string;
|
|
61
|
-
durationMs: number;
|
|
62
|
-
}
|
|
63
|
-
| { type: "dashboard.save_undo_refused"; reason: string }
|
|
64
|
-
| DashboardCreatedEvent
|
|
65
|
-
| {
|
|
66
|
-
type: "dashboard.rows_shown";
|
|
67
|
-
source: string;
|
|
68
|
-
view: string;
|
|
69
|
-
field: string;
|
|
70
|
-
ok: boolean;
|
|
71
|
-
durationMs: number;
|
|
72
|
-
}
|
|
73
|
-
| { type: "dashboard.explored"; tile: string };
|
|
74
|
-
|
|
75
|
-
export type DashboardEventHandler = (event: DashboardEvent) => void;
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Credible Data Inc.
|
|
2
|
-
// SPDX-License-Identifier: MIT
|
|
3
|
-
|
|
4
|
-
import type { SavesTo } from "./documentSession";
|
|
5
|
-
import type { BuilderEvent } from "./telemetry";
|
|
6
|
-
import type { SessionReport } from "./useBuilderSession";
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* What the builder's session says about a save, in the event names the
|
|
10
|
-
* document's kind reports under.
|
|
11
|
-
*/
|
|
12
|
-
export const builderReport = ({
|
|
13
|
-
size,
|
|
14
|
-
notebook,
|
|
15
|
-
savesTo,
|
|
16
|
-
onEvent,
|
|
17
|
-
}: {
|
|
18
|
-
size: number;
|
|
19
|
-
notebook: boolean;
|
|
20
|
-
savesTo: SavesTo;
|
|
21
|
-
onEvent: ((event: BuilderEvent) => void) | undefined;
|
|
22
|
-
}): SessionReport => ({
|
|
23
|
-
size,
|
|
24
|
-
// A notebook-kind document keeps the `notebook.*` names hosts already count.
|
|
25
|
-
saved: ({ size, structural, durationMs, fromOpen }) =>
|
|
26
|
-
onEvent?.(
|
|
27
|
-
notebook
|
|
28
|
-
? {
|
|
29
|
-
type: "notebook.saved",
|
|
30
|
-
cells: size,
|
|
31
|
-
structural,
|
|
32
|
-
converted: fromOpen,
|
|
33
|
-
where: savesTo,
|
|
34
|
-
durationMs,
|
|
35
|
-
}
|
|
36
|
-
: {
|
|
37
|
-
type: "dashboard.saved",
|
|
38
|
-
tiles: size,
|
|
39
|
-
structural,
|
|
40
|
-
where: savesTo,
|
|
41
|
-
durationMs,
|
|
42
|
-
},
|
|
43
|
-
),
|
|
44
|
-
refused: (reason) =>
|
|
45
|
-
onEvent?.({
|
|
46
|
-
type: notebook ? "notebook.save_refused" : "dashboard.save_refused",
|
|
47
|
-
reason,
|
|
48
|
-
}),
|
|
49
|
-
undone: ({ size, structural, durationMs }) =>
|
|
50
|
-
onEvent?.(
|
|
51
|
-
notebook
|
|
52
|
-
? {
|
|
53
|
-
type: "notebook.save_undone",
|
|
54
|
-
cells: size,
|
|
55
|
-
structural,
|
|
56
|
-
where: savesTo,
|
|
57
|
-
durationMs,
|
|
58
|
-
}
|
|
59
|
-
: {
|
|
60
|
-
type: "dashboard.save_undone",
|
|
61
|
-
tiles: size,
|
|
62
|
-
structural,
|
|
63
|
-
where: savesTo,
|
|
64
|
-
durationMs,
|
|
65
|
-
},
|
|
66
|
-
),
|
|
67
|
-
undoRefused: (reason) =>
|
|
68
|
-
onEvent?.({
|
|
69
|
-
type: notebook
|
|
70
|
-
? "notebook.save_undo_refused"
|
|
71
|
-
: "dashboard.save_undo_refused",
|
|
72
|
-
reason,
|
|
73
|
-
}),
|
|
74
|
-
});
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Credible Data Inc.
|
|
2
|
-
// SPDX-License-Identifier: MIT
|
|
3
|
-
|
|
4
|
-
import { describe, expect, it } from "bun:test";
|
|
5
|
-
import * as fs from "fs";
|
|
6
|
-
import * as path from "path";
|
|
7
|
-
import { readForEditor } from "./readForEditor";
|
|
8
|
-
|
|
9
|
-
const REPO = path.resolve(import.meta.dir, "../../../../..");
|
|
10
|
-
const LEGACY = fs
|
|
11
|
-
.readFileSync(
|
|
12
|
-
path.join(REPO, "examples/storefront/notebooks/category-review.malloy"),
|
|
13
|
-
"utf8",
|
|
14
|
-
)
|
|
15
|
-
.replace(/\r\n/g, "\n");
|
|
16
|
-
|
|
17
|
-
describe("readForEditor", () => {
|
|
18
|
-
it("opens a layout file as it is, with no conversion", async () => {
|
|
19
|
-
const result = await readForEditor(
|
|
20
|
-
`## artifact { title="D" tiles=["a -> x"] }\nsource: a is b extend {\n view: x is v\n}\n`,
|
|
21
|
-
);
|
|
22
|
-
expect(result.ok).toBe(true);
|
|
23
|
-
expect(result.ok && result.conversion).toBeUndefined();
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
it("converts a cell-format notebook, keeping the disk text to hand back", async () => {
|
|
27
|
-
const result = await readForEditor(LEGACY);
|
|
28
|
-
if (result.ok === false) throw new Error(result.reason);
|
|
29
|
-
expect(result.conversion?.from).toBe(LEGACY);
|
|
30
|
-
expect(result.conversion?.to).toContain(
|
|
31
|
-
"tiles=[\n text_1 { kind=text }",
|
|
32
|
-
);
|
|
33
|
-
expect(result.document.kind).toBe("notebook");
|
|
34
|
-
expect(result.document.tiles).toHaveLength(7);
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
it("refuses a conversion it cannot make, naming the line", async () => {
|
|
38
|
-
const result = await readForEditor(
|
|
39
|
-
`## artifact { kind=notebook }\nimport { o } from "../m.malloy"\n\nrun: o extend { dimension: z is 1 } -> { select: z }\n`,
|
|
40
|
-
);
|
|
41
|
-
expect(result.ok).toBe(false);
|
|
42
|
-
expect(result.ok === false && result.reason).toMatch(/line 4/i);
|
|
43
|
-
});
|
|
44
|
-
|
|
45
|
-
it("says why a file that is not a notebook will not open, with its line", async () => {
|
|
46
|
-
const result = await readForEditor(`source: a is b\n`);
|
|
47
|
-
expect(result.ok).toBe(false);
|
|
48
|
-
});
|
|
49
|
-
|
|
50
|
-
describe("a tag that names no kind takes the folder's, as the server does", () => {
|
|
51
|
-
const LAYOUT = `## artifact { title="D" tiles=["a -> x"] }\nsource: a is b extend {\n view: x is v\n}\n`;
|
|
52
|
-
|
|
53
|
-
it("opens a kind-less layout file in notebooks/ as a notebook", async () => {
|
|
54
|
-
const result = await readForEditor(LAYOUT, "notebooks/d.malloy");
|
|
55
|
-
expect(result.ok && result.document.kind).toBe("notebook");
|
|
56
|
-
});
|
|
57
|
-
|
|
58
|
-
it("opens it as a dashboard in dashboards/, and when the tag says so in notebooks/", async () => {
|
|
59
|
-
const inDashboards = await readForEditor(
|
|
60
|
-
LAYOUT,
|
|
61
|
-
"dashboards/d.malloy",
|
|
62
|
-
);
|
|
63
|
-
expect(inDashboards.ok && inDashboards.document.kind).toBeUndefined();
|
|
64
|
-
const tagged = await readForEditor(
|
|
65
|
-
LAYOUT.replace("{ title", "{ kind=dashboard title"),
|
|
66
|
-
"notebooks/d.malloy",
|
|
67
|
-
);
|
|
68
|
-
expect(tagged.ok && tagged.document.kind).toBeUndefined();
|
|
69
|
-
});
|
|
70
|
-
|
|
71
|
-
it("converts a kind-less cell-format file in notebooks/ rather than refusing it", async () => {
|
|
72
|
-
const kindless = LEGACY.replace("kind=notebook ", "");
|
|
73
|
-
expect(kindless).not.toBe(LEGACY);
|
|
74
|
-
const result = await readForEditor(kindless, "notebooks/c.malloy");
|
|
75
|
-
if (result.ok === false) throw new Error(result.reason);
|
|
76
|
-
expect(result.conversion?.from).toBe(kindless);
|
|
77
|
-
expect(result.document.kind).toBe("notebook");
|
|
78
|
-
});
|
|
79
|
-
});
|
|
80
|
-
});
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Credible Data Inc.
|
|
2
|
-
// SPDX-License-Identifier: MIT
|
|
3
|
-
|
|
4
|
-
import type { DashboardEvent } from "../Dashboard/telemetry";
|
|
5
|
-
import type { SavesTo } from "./documentSession";
|
|
6
|
-
import type { NotebookCreatedEvent } from "../DocumentCreate/events";
|
|
7
|
-
|
|
8
|
-
/** What the notebook editor reports about itself, for the host to log; context-free like `DashboardEvent`. A one-column dashboard document reports these too. */
|
|
9
|
-
export type NotebookEvent =
|
|
10
|
-
| {
|
|
11
|
-
type: "notebook.opened";
|
|
12
|
-
/** The package file, or the host's own copy when that copy is the record. */
|
|
13
|
-
from: "package" | "record";
|
|
14
|
-
cells: number;
|
|
15
|
-
durationMs: number;
|
|
16
|
-
}
|
|
17
|
-
| { type: "notebook.open_refused"; reason: string }
|
|
18
|
-
| {
|
|
19
|
-
type: "notebook.saved";
|
|
20
|
-
cells: number;
|
|
21
|
-
where: SavesTo;
|
|
22
|
-
/** The save added or removed a cell. */
|
|
23
|
-
structural: boolean;
|
|
24
|
-
/** The save rewrote a notebook in the cell format as a layout notebook. */
|
|
25
|
-
converted?: boolean;
|
|
26
|
-
/** The host workspace that took the write; never set for a package save. */
|
|
27
|
-
workspace?: string;
|
|
28
|
-
durationMs: number;
|
|
29
|
-
}
|
|
30
|
-
| { type: "notebook.save_refused"; reason: string }
|
|
31
|
-
| {
|
|
32
|
-
/** Undo save wrote the file back as it was before the last save. */
|
|
33
|
-
type: "notebook.save_undone";
|
|
34
|
-
cells: number;
|
|
35
|
-
where: SavesTo;
|
|
36
|
-
/** Whether the save it took back added or removed a cell. */
|
|
37
|
-
structural: boolean;
|
|
38
|
-
workspace?: string;
|
|
39
|
-
durationMs: number;
|
|
40
|
-
}
|
|
41
|
-
| { type: "notebook.save_undo_refused"; reason: string }
|
|
42
|
-
| NotebookCreatedEvent;
|
|
43
|
-
|
|
44
|
-
export type NotebookEventHandler = (event: NotebookEvent) => void;
|
|
45
|
-
|
|
46
|
-
/** Whatever the one builder reports: a notebook-kind document speaks `notebook.*`, a dashboard `dashboard.*`. */
|
|
47
|
-
export type BuilderEvent = DashboardEvent | NotebookEvent;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"about": "The kind of a document submitted as text, which has no folder to take one from: the tag's `kind` when it names one, else a dashboard when it lists tiles or sets a grid width, else a notebook. The server (submittedTextKind) and the SDK reader (readDashboardDocument with textHeld) each hold the rule, so each side's spec reads this file.",
|
|
3
|
-
"cases": [
|
|
4
|
-
{
|
|
5
|
-
"name": "no kind and no layout is a notebook",
|
|
6
|
-
"source": "## artifact { }\nrun: q -> { aggregate: c }\n",
|
|
7
|
-
"kind": "notebook"
|
|
8
|
-
},
|
|
9
|
-
{
|
|
10
|
-
"name": "a tag with only a title is a notebook",
|
|
11
|
-
"source": "## artifact { title=\"x\" }\nrun: q -> { aggregate: c }\n",
|
|
12
|
-
"kind": "notebook"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"name": "a tiles list makes a dashboard",
|
|
16
|
-
"source": "## artifact { tiles=[\"a -> v\"] }\n",
|
|
17
|
-
"kind": "dashboard"
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
"name": "a tiles list of only a text tile makes a dashboard",
|
|
21
|
-
"source": "## artifact { tiles=[ intro { kind=text } ] }\n",
|
|
22
|
-
"kind": "dashboard"
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
"name": "a grid width makes a dashboard",
|
|
26
|
-
"source": "## artifact { } dashboard { columns=12 }\n",
|
|
27
|
-
"kind": "dashboard"
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"name": "an explicit dashboard wins over the absence of a layout",
|
|
31
|
-
"source": "## artifact { kind=dashboard }\nrun: q -> { aggregate: c }\n",
|
|
32
|
-
"kind": "dashboard"
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
"name": "an explicit notebook wins over a tiles list",
|
|
36
|
-
"source": "## artifact { kind=notebook tiles=[\"a -> v\"] }\n",
|
|
37
|
-
"kind": "notebook"
|
|
38
|
-
}
|
|
39
|
-
]
|
|
40
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Credible Data Inc.
|
|
2
|
-
// SPDX-License-Identifier: MIT
|
|
3
|
-
|
|
4
|
-
/** A document the host created; `where` names which storage took the write, as on the `*.saved` events. */
|
|
5
|
-
export type DashboardCreatedEvent = {
|
|
6
|
-
type: "dashboard.created";
|
|
7
|
-
where: "package" | "host";
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
export type NotebookCreatedEvent = {
|
|
11
|
-
type: "notebook.created";
|
|
12
|
-
where: "package" | "host";
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
export type DocumentCreatedEvent = DashboardCreatedEvent | NotebookCreatedEvent;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/src/components/{DashboardBuilder → ReportBuilder}/useBuilderShortcuts.overlay.spec.tsx
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|