@flanksource/clicky-ui 0.3.78 → 0.3.79
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai.cjs +2 -2
- package/dist/ai.js +2 -2
- package/dist/comments/CommentThreadList.cjs +13 -14
- package/dist/comments/CommentThreadList.cjs.map +1 -1
- package/dist/comments/CommentThreadList.d.ts.map +1 -1
- package/dist/comments/CommentThreadList.js +13 -14
- package/dist/comments/CommentThreadList.js.map +1 -1
- package/dist/components/EndpointSelector.cjs +7 -1
- package/dist/components/EndpointSelector.cjs.map +1 -1
- package/dist/components/EndpointSelector.d.ts.map +1 -1
- package/dist/components/EndpointSelector.js +7 -1
- package/dist/components/EndpointSelector.js.map +1 -1
- package/dist/components/FilterBar.cjs +36 -12
- package/dist/components/FilterBar.cjs.map +1 -1
- package/dist/components/FilterBar.d.ts +14 -2
- package/dist/components/FilterBar.d.ts.map +1 -1
- package/dist/components/FilterBar.js +36 -12
- package/dist/components/FilterBar.js.map +1 -1
- package/dist/components/FormLookupProvider.cjs +12 -4
- package/dist/components/FormLookupProvider.cjs.map +1 -1
- package/dist/components/FormLookupProvider.d.ts.map +1 -1
- package/dist/components/FormLookupProvider.js +13 -5
- package/dist/components/FormLookupProvider.js.map +1 -1
- package/dist/components/JSONPathPlayground.cjs +124 -233
- package/dist/components/JSONPathPlayground.cjs.map +1 -1
- package/dist/components/JSONPathPlayground.d.ts +15 -13
- package/dist/components/JSONPathPlayground.d.ts.map +1 -1
- package/dist/components/JSONPathPlayground.js +125 -234
- package/dist/components/JSONPathPlayground.js.map +1 -1
- package/dist/components/JsonSchemaForm.cjs +6 -0
- package/dist/components/JsonSchemaForm.cjs.map +1 -1
- package/dist/components/JsonSchemaForm.js +6 -0
- package/dist/components/JsonSchemaForm.js.map +1 -1
- package/dist/components/SegmentedControl.cjs +1 -1
- package/dist/components/SegmentedControl.cjs.map +1 -1
- package/dist/components/SegmentedControl.d.ts.map +1 -1
- package/dist/components/SegmentedControl.js +1 -1
- package/dist/components/SegmentedControl.js.map +1 -1
- package/dist/components/TimeRange.cjs +133 -60
- package/dist/components/TimeRange.cjs.map +1 -1
- package/dist/components/TimeRange.d.ts +8 -1
- package/dist/components/TimeRange.d.ts.map +1 -1
- package/dist/components/TimeRange.js +133 -60
- package/dist/components/TimeRange.js.map +1 -1
- package/dist/components/json-schema-form-accordion-array.cjs +8 -6
- package/dist/components/json-schema-form-accordion-array.cjs.map +1 -1
- package/dist/components/json-schema-form-accordion-array.d.ts.map +1 -1
- package/dist/components/json-schema-form-accordion-array.js +9 -7
- package/dist/components/json-schema-form-accordion-array.js.map +1 -1
- package/dist/components/json-schema-form-array-rows.cjs +45 -0
- package/dist/components/json-schema-form-array-rows.cjs.map +1 -0
- package/dist/components/json-schema-form-array-rows.d.ts +10 -0
- package/dist/components/json-schema-form-array-rows.d.ts.map +1 -0
- package/dist/components/json-schema-form-array-rows.js +45 -0
- package/dist/components/json-schema-form-array-rows.js.map +1 -0
- package/dist/components/json-schema-form-item-summary.cjs +3 -5
- package/dist/components/json-schema-form-item-summary.cjs.map +1 -1
- package/dist/components/json-schema-form-item-summary.d.ts +1 -1
- package/dist/components/json-schema-form-item-summary.d.ts.map +1 -1
- package/dist/components/json-schema-form-item-summary.js +3 -5
- package/dist/components/json-schema-form-item-summary.js.map +1 -1
- package/dist/components/json-schema-form-render.cjs +11 -2
- package/dist/components/json-schema-form-render.cjs.map +1 -1
- package/dist/components/json-schema-form-render.d.ts.map +1 -1
- package/dist/components/json-schema-form-render.js +12 -3
- package/dist/components/json-schema-form-render.js.map +1 -1
- package/dist/components/json-schema-form-resolve.cjs +10 -0
- package/dist/components/json-schema-form-resolve.cjs.map +1 -1
- package/dist/components/json-schema-form-resolve.d.ts +1 -0
- package/dist/components/json-schema-form-resolve.d.ts.map +1 -1
- package/dist/components/json-schema-form-resolve.js +10 -1
- package/dist/components/json-schema-form-resolve.js.map +1 -1
- package/dist/components/json-schema-form-runtime-types.d.ts +4 -0
- package/dist/components/json-schema-form-runtime-types.d.ts.map +1 -1
- package/dist/components/json-schema-form-table-array.cjs +25 -16
- package/dist/components/json-schema-form-table-array.cjs.map +1 -1
- package/dist/components/json-schema-form-table-array.d.ts +1 -1
- package/dist/components/json-schema-form-table-array.d.ts.map +1 -1
- package/dist/components/json-schema-form-table-array.js +26 -17
- package/dist/components/json-schema-form-table-array.js.map +1 -1
- package/dist/components/json-schema-form-types.d.ts +0 -2
- package/dist/components/json-schema-form-types.d.ts.map +1 -1
- package/dist/components/jsonPathPlaygroundEvaluator.cjs +53 -0
- package/dist/components/jsonPathPlaygroundEvaluator.cjs.map +1 -0
- package/dist/components/jsonPathPlaygroundEvaluator.d.ts +23 -0
- package/dist/components/jsonPathPlaygroundEvaluator.d.ts.map +1 -0
- package/dist/components/jsonPathPlaygroundEvaluator.js +53 -0
- package/dist/components/jsonPathPlaygroundEvaluator.js.map +1 -0
- package/dist/components/jsonPathTree.cjs +1 -0
- package/dist/components/jsonPathTree.cjs.map +1 -1
- package/dist/components/jsonPathTree.d.ts +6 -0
- package/dist/components/jsonPathTree.d.ts.map +1 -1
- package/dist/components/jsonPathTree.js +1 -0
- package/dist/components/jsonPathTree.js.map +1 -1
- package/dist/data/Clicky.cjs +37 -18
- package/dist/data/Clicky.cjs.map +1 -1
- package/dist/data/Clicky.d.ts +5 -0
- package/dist/data/Clicky.d.ts.map +1 -1
- package/dist/data/Clicky.js +37 -18
- package/dist/data/Clicky.js.map +1 -1
- package/dist/data/DataTable.cjs +49 -12
- package/dist/data/DataTable.cjs.map +1 -1
- package/dist/data/DataTable.d.ts +17 -2
- package/dist/data/DataTable.d.ts.map +1 -1
- package/dist/data/DataTable.js +49 -12
- package/dist/data/DataTable.js.map +1 -1
- package/dist/data/TaskPoolUsage.cjs +2 -1
- package/dist/data/TaskPoolUsage.cjs.map +1 -1
- package/dist/data/TaskPoolUsage.d.ts.map +1 -1
- package/dist/data/TaskPoolUsage.js +2 -1
- package/dist/data/TaskPoolUsage.js.map +1 -1
- package/dist/data/TimeseriesPanel.axes.cjs +18 -3
- package/dist/data/TimeseriesPanel.axes.cjs.map +1 -1
- package/dist/data/TimeseriesPanel.axes.d.ts +10 -1
- package/dist/data/TimeseriesPanel.axes.d.ts.map +1 -1
- package/dist/data/TimeseriesPanel.axes.js +17 -4
- package/dist/data/TimeseriesPanel.axes.js.map +1 -1
- package/dist/data/TimeseriesPanel.cjs +57 -23
- package/dist/data/TimeseriesPanel.cjs.map +1 -1
- package/dist/data/TimeseriesPanel.d.ts.map +1 -1
- package/dist/data/TimeseriesPanel.js +59 -25
- package/dist/data/TimeseriesPanel.js.map +1 -1
- package/dist/data/TimeseriesPanel.model.cjs +10 -7
- package/dist/data/TimeseriesPanel.model.cjs.map +1 -1
- package/dist/data/TimeseriesPanel.model.d.ts +7 -4
- package/dist/data/TimeseriesPanel.model.d.ts.map +1 -1
- package/dist/data/TimeseriesPanel.model.js +11 -8
- package/dist/data/TimeseriesPanel.model.js.map +1 -1
- package/dist/data/TimeseriesPanel.readout.cjs +11 -0
- package/dist/data/TimeseriesPanel.readout.cjs.map +1 -0
- package/dist/data/TimeseriesPanel.readout.d.ts +4 -0
- package/dist/data/TimeseriesPanel.readout.d.ts.map +1 -0
- package/dist/data/TimeseriesPanel.readout.js +10 -0
- package/dist/data/TimeseriesPanel.readout.js.map +1 -0
- package/dist/data/TimeseriesPanel.segments.cjs +67 -0
- package/dist/data/TimeseriesPanel.segments.cjs.map +1 -0
- package/dist/data/TimeseriesPanel.segments.d.ts +27 -0
- package/dist/data/TimeseriesPanel.segments.d.ts.map +1 -0
- package/dist/data/TimeseriesPanel.segments.js +67 -0
- package/dist/data/TimeseriesPanel.segments.js.map +1 -0
- package/dist/data/TreeDataTable.cjs +12 -3
- package/dist/data/TreeDataTable.cjs.map +1 -1
- package/dist/data/TreeDataTable.d.ts +15 -3
- package/dist/data/TreeDataTable.d.ts.map +1 -1
- package/dist/data/TreeDataTable.js +12 -3
- package/dist/data/TreeDataTable.js.map +1 -1
- package/dist/data/TreeNode.cjs +18 -3
- package/dist/data/TreeNode.cjs.map +1 -1
- package/dist/data/TreeNode.d.ts +7 -1
- package/dist/data/TreeNode.d.ts.map +1 -1
- package/dist/data/TreeNode.js +18 -3
- package/dist/data/TreeNode.js.map +1 -1
- package/dist/data/ai/SessionChatComposer.cjs +2 -0
- package/dist/data/ai/SessionChatComposer.cjs.map +1 -1
- package/dist/data/ai/SessionChatComposer.d.ts.map +1 -1
- package/dist/data/ai/SessionChatComposer.js +2 -0
- package/dist/data/ai/SessionChatComposer.js.map +1 -1
- package/dist/data/ai/SessionInspector.panels.cjs +47 -1
- package/dist/data/ai/SessionInspector.panels.cjs.map +1 -1
- package/dist/data/ai/SessionInspector.panels.d.ts.map +1 -1
- package/dist/data/ai/SessionInspector.panels.js +48 -2
- package/dist/data/ai/SessionInspector.panels.js.map +1 -1
- package/dist/data/ai/SessionViewer.unified.d.ts +48 -0
- package/dist/data/ai/SessionViewer.unified.d.ts.map +1 -1
- package/dist/data/ai/index.d.ts +2 -2
- package/dist/data/ai/index.d.ts.map +1 -1
- package/dist/data/ai/runtime-profiles/PresetWorkspace.cjs +97 -100
- package/dist/data/ai/runtime-profiles/PresetWorkspace.cjs.map +1 -1
- package/dist/data/ai/runtime-profiles/PresetWorkspace.d.ts.map +1 -1
- package/dist/data/ai/runtime-profiles/PresetWorkspace.js +97 -100
- package/dist/data/ai/runtime-profiles/PresetWorkspace.js.map +1 -1
- package/dist/data/ai/runtime-profiles/ProfileWorkspace.cjs +40 -38
- package/dist/data/ai/runtime-profiles/ProfileWorkspace.cjs.map +1 -1
- package/dist/data/ai/runtime-profiles/ProfileWorkspace.d.ts.map +1 -1
- package/dist/data/ai/runtime-profiles/ProfileWorkspace.js +41 -39
- package/dist/data/ai/runtime-profiles/ProfileWorkspace.js.map +1 -1
- package/dist/data/ai/runtime-profiles/ResolutionPreview.cjs +53 -0
- package/dist/data/ai/runtime-profiles/ResolutionPreview.cjs.map +1 -0
- package/dist/data/ai/runtime-profiles/ResolutionPreview.d.ts +7 -0
- package/dist/data/ai/runtime-profiles/ResolutionPreview.d.ts.map +1 -0
- package/dist/data/ai/runtime-profiles/ResolutionPreview.js +53 -0
- package/dist/data/ai/runtime-profiles/ResolutionPreview.js.map +1 -0
- package/dist/data/ai/runtime-profiles/index.d.ts +1 -1
- package/dist/data/ai/runtime-profiles/index.d.ts.map +1 -1
- package/dist/data/ai/sessionSubmitVariant.cjs +30 -0
- package/dist/data/ai/sessionSubmitVariant.cjs.map +1 -0
- package/dist/data/ai/sessionSubmitVariant.d.ts +7 -0
- package/dist/data/ai/sessionSubmitVariant.d.ts.map +1 -0
- package/dist/data/ai/sessionSubmitVariant.js +30 -0
- package/dist/data/ai/sessionSubmitVariant.js.map +1 -0
- package/dist/data/cells/Timestamp.cjs +15 -4
- package/dist/data/cells/Timestamp.cjs.map +1 -1
- package/dist/data/cells/Timestamp.d.ts.map +1 -1
- package/dist/data/cells/Timestamp.js +15 -4
- package/dist/data/cells/Timestamp.js.map +1 -1
- package/dist/data/cells/timestamp-format.cjs +28 -8
- package/dist/data/cells/timestamp-format.cjs.map +1 -1
- package/dist/data/cells/timestamp-format.d.ts +3 -1
- package/dist/data/cells/timestamp-format.d.ts.map +1 -1
- package/dist/data/cells/timestamp-format.js +28 -8
- package/dist/data/cells/timestamp-format.js.map +1 -1
- package/dist/data/charts/TrendChart.cjs +65 -31
- package/dist/data/charts/TrendChart.cjs.map +1 -1
- package/dist/data/charts/TrendChart.d.ts +12 -3
- package/dist/data/charts/TrendChart.d.ts.map +1 -1
- package/dist/data/charts/TrendChart.js +67 -33
- package/dist/data/charts/TrendChart.js.map +1 -1
- package/dist/data/charts/index.d.ts +1 -1
- package/dist/data/charts/index.d.ts.map +1 -1
- package/dist/data/chat/PromptInput.cjs +11 -2
- package/dist/data/chat/PromptInput.cjs.map +1 -1
- package/dist/data/chat/PromptInput.d.ts +15 -1
- package/dist/data/chat/PromptInput.d.ts.map +1 -1
- package/dist/data/chat/PromptInput.js +11 -2
- package/dist/data/chat/PromptInput.js.map +1 -1
- package/dist/data/chat/index.d.ts +1 -1
- package/dist/data/chat/index.d.ts.map +1 -1
- package/dist/data/data-table-filter-values.cjs.map +1 -1
- package/dist/data/data-table-filter-values.d.ts +1 -1
- package/dist/data/data-table-filter-values.d.ts.map +1 -1
- package/dist/data/data-table-filter-values.js.map +1 -1
- package/dist/data/data-table-server-filters.cjs +2 -6
- package/dist/data/data-table-server-filters.cjs.map +1 -1
- package/dist/data/data-table-server-filters.d.ts +1 -1
- package/dist/data/data-table-server-filters.d.ts.map +1 -1
- package/dist/data/data-table-server-filters.js +1 -5
- package/dist/data/data-table-server-filters.js.map +1 -1
- package/dist/data/diagnostics/ErrorDetails.cjs +2 -1
- package/dist/data/diagnostics/ErrorDetails.cjs.map +1 -1
- package/dist/data/diagnostics/ErrorDetails.d.ts +2 -1
- package/dist/data/diagnostics/ErrorDetails.d.ts.map +1 -1
- package/dist/data/diagnostics/ErrorDetails.js +2 -1
- package/dist/data/diagnostics/ErrorDetails.js.map +1 -1
- package/dist/data/gauge-stats.cjs +7 -3
- package/dist/data/gauge-stats.cjs.map +1 -1
- package/dist/data/gauge-stats.d.ts.map +1 -1
- package/dist/data/gauge-stats.js +7 -3
- package/dist/data/gauge-stats.js.map +1 -1
- package/dist/data/query-browser/QueryBrowser.cjs +41 -17
- package/dist/data/query-browser/QueryBrowser.cjs.map +1 -1
- package/dist/data/query-browser/QueryBrowser.d.ts +1 -1
- package/dist/data/query-browser/QueryBrowser.d.ts.map +1 -1
- package/dist/data/query-browser/QueryBrowser.fieldNames.cjs +23 -0
- package/dist/data/query-browser/QueryBrowser.fieldNames.cjs.map +1 -0
- package/dist/data/query-browser/QueryBrowser.fieldNames.d.ts +11 -0
- package/dist/data/query-browser/QueryBrowser.fieldNames.d.ts.map +1 -0
- package/dist/data/query-browser/QueryBrowser.fieldNames.js +23 -0
- package/dist/data/query-browser/QueryBrowser.fieldNames.js.map +1 -0
- package/dist/data/query-browser/QueryBrowser.js +41 -17
- package/dist/data/query-browser/QueryBrowser.js.map +1 -1
- package/dist/data/query-browser/QueryBrowser.types.cjs.map +1 -1
- package/dist/data/query-browser/QueryBrowser.types.d.ts +18 -0
- package/dist/data/query-browser/QueryBrowser.types.d.ts.map +1 -1
- package/dist/data/query-browser/QueryBrowser.types.js.map +1 -1
- package/dist/data/runtime/RuntimeBarLayout.cjs +3 -2
- package/dist/data/runtime/RuntimeBarLayout.cjs.map +1 -1
- package/dist/data/runtime/RuntimeBarLayout.d.ts.map +1 -1
- package/dist/data/runtime/RuntimeBarLayout.js +3 -2
- package/dist/data/runtime/RuntimeBarLayout.js.map +1 -1
- package/dist/data/test-runner/TestRunner.cjs +3 -1
- package/dist/data/test-runner/TestRunner.cjs.map +1 -1
- package/dist/data/test-runner/TestRunner.d.ts +8 -1
- package/dist/data/test-runner/TestRunner.d.ts.map +1 -1
- package/dist/data/test-runner/TestRunner.js +3 -1
- package/dist/data/test-runner/TestRunner.js.map +1 -1
- package/dist/data/test-runner/TestTree.cjs +1 -0
- package/dist/data/test-runner/TestTree.cjs.map +1 -1
- package/dist/data/test-runner/TestTree.d.ts.map +1 -1
- package/dist/data/test-runner/TestTree.js +1 -0
- package/dist/data/test-runner/TestTree.js.map +1 -1
- package/dist/data/test-runner/context.cjs.map +1 -1
- package/dist/data/test-runner/context.d.ts +2 -0
- package/dist/data/test-runner/context.d.ts.map +1 -1
- package/dist/data/test-runner/context.js.map +1 -1
- package/dist/data/timeseries-query.cjs +2 -2
- package/dist/data/timeseries-query.cjs.map +1 -1
- package/dist/data/timeseries-query.d.ts +1 -1
- package/dist/data/timeseries-query.d.ts.map +1 -1
- package/dist/data/timeseries-query.js +2 -2
- package/dist/data/timeseries-query.js.map +1 -1
- package/dist/data/version-info.cjs +3 -3
- package/dist/data/version-info.js +3 -3
- package/dist/data.cjs +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,67 @@
|
|
|
1
|
+
let yaml = require("yaml");
|
|
2
|
+
// src/expressions/playground/hostEvaluation.ts
|
|
3
|
+
/**
|
|
4
|
+
* Pieces a host needs to run the playground on its own evaluator.
|
|
5
|
+
*
|
|
6
|
+
* The playground evaluates text against text: a source and an input document,
|
|
7
|
+
* answering with a rendered string. A host that evaluates somewhere else — a
|
|
8
|
+
* profile service, an RPC — has rows (objects) and answers with values, so
|
|
9
|
+
* these convert between the two without each host re-deriving the rules.
|
|
10
|
+
*/
|
|
11
|
+
/** An error answer: nothing was evaluated, and the author is told why. */
|
|
12
|
+
function evalFailure(message) {
|
|
13
|
+
return {
|
|
14
|
+
result: "",
|
|
15
|
+
durationMs: 0,
|
|
16
|
+
error: { message }
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* The input pane's text as a document. JSON is valid YAML, so one parser reads
|
|
21
|
+
* both — the same way the Go evaluator's `parseInput` does.
|
|
22
|
+
*
|
|
23
|
+
* An empty input is an error rather than null: evaluating against nothing and
|
|
24
|
+
* reporting a clean result is how a wrong expression looks right.
|
|
25
|
+
*/
|
|
26
|
+
function parseInputDocument(input) {
|
|
27
|
+
if (input.trim() === "") return { error: "The input is empty. Add a YAML or JSON document for the expression to run against." };
|
|
28
|
+
try {
|
|
29
|
+
return { value: (0, yaml.parse)(input) };
|
|
30
|
+
} catch (cause) {
|
|
31
|
+
return { error: `The input is not valid YAML or JSON: ${cause.message}` };
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* A value as the playground's `result` string.
|
|
36
|
+
*
|
|
37
|
+
* Null is the empty string, not "null": the samples view calls a blank result
|
|
38
|
+
* "empty", which is exactly what an expression that read nothing should be.
|
|
39
|
+
*/
|
|
40
|
+
function resultText(value) {
|
|
41
|
+
if (value === null || value === void 0) return "";
|
|
42
|
+
if (typeof value === "string") return value;
|
|
43
|
+
if (typeof value === "object") return JSON.stringify(value);
|
|
44
|
+
return String(value);
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Sampled rows as the playground's samples: the row as pretty JSON, named by
|
|
48
|
+
* the host or by position.
|
|
49
|
+
*/
|
|
50
|
+
function rowSamples(rows, label) {
|
|
51
|
+
return rows.map((row, index) => ({
|
|
52
|
+
id: String(index),
|
|
53
|
+
label: label?.(row, index) ?? `row ${index + 1}`,
|
|
54
|
+
input: JSON.stringify(row, null, 2)
|
|
55
|
+
}));
|
|
56
|
+
}
|
|
57
|
+
/** Where the input pane opens: the first sampled row, or an empty document. */
|
|
58
|
+
function initialInput(samples) {
|
|
59
|
+
return samples[0]?.input ?? "{}";
|
|
60
|
+
}
|
|
61
|
+
exports.evalFailure = evalFailure;
|
|
62
|
+
exports.initialInput = initialInput;
|
|
63
|
+
exports.parseInputDocument = parseInputDocument;
|
|
64
|
+
exports.resultText = resultText;
|
|
65
|
+
exports.rowSamples = rowSamples;
|
|
66
|
+
|
|
67
|
+
//# sourceMappingURL=hostEvaluation.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hostEvaluation.cjs","names":["parse"],"sources":["../../../src/expressions/playground/hostEvaluation.ts"],"sourcesContent":["import { parse } from \"yaml\";\nimport type { EvalResponse, PlaygroundSample } from \"./api.ts\";\n\n/**\n * Pieces a host needs to run the playground on its own evaluator.\n *\n * The playground evaluates text against text: a source and an input document,\n * answering with a rendered string. A host that evaluates somewhere else — a\n * profile service, an RPC — has rows (objects) and answers with values, so\n * these convert between the two without each host re-deriving the rules.\n */\n\n/** An error answer: nothing was evaluated, and the author is told why. */\nexport function evalFailure(message: string): EvalResponse {\n return { result: \"\", durationMs: 0, error: { message } };\n}\n\nexport type ParsedDocument = { value: unknown } | { error: string };\n\n/**\n * The input pane's text as a document. JSON is valid YAML, so one parser reads\n * both — the same way the Go evaluator's `parseInput` does.\n *\n * An empty input is an error rather than null: evaluating against nothing and\n * reporting a clean result is how a wrong expression looks right.\n */\nexport function parseInputDocument(input: string): ParsedDocument {\n if (input.trim() === \"\") {\n return { error: \"The input is empty. Add a YAML or JSON document for the expression to run against.\" };\n }\n try {\n return { value: parse(input) as unknown };\n } catch (cause) {\n return { error: `The input is not valid YAML or JSON: ${(cause as Error).message}` };\n }\n}\n\n/**\n * A value as the playground's `result` string.\n *\n * Null is the empty string, not \"null\": the samples view calls a blank result\n * \"empty\", which is exactly what an expression that read nothing should be.\n */\nexport function resultText(value: unknown): string {\n if (value === null || value === undefined) return \"\";\n if (typeof value === \"string\") return value;\n if (typeof value === \"object\") return JSON.stringify(value);\n return String(value);\n}\n\n/**\n * Sampled rows as the playground's samples: the row as pretty JSON, named by\n * the host or by position.\n */\nexport function rowSamples<Row = unknown>(\n rows: readonly Row[],\n label?: (row: Row, index: number) => string,\n): PlaygroundSample[] {\n return rows.map((row, index) => ({\n id: String(index),\n label: label?.(row, index) ?? `row ${index + 1}`,\n input: JSON.stringify(row, null, 2),\n }));\n}\n\n/** Where the input pane opens: the first sampled row, or an empty document. */\nexport function initialInput(samples: readonly PlaygroundSample[]): string {\n return samples[0]?.input ?? \"{}\";\n}\n"],"mappings":";;;;;;;;;;;AAaA,SAAgB,YAAY,SAA+B;CACzD,OAAO;EAAE,QAAQ;EAAI,YAAY;EAAG,OAAO,EAAE,QAAQ;CAAE;AACzD;;;;;;;;AAWA,SAAgB,mBAAmB,OAA+B;CAChE,IAAI,MAAM,KAAK,MAAM,IACnB,OAAO,EAAE,OAAO,qFAAqF;CAEvG,IAAI;EACF,OAAO,EAAE,QAAA,GAAOA,KAAAA,MAAAA,CAAM,KAAK,EAAa;CAC1C,SAAS,OAAO;EACd,OAAO,EAAE,OAAO,wCAAyC,MAAgB,UAAU;CACrF;AACF;;;;;;;AAQA,SAAgB,WAAW,OAAwB;CACjD,IAAI,UAAU,QAAQ,UAAU,KAAA,GAAW,OAAO;CAClD,IAAI,OAAO,UAAU,UAAU,OAAO;CACtC,IAAI,OAAO,UAAU,UAAU,OAAO,KAAK,UAAU,KAAK;CAC1D,OAAO,OAAO,KAAK;AACrB;;;;;AAMA,SAAgB,WACd,MACA,OACoB;CACpB,OAAO,KAAK,KAAK,KAAK,WAAW;EAC/B,IAAI,OAAO,KAAK;EAChB,OAAO,QAAQ,KAAK,KAAK,KAAK,OAAO,QAAQ;EAC7C,OAAO,KAAK,UAAU,KAAK,MAAM,CAAC;CACpC,EAAE;AACJ;;AAGA,SAAgB,aAAa,SAA8C;CACzE,OAAO,QAAQ,EAAE,EAAE,SAAS;AAC9B"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { EvalResponse, PlaygroundSample } from './api.js';
|
|
2
|
+
/**
|
|
3
|
+
* Pieces a host needs to run the playground on its own evaluator.
|
|
4
|
+
*
|
|
5
|
+
* The playground evaluates text against text: a source and an input document,
|
|
6
|
+
* answering with a rendered string. A host that evaluates somewhere else — a
|
|
7
|
+
* profile service, an RPC — has rows (objects) and answers with values, so
|
|
8
|
+
* these convert between the two without each host re-deriving the rules.
|
|
9
|
+
*/
|
|
10
|
+
/** An error answer: nothing was evaluated, and the author is told why. */
|
|
11
|
+
export declare function evalFailure(message: string): EvalResponse;
|
|
12
|
+
export type ParsedDocument = {
|
|
13
|
+
value: unknown;
|
|
14
|
+
} | {
|
|
15
|
+
error: string;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* The input pane's text as a document. JSON is valid YAML, so one parser reads
|
|
19
|
+
* both — the same way the Go evaluator's `parseInput` does.
|
|
20
|
+
*
|
|
21
|
+
* An empty input is an error rather than null: evaluating against nothing and
|
|
22
|
+
* reporting a clean result is how a wrong expression looks right.
|
|
23
|
+
*/
|
|
24
|
+
export declare function parseInputDocument(input: string): ParsedDocument;
|
|
25
|
+
/**
|
|
26
|
+
* A value as the playground's `result` string.
|
|
27
|
+
*
|
|
28
|
+
* Null is the empty string, not "null": the samples view calls a blank result
|
|
29
|
+
* "empty", which is exactly what an expression that read nothing should be.
|
|
30
|
+
*/
|
|
31
|
+
export declare function resultText(value: unknown): string;
|
|
32
|
+
/**
|
|
33
|
+
* Sampled rows as the playground's samples: the row as pretty JSON, named by
|
|
34
|
+
* the host or by position.
|
|
35
|
+
*/
|
|
36
|
+
export declare function rowSamples<Row = unknown>(rows: readonly Row[], label?: (row: Row, index: number) => string): PlaygroundSample[];
|
|
37
|
+
/** Where the input pane opens: the first sampled row, or an empty document. */
|
|
38
|
+
export declare function initialInput(samples: readonly PlaygroundSample[]): string;
|
|
39
|
+
//# sourceMappingURL=hostEvaluation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hostEvaluation.d.ts","sourceRoot":"","sources":["../../../src/expressions/playground/hostEvaluation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE/D;;;;;;;GAOG;AAEH,0EAA0E;AAC1E,wBAAgB,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,YAAY,CAEzD;AAED,MAAM,MAAM,cAAc,GAAG;IAAE,KAAK,EAAE,OAAO,CAAA;CAAE,GAAG;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAEpE;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,cAAc,CAShE;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAKjD;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,GAAG,GAAG,OAAO,EACtC,IAAI,EAAE,SAAS,GAAG,EAAE,EACpB,KAAK,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,GAC1C,gBAAgB,EAAE,CAMpB;AAED,+EAA+E;AAC/E,wBAAgB,YAAY,CAAC,OAAO,EAAE,SAAS,gBAAgB,EAAE,GAAG,MAAM,CAEzE"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { parse } from "yaml";
|
|
2
|
+
// src/expressions/playground/hostEvaluation.ts
|
|
3
|
+
/**
|
|
4
|
+
* Pieces a host needs to run the playground on its own evaluator.
|
|
5
|
+
*
|
|
6
|
+
* The playground evaluates text against text: a source and an input document,
|
|
7
|
+
* answering with a rendered string. A host that evaluates somewhere else — a
|
|
8
|
+
* profile service, an RPC — has rows (objects) and answers with values, so
|
|
9
|
+
* these convert between the two without each host re-deriving the rules.
|
|
10
|
+
*/
|
|
11
|
+
/** An error answer: nothing was evaluated, and the author is told why. */
|
|
12
|
+
function evalFailure(message) {
|
|
13
|
+
return {
|
|
14
|
+
result: "",
|
|
15
|
+
durationMs: 0,
|
|
16
|
+
error: { message }
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* The input pane's text as a document. JSON is valid YAML, so one parser reads
|
|
21
|
+
* both — the same way the Go evaluator's `parseInput` does.
|
|
22
|
+
*
|
|
23
|
+
* An empty input is an error rather than null: evaluating against nothing and
|
|
24
|
+
* reporting a clean result is how a wrong expression looks right.
|
|
25
|
+
*/
|
|
26
|
+
function parseInputDocument(input) {
|
|
27
|
+
if (input.trim() === "") return { error: "The input is empty. Add a YAML or JSON document for the expression to run against." };
|
|
28
|
+
try {
|
|
29
|
+
return { value: parse(input) };
|
|
30
|
+
} catch (cause) {
|
|
31
|
+
return { error: `The input is not valid YAML or JSON: ${cause.message}` };
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* A value as the playground's `result` string.
|
|
36
|
+
*
|
|
37
|
+
* Null is the empty string, not "null": the samples view calls a blank result
|
|
38
|
+
* "empty", which is exactly what an expression that read nothing should be.
|
|
39
|
+
*/
|
|
40
|
+
function resultText(value) {
|
|
41
|
+
if (value === null || value === void 0) return "";
|
|
42
|
+
if (typeof value === "string") return value;
|
|
43
|
+
if (typeof value === "object") return JSON.stringify(value);
|
|
44
|
+
return String(value);
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Sampled rows as the playground's samples: the row as pretty JSON, named by
|
|
48
|
+
* the host or by position.
|
|
49
|
+
*/
|
|
50
|
+
function rowSamples(rows, label) {
|
|
51
|
+
return rows.map((row, index) => ({
|
|
52
|
+
id: String(index),
|
|
53
|
+
label: label?.(row, index) ?? `row ${index + 1}`,
|
|
54
|
+
input: JSON.stringify(row, null, 2)
|
|
55
|
+
}));
|
|
56
|
+
}
|
|
57
|
+
/** Where the input pane opens: the first sampled row, or an empty document. */
|
|
58
|
+
function initialInput(samples) {
|
|
59
|
+
return samples[0]?.input ?? "{}";
|
|
60
|
+
}
|
|
61
|
+
export { evalFailure, initialInput, parseInputDocument, resultText, rowSamples };
|
|
62
|
+
|
|
63
|
+
//# sourceMappingURL=hostEvaluation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hostEvaluation.js","names":[],"sources":["../../../src/expressions/playground/hostEvaluation.ts"],"sourcesContent":["import { parse } from \"yaml\";\nimport type { EvalResponse, PlaygroundSample } from \"./api.ts\";\n\n/**\n * Pieces a host needs to run the playground on its own evaluator.\n *\n * The playground evaluates text against text: a source and an input document,\n * answering with a rendered string. A host that evaluates somewhere else — a\n * profile service, an RPC — has rows (objects) and answers with values, so\n * these convert between the two without each host re-deriving the rules.\n */\n\n/** An error answer: nothing was evaluated, and the author is told why. */\nexport function evalFailure(message: string): EvalResponse {\n return { result: \"\", durationMs: 0, error: { message } };\n}\n\nexport type ParsedDocument = { value: unknown } | { error: string };\n\n/**\n * The input pane's text as a document. JSON is valid YAML, so one parser reads\n * both — the same way the Go evaluator's `parseInput` does.\n *\n * An empty input is an error rather than null: evaluating against nothing and\n * reporting a clean result is how a wrong expression looks right.\n */\nexport function parseInputDocument(input: string): ParsedDocument {\n if (input.trim() === \"\") {\n return { error: \"The input is empty. Add a YAML or JSON document for the expression to run against.\" };\n }\n try {\n return { value: parse(input) as unknown };\n } catch (cause) {\n return { error: `The input is not valid YAML or JSON: ${(cause as Error).message}` };\n }\n}\n\n/**\n * A value as the playground's `result` string.\n *\n * Null is the empty string, not \"null\": the samples view calls a blank result\n * \"empty\", which is exactly what an expression that read nothing should be.\n */\nexport function resultText(value: unknown): string {\n if (value === null || value === undefined) return \"\";\n if (typeof value === \"string\") return value;\n if (typeof value === \"object\") return JSON.stringify(value);\n return String(value);\n}\n\n/**\n * Sampled rows as the playground's samples: the row as pretty JSON, named by\n * the host or by position.\n */\nexport function rowSamples<Row = unknown>(\n rows: readonly Row[],\n label?: (row: Row, index: number) => string,\n): PlaygroundSample[] {\n return rows.map((row, index) => ({\n id: String(index),\n label: label?.(row, index) ?? `row ${index + 1}`,\n input: JSON.stringify(row, null, 2),\n }));\n}\n\n/** Where the input pane opens: the first sampled row, or an empty document. */\nexport function initialInput(samples: readonly PlaygroundSample[]): string {\n return samples[0]?.input ?? \"{}\";\n}\n"],"mappings":";;;;;;;;;;;AAaA,SAAgB,YAAY,SAA+B;CACzD,OAAO;EAAE,QAAQ;EAAI,YAAY;EAAG,OAAO,EAAE,QAAQ;CAAE;AACzD;;;;;;;;AAWA,SAAgB,mBAAmB,OAA+B;CAChE,IAAI,MAAM,KAAK,MAAM,IACnB,OAAO,EAAE,OAAO,qFAAqF;CAEvG,IAAI;EACF,OAAO,EAAE,OAAO,MAAM,KAAK,EAAa;CAC1C,SAAS,OAAO;EACd,OAAO,EAAE,OAAO,wCAAyC,MAAgB,UAAU;CACrF;AACF;;;;;;;AAQA,SAAgB,WAAW,OAAwB;CACjD,IAAI,UAAU,QAAQ,UAAU,KAAA,GAAW,OAAO;CAClD,IAAI,OAAO,UAAU,UAAU,OAAO;CACtC,IAAI,OAAO,UAAU,UAAU,OAAO,KAAK,UAAU,KAAK;CAC1D,OAAO,OAAO,KAAK;AACrB;;;;;AAMA,SAAgB,WACd,MACA,OACoB;CACpB,OAAO,KAAK,KAAK,KAAK,WAAW;EAC/B,IAAI,OAAO,KAAK;EAChB,OAAO,QAAQ,KAAK,KAAK,KAAK,OAAO,QAAQ;EAC7C,OAAO,KAAK,UAAU,KAAK,MAAM,CAAC;CACpC,EAAE;AACJ;;AAGA,SAAgB,aAAa,SAA8C;CACzE,OAAO,QAAQ,EAAE,EAAE,SAAS;AAC9B"}
|
|
@@ -17,7 +17,7 @@ function GraphPanel({ document, languageId, onInsert, formatPath }) {
|
|
|
17
17
|
const [selectedId, setSelectedId] = (0, react.useState)();
|
|
18
18
|
const [note, setNote] = (0, react.useState)();
|
|
19
19
|
const tree = (0, react.useMemo)(() => document === void 0 || document === null ? null : require_jsonPathTree.createLazyJSONPathTree(document, { keyPrefix: "input" }), [document]);
|
|
20
|
-
const roots = (0, react.useMemo)(() => tree ? tree.roots.map(require_graphNodes.toGraphNode) : [], [tree]);
|
|
20
|
+
const roots = (0, react.useMemo)(() => tree ? tree.roots.map((root) => require_graphNodes.toGraphNode(root, tree)) : [], [tree]);
|
|
21
21
|
if (!tree) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
22
22
|
className: "flex h-full items-center justify-center p-6 text-center text-sm text-muted-foreground",
|
|
23
23
|
children: "Nothing to show yet — write a YAML or JSON document in the input pane and its shape appears here."
|
|
@@ -29,7 +29,12 @@ function GraphPanel({ document, languageId, onInsert, formatPath }) {
|
|
|
29
29
|
setNote("That row has no addressable path.");
|
|
30
30
|
return;
|
|
31
31
|
}
|
|
32
|
-
const
|
|
32
|
+
const treeNode = node.metadata?.node;
|
|
33
|
+
if (formatPath && !treeNode) {
|
|
34
|
+
setNote("That row has no addressable path.");
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
const expression = formatPath && treeNode ? formatPath(segments, treeNode) : require_environment.pathExpression(languageId, segments);
|
|
33
38
|
if (expression === null) {
|
|
34
39
|
setNote("A go template reaches a list element or a non-identifier key through `index`, which is a call rather than a path — so there is nothing to insert.");
|
|
35
40
|
return;
|
|
@@ -54,7 +59,7 @@ function GraphPanel({ document, languageId, onInsert, formatPath }) {
|
|
|
54
59
|
loadChildren: async (node) => {
|
|
55
60
|
const source = node.metadata?.node;
|
|
56
61
|
if (!source) return [];
|
|
57
|
-
return (await tree.loadChildren(source)).map(require_graphNodes.toGraphNode);
|
|
62
|
+
return (await tree.loadChildren(source)).map((child) => require_graphNodes.toGraphNode(child, tree));
|
|
58
63
|
},
|
|
59
64
|
empty: "The document is empty."
|
|
60
65
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GraphPanel.cjs","names":["useState","useMemo","createLazyJSONPathTree","toGraphNode","literalSegments","pathExpression","ObjectGraph"],"sources":["../../../../src/expressions/playground/panels/GraphPanel.tsx"],"sourcesContent":["import { useMemo, useState } from \"react\";\nimport {\n createLazyJSONPathTree,\n literalSegments,\n type JSONPathNode,\n type LazyJSONPathTree,\n} from \"../../../components/jsonPathTree\";\nimport { ObjectGraph } from \"../../../data/ObjectGraph\";\nimport { pathExpression } from \"../../lang/index.ts\";\nimport { toGraphNode } from \"./graphNodes.ts\";\nimport type { GraphNode } from \"./graphNodes.ts\";\n\ninterface GraphPanelProps {\n /** The parsed input document, or undefined when there is nothing to show. */\n document: unknown;\n /** Monaco language id, which decides the syntax a click inserts. */\n languageId: string;\n /** Writes an expression at the source editor's cursor. */\n onInsert: (expression: string) => void;\n formatPath?:
|
|
1
|
+
{"version":3,"file":"GraphPanel.cjs","names":["useState","useMemo","createLazyJSONPathTree","toGraphNode","literalSegments","pathExpression","ObjectGraph"],"sources":["../../../../src/expressions/playground/panels/GraphPanel.tsx"],"sourcesContent":["import { useMemo, useState } from \"react\";\nimport {\n createLazyJSONPathTree,\n literalSegments,\n type JSONPathNode,\n type LazyJSONPathTree,\n} from \"../../../components/jsonPathTree\";\nimport { ObjectGraph } from \"../../../data/ObjectGraph\";\nimport { pathExpression } from \"../../lang/index.ts\";\nimport type { FormatPath } from \"../api.ts\";\nimport { toGraphNode } from \"./graphNodes.ts\";\nimport type { GraphNode } from \"./graphNodes.ts\";\n\ninterface GraphPanelProps {\n /** The parsed input document, or undefined when there is nothing to show. */\n document: unknown;\n /** Monaco language id, which decides the syntax a click inserts. */\n languageId: string;\n /** Writes an expression at the source editor's cursor. */\n onInsert: (expression: string) => void;\n formatPath?: FormatPath;\n}\n\n/**\n * The shape of the document being evaluated against.\n *\n * The input pane shows the document as text; this shows it as paths. Clicking a\n * row writes that path into the expression, in the syntax of the language being\n * written, which is the step that otherwise means reading YAML and retyping it\n * by hand.\n */\nexport function GraphPanel({\n document,\n languageId,\n onInsert,\n formatPath,\n}: GraphPanelProps) {\n const [selectedId, setSelectedId] = useState<string>();\n const [note, setNote] = useState<string>();\n\n const tree = useMemo<LazyJSONPathTree | null>(\n () =>\n document === undefined || document === null\n ? null\n : createLazyJSONPathTree(document, { keyPrefix: \"input\" }),\n [document],\n );\n\n const roots = useMemo(\n () => (tree ? tree.roots.map((root) => toGraphNode(root, tree)) : []),\n [tree],\n );\n\n if (!tree) {\n return (\n <div className=\"flex h-full items-center justify-center p-6 text-center text-sm text-muted-foreground\">\n Nothing to show yet — write a YAML or JSON document in the input pane\n and its shape appears here.\n </div>\n );\n }\n\n const select = (node: GraphNode) => {\n setSelectedId(node.id);\n const segments = node.path ? literalSegments(node.path) : undefined;\n if (!segments) {\n setNote(\"That row has no addressable path.\");\n return;\n }\n const treeNode = node.metadata?.node;\n if (formatPath && !treeNode) {\n setNote(\"That row has no addressable path.\");\n return;\n }\n const expression =\n formatPath && treeNode ? formatPath(segments, treeNode) : pathExpression(languageId, segments);\n if (expression === null) {\n setNote(\n \"A go template reaches a list element or a non-identifier key through `index`, \" +\n \"which is a call rather than a path — so there is nothing to insert.\",\n );\n return;\n }\n if (expression === \"\") {\n setNote(\n \"The whole document has no name in this language — pick a key under it.\",\n );\n return;\n }\n setNote(undefined);\n onInsert(expression);\n };\n\n return (\n <div className=\"flex h-full min-h-0 flex-col\">\n <div className=\"min-h-0 flex-1 overflow-auto p-2\">\n <ObjectGraph\n roots={roots}\n showControls\n defaultOpenDepth={2}\n {...(selectedId ? { selectedId } : {})}\n onNodeSelect={select}\n loadChildren={async (node) => {\n const source = node.metadata?.node as JSONPathNode | undefined;\n if (!source) return [];\n return (await tree.loadChildren(source)).map((child) => toGraphNode(child, tree));\n }}\n empty=\"The document is empty.\"\n />\n </div>\n <footer className=\"shrink-0 border-t border-border px-4 py-2 text-xs text-muted-foreground\">\n {note ?? \"Click a key to insert its path at the cursor.\"}\n </footer>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;AA+BA,SAAgB,WAAW,EACzB,UACA,YACA,UACA,cACkB;CAClB,MAAM,CAAC,YAAY,kBAAA,GAAiBA,MAAAA,SAAAA,CAAiB;CACrD,MAAM,CAAC,MAAM,YAAA,GAAWA,MAAAA,SAAAA,CAAiB;CAEzC,MAAM,QAAA,GAAOC,MAAAA,QAAAA,OAET,aAAa,KAAA,KAAa,aAAa,OACnC,OACAC,qBAAAA,uBAAuB,UAAU,EAAE,WAAW,QAAQ,CAAC,GAC7D,CAAC,QAAQ,CACX;CAEA,MAAM,SAAA,GAAQD,MAAAA,QAAAA,OACL,OAAO,KAAK,MAAM,KAAK,SAASE,mBAAAA,YAAY,MAAM,IAAI,CAAC,IAAI,CAAC,GACnE,CAAC,IAAI,CACP;CAEA,IAAI,CAAC,MACH,OACE,iBAAA,GAAA,kBAAA,IAAA,CAAC,OAAD;EAAK,WAAU;EAAwF,UAAA;CAGlG,CAAA;CAIT,MAAM,UAAU,SAAoB;EAClC,cAAc,KAAK,EAAE;EACrB,MAAM,WAAW,KAAK,OAAOC,qBAAAA,gBAAgB,KAAK,IAAI,IAAI,KAAA;EAC1D,IAAI,CAAC,UAAU;GACb,QAAQ,mCAAmC;GAC3C;EACF;EACA,MAAM,WAAW,KAAK,UAAU;EAChC,IAAI,cAAc,CAAC,UAAU;GAC3B,QAAQ,mCAAmC;GAC3C;EACF;EACA,MAAM,aACJ,cAAc,WAAW,WAAW,UAAU,QAAQ,IAAIC,oBAAAA,eAAe,YAAY,QAAQ;EAC/F,IAAI,eAAe,MAAM;GACvB,QACE,mJAEF;GACA;EACF;EACA,IAAI,eAAe,IAAI;GACrB,QACE,wEACF;GACA;EACF;EACA,QAAQ,KAAA,CAAS;EACjB,SAAS,UAAU;CACrB;CAEA,OACE,iBAAA,GAAA,kBAAA,KAAA,CAAC,OAAD;EAAK,WAAU;EAAf,UAAA,CACE,iBAAA,GAAA,kBAAA,IAAA,CAAC,OAAD;GAAK,WAAU;GACb,UAAA,iBAAA,GAAA,kBAAA,IAAA,CAACC,oBAAAA,aAAD;IACS;IACP,cAAA;IACA,kBAAkB;IAClB,GAAK,aAAa,EAAE,WAAW,IAAI,CAAC;IACpC,cAAc;IACd,cAAc,OAAO,SAAS;KAC5B,MAAM,SAAS,KAAK,UAAU;KAC9B,IAAI,CAAC,QAAQ,OAAO,CAAC;KACrB,QAAQ,MAAM,KAAK,aAAa,MAAM,EAAA,CAAG,KAAK,UAAUH,mBAAAA,YAAY,OAAO,IAAI,CAAC;IAClF;IACA,OAAM;GACP,CAAA;EACE,CAAA,GACL,iBAAA,GAAA,kBAAA,IAAA,CAAC,UAAD;GAAQ,WAAU;GACf,UAAA,QAAQ;EACH,CAAA,CACL;;AAET"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { FormatPath } from '../api.js';
|
|
1
2
|
interface GraphPanelProps {
|
|
2
3
|
/** The parsed input document, or undefined when there is nothing to show. */
|
|
3
4
|
document: unknown;
|
|
@@ -5,7 +6,7 @@ interface GraphPanelProps {
|
|
|
5
6
|
languageId: string;
|
|
6
7
|
/** Writes an expression at the source editor's cursor. */
|
|
7
8
|
onInsert: (expression: string) => void;
|
|
8
|
-
formatPath?:
|
|
9
|
+
formatPath?: FormatPath;
|
|
9
10
|
}
|
|
10
11
|
/**
|
|
11
12
|
* The shape of the document being evaluated against.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GraphPanel.d.ts","sourceRoot":"","sources":["../../../../src/expressions/playground/panels/GraphPanel.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GraphPanel.d.ts","sourceRoot":"","sources":["../../../../src/expressions/playground/panels/GraphPanel.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAI5C,UAAU,eAAe;IACvB,6EAA6E;IAC7E,QAAQ,EAAE,OAAO,CAAC;IAClB,oEAAoE;IACpE,UAAU,EAAE,MAAM,CAAC;IACnB,0DAA0D;IAC1D,QAAQ,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB;AAED;;;;;;;GAOG;AACH,wBAAgB,UAAU,CAAC,EACzB,QAAQ,EACR,UAAU,EACV,QAAQ,EACR,UAAU,GACX,EAAE,eAAe,+BA+EjB"}
|
|
@@ -17,7 +17,7 @@ function GraphPanel({ document, languageId, onInsert, formatPath }) {
|
|
|
17
17
|
const [selectedId, setSelectedId] = useState();
|
|
18
18
|
const [note, setNote] = useState();
|
|
19
19
|
const tree = useMemo(() => document === void 0 || document === null ? null : createLazyJSONPathTree(document, { keyPrefix: "input" }), [document]);
|
|
20
|
-
const roots = useMemo(() => tree ? tree.roots.map(toGraphNode) : [], [tree]);
|
|
20
|
+
const roots = useMemo(() => tree ? tree.roots.map((root) => toGraphNode(root, tree)) : [], [tree]);
|
|
21
21
|
if (!tree) return /* @__PURE__ */ jsx("div", {
|
|
22
22
|
className: "flex h-full items-center justify-center p-6 text-center text-sm text-muted-foreground",
|
|
23
23
|
children: "Nothing to show yet — write a YAML or JSON document in the input pane and its shape appears here."
|
|
@@ -29,7 +29,12 @@ function GraphPanel({ document, languageId, onInsert, formatPath }) {
|
|
|
29
29
|
setNote("That row has no addressable path.");
|
|
30
30
|
return;
|
|
31
31
|
}
|
|
32
|
-
const
|
|
32
|
+
const treeNode = node.metadata?.node;
|
|
33
|
+
if (formatPath && !treeNode) {
|
|
34
|
+
setNote("That row has no addressable path.");
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
const expression = formatPath && treeNode ? formatPath(segments, treeNode) : pathExpression(languageId, segments);
|
|
33
38
|
if (expression === null) {
|
|
34
39
|
setNote("A go template reaches a list element or a non-identifier key through `index`, which is a call rather than a path — so there is nothing to insert.");
|
|
35
40
|
return;
|
|
@@ -54,7 +59,7 @@ function GraphPanel({ document, languageId, onInsert, formatPath }) {
|
|
|
54
59
|
loadChildren: async (node) => {
|
|
55
60
|
const source = node.metadata?.node;
|
|
56
61
|
if (!source) return [];
|
|
57
|
-
return (await tree.loadChildren(source)).map(toGraphNode);
|
|
62
|
+
return (await tree.loadChildren(source)).map((child) => toGraphNode(child, tree));
|
|
58
63
|
},
|
|
59
64
|
empty: "The document is empty."
|
|
60
65
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GraphPanel.js","names":[],"sources":["../../../../src/expressions/playground/panels/GraphPanel.tsx"],"sourcesContent":["import { useMemo, useState } from \"react\";\nimport {\n createLazyJSONPathTree,\n literalSegments,\n type JSONPathNode,\n type LazyJSONPathTree,\n} from \"../../../components/jsonPathTree\";\nimport { ObjectGraph } from \"../../../data/ObjectGraph\";\nimport { pathExpression } from \"../../lang/index.ts\";\nimport { toGraphNode } from \"./graphNodes.ts\";\nimport type { GraphNode } from \"./graphNodes.ts\";\n\ninterface GraphPanelProps {\n /** The parsed input document, or undefined when there is nothing to show. */\n document: unknown;\n /** Monaco language id, which decides the syntax a click inserts. */\n languageId: string;\n /** Writes an expression at the source editor's cursor. */\n onInsert: (expression: string) => void;\n formatPath?:
|
|
1
|
+
{"version":3,"file":"GraphPanel.js","names":[],"sources":["../../../../src/expressions/playground/panels/GraphPanel.tsx"],"sourcesContent":["import { useMemo, useState } from \"react\";\nimport {\n createLazyJSONPathTree,\n literalSegments,\n type JSONPathNode,\n type LazyJSONPathTree,\n} from \"../../../components/jsonPathTree\";\nimport { ObjectGraph } from \"../../../data/ObjectGraph\";\nimport { pathExpression } from \"../../lang/index.ts\";\nimport type { FormatPath } from \"../api.ts\";\nimport { toGraphNode } from \"./graphNodes.ts\";\nimport type { GraphNode } from \"./graphNodes.ts\";\n\ninterface GraphPanelProps {\n /** The parsed input document, or undefined when there is nothing to show. */\n document: unknown;\n /** Monaco language id, which decides the syntax a click inserts. */\n languageId: string;\n /** Writes an expression at the source editor's cursor. */\n onInsert: (expression: string) => void;\n formatPath?: FormatPath;\n}\n\n/**\n * The shape of the document being evaluated against.\n *\n * The input pane shows the document as text; this shows it as paths. Clicking a\n * row writes that path into the expression, in the syntax of the language being\n * written, which is the step that otherwise means reading YAML and retyping it\n * by hand.\n */\nexport function GraphPanel({\n document,\n languageId,\n onInsert,\n formatPath,\n}: GraphPanelProps) {\n const [selectedId, setSelectedId] = useState<string>();\n const [note, setNote] = useState<string>();\n\n const tree = useMemo<LazyJSONPathTree | null>(\n () =>\n document === undefined || document === null\n ? null\n : createLazyJSONPathTree(document, { keyPrefix: \"input\" }),\n [document],\n );\n\n const roots = useMemo(\n () => (tree ? tree.roots.map((root) => toGraphNode(root, tree)) : []),\n [tree],\n );\n\n if (!tree) {\n return (\n <div className=\"flex h-full items-center justify-center p-6 text-center text-sm text-muted-foreground\">\n Nothing to show yet — write a YAML or JSON document in the input pane\n and its shape appears here.\n </div>\n );\n }\n\n const select = (node: GraphNode) => {\n setSelectedId(node.id);\n const segments = node.path ? literalSegments(node.path) : undefined;\n if (!segments) {\n setNote(\"That row has no addressable path.\");\n return;\n }\n const treeNode = node.metadata?.node;\n if (formatPath && !treeNode) {\n setNote(\"That row has no addressable path.\");\n return;\n }\n const expression =\n formatPath && treeNode ? formatPath(segments, treeNode) : pathExpression(languageId, segments);\n if (expression === null) {\n setNote(\n \"A go template reaches a list element or a non-identifier key through `index`, \" +\n \"which is a call rather than a path — so there is nothing to insert.\",\n );\n return;\n }\n if (expression === \"\") {\n setNote(\n \"The whole document has no name in this language — pick a key under it.\",\n );\n return;\n }\n setNote(undefined);\n onInsert(expression);\n };\n\n return (\n <div className=\"flex h-full min-h-0 flex-col\">\n <div className=\"min-h-0 flex-1 overflow-auto p-2\">\n <ObjectGraph\n roots={roots}\n showControls\n defaultOpenDepth={2}\n {...(selectedId ? { selectedId } : {})}\n onNodeSelect={select}\n loadChildren={async (node) => {\n const source = node.metadata?.node as JSONPathNode | undefined;\n if (!source) return [];\n return (await tree.loadChildren(source)).map((child) => toGraphNode(child, tree));\n }}\n empty=\"The document is empty.\"\n />\n </div>\n <footer className=\"shrink-0 border-t border-border px-4 py-2 text-xs text-muted-foreground\">\n {note ?? \"Click a key to insert its path at the cursor.\"}\n </footer>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;AA+BA,SAAgB,WAAW,EACzB,UACA,YACA,UACA,cACkB;CAClB,MAAM,CAAC,YAAY,iBAAiB,SAAiB;CACrD,MAAM,CAAC,MAAM,WAAW,SAAiB;CAEzC,MAAM,OAAO,cAET,aAAa,KAAA,KAAa,aAAa,OACnC,OACA,uBAAuB,UAAU,EAAE,WAAW,QAAQ,CAAC,GAC7D,CAAC,QAAQ,CACX;CAEA,MAAM,QAAQ,cACL,OAAO,KAAK,MAAM,KAAK,SAAS,YAAY,MAAM,IAAI,CAAC,IAAI,CAAC,GACnE,CAAC,IAAI,CACP;CAEA,IAAI,CAAC,MACH,OACE,oBAAC,OAAD;EAAK,WAAU;EAAwF,UAAA;CAGlG,CAAA;CAIT,MAAM,UAAU,SAAoB;EAClC,cAAc,KAAK,EAAE;EACrB,MAAM,WAAW,KAAK,OAAO,gBAAgB,KAAK,IAAI,IAAI,KAAA;EAC1D,IAAI,CAAC,UAAU;GACb,QAAQ,mCAAmC;GAC3C;EACF;EACA,MAAM,WAAW,KAAK,UAAU;EAChC,IAAI,cAAc,CAAC,UAAU;GAC3B,QAAQ,mCAAmC;GAC3C;EACF;EACA,MAAM,aACJ,cAAc,WAAW,WAAW,UAAU,QAAQ,IAAI,eAAe,YAAY,QAAQ;EAC/F,IAAI,eAAe,MAAM;GACvB,QACE,mJAEF;GACA;EACF;EACA,IAAI,eAAe,IAAI;GACrB,QACE,wEACF;GACA;EACF;EACA,QAAQ,KAAA,CAAS;EACjB,SAAS,UAAU;CACrB;CAEA,OACE,qBAAC,OAAD;EAAK,WAAU;EAAf,UAAA,CACE,oBAAC,OAAD;GAAK,WAAU;GACb,UAAA,oBAAC,aAAD;IACS;IACP,cAAA;IACA,kBAAkB;IAClB,GAAK,aAAa,EAAE,WAAW,IAAI,CAAC;IACpC,cAAc;IACd,cAAc,OAAO,SAAS;KAC5B,MAAM,SAAS,KAAK,UAAU;KAC9B,IAAI,CAAC,QAAQ,OAAO,CAAC;KACrB,QAAQ,MAAM,KAAK,aAAa,MAAM,EAAA,CAAG,KAAK,UAAU,YAAY,OAAO,IAAI,CAAC;IAClF;IACA,OAAM;GACP,CAAA;EACE,CAAA,GACL,oBAAC,UAAD;GAAQ,WAAU;GACf,UAAA,QAAQ;EACH,CAAA,CACL;;AAET"}
|
|
@@ -9,8 +9,12 @@ const require_environment = require("../../lang/environment.cjs");
|
|
|
9
9
|
* path instead. And `kind` is structural — object, array, scalar — so a scalar's
|
|
10
10
|
* own type is read from the value: `string` against `number` is the distinction
|
|
11
11
|
* that decides whether an expression needs quotes.
|
|
12
|
+
*
|
|
13
|
+
* Whether a node opens is the tree's call, not the node's kind: a string that
|
|
14
|
+
* holds JSON is a scalar to look at and a document to walk, and providers keep
|
|
15
|
+
* their most interesting fields in exactly such a column.
|
|
12
16
|
*/
|
|
13
|
-
function toGraphNode(node) {
|
|
17
|
+
function toGraphNode(node, tree) {
|
|
14
18
|
const container = node.kind === "object" || node.kind === "array";
|
|
15
19
|
const scalar = node.kind === "scalar";
|
|
16
20
|
return {
|
|
@@ -21,7 +25,7 @@ function toGraphNode(node) {
|
|
|
21
25
|
...scalar || container ? { type: require_environment.kindOf(node.value) } : {},
|
|
22
26
|
...scalar ? { value: scalarValue(node.value) } : {},
|
|
23
27
|
...scalar ? {} : { raw: node.summary },
|
|
24
|
-
expandable:
|
|
28
|
+
expandable: tree.expandable(node),
|
|
25
29
|
metadata: { node }
|
|
26
30
|
};
|
|
27
31
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphNodes.cjs","names":["kindOf","literalSegments"],"sources":["../../../../src/expressions/playground/panels/graphNodes.ts"],"sourcesContent":["import {\n literalSegments,\n type JSONPathNode,\n} from \"../../../components/jsonPathTree\";\nimport type { ObjectGraphNode } from \"../../../data/ObjectGraph\";\nimport { kindOf } from \"../../lang/index.ts\";\n\n/** An `ObjectGraphNode` that keeps the tree node it came from, for lazy loading. */\nexport interface GraphNode extends ObjectGraphNode {\n metadata?: { node: JSONPathNode };\n}\n\n/**\n * Maps one lazy-tree node to a graph row.\n *\n * Two of the tree's fields do not mean what their names suggest here. `key` is a\n * namespaced identity, not a display name, so the label comes off the end of the\n * path instead. And `kind` is structural — object, array, scalar — so a scalar's\n * own type is read from the value: `string` against `number` is the distinction\n * that decides whether an expression needs quotes.\n */\nexport function toGraphNode(node: JSONPathNode): GraphNode {\n const container = node.kind === \"object\" || node.kind === \"array\";\n const scalar = node.kind === \"scalar\";\n // Keys are omitted rather than set to undefined: `exactOptionalPropertyTypes`\n // treats the two as different, and ObjectGraph's optional fields mean absent.\n return {\n id: node.key,\n label: labelOf(node),\n path: node.path,\n kind: node.kind,\n ...(scalar || container ? { type: kindOf(node.value) } : {}),\n ...(scalar ? { value: scalarValue(node.value) } : {}),\n ...(scalar ? {} : { raw: node.summary }),\n expandable:
|
|
1
|
+
{"version":3,"file":"graphNodes.cjs","names":["kindOf","literalSegments"],"sources":["../../../../src/expressions/playground/panels/graphNodes.ts"],"sourcesContent":["import {\n literalSegments,\n type JSONPathNode,\n type LazyJSONPathTree,\n} from \"../../../components/jsonPathTree\";\nimport type { ObjectGraphNode } from \"../../../data/ObjectGraph\";\nimport { kindOf } from \"../../lang/index.ts\";\n\n/** An `ObjectGraphNode` that keeps the tree node it came from, for lazy loading. */\nexport interface GraphNode extends ObjectGraphNode {\n metadata?: { node: JSONPathNode };\n}\n\n/**\n * Maps one lazy-tree node to a graph row.\n *\n * Two of the tree's fields do not mean what their names suggest here. `key` is a\n * namespaced identity, not a display name, so the label comes off the end of the\n * path instead. And `kind` is structural — object, array, scalar — so a scalar's\n * own type is read from the value: `string` against `number` is the distinction\n * that decides whether an expression needs quotes.\n *\n * Whether a node opens is the tree's call, not the node's kind: a string that\n * holds JSON is a scalar to look at and a document to walk, and providers keep\n * their most interesting fields in exactly such a column.\n */\nexport function toGraphNode(node: JSONPathNode, tree: Pick<LazyJSONPathTree, \"expandable\">): GraphNode {\n const container = node.kind === \"object\" || node.kind === \"array\";\n const scalar = node.kind === \"scalar\";\n // Keys are omitted rather than set to undefined: `exactOptionalPropertyTypes`\n // treats the two as different, and ObjectGraph's optional fields mean absent.\n return {\n id: node.key,\n label: labelOf(node),\n path: node.path,\n kind: node.kind,\n ...(scalar || container ? { type: kindOf(node.value) } : {}),\n ...(scalar ? { value: scalarValue(node.value) } : {}),\n ...(scalar ? {} : { raw: node.summary }),\n expandable: tree.expandable(node),\n metadata: { node },\n };\n}\n\n/** The last segment of the node's path — the root has none, and is `$`. */\nfunction labelOf(node: JSONPathNode): string {\n if (node.kind === \"more\") return \"…\";\n const segments = literalSegments(node.path);\n const last = segments?.[segments.length - 1];\n return last === undefined ? node.path : String(last);\n}\n\nfunction scalarValue(value: unknown): string | number | boolean | null {\n if (value === null || value === undefined) return null;\n const type = typeof value;\n if (type === \"string\" || type === \"number\" || type === \"boolean\") {\n return value as string | number | boolean;\n }\n return String(value);\n}\n"],"mappings":";;;;;;;;;;;;;;;;AA0BA,SAAgB,YAAY,MAAoB,MAAuD;CACrG,MAAM,YAAY,KAAK,SAAS,YAAY,KAAK,SAAS;CAC1D,MAAM,SAAS,KAAK,SAAS;CAG7B,OAAO;EACL,IAAI,KAAK;EACT,OAAO,QAAQ,IAAI;EACnB,MAAM,KAAK;EACX,MAAM,KAAK;EACX,GAAI,UAAU,YAAY,EAAE,MAAMA,oBAAAA,OAAO,KAAK,KAAK,EAAE,IAAI,CAAC;EAC1D,GAAI,SAAS,EAAE,OAAO,YAAY,KAAK,KAAK,EAAE,IAAI,CAAC;EACnD,GAAI,SAAS,CAAC,IAAI,EAAE,KAAK,KAAK,QAAQ;EACtC,YAAY,KAAK,WAAW,IAAI;EAChC,UAAU,EAAE,KAAK;CACnB;AACF;;AAGA,SAAS,QAAQ,MAA4B;CAC3C,IAAI,KAAK,SAAS,QAAQ,OAAO;CACjC,MAAM,WAAWC,qBAAAA,gBAAgB,KAAK,IAAI;CAC1C,MAAM,OAAO,WAAW,SAAS,SAAS;CAC1C,OAAO,SAAS,KAAA,IAAY,KAAK,OAAO,OAAO,IAAI;AACrD;AAEA,SAAS,YAAY,OAAkD;CACrE,IAAI,UAAU,QAAQ,UAAU,KAAA,GAAW,OAAO;CAClD,MAAM,OAAO,OAAO;CACpB,IAAI,SAAS,YAAY,SAAS,YAAY,SAAS,WACrD,OAAO;CAET,OAAO,OAAO,KAAK;AACrB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { JSONPathNode } from '../../../components/jsonPathTree.js';
|
|
1
|
+
import { JSONPathNode, LazyJSONPathTree } from '../../../components/jsonPathTree.js';
|
|
2
2
|
import { ObjectGraphNode } from '../../../data/ObjectGraph.js';
|
|
3
3
|
/** An `ObjectGraphNode` that keeps the tree node it came from, for lazy loading. */
|
|
4
4
|
export interface GraphNode extends ObjectGraphNode {
|
|
@@ -14,6 +14,10 @@ export interface GraphNode extends ObjectGraphNode {
|
|
|
14
14
|
* path instead. And `kind` is structural — object, array, scalar — so a scalar's
|
|
15
15
|
* own type is read from the value: `string` against `number` is the distinction
|
|
16
16
|
* that decides whether an expression needs quotes.
|
|
17
|
+
*
|
|
18
|
+
* Whether a node opens is the tree's call, not the node's kind: a string that
|
|
19
|
+
* holds JSON is a scalar to look at and a document to walk, and providers keep
|
|
20
|
+
* their most interesting fields in exactly such a column.
|
|
17
21
|
*/
|
|
18
|
-
export declare function toGraphNode(node: JSONPathNode): GraphNode;
|
|
22
|
+
export declare function toGraphNode(node: JSONPathNode, tree: Pick<LazyJSONPathTree, "expandable">): GraphNode;
|
|
19
23
|
//# sourceMappingURL=graphNodes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphNodes.d.ts","sourceRoot":"","sources":["../../../../src/expressions/playground/panels/graphNodes.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,YAAY,
|
|
1
|
+
{"version":3,"file":"graphNodes.d.ts","sourceRoot":"","sources":["../../../../src/expressions/playground/panels/graphNodes.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACtB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAGjE,oFAAoF;AACpF,MAAM,WAAW,SAAU,SAAQ,eAAe;IAChD,QAAQ,CAAC,EAAE;QAAE,IAAI,EAAE,YAAY,CAAA;KAAE,CAAC;CACnC;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,IAAI,CAAC,gBAAgB,EAAE,YAAY,CAAC,GAAG,SAAS,CAgBrG"}
|
|
@@ -9,8 +9,12 @@ import { kindOf } from "../../lang/environment.js";
|
|
|
9
9
|
* path instead. And `kind` is structural — object, array, scalar — so a scalar's
|
|
10
10
|
* own type is read from the value: `string` against `number` is the distinction
|
|
11
11
|
* that decides whether an expression needs quotes.
|
|
12
|
+
*
|
|
13
|
+
* Whether a node opens is the tree's call, not the node's kind: a string that
|
|
14
|
+
* holds JSON is a scalar to look at and a document to walk, and providers keep
|
|
15
|
+
* their most interesting fields in exactly such a column.
|
|
12
16
|
*/
|
|
13
|
-
function toGraphNode(node) {
|
|
17
|
+
function toGraphNode(node, tree) {
|
|
14
18
|
const container = node.kind === "object" || node.kind === "array";
|
|
15
19
|
const scalar = node.kind === "scalar";
|
|
16
20
|
return {
|
|
@@ -21,7 +25,7 @@ function toGraphNode(node) {
|
|
|
21
25
|
...scalar || container ? { type: kindOf(node.value) } : {},
|
|
22
26
|
...scalar ? { value: scalarValue(node.value) } : {},
|
|
23
27
|
...scalar ? {} : { raw: node.summary },
|
|
24
|
-
expandable:
|
|
28
|
+
expandable: tree.expandable(node),
|
|
25
29
|
metadata: { node }
|
|
26
30
|
};
|
|
27
31
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphNodes.js","names":[],"sources":["../../../../src/expressions/playground/panels/graphNodes.ts"],"sourcesContent":["import {\n literalSegments,\n type JSONPathNode,\n} from \"../../../components/jsonPathTree\";\nimport type { ObjectGraphNode } from \"../../../data/ObjectGraph\";\nimport { kindOf } from \"../../lang/index.ts\";\n\n/** An `ObjectGraphNode` that keeps the tree node it came from, for lazy loading. */\nexport interface GraphNode extends ObjectGraphNode {\n metadata?: { node: JSONPathNode };\n}\n\n/**\n * Maps one lazy-tree node to a graph row.\n *\n * Two of the tree's fields do not mean what their names suggest here. `key` is a\n * namespaced identity, not a display name, so the label comes off the end of the\n * path instead. And `kind` is structural — object, array, scalar — so a scalar's\n * own type is read from the value: `string` against `number` is the distinction\n * that decides whether an expression needs quotes.\n */\nexport function toGraphNode(node: JSONPathNode): GraphNode {\n const container = node.kind === \"object\" || node.kind === \"array\";\n const scalar = node.kind === \"scalar\";\n // Keys are omitted rather than set to undefined: `exactOptionalPropertyTypes`\n // treats the two as different, and ObjectGraph's optional fields mean absent.\n return {\n id: node.key,\n label: labelOf(node),\n path: node.path,\n kind: node.kind,\n ...(scalar || container ? { type: kindOf(node.value) } : {}),\n ...(scalar ? { value: scalarValue(node.value) } : {}),\n ...(scalar ? {} : { raw: node.summary }),\n expandable:
|
|
1
|
+
{"version":3,"file":"graphNodes.js","names":[],"sources":["../../../../src/expressions/playground/panels/graphNodes.ts"],"sourcesContent":["import {\n literalSegments,\n type JSONPathNode,\n type LazyJSONPathTree,\n} from \"../../../components/jsonPathTree\";\nimport type { ObjectGraphNode } from \"../../../data/ObjectGraph\";\nimport { kindOf } from \"../../lang/index.ts\";\n\n/** An `ObjectGraphNode` that keeps the tree node it came from, for lazy loading. */\nexport interface GraphNode extends ObjectGraphNode {\n metadata?: { node: JSONPathNode };\n}\n\n/**\n * Maps one lazy-tree node to a graph row.\n *\n * Two of the tree's fields do not mean what their names suggest here. `key` is a\n * namespaced identity, not a display name, so the label comes off the end of the\n * path instead. And `kind` is structural — object, array, scalar — so a scalar's\n * own type is read from the value: `string` against `number` is the distinction\n * that decides whether an expression needs quotes.\n *\n * Whether a node opens is the tree's call, not the node's kind: a string that\n * holds JSON is a scalar to look at and a document to walk, and providers keep\n * their most interesting fields in exactly such a column.\n */\nexport function toGraphNode(node: JSONPathNode, tree: Pick<LazyJSONPathTree, \"expandable\">): GraphNode {\n const container = node.kind === \"object\" || node.kind === \"array\";\n const scalar = node.kind === \"scalar\";\n // Keys are omitted rather than set to undefined: `exactOptionalPropertyTypes`\n // treats the two as different, and ObjectGraph's optional fields mean absent.\n return {\n id: node.key,\n label: labelOf(node),\n path: node.path,\n kind: node.kind,\n ...(scalar || container ? { type: kindOf(node.value) } : {}),\n ...(scalar ? { value: scalarValue(node.value) } : {}),\n ...(scalar ? {} : { raw: node.summary }),\n expandable: tree.expandable(node),\n metadata: { node },\n };\n}\n\n/** The last segment of the node's path — the root has none, and is `$`. */\nfunction labelOf(node: JSONPathNode): string {\n if (node.kind === \"more\") return \"…\";\n const segments = literalSegments(node.path);\n const last = segments?.[segments.length - 1];\n return last === undefined ? node.path : String(last);\n}\n\nfunction scalarValue(value: unknown): string | number | boolean | null {\n if (value === null || value === undefined) return null;\n const type = typeof value;\n if (type === \"string\" || type === \"number\" || type === \"boolean\") {\n return value as string | number | boolean;\n }\n return String(value);\n}\n"],"mappings":";;;;;;;;;;;;;;;;AA0BA,SAAgB,YAAY,MAAoB,MAAuD;CACrG,MAAM,YAAY,KAAK,SAAS,YAAY,KAAK,SAAS;CAC1D,MAAM,SAAS,KAAK,SAAS;CAG7B,OAAO;EACL,IAAI,KAAK;EACT,OAAO,QAAQ,IAAI;EACnB,MAAM,KAAK;EACX,MAAM,KAAK;EACX,GAAI,UAAU,YAAY,EAAE,MAAM,OAAO,KAAK,KAAK,EAAE,IAAI,CAAC;EAC1D,GAAI,SAAS,EAAE,OAAO,YAAY,KAAK,KAAK,EAAE,IAAI,CAAC;EACnD,GAAI,SAAS,CAAC,IAAI,EAAE,KAAK,KAAK,QAAQ;EACtC,YAAY,KAAK,WAAW,IAAI;EAChC,UAAU,EAAE,KAAK;CACnB;AACF;;AAGA,SAAS,QAAQ,MAA4B;CAC3C,IAAI,KAAK,SAAS,QAAQ,OAAO;CACjC,MAAM,WAAW,gBAAgB,KAAK,IAAI;CAC1C,MAAM,OAAO,WAAW,SAAS,SAAS;CAC1C,OAAO,SAAS,KAAA,IAAY,KAAK,OAAO,OAAO,IAAI;AACrD;AAEA,SAAS,YAAY,OAAkD;CACrE,IAAI,UAAU,QAAQ,UAAU,KAAA,GAAW,OAAO;CAClD,MAAM,OAAO,OAAO;CACpB,IAAI,SAAS,YAAY,SAAS,YAAY,SAAS,WACrD,OAAO;CAET,OAAO,OAAO,KAAK;AACrB"}
|
|
@@ -10,7 +10,7 @@ export type { ExpressionPlaygroundProps, PlaygroundState, } from './playground/E
|
|
|
10
10
|
export { LANGUAGES, SECTIONS, languageById } from './playground/languages.js';
|
|
11
11
|
export type { EvalLanguage, PlaygroundLanguage, } from './playground/languages.js';
|
|
12
12
|
export { DEFAULT_API_BASE, evaluate, fetchExamples, fetchSpec, } from './playground/api.js';
|
|
13
|
-
export type { EvalError, EvalRequest, EvalResponse, Example, PlaygroundSample, ResultExpectation, } from './playground/api.js';
|
|
13
|
+
export type { EvalError, EvalRequest, EvalResponse, Example, FormatPath, PlaygroundSample, ResultExpectation, } from './playground/api.js';
|
|
14
14
|
export { useEvaluator } from './playground/useEvaluator.js';
|
|
15
15
|
export type { Evaluator, EvaluatorOptions } from './playground/useEvaluator.js';
|
|
16
16
|
export { useSampleRuns } from './playground/useSampleRuns.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playground.d.ts","sourceRoot":"","sources":["../../src/expressions/playground.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAC7E,YAAY,EACV,yBAAyB,EACzB,eAAe,GAChB,MAAM,uCAAuC,CAAC;AAE/C,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9E,YAAY,EACV,YAAY,EACZ,kBAAkB,GACnB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EACL,gBAAgB,EAChB,QAAQ,EACR,aAAa,EACb,SAAS,GACV,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EACV,SAAS,EACT,WAAW,EACX,YAAY,EACZ,OAAO,EACP,gBAAgB,EAChB,iBAAiB,GAClB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,YAAY,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChF,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AACjG,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC1F,YAAY,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,YAAY,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC"}
|
|
1
|
+
{"version":3,"file":"playground.d.ts","sourceRoot":"","sources":["../../src/expressions/playground.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAC7E,YAAY,EACV,yBAAyB,EACzB,eAAe,GAChB,MAAM,uCAAuC,CAAC;AAE/C,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9E,YAAY,EACV,YAAY,EACZ,kBAAkB,GACnB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EACL,gBAAgB,EAChB,QAAQ,EACR,aAAa,EACb,SAAS,GACV,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EACV,SAAS,EACT,WAAW,EACX,YAAY,EACZ,OAAO,EACP,UAAU,EACV,gBAAgB,EAChB,iBAAiB,GAClB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,YAAY,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChF,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AACjG,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC1F,YAAY,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,YAAY,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
let react = require("react");
|
|
2
|
+
// src/hooks/use-element-height.ts
|
|
3
|
+
/**
|
|
4
|
+
* Observes an element's rendered height. An unmeasured element (before first
|
|
5
|
+
* layout, or jsdom) reports 0, which callers treat as "not known yet" rather
|
|
6
|
+
* than as a zero-height box.
|
|
7
|
+
*/
|
|
8
|
+
function useElementHeight() {
|
|
9
|
+
const [node, setNode] = (0, react.useState)(null);
|
|
10
|
+
const [height, setHeight] = (0, react.useState)(0);
|
|
11
|
+
(0, react.useLayoutEffect)(() => {
|
|
12
|
+
if (!node) return;
|
|
13
|
+
const measure = () => setHeight(Math.round(node.getBoundingClientRect().height));
|
|
14
|
+
measure();
|
|
15
|
+
const observer = new ResizeObserver(measure);
|
|
16
|
+
observer.observe(node);
|
|
17
|
+
return () => observer.disconnect();
|
|
18
|
+
}, [node]);
|
|
19
|
+
return {
|
|
20
|
+
ref: setNode,
|
|
21
|
+
height
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
exports.useElementHeight = useElementHeight;
|
|
25
|
+
|
|
26
|
+
//# sourceMappingURL=use-element-height.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-element-height.cjs","names":["useState"],"sources":["../../src/hooks/use-element-height.ts"],"sourcesContent":["import { useLayoutEffect, useState } from \"react\";\n\n/**\n * Observes an element's rendered height. An unmeasured element (before first\n * layout, or jsdom) reports 0, which callers treat as \"not known yet\" rather\n * than as a zero-height box.\n */\nexport function useElementHeight(): {\n ref: (node: HTMLElement | null) => void;\n height: number;\n} {\n const [node, setNode] = useState<HTMLElement | null>(null);\n const [height, setHeight] = useState(0);\n\n useLayoutEffect(() => {\n if (!node) return;\n const measure = () => setHeight(Math.round(node.getBoundingClientRect().height));\n measure();\n const observer = new ResizeObserver(measure);\n observer.observe(node);\n return () => observer.disconnect();\n }, [node]);\n\n return { ref: setNode, height };\n}\n"],"mappings":";;;;;;;AAOA,SAAgB,mBAGd;CACA,MAAM,CAAC,MAAM,YAAA,GAAWA,MAAAA,SAAAA,CAA6B,IAAI;CACzD,MAAM,CAAC,QAAQ,cAAA,GAAaA,MAAAA,SAAAA,CAAS,CAAC;CAEtC,CAAA,GAAA,MAAA,gBAAA,OAAsB;EACpB,IAAI,CAAC,MAAM;EACX,MAAM,gBAAgB,UAAU,KAAK,MAAM,KAAK,sBAAsB,CAAC,CAAC,MAAM,CAAC;EAC/E,QAAQ;EACR,MAAM,WAAW,IAAI,eAAe,OAAO;EAC3C,SAAS,QAAQ,IAAI;EACrB,aAAa,SAAS,WAAW;CACnC,GAAG,CAAC,IAAI,CAAC;CAET,OAAO;EAAE,KAAK;EAAS;CAAO;AAChC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Observes an element's rendered height. An unmeasured element (before first
|
|
3
|
+
* layout, or jsdom) reports 0, which callers treat as "not known yet" rather
|
|
4
|
+
* than as a zero-height box.
|
|
5
|
+
*/
|
|
6
|
+
export declare function useElementHeight(): {
|
|
7
|
+
ref: (node: HTMLElement | null) => void;
|
|
8
|
+
height: number;
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=use-element-height.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-element-height.d.ts","sourceRoot":"","sources":["../../src/hooks/use-element-height.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,wBAAgB,gBAAgB,IAAI;IAClC,GAAG,EAAE,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI,CAAC;IACxC,MAAM,EAAE,MAAM,CAAC;CAChB,CAcA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { useLayoutEffect, useState } from "react";
|
|
2
|
+
// src/hooks/use-element-height.ts
|
|
3
|
+
/**
|
|
4
|
+
* Observes an element's rendered height. An unmeasured element (before first
|
|
5
|
+
* layout, or jsdom) reports 0, which callers treat as "not known yet" rather
|
|
6
|
+
* than as a zero-height box.
|
|
7
|
+
*/
|
|
8
|
+
function useElementHeight() {
|
|
9
|
+
const [node, setNode] = useState(null);
|
|
10
|
+
const [height, setHeight] = useState(0);
|
|
11
|
+
useLayoutEffect(() => {
|
|
12
|
+
if (!node) return;
|
|
13
|
+
const measure = () => setHeight(Math.round(node.getBoundingClientRect().height));
|
|
14
|
+
measure();
|
|
15
|
+
const observer = new ResizeObserver(measure);
|
|
16
|
+
observer.observe(node);
|
|
17
|
+
return () => observer.disconnect();
|
|
18
|
+
}, [node]);
|
|
19
|
+
return {
|
|
20
|
+
ref: setNode,
|
|
21
|
+
height
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
export { useElementHeight };
|
|
25
|
+
|
|
26
|
+
//# sourceMappingURL=use-element-height.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-element-height.js","names":[],"sources":["../../src/hooks/use-element-height.ts"],"sourcesContent":["import { useLayoutEffect, useState } from \"react\";\n\n/**\n * Observes an element's rendered height. An unmeasured element (before first\n * layout, or jsdom) reports 0, which callers treat as \"not known yet\" rather\n * than as a zero-height box.\n */\nexport function useElementHeight(): {\n ref: (node: HTMLElement | null) => void;\n height: number;\n} {\n const [node, setNode] = useState<HTMLElement | null>(null);\n const [height, setHeight] = useState(0);\n\n useLayoutEffect(() => {\n if (!node) return;\n const measure = () => setHeight(Math.round(node.getBoundingClientRect().height));\n measure();\n const observer = new ResizeObserver(measure);\n observer.observe(node);\n return () => observer.disconnect();\n }, [node]);\n\n return { ref: setNode, height };\n}\n"],"mappings":";;;;;;;AAOA,SAAgB,mBAGd;CACA,MAAM,CAAC,MAAM,WAAW,SAA6B,IAAI;CACzD,MAAM,CAAC,QAAQ,aAAa,SAAS,CAAC;CAEtC,sBAAsB;EACpB,IAAI,CAAC,MAAM;EACX,MAAM,gBAAgB,UAAU,KAAK,MAAM,KAAK,sBAAsB,CAAC,CAAC,MAAM,CAAC;EAC/E,QAAQ;EACR,MAAM,WAAW,IAAI,eAAe,OAAO;EAC3C,SAAS,QAAQ,IAAI;EACrB,aAAa,SAAS,WAAW;CACnC,GAAG,CAAC,IAAI,CAAC;CAET,OAAO;EAAE,KAAK;EAAS;CAAO;AAChC"}
|
package/dist/index.cjs
CHANGED
|
@@ -722,13 +722,10 @@ const require_TailwindColorPickerField = require("./components/TailwindColorPick
|
|
|
722
722
|
const require_TailwindNumberPickerField = require("./components/TailwindNumberPickerField.cjs");
|
|
723
723
|
const require_DimensionField = require("./components/DimensionField.cjs");
|
|
724
724
|
const require_jsonPathTree = require("./components/jsonPathTree.cjs");
|
|
725
|
-
const require_badge_variants = require("./data/badge-variants.cjs");
|
|
726
|
-
const require_Badge = require("./data/Badge.cjs");
|
|
727
|
-
const require_JsonView = require("./data/JsonView.cjs");
|
|
728
|
-
const require_TreeNode = require("./data/TreeNode.cjs");
|
|
729
|
-
const require_Tree = require("./data/Tree.cjs");
|
|
730
725
|
const require_Modal = require("./overlay/Modal.cjs");
|
|
731
726
|
const require_JSONPathPlayground = require("./components/JSONPathPlayground.cjs");
|
|
727
|
+
const require_TreeNode = require("./data/TreeNode.cjs");
|
|
728
|
+
const require_Tree = require("./data/Tree.cjs");
|
|
732
729
|
const require_TreePickerField = require("./components/TreePickerField.cjs");
|
|
733
730
|
const require_JSONPathField = require("./components/JSONPathField.cjs");
|
|
734
731
|
const require_SegmentedControl = require("./components/SegmentedControl.cjs");
|
|
@@ -788,9 +785,12 @@ const require_form_lookup_context = require("./components/form-lookup-context.cj
|
|
|
788
785
|
const require_FormLookupProvider = require("./components/FormLookupProvider.cjs");
|
|
789
786
|
const require_form_connection_context = require("./components/form-connection-context.cjs");
|
|
790
787
|
const require_json_schema_form_refs = require("./components/json-schema-form-refs.cjs");
|
|
788
|
+
const require_badge_variants = require("./data/badge-variants.cjs");
|
|
789
|
+
const require_Badge = require("./data/Badge.cjs");
|
|
791
790
|
const require_json_schema_form_item_row = require("./components/json-schema-form-item-row.cjs");
|
|
792
791
|
const require_json_schema_form_extensions = require("./components/json-schema-form-extensions.cjs");
|
|
793
792
|
const require_properties_utils = require("./data/properties-utils.cjs");
|
|
793
|
+
const require_JsonView = require("./data/JsonView.cjs");
|
|
794
794
|
const require_Properties = require("./data/Properties.cjs");
|
|
795
795
|
const require_callout_tones = require("./data/callout-tones.cjs");
|
|
796
796
|
const require_Callout = require("./data/Callout.cjs");
|
|
@@ -3167,6 +3167,7 @@ exports.resolveBreakdown = require_TimeseriesPanel_model.resolveBreakdown;
|
|
|
3167
3167
|
exports.resolveComment = require_dom_anchor.resolveComment;
|
|
3168
3168
|
exports.resolveCommentStage = require_comment_stage.resolveCommentStage;
|
|
3169
3169
|
exports.resolveControl = require_json_schema_form_resolve.resolveControl;
|
|
3170
|
+
exports.resolveDateMath = require_timestamp_format.resolveDateMath;
|
|
3170
3171
|
exports.resolveElementAnchor = require_dom_anchor.resolveElementAnchor;
|
|
3171
3172
|
exports.resolveFacetOption = require_comment_utils.resolveFacetOption;
|
|
3172
3173
|
exports.resolveFixtureFenceSchema = require_fixture_blocks.resolveFixtureFenceSchema;
|