@flanksource/clicky-ui 0.3.78 → 0.3.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/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/Combobox.cjs +9 -3
- package/dist/components/Combobox.cjs.map +1 -1
- package/dist/components/Combobox.d.ts.map +1 -1
- package/dist/components/Combobox.js +9 -3
- package/dist/components/Combobox.js.map +1 -1
- package/dist/components/ComboboxMenu.cjs +1 -1
- package/dist/components/ComboboxMenu.cjs.map +1 -1
- package/dist/components/ComboboxMenu.js +1 -1
- package/dist/components/ComboboxMenu.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/traces/otel/OtelTraceBrowser.cjs +18 -9
- package/dist/data/traces/otel/OtelTraceBrowser.cjs.map +1 -1
- package/dist/data/traces/otel/OtelTraceBrowser.d.ts.map +1 -1
- package/dist/data/traces/otel/OtelTraceBrowser.js +19 -10
- package/dist/data/traces/otel/OtelTraceBrowser.js.map +1 -1
- package/dist/data/traces/otel/OtelTraceTable.cjs +10 -8
- package/dist/data/traces/otel/OtelTraceTable.cjs.map +1 -1
- package/dist/data/traces/otel/OtelTraceTable.d.ts.map +1 -1
- package/dist/data/traces/otel/OtelTraceTable.js +10 -8
- package/dist/data/traces/otel/OtelTraceTable.js.map +1 -1
- package/dist/data/traces/otel/QueryBar.cjs +6 -5
- package/dist/data/traces/otel/QueryBar.cjs.map +1 -1
- package/dist/data/traces/otel/QueryBar.d.ts.map +1 -1
- package/dist/data/traces/otel/QueryBar.js +6 -5
- package/dist/data/traces/otel/QueryBar.js.map +1 -1
- package/dist/data/traces/otel/browser-state.cjs +17 -4
- package/dist/data/traces/otel/browser-state.cjs.map +1 -1
- package/dist/data/traces/otel/browser-state.d.ts +2 -1
- package/dist/data/traces/otel/browser-state.d.ts.map +1 -1
- package/dist/data/traces/otel/browser-state.js +17 -4
- package/dist/data/traces/otel/browser-state.js.map +1 -1
- package/dist/data/version-info.cjs +3 -3
- package/dist/data/version-info.js +3 -3
- package/dist/data.cjs +1 -0
- package/dist/data.d.ts +1 -1
- package/dist/data.d.ts.map +1 -1
- package/dist/data.js +2 -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/index.cjs +6 -5
- package/dist/index.js +7 -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 +106 -37
- package/dist/profiles/editor/profileEditor.cjs.map +1 -1
- package/dist/profiles/editor/profileEditor.d.ts.map +1 -1
- package/dist/profiles/editor/profileEditor.js +107 -38
- 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 +21 -13
- package/dist/profiles/editor/profileSaveAsDialog.cjs.map +1 -1
- package/dist/profiles/editor/profileSaveAsDialog.d.ts.map +1 -1
- package/dist/profiles/editor/profileSaveAsDialog.js +21 -13
- package/dist/profiles/editor/profileSaveAsDialog.js.map +1 -1
- 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 +8 -6
- 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 +9 -7
- 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 +3 -3
- package/dist/rpc/SessionHeader.cjs.map +1 -1
- package/dist/rpc/SessionHeader.d.ts.map +1 -1
- package/dist/rpc/SessionHeader.js +3 -3
- 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 +4982 -4979
- package/dist/runtime/importmap.json +2168 -2146
- 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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profileFieldValueEditor.js","names":["_Fragment"],"sources":["../../../src/profiles/fields/profileFieldValueEditor.tsx"],"sourcesContent":["import { useMemo, useState } from \"react\";\nimport { Combobox } from \"../../components/Combobox\";\nimport { JSONPathField } from \"../../components/JSONPathField\";\nimport { SegmentedControl } from \"../../components/SegmentedControl\";\nimport { UiBraces, UiColumns, UiDatabase, UiFunctionSquare } from \"../../icons\";\nimport { CelTestButton } from \"../cel/celEditor\";\nimport { celFieldAccess } from \"../cel/celPath\";\nimport {\n evaluateJsonPath,\n useJsonPathSampleRows,\n} from \"../query/jsonPathSample\";\nimport {\n inferredFilterKind,\n patchColumnFilter,\n type Patch,\n type ProfileColumn,\n} from \"../wizard/profileWizardModel\";\nimport { EditorField, inputClassName } from \"./profileFieldControls\";\nimport {\n fieldModeLabel,\n patchForValueMode,\n valueModeOf,\n type ValueMode,\n} from \"./profileFieldValueMode\";\n\n/**\n * The starting points offered before a value is in hand.\n *\n * This header has only the field's name to go on — the sampled value lives in\n * the Test dialog, which is where the examples that fit it are offered. So\n * these stay deliberately generic and lead there.\n */\nfunction celExamples(\n fieldName: string\n): Array<{ label: string; expression: string }> {\n const field = celFieldAccess(fieldName);\n return [\n { label: \"Use the entire row\", expression: \"row\" },\n { label: `Read ${fieldName}`, expression: field.reference },\n {\n label: `Default ${fieldName} when missing`,\n expression: `${field.presence} ? ${field.reference} : \"\"`,\n },\n {\n label: `Convert ${fieldName} to text`,\n expression: `string(${field.reference})`,\n },\n {\n label: `Scale ${fieldName} by 1,000`,\n expression: `${field.reference} / 1000.0`,\n },\n ];\n}\n\n/**\n * How the column's value is produced: read off a row key, computed by CEL, or\n * selected by a JSONPath. They are alternatives, so one segmented control picks\n * the mode and only that mode's input is shown; switching clears the keys of the\n * others, so a column never carries two.\n *\n * The filter's field (`filter.field`) is shown here too, since it is where the\n * value comes from: an optional override in field mode, where the server filters\n * on the source, and what makes the value filterable in CEL and JSONPath modes.\n */\nexport function ProfileFieldValueEditor({\n field,\n columns,\n providerType,\n onChange,\n}: {\n field: ProfileColumn;\n columns: 1 | 2;\n providerType?: string | undefined;\n onChange: (patch: Patch<ProfileColumn>) => void;\n}) {\n const rows = useJsonPathSampleRows();\n const state = valueModeOf(field);\n // The keys say which mode a column is in, but a column with none of them set —\n // a fresh CEL choice, before anything is typed — says nothing. The choice is\n // remembered for that column until its keys take over.\n const [chosen, setChosen] = useState<{ name: string; mode: ValueMode }>();\n const mode =\n state.mode === \"field\" && chosen?.name === field.name\n ? chosen.mode\n : state.mode;\n const fieldLabel = fieldModeLabel(providerType);\n const wide = columns === 2 ? \"sm:col-span-2\" : \"\";\n\n return (\n <>\n <div className=\"grid content-start gap-2\">\n <span className=\"text-sm font-medium\">Value source</span>\n <SegmentedControl<ValueMode | \"invalid\">\n aria-label=\"Value source\"\n size=\"sm\"\n // \"invalid\" matches no segment, so a column carrying two modes has none\n // selected rather than one picked for it.\n value={mode}\n options={[\n { id: \"field\", label: fieldLabel, icon: <UiColumns /> },\n { id: \"cel\", label: \"CEL\", icon: <UiFunctionSquare /> },\n { id: \"jsonpath\", label: \"JSONPath\", icon: <UiBraces /> },\n ]}\n onChange={(target) => {\n if (target === \"invalid\") return;\n setChosen({ name: field.name, mode: target });\n onChange(patchForValueMode({ current: state, target }));\n }}\n />\n {state.mode === \"invalid\" ? (\n <p role=\"alert\" className=\"text-xs text-destructive\">\n {state.message}\n </p>\n ) : null}\n {mode === \"field\" ? (\n <>\n <FieldNameInput\n field={field}\n label={fieldLabel}\n onChange={onChange}\n />\n <FilterFieldInput\n field={field}\n variant=\"override\"\n onChange={onChange}\n />\n </>\n ) : null}\n </div>\n {/* The expression editors need the room, so they take the whole row\n beneath the name and the source control rather than half of it. */}\n {mode === \"cel\" ? (\n <div className={`grid gap-2 ${wide}`}>\n <CelInput field={field} rows={rows} onChange={onChange} />\n <FilterFieldInput\n field={field}\n variant=\"computed\"\n onChange={onChange}\n />\n </div>\n ) : null}\n {mode === \"jsonpath\" ? (\n <div className={`grid gap-2 ${wide}`}>\n <JsonPathInput field={field} rows={rows} onChange={onChange} />\n <FilterFieldInput\n field={field}\n variant=\"computed\"\n onChange={onChange}\n />\n </div>\n ) : null}\n </>\n );\n}\n\n/** Whether the column offers a filter at all: not switched off, and of a type\n * that has a control. */\nfunction filterOffered(field: ProfileColumn): boolean {\n const filter = field.filter ?? {};\n if (filter.disabled || filter.kind === \"none\") return false;\n return (filter.kind ?? inferredFilterKind(field)) !== \"none\";\n}\n\n/**\n * The filter's `filter.field`, shown where it belongs to the value.\n *\n * For a plain field read the server filters on the source itself, so there is\n * nothing to enter and only a differing field — an analyzed text field filtered\n * through its `.keyword` sibling — is shown, as an override. For a CEL or\n * JSONPath value there is no field of its own to infer, so this is what makes it\n * filterable at all. Either way it is the same stored `filter.field`.\n */\nfunction FilterFieldInput({\n field,\n variant,\n onChange,\n}: {\n field: ProfileColumn;\n variant: \"override\" | \"computed\";\n onChange: (patch: Patch<ProfileColumn>) => void;\n}) {\n const [opened, setOpened] = useState<string>();\n const stored = field.filter?.field;\n const label =\n variant === \"computed\" ? \"Filter on field\" : \"Filter on a different field\";\n const differs = Boolean(stored) && stored !== (field.source || field.name);\n if (!filterOffered(field)) return null;\n if (variant === \"override\" && !differs && opened !== field.name) {\n return (\n <button\n type=\"button\"\n className=\"justify-self-start text-xs text-primary hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring\"\n onClick={() => setOpened(field.name)}\n >\n Filter on a different field…\n </button>\n );\n }\n return (\n <EditorField\n label={label}\n icon={<UiDatabase />}\n help={\n variant === \"computed\"\n ? \"The indexed field the filter narrows on. A computed value has no field of its own, so filtering is off without it.\"\n : \"Filter on another field than the one this column reads, such as the .keyword sibling of an analyzed text field. Clear it to filter on the source again.\"\n }\n >\n <input\n aria-label={label}\n value={stored ?? \"\"}\n className={inputClassName}\n placeholder={\n variant === \"computed\"\n ? \"Required to filter this value\"\n : field.source || field.name\n }\n onChange={(event) =>\n onChange({\n filter: patchColumnFilter(field.filter, {\n field: event.target.value || undefined,\n }),\n })\n }\n />\n {variant === \"computed\" && !stored ? (\n <span className=\"text-xs font-normal text-muted-foreground\">\n Filtering is off without it.\n </span>\n ) : null}\n </EditorField>\n );\n}\n\nfunction FieldNameInput({\n field,\n label,\n onChange,\n}: {\n field: ProfileColumn;\n label: string;\n onChange: (patch: Patch<ProfileColumn>) => void;\n}) {\n const rows = useJsonPathSampleRows();\n const options = useMemo(\n () => sampledFieldNames(rows).map((name) => ({ value: name, label: name })),\n [rows]\n );\n return (\n <EditorField\n label={label}\n icon={<UiColumns />}\n help=\"The row key the value is read from, copied into the name; blank reads the name itself. Suggestions come from the sample.\"\n >\n <Combobox\n ariaLabel={label}\n value={field.source ?? \"\"}\n options={options}\n placeholder={field.name}\n onChange={(next) => onChange({ source: next || undefined })}\n />\n </EditorField>\n );\n}\n\nfunction CelInput({\n field,\n rows,\n onChange,\n}: {\n field: ProfileColumn;\n rows: unknown[];\n onChange: (patch: Patch<ProfileColumn>) => void;\n}) {\n return (\n <div className=\"grid gap-1.5 text-sm font-medium\">\n <div className=\"flex items-center justify-between gap-2\">\n <span className=\"flex items-center gap-2\">\n <UiFunctionSquare className=\"shrink-0 text-[15px] text-muted-foreground\" />\n CEL expression\n </span>\n <span className=\"flex items-center gap-2\">\n <select\n aria-label=\"CEL examples\"\n value=\"\"\n className=\"h-8 rounded-md border border-input bg-background px-2 text-xs font-normal outline-none focus:border-primary focus:ring-2 focus:ring-primary/15\"\n onChange={(event) => onChange({ cel: event.target.value })}\n >\n <option value=\"\">Examples</option>\n {celExamples(field.name).map((example) => (\n <option key={example.label} value={example.expression}>\n {example.label}\n </option>\n ))}\n </select>\n <CelTestButton\n value={field.cel ?? \"\"}\n scope=\"row\"\n rows={rows}\n title={field.name}\n onChange={(next) => onChange({ cel: next || undefined })}\n />\n </span>\n </div>\n <textarea\n aria-label=\"CEL expression\"\n rows={4}\n value={field.cel ?? \"\"}\n className={`${inputClassName} resize-y font-mono text-xs`}\n placeholder=\"Expression computing the value from row\"\n onChange={(event) => onChange({ cel: event.target.value || undefined })}\n />\n <span className=\"text-xs font-normal text-muted-foreground\">\n Computes the value from row.\n </span>\n </div>\n );\n}\n\nfunction JsonPathInput({\n field,\n rows,\n onChange,\n}: {\n field: ProfileColumn;\n rows: unknown[];\n onChange: (patch: Patch<ProfileColumn>) => void;\n}) {\n return (\n <EditorField\n label=\"JSONPath\"\n icon={<UiBraces />}\n help=\"Path computing the value, rooted at the row or at the Source a pick sets.\"\n >\n <JSONPathField\n aria-label=\"JSONPath\"\n value={field.jsonpath ?? \"\"}\n onChange={(next) => onChange({ jsonpath: next || undefined })}\n // A path picked out of a JSON-encoded column sets the Source it needs in\n // the same edit rather than leaving the author to pair the two by hand.\n // A path picked outside one clears it: alongside a jsonpath, Source is\n // the root, and a stale root re-roots the new path at a column it was\n // never written against.\n onSelectPath={(next, { root }) =>\n onChange({ jsonpath: next || undefined, source: root })\n }\n {...(field.source ? { source: field.source } : {})}\n {...(rows.length === 0 ? {} : { json: rows[0], rows })}\n evaluate={evaluateJsonPath}\n />\n </EditorField>\n );\n}\n\n/** The keys the sampled rows carry, nested documents as dotted paths — the form\n * the query engine resolves a source by. */\nfunction sampledFieldNames(rows: unknown[]): string[] {\n const names = new Set<string>();\n const visit = (node: unknown, prefix: string, depth: number) => {\n if (typeof node !== \"object\" || node === null || Array.isArray(node))\n return;\n for (const [key, value] of Object.entries(node)) {\n const path = prefix ? `${prefix}.${key}` : key;\n names.add(path);\n if (depth < 3) visit(value, path, depth + 1);\n }\n };\n for (const row of rows.slice(0, 20)) visit(row, \"\", 1);\n return [...names];\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAgCA,SAAS,YACP,WAC8C;CAC9C,MAAM,QAAQ,eAAe,SAAS;CACtC,OAAO;EACL;GAAE,OAAO;GAAsB,YAAY;EAAM;EACjD;GAAE,OAAO,QAAQ;GAAa,YAAY,MAAM;EAAU;EAC1D;GACE,OAAO,WAAW,UAAU;GAC5B,YAAY,GAAG,MAAM,SAAS,KAAK,MAAM,UAAU;EACrD;EACA;GACE,OAAO,WAAW,UAAU;GAC5B,YAAY,UAAU,MAAM,UAAU;EACxC;EACA;GACE,OAAO,SAAS,UAAU;GAC1B,YAAY,GAAG,MAAM,UAAU;EACjC;CACF;AACF;;;;;;;;;;;AAYA,SAAgB,wBAAwB,EACtC,OACA,SACA,cACA,YAMC;CACD,MAAM,OAAO,sBAAsB;CACnC,MAAM,QAAQ,YAAY,KAAK;CAI/B,MAAM,CAAC,QAAQ,aAAa,SAA4C;CACxE,MAAM,OACJ,MAAM,SAAS,WAAW,QAAQ,SAAS,MAAM,OAC7C,OAAO,OACP,MAAM;CACZ,MAAM,aAAa,eAAe,YAAY;CAC9C,MAAM,OAAO,YAAY,IAAI,kBAAkB;CAE/C,OACE,qBAAAA,YAAA,EAAA,UAAA;EACE,qBAAC,OAAD;GAAK,WAAU;GA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SAAS,cAAc,EACrB,OACA,MACA,YAKC;CACD,OACE,oBAAC,aAAD;EACE,OAAM;EACN,MAAM,oBAAC,UAAD,CAAW,CAAA;EACjB,MAAK;EAEL,UAAA,oBAAC,eAAD;GACE,cAAW;GACX,OAAO,MAAM,YAAY;GACzB,WAAW,SAAS,SAAS,EAAE,UAAU,QAAQ,KAAA,EAAU,CAAC;GAM5D,eAAe,MAAM,EAAE,WACrB,SAAS;IAAE,UAAU,QAAQ,KAAA;IAAW,QAAQ;GAAK,CAAC;GAExD,GAAK,MAAM,SAAS,EAAE,QAAQ,MAAM,OAAO,IAAI,CAAC;GAChD,GAAK,KAAK,WAAW,IAAI,CAAC,IAAI;IAAE,MAAM,KAAK;IAAI;GAAK;GACpD,UAAU;EACX,CAAA;CACU,CAAA;AAEjB;;;AAIA,SAAS,kBAAkB,MAA2B;CACpD,MAAM,wBAAQ,IAAI,IAAY;CAC9B,MAAM,SAAS,MAAe,QAAgB,UAAkB;EAC9D,IAAI,OAAO,SAAS,YAAY,SAAS,QAAQ,MAAM,QAAQ,IAAI,GACjE;EACF,KAAK,MAAM,CAAC,KAAK,UAAU,OAAO,QAAQ,IAAI,GAAG;GAC/C,MAAM,OAAO,SAAS,GAAG,OAAO,GAAG,QAAQ;GAC3C,MAAM,IAAI,IAAI;GACd,IAAI,QAAQ,GAAG,MAAM,OAAO,MAAM,QAAQ,CAAC;EAC7C;CACF;CACA,KAAK,MAAM,OAAO,KAAK,MAAM,GAAG,EAAE,GAAG,MAAM,KAAK,IAAI,CAAC;CACrD,OAAO,CAAC,GAAG,KAAK;AAClB"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
// src/profiles/fields/profileFieldValueMode.ts
|
|
2
|
+
var OWNED_KEYS = {
|
|
3
|
+
field: ["source"],
|
|
4
|
+
cel: ["cel"],
|
|
5
|
+
jsonpath: ["jsonpath", "source"]
|
|
6
|
+
};
|
|
7
|
+
/** The keys only one mode uses. `source` is left out: it is shared, so it never
|
|
8
|
+
* carries across a switch. */
|
|
9
|
+
var EXCLUSIVE_KEYS = {
|
|
10
|
+
field: [],
|
|
11
|
+
cel: ["cel"],
|
|
12
|
+
jsonpath: ["jsonpath"]
|
|
13
|
+
};
|
|
14
|
+
var ALL_KEYS = [
|
|
15
|
+
"cel",
|
|
16
|
+
"jsonpath",
|
|
17
|
+
"source"
|
|
18
|
+
];
|
|
19
|
+
/** The mode a stored column is in, or why it is in none: a column carrying keys
|
|
20
|
+
* of two modes is reported, never resolved by picking one. */
|
|
21
|
+
function valueModeOf(column) {
|
|
22
|
+
const cel = Boolean(column.cel);
|
|
23
|
+
const jsonpath = Boolean(column.jsonpath);
|
|
24
|
+
const source = Boolean(column.source);
|
|
25
|
+
if (cel && (jsonpath || source)) {
|
|
26
|
+
const keys = ALL_KEYS.filter((key) => Boolean(column[key]));
|
|
27
|
+
return {
|
|
28
|
+
mode: "invalid",
|
|
29
|
+
keys,
|
|
30
|
+
message: `This column sets ${keys.join(", ")} together; the server rejects that. Choose how its value is produced to keep one.`
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
if (cel) return { mode: "cel" };
|
|
34
|
+
if (jsonpath) return { mode: "jsonpath" };
|
|
35
|
+
return { mode: "field" };
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* The patch that moves a column to `target`, clearing every key the target does
|
|
39
|
+
* not own. The new mode starts empty — including `source`, whose meaning changes
|
|
40
|
+
* between field and jsonpath — except from an invalid column, where the target's
|
|
41
|
+
* own keys are what the author chose to keep.
|
|
42
|
+
*/
|
|
43
|
+
function patchForValueMode({ current, target }) {
|
|
44
|
+
if (current.mode === target) return {};
|
|
45
|
+
const keep = current.mode === "invalid" ? OWNED_KEYS[target] : EXCLUSIVE_KEYS[target];
|
|
46
|
+
return Object.fromEntries(ALL_KEYS.filter((key) => !keep.includes(key)).map((key) => [key, void 0]));
|
|
47
|
+
}
|
|
48
|
+
/** What field mode is called for the provider the column is read from. */
|
|
49
|
+
function fieldModeLabel(providerType) {
|
|
50
|
+
switch (providerType) {
|
|
51
|
+
case "opensearch":
|
|
52
|
+
case "opentelemetry": return "OpenSearch field";
|
|
53
|
+
case "sql": return "Column";
|
|
54
|
+
default: return "Field";
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
exports.fieldModeLabel = fieldModeLabel;
|
|
58
|
+
exports.patchForValueMode = patchForValueMode;
|
|
59
|
+
exports.valueModeOf = valueModeOf;
|
|
60
|
+
|
|
61
|
+
//# sourceMappingURL=profileFieldValueMode.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profileFieldValueMode.cjs","names":[],"sources":["../../../src/profiles/fields/profileFieldValueMode.ts"],"sourcesContent":["import type { Patch, ProfileColumn } from \"../wizard/profileWizardModel\";\n\n/**\n * How a column's value is produced: read off a row key, computed by CEL, or\n * selected by a JSONPath. The three are alternatives — commons-db's\n * ColumnDef.Validate rejects source with cel, and cel with jsonpath.\n *\n * `source` belongs to two modes with different meanings: in field mode it is the\n * row key the column is read from, in jsonpath mode it is the root the path is\n * evaluated against. Source with jsonpath is therefore one mode, not a conflict.\n */\nexport type ValueMode = \"field\" | \"cel\" | \"jsonpath\";\n\nexport type ValueModeState =\n | { mode: ValueMode }\n | { mode: \"invalid\"; keys: string[]; message: string };\n\ntype ValueKey = \"source\" | \"cel\" | \"jsonpath\";\n\nconst OWNED_KEYS: Record<ValueMode, ValueKey[]> = {\n field: [\"source\"],\n cel: [\"cel\"],\n jsonpath: [\"jsonpath\", \"source\"],\n};\n\n/** The keys only one mode uses. `source` is left out: it is shared, so it never\n * carries across a switch. */\nconst EXCLUSIVE_KEYS: Record<ValueMode, ValueKey[]> = {\n field: [],\n cel: [\"cel\"],\n jsonpath: [\"jsonpath\"],\n};\n\nconst ALL_KEYS: ValueKey[] = [\"cel\", \"jsonpath\", \"source\"];\n\n/** The mode a stored column is in, or why it is in none: a column carrying keys\n * of two modes is reported, never resolved by picking one. */\nexport function valueModeOf(column: ProfileColumn): ValueModeState {\n const cel = Boolean(column.cel);\n const jsonpath = Boolean(column.jsonpath);\n const source = Boolean(column.source);\n if (cel && (jsonpath || source)) {\n const keys = ALL_KEYS.filter((key) => Boolean(column[key]));\n return {\n mode: \"invalid\",\n keys,\n message: `This column sets ${keys.join(\", \")} together; the server rejects that. Choose how its value is produced to keep one.`,\n };\n }\n if (cel) return { mode: \"cel\" };\n if (jsonpath) return { mode: \"jsonpath\" };\n return { mode: \"field\" };\n}\n\n/**\n * The patch that moves a column to `target`, clearing every key the target does\n * not own. The new mode starts empty — including `source`, whose meaning changes\n * between field and jsonpath — except from an invalid column, where the target's\n * own keys are what the author chose to keep.\n */\nexport function patchForValueMode({\n current,\n target,\n}: {\n current: ValueModeState;\n target: ValueMode;\n}): Patch<ProfileColumn> {\n if (current.mode === target) return {};\n const keep =\n current.mode === \"invalid\" ? OWNED_KEYS[target] : EXCLUSIVE_KEYS[target];\n return Object.fromEntries(\n ALL_KEYS.filter((key) => !keep.includes(key)).map((key) => [key, undefined]),\n ) as Patch<ProfileColumn>;\n}\n\n/** What field mode is called for the provider the column is read from. */\nexport function fieldModeLabel(providerType: string | undefined): string {\n switch (providerType) {\n case \"opensearch\":\n case \"opentelemetry\":\n return \"OpenSearch field\";\n case \"sql\":\n return \"Column\";\n default:\n return \"Field\";\n }\n}\n"],"mappings":";AAmBA,IAAM,aAA4C;CAChD,OAAO,CAAC,QAAQ;CAChB,KAAK,CAAC,KAAK;CACX,UAAU,CAAC,YAAY,QAAQ;AACjC;;;AAIA,IAAM,iBAAgD;CACpD,OAAO,CAAC;CACR,KAAK,CAAC,KAAK;CACX,UAAU,CAAC,UAAU;AACvB;AAEA,IAAM,WAAuB;CAAC;CAAO;CAAY;AAAQ;;;AAIzD,SAAgB,YAAY,QAAuC;CACjE,MAAM,MAAM,QAAQ,OAAO,GAAG;CAC9B,MAAM,WAAW,QAAQ,OAAO,QAAQ;CACxC,MAAM,SAAS,QAAQ,OAAO,MAAM;CACpC,IAAI,QAAQ,YAAY,SAAS;EAC/B,MAAM,OAAO,SAAS,QAAQ,QAAQ,QAAQ,OAAO,IAAI,CAAC;EAC1D,OAAO;GACL,MAAM;GACN;GACA,SAAS,oBAAoB,KAAK,KAAK,IAAI,EAAE;EAC/C;CACF;CACA,IAAI,KAAK,OAAO,EAAE,MAAM,MAAM;CAC9B,IAAI,UAAU,OAAO,EAAE,MAAM,WAAW;CACxC,OAAO,EAAE,MAAM,QAAQ;AACzB;;;;;;;AAQA,SAAgB,kBAAkB,EAChC,SACA,UAIuB;CACvB,IAAI,QAAQ,SAAS,QAAQ,OAAO,CAAC;CACrC,MAAM,OACJ,QAAQ,SAAS,YAAY,WAAW,UAAU,eAAe;CACnE,OAAO,OAAO,YACZ,SAAS,QAAQ,QAAQ,CAAC,KAAK,SAAS,GAAG,CAAC,CAAC,CAAC,KAAK,QAAQ,CAAC,KAAK,KAAA,CAAS,CAAC,CAC7E;AACF;;AAGA,SAAgB,eAAe,cAA0C;CACvE,QAAQ,cAAR;EACE,KAAK;EACL,KAAK,iBACH,OAAO;EACT,KAAK,OACH,OAAO;EACT,SACE,OAAO;CACX;AACF"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Patch, ProfileColumn } from '../wizard/profileWizardModel.js';
|
|
2
|
+
/**
|
|
3
|
+
* How a column's value is produced: read off a row key, computed by CEL, or
|
|
4
|
+
* selected by a JSONPath. The three are alternatives — commons-db's
|
|
5
|
+
* ColumnDef.Validate rejects source with cel, and cel with jsonpath.
|
|
6
|
+
*
|
|
7
|
+
* `source` belongs to two modes with different meanings: in field mode it is the
|
|
8
|
+
* row key the column is read from, in jsonpath mode it is the root the path is
|
|
9
|
+
* evaluated against. Source with jsonpath is therefore one mode, not a conflict.
|
|
10
|
+
*/
|
|
11
|
+
export type ValueMode = "field" | "cel" | "jsonpath";
|
|
12
|
+
export type ValueModeState = {
|
|
13
|
+
mode: ValueMode;
|
|
14
|
+
} | {
|
|
15
|
+
mode: "invalid";
|
|
16
|
+
keys: string[];
|
|
17
|
+
message: string;
|
|
18
|
+
};
|
|
19
|
+
/** The mode a stored column is in, or why it is in none: a column carrying keys
|
|
20
|
+
* of two modes is reported, never resolved by picking one. */
|
|
21
|
+
export declare function valueModeOf(column: ProfileColumn): ValueModeState;
|
|
22
|
+
/**
|
|
23
|
+
* The patch that moves a column to `target`, clearing every key the target does
|
|
24
|
+
* not own. The new mode starts empty — including `source`, whose meaning changes
|
|
25
|
+
* between field and jsonpath — except from an invalid column, where the target's
|
|
26
|
+
* own keys are what the author chose to keep.
|
|
27
|
+
*/
|
|
28
|
+
export declare function patchForValueMode({ current, target, }: {
|
|
29
|
+
current: ValueModeState;
|
|
30
|
+
target: ValueMode;
|
|
31
|
+
}): Patch<ProfileColumn>;
|
|
32
|
+
/** What field mode is called for the provider the column is read from. */
|
|
33
|
+
export declare function fieldModeLabel(providerType: string | undefined): string;
|
|
34
|
+
//# sourceMappingURL=profileFieldValueMode.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profileFieldValueMode.d.ts","sourceRoot":"","sources":["../../../src/profiles/fields/profileFieldValueMode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAEzE;;;;;;;;GAQG;AACH,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,KAAK,GAAG,UAAU,CAAC;AAErD,MAAM,MAAM,cAAc,GACtB;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,GACnB;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,IAAI,EAAE,MAAM,EAAE,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC;AAoBzD;+DAC+D;AAC/D,wBAAgB,WAAW,CAAC,MAAM,EAAE,aAAa,GAAG,cAAc,CAejE;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,OAAO,EACP,MAAM,GACP,EAAE;IACD,OAAO,EAAE,cAAc,CAAC;IACxB,MAAM,EAAE,SAAS,CAAC;CACnB,GAAG,KAAK,CAAC,aAAa,CAAC,CAOvB;AAED,0EAA0E;AAC1E,wBAAgB,cAAc,CAAC,YAAY,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAUvE"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
// src/profiles/fields/profileFieldValueMode.ts
|
|
2
|
+
var OWNED_KEYS = {
|
|
3
|
+
field: ["source"],
|
|
4
|
+
cel: ["cel"],
|
|
5
|
+
jsonpath: ["jsonpath", "source"]
|
|
6
|
+
};
|
|
7
|
+
/** The keys only one mode uses. `source` is left out: it is shared, so it never
|
|
8
|
+
* carries across a switch. */
|
|
9
|
+
var EXCLUSIVE_KEYS = {
|
|
10
|
+
field: [],
|
|
11
|
+
cel: ["cel"],
|
|
12
|
+
jsonpath: ["jsonpath"]
|
|
13
|
+
};
|
|
14
|
+
var ALL_KEYS = [
|
|
15
|
+
"cel",
|
|
16
|
+
"jsonpath",
|
|
17
|
+
"source"
|
|
18
|
+
];
|
|
19
|
+
/** The mode a stored column is in, or why it is in none: a column carrying keys
|
|
20
|
+
* of two modes is reported, never resolved by picking one. */
|
|
21
|
+
function valueModeOf(column) {
|
|
22
|
+
const cel = Boolean(column.cel);
|
|
23
|
+
const jsonpath = Boolean(column.jsonpath);
|
|
24
|
+
const source = Boolean(column.source);
|
|
25
|
+
if (cel && (jsonpath || source)) {
|
|
26
|
+
const keys = ALL_KEYS.filter((key) => Boolean(column[key]));
|
|
27
|
+
return {
|
|
28
|
+
mode: "invalid",
|
|
29
|
+
keys,
|
|
30
|
+
message: `This column sets ${keys.join(", ")} together; the server rejects that. Choose how its value is produced to keep one.`
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
if (cel) return { mode: "cel" };
|
|
34
|
+
if (jsonpath) return { mode: "jsonpath" };
|
|
35
|
+
return { mode: "field" };
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* The patch that moves a column to `target`, clearing every key the target does
|
|
39
|
+
* not own. The new mode starts empty — including `source`, whose meaning changes
|
|
40
|
+
* between field and jsonpath — except from an invalid column, where the target's
|
|
41
|
+
* own keys are what the author chose to keep.
|
|
42
|
+
*/
|
|
43
|
+
function patchForValueMode({ current, target }) {
|
|
44
|
+
if (current.mode === target) return {};
|
|
45
|
+
const keep = current.mode === "invalid" ? OWNED_KEYS[target] : EXCLUSIVE_KEYS[target];
|
|
46
|
+
return Object.fromEntries(ALL_KEYS.filter((key) => !keep.includes(key)).map((key) => [key, void 0]));
|
|
47
|
+
}
|
|
48
|
+
/** What field mode is called for the provider the column is read from. */
|
|
49
|
+
function fieldModeLabel(providerType) {
|
|
50
|
+
switch (providerType) {
|
|
51
|
+
case "opensearch":
|
|
52
|
+
case "opentelemetry": return "OpenSearch field";
|
|
53
|
+
case "sql": return "Column";
|
|
54
|
+
default: return "Field";
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
export { fieldModeLabel, patchForValueMode, valueModeOf };
|
|
58
|
+
|
|
59
|
+
//# sourceMappingURL=profileFieldValueMode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profileFieldValueMode.js","names":[],"sources":["../../../src/profiles/fields/profileFieldValueMode.ts"],"sourcesContent":["import type { Patch, ProfileColumn } from \"../wizard/profileWizardModel\";\n\n/**\n * How a column's value is produced: read off a row key, computed by CEL, or\n * selected by a JSONPath. The three are alternatives — commons-db's\n * ColumnDef.Validate rejects source with cel, and cel with jsonpath.\n *\n * `source` belongs to two modes with different meanings: in field mode it is the\n * row key the column is read from, in jsonpath mode it is the root the path is\n * evaluated against. Source with jsonpath is therefore one mode, not a conflict.\n */\nexport type ValueMode = \"field\" | \"cel\" | \"jsonpath\";\n\nexport type ValueModeState =\n | { mode: ValueMode }\n | { mode: \"invalid\"; keys: string[]; message: string };\n\ntype ValueKey = \"source\" | \"cel\" | \"jsonpath\";\n\nconst OWNED_KEYS: Record<ValueMode, ValueKey[]> = {\n field: [\"source\"],\n cel: [\"cel\"],\n jsonpath: [\"jsonpath\", \"source\"],\n};\n\n/** The keys only one mode uses. `source` is left out: it is shared, so it never\n * carries across a switch. */\nconst EXCLUSIVE_KEYS: Record<ValueMode, ValueKey[]> = {\n field: [],\n cel: [\"cel\"],\n jsonpath: [\"jsonpath\"],\n};\n\nconst ALL_KEYS: ValueKey[] = [\"cel\", \"jsonpath\", \"source\"];\n\n/** The mode a stored column is in, or why it is in none: a column carrying keys\n * of two modes is reported, never resolved by picking one. */\nexport function valueModeOf(column: ProfileColumn): ValueModeState {\n const cel = Boolean(column.cel);\n const jsonpath = Boolean(column.jsonpath);\n const source = Boolean(column.source);\n if (cel && (jsonpath || source)) {\n const keys = ALL_KEYS.filter((key) => Boolean(column[key]));\n return {\n mode: \"invalid\",\n keys,\n message: `This column sets ${keys.join(\", \")} together; the server rejects that. Choose how its value is produced to keep one.`,\n };\n }\n if (cel) return { mode: \"cel\" };\n if (jsonpath) return { mode: \"jsonpath\" };\n return { mode: \"field\" };\n}\n\n/**\n * The patch that moves a column to `target`, clearing every key the target does\n * not own. The new mode starts empty — including `source`, whose meaning changes\n * between field and jsonpath — except from an invalid column, where the target's\n * own keys are what the author chose to keep.\n */\nexport function patchForValueMode({\n current,\n target,\n}: {\n current: ValueModeState;\n target: ValueMode;\n}): Patch<ProfileColumn> {\n if (current.mode === target) return {};\n const keep =\n current.mode === \"invalid\" ? OWNED_KEYS[target] : EXCLUSIVE_KEYS[target];\n return Object.fromEntries(\n ALL_KEYS.filter((key) => !keep.includes(key)).map((key) => [key, undefined]),\n ) as Patch<ProfileColumn>;\n}\n\n/** What field mode is called for the provider the column is read from. */\nexport function fieldModeLabel(providerType: string | undefined): string {\n switch (providerType) {\n case \"opensearch\":\n case \"opentelemetry\":\n return \"OpenSearch field\";\n case \"sql\":\n return \"Column\";\n default:\n return \"Field\";\n }\n}\n"],"mappings":";AAmBA,IAAM,aAA4C;CAChD,OAAO,CAAC,QAAQ;C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
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
};
|
|
37
|
-
var PROCESSOR_CEL_SCOPES = {
|
|
38
|
-
when: "batch",
|
|
39
|
-
emit: "batch",
|
|
40
|
-
continuation: "boundary",
|
|
41
|
-
boundary: "boundary"
|
|
42
|
-
};
|
|
2
|
+
/**
|
|
3
|
+
* processorCatalog reads the catalog off the profile schema's `processors`
|
|
4
|
+
* property: `x-clicky-presets`, and one `items.allOf` branch per type of the form
|
|
5
|
+
* `{if: {properties: {type: {const}}}, then: {properties: {config}}}`.
|
|
6
|
+
*/
|
|
7
|
+
function processorCatalog(processors) {
|
|
8
|
+
if (!processors) throw new Error("profile schema does not define processors");
|
|
9
|
+
const branches = processors.items?.allOf;
|
|
10
|
+
if (!Array.isArray(branches)) throw new Error("profile schema processors.items has no allOf of per-type config schemas");
|
|
11
|
+
const configSchemas = {};
|
|
12
|
+
for (const branch of branches) {
|
|
13
|
+
const type = branch.if?.properties?.type?.const;
|
|
14
|
+
const config = branch.then?.properties?.config;
|
|
15
|
+
if (typeof type !== "string" || !config) throw new Error(`processors.items.allOf branch is not a type-keyed config schema: ${JSON.stringify(branch)}`);
|
|
16
|
+
configSchemas[type] = config;
|
|
17
|
+
}
|
|
18
|
+
return {
|
|
19
|
+
presets: processors["x-clicky-presets"] ?? {},
|
|
20
|
+
configSchemas
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* configOverrides is what a step has to carry so that, merged over its preset,
|
|
25
|
+
* it yields `next`: only the keys whose value differs from the preset's. Blank
|
|
26
|
+
* keys the preset does not set are dropped — the schema documents blank as
|
|
27
|
+
* "unset", and writing `column: ""` into the profile would say otherwise.
|
|
28
|
+
*/
|
|
29
|
+
function configOverrides(next, preset) {
|
|
30
|
+
const inherited = preset?.config ?? {};
|
|
31
|
+
return Object.fromEntries(Object.entries(next).filter(([key, value]) => {
|
|
32
|
+
if (key in inherited) return JSON.stringify(value) !== JSON.stringify(inherited[key]);
|
|
33
|
+
return value !== void 0 && value !== "";
|
|
34
|
+
}));
|
|
35
|
+
}
|
|
43
36
|
function effectiveType(spec, preset) {
|
|
44
37
|
return spec.type?.trim() || preset?.type || "";
|
|
45
38
|
}
|
|
@@ -66,7 +59,13 @@ function effectiveConfig(spec, preset) {
|
|
|
66
59
|
...spec.config
|
|
67
60
|
};
|
|
68
61
|
}
|
|
69
|
-
|
|
62
|
+
/**
|
|
63
|
+
* validateProcessor reports what the server would reject or silently ignore.
|
|
64
|
+
* Keys, enums, minimums and required keys come from the type's own config
|
|
65
|
+
* schema; the cross-field rules below are the ones a schema cannot state.
|
|
66
|
+
*/
|
|
67
|
+
function validateProcessor(spec, catalog) {
|
|
68
|
+
const preset = spec.use ? catalog.presets[spec.use] : void 0;
|
|
70
69
|
const issues = [];
|
|
71
70
|
const type = effectiveType(spec, preset);
|
|
72
71
|
if (!type) return [{
|
|
@@ -79,14 +78,15 @@ function validateProcessor(spec, preset) {
|
|
|
79
78
|
severity: "error",
|
|
80
79
|
message: `${spec.use} is a ${preset.type}; setting type to ${spec.type} is rejected rather than merged.`
|
|
81
80
|
});
|
|
82
|
-
const
|
|
83
|
-
if (!
|
|
81
|
+
const schema = catalog.configSchemas[type];
|
|
82
|
+
if (!schema) return [...issues, {
|
|
84
83
|
key: "type",
|
|
85
84
|
severity: "error",
|
|
86
85
|
message: `No processor is registered for type ${type}.`
|
|
87
86
|
}];
|
|
87
|
+
const declared = schema.properties ?? {};
|
|
88
88
|
for (const key of Object.keys(spec.config ?? {})) {
|
|
89
|
-
if (
|
|
89
|
+
if (key in declared) continue;
|
|
90
90
|
issues.push({
|
|
91
91
|
key,
|
|
92
92
|
severity: "warning",
|
|
@@ -94,6 +94,35 @@ function validateProcessor(spec, preset) {
|
|
|
94
94
|
});
|
|
95
95
|
}
|
|
96
96
|
const config = effectiveConfig(spec, preset);
|
|
97
|
+
issues.push(...schemaIssues(type, schema, config));
|
|
98
|
+
issues.push(...crossFieldIssues(type, config));
|
|
99
|
+
return issues;
|
|
100
|
+
}
|
|
101
|
+
function schemaIssues(type, schema, config) {
|
|
102
|
+
const issues = [];
|
|
103
|
+
for (const key of schema.required ?? []) if (isBlank(config[key])) issues.push({
|
|
104
|
+
key,
|
|
105
|
+
severity: "error",
|
|
106
|
+
message: `${type} requires ${key}.`
|
|
107
|
+
});
|
|
108
|
+
for (const [key, field] of Object.entries(schema.properties ?? {})) {
|
|
109
|
+
const value = config[key];
|
|
110
|
+
if (isBlank(value)) continue;
|
|
111
|
+
if (field.enum && !field.enum.includes(value)) issues.push({
|
|
112
|
+
key,
|
|
113
|
+
severity: "error",
|
|
114
|
+
message: `${key} ${JSON.stringify(value)} is not one of ${field.enum.join(", ")}.`
|
|
115
|
+
});
|
|
116
|
+
if (field.minimum !== void 0 && typeof value === "number" && value < field.minimum) issues.push({
|
|
117
|
+
key,
|
|
118
|
+
severity: "error",
|
|
119
|
+
message: `${key} cannot be below ${field.minimum}.`
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
return issues;
|
|
123
|
+
}
|
|
124
|
+
function crossFieldIssues(type, config) {
|
|
125
|
+
const issues = [];
|
|
97
126
|
const hasSet = isRecord(config.set) && Object.keys(config.set).length > 0;
|
|
98
127
|
const hasEmit = typeof config.emit === "string" && config.emit.trim() !== "";
|
|
99
128
|
if (hasSet && hasEmit) issues.push({
|
|
@@ -113,40 +142,11 @@ function validateProcessor(spec, preset) {
|
|
|
113
142
|
message: "Boundary already replaces the timestamp rule; setting continuation as well is ambiguous."
|
|
114
143
|
});
|
|
115
144
|
}
|
|
116
|
-
if (type === "cel.dedupe" && !(Array.isArray(config.partition) && config.partition.length > 0)) issues.push({
|
|
117
|
-
key: "partition",
|
|
118
|
-
severity: "error",
|
|
119
|
-
message: "Dedupe requires partition; without a key every row collapses into one."
|
|
120
|
-
});
|
|
121
|
-
if (type === "logs.parse" && config.format !== void 0 && ![
|
|
122
|
-
"",
|
|
123
|
-
"autodetect",
|
|
124
|
-
"json",
|
|
125
|
-
"klogfmt",
|
|
126
|
-
"logfmt",
|
|
127
|
-
"syslog"
|
|
128
|
-
].includes(String(config.format))) issues.push({
|
|
129
|
-
key: "format",
|
|
130
|
-
severity: "error",
|
|
131
|
-
message: `format ${JSON.stringify(config.format)} is not autodetect, json, klogfmt, logfmt or syslog.`
|
|
132
|
-
});
|
|
133
|
-
if (config.keep !== void 0 && config.keep !== "first" && config.keep !== "last") issues.push({
|
|
134
|
-
key: "keep",
|
|
135
|
-
severity: "error",
|
|
136
|
-
message: `keep ${JSON.stringify(config.keep)} is not "first" or "last".`
|
|
137
|
-
});
|
|
138
|
-
if (config.order !== void 0 && config.order !== "asc" && config.order !== "desc") issues.push({
|
|
139
|
-
key: "order",
|
|
140
|
-
severity: "error",
|
|
141
|
-
message: `order ${JSON.stringify(config.order)} is not "asc" or "desc".`
|
|
142
|
-
});
|
|
143
|
-
if (typeof config.max === "number" && config.max < 0) issues.push({
|
|
144
|
-
key: "max",
|
|
145
|
-
severity: "error",
|
|
146
|
-
message: "max cannot be negative."
|
|
147
|
-
});
|
|
148
145
|
return issues;
|
|
149
146
|
}
|
|
147
|
+
function isBlank(value) {
|
|
148
|
+
return value === void 0 || value === null || value === "" || Array.isArray(value) && value.length === 0;
|
|
149
|
+
}
|
|
150
150
|
function pagingBlock(type) {
|
|
151
151
|
if (type === "sqlite.merge" || type === "sqlite.recon") return {
|
|
152
152
|
kind: "inherent",
|
|
@@ -163,11 +163,11 @@ function reorder(items, from, to) {
|
|
|
163
163
|
function isRecord(value) {
|
|
164
164
|
return Boolean(value) && typeof value === "object" && !Array.isArray(value);
|
|
165
165
|
}
|
|
166
|
-
exports.
|
|
167
|
-
exports.PROCESSOR_CONFIG_KEYS = PROCESSOR_CONFIG_KEYS;
|
|
166
|
+
exports.configOverrides = configOverrides;
|
|
168
167
|
exports.effectiveConfig = effectiveConfig;
|
|
169
168
|
exports.effectiveType = effectiveType;
|
|
170
169
|
exports.pagingBlock = pagingBlock;
|
|
170
|
+
exports.processorCatalog = processorCatalog;
|
|
171
171
|
exports.reorder = reorder;
|
|
172
172
|
exports.resolveConfig = resolveConfig;
|
|
173
173
|
exports.validateProcessor = validateProcessor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"processorConfig.cjs","names":[],"sources":["../../../src/profiles/processor/processorConfig.ts"],"sourcesContent":["export type ProcessorSpec = {\n use?: string;\n type?: string;\n config?: Record<string, unknown>;\n};\n\nexport type ProcessorPreset = {\n type: string;\n title?: string;\n description?: string;\n config?: Record<string, unknown>;\n};\n\nexport const PROCESSOR_CONFIG_KEYS: Record<string, string[]> = {\n \"cel.batch\": [\n \"partition\",\n \"column\",\n \"window\",\n \"order\",\n \"boundary\",\n \"continuation\",\n \"max\",\n \"when\",\n \"keep\",\n \"set\",\n \"emit\",\n ],\n \"cel.dedupe\": [\"partition\", \"keep\", \"when\", \"set\", \"emit\", \"max\"],\n \"logs.parse\": [\"format\", \"column\"],\n \"sqlite.merge\": [\"sql\", \"as\", \"with\"],\n \"sqlite.recon\": [\"key\", \"keyCel\", \"compare\", \"baseline\"],\n};\n\nexport const PROCESSOR_CEL_SCOPES: Record<string, \"batch\" | \"boundary\"> = {\n when: \"batch\",\n emit: \"batch\",\n continuation: \"boundary\",\n boundary: \"boundary\",\n};\n\nexport type ProcessorConfigIssue = {\n key: string;\n severity: \"error\" | \"warning\";\n message: string;\n};\n\nexport type ResolvedProcessorKey = {\n key: string;\n value: unknown;\n origin: \"preset\" | \"override\";\n presetValue?: unknown;\n};\n\nexport function effectiveType(\n spec: ProcessorSpec,\n preset: ProcessorPreset | undefined,\n): string {\n return spec.type?.trim() || preset?.type || \"\";\n}\n\nexport function resolveConfig(\n spec: ProcessorSpec,\n preset: ProcessorPreset | undefined,\n): ResolvedProcessorKey[] {\n const presetConfig = preset?.config ?? {};\n const override = spec.config ?? {};\n const keys = [\n ...new Set([...Object.keys(presetConfig), ...Object.keys(override)]),\n ].sort();\n\n return keys.map((key) => {\n if (!(key in override)) {\n return { key, value: presetConfig[key], origin: \"preset\" as const };\n }\n return {\n key,\n value: override[key],\n origin: \"override\" as const,\n ...(key in presetConfig ? { presetValue: presetConfig[key] } : {}),\n };\n });\n}\n\nexport function effectiveConfig(\n spec: ProcessorSpec,\n preset: ProcessorPreset | undefined,\n): Record<string, unknown> {\n return { ...preset?.config, ...spec.config };\n}\n\nexport function validateProcessor(\n spec: ProcessorSpec,\n preset: ProcessorPreset | undefined,\n): ProcessorConfigIssue[] {\n const issues: ProcessorConfigIssue[] = [];\n const type = effectiveType(spec, preset);\n\n if (!type) {\n return [\n {\n key: \"type\",\n severity: \"error\",\n message: \"Pick a library processor or a type.\",\n },\n ];\n }\n if (spec.use && spec.type && preset && spec.type !== preset.type) {\n issues.push({\n key: \"type\",\n severity: \"error\",\n message: `${spec.use} is a ${preset.type}; setting type to ${spec.type} is rejected rather than merged.`,\n });\n }\n\n const known = PROCESSOR_CONFIG_KEYS[type];\n if (!known) {\n return [\n ...issues,\n {\n key: \"type\",\n severity: \"error\",\n message: `No processor is registered for type ${type}.`,\n },\n ];\n }\n\n for (const key of Object.keys(spec.config ?? {})) {\n if (known.includes(key)) continue;\n issues.push({\n key,\n severity: \"warning\",\n message: `Not a key ${type} declares. Unknown keys are dropped without an error, so this line does nothing.`,\n });\n }\n\n const config = effectiveConfig(spec, preset);\n const hasSet = isRecord(config.set) && Object.keys(config.set).length > 0;\n const hasEmit = typeof config.emit === \"string\" && config.emit.trim() !== \"\";\n\n if (hasSet && hasEmit) {\n issues.push({\n key: \"emit\",\n severity: \"error\",\n message: \"Sets both set and emit; pick one.\",\n });\n }\n if (type === \"cel.batch\") {\n if (!hasSet && !hasEmit) {\n issues.push({\n key: \"set\",\n severity: \"error\",\n message: \"Batch requires either set or emit.\",\n });\n }\n if (config.boundary && config.continuation) {\n issues.push({\n key: \"boundary\",\n severity: \"error\",\n message:\n \"Boundary already replaces the timestamp rule; setting continuation as well is ambiguous.\",\n });\n }\n }\n if (\n type === \"cel.dedupe\" &&\n !(Array.isArray(config.partition) && config.partition.length > 0)\n ) {\n issues.push({\n key: \"partition\",\n severity: \"error\",\n message:\n \"Dedupe requires partition; without a key every row collapses into one.\",\n });\n }\n if (\n type === \"logs.parse\" &&\n config.format !== undefined &&\n ![\"\", \"autodetect\", \"json\", \"klogfmt\", \"logfmt\", \"syslog\"].includes(\n String(config.format),\n )\n ) {\n issues.push({\n key: \"format\",\n severity: \"error\",\n message: `format ${JSON.stringify(config.format)} is not autodetect, json, klogfmt, logfmt or syslog.`,\n });\n }\n if (\n config.keep !== undefined &&\n config.keep !== \"first\" &&\n config.keep !== \"last\"\n ) {\n issues.push({\n key: \"keep\",\n severity: \"error\",\n message: `keep ${JSON.stringify(config.keep)} is not \"first\" or \"last\".`,\n });\n }\n if (\n config.order !== undefined &&\n config.order !== \"asc\" &&\n config.order !== \"desc\"\n ) {\n issues.push({\n key: \"order\",\n severity: \"error\",\n message: `order ${JSON.stringify(config.order)} is not \"asc\" or \"desc\".`,\n });\n }\n if (typeof config.max === \"number\" && config.max < 0) {\n issues.push({\n key: \"max\",\n severity: \"error\",\n message: \"max cannot be negative.\",\n });\n }\n\n return issues;\n}\n\nexport function pagingBlock(\n type: string,\n): { kind: \"inherent\" | \"gap\"; reason: string } | undefined {\n if (type === \"sqlite.merge\" || type === \"sqlite.recon\") {\n return {\n kind: \"inherent\",\n reason: \"Loads the whole result set before any row is correct.\",\n };\n }\n return undefined;\n}\n\nexport function reorder<T>(items: T[], from: number, to: number): T[] {\n if (\n from === to ||\n from < 0 ||\n to < 0 ||\n from >= items.length ||\n to >= items.length\n ) {\n return items;\n }\n const next = [...items];\n const [moved] = next.splice(from, 1);\n next.splice(to, 0, moved as T);\n return next;\n}\n\nfunction isRecord(value: unknown): value is Record<string, unknown> {\n return Boolean(value) && typeof value === \"object\" && !Array.isArray(value);\n}\n"],"mappings":";AAaA,IAAa,wBAAkD;CAC7D,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF;CACA,cAAc;EAAC;EAAa;EAAQ;EAAQ;EAAO;EAAQ;CAAK;CAChE,cAAc,CAAC,UAAU,QAAQ;CACjC,gBAAgB;EAAC;EAAO;EAAM;CAAM;CACpC,gBAAgB;EAAC;EAAO;EAAU;EAAW;CAAU;AACzD;AAEA,IAAa,uBAA6D;CACxE,MAAM;CACN,MAAM;CACN,cAAc;CACd,UAAU;AACZ;AAeA,SAAgB,cACd,MACA,QACQ;CACR,OAAO,KAAK,MAAM,KAAK,KAAK,QAAQ,QAAQ;AAC9C;AAEA,SAAgB,cACd,MACA,QACwB;CACxB,MAAM,eAAe,QAAQ,UAAU,CAAC;CACxC,MAAM,WAAW,KAAK,UAAU,CAAC;CAKjC,OAJa,CACX,mBAAG,IAAI,IAAI,CAAC,GAAG,OAAO,KAAK,YAAY,GAAG,GAAG,OAAO,KAAK,QAAQ,CAAC,CAAC,CACrE,CAAC,CAAC,KAEK,CAAA,CAAK,KAAK,QAAQ;EACvB,IAAI,EAAE,OAAO,WACX,OAAO;GAAE;GAAK,OAAO,aAAa;GAAM,QAAQ;EAAkB;EAEpE,OAAO;GACL;GACA,OAAO,SAAS;GAChB,QAAQ;GACR,GAAI,OAAO,eAAe,EAAE,aAAa,aAAa,KAAK,IAAI,CAAC;EAClE;CACF,CAAC;AACH;AAEA,SAAgB,gBACd,MACA,QACyB;CACzB,OAAO;EAAE,GAAG,QAAQ;EAAQ,GAAG,KAAK;CAAO;AAC7C;AAEA,SAAgB,kBACd,MACA,QACwB;CACxB,MAAM,SAAiC,CA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processor/processorConfig.ts"],"sourcesContent":["import type {\n JsonSchemaObject,\n JsonSchemaProperty,\n} from \"../../components/json-schema-form-types\";\n\nexport type ProcessorSpec = {\n use?: string;\n type?: string;\n config?: Record<string, unknown>;\n};\n\nexport type ProcessorPreset = {\n type: string;\n title?: string;\n description?: string;\n config?: Record<string, unknown>;\n};\n\n/**\n * What the profile schema says about processors: the library presets, and the\n * config schema each registered processor type declares for itself. Both come\n * from the generated `processors` property, so a type the server does not\n * register cannot be offered and a setting it does not decode cannot be edited.\n */\nexport type ProcessorCatalog = {\n presets: Record<string, ProcessorPreset>;\n configSchemas: Record<string, JsonSchemaObject>;\n};\n\n/**\n * processorCatalog reads the catalog off the profile schema's `processors`\n * property: `x-clicky-presets`, and one `items.allOf` branch per type of the form\n * `{if: {properties: {type: {const}}}, then: {properties: {config}}}`.\n */\nexport function processorCatalog(\n processors: JsonSchemaProperty | undefined,\n): ProcessorCatalog {\n if (!processors) {\n throw new Error(\"profile schema does not define processors\");\n }\n const branches = processors.items?.allOf;\n if (!Array.isArray(branches)) {\n throw new Error(\n \"profile schema processors.items has no allOf of per-type config schemas\",\n );\n }\n const configSchemas: Record<string, JsonSchemaObject> = {};\n for (const branch of branches) {\n const type = branch.if?.properties?.type?.const;\n const config = branch.then?.properties?.config;\n if (typeof type !== \"string\" || !config) {\n throw new Error(\n `processors.items.allOf branch is not a type-keyed config schema: ${JSON.stringify(branch)}`,\n );\n }\n configSchemas[type] = config as JsonSchemaObject;\n }\n return {\n presets:\n (processors[\"x-clicky-presets\"] as\n | Record<string, ProcessorPreset>\n | undefined) ?? {},\n configSchemas,\n };\n}\n\n/**\n * configOverrides is what a step has to carry so that, merged over its preset,\n * it yields `next`: only the keys whose value differs from the preset's. Blank\n * keys the preset does not set are dropped — the schema documents blank as\n * \"unset\", and writing `column: \"\"` into the profile would say otherwise.\n */\nexport function configOverrides(\n next: Record<string, unknown>,\n preset: ProcessorPreset | undefined,\n): Record<string, unknown> {\n const inherited = preset?.config ?? {};\n return Object.fromEntries(\n Object.entries(next).filter(([key, value]) => {\n if (key in inherited) {\n return JSON.stringify(value) !== JSON.stringify(inherited[key]);\n }\n return value !== undefined && value !== \"\";\n }),\n );\n}\n\nexport type ProcessorConfigIssue = {\n key: string;\n severity: \"error\" | \"warning\";\n message: string;\n};\n\nexport type ResolvedProcessorKey = {\n key: string;\n value: unknown;\n origin: \"preset\" | \"override\";\n presetValue?: unknown;\n};\n\nexport function effectiveType(\n spec: ProcessorSpec,\n preset: ProcessorPreset | undefined,\n): string {\n return spec.type?.trim() || preset?.type || \"\";\n}\n\nexport function resolveConfig(\n spec: ProcessorSpec,\n preset: ProcessorPreset | undefined,\n): ResolvedProcessorKey[] {\n const presetConfig = preset?.config ?? {};\n const override = spec.config ?? {};\n const keys = [\n ...new Set([...Object.keys(presetConfig), ...Object.keys(override)]),\n ].sort();\n\n return keys.map((key) => {\n if (!(key in override)) {\n return { key, value: presetConfig[key], origin: \"preset\" as const };\n }\n return {\n key,\n value: override[key],\n origin: \"override\" as const,\n ...(key in presetConfig ? { presetValue: presetConfig[key] } : {}),\n };\n });\n}\n\nexport function effectiveConfig(\n spec: ProcessorSpec,\n preset: ProcessorPreset | undefined,\n): Record<string, unknown> {\n return { ...preset?.config, ...spec.config };\n}\n\n/**\n * validateProcessor reports what the server would reject or silently ignore.\n * Keys, enums, minimums and required keys come from the type's own config\n * schema; the cross-field rules below are the ones a schema cannot state.\n */\nexport function validateProcessor(\n spec: ProcessorSpec,\n catalog: ProcessorCatalog,\n): ProcessorConfigIssue[] {\n const preset = spec.use ? catalog.presets[spec.use] : undefined;\n const issues: ProcessorConfigIssue[] = [];\n const type = effectiveType(spec, preset);\n\n if (!type) {\n return [\n {\n key: \"type\",\n severity: \"error\",\n message: \"Pick a library processor or a type.\",\n },\n ];\n }\n if (spec.use && spec.type && preset && spec.type !== preset.type) {\n issues.push({\n key: \"type\",\n severity: \"error\",\n message: `${spec.use} is a ${preset.type}; setting type to ${spec.type} is rejected rather than merged.`,\n });\n }\n\n const schema = catalog.configSchemas[type];\n if (!schema) {\n return [\n ...issues,\n {\n key: \"type\",\n severity: \"error\",\n message: `No processor is registered for type ${type}.`,\n },\n ];\n }\n\n const declared = schema.properties ?? {};\n for (const key of Object.keys(spec.config ?? {})) {\n if (key in declared) continue;\n issues.push({\n key,\n severity: \"warning\",\n message: `Not a key ${type} declares. Unknown keys are dropped without an error, so this line does nothing.`,\n });\n }\n\n const config = effectiveConfig(spec, preset);\n issues.push(...schemaIssues(type, schema, config));\n issues.push(...crossFieldIssues(type, config));\n return issues;\n}\n\nfunction schemaIssues(\n type: string,\n schema: JsonSchemaObject,\n config: Record<string, unknown>,\n): ProcessorConfigIssue[] {\n const issues: ProcessorConfigIssue[] = [];\n for (const key of schema.required ?? []) {\n if (isBlank(config[key])) {\n issues.push({ key, severity: \"error\", message: `${type} requires ${key}.` });\n }\n }\n for (const [key, field] of Object.entries(schema.properties ?? {})) {\n const value = config[key];\n if (isBlank(value)) continue;\n if (field.enum && !field.enum.includes(value)) {\n issues.push({\n key,\n severity: \"error\",\n message: `${key} ${JSON.stringify(value)} is not one of ${field.enum.join(\", \")}.`,\n });\n }\n if (field.minimum !== undefined && typeof value === \"number\" && value < field.minimum) {\n issues.push({\n key,\n severity: \"error\",\n message: `${key} cannot be below ${field.minimum}.`,\n });\n }\n }\n return issues;\n}\n\nfunction crossFieldIssues(\n type: string,\n config: Record<string, unknown>,\n): ProcessorConfigIssue[] {\n const issues: ProcessorConfigIssue[] = [];\n const hasSet = isRecord(config.set) && Object.keys(config.set).length > 0;\n const hasEmit = typeof config.emit === \"string\" && config.emit.trim() !== \"\";\n\n if (hasSet && hasEmit) {\n issues.push({\n key: \"emit\",\n severity: \"error\",\n message: \"Sets both set and emit; pick one.\",\n });\n }\n if (type === \"cel.batch\") {\n if (!hasSet && !hasEmit) {\n issues.push({\n key: \"set\",\n severity: \"error\",\n message: \"Batch requires either set or emit.\",\n });\n }\n if (config.boundary && config.continuation) {\n issues.push({\n key: \"boundary\",\n severity: \"error\",\n message:\n \"Boundary already replaces the timestamp rule; setting continuation as well is ambiguous.\",\n });\n }\n }\n return issues;\n}\n\nfunction isBlank(value: unknown): boolean {\n return (\n value === undefined ||\n value === null ||\n value === \"\" ||\n (Array.isArray(value) && value.length === 0)\n );\n}\n\nexport function pagingBlock(\n type: string,\n): { kind: \"inherent\" | \"gap\"; reason: string } | undefined {\n if (type === \"sqlite.merge\" || type === \"sqlite.recon\") {\n return {\n kind: \"inherent\",\n reason: \"Loads the whole result set before any row is correct.\",\n };\n }\n return undefined;\n}\n\nexport function reorder<T>(items: T[], from: number, to: number): T[] {\n if (\n from === to ||\n from < 0 ||\n to < 0 ||\n from >= items.length ||\n to >= items.length\n ) {\n return items;\n }\n const next = [...items];\n const [moved] = next.splice(from, 1);\n next.splice(to, 0, moved as T);\n return next;\n}\n\nfunction isRecord(value: unknown): value is Record<string, unknown> {\n return Boolean(value) && typeof value === \"object\" && !Array.isArray(value);\n}\n"],"mappings":";;;;;;AAkCA,SAAgB,iBACd,YACkB;CAClB,IAAI,CAAC,YACH,MAAM,IAAI,MAAM,2CAA2C;CAE7D,MAAM,WAAW,WAAW,OAAO;CACnC,IAAI,CAAC,MAAM,QAAQ,QAAQ,GACzB,MAAM,IAAI,MACR,yEACF;CAEF,MAAM,gBAAkD,CAAC;CACzD,KAAK,MAAM,UAAU,UAAU;EAC7B,MAAM,OAAO,OAAO,IAAI,YAAY,MAAM;EAC1C,MAAM,SAAS,OAAO,MAAM,YAAY;EACxC,IAAI,OAAO,SAAS,YAAY,CAAC,QAC/B,MAAM,IAAI,MACR,oEAAoE,KAAK,UAAU,MAAM,GAC3F;EAEF,cAAc,QAAQ;CACxB;CACA,OAAO;EACL,SACG,WAAW,uBAEM,CAAC;EACrB;CACF;AACF;;;;;;;AAQA,SAAgB,gBACd,MACA,QACyB;CACzB,MAAM,YAAY,QAAQ,UAAU,CAAC;CACrC,OAAO,OAAO,YACZ,OAAO,QAAQ,IAAI,CAA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T;AAEA,SAAS,iBACP,MACA,QACwB;CACxB,MAAM,SAAiC,CAAC;CACxC,MAAM,SAAS,SAAS,OAAO,GAAG,KAAK,OAAO,KAAK,OAAO,GAAG,CAAC,CAAC,SAAS;CACxE,MAAM,UAAU,OAAO,OAAO,SAAS,YAAY,OAAO,KAAK,KAAK,MAAM;CAE1E,IAAI,UAAU,SACZ,OAAO,KAAK;EACV,KAAK;EACL,UAAU;EACV,SAAS;CACX,CAAC;CAEH,IAAI,SAAS,aAAa;EACxB,IAAI,CAAC,UAAU,CAAC,SACd,OAAO,KAAK;GACV,KAAK;GACL,UAAU;GACV,SAAS;EACX,CAAC;EAEH,IAAI,OAAO,YAAY,OAAO,cAC5B,OAAO,KAAK;GACV,KAAK;GACL,UAAU;GACV,SACE;EACJ,CAAC;CAEL;CACA,OAAO;AACT;AAEA,SAAS,QAAQ,OAAyB;CACxC,OACE,UAAU,KAAA,KACV,UAAU,QACV,UAAU,MACT,MAAM,QAAQ,KAAK,KAAK,MAAM,WAAW;AAE9C;AAEA,SAAgB,YACd,MAC0D;CAC1D,IAAI,SAAS,kBAAkB,SAAS,gBACtC,OAAO;EACL,MAAM;EACN,QAAQ;CACV;AAGJ;AAEA,SAAgB,QAAW,OAAY,MAAc,IAAiB;CACpE,IACE,SAAS,MACT,OAAO,KACP,KAAK,KACL,QAAQ,MAAM,UACd,MAAM,MAAM,QAEZ,OAAO;CAET,MAAM,OAAO,CAAC,GAAG,KAAK;CACtB,MAAM,CAAC,SAAS,KAAK,OAAO,MAAM,CAAC;CACnC,KAAK,OAAO,IAAI,GAAG,KAAU;CAC7B,OAAO;AACT;AAEA,SAAS,SAAS,OAAkD;CAClE,OAAO,QAAQ,KAAK,KAAK,OAAO,UAAU,YAAY,CAAC,MAAM,QAAQ,KAAK;AAC5E"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { JsonSchemaObject, JsonSchemaProperty } from '../../components/json-schema-form-types.js';
|
|
1
2
|
export type ProcessorSpec = {
|
|
2
3
|
use?: string;
|
|
3
4
|
type?: string;
|
|
@@ -9,8 +10,29 @@ export type ProcessorPreset = {
|
|
|
9
10
|
description?: string;
|
|
10
11
|
config?: Record<string, unknown>;
|
|
11
12
|
};
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
/**
|
|
14
|
+
* What the profile schema says about processors: the library presets, and the
|
|
15
|
+
* config schema each registered processor type declares for itself. Both come
|
|
16
|
+
* from the generated `processors` property, so a type the server does not
|
|
17
|
+
* register cannot be offered and a setting it does not decode cannot be edited.
|
|
18
|
+
*/
|
|
19
|
+
export type ProcessorCatalog = {
|
|
20
|
+
presets: Record<string, ProcessorPreset>;
|
|
21
|
+
configSchemas: Record<string, JsonSchemaObject>;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* processorCatalog reads the catalog off the profile schema's `processors`
|
|
25
|
+
* property: `x-clicky-presets`, and one `items.allOf` branch per type of the form
|
|
26
|
+
* `{if: {properties: {type: {const}}}, then: {properties: {config}}}`.
|
|
27
|
+
*/
|
|
28
|
+
export declare function processorCatalog(processors: JsonSchemaProperty | undefined): ProcessorCatalog;
|
|
29
|
+
/**
|
|
30
|
+
* configOverrides is what a step has to carry so that, merged over its preset,
|
|
31
|
+
* it yields `next`: only the keys whose value differs from the preset's. Blank
|
|
32
|
+
* keys the preset does not set are dropped — the schema documents blank as
|
|
33
|
+
* "unset", and writing `column: ""` into the profile would say otherwise.
|
|
34
|
+
*/
|
|
35
|
+
export declare function configOverrides(next: Record<string, unknown>, preset: ProcessorPreset | undefined): Record<string, unknown>;
|
|
14
36
|
export type ProcessorConfigIssue = {
|
|
15
37
|
key: string;
|
|
16
38
|
severity: "error" | "warning";
|
|
@@ -25,7 +47,12 @@ export type ResolvedProcessorKey = {
|
|
|
25
47
|
export declare function effectiveType(spec: ProcessorSpec, preset: ProcessorPreset | undefined): string;
|
|
26
48
|
export declare function resolveConfig(spec: ProcessorSpec, preset: ProcessorPreset | undefined): ResolvedProcessorKey[];
|
|
27
49
|
export declare function effectiveConfig(spec: ProcessorSpec, preset: ProcessorPreset | undefined): Record<string, unknown>;
|
|
28
|
-
|
|
50
|
+
/**
|
|
51
|
+
* validateProcessor reports what the server would reject or silently ignore.
|
|
52
|
+
* Keys, enums, minimums and required keys come from the type's own config
|
|
53
|
+
* schema; the cross-field rules below are the ones a schema cannot state.
|
|
54
|
+
*/
|
|
55
|
+
export declare function validateProcessor(spec: ProcessorSpec, catalog: ProcessorCatalog): ProcessorConfigIssue[];
|
|
29
56
|
export declare function pagingBlock(type: string): {
|
|
30
57
|
kind: "inherent" | "gap";
|
|
31
58
|
reason: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"processorConfig.d.ts","sourceRoot":"","sources":["../../../src/profiles/processor/processorConfig.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG;IAC1B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC,CAAC;AAEF,
|
|
1
|
+
{"version":3,"file":"processorConfig.d.ts","sourceRoot":"","sources":["../../../src/profiles/processor/processorConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,kBAAkB,EACnB,MAAM,yCAAyC,CAAC;AAEjD,MAAM,MAAM,aAAa,GAAG;IAC1B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;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