@flanksource/clicky-ui 0.3.77 → 0.3.79
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/NOTICE.md +16 -0
- package/dist/ai.cjs +2 -2
- package/dist/ai.js +2 -2
- package/dist/comments/CommentThreadList.cjs +13 -14
- package/dist/comments/CommentThreadList.cjs.map +1 -1
- package/dist/comments/CommentThreadList.d.ts.map +1 -1
- package/dist/comments/CommentThreadList.js +13 -14
- package/dist/comments/CommentThreadList.js.map +1 -1
- package/dist/components/EndpointSelector.cjs +7 -1
- package/dist/components/EndpointSelector.cjs.map +1 -1
- package/dist/components/EndpointSelector.d.ts.map +1 -1
- package/dist/components/EndpointSelector.js +7 -1
- package/dist/components/EndpointSelector.js.map +1 -1
- package/dist/components/FilterBar.cjs +36 -12
- package/dist/components/FilterBar.cjs.map +1 -1
- package/dist/components/FilterBar.d.ts +14 -2
- package/dist/components/FilterBar.d.ts.map +1 -1
- package/dist/components/FilterBar.js +36 -12
- package/dist/components/FilterBar.js.map +1 -1
- package/dist/components/FormLookupProvider.cjs +12 -4
- package/dist/components/FormLookupProvider.cjs.map +1 -1
- package/dist/components/FormLookupProvider.d.ts.map +1 -1
- package/dist/components/FormLookupProvider.js +13 -5
- package/dist/components/FormLookupProvider.js.map +1 -1
- package/dist/components/JSONPathPlayground.cjs +124 -233
- package/dist/components/JSONPathPlayground.cjs.map +1 -1
- package/dist/components/JSONPathPlayground.d.ts +15 -13
- package/dist/components/JSONPathPlayground.d.ts.map +1 -1
- package/dist/components/JSONPathPlayground.js +125 -234
- package/dist/components/JSONPathPlayground.js.map +1 -1
- package/dist/components/JsonSchemaForm.cjs +6 -0
- package/dist/components/JsonSchemaForm.cjs.map +1 -1
- package/dist/components/JsonSchemaForm.js +6 -0
- package/dist/components/JsonSchemaForm.js.map +1 -1
- package/dist/components/SegmentedControl.cjs +1 -1
- package/dist/components/SegmentedControl.cjs.map +1 -1
- package/dist/components/SegmentedControl.d.ts.map +1 -1
- package/dist/components/SegmentedControl.js +1 -1
- package/dist/components/SegmentedControl.js.map +1 -1
- package/dist/components/TimeRange.cjs +133 -60
- package/dist/components/TimeRange.cjs.map +1 -1
- package/dist/components/TimeRange.d.ts +8 -1
- package/dist/components/TimeRange.d.ts.map +1 -1
- package/dist/components/TimeRange.js +133 -60
- package/dist/components/TimeRange.js.map +1 -1
- package/dist/components/json-schema-form-accordion-array.cjs +8 -6
- package/dist/components/json-schema-form-accordion-array.cjs.map +1 -1
- package/dist/components/json-schema-form-accordion-array.d.ts.map +1 -1
- package/dist/components/json-schema-form-accordion-array.js +9 -7
- package/dist/components/json-schema-form-accordion-array.js.map +1 -1
- package/dist/components/json-schema-form-array-rows.cjs +45 -0
- package/dist/components/json-schema-form-array-rows.cjs.map +1 -0
- package/dist/components/json-schema-form-array-rows.d.ts +10 -0
- package/dist/components/json-schema-form-array-rows.d.ts.map +1 -0
- package/dist/components/json-schema-form-array-rows.js +45 -0
- package/dist/components/json-schema-form-array-rows.js.map +1 -0
- package/dist/components/json-schema-form-item-summary.cjs +3 -5
- package/dist/components/json-schema-form-item-summary.cjs.map +1 -1
- package/dist/components/json-schema-form-item-summary.d.ts +1 -1
- package/dist/components/json-schema-form-item-summary.d.ts.map +1 -1
- package/dist/components/json-schema-form-item-summary.js +3 -5
- package/dist/components/json-schema-form-item-summary.js.map +1 -1
- package/dist/components/json-schema-form-render.cjs +11 -2
- package/dist/components/json-schema-form-render.cjs.map +1 -1
- package/dist/components/json-schema-form-render.d.ts.map +1 -1
- package/dist/components/json-schema-form-render.js +12 -3
- package/dist/components/json-schema-form-render.js.map +1 -1
- package/dist/components/json-schema-form-resolve.cjs +10 -0
- package/dist/components/json-schema-form-resolve.cjs.map +1 -1
- package/dist/components/json-schema-form-resolve.d.ts +1 -0
- package/dist/components/json-schema-form-resolve.d.ts.map +1 -1
- package/dist/components/json-schema-form-resolve.js +10 -1
- package/dist/components/json-schema-form-resolve.js.map +1 -1
- package/dist/components/json-schema-form-runtime-types.d.ts +4 -0
- package/dist/components/json-schema-form-runtime-types.d.ts.map +1 -1
- package/dist/components/json-schema-form-table-array.cjs +25 -16
- package/dist/components/json-schema-form-table-array.cjs.map +1 -1
- package/dist/components/json-schema-form-table-array.d.ts +1 -1
- package/dist/components/json-schema-form-table-array.d.ts.map +1 -1
- package/dist/components/json-schema-form-table-array.js +26 -17
- package/dist/components/json-schema-form-table-array.js.map +1 -1
- package/dist/components/json-schema-form-types.d.ts +0 -2
- package/dist/components/json-schema-form-types.d.ts.map +1 -1
- package/dist/components/jsonPathPlaygroundEvaluator.cjs +53 -0
- package/dist/components/jsonPathPlaygroundEvaluator.cjs.map +1 -0
- package/dist/components/jsonPathPlaygroundEvaluator.d.ts +23 -0
- package/dist/components/jsonPathPlaygroundEvaluator.d.ts.map +1 -0
- package/dist/components/jsonPathPlaygroundEvaluator.js +53 -0
- package/dist/components/jsonPathPlaygroundEvaluator.js.map +1 -0
- package/dist/components/jsonPathTree.cjs +1 -0
- package/dist/components/jsonPathTree.cjs.map +1 -1
- package/dist/components/jsonPathTree.d.ts +6 -0
- package/dist/components/jsonPathTree.d.ts.map +1 -1
- package/dist/components/jsonPathTree.js +1 -0
- package/dist/components/jsonPathTree.js.map +1 -1
- package/dist/data/Clicky.cjs +37 -18
- package/dist/data/Clicky.cjs.map +1 -1
- package/dist/data/Clicky.d.ts +5 -0
- package/dist/data/Clicky.d.ts.map +1 -1
- package/dist/data/Clicky.js +37 -18
- package/dist/data/Clicky.js.map +1 -1
- package/dist/data/DataTable.cjs +49 -12
- package/dist/data/DataTable.cjs.map +1 -1
- package/dist/data/DataTable.d.ts +17 -2
- package/dist/data/DataTable.d.ts.map +1 -1
- package/dist/data/DataTable.js +49 -12
- package/dist/data/DataTable.js.map +1 -1
- package/dist/data/TaskPoolUsage.cjs +2 -1
- package/dist/data/TaskPoolUsage.cjs.map +1 -1
- package/dist/data/TaskPoolUsage.d.ts.map +1 -1
- package/dist/data/TaskPoolUsage.js +2 -1
- package/dist/data/TaskPoolUsage.js.map +1 -1
- package/dist/data/TimeseriesPanel.axes.cjs +18 -3
- package/dist/data/TimeseriesPanel.axes.cjs.map +1 -1
- package/dist/data/TimeseriesPanel.axes.d.ts +10 -1
- package/dist/data/TimeseriesPanel.axes.d.ts.map +1 -1
- package/dist/data/TimeseriesPanel.axes.js +17 -4
- package/dist/data/TimeseriesPanel.axes.js.map +1 -1
- package/dist/data/TimeseriesPanel.cjs +57 -23
- package/dist/data/TimeseriesPanel.cjs.map +1 -1
- package/dist/data/TimeseriesPanel.d.ts.map +1 -1
- package/dist/data/TimeseriesPanel.js +59 -25
- package/dist/data/TimeseriesPanel.js.map +1 -1
- package/dist/data/TimeseriesPanel.model.cjs +10 -7
- package/dist/data/TimeseriesPanel.model.cjs.map +1 -1
- package/dist/data/TimeseriesPanel.model.d.ts +7 -4
- package/dist/data/TimeseriesPanel.model.d.ts.map +1 -1
- package/dist/data/TimeseriesPanel.model.js +11 -8
- package/dist/data/TimeseriesPanel.model.js.map +1 -1
- package/dist/data/TimeseriesPanel.readout.cjs +11 -0
- package/dist/data/TimeseriesPanel.readout.cjs.map +1 -0
- package/dist/data/TimeseriesPanel.readout.d.ts +4 -0
- package/dist/data/TimeseriesPanel.readout.d.ts.map +1 -0
- package/dist/data/TimeseriesPanel.readout.js +10 -0
- package/dist/data/TimeseriesPanel.readout.js.map +1 -0
- package/dist/data/TimeseriesPanel.segments.cjs +67 -0
- package/dist/data/TimeseriesPanel.segments.cjs.map +1 -0
- package/dist/data/TimeseriesPanel.segments.d.ts +27 -0
- package/dist/data/TimeseriesPanel.segments.d.ts.map +1 -0
- package/dist/data/TimeseriesPanel.segments.js +67 -0
- package/dist/data/TimeseriesPanel.segments.js.map +1 -0
- package/dist/data/TreeDataTable.cjs +12 -3
- package/dist/data/TreeDataTable.cjs.map +1 -1
- package/dist/data/TreeDataTable.d.ts +15 -3
- package/dist/data/TreeDataTable.d.ts.map +1 -1
- package/dist/data/TreeDataTable.js +12 -3
- package/dist/data/TreeDataTable.js.map +1 -1
- package/dist/data/TreeNode.cjs +18 -3
- package/dist/data/TreeNode.cjs.map +1 -1
- package/dist/data/TreeNode.d.ts +7 -1
- package/dist/data/TreeNode.d.ts.map +1 -1
- package/dist/data/TreeNode.js +18 -3
- package/dist/data/TreeNode.js.map +1 -1
- package/dist/data/ai/SessionChatComposer.cjs +2 -0
- package/dist/data/ai/SessionChatComposer.cjs.map +1 -1
- package/dist/data/ai/SessionChatComposer.d.ts.map +1 -1
- package/dist/data/ai/SessionChatComposer.js +2 -0
- package/dist/data/ai/SessionChatComposer.js.map +1 -1
- package/dist/data/ai/SessionInspector.panels.cjs +47 -1
- package/dist/data/ai/SessionInspector.panels.cjs.map +1 -1
- package/dist/data/ai/SessionInspector.panels.d.ts.map +1 -1
- package/dist/data/ai/SessionInspector.panels.js +48 -2
- package/dist/data/ai/SessionInspector.panels.js.map +1 -1
- package/dist/data/ai/SessionViewer.unified.d.ts +48 -0
- package/dist/data/ai/SessionViewer.unified.d.ts.map +1 -1
- package/dist/data/ai/index.d.ts +2 -2
- package/dist/data/ai/index.d.ts.map +1 -1
- package/dist/data/ai/runtime-profiles/PresetWorkspace.cjs +97 -100
- package/dist/data/ai/runtime-profiles/PresetWorkspace.cjs.map +1 -1
- package/dist/data/ai/runtime-profiles/PresetWorkspace.d.ts.map +1 -1
- package/dist/data/ai/runtime-profiles/PresetWorkspace.js +97 -100
- package/dist/data/ai/runtime-profiles/PresetWorkspace.js.map +1 -1
- package/dist/data/ai/runtime-profiles/ProfileWorkspace.cjs +40 -38
- package/dist/data/ai/runtime-profiles/ProfileWorkspace.cjs.map +1 -1
- package/dist/data/ai/runtime-profiles/ProfileWorkspace.d.ts.map +1 -1
- package/dist/data/ai/runtime-profiles/ProfileWorkspace.js +41 -39
- package/dist/data/ai/runtime-profiles/ProfileWorkspace.js.map +1 -1
- package/dist/data/ai/runtime-profiles/ResolutionPreview.cjs +53 -0
- package/dist/data/ai/runtime-profiles/ResolutionPreview.cjs.map +1 -0
- package/dist/data/ai/runtime-profiles/ResolutionPreview.d.ts +7 -0
- package/dist/data/ai/runtime-profiles/ResolutionPreview.d.ts.map +1 -0
- package/dist/data/ai/runtime-profiles/ResolutionPreview.js +53 -0
- package/dist/data/ai/runtime-profiles/ResolutionPreview.js.map +1 -0
- package/dist/data/ai/runtime-profiles/index.d.ts +1 -1
- package/dist/data/ai/runtime-profiles/index.d.ts.map +1 -1
- package/dist/data/ai/sessionSubmitVariant.cjs +30 -0
- package/dist/data/ai/sessionSubmitVariant.cjs.map +1 -0
- package/dist/data/ai/sessionSubmitVariant.d.ts +7 -0
- package/dist/data/ai/sessionSubmitVariant.d.ts.map +1 -0
- package/dist/data/ai/sessionSubmitVariant.js +30 -0
- package/dist/data/ai/sessionSubmitVariant.js.map +1 -0
- package/dist/data/cells/Timestamp.cjs +15 -4
- package/dist/data/cells/Timestamp.cjs.map +1 -1
- package/dist/data/cells/Timestamp.d.ts.map +1 -1
- package/dist/data/cells/Timestamp.js +15 -4
- package/dist/data/cells/Timestamp.js.map +1 -1
- package/dist/data/cells/timestamp-format.cjs +28 -8
- package/dist/data/cells/timestamp-format.cjs.map +1 -1
- package/dist/data/cells/timestamp-format.d.ts +3 -1
- package/dist/data/cells/timestamp-format.d.ts.map +1 -1
- package/dist/data/cells/timestamp-format.js +28 -8
- package/dist/data/cells/timestamp-format.js.map +1 -1
- package/dist/data/charts/TrendChart.cjs +65 -31
- package/dist/data/charts/TrendChart.cjs.map +1 -1
- package/dist/data/charts/TrendChart.d.ts +12 -3
- package/dist/data/charts/TrendChart.d.ts.map +1 -1
- package/dist/data/charts/TrendChart.js +67 -33
- package/dist/data/charts/TrendChart.js.map +1 -1
- package/dist/data/charts/index.d.ts +1 -1
- package/dist/data/charts/index.d.ts.map +1 -1
- package/dist/data/chat/PromptInput.cjs +11 -2
- package/dist/data/chat/PromptInput.cjs.map +1 -1
- package/dist/data/chat/PromptInput.d.ts +15 -1
- package/dist/data/chat/PromptInput.d.ts.map +1 -1
- package/dist/data/chat/PromptInput.js +11 -2
- package/dist/data/chat/PromptInput.js.map +1 -1
- package/dist/data/chat/index.d.ts +1 -1
- package/dist/data/chat/index.d.ts.map +1 -1
- package/dist/data/data-table-filter-values.cjs.map +1 -1
- package/dist/data/data-table-filter-values.d.ts +1 -1
- package/dist/data/data-table-filter-values.d.ts.map +1 -1
- package/dist/data/data-table-filter-values.js.map +1 -1
- package/dist/data/data-table-server-filters.cjs +2 -6
- package/dist/data/data-table-server-filters.cjs.map +1 -1
- package/dist/data/data-table-server-filters.d.ts +1 -1
- package/dist/data/data-table-server-filters.d.ts.map +1 -1
- package/dist/data/data-table-server-filters.js +1 -5
- package/dist/data/data-table-server-filters.js.map +1 -1
- package/dist/data/diagnostics/ErrorDetails.cjs +2 -1
- package/dist/data/diagnostics/ErrorDetails.cjs.map +1 -1
- package/dist/data/diagnostics/ErrorDetails.d.ts +2 -1
- package/dist/data/diagnostics/ErrorDetails.d.ts.map +1 -1
- package/dist/data/diagnostics/ErrorDetails.js +2 -1
- package/dist/data/diagnostics/ErrorDetails.js.map +1 -1
- package/dist/data/gauge-stats.cjs +7 -3
- package/dist/data/gauge-stats.cjs.map +1 -1
- package/dist/data/gauge-stats.d.ts.map +1 -1
- package/dist/data/gauge-stats.js +7 -3
- package/dist/data/gauge-stats.js.map +1 -1
- package/dist/data/query-browser/QueryBrowser.cjs +41 -17
- package/dist/data/query-browser/QueryBrowser.cjs.map +1 -1
- package/dist/data/query-browser/QueryBrowser.d.ts +1 -1
- package/dist/data/query-browser/QueryBrowser.d.ts.map +1 -1
- package/dist/data/query-browser/QueryBrowser.fieldNames.cjs +23 -0
- package/dist/data/query-browser/QueryBrowser.fieldNames.cjs.map +1 -0
- package/dist/data/query-browser/QueryBrowser.fieldNames.d.ts +11 -0
- package/dist/data/query-browser/QueryBrowser.fieldNames.d.ts.map +1 -0
- package/dist/data/query-browser/QueryBrowser.fieldNames.js +23 -0
- package/dist/data/query-browser/QueryBrowser.fieldNames.js.map +1 -0
- package/dist/data/query-browser/QueryBrowser.js +41 -17
- package/dist/data/query-browser/QueryBrowser.js.map +1 -1
- package/dist/data/query-browser/QueryBrowser.types.cjs.map +1 -1
- package/dist/data/query-browser/QueryBrowser.types.d.ts +18 -0
- package/dist/data/query-browser/QueryBrowser.types.d.ts.map +1 -1
- package/dist/data/query-browser/QueryBrowser.types.js.map +1 -1
- package/dist/data/runtime/RuntimeBarLayout.cjs +3 -2
- package/dist/data/runtime/RuntimeBarLayout.cjs.map +1 -1
- package/dist/data/runtime/RuntimeBarLayout.d.ts.map +1 -1
- package/dist/data/runtime/RuntimeBarLayout.js +3 -2
- package/dist/data/runtime/RuntimeBarLayout.js.map +1 -1
- package/dist/data/test-runner/TestRunner.cjs +3 -1
- package/dist/data/test-runner/TestRunner.cjs.map +1 -1
- package/dist/data/test-runner/TestRunner.d.ts +8 -1
- package/dist/data/test-runner/TestRunner.d.ts.map +1 -1
- package/dist/data/test-runner/TestRunner.js +3 -1
- package/dist/data/test-runner/TestRunner.js.map +1 -1
- package/dist/data/test-runner/TestTree.cjs +1 -0
- package/dist/data/test-runner/TestTree.cjs.map +1 -1
- package/dist/data/test-runner/TestTree.d.ts.map +1 -1
- package/dist/data/test-runner/TestTree.js +1 -0
- package/dist/data/test-runner/TestTree.js.map +1 -1
- package/dist/data/test-runner/context.cjs.map +1 -1
- package/dist/data/test-runner/context.d.ts +2 -0
- package/dist/data/test-runner/context.d.ts.map +1 -1
- package/dist/data/test-runner/context.js.map +1 -1
- package/dist/data/timeseries-query.cjs +2 -2
- package/dist/data/timeseries-query.cjs.map +1 -1
- package/dist/data/timeseries-query.d.ts +1 -1
- package/dist/data/timeseries-query.d.ts.map +1 -1
- package/dist/data/timeseries-query.js +2 -2
- package/dist/data/timeseries-query.js.map +1 -1
- package/dist/data/version-info.cjs +3 -3
- package/dist/data/version-info.js +3 -3
- package/dist/data.cjs +33 -0
- package/dist/data.d.ts +1 -1
- package/dist/data.d.ts.map +1 -1
- package/dist/data.js +18 -2
- package/dist/expressions/playground/EmbeddedPlayground.cjs +40 -0
- package/dist/expressions/playground/EmbeddedPlayground.cjs.map +1 -0
- package/dist/expressions/playground/EmbeddedPlayground.d.ts +30 -0
- package/dist/expressions/playground/EmbeddedPlayground.d.ts.map +1 -0
- package/dist/expressions/playground/EmbeddedPlayground.js +40 -0
- package/dist/expressions/playground/EmbeddedPlayground.js.map +1 -0
- package/dist/expressions/playground/ExpressionPlayground.cjs +6 -6
- package/dist/expressions/playground/ExpressionPlayground.cjs.map +1 -1
- package/dist/expressions/playground/ExpressionPlayground.d.ts +10 -3
- package/dist/expressions/playground/ExpressionPlayground.d.ts.map +1 -1
- package/dist/expressions/playground/ExpressionPlayground.js +6 -6
- package/dist/expressions/playground/ExpressionPlayground.js.map +1 -1
- package/dist/expressions/playground/LazyEmbeddedPlayground.cjs +22 -0
- package/dist/expressions/playground/LazyEmbeddedPlayground.cjs.map +1 -0
- package/dist/expressions/playground/LazyEmbeddedPlayground.d.ts +4 -0
- package/dist/expressions/playground/LazyEmbeddedPlayground.d.ts.map +1 -0
- package/dist/expressions/playground/LazyEmbeddedPlayground.js +22 -0
- package/dist/expressions/playground/LazyEmbeddedPlayground.js.map +1 -0
- package/dist/expressions/playground/api.cjs.map +1 -1
- package/dist/expressions/playground/api.d.ts +10 -0
- package/dist/expressions/playground/api.d.ts.map +1 -1
- package/dist/expressions/playground/api.js.map +1 -1
- package/dist/expressions/playground/hostEvaluation.cjs +67 -0
- package/dist/expressions/playground/hostEvaluation.cjs.map +1 -0
- package/dist/expressions/playground/hostEvaluation.d.ts +39 -0
- package/dist/expressions/playground/hostEvaluation.d.ts.map +1 -0
- package/dist/expressions/playground/hostEvaluation.js +63 -0
- package/dist/expressions/playground/hostEvaluation.js.map +1 -0
- package/dist/expressions/playground/panels/GraphPanel.cjs +8 -3
- package/dist/expressions/playground/panels/GraphPanel.cjs.map +1 -1
- package/dist/expressions/playground/panels/GraphPanel.d.ts +2 -1
- package/dist/expressions/playground/panels/GraphPanel.d.ts.map +1 -1
- package/dist/expressions/playground/panels/GraphPanel.js +8 -3
- package/dist/expressions/playground/panels/GraphPanel.js.map +1 -1
- package/dist/expressions/playground/panels/graphNodes.cjs +6 -2
- package/dist/expressions/playground/panels/graphNodes.cjs.map +1 -1
- package/dist/expressions/playground/panels/graphNodes.d.ts +6 -2
- package/dist/expressions/playground/panels/graphNodes.d.ts.map +1 -1
- package/dist/expressions/playground/panels/graphNodes.js +6 -2
- package/dist/expressions/playground/panels/graphNodes.js.map +1 -1
- package/dist/expressions/playground.d.ts +1 -1
- package/dist/expressions/playground.d.ts.map +1 -1
- package/dist/hooks/use-element-height.cjs +26 -0
- package/dist/hooks/use-element-height.cjs.map +1 -0
- package/dist/hooks/use-element-height.d.ts +10 -0
- package/dist/hooks/use-element-height.d.ts.map +1 -0
- package/dist/hooks/use-element-height.js +26 -0
- package/dist/hooks/use-element-height.js.map +1 -0
- package/dist/icons/components/UiGlobeShare.cjs +33 -0
- package/dist/icons/components/UiGlobeShare.cjs.map +1 -0
- package/dist/icons/components/UiGlobeShare.d.ts +9 -0
- package/dist/icons/components/UiGlobeShare.d.ts.map +1 -0
- package/dist/icons/components/UiGlobeShare.js +31 -0
- package/dist/icons/components/UiGlobeShare.js.map +1 -0
- package/dist/icons/components/UiKubernetesLink.cjs +38 -0
- package/dist/icons/components/UiKubernetesLink.cjs.map +1 -0
- package/dist/icons/components/UiKubernetesLink.d.ts +9 -0
- package/dist/icons/components/UiKubernetesLink.d.ts.map +1 -0
- package/dist/icons/components/UiKubernetesLink.js +36 -0
- package/dist/icons/components/UiKubernetesLink.js.map +1 -0
- package/dist/icons/components/UiLogoAws.cjs +29 -0
- package/dist/icons/components/UiLogoAws.cjs.map +1 -0
- package/dist/icons/components/UiLogoAws.d.ts +9 -0
- package/dist/icons/components/UiLogoAws.d.ts.map +1 -0
- package/dist/icons/components/UiLogoAws.js +27 -0
- package/dist/icons/components/UiLogoAws.js.map +1 -0
- package/dist/icons/components/UiLogoAzure.cjs +29 -0
- package/dist/icons/components/UiLogoAzure.cjs.map +1 -0
- package/dist/icons/components/UiLogoAzure.d.ts +9 -0
- package/dist/icons/components/UiLogoAzure.d.ts.map +1 -0
- package/dist/icons/components/UiLogoAzure.js +27 -0
- package/dist/icons/components/UiLogoAzure.js.map +1 -0
- package/dist/icons/components/UiLogoAzureDevops.cjs +29 -0
- package/dist/icons/components/UiLogoAzureDevops.cjs.map +1 -0
- package/dist/icons/components/UiLogoAzureDevops.d.ts +9 -0
- package/dist/icons/components/UiLogoAzureDevops.d.ts.map +1 -0
- package/dist/icons/components/UiLogoAzureDevops.js +27 -0
- package/dist/icons/components/UiLogoAzureDevops.js.map +1 -0
- package/dist/icons/components/UiLogoGit.cjs +29 -0
- package/dist/icons/components/UiLogoGit.cjs.map +1 -0
- package/dist/icons/components/UiLogoGit.d.ts +9 -0
- package/dist/icons/components/UiLogoGit.d.ts.map +1 -0
- package/dist/icons/components/UiLogoGit.js +27 -0
- package/dist/icons/components/UiLogoGit.js.map +1 -0
- package/dist/icons/components/UiLogoGithub.cjs +29 -0
- package/dist/icons/components/UiLogoGithub.cjs.map +1 -0
- package/dist/icons/components/UiLogoGithub.d.ts +9 -0
- package/dist/icons/components/UiLogoGithub.d.ts.map +1 -0
- package/dist/icons/components/UiLogoGithub.js +27 -0
- package/dist/icons/components/UiLogoGithub.js.map +1 -0
- package/dist/icons/components/UiLogoJava.cjs +29 -0
- package/dist/icons/components/UiLogoJava.cjs.map +1 -0
- package/dist/icons/components/UiLogoJava.d.ts +9 -0
- package/dist/icons/components/UiLogoJava.d.ts.map +1 -0
- package/dist/icons/components/UiLogoJava.js +27 -0
- package/dist/icons/components/UiLogoJava.js.map +1 -0
- package/dist/icons/components/UiLogoKubernetes.cjs +29 -0
- package/dist/icons/components/UiLogoKubernetes.cjs.map +1 -0
- package/dist/icons/components/UiLogoKubernetes.d.ts +9 -0
- package/dist/icons/components/UiLogoKubernetes.d.ts.map +1 -0
- package/dist/icons/components/UiLogoKubernetes.js +27 -0
- package/dist/icons/components/UiLogoKubernetes.js.map +1 -0
- package/dist/icons/components/UiLogoMssql.cjs +29 -0
- package/dist/icons/components/UiLogoMssql.cjs.map +1 -0
- package/dist/icons/components/UiLogoMssql.d.ts +9 -0
- package/dist/icons/components/UiLogoMssql.d.ts.map +1 -0
- package/dist/icons/components/UiLogoMssql.js +27 -0
- package/dist/icons/components/UiLogoMssql.js.map +1 -0
- package/dist/icons/components/UiLogoOpenjdk.cjs +29 -0
- package/dist/icons/components/UiLogoOpenjdk.cjs.map +1 -0
- package/dist/icons/components/UiLogoOpenjdk.d.ts +9 -0
- package/dist/icons/components/UiLogoOpenjdk.d.ts.map +1 -0
- package/dist/icons/components/UiLogoOpenjdk.js +27 -0
- package/dist/icons/components/UiLogoOpenjdk.js.map +1 -0
- package/dist/icons/components/UiLogoOpensearch.cjs +29 -0
- package/dist/icons/components/UiLogoOpensearch.cjs.map +1 -0
- package/dist/icons/components/UiLogoOpensearch.d.ts +9 -0
- package/dist/icons/components/UiLogoOpensearch.d.ts.map +1 -0
- package/dist/icons/components/UiLogoOpensearch.js +27 -0
- package/dist/icons/components/UiLogoOpensearch.js.map +1 -0
- package/dist/icons/components/UiLogoOpentelemetry.cjs +29 -0
- package/dist/icons/components/UiLogoOpentelemetry.cjs.map +1 -0
- package/dist/icons/components/UiLogoOpentelemetry.d.ts +9 -0
- package/dist/icons/components/UiLogoOpentelemetry.d.ts.map +1 -0
- package/dist/icons/components/UiLogoOpentelemetry.js +27 -0
- package/dist/icons/components/UiLogoOpentelemetry.js.map +1 -0
- package/dist/icons/components/UiLogoPostgres.cjs +29 -0
- package/dist/icons/components/UiLogoPostgres.cjs.map +1 -0
- package/dist/icons/components/UiLogoPostgres.d.ts +9 -0
- package/dist/icons/components/UiLogoPostgres.d.ts.map +1 -0
- package/dist/icons/components/UiLogoPostgres.js +27 -0
- package/dist/icons/components/UiLogoPostgres.js.map +1 -0
- package/dist/icons/components/UiLogoSqlite.cjs +29 -0
- package/dist/icons/components/UiLogoSqlite.cjs.map +1 -0
- package/dist/icons/components/UiLogoSqlite.d.ts +9 -0
- package/dist/icons/components/UiLogoSqlite.d.ts.map +1 -0
- package/dist/icons/components/UiLogoSqlite.js +27 -0
- package/dist/icons/components/UiLogoSqlite.js.map +1 -0
- package/dist/icons/components/UiWebLink.cjs +40 -0
- package/dist/icons/components/UiWebLink.cjs.map +1 -0
- package/dist/icons/components/UiWebLink.d.ts +9 -0
- package/dist/icons/components/UiWebLink.d.ts.map +1 -0
- package/dist/icons/components/UiWebLink.js +38 -0
- package/dist/icons/components/UiWebLink.js.map +1 -0
- package/dist/icons/index.d.ts +16 -0
- package/dist/icons/index.d.ts.map +1 -1
- package/dist/icons/registry.cjs +32 -0
- package/dist/icons/registry.cjs.map +1 -1
- package/dist/icons/registry.d.ts.map +1 -1
- package/dist/icons/registry.js +32 -0
- package/dist/icons/registry.js.map +1 -1
- package/dist/icons.cjs +32 -0
- package/dist/icons.js +17 -1
- package/dist/index.cjs +38 -5
- package/dist/index.js +23 -7
- package/dist/jvm/classes/PatchedClassList.cjs +11 -2
- package/dist/jvm/classes/PatchedClassList.cjs.map +1 -1
- package/dist/jvm/classes/PatchedClassList.d.ts.map +1 -1
- package/dist/jvm/classes/PatchedClassList.js +11 -2
- package/dist/jvm/classes/PatchedClassList.js.map +1 -1
- package/dist/jvm/fixtures/fake-client.d.ts.map +1 -1
- package/dist/jvm/model/patches.cjs +4 -2
- package/dist/jvm/model/patches.cjs.map +1 -1
- package/dist/jvm/model/patches.d.ts +3 -1
- package/dist/jvm/model/patches.d.ts.map +1 -1
- package/dist/jvm/model/patches.js +4 -2
- package/dist/jvm/model/patches.js.map +1 -1
- package/dist/jvm/protocol/client.d.ts +7 -2
- package/dist/jvm/protocol/client.d.ts.map +1 -1
- package/dist/jvm/protocol/operation-client.cjs +30 -11
- package/dist/jvm/protocol/operation-client.cjs.map +1 -1
- package/dist/jvm/protocol/operation-client.d.ts.map +1 -1
- package/dist/jvm/protocol/operation-client.js +30 -11
- package/dist/jvm/protocol/operation-client.js.map +1 -1
- package/dist/jvm/protocol/query-keys.cjs +1 -1
- package/dist/jvm/protocol/query-keys.cjs.map +1 -1
- package/dist/jvm/protocol/query-keys.d.ts +1 -1
- package/dist/jvm/protocol/query-keys.d.ts.map +1 -1
- package/dist/jvm/protocol/query-keys.js +1 -1
- package/dist/jvm/protocol/query-keys.js.map +1 -1
- package/dist/jvm/protocol/status.cjs +38 -0
- package/dist/jvm/protocol/status.cjs.map +1 -0
- package/dist/jvm/protocol/status.d.ts +13 -0
- package/dist/jvm/protocol/status.d.ts.map +1 -0
- package/dist/jvm/protocol/status.js +38 -0
- package/dist/jvm/protocol/status.js.map +1 -0
- package/dist/jvm/protocol/types.d.ts +16 -4
- package/dist/jvm/protocol/types.d.ts.map +1 -1
- package/dist/jvm/runtime/GcSummary.cjs +7 -1
- package/dist/jvm/runtime/GcSummary.cjs.map +1 -1
- package/dist/jvm/runtime/GcSummary.d.ts.map +1 -1
- package/dist/jvm/runtime/GcSummary.js +7 -1
- package/dist/jvm/runtime/GcSummary.js.map +1 -1
- package/dist/jvm/surfaces/ClassesSurface.cjs +11 -10
- package/dist/jvm/surfaces/ClassesSurface.cjs.map +1 -1
- package/dist/jvm/surfaces/ClassesSurface.d.ts.map +1 -1
- package/dist/jvm/surfaces/ClassesSurface.js +12 -11
- package/dist/jvm/surfaces/ClassesSurface.js.map +1 -1
- package/dist/jvm/surfaces/JvmDiagnosticsWorkspace.cjs +11 -3
- package/dist/jvm/surfaces/JvmDiagnosticsWorkspace.cjs.map +1 -1
- package/dist/jvm/surfaces/JvmDiagnosticsWorkspace.d.ts +2 -0
- package/dist/jvm/surfaces/JvmDiagnosticsWorkspace.d.ts.map +1 -1
- package/dist/jvm/surfaces/JvmDiagnosticsWorkspace.js +11 -3
- package/dist/jvm/surfaces/JvmDiagnosticsWorkspace.js.map +1 -1
- package/dist/jvm/surfaces/PatchesSurface.cjs +3 -8
- package/dist/jvm/surfaces/PatchesSurface.cjs.map +1 -1
- package/dist/jvm/surfaces/PatchesSurface.d.ts +2 -1
- package/dist/jvm/surfaces/PatchesSurface.d.ts.map +1 -1
- package/dist/jvm/surfaces/PatchesSurface.js +4 -9
- package/dist/jvm/surfaces/PatchesSurface.js.map +1 -1
- package/dist/jvm/surfaces/ThreadsSurface.cjs +7 -4
- package/dist/jvm/surfaces/ThreadsSurface.cjs.map +1 -1
- package/dist/jvm/surfaces/ThreadsSurface.d.ts +4 -1
- package/dist/jvm/surfaces/ThreadsSurface.d.ts.map +1 -1
- package/dist/jvm/surfaces/ThreadsSurface.js +7 -4
- package/dist/jvm/surfaces/ThreadsSurface.js.map +1 -1
- package/dist/jvm/surfaces/jvm-context.cjs +23 -4
- package/dist/jvm/surfaces/jvm-context.cjs.map +1 -1
- package/dist/jvm/surfaces/jvm-context.d.ts +7 -0
- package/dist/jvm/surfaces/jvm-context.d.ts.map +1 -1
- package/dist/jvm/surfaces/jvm-context.js +23 -5
- package/dist/jvm/surfaces/jvm-context.js.map +1 -1
- package/dist/jvm/surfaces/use-patch-actions.cjs +2 -2
- package/dist/jvm/surfaces/use-patch-actions.cjs.map +1 -1
- package/dist/jvm/surfaces/use-patch-actions.js +2 -2
- package/dist/jvm/surfaces/use-patch-actions.js.map +1 -1
- package/dist/jvm/threads/FoldedStackTrace.cjs +3 -2
- package/dist/jvm/threads/FoldedStackTrace.cjs.map +1 -1
- package/dist/jvm/threads/FoldedStackTrace.d.ts +4 -1
- package/dist/jvm/threads/FoldedStackTrace.d.ts.map +1 -1
- package/dist/jvm/threads/FoldedStackTrace.js +3 -2
- package/dist/jvm/threads/FoldedStackTrace.js.map +1 -1
- package/dist/jvm/threads/ThreadDetail.cjs +6 -2
- package/dist/jvm/threads/ThreadDetail.cjs.map +1 -1
- package/dist/jvm/threads/ThreadDetail.d.ts +4 -1
- package/dist/jvm/threads/ThreadDetail.d.ts.map +1 -1
- package/dist/jvm/threads/ThreadDetail.js +6 -2
- package/dist/jvm/threads/ThreadDetail.js.map +1 -1
- package/dist/jvm.cjs +3 -0
- package/dist/jvm.d.ts +2 -1
- package/dist/jvm.d.ts.map +1 -1
- package/dist/jvm.js +3 -2
- package/dist/layout/AppShell.cjs.map +1 -1
- package/dist/layout/AppShell.d.ts +16 -0
- package/dist/layout/AppShell.d.ts.map +1 -1
- package/dist/layout/AppShell.js.map +1 -1
- package/dist/layout/AppShell.nav.cjs +21 -2
- package/dist/layout/AppShell.nav.cjs.map +1 -1
- package/dist/layout/AppShell.nav.js +21 -2
- package/dist/layout/AppShell.nav.js.map +1 -1
- package/dist/layout/Workspace.cjs +66 -21
- package/dist/layout/Workspace.cjs.map +1 -1
- package/dist/layout/Workspace.d.ts +6 -1
- package/dist/layout/Workspace.d.ts.map +1 -1
- package/dist/layout/Workspace.js +66 -21
- package/dist/layout/Workspace.js.map +1 -1
- package/dist/layout/Workspace.model.cjs +20 -0
- package/dist/layout/Workspace.model.cjs.map +1 -1
- package/dist/layout/Workspace.model.d.ts +17 -0
- package/dist/layout/Workspace.model.d.ts.map +1 -1
- package/dist/layout/Workspace.model.js +20 -1
- package/dist/layout/Workspace.model.js.map +1 -1
- package/dist/layout/Workspace.regions.cjs +10 -6
- package/dist/layout/Workspace.regions.cjs.map +1 -1
- package/dist/layout/Workspace.regions.d.ts +4 -1
- package/dist/layout/Workspace.regions.d.ts.map +1 -1
- package/dist/layout/Workspace.regions.js +10 -6
- package/dist/layout/Workspace.regions.js.map +1 -1
- package/dist/lib/duration.cjs +20 -0
- package/dist/lib/duration.cjs.map +1 -1
- package/dist/lib/duration.d.ts +8 -0
- package/dist/lib/duration.d.ts.map +1 -1
- package/dist/lib/duration.js +19 -1
- package/dist/lib/duration.js.map +1 -1
- package/dist/monaco/MonacoEditor.cjs +34 -30
- package/dist/monaco/MonacoEditor.cjs.map +1 -1
- package/dist/monaco/MonacoEditor.d.ts.map +1 -1
- package/dist/monaco/MonacoEditor.js +34 -30
- package/dist/monaco/MonacoEditor.js.map +1 -1
- package/dist/overlay/ConfirmDialog.cjs +5 -2
- package/dist/overlay/ConfirmDialog.cjs.map +1 -1
- package/dist/overlay/ConfirmDialog.d.ts +14 -2
- package/dist/overlay/ConfirmDialog.d.ts.map +1 -1
- package/dist/overlay/ConfirmDialog.js +5 -2
- package/dist/overlay/ConfirmDialog.js.map +1 -1
- package/dist/profiles/cel/celEditor.cjs +94 -285
- package/dist/profiles/cel/celEditor.cjs.map +1 -1
- package/dist/profiles/cel/celEditor.d.ts +10 -15
- package/dist/profiles/cel/celEditor.d.ts.map +1 -1
- package/dist/profiles/cel/celEditor.js +97 -287
- package/dist/profiles/cel/celEditor.js.map +1 -1
- package/dist/profiles/cel/celExpression.cjs +1 -61
- package/dist/profiles/cel/celExpression.cjs.map +1 -1
- package/dist/profiles/cel/celExpression.d.ts +2 -38
- package/dist/profiles/cel/celExpression.d.ts.map +1 -1
- package/dist/profiles/cel/celExpression.js +2 -58
- package/dist/profiles/cel/celExpression.js.map +1 -1
- package/dist/profiles/cel/celPlayground.cjs +122 -0
- package/dist/profiles/cel/celPlayground.cjs.map +1 -0
- package/dist/profiles/cel/celPlayground.d.ts +43 -0
- package/dist/profiles/cel/celPlayground.d.ts.map +1 -0
- package/dist/profiles/cel/celPlayground.js +118 -0
- package/dist/profiles/cel/celPlayground.js.map +1 -0
- package/dist/profiles/connections/connectionBrowserModel.cjs +2 -2
- package/dist/profiles/connections/connectionBrowserModel.cjs.map +1 -1
- package/dist/profiles/connections/connectionBrowserModel.d.ts +5 -1
- package/dist/profiles/connections/connectionBrowserModel.d.ts.map +1 -1
- package/dist/profiles/connections/connectionBrowserModel.js +2 -2
- package/dist/profiles/connections/connectionBrowserModel.js.map +1 -1
- package/dist/profiles/connections/connectionQueryWorkspace.cjs +2 -1
- package/dist/profiles/connections/connectionQueryWorkspace.cjs.map +1 -1
- package/dist/profiles/connections/connectionQueryWorkspace.d.ts +3 -1
- package/dist/profiles/connections/connectionQueryWorkspace.d.ts.map +1 -1
- package/dist/profiles/connections/connectionQueryWorkspace.js +2 -1
- package/dist/profiles/connections/connectionQueryWorkspace.js.map +1 -1
- package/dist/profiles/editor/UnwrapPreviewList.cjs +90 -0
- package/dist/profiles/editor/UnwrapPreviewList.cjs.map +1 -0
- package/dist/profiles/editor/UnwrapPreviewList.d.ts +7 -0
- package/dist/profiles/editor/UnwrapPreviewList.d.ts.map +1 -0
- package/dist/profiles/editor/UnwrapPreviewList.js +90 -0
- package/dist/profiles/editor/UnwrapPreviewList.js.map +1 -0
- package/dist/profiles/editor/profileCanonicalQuery.cjs +6 -58
- package/dist/profiles/editor/profileCanonicalQuery.cjs.map +1 -1
- package/dist/profiles/editor/profileCanonicalQuery.d.ts +1 -1
- package/dist/profiles/editor/profileCanonicalQuery.d.ts.map +1 -1
- package/dist/profiles/editor/profileCanonicalQuery.js +4 -56
- package/dist/profiles/editor/profileCanonicalQuery.js.map +1 -1
- package/dist/profiles/editor/profileCanonicalTranslate.cjs +48 -0
- package/dist/profiles/editor/profileCanonicalTranslate.cjs.map +1 -0
- package/dist/profiles/editor/profileCanonicalTranslate.d.ts +24 -0
- package/dist/profiles/editor/profileCanonicalTranslate.d.ts.map +1 -0
- package/dist/profiles/editor/profileCanonicalTranslate.js +47 -0
- package/dist/profiles/editor/profileCanonicalTranslate.js.map +1 -0
- package/dist/profiles/editor/profileEditor.cjs +126 -38
- package/dist/profiles/editor/profileEditor.cjs.map +1 -1
- package/dist/profiles/editor/profileEditor.d.ts +5 -1
- package/dist/profiles/editor/profileEditor.d.ts.map +1 -1
- package/dist/profiles/editor/profileEditor.js +127 -39
- package/dist/profiles/editor/profileEditor.js.map +1 -1
- package/dist/profiles/editor/profileEditorModel.cjs +65 -19
- package/dist/profiles/editor/profileEditorModel.cjs.map +1 -1
- package/dist/profiles/editor/profileEditorModel.d.ts +24 -8
- package/dist/profiles/editor/profileEditorModel.d.ts.map +1 -1
- package/dist/profiles/editor/profileEditorModel.js +64 -18
- package/dist/profiles/editor/profileEditorModel.js.map +1 -1
- package/dist/profiles/editor/profileEditorPreview.cjs +129 -29
- package/dist/profiles/editor/profileEditorPreview.cjs.map +1 -1
- package/dist/profiles/editor/profileEditorPreview.d.ts +18 -5
- package/dist/profiles/editor/profileEditorPreview.d.ts.map +1 -1
- package/dist/profiles/editor/profileEditorPreview.js +129 -29
- package/dist/profiles/editor/profileEditorPreview.js.map +1 -1
- package/dist/profiles/editor/profileEditorSections.cjs +137 -88
- package/dist/profiles/editor/profileEditorSections.cjs.map +1 -1
- package/dist/profiles/editor/profileEditorSections.d.ts +18 -2
- package/dist/profiles/editor/profileEditorSections.d.ts.map +1 -1
- package/dist/profiles/editor/profileEditorSections.js +138 -90
- package/dist/profiles/editor/profileEditorSections.js.map +1 -1
- package/dist/profiles/editor/profileMappingPreview.cjs +22 -6
- package/dist/profiles/editor/profileMappingPreview.cjs.map +1 -1
- package/dist/profiles/editor/profileMappingPreview.d.ts +17 -1
- package/dist/profiles/editor/profileMappingPreview.d.ts.map +1 -1
- package/dist/profiles/editor/profileMappingPreview.js +23 -7
- package/dist/profiles/editor/profileMappingPreview.js.map +1 -1
- package/dist/profiles/editor/profileSaveAsDialog.cjs +93 -0
- package/dist/profiles/editor/profileSaveAsDialog.cjs.map +1 -0
- package/dist/profiles/editor/profileSaveAsDialog.d.ts +17 -0
- package/dist/profiles/editor/profileSaveAsDialog.d.ts.map +1 -0
- package/dist/profiles/editor/profileSaveAsDialog.js +93 -0
- package/dist/profiles/editor/profileSaveAsDialog.js.map +1 -0
- package/dist/profiles/editor/profileSourceExtensions.cjs +71 -0
- package/dist/profiles/editor/profileSourceExtensions.cjs.map +1 -0
- package/dist/profiles/editor/profileSourceExtensions.d.ts +26 -0
- package/dist/profiles/editor/profileSourceExtensions.d.ts.map +1 -0
- package/dist/profiles/editor/profileSourceExtensions.js +70 -0
- package/dist/profiles/editor/profileSourceExtensions.js.map +1 -0
- package/dist/profiles/editor/samplePaths.cjs +54 -0
- package/dist/profiles/editor/samplePaths.cjs.map +1 -0
- package/dist/profiles/editor/samplePaths.d.ts +27 -0
- package/dist/profiles/editor/samplePaths.d.ts.map +1 -0
- package/dist/profiles/editor/samplePaths.js +53 -0
- package/dist/profiles/editor/samplePaths.js.map +1 -0
- package/dist/profiles/editor/testSchema.d.ts.map +1 -1
- package/dist/profiles/editor/useUnwrapPreviews.cjs +60 -0
- package/dist/profiles/editor/useUnwrapPreviews.cjs.map +1 -0
- package/dist/profiles/editor/useUnwrapPreviews.d.ts +38 -0
- package/dist/profiles/editor/useUnwrapPreviews.d.ts.map +1 -0
- package/dist/profiles/editor/useUnwrapPreviews.js +60 -0
- package/dist/profiles/editor/useUnwrapPreviews.js.map +1 -0
- package/dist/profiles/elasticsearch/esQueryBuilder.cjs +10 -1
- package/dist/profiles/elasticsearch/esQueryBuilder.cjs.map +1 -1
- package/dist/profiles/elasticsearch/esQueryBuilder.d.ts.map +1 -1
- package/dist/profiles/elasticsearch/esQueryBuilder.js +11 -2
- package/dist/profiles/elasticsearch/esQueryBuilder.js.map +1 -1
- package/dist/profiles/elasticsearch/esQueryBuilderForm.cjs +38 -0
- package/dist/profiles/elasticsearch/esQueryBuilderForm.cjs.map +1 -1
- package/dist/profiles/elasticsearch/esQueryBuilderForm.d.ts +17 -0
- package/dist/profiles/elasticsearch/esQueryBuilderForm.d.ts.map +1 -1
- package/dist/profiles/elasticsearch/esQueryBuilderForm.js +37 -1
- package/dist/profiles/elasticsearch/esQueryBuilderForm.js.map +1 -1
- package/dist/profiles/elasticsearch/esQueryConditionRow.cjs +4 -3
- package/dist/profiles/elasticsearch/esQueryConditionRow.cjs.map +1 -1
- package/dist/profiles/elasticsearch/esQueryConditionRow.d.ts.map +1 -1
- package/dist/profiles/elasticsearch/esQueryConditionRow.js +4 -3
- package/dist/profiles/elasticsearch/esQueryConditionRow.js.map +1 -1
- package/dist/profiles/elasticsearch/esQueryOperators.cjs.map +1 -1
- package/dist/profiles/elasticsearch/esQueryOperators.d.ts +8 -0
- package/dist/profiles/elasticsearch/esQueryOperators.d.ts.map +1 -1
- package/dist/profiles/elasticsearch/esQueryOperators.js.map +1 -1
- package/dist/profiles/fields/profileFieldControls.cjs +3 -2
- package/dist/profiles/fields/profileFieldControls.cjs.map +1 -1
- package/dist/profiles/fields/profileFieldControls.d.ts +3 -1
- package/dist/profiles/fields/profileFieldControls.d.ts.map +1 -1
- package/dist/profiles/fields/profileFieldControls.js +3 -2
- package/dist/profiles/fields/profileFieldControls.js.map +1 -1
- package/dist/profiles/fields/profileFieldEditor.cjs +98 -185
- package/dist/profiles/fields/profileFieldEditor.cjs.map +1 -1
- package/dist/profiles/fields/profileFieldEditor.d.ts +11 -3
- package/dist/profiles/fields/profileFieldEditor.d.ts.map +1 -1
- package/dist/profiles/fields/profileFieldEditor.js +99 -186
- package/dist/profiles/fields/profileFieldEditor.js.map +1 -1
- package/dist/profiles/fields/profileFieldFilterEditor.cjs +115 -81
- package/dist/profiles/fields/profileFieldFilterEditor.cjs.map +1 -1
- package/dist/profiles/fields/profileFieldFilterEditor.d.ts.map +1 -1
- package/dist/profiles/fields/profileFieldFilterEditor.js +116 -82
- package/dist/profiles/fields/profileFieldFilterEditor.js.map +1 -1
- package/dist/profiles/fields/profileFieldIcons.cjs +2 -0
- package/dist/profiles/fields/profileFieldIcons.cjs.map +1 -1
- package/dist/profiles/fields/profileFieldIcons.d.ts.map +1 -1
- package/dist/profiles/fields/profileFieldIcons.js +2 -0
- package/dist/profiles/fields/profileFieldIcons.js.map +1 -1
- package/dist/profiles/fields/profileFieldList.cjs +23 -1
- package/dist/profiles/fields/profileFieldList.cjs.map +1 -1
- package/dist/profiles/fields/profileFieldList.d.ts.map +1 -1
- package/dist/profiles/fields/profileFieldList.js +23 -1
- package/dist/profiles/fields/profileFieldList.js.map +1 -1
- package/dist/profiles/fields/profileFieldPreview.cjs +111 -0
- package/dist/profiles/fields/profileFieldPreview.cjs.map +1 -0
- package/dist/profiles/fields/profileFieldPreview.d.ts +25 -0
- package/dist/profiles/fields/profileFieldPreview.d.ts.map +1 -0
- package/dist/profiles/fields/profileFieldPreview.js +110 -0
- package/dist/profiles/fields/profileFieldPreview.js.map +1 -0
- package/dist/profiles/fields/profileFieldSample.cjs +182 -0
- package/dist/profiles/fields/profileFieldSample.cjs.map +1 -0
- package/dist/profiles/fields/profileFieldSample.d.ts +35 -0
- package/dist/profiles/fields/profileFieldSample.d.ts.map +1 -0
- package/dist/profiles/fields/profileFieldSample.js +180 -0
- package/dist/profiles/fields/profileFieldSample.js.map +1 -0
- package/dist/profiles/fields/profileFieldTypeField.cjs +104 -0
- package/dist/profiles/fields/profileFieldTypeField.cjs.map +1 -0
- package/dist/profiles/fields/profileFieldTypeField.d.ts +17 -0
- package/dist/profiles/fields/profileFieldTypeField.d.ts.map +1 -0
- package/dist/profiles/fields/profileFieldTypeField.js +104 -0
- package/dist/profiles/fields/profileFieldTypeField.js.map +1 -0
- package/dist/profiles/fields/profileFieldTypes.cjs +1 -0
- package/dist/profiles/fields/profileFieldTypes.cjs.map +1 -1
- package/dist/profiles/fields/profileFieldTypes.d.ts +1 -1
- package/dist/profiles/fields/profileFieldTypes.d.ts.map +1 -1
- package/dist/profiles/fields/profileFieldTypes.js +1 -0
- package/dist/profiles/fields/profileFieldTypes.js.map +1 -1
- package/dist/profiles/fields/profileFieldValueEditor.cjs +298 -0
- package/dist/profiles/fields/profileFieldValueEditor.cjs.map +1 -0
- package/dist/profiles/fields/profileFieldValueEditor.d.ts +18 -0
- package/dist/profiles/fields/profileFieldValueEditor.d.ts.map +1 -0
- package/dist/profiles/fields/profileFieldValueEditor.js +298 -0
- package/dist/profiles/fields/profileFieldValueEditor.js.map +1 -0
- package/dist/profiles/fields/profileFieldValueMode.cjs +61 -0
- package/dist/profiles/fields/profileFieldValueMode.cjs.map +1 -0
- package/dist/profiles/fields/profileFieldValueMode.d.ts +34 -0
- package/dist/profiles/fields/profileFieldValueMode.d.ts.map +1 -0
- package/dist/profiles/fields/profileFieldValueMode.js +59 -0
- package/dist/profiles/fields/profileFieldValueMode.js.map +1 -0
- package/dist/profiles/processor/processorConfig.cjs +79 -79
- package/dist/profiles/processor/processorConfig.cjs.map +1 -1
- package/dist/profiles/processor/processorConfig.d.ts +30 -3
- package/dist/profiles/processor/processorConfig.d.ts.map +1 -1
- package/dist/profiles/processor/processorConfig.js +78 -78
- package/dist/profiles/processor/processorConfig.js.map +1 -1
- package/dist/profiles/processor/processorPipeline.cjs +24 -8
- package/dist/profiles/processor/processorPipeline.cjs.map +1 -1
- package/dist/profiles/processor/processorPipeline.d.ts +3 -3
- package/dist/profiles/processor/processorPipeline.d.ts.map +1 -1
- package/dist/profiles/processor/processorPipeline.js +25 -9
- package/dist/profiles/processor/processorPipeline.js.map +1 -1
- package/dist/profiles/processor/processorPipelineEditor.cjs +38 -94
- package/dist/profiles/processor/processorPipelineEditor.cjs.map +1 -1
- package/dist/profiles/processor/processorPipelineEditor.d.ts +3 -3
- package/dist/profiles/processor/processorPipelineEditor.d.ts.map +1 -1
- package/dist/profiles/processor/processorPipelineEditor.js +39 -95
- package/dist/profiles/processor/processorPipelineEditor.js.map +1 -1
- package/dist/profiles/processor/processorPipelineExtension.cjs +3 -2
- package/dist/profiles/processor/processorPipelineExtension.cjs.map +1 -1
- package/dist/profiles/processor/processorPipelineExtension.d.ts.map +1 -1
- package/dist/profiles/processor/processorPipelineExtension.js +3 -2
- package/dist/profiles/processor/processorPipelineExtension.js.map +1 -1
- package/dist/profiles/query/profileSampleFilterLookup.cjs.map +1 -1
- package/dist/profiles/query/profileSampleFilterLookup.d.ts +6 -3
- package/dist/profiles/query/profileSampleFilterLookup.d.ts.map +1 -1
- package/dist/profiles/query/profileSampleFilterLookup.js.map +1 -1
- package/dist/profiles/wizard/profileWizardModel.cjs +10 -1
- package/dist/profiles/wizard/profileWizardModel.cjs.map +1 -1
- package/dist/profiles/wizard/profileWizardModel.d.ts +6 -0
- package/dist/profiles/wizard/profileWizardModel.d.ts.map +1 -1
- package/dist/profiles/wizard/profileWizardModel.js +10 -1
- package/dist/profiles/wizard/profileWizardModel.js.map +1 -1
- package/dist/profiles/wizard/profileWizardQueryStep.cjs +10 -22
- package/dist/profiles/wizard/profileWizardQueryStep.cjs.map +1 -1
- package/dist/profiles/wizard/profileWizardQueryStep.d.ts +8 -1
- package/dist/profiles/wizard/profileWizardQueryStep.d.ts.map +1 -1
- package/dist/profiles/wizard/profileWizardQueryStep.js +11 -23
- package/dist/profiles/wizard/profileWizardQueryStep.js.map +1 -1
- package/dist/profiles/wizard/useProfileInspection.cjs +39 -0
- package/dist/profiles/wizard/useProfileInspection.cjs.map +1 -0
- package/dist/profiles/wizard/useProfileInspection.d.ts +21 -0
- package/dist/profiles/wizard/useProfileInspection.d.ts.map +1 -0
- package/dist/profiles/wizard/useProfileInspection.js +39 -0
- package/dist/profiles/wizard/useProfileInspection.js.map +1 -0
- package/dist/profiles.cjs +9 -11
- package/dist/profiles.js +8 -8
- package/dist/rpc/EntityExplorerApp.cjs +7 -3
- package/dist/rpc/EntityExplorerApp.cjs.map +1 -1
- package/dist/rpc/EntityExplorerApp.d.ts +16 -1
- package/dist/rpc/EntityExplorerApp.d.ts.map +1 -1
- package/dist/rpc/EntityExplorerApp.js +7 -3
- package/dist/rpc/EntityExplorerApp.js.map +1 -1
- package/dist/rpc/InlineError.cjs +30 -10
- package/dist/rpc/InlineError.cjs.map +1 -1
- package/dist/rpc/InlineError.d.ts +10 -1
- package/dist/rpc/InlineError.d.ts.map +1 -1
- package/dist/rpc/InlineError.js +30 -10
- package/dist/rpc/InlineError.js.map +1 -1
- package/dist/rpc/SchemaActionForm.cjs +9 -6
- package/dist/rpc/SchemaActionForm.cjs.map +1 -1
- package/dist/rpc/SchemaActionForm.d.ts.map +1 -1
- package/dist/rpc/SchemaActionForm.js +9 -6
- package/dist/rpc/SchemaActionForm.js.map +1 -1
- package/dist/rpc/SessionHeader.cjs +117 -111
- package/dist/rpc/SessionHeader.cjs.map +1 -1
- package/dist/rpc/SessionHeader.d.ts +3 -1
- package/dist/rpc/SessionHeader.d.ts.map +1 -1
- package/dist/rpc/SessionHeader.js +117 -111
- package/dist/rpc/SessionHeader.js.map +1 -1
- package/dist/rpc/formMetadata.cjs +2 -6
- package/dist/rpc/formMetadata.cjs.map +1 -1
- package/dist/rpc/formMetadata.d.ts.map +1 -1
- package/dist/rpc/formMetadata.js +1 -5
- package/dist/rpc/formMetadata.js.map +1 -1
- package/dist/rpc/surfaceNav.cjs +5 -0
- package/dist/rpc/surfaceNav.cjs.map +1 -1
- package/dist/rpc/surfaceNav.d.ts.map +1 -1
- package/dist/rpc/surfaceNav.js +5 -0
- package/dist/rpc/surfaceNav.js.map +1 -1
- package/dist/runtime/barrels.json +8944 -8877
- package/dist/runtime/importmap.json +2168 -2129
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/dist/data/ai/runtime-profiles/ResolutionInspector.cjs +0 -91
- package/dist/data/ai/runtime-profiles/ResolutionInspector.cjs.map +0 -1
- package/dist/data/ai/runtime-profiles/ResolutionInspector.d.ts +0 -7
- package/dist/data/ai/runtime-profiles/ResolutionInspector.d.ts.map +0 -1
- package/dist/data/ai/runtime-profiles/ResolutionInspector.js +0 -91
- package/dist/data/ai/runtime-profiles/ResolutionInspector.js.map +0 -1
- package/dist/profiles/cel/celEditorResults.cjs +0 -158
- package/dist/profiles/cel/celEditorResults.cjs.map +0 -1
- package/dist/profiles/cel/celEditorResults.d.ts +0 -37
- package/dist/profiles/cel/celEditorResults.d.ts.map +0 -1
- package/dist/profiles/cel/celEditorResults.js +0 -156
- package/dist/profiles/cel/celEditorResults.js.map +0 -1
|
@@ -1,11 +1,27 @@
|
|
|
1
1
|
import { JsonSchemaObject, FormLayout, LookupFetcher, PostExtension, PreExtension } from '../../components/json-schema-form-types.js';
|
|
2
|
+
import { QueryBrowserCompletionField } from '../../data/query-browser/QueryBrowser.completion.js';
|
|
2
3
|
import { ProfileSample } from '../wizard/profileWizardQueryStep.js';
|
|
3
4
|
import { ProfileColumn, ProfileWizardDraft } from '../wizard/profileWizardModel.js';
|
|
4
5
|
export declare function ProfileGeneralSection({ draft, onChange }: EditorSectionProps): import("react").JSX.Element;
|
|
5
|
-
|
|
6
|
+
/**
|
|
7
|
+
* The Source card: provider type, saved connection and the options describing
|
|
8
|
+
* the documents the provider reads. One flat form, so the labels share a grid.
|
|
9
|
+
* It sits in General — which provider a profile reads is part of what it is —
|
|
10
|
+
* ahead of the options that shape its output.
|
|
11
|
+
*/
|
|
12
|
+
export declare function ProfileSourceCard({ draft, lookupFetcher, indexFields, sampleRows, onChange, }: EditorSectionProps & {
|
|
13
|
+
lookupFetcher?: LookupFetcher;
|
|
14
|
+
/** The index's mapped fields (with types), empty until a connection and index are chosen. */
|
|
15
|
+
indexFields: QueryBrowserCompletionField[];
|
|
16
|
+
/** The documents the latest sample read, for the field pickers and previews. */
|
|
17
|
+
sampleRows: Record<string, unknown>[];
|
|
18
|
+
}): import("react").JSX.Element;
|
|
19
|
+
/** What remains of Source & Query once the source moved to General: the query workspace, canonical conditions and the sample. */
|
|
20
|
+
export declare function ProfileQuerySection({ draft, discovered, sampleStale, runSlot, onChange, onSample, }: EditorSectionProps & {
|
|
6
21
|
discovered: ProfileColumn[];
|
|
7
22
|
sampleStale: boolean;
|
|
8
|
-
|
|
23
|
+
/** Where the query workspace renders Run; see QueryBrowserProps.runSlot. */
|
|
24
|
+
runSlot?: HTMLElement | null | undefined;
|
|
9
25
|
onSample: (sample: ProfileSample) => void;
|
|
10
26
|
}): import("react").JSX.Element;
|
|
11
27
|
export declare function ProfileSchemaSection({ schema, draft, keys, title, description, idPrefix, layout, lookupFetcher, pre, post, onChange, }: EditorSectionProps & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profileEditorSections.d.ts","sourceRoot":"","sources":["../../../src/profiles/editor/profileEditorSections.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"profileEditorSections.d.ts","sourceRoot":"","sources":["../../../src/profiles/editor/profileEditorSections.tsx"],"names":[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G,EACH,IAAI,EACJ,QAAQ,GACT,EAAE,kBAAkB,GAAG;IACtB,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IAGjB,MAAM,CAAC,EAAE,UAAU,CAAC;IAIpB,aAAa,CAAC,EAAE,aAAa,CAAC;IAI9B,GAAG,CAAC,EAAE,YAAY,EAAE,CAAC;IACrB,IAAI,CAAC,EAAE,aAAa,EAAE,CAAC;CACxB,+BA8BA;AAqCD,KAAK,kBAAkB,GAAG;IACxB,KAAK,EAAE,kBAAkB,CAAC;IAC1B,QAAQ,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI,CAAC;CAC/C,CAAC"}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { JsonSchemaForm } from "../../components/JsonSchemaForm.js";
|
|
2
2
|
import { ProfileCanonicalQuery } from "./profileCanonicalQuery.js";
|
|
3
|
+
import { convertToCanonical } from "./profileCanonicalTranslate.js";
|
|
4
|
+
import { sourceFieldNames, unwrapPreviews } from "./profileSourceExtensions.js";
|
|
3
5
|
import { Icon } from "../../data/Icon.js";
|
|
4
|
-
import { mergeProfileProjection, profileSchemaProjection,
|
|
6
|
+
import { applyProviderSourceEdit, mergeProfileProjection, profileSchemaProjection, providerOptionsSchema, providerSourceSchema } from "./profileEditorModel.js";
|
|
5
7
|
import { profileFormExtensions } from "../profileApi.js";
|
|
6
8
|
import { ProfileWizardQueryStep } from "../wizard/profileWizardQueryStep.js";
|
|
7
9
|
import { profileConnectionID } from "../wizard/profileWizardModel.js";
|
|
8
|
-
import {
|
|
10
|
+
import { useState } from "react";
|
|
11
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
9
12
|
// src/profiles/editor/profileEditorSections.tsx
|
|
10
13
|
var inputClassName = "w-full rounded-md border border-input bg-background px-3 py-2 text-sm outline-none focus:border-primary focus:ring-2 focus:ring-primary/15";
|
|
11
14
|
function ProfileGeneralSection({ draft, onChange }) {
|
|
@@ -90,84 +93,106 @@ function ProfileGeneralSection({ draft, onChange }) {
|
|
|
90
93
|
})
|
|
91
94
|
});
|
|
92
95
|
}
|
|
93
|
-
|
|
94
|
-
|
|
96
|
+
/**
|
|
97
|
+
* The Source card: provider type, saved connection and the options describing
|
|
98
|
+
* the documents the provider reads. One flat form, so the labels share a grid.
|
|
99
|
+
* It sits in General — which provider a profile reads is part of what it is —
|
|
100
|
+
* ahead of the options that shape its output.
|
|
101
|
+
*/
|
|
102
|
+
function ProfileSourceCard({ draft, lookupFetcher, indexFields, sampleRows, onChange }) {
|
|
95
103
|
const providerType = draft.provider?.type ?? "";
|
|
96
104
|
const inlineConnectionSchema = providerOptionsSchema(providerType, "connection");
|
|
105
|
+
const inlineKeys = Object.keys(inlineConnectionSchema.properties ?? {});
|
|
106
|
+
const configured = profileFormExtensions();
|
|
107
|
+
const sourceExtensions = draftRootedExtensions({
|
|
108
|
+
draft,
|
|
109
|
+
onChange,
|
|
110
|
+
locate: (path) => path === "/type" || path === "/connection" ? `/provider${path}` : `/provider/options${path}`,
|
|
111
|
+
pre: [...configured.pre, sourceFieldNames({
|
|
112
|
+
indexFields,
|
|
113
|
+
rows: sampleRows
|
|
114
|
+
})],
|
|
115
|
+
post: [...configured.post, unwrapPreviews(draft)]
|
|
116
|
+
});
|
|
117
|
+
return /* @__PURE__ */ jsxs(SectionCard, {
|
|
118
|
+
title: "Source",
|
|
119
|
+
description: "Select the provider and saved connection. Connection credentials remain server-side.",
|
|
120
|
+
children: [/* @__PURE__ */ jsx(JsonSchemaForm, {
|
|
121
|
+
idPrefix: "profile-source",
|
|
122
|
+
inline: true,
|
|
123
|
+
schema: providerSourceSchema(inlineConnectionSchema),
|
|
124
|
+
value: {
|
|
125
|
+
...Object.fromEntries(inlineKeys.flatMap((key) => draft.provider?.options && key in draft.provider.options ? [[key, draft.provider.options[key]]] : [])),
|
|
126
|
+
type: providerType,
|
|
127
|
+
connection: draft.provider?.connection ?? "",
|
|
128
|
+
provider: draft.provider ?? {}
|
|
129
|
+
},
|
|
130
|
+
onChange: (next) => onChange(applyProviderSourceEdit({
|
|
131
|
+
draft,
|
|
132
|
+
next,
|
|
133
|
+
inlineKeys
|
|
134
|
+
})),
|
|
135
|
+
showPreferencesMenu: false,
|
|
136
|
+
pre: sourceExtensions.pre,
|
|
137
|
+
post: sourceExtensions.post,
|
|
138
|
+
...lookupFetcher ? { lookupFetcher } : {}
|
|
139
|
+
}), providerType === "opensearch" || providerType === "opentelemetry" ? /* @__PURE__ */ jsx(CanonicalConditionsHelp, {
|
|
140
|
+
draft,
|
|
141
|
+
onChange
|
|
142
|
+
}) : null]
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Help under the source's field mappings: what canonical conditions are, and the
|
|
147
|
+
* action that switches the profile to them. It is the only place the action
|
|
148
|
+
* lives, so it keeps the behaviour the standalone card's button had.
|
|
149
|
+
*/
|
|
150
|
+
function CanonicalConditionsHelp({ draft, onChange }) {
|
|
151
|
+
const [busy, setBusy] = useState(false);
|
|
152
|
+
const [error, setError] = useState("");
|
|
153
|
+
const convert = async () => {
|
|
154
|
+
setBusy(true);
|
|
155
|
+
setError("");
|
|
156
|
+
try {
|
|
157
|
+
onChange(await convertToCanonical(draft));
|
|
158
|
+
} catch (failure) {
|
|
159
|
+
setError(String(failure));
|
|
160
|
+
} finally {
|
|
161
|
+
setBusy(false);
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
165
|
+
className: "mt-4 space-y-1.5 border-t pt-3 text-xs text-muted-foreground",
|
|
166
|
+
children: [/* @__PURE__ */ jsxs("p", { children: ["Conditions written against canonical fields (trace_id, service, …) stay with the profile; each connection resolves them to its own index fields and units.", draft.search ? /* @__PURE__ */ jsx(Fragment$1, { children: " This profile uses canonical conditions." }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [" ", /* @__PURE__ */ jsx("button", {
|
|
167
|
+
type: "button",
|
|
168
|
+
disabled: busy,
|
|
169
|
+
className: "font-medium text-primary underline-offset-2 hover:underline disabled:opacity-50",
|
|
170
|
+
onClick: () => void convert(),
|
|
171
|
+
children: busy ? "Resolving layout…" : "Use canonical conditions"
|
|
172
|
+
})] })] }), error ? /* @__PURE__ */ jsx("p", {
|
|
173
|
+
role: "alert",
|
|
174
|
+
className: "text-destructive",
|
|
175
|
+
children: error
|
|
176
|
+
}) : null]
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
/** What remains of Source & Query once the source moved to General: the query workspace, canonical conditions and the sample. */
|
|
180
|
+
function ProfileQuerySection({ draft, discovered, sampleStale, runSlot, onChange, onSample }) {
|
|
181
|
+
const connectionID = profileConnectionID(draft.provider?.connection ?? "");
|
|
182
|
+
const providerType = draft.provider?.type ?? "";
|
|
183
|
+
const optionExtensions = draftRootedExtensions({
|
|
184
|
+
draft,
|
|
185
|
+
onChange,
|
|
186
|
+
locate: (path) => `/provider/options${path}`,
|
|
187
|
+
...profileFormExtensions()
|
|
188
|
+
});
|
|
97
189
|
return /* @__PURE__ */ jsxs("div", {
|
|
98
190
|
className: "grid h-full min-h-0 min-w-0 grid-cols-1 gap-4",
|
|
99
191
|
children: [
|
|
100
|
-
/* @__PURE__ */
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
className: "grid items-start gap-4 @xl:grid-cols-2",
|
|
105
|
-
children: [/* @__PURE__ */ jsx(EditorField, {
|
|
106
|
-
label: "Provider type",
|
|
107
|
-
required: true,
|
|
108
|
-
children: /* @__PURE__ */ jsxs("select", {
|
|
109
|
-
value: providerType,
|
|
110
|
-
className: inputClassName,
|
|
111
|
-
onChange: (event) => onChange({
|
|
112
|
-
...draft,
|
|
113
|
-
provider: {
|
|
114
|
-
...draft.provider,
|
|
115
|
-
type: event.target.value
|
|
116
|
-
}
|
|
117
|
-
}),
|
|
118
|
-
children: [/* @__PURE__ */ jsx("option", {
|
|
119
|
-
value: "",
|
|
120
|
-
children: "Choose a provider"
|
|
121
|
-
}), providerTypes().map((type) => /* @__PURE__ */ jsx("option", {
|
|
122
|
-
value: type,
|
|
123
|
-
children: type
|
|
124
|
-
}, type))]
|
|
125
|
-
})
|
|
126
|
-
}), /* @__PURE__ */ jsxs("div", {
|
|
127
|
-
className: "min-w-0 space-y-3",
|
|
128
|
-
children: [/* @__PURE__ */ jsx(JsonSchemaForm, {
|
|
129
|
-
idPrefix: "profile-source-connection",
|
|
130
|
-
schema: providerConnectionSchema(),
|
|
131
|
-
value: {
|
|
132
|
-
connection: draft.provider?.connection ?? "",
|
|
133
|
-
provider: draft.provider ?? {}
|
|
134
|
-
},
|
|
135
|
-
onChange: (next) => {
|
|
136
|
-
if (typeof next.connection !== "string") throw new Error("provider.connection must be a string");
|
|
137
|
-
onChange({
|
|
138
|
-
...draft,
|
|
139
|
-
provider: {
|
|
140
|
-
...draft.provider,
|
|
141
|
-
connection: next.connection
|
|
142
|
-
}
|
|
143
|
-
});
|
|
144
|
-
},
|
|
145
|
-
showPreferencesMenu: false,
|
|
146
|
-
...lookupFetcher ? { lookupFetcher } : {}
|
|
147
|
-
}), Object.keys(inlineConnectionSchema.properties ?? {}).length > 0 ? /* @__PURE__ */ jsx(JsonSchemaForm, {
|
|
148
|
-
idPrefix: "profile-source-inline-connection",
|
|
149
|
-
schema: inlineConnectionSchema,
|
|
150
|
-
value: draft.provider?.options ?? {},
|
|
151
|
-
onChange: (inline) => onChange({
|
|
152
|
-
...draft,
|
|
153
|
-
provider: {
|
|
154
|
-
...draft.provider,
|
|
155
|
-
options: {
|
|
156
|
-
...draft.provider?.options,
|
|
157
|
-
...inline
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
}),
|
|
161
|
-
showPreferencesMenu: false,
|
|
162
|
-
pre: profileFormExtensions().pre,
|
|
163
|
-
post: profileFormExtensions().post
|
|
164
|
-
}) : null]
|
|
165
|
-
})]
|
|
166
|
-
}), sampleStale ? /* @__PURE__ */ jsx("p", {
|
|
167
|
-
className: "mt-4 rounded-lg border border-warning/40 bg-warning/10 px-4 py-3 text-sm text-warning-foreground",
|
|
168
|
-
children: "Source or query settings changed after the latest sample. You can save, but sampling again will verify the current field shape."
|
|
169
|
-
}) : null]
|
|
170
|
-
}),
|
|
192
|
+
sampleStale ? /* @__PURE__ */ jsx("p", {
|
|
193
|
+
className: "rounded-lg border border-warning/40 bg-warning/10 px-4 py-3 text-sm text-warning-foreground",
|
|
194
|
+
children: "Source or query settings changed after the latest sample. You can save, but sampling again will verify the current field shape."
|
|
195
|
+
}) : null,
|
|
171
196
|
providerType === "opensearch" || providerType === "opentelemetry" ? /* @__PURE__ */ jsx(ProfileCanonicalQuery, {
|
|
172
197
|
draft,
|
|
173
198
|
onChange,
|
|
@@ -177,6 +202,8 @@ function ProfileSourceSection({ draft, discovered, sampleStale, lookupFetcher, o
|
|
|
177
202
|
connectionID,
|
|
178
203
|
draft,
|
|
179
204
|
discovered,
|
|
205
|
+
runSlot,
|
|
206
|
+
omitOptions: Object.keys(providerOptionsSchema(providerType, "connection").properties ?? {}),
|
|
180
207
|
onDraftChange: onChange,
|
|
181
208
|
onSample
|
|
182
209
|
}, connectionID) : /* @__PURE__ */ jsxs(SectionCard, {
|
|
@@ -207,8 +234,8 @@ function ProfileSourceSection({ draft, discovered, sampleStale, lookupFetcher, o
|
|
|
207
234
|
}
|
|
208
235
|
}),
|
|
209
236
|
showPreferencesMenu: false,
|
|
210
|
-
pre:
|
|
211
|
-
post:
|
|
237
|
+
pre: optionExtensions.pre,
|
|
238
|
+
post: optionExtensions.post
|
|
212
239
|
})
|
|
213
240
|
})]
|
|
214
241
|
})
|
|
@@ -217,16 +244,13 @@ function ProfileSourceSection({ draft, discovered, sampleStale, lookupFetcher, o
|
|
|
217
244
|
}
|
|
218
245
|
function ProfileSchemaSection({ schema, draft, keys, title, description, idPrefix, layout, lookupFetcher, pre, post, onChange }) {
|
|
219
246
|
const configured = profileFormExtensions();
|
|
220
|
-
const
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
rootValue: draft,
|
|
228
|
-
onRootChange: onChange
|
|
229
|
-
}));
|
|
247
|
+
const extensions = draftRootedExtensions({
|
|
248
|
+
draft,
|
|
249
|
+
onChange,
|
|
250
|
+
locate: (path) => path,
|
|
251
|
+
pre: pre ?? configured.pre,
|
|
252
|
+
post: post ?? configured.post
|
|
253
|
+
});
|
|
230
254
|
return /* @__PURE__ */ jsx(SectionCard, {
|
|
231
255
|
title,
|
|
232
256
|
description,
|
|
@@ -236,13 +260,37 @@ function ProfileSchemaSection({ schema, draft, keys, title, description, idPrefi
|
|
|
236
260
|
value: Object.fromEntries(keys.flatMap((key) => Object.prototype.hasOwnProperty.call(draft, key) ? [[key, draft[key]]] : [])),
|
|
237
261
|
onChange: (next) => onChange(mergeProfileProjection(draft, keys, next)),
|
|
238
262
|
showPreferencesMenu: false,
|
|
239
|
-
pre:
|
|
240
|
-
post:
|
|
263
|
+
pre: extensions.pre,
|
|
264
|
+
post: extensions.post,
|
|
241
265
|
...layout ? { layout } : {},
|
|
242
266
|
...lookupFetcher ? { lookupFetcher } : {}
|
|
243
267
|
})
|
|
244
268
|
});
|
|
245
269
|
}
|
|
270
|
+
/**
|
|
271
|
+
* Host widgets read and write the whole profile — the query builder takes its
|
|
272
|
+
* parameter list from draft.params — but a section form only holds a slice of
|
|
273
|
+
* it. This re-roots the extension context at the draft, with `locate` mapping a
|
|
274
|
+
* field's path within the form to its path in the draft so a widget's
|
|
275
|
+
* instancePath still addresses its own field.
|
|
276
|
+
*/
|
|
277
|
+
function draftRootedExtensions({ draft, onChange, locate, pre, post }) {
|
|
278
|
+
const root = {
|
|
279
|
+
rootValue: draft,
|
|
280
|
+
onRootChange: onChange
|
|
281
|
+
};
|
|
282
|
+
return {
|
|
283
|
+
pre: pre.map((extension) => (field, context) => extension(field, {
|
|
284
|
+
...context,
|
|
285
|
+
...root
|
|
286
|
+
})),
|
|
287
|
+
post: post.map((extension) => (field, nodes, context) => extension(field, nodes, {
|
|
288
|
+
...context,
|
|
289
|
+
...root,
|
|
290
|
+
...context?.instancePath !== void 0 ? { instancePath: locate(context.instancePath) } : {}
|
|
291
|
+
}))
|
|
292
|
+
};
|
|
293
|
+
}
|
|
246
294
|
function SectionCard({ title, description, children }) {
|
|
247
295
|
return /* @__PURE__ */ jsxs("section", {
|
|
248
296
|
className: "rounded-xl border bg-card p-5",
|
|
@@ -268,6 +316,6 @@ function EditorField({ label, required, children }) {
|
|
|
268
316
|
}) : null] }), children]
|
|
269
317
|
});
|
|
270
318
|
}
|
|
271
|
-
export { ProfileGeneralSection, ProfileSchemaSection,
|
|
319
|
+
export { ProfileGeneralSection, ProfileQuerySection, ProfileSchemaSection, ProfileSourceCard };
|
|
272
320
|
|
|
273
321
|
//# sourceMappingURL=profileEditorSections.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profileEditorSections.js","names":[],"sources":["../../../src/profiles/editor/profileEditorSections.tsx"],"sourcesContent":["import { JsonSchemaForm } from \"../../components/JsonSchemaForm\";\nimport { ProfileCanonicalQuery } from \"./profileCanonicalQuery\";\nimport type { JsonSchemaObject } from \"../../components/json-schema-form-types\";\nimport type {\n FormLayout,\n LookupFetcher,\n PostExtension,\n PreExtension,\n} from \"../../components/json-schema-form-types\";\nimport { Icon } from \"../../data/Icon\";\nimport type { ReactNode } from \"react\";\nimport {\n mergeProfileProjection,\n providerConnectionSchema,\n profileSchemaProjection,\n providerOptionsSchema,\n providerTypes,\n} from \"./profileEditorModel\";\nimport { profileFormExtensions } from \"../profileApi\";\nimport {\n ProfileWizardQueryStep,\n type ProfileSample,\n} from \"../wizard/profileWizardQueryStep\";\nimport {\n profileConnectionID,\n type ProfileColumn,\n type ProfileWizardDraft,\n} from \"../wizard/profileWizardModel\";\n\nconst inputClassName =\n \"w-full rounded-md border border-input bg-background px-3 py-2 text-sm outline-none focus:border-primary focus:ring-2 focus:ring-primary/15\";\n\nexport function ProfileGeneralSection({ draft, onChange }: EditorSectionProps) {\n return (\n <SectionCard\n title=\"Profile identity\"\n description=\"Name the profile and choose its default presentation. Renaming updates dependent imports when you save.\"\n >\n <div className=\"grid gap-5 @xl:grid-cols-2\">\n <EditorField label=\"Profile name\" required>\n <input\n value={draft.profile ?? \"\"}\n className={inputClassName}\n onChange={(event) =>\n onChange({ ...draft, profile: event.target.value })\n }\n />\n </EditorField>\n <EditorField label=\"Namespace\">\n <input\n value={draft.namespace ?? \"\"}\n className={inputClassName}\n placeholder=\"Default namespace\"\n onChange={(event) =>\n onChange({ ...draft, namespace: event.target.value })\n }\n />\n </EditorField>\n <EditorField label=\"Render mode\">\n <select\n value={typeof draft.render === \"string\" ? draft.render : \"\"}\n className={inputClassName}\n onChange={(event) =>\n onChange({ ...draft, render: event.target.value || undefined })\n }\n >\n <option value=\"\">Table (default)</option>\n <option value=\"table\">Table</option>\n <option value=\"logs\">Logs</option>\n <option value=\"traces\">Traces</option>\n </select>\n </EditorField>\n <EditorField label=\"Icon\">\n <div className=\"flex items-center gap-2\">\n <input\n value={typeof draft.icon === \"string\" ? draft.icon : \"\"}\n className={inputClassName}\n // Empty is the norm: the provider type already supplies a mark.\n // This is for the profile whose subject is not its backend.\n placeholder=\"Provider default\"\n onChange={(event) =>\n onChange({ ...draft, icon: event.target.value || undefined })\n }\n />\n {typeof draft.icon === \"string\" && draft.icon !== \"\" ? (\n // Shows what the name actually resolves to — an unresolvable name\n // renders nothing anywhere, which is invisible without a preview.\n <Icon name={draft.icon} className=\"size-5 shrink-0\" />\n ) : null}\n </div>\n </EditorField>\n </div>\n </SectionCard>\n );\n}\n\nexport function ProfileSourceSection({\n draft,\n discovered,\n sampleStale,\n lookupFetcher,\n onChange,\n onSample,\n}: EditorSectionProps & {\n discovered: ProfileColumn[];\n sampleStale: boolean;\n lookupFetcher?: LookupFetcher;\n onSample: (sample: ProfileSample) => void;\n}) {\n const connectionID = profileConnectionID(draft.provider?.connection ?? \"\");\n const providerType = draft.provider?.type ?? \"\";\n const inlineConnectionSchema = providerOptionsSchema(providerType, \"connection\");\n return (\n <div className=\"grid h-full min-h-0 min-w-0 grid-cols-1 gap-4\">\n <SectionCard\n title=\"Source\"\n description=\"Select the provider and saved connection. Connection credentials remain server-side.\"\n >\n <div className=\"grid items-start gap-4 @xl:grid-cols-2\">\n <EditorField label=\"Provider type\" required>\n <select\n value={providerType}\n className={inputClassName}\n onChange={(event) =>\n onChange({\n ...draft,\n provider: { ...draft.provider, type: event.target.value },\n })\n }\n >\n <option value=\"\">Choose a provider</option>\n {providerTypes().map((type) => (\n <option key={type} value={type}>\n {type}\n </option>\n ))}\n </select>\n </EditorField>\n <div className=\"min-w-0 space-y-3\">\n <JsonSchemaForm\n idPrefix=\"profile-source-connection\"\n schema={providerConnectionSchema()}\n value={{\n connection: draft.provider?.connection ?? \"\",\n provider: draft.provider ?? {},\n }}\n onChange={(next) => {\n if (typeof next.connection !== \"string\") {\n throw new Error(\"provider.connection must be a string\");\n }\n onChange({\n ...draft,\n provider: { ...draft.provider, connection: next.connection },\n });\n }}\n showPreferencesMenu={false}\n {...(lookupFetcher ? { lookupFetcher } : {})}\n />\n {Object.keys(inlineConnectionSchema.properties ?? {}).length > 0 ? (\n <JsonSchemaForm\n idPrefix=\"profile-source-inline-connection\"\n schema={inlineConnectionSchema}\n value={draft.provider?.options ?? {}}\n // The form only knows its own keys; the query options it does\n // not render must survive its edits.\n onChange={(inline) =>\n onChange({\n ...draft,\n provider: {\n ...draft.provider,\n options: { ...draft.provider?.options, ...inline },\n },\n })\n }\n showPreferencesMenu={false}\n pre={profileFormExtensions().pre}\n post={profileFormExtensions().post}\n />\n ) : null}\n </div>\n </div>\n {sampleStale ? (\n <p className=\"mt-4 rounded-lg border border-warning/40 bg-warning/10 px-4 py-3 text-sm text-warning-foreground\">\n Source or query settings changed after the latest sample. You can\n save, but sampling again will verify the current field shape.\n </p>\n ) : null}\n </SectionCard>\n {(providerType===\"opensearch\" || providerType===\"opentelemetry\") ? <ProfileCanonicalQuery draft={draft} onChange={onChange} onSample={onSample}/> : null}\n {draft.search ? null : connectionID ? (\n <ProfileWizardQueryStep\n key={connectionID}\n connectionID={connectionID}\n draft={draft}\n discovered={discovered}\n onDraftChange={onChange}\n onSample={onSample}\n />\n ) : (\n <SectionCard\n title=\"Query and provider options\"\n description=\"Inline sources use the provider schema for options while keeping the query workspace explicit.\"\n >\n <EditorField label=\"Query\">\n <textarea\n rows={10}\n value={draft.query ?? \"\"}\n className={`${inputClassName} resize-y font-mono text-xs`}\n onChange={(event) =>\n onChange({ ...draft, query: event.target.value })\n }\n />\n </EditorField>\n <div className=\"mt-5\">\n {/* The provider option schemas carry host widgets of their own —\n secret and workload-url selectors, the structured search builder —\n so this form needs the host's extensions as much as the sections\n built from the profile schema do. */}\n <JsonSchemaForm\n idPrefix=\"profile-provider-options\"\n schema={providerOptionsSchema(providerType, \"query\")}\n value={draft.provider?.options ?? {}}\n onChange={(options) =>\n onChange({\n ...draft,\n provider: { ...draft.provider, options },\n })\n }\n showPreferencesMenu={false}\n pre={profileFormExtensions().pre}\n post={profileFormExtensions().post}\n />\n </div>\n </SectionCard>\n )}\n </div>\n );\n}\n\nexport function ProfileSchemaSection({\n schema,\n draft,\n keys,\n title,\n description,\n idPrefix,\n layout,\n lookupFetcher,\n pre,\n post,\n onChange,\n}: EditorSectionProps & {\n keys: string[];\n schema?: JsonSchemaObject;\n title: string;\n description: string;\n idPrefix: string;\n // Presentation is the call site's, not this component's — profile schema\n // sections can choose a dense layout or keep the plain stacked defaults.\n layout?: FormLayout;\n // JsonSchemaForm always installs its own lookup provider, so an outer one is\n // shadowed rather than inherited: without this, x-clicky-lookup fields (the\n // imports and reconcile.dest profile pickers) render with no options at all.\n lookupFetcher?: LookupFetcher;\n // Overrides the host's configured extensions for this section only. Passing an\n // empty array is meaningful — it renders the built-in controls — so these are\n // distinguished by being undefined, not by being empty.\n pre?: PreExtension[];\n post?: PostExtension[];\n}) {\n const configured = profileFormExtensions();\n const fullRootPre = (pre ?? configured.pre).map<PreExtension>(\n (extension) => (field, context) =>\n extension(field, {\n ...context,\n rootValue: draft,\n onRootChange: onChange,\n }),\n );\n const fullRootPost = (post ?? configured.post).map<PostExtension>(\n (extension) => (field, nodes, context) =>\n extension(field, nodes, {\n ...context,\n rootValue: draft,\n onRootChange: onChange,\n }),\n );\n return (\n <SectionCard title={title} description={description}>\n <JsonSchemaForm\n idPrefix={idPrefix}\n schema={schema ?? profileSchemaProjection(keys)}\n value={Object.fromEntries(\n keys.flatMap((key) =>\n Object.prototype.hasOwnProperty.call(draft, key)\n ? [[key, draft[key]]]\n : [],\n ),\n )}\n onChange={(next) => onChange(mergeProfileProjection(draft, keys, next))}\n showPreferencesMenu={false}\n pre={fullRootPre}\n post={fullRootPost}\n {...(layout ? { layout } : {})}\n {...(lookupFetcher ? { lookupFetcher } : {})}\n />\n </SectionCard>\n );\n}\n\ntype EditorSectionProps = {\n draft: ProfileWizardDraft;\n onChange: (draft: ProfileWizardDraft) => void;\n};\n\nfunction SectionCard({\n title,\n description,\n children,\n}: {\n title: string;\n description: string;\n children: ReactNode;\n}) {\n return (\n <section className=\"rounded-xl border bg-card p-5\">\n <h2 className=\"text-lg font-semibold\">{title}</h2>\n <p className=\"mb-5 mt-1 text-sm text-muted-foreground\">{description}</p>\n {children}\n </section>\n );\n}\n\nfunction EditorField({\n label,\n required,\n children,\n}: {\n label: string;\n required?: boolean;\n children: ReactNode;\n}) {\n return (\n <label className=\"grid gap-1.5 text-sm font-medium\">\n <span>\n {label}\n {required ? <span className=\"text-destructive\"> *</span> : null}\n </span>\n {children}\n </label>\n );\n}\n"],"mappings":";;;;;;;;;AA6BA,IAAM,iBACJ;AAEF,SAAgB,sBAAsB,EAAE,OAAO,YAAgC;CAC7E,OACE,oBAAC,aAAD;EACE,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C,QAAD;GAAM,WAAU;GAAmB,UAAA;EAAQ,CAAA,IAAI,IACvD,EAAA,CAAA,GACL,QACI;;AAEX"}
|
|
1
|
+
{"version":3,"file":"profileEditorSections.js","names":["_Fragment"],"sources":["../../../src/profiles/editor/profileEditorSections.tsx"],"sourcesContent":["import { JsonSchemaForm } from \"../../components/JsonSchemaForm\";\nimport { ProfileCanonicalQuery } from \"./profileCanonicalQuery\";\nimport { convertToCanonical } from \"./profileCanonicalTranslate\";\nimport { sourceFieldNames, unwrapPreviews } from \"./profileSourceExtensions\";\nimport type { JsonSchemaObject } from \"../../components/json-schema-form-types\";\nimport type {\n FormLayout,\n LookupFetcher,\n PostExtension,\n PreExtension,\n} from \"../../components/json-schema-form-types\";\nimport { Icon } from \"../../data/Icon\";\nimport { useState, type ReactNode } from \"react\";\nimport type { QueryBrowserCompletionField } from \"../../data/query-browser/QueryBrowser.completion\";\nimport {\n applyProviderSourceEdit,\n mergeProfileProjection,\n profileSchemaProjection,\n providerOptionsSchema,\n providerSourceSchema,\n} from \"./profileEditorModel\";\nimport { profileFormExtensions } from \"../profileApi\";\nimport {\n ProfileWizardQueryStep,\n type ProfileSample,\n} from \"../wizard/profileWizardQueryStep\";\nimport {\n profileConnectionID,\n type ProfileColumn,\n type ProfileWizardDraft,\n} from \"../wizard/profileWizardModel\";\n\nconst inputClassName =\n \"w-full rounded-md border border-input bg-background px-3 py-2 text-sm outline-none focus:border-primary focus:ring-2 focus:ring-primary/15\";\n\nexport function ProfileGeneralSection({ draft, onChange }: EditorSectionProps) {\n return (\n <SectionCard\n title=\"Profile identity\"\n description=\"Name the profile and choose its default presentation. Renaming updates dependent imports when you save.\"\n >\n <div className=\"grid gap-5 @xl:grid-cols-2\">\n <EditorField label=\"Profile name\" required>\n <input\n value={draft.profile ?? \"\"}\n className={inputClassName}\n onChange={(event) =>\n onChange({ ...draft, profile: event.target.value })\n }\n />\n </EditorField>\n <EditorField label=\"Namespace\">\n <input\n value={draft.namespace ?? \"\"}\n className={inputClassName}\n placeholder=\"Default namespace\"\n onChange={(event) =>\n onChange({ ...draft, namespace: event.target.value })\n }\n />\n </EditorField>\n <EditorField label=\"Render mode\">\n <select\n value={typeof draft.render === \"string\" ? draft.render : \"\"}\n className={inputClassName}\n onChange={(event) =>\n onChange({ ...draft, render: event.target.value || undefined })\n }\n >\n <option value=\"\">Table (default)</option>\n <option value=\"table\">Table</option>\n <option value=\"logs\">Logs</option>\n <option value=\"traces\">Traces</option>\n </select>\n </EditorField>\n <EditorField label=\"Icon\">\n <div className=\"flex items-center gap-2\">\n <input\n value={typeof draft.icon === \"string\" ? draft.icon : \"\"}\n className={inputClassName}\n // Empty is the norm: the provider type already supplies a mark.\n // This is for the profile whose subject is not its backend.\n placeholder=\"Provider default\"\n onChange={(event) =>\n onChange({ ...draft, icon: event.target.value || undefined })\n }\n />\n {typeof draft.icon === \"string\" && draft.icon !== \"\" ? (\n // Shows what the name actually resolves to — an unresolvable name\n // renders nothing anywhere, which is invisible without a preview.\n <Icon name={draft.icon} className=\"size-5 shrink-0\" />\n ) : null}\n </div>\n </EditorField>\n </div>\n </SectionCard>\n );\n}\n\n/**\n * The Source card: provider type, saved connection and the options describing\n * the documents the provider reads. One flat form, so the labels share a grid.\n * It sits in General — which provider a profile reads is part of what it is —\n * ahead of the options that shape its output.\n */\nexport function ProfileSourceCard({\n draft,\n lookupFetcher,\n indexFields,\n sampleRows,\n onChange,\n}: EditorSectionProps & {\n lookupFetcher?: LookupFetcher;\n /** The index's mapped fields (with types), empty until a connection and index are chosen. */\n indexFields: QueryBrowserCompletionField[];\n /** The documents the latest sample read, for the field pickers and previews. */\n sampleRows: Record<string, unknown>[];\n}) {\n const providerType = draft.provider?.type ?? \"\";\n const inlineConnectionSchema = providerOptionsSchema(providerType, \"connection\");\n const inlineKeys = Object.keys(inlineConnectionSchema.properties ?? {});\n const configured = profileFormExtensions();\n // The source form is flat — type, connection and the inline options share one\n // grid — so each field's path is relocated to where it lives in the draft.\n const sourceExtensions = draftRootedExtensions({\n draft,\n onChange,\n locate: (path) =>\n path === \"/type\" || path === \"/connection\"\n ? `/provider${path}`\n : `/provider/options${path}`,\n pre: [...configured.pre, sourceFieldNames({ indexFields, rows: sampleRows })],\n post: [...configured.post, unwrapPreviews(draft)],\n });\n return (\n <SectionCard\n title=\"Source\"\n description=\"Select the provider and saved connection. Connection credentials remain server-side.\"\n >\n <JsonSchemaForm\n idPrefix=\"profile-source\"\n inline\n schema={providerSourceSchema(inlineConnectionSchema)}\n value={{\n ...Object.fromEntries(\n inlineKeys.flatMap((key) =>\n draft.provider?.options && key in draft.provider.options\n ? [[key, draft.provider.options[key]]]\n : [],\n ),\n ),\n type: providerType,\n connection: draft.provider?.connection ?? \"\",\n // Read by the connection picker's scope (provider.type), not rendered.\n provider: draft.provider ?? {},\n }}\n onChange={(next) =>\n onChange(applyProviderSourceEdit({ draft, next, inlineKeys }))\n }\n showPreferencesMenu={false}\n pre={sourceExtensions.pre}\n post={sourceExtensions.post}\n {...(lookupFetcher ? { lookupFetcher } : {})}\n />\n {providerType === \"opensearch\" || providerType === \"opentelemetry\" ? (\n <CanonicalConditionsHelp draft={draft} onChange={onChange} />\n ) : null}\n </SectionCard>\n );\n}\n\n/**\n * Help under the source's field mappings: what canonical conditions are, and the\n * action that switches the profile to them. It is the only place the action\n * lives, so it keeps the behaviour the standalone card's button had.\n */\nfunction CanonicalConditionsHelp({ draft, onChange }: EditorSectionProps) {\n const [busy, setBusy] = useState(false);\n const [error, setError] = useState(\"\");\n const convert = async () => {\n setBusy(true);\n setError(\"\");\n try {\n onChange(await convertToCanonical(draft));\n } catch (failure) {\n setError(String(failure));\n } finally {\n setBusy(false);\n }\n };\n return (\n <div className=\"mt-4 space-y-1.5 border-t pt-3 text-xs text-muted-foreground\">\n <p>\n Conditions written against canonical fields (trace_id, service, …) stay\n with the profile; each connection resolves them to its own index fields\n and units.\n {draft.search ? (\n <> This profile uses canonical conditions.</>\n ) : (\n <>\n {\" \"}\n <button\n type=\"button\"\n disabled={busy}\n className=\"font-medium text-primary underline-offset-2 hover:underline disabled:opacity-50\"\n onClick={() => void convert()}\n >\n {busy ? \"Resolving layout…\" : \"Use canonical conditions\"}\n </button>\n </>\n )}\n </p>\n {error ? (\n <p role=\"alert\" className=\"text-destructive\">\n {error}\n </p>\n ) : null}\n </div>\n );\n}\n\n/** What remains of Source & Query once the source moved to General: the query workspace, canonical conditions and the sample. */\nexport function ProfileQuerySection({\n draft,\n discovered,\n sampleStale,\n runSlot,\n onChange,\n onSample,\n}: EditorSectionProps & {\n discovered: ProfileColumn[];\n sampleStale: boolean;\n /** Where the query workspace renders Run; see QueryBrowserProps.runSlot. */\n runSlot?: HTMLElement | null | undefined;\n onSample: (sample: ProfileSample) => void;\n}) {\n const connectionID = profileConnectionID(draft.provider?.connection ?? \"\");\n const providerType = draft.provider?.type ?? \"\";\n const configured = profileFormExtensions();\n const optionExtensions = draftRootedExtensions({\n draft,\n onChange,\n locate: (path) => `/provider/options${path}`,\n ...configured,\n });\n return (\n <div className=\"grid h-full min-h-0 min-w-0 grid-cols-1 gap-4\">\n {sampleStale ? (\n <p className=\"rounded-lg border border-warning/40 bg-warning/10 px-4 py-3 text-sm text-warning-foreground\">\n Source or query settings changed after the latest sample. You can\n save, but sampling again will verify the current field shape.\n </p>\n ) : null}\n {providerType === \"opensearch\" || providerType === \"opentelemetry\" ? (\n <ProfileCanonicalQuery draft={draft} onChange={onChange} onSample={onSample} />\n ) : null}\n {draft.search ? null : connectionID ? (\n <ProfileWizardQueryStep\n key={connectionID}\n connectionID={connectionID}\n draft={draft}\n discovered={discovered}\n runSlot={runSlot}\n omitOptions={Object.keys(providerOptionsSchema(providerType, \"connection\").properties ?? {})}\n onDraftChange={onChange}\n onSample={onSample}\n />\n ) : (\n <SectionCard\n title=\"Query and provider options\"\n description=\"Inline sources use the provider schema for options while keeping the query workspace explicit.\"\n >\n <EditorField label=\"Query\">\n <textarea\n rows={10}\n value={draft.query ?? \"\"}\n className={`${inputClassName} resize-y font-mono text-xs`}\n onChange={(event) =>\n onChange({ ...draft, query: event.target.value })\n }\n />\n </EditorField>\n <div className=\"mt-5\">\n {/* The provider option schemas carry host widgets of their own —\n secret and workload-url selectors, the structured search builder —\n so this form needs the host's extensions as much as the sections\n built from the profile schema do. */}\n <JsonSchemaForm\n idPrefix=\"profile-provider-options\"\n schema={providerOptionsSchema(providerType, \"query\")}\n value={draft.provider?.options ?? {}}\n onChange={(options) =>\n onChange({\n ...draft,\n provider: { ...draft.provider, options },\n })\n }\n showPreferencesMenu={false}\n pre={optionExtensions.pre}\n post={optionExtensions.post}\n />\n </div>\n </SectionCard>\n )}\n </div>\n );\n}\n\nexport function ProfileSchemaSection({\n schema,\n draft,\n keys,\n title,\n description,\n idPrefix,\n layout,\n lookupFetcher,\n pre,\n post,\n onChange,\n}: EditorSectionProps & {\n keys: string[];\n schema?: JsonSchemaObject;\n title: string;\n description: string;\n idPrefix: string;\n // Presentation is the call site's, not this component's — profile schema\n // sections can choose a dense layout or keep the plain stacked defaults.\n layout?: FormLayout;\n // JsonSchemaForm always installs its own lookup provider, so an outer one is\n // shadowed rather than inherited: without this, x-clicky-lookup fields (the\n // imports and reconcile.dest profile pickers) render with no options at all.\n lookupFetcher?: LookupFetcher;\n // Overrides the host's configured extensions for this section only. Passing an\n // empty array is meaningful — it renders the built-in controls — so these are\n // distinguished by being undefined, not by being empty.\n pre?: PreExtension[];\n post?: PostExtension[];\n}) {\n const configured = profileFormExtensions();\n const extensions = draftRootedExtensions({\n draft,\n onChange,\n locate: (path) => path,\n pre: pre ?? configured.pre,\n post: post ?? configured.post,\n });\n return (\n <SectionCard title={title} description={description}>\n <JsonSchemaForm\n idPrefix={idPrefix}\n schema={schema ?? profileSchemaProjection(keys)}\n value={Object.fromEntries(\n keys.flatMap((key) =>\n Object.prototype.hasOwnProperty.call(draft, key)\n ? [[key, draft[key]]]\n : [],\n ),\n )}\n onChange={(next) => onChange(mergeProfileProjection(draft, keys, next))}\n showPreferencesMenu={false}\n pre={extensions.pre}\n post={extensions.post}\n {...(layout ? { layout } : {})}\n {...(lookupFetcher ? { lookupFetcher } : {})}\n />\n </SectionCard>\n );\n}\n\n/**\n * Host widgets read and write the whole profile — the query builder takes its\n * parameter list from draft.params — but a section form only holds a slice of\n * it. This re-roots the extension context at the draft, with `locate` mapping a\n * field's path within the form to its path in the draft so a widget's\n * instancePath still addresses its own field.\n */\nfunction draftRootedExtensions({\n draft,\n onChange,\n locate,\n pre,\n post,\n}: EditorSectionProps & {\n locate: (formPath: string) => string;\n pre: PreExtension[];\n post: PostExtension[];\n}): { pre: PreExtension[]; post: PostExtension[] } {\n const root = { rootValue: draft, onRootChange: onChange };\n return {\n pre: pre.map((extension) => (field, context) =>\n extension(field, { ...context, ...root }),\n ),\n post: post.map((extension) => (field, nodes, context) =>\n extension(field, nodes, {\n ...context,\n ...root,\n ...(context?.instancePath !== undefined\n ? { instancePath: locate(context.instancePath) }\n : {}),\n }),\n ),\n };\n}\n\ntype EditorSectionProps = {\n draft: ProfileWizardDraft;\n onChange: (draft: ProfileWizardDraft) => void;\n};\n\nfunction SectionCard({\n title,\n description,\n children,\n}: {\n title: string;\n description: string;\n children: ReactNode;\n}) {\n return (\n <section className=\"rounded-xl border bg-card p-5\">\n <h2 className=\"text-lg font-semibold\">{title}</h2>\n <p className=\"mb-5 mt-1 text-sm text-muted-foreground\">{description}</p>\n {children}\n </section>\n );\n}\n\nfunction EditorField({\n label,\n required,\n children,\n}: {\n label: string;\n required?: boolean;\n children: ReactNode;\n}) {\n return (\n <label className=\"grid gap-1.5 text-sm font-medium\">\n <span>\n {label}\n {required ? <span className=\"text-destructive\"> *</span> : null}\n </span>\n {children}\n </label>\n );\n}\n"],"mappings":";;;;;;;;;;;;AAgCA,IAAM,iBACJ;AAEF,SAAgB,sBAAsB,EAAE,OAAO,YAAgC;CAC7E,OACE,oBAAC,aAAD;EACE,OAAM;EACN,aAAY;EAEZ,UAAA,qBAAC,OAAD;GAAK,WAAU;GAAf,UA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B,GAAK,SAAS,EAAE,OAAO,IAAI,CAAC;GAC5B,GAAK,gBAAgB,EAAE,cAAc,IAAI,CAAC;EAC3C,CAAA;CACU,CAAA;AAEjB;;;;;;;;AASA,SAAS,sBAAsB,EAC7B,OACA,UACA,QACA,KACA,QAKiD;CACjD,MAAM,OAAO;EAAE,WAAW;EAAO,cAAc;CAAS;CACxD,OAAO;EACL,KAAK,IAAI,KAAK,eAAe,OAAO,YAClC,UAAU,OAAO;GAAE,GAAG;GAAS,GAAG;EAAK,CAAC,CAC1C;EACA,MAAM,KAAK,KAAK,eAAe,OAAO,OAAO,YAC3C,UAAU,OAAO,OAAO;GACtB,GAAG;GACH,GAAG;GACH,GAAI,SAAS,iBAAiB,KAAA,IAC1B,EAAE,cAAc,OAAO,QAAQ,YAAY,EAAE,IAC7C,CAAC;EACP,CAAC,CACH;CACF;AACF;AAOA,SAAS,YAAY,EACnB,OACA,aACA,YAKC;CACD,OACE,qBAAC,WAAD;EAAS,WAAU;EAAnB,UAAA;GACE,oBAAC,MAAD;IAAI,WAAU;IAAyB,UAAA;GAAU,CAAA;GACjD,oBAAC,KAAD;IAAG,WAAU;IAA2C,UAAA;GAAe,CAAA;GACtE;EACM;;AAEb;AAEA,SAAS,YAAY,EACnB,OACA,UACA,YAKC;CACD,OACE,qBAAC,SAAD;EAAO,WAAU;EAAjB,UAAA,CACE,qBAAC,QAAD,EAAA,UAAA,CACG,OACA,WAAW,oBAAC,QAAD;GAAM,WAAU;GAAmB,UAAA;EAAQ,CAAA,IAAI,IACvD,EAAA,CAAA,GACL,QACI;;AAEX"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
const require_data_table_server_filters = require("../../data/data-table-server-filters.cjs");
|
|
1
2
|
const require_OtelTraceTable = require("../../data/traces/otel/OtelTraceTable.cjs");
|
|
2
3
|
const require_profile_spans = require("../../data/traces/otel/profile-spans.cjs");
|
|
3
4
|
const require_profile_listing = require("../../data/traces/otel/profile-listing.cjs");
|
|
@@ -6,10 +7,14 @@ const require_profileApi = require("../profileApi.cjs");
|
|
|
6
7
|
let react = require("react");
|
|
7
8
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
9
|
// src/profiles/editor/profileMappingPreview.tsx
|
|
9
|
-
function ProfileMappingPreview({ profile, rows, onNormalized }) {
|
|
10
|
+
function ProfileMappingPreview({ profile, rows, onNormalized, filters }) {
|
|
10
11
|
const normalizedCallback = (0, react.useRef)(onNormalized);
|
|
11
12
|
normalizedCallback.current = onNormalized;
|
|
12
13
|
const [result, setResult] = (0, react.useState)();
|
|
14
|
+
const filtersRef = (0, react.useRef)(filters);
|
|
15
|
+
filtersRef.current = filters;
|
|
16
|
+
const filterConfig = (0, react.useMemo)(() => filters && result?.resultColumns ? require_data_table_server_filters.serverFiltersToFilterBar(result.resultColumns, filters.selection, filters.onChange, filters.lookupValues ? { lookupValues: filters.lookupValues } : {}) : void 0, [filters, result]);
|
|
17
|
+
const idle = rows.length === 0 && !filters;
|
|
13
18
|
const [error, setError] = (0, react.useState)("");
|
|
14
19
|
const [pending, setPending] = (0, react.useState)(false);
|
|
15
20
|
const [trace, setTrace] = (0, react.useState)();
|
|
@@ -29,7 +34,7 @@ function ProfileMappingPreview({ profile, rows, onNormalized }) {
|
|
|
29
34
|
rows
|
|
30
35
|
});
|
|
31
36
|
(0, react.useEffect)(() => {
|
|
32
|
-
if (
|
|
37
|
+
if (idle) return;
|
|
33
38
|
const controller = new AbortController();
|
|
34
39
|
setPending(true);
|
|
35
40
|
setError("");
|
|
@@ -44,6 +49,8 @@ function ProfileMappingPreview({ profile, rows, onNormalized }) {
|
|
|
44
49
|
});
|
|
45
50
|
if (!response.ok) throw new Error(await response.text());
|
|
46
51
|
const next = await response.json();
|
|
52
|
+
if (!next.document?.node) throw new Error("the mapping response carried no rendered document");
|
|
53
|
+
if (filtersRef.current && !Array.isArray(next.resultColumns)) throw new Error("the mapping response carried no resultColumns to build filters from");
|
|
47
54
|
if (!controller.signal.aborted) {
|
|
48
55
|
setResult(next);
|
|
49
56
|
normalizedCallback.current?.(next.normalizedRows, next.availableColumns);
|
|
@@ -59,17 +66,26 @@ function ProfileMappingPreview({ profile, rows, onNormalized }) {
|
|
|
59
66
|
clearTimeout(timer);
|
|
60
67
|
controller.abort();
|
|
61
68
|
};
|
|
62
|
-
}, [body,
|
|
63
|
-
if (
|
|
69
|
+
}, [body, idle]);
|
|
70
|
+
if (idle) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", { children: "Run a sample in Query to preview mappings." });
|
|
64
71
|
if (error) return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("p", {
|
|
65
72
|
role: "alert",
|
|
66
73
|
children: ["Cannot preview mappings: ", error]
|
|
67
74
|
});
|
|
68
|
-
if (
|
|
75
|
+
if (!result || pending && profile.render === "traces") return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
69
76
|
role: "status",
|
|
70
77
|
children: "Updating mapping preview…"
|
|
71
78
|
});
|
|
72
|
-
if (profile.render !== "traces") return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
79
|
+
if (profile.render !== "traces") return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
80
|
+
"aria-busy": pending,
|
|
81
|
+
className: "flex h-full min-h-0 flex-col",
|
|
82
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Clicky.Clicky, {
|
|
83
|
+
data: result.document.node,
|
|
84
|
+
className: "flex min-h-0 flex-1 flex-col",
|
|
85
|
+
...filterConfig?.filters.length ? { externalFilters: filterConfig.filters } : {},
|
|
86
|
+
...filterConfig?.timeRange ? { timeRange: filterConfig.timeRange } : {}
|
|
87
|
+
})
|
|
88
|
+
});
|
|
73
89
|
try {
|
|
74
90
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_OtelTraceTable.OtelTraceTable, {
|
|
75
91
|
spans: require_profile_spans.profileSpans(result.rows),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profileMappingPreview.cjs","names":["useRef","useState","profileApiPath","Clicky","OtelTraceTable","profileSpans","profileTraceListing"],"sources":["../../../src/profiles/editor/profileMappingPreview.tsx"],"sourcesContent":["import { useEffect, useState, useRef } from \"react\";\nimport type { ProfileColumn } from \"../wizard/profileWizardModel\";\nimport { OtelTraceTable } from \"../../data/traces/otel/OtelTraceTable\";\nimport { profileSpans } from \"../../data/traces/otel/profile-spans\";\nimport { profileTraceListing } from \"../../data/traces/otel/profile-listing\";\nimport { Clicky, type ClickyNode } from \"../../data/Clicky\";\nimport { profileApiPath } from \"../profileApi\";\nimport type { ProfileWizardDraft } from \"../wizard/profileWizardModel\";\n\nexport function ProfileMappingPreview({\n profile,\n rows,\n onNormalized,\n}: {\n profile: ProfileWizardDraft;\n rows: Record<string, unknown>[];\n onNormalized?: (rows: Record<string, unknown>[], columns: ProfileColumn[]) => void;\n}) {\n const normalizedCallback = useRef(onNormalized);\n normalizedCallback.current = onNormalized;\n const [result, setResult] = useState<{\n rows: Record<string, unknown>[];\n document: { node: ClickyNode };\n }>();\n const [error, setError] = useState(\"\");\n const [pending, setPending] = useState(false);\n const [trace, setTrace] = useState<string>();\n const [span, setSpan] = useState<string>();\n const body = JSON.stringify({\n profile: {\n profile: profile.profile,\n provider: profile.provider,\n spans: profile.spans,\n search:profile.search,\n render: profile.render,\n columns: profile.columns,\n aliases: profile.aliases,\n ignore: profile.ignore,\n filters: profile.filters,\n },\n rows,\n });\n useEffect(() => {\n if (
|
|
1
|
+
{"version":3,"file":"profileMappingPreview.cjs","names":["useRef","useState","useMemo","serverFiltersToFilterBar","profileApiPath","Clicky","OtelTraceTable","profileSpans","profileTraceListing"],"sources":["../../../src/profiles/editor/profileMappingPreview.tsx"],"sourcesContent":["import { useEffect, useMemo, useState, useRef, type Dispatch, type SetStateAction } from \"react\";\nimport type { ProfileColumn } from \"../wizard/profileWizardModel\";\nimport type { DataTableFilterSelection } from \"../../data/data-table-filter-values\";\nimport {\n serverFiltersToFilterBar,\n type DataTableFilterLookup,\n type DataTableServerColumn,\n} from \"../../data/data-table-server-filters\";\nimport { OtelTraceTable } from \"../../data/traces/otel/OtelTraceTable\";\nimport { profileSpans } from \"../../data/traces/otel/profile-spans\";\nimport { profileTraceListing } from \"../../data/traces/otel/profile-listing\";\nimport { Clicky, type ClickyNode } from \"../../data/Clicky\";\nimport { profileApiPath } from \"../profileApi\";\nimport type { ProfileWizardDraft } from \"../wizard/profileWizardModel\";\n\n/**\n * The filters a table preview offers. The controls are the ones the service\n * describes for the draft's columns (the result columns of the mapping\n * response), built by the same serverFiltersToFilterBar the profile query\n * results use; applying one is the caller's to do, server-side, by sampling\n * again — the table never filters the rows it was given.\n */\nexport type ProfileMappingFilters = {\n selection: DataTableFilterSelection;\n onChange: Dispatch<SetStateAction<DataTableFilterSelection>>;\n lookupValues?: DataTableFilterLookup;\n};\n\nexport function ProfileMappingPreview({\n profile,\n rows,\n onNormalized,\n filters,\n}: {\n profile: ProfileWizardDraft;\n rows: Record<string, unknown>[];\n onNormalized?: (rows: Record<string, unknown>[], columns: ProfileColumn[]) => void;\n filters?: ProfileMappingFilters;\n}) {\n const normalizedCallback = useRef(onNormalized);\n normalizedCallback.current = onNormalized;\n const [result, setResult] = useState<{\n rows: Record<string, unknown>[];\n resultColumns?: DataTableServerColumn[];\n document: { node: ClickyNode };\n }>();\n const filtersRef = useRef(filters);\n filtersRef.current = filters;\n const filterConfig = useMemo(\n () =>\n filters && result?.resultColumns\n ? serverFiltersToFilterBar(\n result.resultColumns,\n filters.selection,\n filters.onChange,\n filters.lookupValues ? { lookupValues: filters.lookupValues } : {},\n )\n : undefined,\n [filters, result],\n );\n // A filtered sample may legitimately be empty, and its filter bar is how the\n // filter is cleared, so a preview that offers filters renders zero rows too.\n const idle = rows.length === 0 && !filters;\n const [error, setError] = useState(\"\");\n const [pending, setPending] = useState(false);\n const [trace, setTrace] = useState<string>();\n const [span, setSpan] = useState<string>();\n const body = JSON.stringify({\n profile: {\n profile: profile.profile,\n provider: profile.provider,\n spans: profile.spans,\n search:profile.search,\n render: profile.render,\n columns: profile.columns,\n aliases: profile.aliases,\n ignore: profile.ignore,\n filters: profile.filters,\n },\n rows,\n });\n useEffect(() => {\n if (idle) return;\n const controller = new AbortController();\n setPending(true);\n setError(\"\");\n const timer = setTimeout(() => {\n void (async () => {\n try {\n const response = await fetch(\n profileApiPath(\"profile/sample/mapping\"),\n {\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\" },\n body,\n signal: controller.signal,\n },\n );\n if (!response.ok) throw new Error(await response.text());\n const next = (await response.json()) as {\n normalizedRows: Record<string, unknown>[];\n availableColumns: ProfileColumn[];\n rows: Record<string, unknown>[];\n resultColumns?: DataTableServerColumn[];\n document: { node: ClickyNode };\n };\n if (!next.document?.node)\n throw new Error(\"the mapping response carried no rendered document\");\n if (filtersRef.current && !Array.isArray(next.resultColumns))\n throw new Error(\"the mapping response carried no resultColumns to build filters from\");\n if (!controller.signal.aborted) {\n setResult(next);\n normalizedCallback.current?.(next.normalizedRows, next.availableColumns);\n }\n } catch (error) {\n if (!controller.signal.aborted)\n setError(error instanceof Error ? error.message : String(error));\n } finally {\n if (!controller.signal.aborted) setPending(false);\n }\n })();\n }, 250);\n return () => {\n clearTimeout(timer);\n controller.abort();\n };\n }, [body, idle]);\n if (idle) return <p>Run a sample in Query to preview mappings.</p>;\n if (error) return <p role=\"alert\">Cannot preview mappings: {error}</p>;\n // A table keeps showing the last rendering while an edit is remapped, so the\n // preview updates in place instead of blinking to a status line per keystroke.\n if (!result || (pending && profile.render === \"traces\"))\n return <p role=\"status\">Updating mapping preview…</p>;\n if (profile.render !== \"traces\")\n return (\n <div aria-busy={pending} className=\"flex h-full min-h-0 flex-col\">\n <Clicky\n data={result.document.node}\n className=\"flex min-h-0 flex-1 flex-col\"\n {...(filterConfig?.filters.length ? { externalFilters: filterConfig.filters } : {})}\n {...(filterConfig?.timeRange ? { timeRange: filterConfig.timeRange } : {})}\n />\n </div>\n );\n try {\n return (\n <OtelTraceTable\n spans={profileSpans(result.rows)}\n listing={{\n ...profileTraceListing(result.rows, result.document.node),\n linkRows: false,\n }}\n onSelectTrace={(id) => {\n setTrace(id);\n setSpan(undefined);\n }}\n onSelectSpan={setSpan}\n traceHref={(id) => `#trace=${encodeURIComponent(id)}`}\n {...(trace ? { selectedTraceId: trace } : {})}\n {...(span ? { selectedSpanId: span } : {})}\n />\n );\n } catch (error) {\n return (\n <p role=\"alert\">\n Cannot preview traces:{\" \"}\n {error instanceof Error ? error.message : String(error)}\n </p>\n );\n }\n}\n"],"mappings":";;;;;;;;;AA4BA,SAAgB,sBAAsB,EACpC,SACA,MACA,cACA,WAMC;CACD,MAAM,sBAAA,GAAqBA,MAAAA,OAAAA,CAAO,YAAY;CAC9C,mBAAmB,UAAU;CAC7B,MAAM,CAAC,QAAQ,cAAA,GAAaC,MAAAA,SAAAA,CAIzB;CACH,MAAM,cAAA,GAAaD,MAAAA,OAAAA,CAAO,OAAO;CACjC,WAAW,UAAU;CACrB,MAAM,gBAAA,GAAeE,MAAAA,QAAAA,OAEjB,WAAW,QAAQ,gBACfC,kCAAAA,yBACE,OAAO,eACP,QAAQ,WACR,QAAQ,UACR,QAAQ,eAAe,EAAE,cAAc,QAAQ,aAAa,IAAI,CAAC,CACnE,IACA,KAAA,GACN,CAAC,SAAS,MAAM,CAClB;CAGA,MAAM,OAAO,KAAK,WAAW,KAAK,CAAC;CACnC,MAAM,CAAC,OAAO,aAAA,GAAYF,MAAAA,SAAAA,CAAS,EAAE;CACrC,MAAM,CAAC,SAAS,eAAA,GAAcA,MAAAA,SAAAA,CAAS,KAAK;CAC5C,MAAM,CAAC,OAAO,aAAA,GAAYA,MAAAA,SAAAA,CAAiB;CAC3C,MAAM,CAAC,MAAM,YAAA,GAAWA,MAAAA,SAAAA,CAAiB;CACzC,MAAM,OAAO,KAAK,UAAU;EAC1B,SAAS;GACP,SAAS,QAAQ;GACjB,UAAU,QAAQ;GAClB,OAAO,QAAQ;GACf,QAAO,QAA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izardDraft } from '../wizard/profileWizardModel.js';
|
|
2
|
-
|
|
3
|
+
import { DataTableFilterSelection } from '../../data/data-table-filter-values.js';
|
|
4
|
+
import { DataTableFilterLookup } from '../../data/data-table-server-filters.js';
|
|
5
|
+
/**
|
|
6
|
+
* The filters a table preview offers. The controls are the ones the service
|
|
7
|
+
* describes for the draft's columns (the result columns of the mapping
|
|
8
|
+
* response), built by the same serverFiltersToFilterBar the profile query
|
|
9
|
+
* results use; applying one is the caller's to do, server-side, by sampling
|
|
10
|
+
* again — the table never filters the rows it was given.
|
|
11
|
+
*/
|
|
12
|
+
export type ProfileMappingFilters = {
|
|
13
|
+
selection: DataTableFilterSelection;
|
|
14
|
+
onChange: Dispatch<SetStateAction<DataTableFilterSelection>>;
|
|
15
|
+
lookupValues?: DataTableFilterLookup;
|
|
16
|
+
};
|
|
17
|
+
export declare function ProfileMappingPreview({ profile, rows, onNormalized, filters, }: {
|
|
3
18
|
profile: ProfileWizardDraft;
|
|
4
19
|
rows: Record<string, unknown>[];
|
|
5
20
|
onNormalized?: (rows: Record<string, unknown>[], columns: ProfileColumn[]) => void;
|
|
21
|
+
filters?: ProfileMappingFilters;
|
|
6
22
|
}): import("react").JSX.Element;
|
|
7
23
|
//# sourceMappingURL=profileMappingPreview.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profileMappingPreview.d.ts","sourceRoot":"","sources":["../../../src/profiles/editor/profileMappingPreview.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"profileMappingPreview.d.ts","sourceRoot":"","sources":["../../../src/profiles/editor/profileMappingPreview.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAwC,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AACjG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AACpF,OAAO,EAEL,KAAK,qBAAqB,EAE3B,MAAM,sCAAsC,CAAC;AAM9C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAEvE;;;;;;GAMG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC,SAAS,EAAE,wBAAwB,CAAC;IACpC,QAAQ,EAAE,QAAQ,CAAC,cAAc,CAAC,wBAAwB,CAAC,CAAC,CAAC;IAC7D,YAAY,CAAC,EAAE,qBAAqB,CAAC;CACtC,CAAC;AAEF,wBAAgB,qBAAqB,CAAC,EACpC,OAAO,EACP,IAAI,EACJ,YAAY,EACZ,OAAO,GACR,EAAE;IACD,OAAO,EAAE,kBAAkB,CAAC;IAC5B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;IAChC,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,EAAE,OAAO,EAAE,aAAa,EAAE,KAAK,IAAI,CAAC;IACnF,OAAO,CAAC,EAAE,qBAAqB,CAAC;CACjC,+BAoIA"}
|