@flanksource/clicky-ui 0.3.1 → 0.3.3
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/comments/CommentAuthor.cjs +58 -0
- package/dist/comments/CommentAuthor.cjs.map +1 -0
- package/dist/comments/CommentAuthor.d.ts +17 -0
- package/dist/comments/CommentAuthor.d.ts.map +1 -0
- package/dist/comments/CommentAuthor.js +58 -0
- package/dist/comments/CommentAuthor.js.map +1 -0
- package/dist/comments/CommentCard.cjs +343 -0
- package/dist/comments/CommentCard.cjs.map +1 -0
- package/dist/comments/CommentCard.d.ts +27 -0
- package/dist/comments/CommentCard.d.ts.map +1 -0
- package/dist/comments/CommentCard.js +343 -0
- package/dist/comments/CommentCard.js.map +1 -0
- package/dist/comments/CommentComposer.cjs +207 -0
- package/dist/comments/CommentComposer.cjs.map +1 -0
- package/dist/comments/CommentComposer.d.ts +23 -0
- package/dist/comments/CommentComposer.d.ts.map +1 -0
- package/dist/comments/CommentComposer.js +207 -0
- package/dist/comments/CommentComposer.js.map +1 -0
- package/dist/comments/CommentFilterBar.cjs +145 -0
- package/dist/comments/CommentFilterBar.cjs.map +1 -0
- package/dist/comments/CommentFilterBar.d.ts +15 -0
- package/dist/comments/CommentFilterBar.d.ts.map +1 -0
- package/dist/comments/CommentFilterBar.js +145 -0
- package/dist/comments/CommentFilterBar.js.map +1 -0
- package/dist/comments/CommentMarkdown.cjs +156 -0
- package/dist/comments/CommentMarkdown.cjs.map +1 -0
- package/dist/comments/CommentMarkdown.d.ts +13 -0
- package/dist/comments/CommentMarkdown.d.ts.map +1 -0
- package/dist/comments/CommentMarkdown.js +156 -0
- package/dist/comments/CommentMarkdown.js.map +1 -0
- package/dist/comments/CommentProgress.cjs +86 -0
- package/dist/comments/CommentProgress.cjs.map +1 -0
- package/dist/comments/CommentProgress.d.ts +16 -0
- package/dist/comments/CommentProgress.d.ts.map +1 -0
- package/dist/comments/CommentProgress.js +86 -0
- package/dist/comments/CommentProgress.js.map +1 -0
- package/dist/comments/CommentProvider.cjs +99 -0
- package/dist/comments/CommentProvider.cjs.map +1 -0
- package/dist/comments/CommentProvider.d.ts +19 -0
- package/dist/comments/CommentProvider.d.ts.map +1 -0
- package/dist/comments/CommentProvider.js +99 -0
- package/dist/comments/CommentProvider.js.map +1 -0
- package/dist/comments/CommentSidePanel.cjs +219 -0
- package/dist/comments/CommentSidePanel.cjs.map +1 -0
- package/dist/comments/CommentSidePanel.d.ts +16 -0
- package/dist/comments/CommentSidePanel.d.ts.map +1 -0
- package/dist/comments/CommentSidePanel.js +219 -0
- package/dist/comments/CommentSidePanel.js.map +1 -0
- package/dist/comments/CommentThread.cjs +57 -0
- package/dist/comments/CommentThread.cjs.map +1 -0
- package/dist/comments/CommentThread.d.ts +24 -0
- package/dist/comments/CommentThread.d.ts.map +1 -0
- package/dist/comments/CommentThread.js +57 -0
- package/dist/comments/CommentThread.js.map +1 -0
- package/dist/comments/CommentThreadList.cjs +124 -0
- package/dist/comments/CommentThreadList.cjs.map +1 -0
- package/dist/comments/CommentThreadList.d.ts +25 -0
- package/dist/comments/CommentThreadList.d.ts.map +1 -0
- package/dist/comments/CommentThreadList.js +124 -0
- package/dist/comments/CommentThreadList.js.map +1 -0
- package/dist/comments/GroupedComments.cjs +74 -0
- package/dist/comments/GroupedComments.cjs.map +1 -0
- package/dist/comments/GroupedComments.d.ts +18 -0
- package/dist/comments/GroupedComments.d.ts.map +1 -0
- package/dist/comments/GroupedComments.js +74 -0
- package/dist/comments/GroupedComments.js.map +1 -0
- package/dist/comments/MentionTextarea.cjs +253 -0
- package/dist/comments/MentionTextarea.cjs.map +1 -0
- package/dist/comments/MentionTextarea.d.ts +28 -0
- package/dist/comments/MentionTextarea.d.ts.map +1 -0
- package/dist/comments/MentionTextarea.js +253 -0
- package/dist/comments/MentionTextarea.js.map +1 -0
- package/dist/comments/comment-context.cjs +33 -0
- package/dist/comments/comment-context.cjs.map +1 -0
- package/dist/comments/comment-context.d.ts +32 -0
- package/dist/comments/comment-context.d.ts.map +1 -0
- package/dist/comments/comment-context.js +33 -0
- package/dist/comments/comment-context.js.map +1 -0
- package/dist/comments/comment-fixtures.d.ts +11 -0
- package/dist/comments/comment-fixtures.d.ts.map +1 -0
- package/dist/comments/comment-types.cjs +19 -0
- package/dist/comments/comment-types.cjs.map +1 -0
- package/dist/comments/comment-types.d.ts +170 -0
- package/dist/comments/comment-types.d.ts.map +1 -0
- package/dist/comments/comment-types.js +19 -0
- package/dist/comments/comment-types.js.map +1 -0
- package/dist/comments/comment-utils.cjs +216 -0
- package/dist/comments/comment-utils.cjs.map +1 -0
- package/dist/comments/comment-utils.d.ts +59 -0
- package/dist/comments/comment-utils.d.ts.map +1 -0
- package/dist/comments/comment-utils.js +216 -0
- package/dist/comments/comment-utils.js.map +1 -0
- package/dist/comments.cjs +57 -0
- package/dist/comments.cjs.map +1 -0
- package/dist/comments.d.ts +16 -0
- package/dist/comments.d.ts.map +1 -0
- package/dist/comments.js +57 -0
- package/dist/comments.js.map +1 -0
- package/dist/components/FilterBar.cjs +13 -3
- package/dist/components/FilterBar.cjs.map +1 -1
- package/dist/components/FilterBar.js +13 -3
- package/dist/components/FilterBar.js.map +1 -1
- package/dist/components/JsonSchemaForm.cjs +20 -6
- package/dist/components/JsonSchemaForm.cjs.map +1 -1
- package/dist/components/JsonSchemaForm.d.ts +1 -1
- package/dist/components/JsonSchemaForm.d.ts.map +1 -1
- package/dist/components/JsonSchemaForm.js +22 -8
- package/dist/components/JsonSchemaForm.js.map +1 -1
- package/dist/components/NamespacePicker.cjs +52 -0
- package/dist/components/NamespacePicker.cjs.map +1 -0
- package/dist/components/NamespacePicker.d.ts +17 -0
- package/dist/components/NamespacePicker.d.ts.map +1 -0
- package/dist/components/NamespacePicker.js +52 -0
- package/dist/components/NamespacePicker.js.map +1 -0
- package/dist/components/form-lookup-context.cjs +36 -0
- package/dist/components/form-lookup-context.cjs.map +1 -0
- package/dist/components/form-lookup-context.d.ts +9 -0
- package/dist/components/form-lookup-context.d.ts.map +1 -0
- package/dist/components/form-lookup-context.js +36 -0
- package/dist/components/form-lookup-context.js.map +1 -0
- package/dist/components/json-schema-form-discriminator.cjs +67 -0
- package/dist/components/json-schema-form-discriminator.cjs.map +1 -0
- package/dist/components/json-schema-form-discriminator.d.ts +10 -0
- package/dist/components/json-schema-form-discriminator.d.ts.map +1 -0
- package/dist/components/json-schema-form-discriminator.js +67 -0
- package/dist/components/json-schema-form-discriminator.js.map +1 -0
- package/dist/components/json-schema-form-fields.cjs +66 -1
- package/dist/components/json-schema-form-fields.cjs.map +1 -1
- package/dist/components/json-schema-form-fields.d.ts +7 -0
- package/dist/components/json-schema-form-fields.d.ts.map +1 -1
- package/dist/components/json-schema-form-fields.js +66 -1
- package/dist/components/json-schema-form-fields.js.map +1 -1
- package/dist/components/json-schema-form-grid.cjs +92 -0
- package/dist/components/json-schema-form-grid.cjs.map +1 -0
- package/dist/components/json-schema-form-grid.d.ts +9 -0
- package/dist/components/json-schema-form-grid.d.ts.map +1 -0
- package/dist/components/json-schema-form-grid.js +92 -0
- package/dist/components/json-schema-form-grid.js.map +1 -0
- package/dist/components/json-schema-form-render.cjs +20 -3
- 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 +22 -5
- package/dist/components/json-schema-form-render.js.map +1 -1
- package/dist/components/json-schema-form-resolve.cjs +24 -2
- package/dist/components/json-schema-form-resolve.cjs.map +1 -1
- package/dist/components/json-schema-form-resolve.d.ts.map +1 -1
- package/dist/components/json-schema-form-resolve.js +24 -2
- package/dist/components/json-schema-form-resolve.js.map +1 -1
- package/dist/components/json-schema-form-types.d.ts +37 -2
- package/dist/components/json-schema-form-types.d.ts.map +1 -1
- package/dist/components/json-schema-form-utils.cjs +8 -0
- package/dist/components/json-schema-form-utils.cjs.map +1 -1
- package/dist/components/json-schema-form-utils.d.ts +1 -0
- package/dist/components/json-schema-form-utils.d.ts.map +1 -1
- package/dist/components/json-schema-form-utils.js +8 -0
- package/dist/components/json-schema-form-utils.js.map +1 -1
- package/dist/components/workload-picker-utils.cjs.map +1 -1
- package/dist/components/workload-picker-utils.d.ts +11 -1
- package/dist/components/workload-picker-utils.d.ts.map +1 -1
- package/dist/components/workload-picker-utils.js.map +1 -1
- package/dist/components.cjs +6 -0
- package/dist/components.cjs.map +1 -1
- package/dist/components.d.ts +4 -2
- package/dist/components.d.ts.map +1 -1
- package/dist/components.js +6 -0
- package/dist/components.js.map +1 -1
- package/dist/data/Clicky.cjs +225 -60
- package/dist/data/Clicky.cjs.map +1 -1
- package/dist/data/Clicky.d.ts +7 -1
- package/dist/data/Clicky.d.ts.map +1 -1
- package/dist/data/Clicky.fixtures.d.ts +3 -1
- package/dist/data/Clicky.fixtures.d.ts.map +1 -1
- package/dist/data/Clicky.js +226 -61
- package/dist/data/Clicky.js.map +1 -1
- package/dist/data/ExecutionTree.cjs +68 -0
- package/dist/data/ExecutionTree.cjs.map +1 -0
- package/dist/data/ExecutionTree.d.ts +40 -0
- package/dist/data/ExecutionTree.d.ts.map +1 -0
- package/dist/data/ExecutionTree.js +68 -0
- package/dist/data/ExecutionTree.js.map +1 -0
- package/dist/data/GaugeHoverCard.cjs +35 -0
- package/dist/data/GaugeHoverCard.cjs.map +1 -0
- package/dist/data/GaugeHoverCard.d.ts +25 -0
- package/dist/data/GaugeHoverCard.d.ts.map +1 -0
- package/dist/data/GaugeHoverCard.js +35 -0
- package/dist/data/GaugeHoverCard.js.map +1 -0
- package/dist/data/MarkdownEditor.cjs +616 -0
- package/dist/data/MarkdownEditor.cjs.map +1 -0
- package/dist/data/MarkdownEditor.d.ts +61 -0
- package/dist/data/MarkdownEditor.d.ts.map +1 -0
- package/dist/data/MarkdownEditor.js +616 -0
- package/dist/data/MarkdownEditor.js.map +1 -0
- package/dist/data/MarkdownEditor.model.cjs +27 -0
- package/dist/data/MarkdownEditor.model.cjs.map +1 -0
- package/dist/data/MarkdownEditor.model.d.ts +38 -0
- package/dist/data/MarkdownEditor.model.d.ts.map +1 -0
- package/dist/data/MarkdownEditor.model.js +27 -0
- package/dist/data/MarkdownEditor.model.js.map +1 -0
- package/dist/data/ObjectGraph.cjs +44 -0
- package/dist/data/ObjectGraph.cjs.map +1 -0
- package/dist/data/ObjectGraph.d.ts +39 -0
- package/dist/data/ObjectGraph.d.ts.map +1 -0
- package/dist/data/ObjectGraph.js +44 -0
- package/dist/data/ObjectGraph.js.map +1 -0
- package/dist/data/SchemaViewer.cjs +152 -0
- package/dist/data/SchemaViewer.cjs.map +1 -0
- package/dist/data/SchemaViewer.d.ts +27 -0
- package/dist/data/SchemaViewer.d.ts.map +1 -0
- package/dist/data/SchemaViewer.js +152 -0
- package/dist/data/SchemaViewer.js.map +1 -0
- package/dist/data/TimeseriesCoreBars.cjs +51 -12
- package/dist/data/TimeseriesCoreBars.cjs.map +1 -1
- package/dist/data/TimeseriesCoreBars.d.ts +32 -5
- package/dist/data/TimeseriesCoreBars.d.ts.map +1 -1
- package/dist/data/TimeseriesCoreBars.js +51 -12
- package/dist/data/TimeseriesCoreBars.js.map +1 -1
- package/dist/data/TimeseriesCoreBars.model.cjs +5 -5
- package/dist/data/TimeseriesCoreBars.model.cjs.map +1 -1
- package/dist/data/TimeseriesCoreBars.model.d.ts +4 -4
- package/dist/data/TimeseriesCoreBars.model.d.ts.map +1 -1
- package/dist/data/TimeseriesCoreBars.model.js +5 -5
- package/dist/data/TimeseriesCoreBars.model.js.map +1 -1
- package/dist/data/TimeseriesGauge.cjs +103 -65
- package/dist/data/TimeseriesGauge.cjs.map +1 -1
- package/dist/data/TimeseriesGauge.d.ts +10 -1
- package/dist/data/TimeseriesGauge.d.ts.map +1 -1
- package/dist/data/TimeseriesGauge.js +104 -66
- package/dist/data/TimeseriesGauge.js.map +1 -1
- package/dist/data/WorkloadCard.cjs +4 -4
- package/dist/data/WorkloadCard.cjs.map +1 -1
- package/dist/data/WorkloadCard.d.ts +3 -2
- package/dist/data/WorkloadCard.d.ts.map +1 -1
- package/dist/data/WorkloadCard.js +4 -4
- package/dist/data/WorkloadCard.js.map +1 -1
- package/dist/data/ai/ChatWindow.cjs +11 -19
- package/dist/data/ai/ChatWindow.cjs.map +1 -1
- package/dist/data/ai/ChatWindow.d.ts +1 -7
- package/dist/data/ai/ChatWindow.d.ts.map +1 -1
- package/dist/data/ai/ChatWindow.js +11 -19
- package/dist/data/ai/ChatWindow.js.map +1 -1
- package/dist/data/ai/ChatWindowRequestBody.cjs +20 -0
- package/dist/data/ai/ChatWindowRequestBody.cjs.map +1 -0
- package/dist/data/ai/ChatWindowRequestBody.d.ts +9 -0
- package/dist/data/ai/ChatWindowRequestBody.d.ts.map +1 -0
- package/dist/data/ai/ChatWindowRequestBody.js +20 -0
- package/dist/data/ai/ChatWindowRequestBody.js.map +1 -0
- package/dist/data/chat/Chat.cjs +12 -0
- package/dist/data/chat/Chat.cjs.map +1 -1
- package/dist/data/chat/Chat.d.ts +8 -1
- package/dist/data/chat/Chat.d.ts.map +1 -1
- package/dist/data/chat/Chat.js +12 -0
- package/dist/data/chat/Chat.js.map +1 -1
- package/dist/data/gauge-stats.cjs +19 -0
- package/dist/data/gauge-stats.cjs.map +1 -0
- package/dist/data/gauge-stats.d.ts +15 -0
- package/dist/data/gauge-stats.d.ts.map +1 -0
- package/dist/data/gauge-stats.js +19 -0
- package/dist/data/gauge-stats.js.map +1 -0
- package/dist/data/schema-viewer-model.cjs +436 -0
- package/dist/data/schema-viewer-model.cjs.map +1 -0
- package/dist/data/schema-viewer-model.d.ts +64 -0
- package/dist/data/schema-viewer-model.d.ts.map +1 -0
- package/dist/data/schema-viewer-model.js +436 -0
- package/dist/data/schema-viewer-model.js.map +1 -0
- package/dist/data/version-info.cjs +2 -2
- package/dist/data/version-info.js +2 -2
- package/dist/data.cjs +23 -0
- package/dist/data.cjs.map +1 -1
- package/dist/data.d.ts +11 -3
- package/dist/data.d.ts.map +1 -1
- package/dist/data.js +23 -0
- package/dist/data.js.map +1 -1
- package/dist/index.cjs +87 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +87 -2
- package/dist/index.js.map +1 -1
- package/dist/rpc/EntityExplorerApp.cjs +102 -143
- package/dist/rpc/EntityExplorerApp.cjs.map +1 -1
- package/dist/rpc/EntityExplorerApp.d.ts +34 -1
- package/dist/rpc/EntityExplorerApp.d.ts.map +1 -1
- package/dist/rpc/EntityExplorerApp.js +105 -146
- package/dist/rpc/EntityExplorerApp.js.map +1 -1
- package/dist/rpc/OperationActionBar.cjs +135 -0
- package/dist/rpc/OperationActionBar.cjs.map +1 -0
- package/dist/rpc/OperationActionBar.d.ts +20 -0
- package/dist/rpc/OperationActionBar.d.ts.map +1 -0
- package/dist/rpc/OperationActionBar.js +135 -0
- package/dist/rpc/OperationActionBar.js.map +1 -0
- package/dist/rpc/OperationCatalog.cjs +79 -116
- package/dist/rpc/OperationCatalog.cjs.map +1 -1
- package/dist/rpc/OperationCatalog.d.ts +8 -1
- package/dist/rpc/OperationCatalog.d.ts.map +1 -1
- package/dist/rpc/OperationCatalog.js +80 -117
- package/dist/rpc/OperationCatalog.js.map +1 -1
- package/dist/rpc/OperationCommandPage.cjs +134 -223
- package/dist/rpc/OperationCommandPage.cjs.map +1 -1
- package/dist/rpc/OperationCommandPage.d.ts +1 -1
- package/dist/rpc/OperationCommandPage.d.ts.map +1 -1
- package/dist/rpc/OperationCommandPage.js +135 -224
- package/dist/rpc/OperationCommandPage.js.map +1 -1
- package/dist/rpc/OperationEntityPage.cjs +49 -100
- package/dist/rpc/OperationEntityPage.cjs.map +1 -1
- package/dist/rpc/OperationEntityPage.d.ts +6 -1
- package/dist/rpc/OperationEntityPage.d.ts.map +1 -1
- package/dist/rpc/OperationEntityPage.js +50 -101
- package/dist/rpc/OperationEntityPage.js.map +1 -1
- package/dist/rpc/OperationResultView.cjs +43 -0
- package/dist/rpc/OperationResultView.cjs.map +1 -0
- package/dist/rpc/OperationResultView.d.ts +30 -0
- package/dist/rpc/OperationResultView.d.ts.map +1 -0
- package/dist/rpc/OperationResultView.js +43 -0
- package/dist/rpc/OperationResultView.js.map +1 -0
- package/dist/rpc/SchemaActionForm.cjs +102 -0
- package/dist/rpc/SchemaActionForm.cjs.map +1 -0
- package/dist/rpc/SchemaActionForm.d.ts +23 -0
- package/dist/rpc/SchemaActionForm.d.ts.map +1 -0
- package/dist/rpc/SchemaActionForm.js +102 -0
- package/dist/rpc/SchemaActionForm.js.map +1 -0
- package/dist/rpc/accept-options.cjs.map +1 -1
- package/dist/rpc/accept-options.d.ts +0 -1
- package/dist/rpc/accept-options.d.ts.map +1 -1
- package/dist/rpc/accept-options.js.map +1 -1
- package/dist/rpc/apiClient.cjs +34 -2
- package/dist/rpc/apiClient.cjs.map +1 -1
- package/dist/rpc/apiClient.d.ts +4 -1
- package/dist/rpc/apiClient.d.ts.map +1 -1
- package/dist/rpc/apiClient.js +34 -2
- package/dist/rpc/apiClient.js.map +1 -1
- package/dist/rpc/clickyMetadata.cjs +4 -4
- package/dist/rpc/clickyMetadata.cjs.map +1 -1
- package/dist/rpc/clickyMetadata.d.ts +0 -1
- package/dist/rpc/clickyMetadata.d.ts.map +1 -1
- package/dist/rpc/clickyMetadata.js +4 -4
- package/dist/rpc/clickyMetadata.js.map +1 -1
- package/dist/rpc/formMetadata.cjs +1 -0
- package/dist/rpc/formMetadata.cjs.map +1 -1
- package/dist/rpc/formMetadata.d.ts +6 -1
- package/dist/rpc/formMetadata.d.ts.map +1 -1
- package/dist/rpc/formMetadata.js +1 -0
- package/dist/rpc/formMetadata.js.map +1 -1
- package/dist/rpc/rowNavigation.cjs +86 -0
- package/dist/rpc/rowNavigation.cjs.map +1 -0
- package/dist/rpc/rowNavigation.d.ts +14 -0
- package/dist/rpc/rowNavigation.d.ts.map +1 -0
- package/dist/rpc/rowNavigation.js +86 -0
- package/dist/rpc/rowNavigation.js.map +1 -0
- package/dist/rpc/schemaActionPath.cjs +22 -0
- package/dist/rpc/schemaActionPath.cjs.map +1 -0
- package/dist/rpc/schemaActionPath.d.ts +4 -0
- package/dist/rpc/schemaActionPath.d.ts.map +1 -0
- package/dist/rpc/schemaActionPath.js +22 -0
- package/dist/rpc/schemaActionPath.js.map +1 -0
- package/dist/rpc/surfaceIconMap.cjs +35 -0
- package/dist/rpc/surfaceIconMap.cjs.map +1 -0
- package/dist/rpc/surfaceIconMap.d.ts +3 -0
- package/dist/rpc/surfaceIconMap.d.ts.map +1 -0
- package/dist/rpc/surfaceIconMap.js +35 -0
- package/dist/rpc/surfaceIconMap.js.map +1 -0
- package/dist/rpc/types.cjs.map +1 -1
- package/dist/rpc/types.d.ts +2 -0
- package/dist/rpc/types.d.ts.map +1 -1
- package/dist/rpc/types.js.map +1 -1
- package/dist/rpc/useOperations.cjs.map +1 -1
- package/dist/rpc/useOperations.d.ts +4 -1
- package/dist/rpc/useOperations.d.ts.map +1 -1
- package/dist/rpc/useOperations.js.map +1 -1
- package/dist/rpc.cjs +4 -2
- package/dist/rpc.cjs.map +1 -1
- package/dist/rpc.d.ts +7 -6
- package/dist/rpc.d.ts.map +1 -1
- package/dist/rpc.js +4 -2
- package/dist/rpc.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +6 -1
- package/dist/rpc/AcceptPicker.cjs +0 -137
- package/dist/rpc/AcceptPicker.cjs.map +0 -1
- package/dist/rpc/AcceptPicker.d.ts +0 -12
- package/dist/rpc/AcceptPicker.d.ts.map +0 -1
- package/dist/rpc/AcceptPicker.js +0 -137
- package/dist/rpc/AcceptPicker.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -33,12 +33,14 @@ import { Field } from "./components/Field.js";
|
|
|
33
33
|
import { useForm } from "./components/use-form.js";
|
|
34
34
|
import { TreePickerField } from "./components/TreePickerField.js";
|
|
35
35
|
import { WorkloadPicker } from "./components/WorkloadPicker.js";
|
|
36
|
+
import { NamespacePicker } from "./components/NamespacePicker.js";
|
|
36
37
|
import { kindForValue, loadedWorkloads, parseWorkloadKey, workloadKey } from "./components/workload-picker-utils.js";
|
|
37
38
|
import { SecretKeySelector } from "./components/SecretKeySelector.js";
|
|
38
39
|
import { ThemeSwitcher } from "./components/theme-switcher.js";
|
|
39
40
|
import { DensitySwitcher } from "./components/density-switcher.js";
|
|
40
41
|
import { IconMenuPicker } from "./components/icon-menu-picker.js";
|
|
41
42
|
import { JsonSchemaForm } from "./components/JsonSchemaForm.js";
|
|
43
|
+
import { FormLookupProvider, resolveLookupScope, useLookupFetcher } from "./components/form-lookup-context.js";
|
|
42
44
|
import { DEFAULT_FORM_SIZE } from "./components/json-schema-form-size.js";
|
|
43
45
|
import { DEFAULT_PREFERENCES_STORAGE_KEY, readPreferences, writePreferences } from "./components/json-schema-form-preferences.js";
|
|
44
46
|
import { effectiveProperties, isOpenStringMap, matchesIf, resolveControl } from "./components/json-schema-form-resolve.js";
|
|
@@ -77,6 +79,8 @@ import { Icon, LabelIcon } from "./data/Icon.js";
|
|
|
77
79
|
import { setFallbackIconProvider } from "./data/icon-fallback.js";
|
|
78
80
|
import { JsonView } from "./data/JsonView.js";
|
|
79
81
|
import { KeyValueList } from "./data/KeyValueList.js";
|
|
82
|
+
import { SchemaFieldMetaPanel, SchemaViewer, SchemaViewerRow } from "./data/SchemaViewer.js";
|
|
83
|
+
import { buildSchemaTree, buildSchemaViewerTree, buildStepBranchTree, hasHoverMeta } from "./data/schema-viewer-model.js";
|
|
80
84
|
import { Properties } from "./data/Properties.js";
|
|
81
85
|
import { formatPropertyLabel } from "./data/properties-utils.js";
|
|
82
86
|
import { LogViewer } from "./data/LogViewer.js";
|
|
@@ -84,6 +88,8 @@ import { LogsTable } from "./data/LogsTable.js";
|
|
|
84
88
|
import { normalizeLogsTableRows } from "./data/logs-normalize.js";
|
|
85
89
|
import { MatrixTable } from "./data/MatrixTable.js";
|
|
86
90
|
import { Markdown } from "./data/Markdown.js";
|
|
91
|
+
import { MarkdownEditor } from "./data/MarkdownEditor.js";
|
|
92
|
+
import { MARKDOWN_EDITOR_PREVIEW_FORMATS, buildMarkdownPreviewUrl, clickyFormatForMarkdownPreview } from "./data/MarkdownEditor.model.js";
|
|
87
93
|
import { MethodBadge } from "./data/MethodBadge.js";
|
|
88
94
|
import { ProgressBar } from "./data/ProgressBar.js";
|
|
89
95
|
import { SignedDeltaBar } from "./data/SignedDeltaBar.js";
|
|
@@ -94,6 +100,8 @@ import { mergeSeries, resolveBreakdown, resolveSeries } from "./data/TimeseriesP
|
|
|
94
100
|
import { assignAxes, latestOf } from "./data/TimeseriesPanel.axes.js";
|
|
95
101
|
import { TimeseriesGauge } from "./data/TimeseriesGauge.js";
|
|
96
102
|
import { TimeseriesCoreBars } from "./data/TimeseriesCoreBars.js";
|
|
103
|
+
import { GaugeHoverCard } from "./data/GaugeHoverCard.js";
|
|
104
|
+
import { seriesStats } from "./data/gauge-stats.js";
|
|
97
105
|
import { WorkloadCard } from "./data/WorkloadCard.js";
|
|
98
106
|
import { formatReplicaCounts, workloadKindLabel, workloadStatusLabel, workloadStatusTone } from "./data/WorkloadCard.model.js";
|
|
99
107
|
import { deriveCoreBars } from "./data/TimeseriesCoreBars.model.js";
|
|
@@ -102,6 +110,8 @@ import { segment } from "./data/status-breakdown-utils.js";
|
|
|
102
110
|
import { Version } from "./data/Version.js";
|
|
103
111
|
import { getVersionInfo } from "./data/version-info.js";
|
|
104
112
|
import { Tree } from "./data/Tree.js";
|
|
113
|
+
import { ObjectGraph } from "./data/ObjectGraph.js";
|
|
114
|
+
import { ExecutionTree } from "./data/ExecutionTree.js";
|
|
105
115
|
import { TreeNode } from "./data/TreeNode.js";
|
|
106
116
|
import { TreeGroupHeader } from "./data/TreeGroupHeader.js";
|
|
107
117
|
import { Timeline } from "./data/Timeline.js";
|
|
@@ -122,11 +132,26 @@ import { parseJavaStackTrace } from "./data/diagnostics/stacktrace-parse.js";
|
|
|
122
132
|
import { CopyBadge, ErrorDetails, PrettyStackTrace } from "./data/diagnostics/ErrorDetails.js";
|
|
123
133
|
import { compactStackPath, isApplicationStackFrame, normalizeErrorDiagnostics, parseDiagnosticsStackTrace, parseInlineJsonContextValue } from "./data/diagnostics/error-diagnostics.js";
|
|
124
134
|
import { HarPanel } from "./data/har/HarPanel.js";
|
|
135
|
+
import { DEFAULT_CHECKLIST_CYCLE, DEFAULT_COMMENT_STATUSES, DOCUMENT_ANCHOR } from "./comments/comment-types.js";
|
|
136
|
+
import { applyCommentFilters, authorDisplayName, buildReplyMap, buildThreadListHandlers, commentCountForPrefix, defaultStatusValue, deriveAnchorCounts, deriveAnchorMeta, emptyCommentFilters, getRoots, groupByFacet, hasActiveFilters, isUnresolved, matchMentionsInBody, nextChecklistStatus, resolveFacetOption, resolveStatusConfig, sortReplies, toneToBadgeTone, truncatePlain } from "./comments/comment-utils.js";
|
|
137
|
+
import { CommentMarkdown } from "./comments/CommentMarkdown.js";
|
|
138
|
+
import { CommentAuthorAvatar } from "./comments/CommentAuthor.js";
|
|
139
|
+
import { MentionTextarea } from "./comments/MentionTextarea.js";
|
|
140
|
+
import { CommentCard } from "./comments/CommentCard.js";
|
|
141
|
+
import { CommentComposer } from "./comments/CommentComposer.js";
|
|
142
|
+
import { CommentThreadList } from "./comments/CommentThreadList.js";
|
|
143
|
+
import { CommentThread } from "./comments/CommentThread.js";
|
|
144
|
+
import { CommentProvider } from "./comments/CommentProvider.js";
|
|
145
|
+
import { dottedAnchorResolver, exactAnchorResolver, useCommentContext, useCommentContextOptional } from "./comments/comment-context.js";
|
|
146
|
+
import { CommentSidePanel } from "./comments/CommentSidePanel.js";
|
|
147
|
+
import { GroupedComments } from "./comments/GroupedComments.js";
|
|
148
|
+
import { CommentFilterBar } from "./comments/CommentFilterBar.js";
|
|
149
|
+
import { CommentProgress } from "./comments/CommentProgress.js";
|
|
125
150
|
import { Clicky, ClickyNodeView, ClickyTable } from "./data/Clicky.js";
|
|
126
151
|
import { OperationCatalog } from "./rpc/OperationCatalog.js";
|
|
127
152
|
import { EntityExplorerApp } from "./rpc/EntityExplorerApp.js";
|
|
128
|
-
import { AcceptPicker } from "./rpc/AcceptPicker.js";
|
|
129
153
|
import { ACCEPT_OPTIONS, VIEW_OPTIONS } from "./rpc/accept-options.js";
|
|
154
|
+
import { SchemaActionForm } from "./rpc/SchemaActionForm.js";
|
|
130
155
|
import { CommandForm } from "./rpc/CommandForm.js";
|
|
131
156
|
import { normalizeParameters, pathParamNames, submitValue } from "./rpc/command-form-utils.js";
|
|
132
157
|
import { CommandOutput } from "./rpc/CommandOutput.js";
|
|
@@ -135,6 +160,7 @@ import { InlineError } from "./rpc/InlineError.js";
|
|
|
135
160
|
import { OperationActionDialog } from "./rpc/OperationActionDialog.js";
|
|
136
161
|
import { OperationEntityPage } from "./rpc/OperationEntityPage.js";
|
|
137
162
|
import { OperationCommandPage } from "./rpc/OperationCommandPage.js";
|
|
163
|
+
import { OperationResultView } from "./rpc/OperationResultView.js";
|
|
138
164
|
import { EndpointList } from "./rpc/EndpointList.js";
|
|
139
165
|
import { useOpenAPI, useOperationById, useOperations } from "./rpc/useOperations.js";
|
|
140
166
|
import { OperationsApiClientError, createOperationsApiClient } from "./rpc/apiClient.js";
|
|
@@ -428,7 +454,6 @@ import { isLeaf } from "./data/cache-browser/types.js";
|
|
|
428
454
|
export {
|
|
429
455
|
ACCEPT_OPTIONS,
|
|
430
456
|
AVATAR_PALETTE,
|
|
431
|
-
AcceptPicker,
|
|
432
457
|
AnsiHtml,
|
|
433
458
|
AppLayout,
|
|
434
459
|
AppShell,
|
|
@@ -452,9 +477,22 @@ export {
|
|
|
452
477
|
Combobox,
|
|
453
478
|
CommandForm,
|
|
454
479
|
CommandOutput,
|
|
480
|
+
CommentAuthorAvatar,
|
|
481
|
+
CommentCard,
|
|
482
|
+
CommentComposer,
|
|
483
|
+
CommentFilterBar,
|
|
484
|
+
CommentMarkdown,
|
|
485
|
+
CommentProgress,
|
|
486
|
+
CommentProvider,
|
|
487
|
+
CommentSidePanel,
|
|
488
|
+
CommentThread,
|
|
489
|
+
CommentThreadList,
|
|
455
490
|
CopyBadge,
|
|
491
|
+
DEFAULT_CHECKLIST_CYCLE,
|
|
492
|
+
DEFAULT_COMMENT_STATUSES,
|
|
456
493
|
DEFAULT_FORM_SIZE,
|
|
457
494
|
DEFAULT_PREFERENCES_STORAGE_KEY,
|
|
495
|
+
DOCUMENT_ANCHOR,
|
|
458
496
|
DataTable,
|
|
459
497
|
DateField,
|
|
460
498
|
DatePicker,
|
|
@@ -469,15 +507,19 @@ export {
|
|
|
469
507
|
EndpointList,
|
|
470
508
|
EntityExplorerApp,
|
|
471
509
|
ErrorDetails,
|
|
510
|
+
ExecutionTree,
|
|
472
511
|
Field,
|
|
473
512
|
FilterBar,
|
|
474
513
|
FilterForm,
|
|
475
514
|
FilterPill,
|
|
476
515
|
FilterPillGroup,
|
|
477
516
|
FilterSeparator,
|
|
517
|
+
FormLookupProvider,
|
|
478
518
|
FormatOptionsDropdown,
|
|
479
519
|
FrameSourceWindow,
|
|
480
520
|
Gauge,
|
|
521
|
+
GaugeHoverCard,
|
|
522
|
+
GroupedComments,
|
|
481
523
|
HarPanel,
|
|
482
524
|
HoverCard,
|
|
483
525
|
Icon,
|
|
@@ -494,15 +536,21 @@ export {
|
|
|
494
536
|
LoadingDots,
|
|
495
537
|
LogViewer,
|
|
496
538
|
LogsTable,
|
|
539
|
+
MARKDOWN_EDITOR_PREVIEW_FORMATS,
|
|
497
540
|
Markdown,
|
|
541
|
+
MarkdownEditor,
|
|
498
542
|
MatrixTable,
|
|
543
|
+
MentionTextarea,
|
|
499
544
|
MethodBadge,
|
|
500
545
|
Modal,
|
|
501
546
|
MultiSelect,
|
|
547
|
+
NamespacePicker,
|
|
548
|
+
ObjectGraph,
|
|
502
549
|
OperationActionDialog,
|
|
503
550
|
OperationCatalog,
|
|
504
551
|
OperationCommandPage,
|
|
505
552
|
OperationEntityPage,
|
|
553
|
+
OperationResultView,
|
|
506
554
|
OperationsApiClientError,
|
|
507
555
|
Panel,
|
|
508
556
|
PrettyStackTrace,
|
|
@@ -513,6 +561,10 @@ export {
|
|
|
513
561
|
RouterProvider,
|
|
514
562
|
SIZE_TOKENS,
|
|
515
563
|
STATUS_TOKEN_GROUPS,
|
|
564
|
+
SchemaActionForm,
|
|
565
|
+
SchemaFieldMetaPanel,
|
|
566
|
+
SchemaViewer,
|
|
567
|
+
SchemaViewerRow,
|
|
516
568
|
SearchInput,
|
|
517
569
|
SecretKeySelector,
|
|
518
570
|
Section,
|
|
@@ -1053,18 +1105,28 @@ export {
|
|
|
1053
1105
|
WorkloadPicker,
|
|
1054
1106
|
allGroupsTerminal,
|
|
1055
1107
|
annotateRoutePaths,
|
|
1108
|
+
applyCommentFilters,
|
|
1056
1109
|
applyFilterExtensions,
|
|
1057
1110
|
assignAxes,
|
|
1111
|
+
authorDisplayName,
|
|
1058
1112
|
badgeVariants,
|
|
1059
1113
|
bucketTasks,
|
|
1060
1114
|
buildCommandHref,
|
|
1115
|
+
buildMarkdownPreviewUrl,
|
|
1116
|
+
buildReplyMap,
|
|
1117
|
+
buildSchemaTree,
|
|
1118
|
+
buildSchemaViewerTree,
|
|
1119
|
+
buildStepBranchTree,
|
|
1120
|
+
buildThreadListHandlers,
|
|
1061
1121
|
buttonVariants,
|
|
1062
1122
|
cacheQueryKeys,
|
|
1063
1123
|
changeIconAliases,
|
|
1064
1124
|
chooseTimestampFormat,
|
|
1125
|
+
clickyFormatForMarkdownPreview,
|
|
1065
1126
|
cn,
|
|
1066
1127
|
collapseSingleChildChains,
|
|
1067
1128
|
collectFrameworks,
|
|
1129
|
+
commentCountForPrefix,
|
|
1068
1130
|
compactStackPath,
|
|
1069
1131
|
countGoroutinesByState,
|
|
1070
1132
|
countProcesses,
|
|
@@ -1076,11 +1138,17 @@ export {
|
|
|
1076
1138
|
createTestRunnerRegistry,
|
|
1077
1139
|
cycleFilterState,
|
|
1078
1140
|
decodeFilterState,
|
|
1141
|
+
defaultStatusValue,
|
|
1142
|
+
deriveAnchorCounts,
|
|
1143
|
+
deriveAnchorMeta,
|
|
1079
1144
|
deriveCoreBars,
|
|
1080
1145
|
detectDumpFormat,
|
|
1146
|
+
dottedAnchorResolver,
|
|
1081
1147
|
effectiveProperties,
|
|
1148
|
+
emptyCommentFilters,
|
|
1082
1149
|
emptyTestFilters,
|
|
1083
1150
|
encodeFilterState,
|
|
1151
|
+
exactAnchorResolver,
|
|
1084
1152
|
filterOperationsByDomain,
|
|
1085
1153
|
filterTests,
|
|
1086
1154
|
findDetailEndpoint,
|
|
@@ -1105,8 +1173,12 @@ export {
|
|
|
1105
1173
|
frameworkIcon,
|
|
1106
1174
|
getChangeIcon,
|
|
1107
1175
|
getClickySurfaces,
|
|
1176
|
+
getRoots,
|
|
1108
1177
|
getVersionInfo,
|
|
1178
|
+
groupByFacet,
|
|
1179
|
+
hasActiveFilters,
|
|
1109
1180
|
hasFailed,
|
|
1181
|
+
hasHoverMeta,
|
|
1110
1182
|
hasPending,
|
|
1111
1183
|
humanizeName,
|
|
1112
1184
|
inferColumns,
|
|
@@ -1115,15 +1187,18 @@ export {
|
|
|
1115
1187
|
isOpenStringMap,
|
|
1116
1188
|
isPositionalParam,
|
|
1117
1189
|
isTerminalStatus,
|
|
1190
|
+
isUnresolved,
|
|
1118
1191
|
kindForValue,
|
|
1119
1192
|
latestOf,
|
|
1120
1193
|
loadedWorkloads,
|
|
1121
1194
|
logLevelColor,
|
|
1122
1195
|
makeSurfaceDefinition,
|
|
1196
|
+
matchMentionsInBody,
|
|
1123
1197
|
matchesFilterState,
|
|
1124
1198
|
matchesIf,
|
|
1125
1199
|
mergeSeries,
|
|
1126
1200
|
modeToFormat,
|
|
1201
|
+
nextChecklistStatus,
|
|
1127
1202
|
normalizeErrorDiagnostics,
|
|
1128
1203
|
normalizeLogsTableRows,
|
|
1129
1204
|
normalizeParameters,
|
|
@@ -1149,11 +1224,16 @@ export {
|
|
|
1149
1224
|
rehydrateRefs,
|
|
1150
1225
|
resolveBreakdown,
|
|
1151
1226
|
resolveControl,
|
|
1227
|
+
resolveFacetOption,
|
|
1228
|
+
resolveLookupScope,
|
|
1152
1229
|
resolveSeries,
|
|
1153
1230
|
resolveSize,
|
|
1231
|
+
resolveStatusConfig,
|
|
1154
1232
|
segment,
|
|
1233
|
+
seriesStats,
|
|
1155
1234
|
setFallbackIconProvider,
|
|
1156
1235
|
slugify,
|
|
1236
|
+
sortReplies,
|
|
1157
1237
|
splitTagToken,
|
|
1158
1238
|
statusIconFor,
|
|
1159
1239
|
statusToneFor,
|
|
@@ -1168,12 +1248,17 @@ export {
|
|
|
1168
1248
|
taskStatusIcon,
|
|
1169
1249
|
templateValuePre,
|
|
1170
1250
|
testStatus,
|
|
1251
|
+
toneToBadgeTone,
|
|
1171
1252
|
totalDuration,
|
|
1253
|
+
truncatePlain,
|
|
1172
1254
|
useBrowserRouter,
|
|
1255
|
+
useCommentContext,
|
|
1256
|
+
useCommentContextOptional,
|
|
1173
1257
|
useDensity,
|
|
1174
1258
|
useDensityValue,
|
|
1175
1259
|
useForm,
|
|
1176
1260
|
useHistoryRoute,
|
|
1261
|
+
useLookupFetcher,
|
|
1177
1262
|
useMemoryRouter,
|
|
1178
1263
|
useModalStack,
|
|
1179
1264
|
useOpenAPI,
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -3,47 +3,30 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const react = require("react");
|
|
5
5
|
const themeSwitcher = require("../components/theme-switcher.cjs");
|
|
6
|
+
const AppShell = require("../layout/AppShell.cjs");
|
|
6
7
|
const clickyMetadata = require("./clickyMetadata.cjs");
|
|
7
8
|
const commandHref = require("./commandHref.cjs");
|
|
8
9
|
const router = require("./router.cjs");
|
|
9
10
|
const OperationCatalog = require("./OperationCatalog.cjs");
|
|
10
11
|
const OperationCommandPage = require("./OperationCommandPage.cjs");
|
|
11
12
|
const OperationEntityPage = require("./OperationEntityPage.cjs");
|
|
13
|
+
const surfaceIconMap = require("./surfaceIconMap.cjs");
|
|
12
14
|
const useOperations = require("./useOperations.cjs");
|
|
13
|
-
const
|
|
15
|
+
const SIDEBAR_COLLAPSED_KEY = "clicky-ui:sidebar:collapsed";
|
|
14
16
|
function EntityExplorerApp({
|
|
15
17
|
client,
|
|
16
18
|
basePath = "",
|
|
17
19
|
showApiExplorer = true,
|
|
18
|
-
|
|
20
|
+
formExtensions,
|
|
21
|
+
formActions,
|
|
22
|
+
resultRenderer
|
|
19
23
|
}) {
|
|
24
|
+
const formPre = formExtensions == null ? void 0 : formExtensions.pre;
|
|
25
|
+
const formPost = formExtensions == null ? void 0 : formExtensions.post;
|
|
20
26
|
const { pathname, renderLink, navigate } = router.useRouter();
|
|
21
|
-
const {
|
|
27
|
+
const { spec } = useOperations.useOperations(client);
|
|
22
28
|
const surfaces = react.useMemo(() => clickyMetadata.getClickySurfaces(spec), [spec]);
|
|
23
29
|
const surfaceGroups = react.useMemo(() => groupSurfacesByParent(surfaces), [surfaces]);
|
|
24
|
-
const listHrefBySurface = react.useMemo(() => {
|
|
25
|
-
const out = {};
|
|
26
|
-
for (const surface of surfaces) {
|
|
27
|
-
const listOp = clickyMetadata.findSurfaceListOperation(operations, surface.key);
|
|
28
|
-
if (!(listOp == null ? void 0 : listOp.operation.operationId)) continue;
|
|
29
|
-
const href = commandHref.buildCommandHref(basePath, {
|
|
30
|
-
operation: listOp,
|
|
31
|
-
request: { command: listOp.operation.operationId, autoRun: true }
|
|
32
|
-
});
|
|
33
|
-
if (href) out[surface.key] = href;
|
|
34
|
-
}
|
|
35
|
-
return out;
|
|
36
|
-
}, [basePath, operations, surfaces]);
|
|
37
|
-
const [collapsedGroups, setCollapsedGroups] = react.useState(
|
|
38
|
-
() => readCollapsedGroups()
|
|
39
|
-
);
|
|
40
|
-
const toggleGroup = react.useCallback((parent) => {
|
|
41
|
-
setCollapsedGroups((prev) => {
|
|
42
|
-
const next = { ...prev, [parent]: !prev[parent] };
|
|
43
|
-
writeCollapsedGroups(next);
|
|
44
|
-
return next;
|
|
45
|
-
});
|
|
46
|
-
}, []);
|
|
47
30
|
const defaultSurface = react.useMemo(
|
|
48
31
|
() => surfaces.find((surface) => !surface.admin) ?? surfaces[0],
|
|
49
32
|
[surfaces]
|
|
@@ -75,104 +58,104 @@ function EntityExplorerApp({
|
|
|
75
58
|
}),
|
|
76
59
|
[]
|
|
77
60
|
);
|
|
61
|
+
const navSections = react.useMemo(() => {
|
|
62
|
+
const sections = surfaceGroups.map((group) => ({
|
|
63
|
+
label: group.label,
|
|
64
|
+
items: group.surfaces.map((surface) => {
|
|
65
|
+
const icon = surfaceIconMap.resolveSurfaceIcon(surface.icon);
|
|
66
|
+
return {
|
|
67
|
+
key: surface.key,
|
|
68
|
+
label: surface.title,
|
|
69
|
+
...icon ? { icon } : {},
|
|
70
|
+
active: isSurfaceRouteActive(resolvedRoute, surface.key),
|
|
71
|
+
to: commandHref.withBasePath(basePath, `/${surface.key}`)
|
|
72
|
+
};
|
|
73
|
+
})
|
|
74
|
+
}));
|
|
75
|
+
if (showApiExplorer) {
|
|
76
|
+
sections.push({
|
|
77
|
+
items: [
|
|
78
|
+
{
|
|
79
|
+
key: explorerDefinition.key,
|
|
80
|
+
label: explorerDefinition.title,
|
|
81
|
+
active: resolvedRoute.kind === "explorer" || resolvedRoute.kind === "command",
|
|
82
|
+
to: commandHref.withBasePath(basePath, "/explorer")
|
|
83
|
+
}
|
|
84
|
+
]
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
return sections;
|
|
88
|
+
}, [surfaceGroups, basePath, resolvedRoute, showApiExplorer, explorerDefinition]);
|
|
78
89
|
react.useEffect(() => {
|
|
79
90
|
if (defaultSurface == null || relativePath !== "/") return;
|
|
80
91
|
navigate(commandHref.withBasePath(basePath, `/${defaultSurface.key}`), { replace: true });
|
|
81
92
|
}, [basePath, defaultSurface, relativePath, navigate]);
|
|
82
|
-
const content = /* @__PURE__ */ jsxRuntime.
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-
|
|
93
|
+
const content = /* @__PURE__ */ jsxRuntime.jsx(
|
|
94
|
+
AppShell.AppShell,
|
|
95
|
+
{
|
|
96
|
+
brand: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0", children: [
|
|
97
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "truncate text-sm font-semibold", children: (spec == null ? void 0 : spec.info.title) ?? "Clicky Explorer" }),
|
|
98
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "truncate text-xs text-sidebar-foreground/60", children: "Metadata-driven entity explorer" })
|
|
87
99
|
] }),
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
backHref: commandHref.withBasePath(basePath, `/${resolvedRoute.surface.key}`),
|
|
148
|
-
backLabel: `Back to ${resolvedRoute.surface.title}`,
|
|
149
|
-
commandRuntime,
|
|
150
|
-
...resolvedRoute.id ? { id: resolvedRoute.id } : {}
|
|
151
|
-
}
|
|
152
|
-
) : /* @__PURE__ */ jsxRuntime.jsx(UnknownSurface, { surfaceKey: resolvedRoute.surfaceKey }) : resolvedRoute.kind === "command" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
153
|
-
OperationCommandPage.OperationCommandPage,
|
|
154
|
-
{
|
|
155
|
-
client,
|
|
156
|
-
backHref: commandHref.withBasePath(basePath, "/explorer"),
|
|
157
|
-
backLabel: "Back to API Explorer",
|
|
158
|
-
renderLink,
|
|
159
|
-
commandRuntime,
|
|
160
|
-
initialValues: commandInitialValues,
|
|
161
|
-
autoRun: true,
|
|
162
|
-
...resolvedRoute.operationId ? { operationId: resolvedRoute.operationId } : {}
|
|
163
|
-
}
|
|
164
|
-
) : resolvedRoute.kind === "explorer" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
165
|
-
OperationCatalog.OperationCatalog,
|
|
166
|
-
{
|
|
167
|
-
definition: explorerDefinition,
|
|
168
|
-
entities: [],
|
|
169
|
-
allOperations: true,
|
|
170
|
-
client,
|
|
171
|
-
renderLink,
|
|
172
|
-
commandRuntime
|
|
173
|
-
}
|
|
174
|
-
) : defaultSurface == null ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-sm text-muted-foreground", children: "Loading surfaces…" }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-sm text-muted-foreground", children: "Redirecting…" }) })
|
|
175
|
-
] });
|
|
100
|
+
navSections,
|
|
101
|
+
sidebarFooter: /* @__PURE__ */ jsxRuntime.jsx(themeSwitcher.ThemeSwitcher, {}),
|
|
102
|
+
collapsedStorageKey: SIDEBAR_COLLAPSED_KEY,
|
|
103
|
+
contentClassName: "p-6",
|
|
104
|
+
children: resolvedRoute.kind === "surface" ? resolvedRoute.surface ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
105
|
+
OperationCatalog.OperationCatalog,
|
|
106
|
+
{
|
|
107
|
+
definition: clickyMetadata.makeSurfaceDefinition(resolvedRoute.surface),
|
|
108
|
+
entities: [resolvedRoute.surface.entity],
|
|
109
|
+
client,
|
|
110
|
+
renderLink,
|
|
111
|
+
surfaceKey: resolvedRoute.surface.key,
|
|
112
|
+
commandRuntime,
|
|
113
|
+
...formPre ? { formPre } : {},
|
|
114
|
+
...formPost ? { formPost } : {},
|
|
115
|
+
...formActions ? { formActions } : {},
|
|
116
|
+
...resultRenderer ? { resultRenderer } : {}
|
|
117
|
+
}
|
|
118
|
+
) : /* @__PURE__ */ jsxRuntime.jsx(UnknownSurface, { surfaceKey: resolvedRoute.surfaceKey }) : resolvedRoute.kind === "entity" ? resolvedRoute.surface ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
119
|
+
OperationEntityPage.OperationEntityPage,
|
|
120
|
+
{
|
|
121
|
+
definition: clickyMetadata.makeSurfaceDefinition(resolvedRoute.surface),
|
|
122
|
+
entities: [resolvedRoute.surface.entity],
|
|
123
|
+
client,
|
|
124
|
+
renderLink,
|
|
125
|
+
surfaceKey: resolvedRoute.surface.key,
|
|
126
|
+
backHref: commandHref.withBasePath(basePath, `/${resolvedRoute.surface.key}`),
|
|
127
|
+
backLabel: `Back to ${resolvedRoute.surface.title}`,
|
|
128
|
+
commandRuntime,
|
|
129
|
+
...formPre ? { formPre } : {},
|
|
130
|
+
...formPost ? { formPost } : {},
|
|
131
|
+
...formActions ? { formActions } : {},
|
|
132
|
+
...resolvedRoute.id ? { id: resolvedRoute.id } : {}
|
|
133
|
+
}
|
|
134
|
+
) : /* @__PURE__ */ jsxRuntime.jsx(UnknownSurface, { surfaceKey: resolvedRoute.surfaceKey }) : resolvedRoute.kind === "command" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
135
|
+
OperationCommandPage.OperationCommandPage,
|
|
136
|
+
{
|
|
137
|
+
client,
|
|
138
|
+
backHref: commandHref.withBasePath(basePath, "/explorer"),
|
|
139
|
+
backLabel: "Back to API Explorer",
|
|
140
|
+
renderLink,
|
|
141
|
+
commandRuntime,
|
|
142
|
+
initialValues: commandInitialValues,
|
|
143
|
+
autoRun: true,
|
|
144
|
+
...resolvedRoute.operationId ? { operationId: resolvedRoute.operationId } : {}
|
|
145
|
+
}
|
|
146
|
+
) : resolvedRoute.kind === "explorer" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
147
|
+
OperationCatalog.OperationCatalog,
|
|
148
|
+
{
|
|
149
|
+
definition: explorerDefinition,
|
|
150
|
+
entities: [],
|
|
151
|
+
allOperations: true,
|
|
152
|
+
client,
|
|
153
|
+
renderLink,
|
|
154
|
+
commandRuntime
|
|
155
|
+
}
|
|
156
|
+
) : defaultSurface == null ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-sm text-muted-foreground", children: "Loading surfaces…" }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-sm text-muted-foreground", children: "Redirecting…" })
|
|
157
|
+
}
|
|
158
|
+
);
|
|
176
159
|
return content;
|
|
177
160
|
}
|
|
178
161
|
function parseExplorerRoute(pathname) {
|
|
@@ -207,12 +190,6 @@ function resolveRouteSurface(route, surfaces) {
|
|
|
207
190
|
function isSurfaceRouteActive(route, surfaceKey) {
|
|
208
191
|
return route.kind === "surface" && route.surfaceKey === surfaceKey || route.kind === "entity" && route.surfaceKey === surfaceKey;
|
|
209
192
|
}
|
|
210
|
-
function navLinkClassName(active) {
|
|
211
|
-
return [
|
|
212
|
-
"rounded-md px-2 py-1.5 text-sm transition-colors",
|
|
213
|
-
active ? "bg-accent text-accent-foreground" : "text-foreground hover:bg-accent"
|
|
214
|
-
].join(" ");
|
|
215
|
-
}
|
|
216
193
|
function stripBasePath(pathname, basePath) {
|
|
217
194
|
const base = commandHref.trimTrailingSlash(basePath);
|
|
218
195
|
if (!base || base === "/") {
|
|
@@ -254,24 +231,6 @@ function titleCase(value) {
|
|
|
254
231
|
if (!value) return value;
|
|
255
232
|
return value.charAt(0).toUpperCase() + value.slice(1);
|
|
256
233
|
}
|
|
257
|
-
function readCollapsedGroups() {
|
|
258
|
-
if (typeof window === "undefined") return {};
|
|
259
|
-
try {
|
|
260
|
-
const raw = window.localStorage.getItem(SURFACE_GROUP_STATE_KEY);
|
|
261
|
-
if (!raw) return {};
|
|
262
|
-
const parsed = JSON.parse(raw);
|
|
263
|
-
return parsed && typeof parsed === "object" ? parsed : {};
|
|
264
|
-
} catch {
|
|
265
|
-
return {};
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
function writeCollapsedGroups(state) {
|
|
269
|
-
if (typeof window === "undefined") return;
|
|
270
|
-
try {
|
|
271
|
-
window.localStorage.setItem(SURFACE_GROUP_STATE_KEY, JSON.stringify(state));
|
|
272
|
-
} catch {
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
234
|
function readCommandQueryParams() {
|
|
276
235
|
if (typeof window === "undefined") {
|
|
277
236
|
return { initialValues: {}, autoRun: false };
|