@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
|
@@ -23,11 +23,12 @@ var LINK_CLASS = "font-mono text-primary underline-offset-2 hover:underline";
|
|
|
23
23
|
function shortId(id) {
|
|
24
24
|
return id.length > 8 ? id.slice(0, 8) : id;
|
|
25
25
|
}
|
|
26
|
-
function SessionHeader({ session, getSessionHref, renderLink = defaultRenderLink, onStop, onExtend, onRestart, mutating = false, renderConfirm, durationPresetsMs = require_sessionHeaderModel.DEFAULT_SESSION_DURATION_PRESETS_MS, pendingAction = null, actionError, title, className }) {
|
|
26
|
+
function SessionHeader({ session, getSessionHref, renderLink = defaultRenderLink, onStop, onExtend, onRestart, mutating = false, renderConfirm, durationPresetsMs = require_sessionHeaderModel.DEFAULT_SESSION_DURATION_PRESETS_MS, pendingAction = null, actionError, title, actions, className }) {
|
|
27
27
|
const active = !require_sessionTypes.isSessionTerminal(session.state);
|
|
28
28
|
const countingDown = active && session.stopAt !== void 0;
|
|
29
29
|
const now = require_use_resource_clock.useResourceClock(countingDown);
|
|
30
30
|
const labelIsHeading = title === void 0 && session.labels?.label !== void 0;
|
|
31
|
+
const profileIsHeading = title === void 0 && session.labels?.label === void 0;
|
|
31
32
|
const labels = Object.entries(session.labels ?? {}).filter(([key]) => !(labelIsHeading && key === "label"));
|
|
32
33
|
const sessionLink = (id) => renderLink({
|
|
33
34
|
to: getSessionHref(id),
|
|
@@ -37,122 +38,127 @@ function SessionHeader({ session, getSessionHref, renderLink = defaultRenderLink
|
|
|
37
38
|
key: id
|
|
38
39
|
});
|
|
39
40
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("header", {
|
|
40
|
-
className: require_utils.cn("space-y-
|
|
41
|
+
className: require_utils.cn("space-y-2 rounded-md border border-border bg-card p-3", className),
|
|
41
42
|
"data-slot": "session-header",
|
|
42
43
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
43
|
-
className: "flex flex-wrap items-start
|
|
44
|
+
className: "flex flex-wrap items-start gap-3",
|
|
44
45
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
45
|
-
className: "min-w-0 space-y-
|
|
46
|
-
children: [
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
tone: "warning",
|
|
61
|
-
variant: "outline",
|
|
62
|
-
size: "sm",
|
|
63
|
-
icon: require_UiWarningTriangle.UiWarningTriangle,
|
|
64
|
-
children: "unresponsive"
|
|
65
|
-
}),
|
|
66
|
-
countingDown && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
67
|
-
className: "inline-flex items-center gap-1 text-xs text-muted-foreground",
|
|
68
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Icon.Icon, {
|
|
69
|
-
icon: require_UiClockCountdown.UiClockCountdown,
|
|
70
|
-
className: "size-3.5"
|
|
71
|
-
}), require_sessionHeaderModel.formatSessionCountdown(session.stopAt, now)]
|
|
72
|
-
})
|
|
73
|
-
]
|
|
74
|
-
}),
|
|
75
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
76
|
-
className: "flex flex-wrap items-center gap-x-4 gap-y-1 text-xs text-muted-foreground",
|
|
77
|
-
children: [
|
|
78
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
79
|
-
className: "font-mono",
|
|
80
|
-
children: session.profile
|
|
81
|
-
}),
|
|
82
|
-
session.events && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
83
|
-
className: "font-mono",
|
|
84
|
-
children: ["Event kind: ", session.events.kind]
|
|
85
|
-
}),
|
|
86
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
87
|
-
className: "inline-flex items-center gap-1",
|
|
88
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Icon.Icon, {
|
|
89
|
-
icon: require_UiServer.UiServer,
|
|
90
|
-
className: "size-3.5"
|
|
91
|
-
}), `${session.owner.host} · pid ${session.owner.pid}`]
|
|
92
|
-
}),
|
|
93
|
-
session.principal && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", { children: ["by ", session.principal] }),
|
|
94
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", { children: [session.eventCount.toLocaleString(), " events"] }),
|
|
95
|
-
session.handle && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
96
|
-
className: "font-mono",
|
|
97
|
-
children: session.handle
|
|
98
|
-
}),
|
|
99
|
-
!active && session.stopReason && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: session.stopReason })
|
|
100
|
-
]
|
|
101
|
-
}),
|
|
102
|
-
labels.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("ul", {
|
|
103
|
-
role: "list",
|
|
104
|
-
className: "flex flex-wrap gap-1",
|
|
105
|
-
"aria-label": "Labels",
|
|
106
|
-
children: labels.map(([key, value]) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("li", { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Badge.Badge, {
|
|
107
|
-
tone: "neutral",
|
|
46
|
+
className: "min-w-0 flex-[1_1_20rem] space-y-1.5",
|
|
47
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
48
|
+
className: "flex flex-wrap items-center gap-2",
|
|
49
|
+
children: [
|
|
50
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("h2", {
|
|
51
|
+
className: "truncate text-base font-semibold",
|
|
52
|
+
children: title ?? session.labels?.label ?? session.profile
|
|
53
|
+
}),
|
|
54
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Badge.Badge, {
|
|
55
|
+
tone: require_sessionHeaderModel.SESSION_STATE_TONES[session.state],
|
|
56
|
+
size: "sm",
|
|
57
|
+
children: session.state
|
|
58
|
+
}),
|
|
59
|
+
session.unresponsive && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Badge.Badge, {
|
|
60
|
+
tone: "warning",
|
|
108
61
|
variant: "outline",
|
|
109
|
-
size: "
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
62
|
+
size: "sm",
|
|
63
|
+
icon: require_UiWarningTriangle.UiWarningTriangle,
|
|
64
|
+
children: "unresponsive"
|
|
65
|
+
}),
|
|
66
|
+
countingDown && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
67
|
+
className: "inline-flex items-center gap-1 text-xs text-muted-foreground",
|
|
68
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Icon.Icon, {
|
|
69
|
+
icon: require_UiClockCountdown.UiClockCountdown,
|
|
70
|
+
className: "size-3.5"
|
|
71
|
+
}), require_sessionHeaderModel.formatSessionCountdown(session.stopAt, now)]
|
|
72
|
+
})
|
|
73
|
+
]
|
|
74
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
75
|
+
className: "flex flex-wrap items-center gap-x-4 gap-y-1 text-xs text-muted-foreground",
|
|
76
|
+
children: [
|
|
77
|
+
!profileIsHeading && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
78
|
+
className: "font-mono",
|
|
79
|
+
children: session.profile
|
|
80
|
+
}),
|
|
81
|
+
session.events && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
82
|
+
className: "font-mono",
|
|
83
|
+
children: ["Event kind: ", session.events.kind]
|
|
84
|
+
}),
|
|
85
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
86
|
+
className: "inline-flex items-center gap-1",
|
|
87
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Icon.Icon, {
|
|
88
|
+
icon: require_UiServer.UiServer,
|
|
89
|
+
className: "size-3.5"
|
|
90
|
+
}), `${session.owner.host} · pid ${session.owner.pid}`]
|
|
91
|
+
}),
|
|
92
|
+
session.principal && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", { children: ["by ", session.principal] }),
|
|
93
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", { children: [session.eventCount.toLocaleString(), " events"] }),
|
|
94
|
+
session.handle && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
95
|
+
className: "font-mono",
|
|
96
|
+
children: session.handle
|
|
97
|
+
}),
|
|
98
|
+
!active && session.stopReason && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: session.stopReason }),
|
|
99
|
+
labels.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("ul", {
|
|
100
|
+
role: "list",
|
|
101
|
+
className: "flex flex-wrap gap-1",
|
|
102
|
+
"aria-label": "Labels",
|
|
103
|
+
children: labels.map(([key, value]) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("li", { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Badge.Badge, {
|
|
104
|
+
tone: "neutral",
|
|
105
|
+
variant: "outline",
|
|
106
|
+
size: "xs",
|
|
107
|
+
children: `${key}=${value}`
|
|
108
|
+
}) }, key))
|
|
109
|
+
}),
|
|
110
|
+
session.restartOf && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
111
|
+
className: "text-foreground",
|
|
112
|
+
children: ["Restart of ", sessionLink(session.restartOf)]
|
|
113
|
+
}),
|
|
114
|
+
session.restartedAs && session.restartedAs.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
115
|
+
className: "inline-flex flex-wrap items-center gap-1 text-foreground",
|
|
117
116
|
children: ["Restarted as ", session.restartedAs.map(sessionLink)]
|
|
118
|
-
})
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
117
|
+
}),
|
|
118
|
+
session.metadata?.map((entry) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("details", {
|
|
119
|
+
className: "group open:basis-full",
|
|
120
|
+
"data-slot": "session-metadata",
|
|
121
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("summary", {
|
|
122
|
+
className: "inline-flex cursor-pointer list-none items-center gap-1 hover:text-foreground",
|
|
123
|
+
children: [
|
|
124
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Icon.Icon, {
|
|
125
|
+
icon: require_UiChevronRight.UiChevronRight,
|
|
126
|
+
className: "size-3.5 transition-transform group-open:rotate-90"
|
|
127
|
+
}),
|
|
128
|
+
entry.label,
|
|
129
|
+
entry.language && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Badge.Badge, {
|
|
130
|
+
tone: "neutral",
|
|
131
|
+
variant: "outline",
|
|
132
|
+
size: "xs",
|
|
133
|
+
className: "uppercase",
|
|
134
|
+
children: entry.language
|
|
135
|
+
})
|
|
136
|
+
]
|
|
137
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
138
|
+
className: "mt-2 max-h-64 overflow-y-auto text-foreground",
|
|
139
|
+
"data-slot": "session-metadata-value",
|
|
140
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_CodeBlock.CodeBlock, {
|
|
141
|
+
language: entry.language ?? "text",
|
|
142
|
+
source: entry.value,
|
|
143
|
+
copyable: true
|
|
137
144
|
})
|
|
138
|
-
]
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
pendingAction
|
|
145
|
+
})]
|
|
146
|
+
}, entry.name))
|
|
147
|
+
]
|
|
148
|
+
})]
|
|
149
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
150
|
+
className: "flex min-w-0 max-w-full flex-wrap items-start gap-2 empty:hidden",
|
|
151
|
+
"data-slot": "session-header-actions",
|
|
152
|
+
children: [actions, /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_SessionHeaderControls.SessionHeaderControls, {
|
|
153
|
+
session,
|
|
154
|
+
onStop,
|
|
155
|
+
onExtend,
|
|
156
|
+
onRestart,
|
|
157
|
+
mutating,
|
|
158
|
+
renderConfirm,
|
|
159
|
+
durationPresetsMs,
|
|
160
|
+
pendingAction
|
|
161
|
+
})]
|
|
156
162
|
})]
|
|
157
163
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SessionHeaderNotices, {
|
|
158
164
|
session,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SessionHeader.cjs","names":["DEFAULT_SESSION_DURATION_PRESETS_MS","isSessionTerminal","useResourceClock","cn","Badge","SESSION_STATE_TONES","UiWarningTriangle","Icon","UiClockCountdown","formatSessionCountdown","UiServer","UiChevronRight","CodeBlock","SessionHeaderControls","Callout","formatSessionStoreLocation"],"sources":["../../src/rpc/SessionHeader.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { Badge } from \"../data/Badge\";\nimport { Callout } from \"../data/Callout\";\nimport { CodeBlock } from \"../data/CodeBlock\";\nimport { Icon } from \"../data/Icon\";\nimport { useResourceClock } from \"../hooks/use-resource-clock\";\nimport { UiChevronRight, UiClockCountdown, UiServer, UiWarningTriangle } from \"../icons\";\nimport { cn } from \"../lib/utils\";\nimport type { RenderLink } from \"./EndpointList\";\nimport {\n DEFAULT_SESSION_DURATION_PRESETS_MS,\n SESSION_STATE_TONES,\n formatSessionCountdown,\n formatSessionStoreLocation,\n} from \"./sessionHeaderModel\";\nimport { SessionHeaderControls, type SessionConfirmRenderArgs } from \"./SessionHeaderControls\";\nimport { isSessionTerminal, type SessionInfo } from \"./sessionTypes\";\nimport type { SessionAction } from \"./useSession\";\n\nexport type { SessionConfirmRenderArgs } from \"./SessionHeaderControls\";\n\nexport type SessionHeaderProps = {\n session: SessionInfo;\n /** Route of another session's page, for `restartOf` / `restartedAs` links. */\n getSessionHref: (id: string) => string;\n /** Renders those links with the host's router. Defaults to a plain anchor. */\n renderLink?: RenderLink;\n onStop: () => void;\n onExtend: (durationMs: number) => void;\n /** Called with the run's own `params.durationMs`, or the duration picked when it had none. */\n onRestart: (options: { durationMs: number }) => void;\n /**\n * The session's kind changes the target's behaviour (a class patch, say):\n * Stop, Extend and Restart each wait for confirmation first.\n */\n mutating?: boolean;\n /** Confirmation slot for a mutating kind. Defaults to a small modal. */\n renderConfirm?: (args: SessionConfirmRenderArgs) => ReactNode;\n /** Durations offered by the Extend and Restart prompts. */\n durationPresetsMs?: readonly number[];\n /** The control request in flight (useSession's `pendingAction`). */\n pendingAction?: SessionAction | null;\n /** The last control request's failure (useSession's `actionError`); rendered until the next action. */\n actionError?: unknown;\n /** Heading; defaults to `labels.label`, then the profile. */\n title?: ReactNode;\n className?: string;\n};\n\nconst defaultRenderLink: RenderLink = ({ to, children, className, title, key }) => (\n <a key={key} href={to} className={className} title={title}>\n {children}\n </a>\n);\n\nconst LINK_CLASS = \"font-mono text-primary underline-offset-2 hover:underline\";\n\nfunction shortId(id: string): string {\n return id.length > 8 ? id.slice(0, 8) : id;\n}\n\nexport function SessionHeader({\n session,\n getSessionHref,\n renderLink = defaultRenderLink,\n onStop,\n onExtend,\n onRestart,\n mutating = false,\n renderConfirm,\n durationPresetsMs = DEFAULT_SESSION_DURATION_PRESETS_MS,\n pendingAction = null,\n actionError,\n title,\n className,\n}: SessionHeaderProps) {\n const active = !isSessionTerminal(session.state);\n const countingDown = active && session.stopAt !== undefined;\n const now = useResourceClock(countingDown);\n // The `label` label is already the heading when no title is given.\n const labelIsHeading = title === undefined && session.labels?.label !== undefined;\n const labels = Object.entries(session.labels ?? {}).filter(\n ([key]) => !(labelIsHeading && key === \"label\"),\n );\n const sessionLink = (id: string) =>\n renderLink({ to: getSessionHref(id), children: shortId(id), className: LINK_CLASS, title: id, key: id });\n\n return (\n <header\n className={cn(\"space-y-3 rounded-md border border-border bg-card p-3\", className)}\n data-slot=\"session-header\"\n >\n <div className=\"flex flex-wrap items-start justify-between gap-3\">\n <div className=\"min-w-0 space-y-2\">\n <div className=\"flex flex-wrap items-center gap-2\">\n <h2 className=\"truncate text-base font-semibold\">\n {title ?? session.labels?.label ?? session.profile}\n </h2>\n <Badge tone={SESSION_STATE_TONES[session.state]} size=\"sm\">\n {session.state}\n </Badge>\n {session.unresponsive && (\n <Badge tone=\"warning\" variant=\"outline\" size=\"sm\" icon={UiWarningTriangle}>\n unresponsive\n </Badge>\n )}\n {countingDown && (\n <span className=\"inline-flex items-center gap-1 text-xs text-muted-foreground\">\n <Icon icon={UiClockCountdown} className=\"size-3.5\" />\n {formatSessionCountdown(session.stopAt!, now)}\n </span>\n )}\n </div>\n <div className=\"flex flex-wrap items-center gap-x-4 gap-y-1 text-xs text-muted-foreground\">\n <span className=\"font-mono\">{session.profile}</span>\n {session.events && <span className=\"font-mono\">Event kind: {session.events.kind}</span>}\n <span className=\"inline-flex items-center gap-1\">\n <Icon icon={UiServer} className=\"size-3.5\" />\n {`${session.owner.host} · pid ${session.owner.pid}`}\n </span>\n {session.principal && <span>by {session.principal}</span>}\n <span>{session.eventCount.toLocaleString()} events</span>\n {session.handle && <span className=\"font-mono\">{session.handle}</span>}\n {!active && session.stopReason && <span>{session.stopReason}</span>}\n </div>\n {labels.length > 0 && (\n <ul role=\"list\" className=\"flex flex-wrap gap-1\" aria-label=\"Labels\">\n {labels.map(([key, value]) => (\n <li key={key}>\n <Badge tone=\"neutral\" variant=\"outline\" size=\"xs\">\n {`${key}=${value}`}\n </Badge>\n </li>\n ))}\n </ul>\n )}\n {(session.restartOf || (session.restartedAs?.length ?? 0) > 0) && (\n <div className=\"flex flex-wrap items-center gap-x-4 gap-y-1 text-xs\">\n {session.restartOf && (\n <span>\n Restart of {sessionLink(session.restartOf)}\n </span>\n )}\n {session.restartedAs && session.restartedAs.length > 0 && (\n <span className=\"inline-flex flex-wrap items-center gap-1\">\n Restarted as {session.restartedAs.map(sessionLink)}\n </span>\n )}\n </div>\n )}\n {session.metadata?.map((entry) => (\n <details key={entry.name} className=\"group text-xs\" data-slot=\"session-metadata\">\n <summary className=\"inline-flex cursor-pointer list-none items-center gap-1 text-muted-foreground hover:text-foreground\">\n <Icon icon={UiChevronRight} className=\"size-3.5 transition-transform group-open:rotate-90\" />\n {entry.label}\n {entry.language && (\n <Badge tone=\"neutral\" variant=\"outline\" size=\"xs\" className=\"uppercase\">\n {entry.language}\n </Badge>\n )}\n </summary>\n <CodeBlock\n language={entry.language ?? \"text\"}\n source={entry.value}\n copyable\n className=\"mt-2\"\n />\n </details>\n ))}\n </div>\n <SessionHeaderControls\n session={session}\n onStop={onStop}\n onExtend={onExtend}\n onRestart={onRestart}\n mutating={mutating}\n renderConfirm={renderConfirm}\n durationPresetsMs={durationPresetsMs}\n pendingAction={pendingAction}\n />\n </div>\n <SessionHeaderNotices session={session} active={active} actionError={actionError} />\n </header>\n );\n}\n\nfunction SessionHeaderNotices({\n session,\n active,\n actionError,\n}: {\n session: SessionInfo;\n active: boolean;\n actionError: unknown;\n}) {\n const eventsLost = session.events !== undefined && !session.eventsAvailable;\n const uncontrolled = active && !session.controllable;\n const actionFailed = actionError !== undefined && actionError !== null;\n if (!actionFailed && !session.error && !session.warning && !eventsLost && !uncontrolled) return null;\n return (\n <div className=\"space-y-2\">\n {actionFailed && (\n <Callout variant=\"caution\" label=\"Action failed\">\n {actionError instanceof Error ? actionError.message : String(actionError)}\n </Callout>\n )}\n {session.error && (\n <Callout variant=\"caution\" label=\"Error\">\n {session.error}\n </Callout>\n )}\n {session.warning && (\n <Callout variant=\"warning\" label=\"Warning\">\n {session.warning}\n </Callout>\n )}\n {eventsLost && session.events && (\n <Callout variant=\"warning\" label=\"Events unavailable\">\n {`Events were ${formatSessionStoreLocation(session.events.store)}; this server cannot read that store.`}\n </Callout>\n )}\n {uncontrolled && (\n <Callout variant=\"note\" label=\"Read only\">\n {`Controlled by ${session.owner.host} (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AA,IAAA,CAACA,gBAAAA,SAAD;IAAS,SAAQ;IAAU,OAAM;IAC9B,UAAA,QAAQ;GACF,CAAA;GAEV,QAAQ,WACP,iBAAA,GAAA,kBAAA,IAAA,CAACA,gBAAAA,SAAD;IAAS,SAAQ;IAAU,OAAM;IAC9B,UAAA,QAAQ;GACF,CAAA;GAEV,cAAc,QAAQ,UACrB,iBAAA,GAAA,kBAAA,IAAA,CAACA,gBAAAA,SAAD;IAAS,SAAQ;IAAU,OAAM;IAC9B,UAAA,eAAeC,2BAAAA,2BAA2B,QAAQ,OAAO,KAAK,EAAE;GAC1D,CAAA;GAEV,gBACC,iBAAA,GAAA,kBAAA,IAAA,CAACD,gBAAAA,SAAD;IAAS,SAAQ;IAAO,OAAM;IAC3B,UAAA,iBAAiB,QAAQ,MAAM,KAAK,QAAQ,QAAQ,MAAM,IAAI;GACxD,CAAA;EAER;;AAET"}
|
|
1
|
+
{"version":3,"file":"SessionHeader.cjs","names":["DEFAULT_SESSION_DURATION_PRESETS_MS","isSessionTerminal","useResourceClock","cn","Badge","SESSION_STATE_TONES","UiWarningTriangle","Icon","UiClockCountdown","formatSessionCountdown","UiServer","UiChevronRight","CodeBlock","SessionHeaderControls","Callout","formatSessionStoreLocation"],"sources":["../../src/rpc/SessionHeader.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { Badge } from \"../data/Badge\";\nimport { Callout } from \"../data/Callout\";\nimport { CodeBlock } from \"../data/CodeBlock\";\nimport { Icon } from \"../data/Icon\";\nimport { useResourceClock } from \"../hooks/use-resource-clock\";\nimport { UiChevronRight, UiClockCountdown, UiServer, UiWarningTriangle } from \"../icons\";\nimport { cn } from \"../lib/utils\";\nimport type { RenderLink } from \"./EndpointList\";\nimport {\n DEFAULT_SESSION_DURATION_PRESETS_MS,\n SESSION_STATE_TONES,\n formatSessionCountdown,\n formatSessionStoreLocation,\n} from \"./sessionHeaderModel\";\nimport { SessionHeaderControls, type SessionConfirmRenderArgs } from \"./SessionHeaderControls\";\nimport { isSessionTerminal, type SessionInfo } from \"./sessionTypes\";\nimport type { SessionAction } from \"./useSession\";\n\nexport type { SessionConfirmRenderArgs } from \"./SessionHeaderControls\";\n\nexport type SessionHeaderProps = {\n session: SessionInfo;\n /** Route of another session's page, for `restartOf` / `restartedAs` links. */\n getSessionHref: (id: string) => string;\n /** Renders those links with the host's router. Defaults to a plain anchor. */\n renderLink?: RenderLink;\n onStop: () => void;\n onExtend: (durationMs: number) => void;\n /** Called with the run's own `params.durationMs`, or the duration picked when it had none. */\n onRestart: (options: { durationMs: number }) => void;\n /**\n * The session's kind changes the target's behaviour (a class patch, say):\n * Stop, Extend and Restart each wait for confirmation first.\n */\n mutating?: boolean;\n /** Confirmation slot for a mutating kind. Defaults to a small modal. */\n renderConfirm?: (args: SessionConfirmRenderArgs) => ReactNode;\n /** Durations offered by the Extend and Restart prompts. */\n durationPresetsMs?: readonly number[];\n /** The control request in flight (useSession's `pendingAction`). */\n pendingAction?: SessionAction | null;\n /** The last control request's failure (useSession's `actionError`); rendered until the next action. */\n actionError?: unknown;\n /** Heading; defaults to `labels.label`, then the profile. */\n title?: ReactNode;\n /** The host's own actions, placed beside the session controls on the title row. */\n actions?: ReactNode;\n className?: string;\n};\n\nconst defaultRenderLink: RenderLink = ({ to, children, className, title, key }) => (\n <a key={key} href={to} className={className} title={title}>\n {children}\n </a>\n);\n\nconst LINK_CLASS = \"font-mono text-primary underline-offset-2 hover:underline\";\n\nfunction shortId(id: string): string {\n return id.length > 8 ? id.slice(0, 8) : id;\n}\n\nexport function SessionHeader({\n session,\n getSessionHref,\n renderLink = defaultRenderLink,\n onStop,\n onExtend,\n onRestart,\n mutating = false,\n renderConfirm,\n durationPresetsMs = DEFAULT_SESSION_DURATION_PRESETS_MS,\n pendingAction = null,\n actionError,\n title,\n actions,\n className,\n}: SessionHeaderProps) {\n const active = !isSessionTerminal(session.state);\n const countingDown = active && session.stopAt !== undefined;\n const now = useResourceClock(countingDown);\n // With no title, the `label` label — else the profile — is already the heading.\n const labelIsHeading = title === undefined && session.labels?.label !== undefined;\n const profileIsHeading = title === undefined && session.labels?.label === undefined;\n const labels = Object.entries(session.labels ?? {}).filter(\n ([key]) => !(labelIsHeading && key === \"label\"),\n );\n const sessionLink = (id: string) =>\n renderLink({ to: getSessionHref(id), children: shortId(id), className: LINK_CLASS, title: id, key: id });\n\n return (\n <header\n className={cn(\"space-y-2 rounded-md border border-border bg-card p-3\", className)}\n data-slot=\"session-header\"\n >\n <div className=\"flex flex-wrap items-start gap-3\">\n <div className=\"min-w-0 flex-[1_1_20rem] space-y-1.5\">\n <div className=\"flex flex-wrap items-center gap-2\">\n <h2 className=\"truncate text-base font-semibold\">\n {title ?? session.labels?.label ?? session.profile}\n </h2>\n <Badge tone={SESSION_STATE_TONES[session.state]} size=\"sm\">\n {session.state}\n </Badge>\n {session.unresponsive && (\n <Badge tone=\"warning\" variant=\"outline\" size=\"sm\" icon={UiWarningTriangle}>\n unresponsive\n </Badge>\n )}\n {countingDown && (\n <span className=\"inline-flex items-center gap-1 text-xs text-muted-foreground\">\n <Icon icon={UiClockCountdown} className=\"size-3.5\" />\n {formatSessionCountdown(session.stopAt!, now)}\n </span>\n )}\n </div>\n <div className=\"flex flex-wrap items-center gap-x-4 gap-y-1 text-xs text-muted-foreground\">\n {!profileIsHeading && <span className=\"font-mono\">{session.profile}</span>}\n {session.events && <span className=\"font-mono\">Event kind: {session.events.kind}</span>}\n <span className=\"inline-flex items-center gap-1\">\n <Icon icon={UiServer} className=\"size-3.5\" />\n {`${session.owner.host} · pid ${session.owner.pid}`}\n </span>\n {session.principal && <span>by {session.principal}</span>}\n <span>{session.eventCount.toLocaleString()} events</span>\n {session.handle && <span className=\"font-mono\">{session.handle}</span>}\n {!active && session.stopReason && <span>{session.stopReason}</span>}\n {labels.length > 0 && (\n <ul role=\"list\" className=\"flex flex-wrap gap-1\" aria-label=\"Labels\">\n {labels.map(([key, value]) => (\n <li key={key}>\n <Badge tone=\"neutral\" variant=\"outline\" size=\"xs\">\n {`${key}=${value}`}\n </Badge>\n </li>\n ))}\n </ul>\n )}\n {session.restartOf && (\n <span className=\"text-foreground\">\n Restart of {sessionLink(session.restartOf)}\n </span>\n )}\n {session.restartedAs && session.restartedAs.length > 0 && (\n <span className=\"inline-flex flex-wrap items-center gap-1 text-foreground\">\n Restarted as {session.restartedAs.map(sessionLink)}\n </span>\n )}\n {session.metadata?.map((entry) => (\n // An opened entry takes its own line so the value reads at full width.\n <details key={entry.name} className=\"group open:basis-full\" data-slot=\"session-metadata\">\n <summary className=\"inline-flex cursor-pointer list-none items-center gap-1 hover:text-foreground\">\n <Icon icon={UiChevronRight} className=\"size-3.5 transition-transform group-open:rotate-90\" />\n {entry.label}\n {entry.language && (\n <Badge tone=\"neutral\" variant=\"outline\" size=\"xs\" className=\"uppercase\">\n {entry.language}\n </Badge>\n )}\n </summary>\n {/* Bounded so a long statement scrolls in place instead of pushing the page's rows away. */}\n <div className=\"mt-2 max-h-64 overflow-y-auto text-foreground\" data-slot=\"session-metadata-value\">\n <CodeBlock language={entry.language ?? \"text\"} source={entry.value} copyable />\n </div>\n </details>\n ))}\n </div>\n </div>\n <div className=\"flex min-w-0 max-w-full flex-wrap items-start gap-2 empty:hidden\" data-slot=\"session-header-actions\">\n {actions}\n <SessionHeaderControls\n session={session}\n onStop={onStop}\n onExtend={onExtend}\n onRestart={onRestart}\n mutating={mutating}\n renderConfirm={renderConfirm}\n durationPresetsMs={durationPresetsMs}\n pendingAction={pendingAction}\n />\n </div>\n </div>\n <SessionHeaderNotices session={session} active={active} actionError={actionError} />\n </header>\n );\n}\n\nfunction SessionHeaderNotices({\n session,\n active,\n actionError,\n}: {\n session: SessionInfo;\n active: boolean;\n actionError: unknown;\n}) {\n const eventsLost = session.events !== undefined && !session.eventsAvailable;\n const uncontrolled = active && !session.controllable;\n const actionFailed = actionError !== undefined && actionError !== null;\n if (!actionFailed && !session.error && !session.warning && !eventsLost && !uncontrolled) return null;\n return (\n <div className=\"space-y-2\">\n {actionFailed && (\n <Callout variant=\"caution\" label=\"Action failed\">\n {actionError instanceof Error ? actionError.message : String(actionError)}\n </Callout>\n )}\n {session.error && (\n <Callout variant=\"caution\" label=\"Error\">\n {session.error}\n </Callout>\n )}\n {session.warning && (\n <Callout variant=\"warning\" label=\"Warning\">\n {session.warning}\n </Callout>\n )}\n {eventsLost && session.events && (\n <Callout variant=\"warning\" label=\"Events unavailable\">\n {`Events were ${formatSessionStoreLocation(session.events.store)}; this server cannot read that store.`}\n </Callout>\n )}\n {uncontrolled && (\n <Callout variant=\"note\" label=\"Read only\">\n {`Controlled by ${session.owner.host} (pid ${session.owner.pid}); this server cannot stop or extend it.`}\n </Callout>\n )}\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;AAmDA,IAAM,qBAAiC,EAAE,IAAI,UAAU,WAAW,OAAO,UACvE,iBAAA,GAAA,kBAAA,IAAA,CAAC,KAAD;CAAa,MAAM;CAAe;CAAkB;CACjD;AACA,GAFK,GAEL;AAGL,IAAM,aAAa;AAEnB,SAAS,QAAQ,IAAoB;CACnC,OAAO,GAAG,SAAS,IAAI,GAAG,MAAM,GAAG,CAAC,IAAI;AAC1C;AAEA,SAAgB,cAAc,EAC5B,SACA,gBACA,aAAa,mBACb,QACA,UACA,WACA,WAAW,OACX,eACA,oBAAoBA,2BAAAA,qCACpB,gBAAgB,MAChB,aACA,OACA,SACA,aACqB;CACrB,MAAM,SAAS,CAACC,qBAAAA,kBAAkB,QAAQ,KAAK;CAC/C,MAAM,eAAe,UAAU,QAAQ,WAAW,KAAA;CAClD,MAAM,MAAMC,2BAAAA,iBAAiB,YAAY;CAEzC,MAAM,iBAAiB,UAAU,KAAA,KAAa,QAAQ,QAAQ,UAAU,KAAA;CACxE,MAAM,mBAAmB,UAAU,KAAA,KAAa,QAAQ,QAAQ,UAAU,KAAA;CAC1E,MAAM,SAAS,OAAO,QAAQ,QAAQ,UAAU,CAAC,CAAC,CAAC,CAAC,QACjD,CAAC,SAAS,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actNode;
|
|
34
|
+
/** The host's own actions, placed beside the session controls on the title row. */
|
|
35
|
+
actions?: ReactNode;
|
|
34
36
|
className?: string;
|
|
35
37
|
};
|
|
36
|
-
export declare function SessionHeader({ session, getSessionHref, renderLink, onStop, onExtend, onRestart, mutating, renderConfirm, durationPresetsMs, pendingAction, actionError, title, className, }: SessionHeaderProps): import("react").JSX.Element;
|
|
38
|
+
export declare function SessionHeader({ session, getSessionHref, renderLink, onStop, onExtend, onRestart, mutating, renderConfirm, durationPresetsMs, pendingAction, actionError, title, actions, className, }: SessionHeaderProps): import("react").JSX.Element;
|
|
37
39
|
//# sourceMappingURL=SessionHeader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SessionHeader.d.ts","sourceRoot":"","sources":["../../src/rpc/SessionHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAQvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAOjD,OAAO,EAAyB,KAAK,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AAC/F,OAAO,EAAqB,KAAK,WAAW,EAAE,MAAM,gBAAgB,CAAC;AACrE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAElD,YAAY,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AAExE,MAAM,MAAM,kBAAkB,GAAG;IAC/B,OAAO,EAAE,WAAW,CAAC;IACrB,8EAA8E;IAC9E,cAAc,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,MAAM,CAAC;IACvC,8EAA8E;IAC9E,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,QAAQ,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,8FAA8F;IAC9F,SAAS,EAAE,CAAC,OAAO,EAAE;QAAE,UAAU,EAAE,MAAM,CAA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C9E,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,QAAQ,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,8FAA8F;IAC9F,SAAS,EAAE,CAAC,OAAO,EAAE;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IACrD;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,wEAAwE;IACxE,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,wBAAwB,KAAK,SAAS,CAAC;IAC9D,2DAA2D;IAC3D,iBAAiB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACtC,oEAAoE;IACpE,aAAa,CAAC,EAAE,aAAa,GAAG,IAAI,CAAC;IACrC,uGAAuG;IACvG,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,6DAA6D;IAC7D,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,mFAAmF;IACnF,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAcF,wBAAgB,aAAa,CAAC,EAC5B,OAAO,EACP,cAAc,EACd,UAA8B,EAC9B,MAAM,EACN,QAAQ,EACR,SAAS,EACT,QAAgB,EAChB,aAAa,EACb,iBAAuD,EACvD,aAAoB,EACpB,WAAW,EACX,KAAK,EACL,OAAO,EACP,SAAS,GACV,EAAE,kBAAkB,+BA4GpB"}
|
|
@@ -23,11 +23,12 @@ var LINK_CLASS = "font-mono text-primary underline-offset-2 hover:underline";
|
|
|
23
23
|
function shortId(id) {
|
|
24
24
|
return id.length > 8 ? id.slice(0, 8) : id;
|
|
25
25
|
}
|
|
26
|
-
function SessionHeader({ session, getSessionHref, renderLink = defaultRenderLink, onStop, onExtend, onRestart, mutating = false, renderConfirm, durationPresetsMs = DEFAULT_SESSION_DURATION_PRESETS_MS, pendingAction = null, actionError, title, className }) {
|
|
26
|
+
function SessionHeader({ session, getSessionHref, renderLink = defaultRenderLink, onStop, onExtend, onRestart, mutating = false, renderConfirm, durationPresetsMs = DEFAULT_SESSION_DURATION_PRESETS_MS, pendingAction = null, actionError, title, actions, className }) {
|
|
27
27
|
const active = !isSessionTerminal(session.state);
|
|
28
28
|
const countingDown = active && session.stopAt !== void 0;
|
|
29
29
|
const now = useResourceClock(countingDown);
|
|
30
30
|
const labelIsHeading = title === void 0 && session.labels?.label !== void 0;
|
|
31
|
+
const profileIsHeading = title === void 0 && session.labels?.label === void 0;
|
|
31
32
|
const labels = Object.entries(session.labels ?? {}).filter(([key]) => !(labelIsHeading && key === "label"));
|
|
32
33
|
const sessionLink = (id) => renderLink({
|
|
33
34
|
to: getSessionHref(id),
|
|
@@ -37,122 +38,127 @@ function SessionHeader({ session, getSessionHref, renderLink = defaultRenderLink
|
|
|
37
38
|
key: id
|
|
38
39
|
});
|
|
39
40
|
return /* @__PURE__ */ jsxs("header", {
|
|
40
|
-
className: cn("space-y-
|
|
41
|
+
className: cn("space-y-2 rounded-md border border-border bg-card p-3", className),
|
|
41
42
|
"data-slot": "session-header",
|
|
42
43
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
43
|
-
className: "flex flex-wrap items-start
|
|
44
|
+
className: "flex flex-wrap items-start gap-3",
|
|
44
45
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
45
|
-
className: "min-w-0 space-y-
|
|
46
|
-
children: [
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
tone: "warning",
|
|
61
|
-
variant: "outline",
|
|
62
|
-
size: "sm",
|
|
63
|
-
icon: UiWarningTriangle,
|
|
64
|
-
children: "unresponsive"
|
|
65
|
-
}),
|
|
66
|
-
countingDown && /* @__PURE__ */ jsxs("span", {
|
|
67
|
-
className: "inline-flex items-center gap-1 text-xs text-muted-foreground",
|
|
68
|
-
children: [/* @__PURE__ */ jsx(Icon, {
|
|
69
|
-
icon: UiClockCountdown,
|
|
70
|
-
className: "size-3.5"
|
|
71
|
-
}), formatSessionCountdown(session.stopAt, now)]
|
|
72
|
-
})
|
|
73
|
-
]
|
|
74
|
-
}),
|
|
75
|
-
/* @__PURE__ */ jsxs("div", {
|
|
76
|
-
className: "flex flex-wrap items-center gap-x-4 gap-y-1 text-xs text-muted-foreground",
|
|
77
|
-
children: [
|
|
78
|
-
/* @__PURE__ */ jsx("span", {
|
|
79
|
-
className: "font-mono",
|
|
80
|
-
children: session.profile
|
|
81
|
-
}),
|
|
82
|
-
session.events && /* @__PURE__ */ jsxs("span", {
|
|
83
|
-
className: "font-mono",
|
|
84
|
-
children: ["Event kind: ", session.events.kind]
|
|
85
|
-
}),
|
|
86
|
-
/* @__PURE__ */ jsxs("span", {
|
|
87
|
-
className: "inline-flex items-center gap-1",
|
|
88
|
-
children: [/* @__PURE__ */ jsx(Icon, {
|
|
89
|
-
icon: UiServer,
|
|
90
|
-
className: "size-3.5"
|
|
91
|
-
}), `${session.owner.host} · pid ${session.owner.pid}`]
|
|
92
|
-
}),
|
|
93
|
-
session.principal && /* @__PURE__ */ jsxs("span", { children: ["by ", session.principal] }),
|
|
94
|
-
/* @__PURE__ */ jsxs("span", { children: [session.eventCount.toLocaleString(), " events"] }),
|
|
95
|
-
session.handle && /* @__PURE__ */ jsx("span", {
|
|
96
|
-
className: "font-mono",
|
|
97
|
-
children: session.handle
|
|
98
|
-
}),
|
|
99
|
-
!active && session.stopReason && /* @__PURE__ */ jsx("span", { children: session.stopReason })
|
|
100
|
-
]
|
|
101
|
-
}),
|
|
102
|
-
labels.length > 0 && /* @__PURE__ */ jsx("ul", {
|
|
103
|
-
role: "list",
|
|
104
|
-
className: "flex flex-wrap gap-1",
|
|
105
|
-
"aria-label": "Labels",
|
|
106
|
-
children: labels.map(([key, value]) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(Badge, {
|
|
107
|
-
tone: "neutral",
|
|
46
|
+
className: "min-w-0 flex-[1_1_20rem] space-y-1.5",
|
|
47
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
48
|
+
className: "flex flex-wrap items-center gap-2",
|
|
49
|
+
children: [
|
|
50
|
+
/* @__PURE__ */ jsx("h2", {
|
|
51
|
+
className: "truncate text-base font-semibold",
|
|
52
|
+
children: title ?? session.labels?.label ?? session.profile
|
|
53
|
+
}),
|
|
54
|
+
/* @__PURE__ */ jsx(Badge, {
|
|
55
|
+
tone: SESSION_STATE_TONES[session.state],
|
|
56
|
+
size: "sm",
|
|
57
|
+
children: session.state
|
|
58
|
+
}),
|
|
59
|
+
session.unresponsive && /* @__PURE__ */ jsx(Badge, {
|
|
60
|
+
tone: "warning",
|
|
108
61
|
variant: "outline",
|
|
109
|
-
size: "
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
62
|
+
size: "sm",
|
|
63
|
+
icon: UiWarningTriangle,
|
|
64
|
+
children: "unresponsive"
|
|
65
|
+
}),
|
|
66
|
+
countingDown && /* @__PURE__ */ jsxs("span", {
|
|
67
|
+
className: "inline-flex items-center gap-1 text-xs text-muted-foreground",
|
|
68
|
+
children: [/* @__PURE__ */ jsx(Icon, {
|
|
69
|
+
icon: UiClockCountdown,
|
|
70
|
+
className: "size-3.5"
|
|
71
|
+
}), formatSessionCountdown(session.stopAt, now)]
|
|
72
|
+
})
|
|
73
|
+
]
|
|
74
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
75
|
+
className: "flex flex-wrap items-center gap-x-4 gap-y-1 text-xs text-muted-foreground",
|
|
76
|
+
children: [
|
|
77
|
+
!profileIsHeading && /* @__PURE__ */ jsx("span", {
|
|
78
|
+
className: "font-mono",
|
|
79
|
+
children: session.profile
|
|
80
|
+
}),
|
|
81
|
+
session.events && /* @__PURE__ */ jsxs("span", {
|
|
82
|
+
className: "font-mono",
|
|
83
|
+
children: ["Event kind: ", session.events.kind]
|
|
84
|
+
}),
|
|
85
|
+
/* @__PURE__ */ jsxs("span", {
|
|
86
|
+
className: "inline-flex items-center gap-1",
|
|
87
|
+
children: [/* @__PURE__ */ jsx(Icon, {
|
|
88
|
+
icon: UiServer,
|
|
89
|
+
className: "size-3.5"
|
|
90
|
+
}), `${session.owner.host} · pid ${session.owner.pid}`]
|
|
91
|
+
}),
|
|
92
|
+
session.principal && /* @__PURE__ */ jsxs("span", { children: ["by ", session.principal] }),
|
|
93
|
+
/* @__PURE__ */ jsxs("span", { children: [session.eventCount.toLocaleString(), " events"] }),
|
|
94
|
+
session.handle && /* @__PURE__ */ jsx("span", {
|
|
95
|
+
className: "font-mono",
|
|
96
|
+
children: session.handle
|
|
97
|
+
}),
|
|
98
|
+
!active && session.stopReason && /* @__PURE__ */ jsx("span", { children: session.stopReason }),
|
|
99
|
+
labels.length > 0 && /* @__PURE__ */ jsx("ul", {
|
|
100
|
+
role: "list",
|
|
101
|
+
className: "flex flex-wrap gap-1",
|
|
102
|
+
"aria-label": "Labels",
|
|
103
|
+
children: labels.map(([key, value]) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(Badge, {
|
|
104
|
+
tone: "neutral",
|
|
105
|
+
variant: "outline",
|
|
106
|
+
size: "xs",
|
|
107
|
+
children: `${key}=${value}`
|
|
108
|
+
}) }, key))
|
|
109
|
+
}),
|
|
110
|
+
session.restartOf && /* @__PURE__ */ jsxs("span", {
|
|
111
|
+
className: "text-foreground",
|
|
112
|
+
children: ["Restart of ", sessionLink(session.restartOf)]
|
|
113
|
+
}),
|
|
114
|
+
session.restartedAs && session.restartedAs.length > 0 && /* @__PURE__ */ jsxs("span", {
|
|
115
|
+
className: "inline-flex flex-wrap items-center gap-1 text-foreground",
|
|
117
116
|
children: ["Restarted as ", session.restartedAs.map(sessionLink)]
|
|
118
|
-
})
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
117
|
+
}),
|
|
118
|
+
session.metadata?.map((entry) => /* @__PURE__ */ jsxs("details", {
|
|
119
|
+
className: "group open:basis-full",
|
|
120
|
+
"data-slot": "session-metadata",
|
|
121
|
+
children: [/* @__PURE__ */ jsxs("summary", {
|
|
122
|
+
className: "inline-flex cursor-pointer list-none items-center gap-1 hover:text-foreground",
|
|
123
|
+
children: [
|
|
124
|
+
/* @__PURE__ */ jsx(Icon, {
|
|
125
|
+
icon: UiChevronRight,
|
|
126
|
+
className: "size-3.5 transition-transform group-open:rotate-90"
|
|
127
|
+
}),
|
|
128
|
+
entry.label,
|
|
129
|
+
entry.language && /* @__PURE__ */ jsx(Badge, {
|
|
130
|
+
tone: "neutral",
|
|
131
|
+
variant: "outline",
|
|
132
|
+
size: "xs",
|
|
133
|
+
className: "uppercase",
|
|
134
|
+
children: entry.language
|
|
135
|
+
})
|
|
136
|
+
]
|
|
137
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
138
|
+
className: "mt-2 max-h-64 overflow-y-auto text-foreground",
|
|
139
|
+
"data-slot": "session-metadata-value",
|
|
140
|
+
children: /* @__PURE__ */ jsx(CodeBlock, {
|
|
141
|
+
language: entry.language ?? "text",
|
|
142
|
+
source: entry.value,
|
|
143
|
+
copyable: true
|
|
137
144
|
})
|
|
138
|
-
]
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
pendingAction
|
|
145
|
+
})]
|
|
146
|
+
}, entry.name))
|
|
147
|
+
]
|
|
148
|
+
})]
|
|
149
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
150
|
+
className: "flex min-w-0 max-w-full flex-wrap items-start gap-2 empty:hidden",
|
|
151
|
+
"data-slot": "session-header-actions",
|
|
152
|
+
children: [actions, /* @__PURE__ */ jsx(SessionHeaderControls, {
|
|
153
|
+
session,
|
|
154
|
+
onStop,
|
|
155
|
+
onExtend,
|
|
156
|
+
onRestart,
|
|
157
|
+
mutating,
|
|
158
|
+
renderConfirm,
|
|
159
|
+
durationPresetsMs,
|
|
160
|
+
pendingAction
|
|
161
|
+
})]
|
|
156
162
|
})]
|
|
157
163
|
}), /* @__PURE__ */ jsx(SessionHeaderNotices, {
|
|
158
164
|
session,
|