@flanksource/clicky-ui 0.2.13 → 0.2.15
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/chat.cjs +20 -0
- package/dist/chat.cjs.map +1 -0
- package/dist/chat.d.ts +2 -0
- package/dist/chat.d.ts.map +1 -0
- package/dist/chat.js +20 -0
- package/dist/chat.js.map +1 -0
- package/dist/components/Combobox.cjs +5 -3
- package/dist/components/Combobox.cjs.map +1 -1
- package/dist/components/Combobox.d.ts +2 -0
- package/dist/components/Combobox.d.ts.map +1 -1
- package/dist/components/Combobox.js +5 -3
- package/dist/components/Combobox.js.map +1 -1
- package/dist/components/DateTimePicker.cjs +3 -1
- package/dist/components/DateTimePicker.cjs.map +1 -1
- package/dist/components/DateTimePicker.d.ts +5 -1
- package/dist/components/DateTimePicker.d.ts.map +1 -1
- package/dist/components/DateTimePicker.js +3 -1
- package/dist/components/DateTimePicker.js.map +1 -1
- package/dist/components/FilterBar.cjs +8 -41
- package/dist/components/FilterBar.cjs.map +1 -1
- package/dist/components/FilterBar.d.ts +0 -2
- package/dist/components/FilterBar.d.ts.map +1 -1
- package/dist/components/FilterBar.js +3 -36
- package/dist/components/FilterBar.js.map +1 -1
- package/dist/components/FormatOptionsDropdown.cjs +2 -18
- package/dist/components/FormatOptionsDropdown.cjs.map +1 -1
- package/dist/components/FormatOptionsDropdown.d.ts +1 -17
- package/dist/components/FormatOptionsDropdown.d.ts.map +1 -1
- package/dist/components/FormatOptionsDropdown.js +1 -17
- package/dist/components/FormatOptionsDropdown.js.map +1 -1
- package/dist/components/JsonSchemaForm.cjs +128 -12
- 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 +131 -15
- package/dist/components/JsonSchemaForm.js.map +1 -1
- package/dist/components/SecretKeySelector.cjs +1 -2
- package/dist/components/SecretKeySelector.cjs.map +1 -1
- package/dist/components/SecretKeySelector.d.ts +5 -3
- package/dist/components/SecretKeySelector.d.ts.map +1 -1
- package/dist/components/SecretKeySelector.js +2 -3
- package/dist/components/SecretKeySelector.js.map +1 -1
- package/dist/components/TreePickerField.cjs +137 -0
- package/dist/components/TreePickerField.cjs.map +1 -0
- package/dist/components/TreePickerField.d.ts +30 -0
- package/dist/components/TreePickerField.d.ts.map +1 -0
- package/dist/components/TreePickerField.js +137 -0
- package/dist/components/TreePickerField.js.map +1 -0
- package/dist/components/WorkloadPicker.cjs +6 -81
- package/dist/components/WorkloadPicker.cjs.map +1 -1
- package/dist/components/WorkloadPicker.d.ts +1 -20
- package/dist/components/WorkloadPicker.d.ts.map +1 -1
- package/dist/components/WorkloadPicker.js +3 -78
- package/dist/components/WorkloadPicker.js.map +1 -1
- package/dist/components/button-variants.cjs +30 -0
- package/dist/components/button-variants.cjs.map +1 -0
- package/dist/components/button-variants.d.ts +5 -0
- package/dist/components/button-variants.d.ts.map +1 -0
- package/dist/components/button-variants.js +30 -0
- package/dist/components/button-variants.js.map +1 -0
- package/dist/components/button.cjs +11 -82
- package/dist/components/button.cjs.map +1 -1
- package/dist/components/button.d.ts +1 -5
- package/dist/components/button.d.ts.map +1 -1
- package/dist/components/button.js +5 -76
- package/dist/components/button.js.map +1 -1
- package/dist/components/filter-bar-utils.cjs +37 -0
- package/dist/components/filter-bar-utils.cjs.map +1 -0
- package/dist/components/filter-bar-utils.d.ts +4 -0
- package/dist/components/filter-bar-utils.d.ts.map +1 -0
- package/dist/components/filter-bar-utils.js +37 -0
- package/dist/components/filter-bar-utils.js.map +1 -0
- package/dist/components/format-options.cjs +20 -0
- package/dist/components/format-options.cjs.map +1 -0
- package/dist/components/format-options.d.ts +18 -0
- package/dist/components/format-options.d.ts.map +1 -0
- package/dist/components/format-options.js +20 -0
- package/dist/components/format-options.js.map +1 -0
- package/dist/components/json-schema-form-array.cjs +13 -17
- package/dist/components/json-schema-form-array.cjs.map +1 -1
- package/dist/components/json-schema-form-array.d.ts +1 -2
- package/dist/components/json-schema-form-array.d.ts.map +1 -1
- package/dist/components/json-schema-form-array.js +3 -7
- package/dist/components/json-schema-form-array.js.map +1 -1
- package/dist/components/json-schema-form-fields.cjs +90 -232
- package/dist/components/json-schema-form-fields.cjs.map +1 -1
- package/dist/components/json-schema-form-fields.d.ts +51 -6
- package/dist/components/json-schema-form-fields.d.ts.map +1 -1
- package/dist/components/json-schema-form-fields.js +82 -224
- package/dist/components/json-schema-form-fields.js.map +1 -1
- package/dist/components/json-schema-form-object.cjs +149 -0
- package/dist/components/json-schema-form-object.cjs.map +1 -0
- package/dist/components/json-schema-form-object.d.ts +10 -0
- package/dist/components/json-schema-form-object.d.ts.map +1 -0
- package/dist/components/json-schema-form-object.js +149 -0
- package/dist/components/json-schema-form-object.js.map +1 -0
- package/dist/components/json-schema-form-preferences.cjs +41 -0
- package/dist/components/json-schema-form-preferences.cjs.map +1 -0
- package/dist/components/json-schema-form-preferences.d.ts +10 -0
- package/dist/components/json-schema-form-preferences.d.ts.map +1 -0
- package/dist/components/json-schema-form-preferences.js +41 -0
- package/dist/components/json-schema-form-preferences.js.map +1 -0
- package/dist/components/json-schema-form-render.cjs +43 -72
- package/dist/components/json-schema-form-render.cjs.map +1 -1
- package/dist/components/json-schema-form-render.d.ts +5 -33
- package/dist/components/json-schema-form-render.d.ts.map +1 -1
- package/dist/components/json-schema-form-render.js +41 -70
- package/dist/components/json-schema-form-render.js.map +1 -1
- package/dist/components/json-schema-form-resolve.cjs +9 -1
- 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 +9 -1
- package/dist/components/json-schema-form-resolve.js.map +1 -1
- package/dist/components/json-schema-form-types.d.ts +58 -1
- package/dist/components/json-schema-form-types.d.ts.map +1 -1
- package/dist/components/json-schema-form-utils.cjs +96 -0
- package/dist/components/json-schema-form-utils.cjs.map +1 -0
- package/dist/components/json-schema-form-utils.d.ts +17 -0
- package/dist/components/json-schema-form-utils.d.ts.map +1 -0
- package/dist/components/json-schema-form-utils.js +96 -0
- package/dist/components/json-schema-form-utils.js.map +1 -0
- package/dist/components/loading.cjs +109 -0
- package/dist/components/loading.cjs.map +1 -0
- package/dist/components/loading.d.ts +27 -0
- package/dist/components/loading.d.ts.map +1 -0
- package/dist/components/loading.js +109 -0
- package/dist/components/loading.js.map +1 -0
- package/dist/components/workload-picker-utils.cjs +88 -0
- package/dist/components/workload-picker-utils.cjs.map +1 -0
- package/dist/components/workload-picker-utils.d.ts +34 -0
- package/dist/components/workload-picker-utils.d.ts.map +1 -0
- package/dist/components/workload-picker-utils.js +88 -0
- package/dist/components/workload-picker-utils.js.map +1 -0
- package/dist/components.cjs +18 -6
- package/dist/components.cjs.map +1 -1
- package/dist/components.d.ts +10 -3
- package/dist/components.d.ts.map +1 -1
- package/dist/components.js +16 -4
- package/dist/components.js.map +1 -1
- package/dist/data/Badge.cjs +11 -91
- package/dist/data/Badge.cjs.map +1 -1
- package/dist/data/Badge.d.ts +1 -5
- package/dist/data/Badge.d.ts.map +1 -1
- package/dist/data/Badge.js +11 -91
- package/dist/data/Badge.js.map +1 -1
- package/dist/data/Clicky.cjs +4 -3
- package/dist/data/Clicky.cjs.map +1 -1
- package/dist/data/Clicky.d.ts.map +1 -1
- package/dist/data/Clicky.js +4 -3
- package/dist/data/Clicky.js.map +1 -1
- package/dist/data/DataTable.cjs +161 -156
- package/dist/data/DataTable.cjs.map +1 -1
- package/dist/data/DataTable.d.ts +25 -4
- package/dist/data/DataTable.d.ts.map +1 -1
- package/dist/data/DataTable.js +140 -135
- package/dist/data/DataTable.js.map +1 -1
- package/dist/data/FilterPill.cjs +3 -0
- package/dist/data/FilterPill.cjs.map +1 -1
- package/dist/data/FilterPill.d.ts.map +1 -1
- package/dist/data/FilterPill.js +3 -0
- package/dist/data/FilterPill.js.map +1 -1
- package/dist/data/Icon.cjs +7 -7
- package/dist/data/Icon.cjs.map +1 -1
- package/dist/data/Icon.js +7 -7
- package/dist/data/Icon.js.map +1 -1
- package/dist/data/LogDetails.cjs +5 -14
- package/dist/data/LogDetails.cjs.map +1 -1
- package/dist/data/LogDetails.d.ts +8 -4
- package/dist/data/LogDetails.d.ts.map +1 -1
- package/dist/data/LogDetails.js +4 -13
- package/dist/data/LogDetails.js.map +1 -1
- package/dist/data/LogsTable.cjs +6 -165
- package/dist/data/LogsTable.cjs.map +1 -1
- package/dist/data/LogsTable.d.ts +2 -15
- package/dist/data/LogsTable.d.ts.map +1 -1
- package/dist/data/LogsTable.js +6 -165
- package/dist/data/LogsTable.js.map +1 -1
- package/dist/data/TimeseriesCoreBars.cjs +8 -1
- package/dist/data/TimeseriesCoreBars.cjs.map +1 -1
- package/dist/data/TimeseriesCoreBars.d.ts.map +1 -1
- package/dist/data/TimeseriesCoreBars.js +8 -1
- package/dist/data/TimeseriesCoreBars.js.map +1 -1
- package/dist/data/TimeseriesPanel.axes.cjs.map +1 -1
- package/dist/data/TimeseriesPanel.axes.js.map +1 -1
- package/dist/data/TreeNode.cjs +13 -7
- package/dist/data/TreeNode.cjs.map +1 -1
- package/dist/data/TreeNode.d.ts.map +1 -1
- package/dist/data/TreeNode.js +13 -7
- package/dist/data/TreeNode.js.map +1 -1
- package/dist/data/badge-variants.cjs +85 -0
- package/dist/data/badge-variants.cjs.map +1 -0
- package/dist/data/badge-variants.d.ts +6 -0
- package/dist/data/badge-variants.d.ts.map +1 -0
- package/dist/data/badge-variants.js +85 -0
- package/dist/data/badge-variants.js.map +1 -0
- package/dist/data/cache-browser/CacheBrowser.cjs +59 -0
- package/dist/data/cache-browser/CacheBrowser.cjs.map +1 -0
- package/dist/data/cache-browser/CacheBrowser.d.ts +26 -0
- package/dist/data/cache-browser/CacheBrowser.d.ts.map +1 -0
- package/dist/data/cache-browser/CacheBrowser.js +59 -0
- package/dist/data/cache-browser/CacheBrowser.js.map +1 -0
- package/dist/data/cache-browser/CacheDetailPanel.cjs +193 -0
- package/dist/data/cache-browser/CacheDetailPanel.cjs.map +1 -0
- package/dist/data/cache-browser/CacheDetailPanel.d.ts +20 -0
- package/dist/data/cache-browser/CacheDetailPanel.d.ts.map +1 -0
- package/dist/data/cache-browser/CacheDetailPanel.js +193 -0
- package/dist/data/cache-browser/CacheDetailPanel.js.map +1 -0
- package/dist/data/cache-browser/CacheStatsOverview.cjs +126 -0
- package/dist/data/cache-browser/CacheStatsOverview.cjs.map +1 -0
- package/dist/data/cache-browser/CacheStatsOverview.d.ts +17 -0
- package/dist/data/cache-browser/CacheStatsOverview.d.ts.map +1 -0
- package/dist/data/cache-browser/CacheStatsOverview.js +126 -0
- package/dist/data/cache-browser/CacheStatsOverview.js.map +1 -0
- package/dist/data/cache-browser/CacheTree.cjs +189 -0
- package/dist/data/cache-browser/CacheTree.cjs.map +1 -0
- package/dist/data/cache-browser/CacheTree.d.ts +27 -0
- package/dist/data/cache-browser/CacheTree.d.ts.map +1 -0
- package/dist/data/cache-browser/CacheTree.js +189 -0
- package/dist/data/cache-browser/CacheTree.js.map +1 -0
- package/dist/data/cache-browser/CacheValue.cjs +86 -0
- package/dist/data/cache-browser/CacheValue.cjs.map +1 -0
- package/dist/data/cache-browser/CacheValue.d.ts +11 -0
- package/dist/data/cache-browser/CacheValue.d.ts.map +1 -0
- package/dist/data/cache-browser/CacheValue.js +86 -0
- package/dist/data/cache-browser/CacheValue.js.map +1 -0
- package/dist/data/cache-browser/adapter.cjs +52 -0
- package/dist/data/cache-browser/adapter.cjs.map +1 -0
- package/dist/data/cache-browser/adapter.d.ts +48 -0
- package/dist/data/cache-browser/adapter.d.ts.map +1 -0
- package/dist/data/cache-browser/adapter.js +52 -0
- package/dist/data/cache-browser/adapter.js.map +1 -0
- package/dist/data/cache-browser/api.cjs +42 -0
- package/dist/data/cache-browser/api.cjs.map +1 -0
- package/dist/data/cache-browser/api.d.ts +33 -0
- package/dist/data/cache-browser/api.d.ts.map +1 -0
- package/dist/data/cache-browser/api.js +42 -0
- package/dist/data/cache-browser/api.js.map +1 -0
- package/dist/data/cache-browser/index.d.ts +9 -0
- package/dist/data/cache-browser/index.d.ts.map +1 -0
- package/dist/data/cache-browser/types.cjs +7 -0
- package/dist/data/cache-browser/types.cjs.map +1 -0
- package/dist/data/cache-browser/types.d.ts +78 -0
- package/dist/data/cache-browser/types.d.ts.map +1 -0
- package/dist/data/cache-browser/types.js +7 -0
- package/dist/data/cache-browser/types.js.map +1 -0
- package/dist/data/cells/TagList.cjs +4 -101
- package/dist/data/cells/TagList.cjs.map +1 -1
- package/dist/data/cells/TagList.d.ts +1 -49
- package/dist/data/cells/TagList.d.ts.map +1 -1
- package/dist/data/cells/TagList.js +3 -100
- package/dist/data/cells/TagList.js.map +1 -1
- package/dist/data/cells/Timestamp.cjs +3 -192
- package/dist/data/cells/Timestamp.cjs.map +1 -1
- package/dist/data/cells/Timestamp.d.ts +1 -50
- package/dist/data/cells/Timestamp.d.ts.map +1 -1
- package/dist/data/cells/Timestamp.js +2 -191
- package/dist/data/cells/Timestamp.js.map +1 -1
- package/dist/data/cells/tag-utils.cjs +103 -0
- package/dist/data/cells/tag-utils.cjs.map +1 -0
- package/dist/data/cells/tag-utils.d.ts +51 -0
- package/dist/data/cells/tag-utils.d.ts.map +1 -0
- package/dist/data/cells/tag-utils.js +103 -0
- package/dist/data/cells/tag-utils.js.map +1 -0
- package/dist/data/cells/timestamp-format.cjs +193 -0
- package/dist/data/cells/timestamp-format.cjs.map +1 -0
- package/dist/data/cells/timestamp-format.d.ts +51 -0
- package/dist/data/cells/timestamp-format.d.ts.map +1 -0
- package/dist/data/cells/timestamp-format.js +193 -0
- package/dist/data/cells/timestamp-format.js.map +1 -0
- package/dist/data/chat/Chat.cjs +48 -0
- package/dist/data/chat/Chat.cjs.map +1 -0
- package/dist/data/chat/Chat.d.ts +26 -0
- package/dist/data/chat/Chat.d.ts.map +1 -0
- package/dist/data/chat/Chat.fixtures.d.ts +6 -0
- package/dist/data/chat/Chat.fixtures.d.ts.map +1 -0
- package/dist/data/chat/Chat.js +48 -0
- package/dist/data/chat/Chat.js.map +1 -0
- package/dist/data/chat/Conversation.cjs +34 -0
- package/dist/data/chat/Conversation.cjs.map +1 -0
- package/dist/data/chat/Conversation.d.ts +11 -0
- package/dist/data/chat/Conversation.d.ts.map +1 -0
- package/dist/data/chat/Conversation.js +34 -0
- package/dist/data/chat/Conversation.js.map +1 -0
- package/dist/data/chat/Message.cjs +44 -0
- package/dist/data/chat/Message.cjs.map +1 -0
- package/dist/data/chat/Message.d.ts +10 -0
- package/dist/data/chat/Message.d.ts.map +1 -0
- package/dist/data/chat/Message.js +44 -0
- package/dist/data/chat/Message.js.map +1 -0
- package/dist/data/chat/PromptInput.cjs +61 -0
- package/dist/data/chat/PromptInput.cjs.map +1 -0
- package/dist/data/chat/PromptInput.d.ts +16 -0
- package/dist/data/chat/PromptInput.d.ts.map +1 -0
- package/dist/data/chat/PromptInput.js +61 -0
- package/dist/data/chat/PromptInput.js.map +1 -0
- package/dist/data/chat/ToolCall.cjs +92 -0
- package/dist/data/chat/ToolCall.cjs.map +1 -0
- package/dist/data/chat/ToolCall.d.ts +14 -0
- package/dist/data/chat/ToolCall.d.ts.map +1 -0
- package/dist/data/chat/ToolCall.js +92 -0
- package/dist/data/chat/ToolCall.js.map +1 -0
- package/dist/data/chat/clickyOperationsToTools.cjs +73 -0
- package/dist/data/chat/clickyOperationsToTools.cjs.map +1 -0
- package/dist/data/chat/clickyOperationsToTools.d.ts +10 -0
- package/dist/data/chat/clickyOperationsToTools.d.ts.map +1 -0
- package/dist/data/chat/clickyOperationsToTools.js +73 -0
- package/dist/data/chat/clickyOperationsToTools.js.map +1 -0
- package/dist/data/chat/index.d.ts +8 -0
- package/dist/data/chat/index.d.ts.map +1 -0
- package/dist/data/chat/types.cjs +18 -0
- package/dist/data/chat/types.cjs.map +1 -0
- package/dist/data/chat/types.d.ts +41 -0
- package/dist/data/chat/types.d.ts.map +1 -0
- package/dist/data/chat/types.js +18 -0
- package/dist/data/chat/types.js.map +1 -0
- package/dist/data/data-table-utils.cjs +55 -0
- package/dist/data/data-table-utils.cjs.map +1 -0
- package/dist/data/data-table-utils.d.ts +24 -0
- package/dist/data/data-table-utils.d.ts.map +1 -0
- package/dist/data/data-table-utils.js +55 -0
- package/dist/data/data-table-utils.js.map +1 -0
- package/dist/data/diagnostics/DiagnosticsDetailPanel.cjs +2 -1
- package/dist/data/diagnostics/DiagnosticsDetailPanel.cjs.map +1 -1
- package/dist/data/diagnostics/DiagnosticsDetailPanel.d.ts.map +1 -1
- package/dist/data/diagnostics/DiagnosticsDetailPanel.js +3 -2
- package/dist/data/diagnostics/DiagnosticsDetailPanel.js.map +1 -1
- package/dist/data/diagnostics/GoroutineCard.cjs +3 -22
- package/dist/data/diagnostics/GoroutineCard.cjs.map +1 -1
- package/dist/data/diagnostics/GoroutineCard.d.ts +0 -2
- package/dist/data/diagnostics/GoroutineCard.d.ts.map +1 -1
- package/dist/data/diagnostics/GoroutineCard.js +2 -21
- package/dist/data/diagnostics/GoroutineCard.js.map +1 -1
- package/dist/data/diagnostics/ThreadCard.cjs +3 -38
- package/dist/data/diagnostics/ThreadCard.cjs.map +1 -1
- package/dist/data/diagnostics/ThreadCard.d.ts +0 -2
- package/dist/data/diagnostics/ThreadCard.d.ts.map +1 -1
- package/dist/data/diagnostics/ThreadCard.js +2 -37
- package/dist/data/diagnostics/ThreadCard.js.map +1 -1
- package/dist/data/diagnostics/state-styles.cjs +59 -0
- package/dist/data/diagnostics/state-styles.cjs.map +1 -0
- package/dist/data/diagnostics/state-styles.d.ts +5 -0
- package/dist/data/diagnostics/state-styles.d.ts.map +1 -0
- package/dist/data/diagnostics/state-styles.js +59 -0
- package/dist/data/diagnostics/state-styles.js.map +1 -0
- package/dist/data/logs-normalize.cjs +166 -0
- package/dist/data/logs-normalize.cjs.map +1 -0
- package/dist/data/logs-normalize.d.ts +16 -0
- package/dist/data/logs-normalize.d.ts.map +1 -0
- package/dist/data/logs-normalize.js +166 -0
- package/dist/data/logs-normalize.js.map +1 -0
- package/dist/data/task-status.cjs +19 -19
- package/dist/data/task-status.cjs.map +1 -1
- package/dist/data/task-status.js +19 -19
- package/dist/data/task-status.js.map +1 -1
- package/dist/data/version-info.cjs +3 -3
- package/dist/data/version-info.js +3 -3
- package/dist/data.cjs +43 -18
- package/dist/data.cjs.map +1 -1
- package/dist/data.d.ts +11 -5
- package/dist/data.d.ts.map +1 -1
- package/dist/data.js +30 -5
- package/dist/data.js.map +1 -1
- package/dist/hooks/density-provider.cjs +38 -0
- package/dist/hooks/density-provider.cjs.map +1 -0
- package/dist/hooks/density-provider.d.ts +20 -0
- package/dist/hooks/density-provider.d.ts.map +1 -0
- package/dist/hooks/density-provider.js +38 -0
- package/dist/hooks/density-provider.js.map +1 -0
- package/dist/hooks/theme-provider.cjs +43 -0
- package/dist/hooks/theme-provider.cjs.map +1 -0
- package/dist/hooks/theme-provider.d.ts +9 -0
- package/dist/hooks/theme-provider.d.ts.map +1 -0
- package/dist/hooks/theme-provider.js +43 -0
- package/dist/hooks/theme-provider.js.map +1 -0
- package/dist/hooks/use-density.cjs +8 -37
- package/dist/hooks/use-density.cjs.map +1 -1
- package/dist/hooks/use-density.d.ts +5 -20
- package/dist/hooks/use-density.d.ts.map +1 -1
- package/dist/hooks/use-density.js +9 -38
- package/dist/hooks/use-density.js.map +1 -1
- package/dist/hooks/use-theme.cjs +10 -43
- package/dist/hooks/use-theme.cjs.map +1 -1
- package/dist/hooks/use-theme.d.ts +6 -9
- package/dist/hooks/use-theme.d.ts.map +1 -1
- package/dist/hooks/use-theme.js +11 -44
- package/dist/hooks/use-theme.js.map +1 -1
- package/dist/hooks.cjs +5 -2
- package/dist/hooks.cjs.map +1 -1
- package/dist/hooks.d.ts +4 -2
- package/dist/hooks.d.ts.map +1 -1
- package/dist/hooks.js +5 -2
- package/dist/hooks.js.map +1 -1
- package/dist/icons/changeIconAliases.cjs +13 -13
- package/dist/icons/changeIconAliases.cjs.map +1 -1
- package/dist/icons/changeIconAliases.d.ts.map +1 -1
- package/dist/icons/changeIconAliases.js +13 -13
- package/dist/icons/changeIconAliases.js.map +1 -1
- package/dist/index.cjs +71 -30
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +53 -12
- package/dist/index.js.map +1 -1
- package/dist/overlay/DropdownMenu.cjs +2 -0
- package/dist/overlay/DropdownMenu.cjs.map +1 -1
- package/dist/overlay/DropdownMenu.d.ts +3 -1
- package/dist/overlay/DropdownMenu.d.ts.map +1 -1
- package/dist/overlay/DropdownMenu.js +2 -0
- package/dist/overlay/DropdownMenu.js.map +1 -1
- package/dist/overlay/Modal.cjs +11 -4
- package/dist/overlay/Modal.cjs.map +1 -1
- package/dist/overlay/Modal.d.ts +1 -1
- package/dist/overlay/Modal.d.ts.map +1 -1
- package/dist/overlay/Modal.js +11 -4
- package/dist/overlay/Modal.js.map +1 -1
- package/dist/overlay/modalStack.cjs +35 -0
- package/dist/overlay/modalStack.cjs.map +1 -0
- package/dist/overlay/modalStack.d.ts +13 -0
- package/dist/overlay/modalStack.d.ts.map +1 -0
- package/dist/overlay/modalStack.js +35 -0
- package/dist/overlay/modalStack.js.map +1 -0
- package/dist/rpc/AcceptPicker.cjs +2 -18
- package/dist/rpc/AcceptPicker.cjs.map +1 -1
- package/dist/rpc/AcceptPicker.d.ts +1 -41
- package/dist/rpc/AcceptPicker.d.ts.map +1 -1
- package/dist/rpc/AcceptPicker.js +2 -18
- package/dist/rpc/AcceptPicker.js.map +1 -1
- package/dist/rpc/CommandOutput.cjs +1 -1
- package/dist/rpc/CommandOutput.cjs.map +1 -1
- package/dist/rpc/CommandOutput.js +1 -1
- package/dist/rpc/CommandOutput.js.map +1 -1
- package/dist/rpc/EndpointList.cjs +1 -1
- package/dist/rpc/EndpointList.cjs.map +1 -1
- package/dist/rpc/EndpointList.js +1 -1
- package/dist/rpc/EndpointList.js.map +1 -1
- package/dist/rpc/OperationCatalog.cjs +23 -41
- package/dist/rpc/OperationCatalog.cjs.map +1 -1
- package/dist/rpc/OperationCatalog.d.ts.map +1 -1
- package/dist/rpc/OperationCatalog.js +24 -42
- package/dist/rpc/OperationCatalog.js.map +1 -1
- package/dist/rpc/OperationCommandPage.cjs.map +1 -1
- package/dist/rpc/OperationCommandPage.d.ts.map +1 -1
- package/dist/rpc/OperationCommandPage.js.map +1 -1
- package/dist/rpc/accept-options.cjs +20 -0
- package/dist/rpc/accept-options.cjs.map +1 -0
- package/dist/rpc/accept-options.d.ts +42 -0
- package/dist/rpc/accept-options.d.ts.map +1 -0
- package/dist/rpc/accept-options.js +20 -0
- package/dist/rpc/accept-options.js.map +1 -0
- package/dist/rpc/classify.cjs +15 -4
- package/dist/rpc/classify.cjs.map +1 -1
- package/dist/rpc/classify.d.ts.map +1 -1
- package/dist/rpc/classify.js +15 -4
- package/dist/rpc/classify.js.map +1 -1
- package/dist/rpc/clickyMetadata.cjs +13 -3
- package/dist/rpc/clickyMetadata.cjs.map +1 -1
- package/dist/rpc/clickyMetadata.d.ts +2 -0
- package/dist/rpc/clickyMetadata.d.ts.map +1 -1
- package/dist/rpc/clickyMetadata.js +14 -4
- package/dist/rpc/clickyMetadata.js.map +1 -1
- package/dist/rpc.cjs +3 -2
- package/dist/rpc.cjs.map +1 -1
- package/dist/rpc.d.ts +2 -1
- package/dist/rpc.d.ts.map +1 -1
- package/dist/rpc.js +2 -1
- package/dist/rpc.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +16 -1
package/dist/rpc/classify.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"classify.js","sources":["../../src/rpc/classify.ts"],"sourcesContent":["import { isPositionalParam, type ExecutionResponse, type ResolvedOperation } from \"./types\";\n\n// findListEndpoint picks the canonical list operation for a set of\n// entities. Clicky-rpc auto-registers `<entity> list` commands and mints\n// operationIds of the form `<entity>_list`. Matching exactly on that form\n// keeps the default table view deterministic — a non-list GET never gets\n// promoted to list by accident.\nexport function findListEndpoint(\n operations: ResolvedOperation[],\n entities: string[],\n): ResolvedOperation | undefined {\n const
|
|
1
|
+
{"version":3,"file":"classify.js","sources":["../../src/rpc/classify.ts"],"sourcesContent":["import { isPositionalParam, type ExecutionResponse, type ResolvedOperation } from \"./types\";\n\n// findListEndpoint picks the canonical list operation for a set of\n// entities. Clicky-rpc auto-registers `<entity> list` commands and mints\n// operationIds of the form `<entity>_list`. Matching exactly on that form\n// keeps the default table view deterministic — a non-list GET never gets\n// promoted to list by accident.\n//\n// When a `<entity> list` command is promoted onto the bare entity-root\n// (clicky's promoteListToEntityRoot), the collection is exposed instead as\n// `GET /api/v1/<entity>` with operationId `<entity>` and no `_list` suffix.\n// Fall back to that promoted root when no explicit `<entity>_list` exists.\n// A path/positional parameter disqualifies it, so a `<entity>/{id}` detail\n// GET can never be mistaken for the listing.\nexport function findListEndpoint(\n operations: ResolvedOperation[],\n entities: string[],\n): ResolvedOperation | undefined {\n if (entities.length === 0) return undefined;\n const listIds = new Set(entities.map((e) => `${e}_list`));\n const explicit = operations.find(\n (op) =>\n op.method === \"get\" && !!op.operation.operationId && listIds.has(op.operation.operationId),\n );\n if (explicit) return explicit;\n\n const rootIds = new Set(entities);\n return operations.find(\n (op) =>\n op.method === \"get\" &&\n rootIds.has(op.operation.operationId ?? \"\") &&\n !op.operation.parameters?.some((p) => p.in === \"path\" || isPositionalParam(p)),\n );\n}\n\nexport function findDetailEndpoint(operations: ResolvedOperation[]): ResolvedOperation | undefined {\n return operations.find(\n (op) =>\n op.method === \"get\" &&\n op.operation.parameters?.some((p) => p.in === \"path\" || isPositionalParam(p)),\n );\n}\n\nfunction splitPath(path: string) {\n return path.split(\"/\").filter(Boolean);\n}\n\n// findDetailEndpointForList prefers the detail GET that belongs to the\n// resolved list route. This keeps sibling surfaces that share tags\n// (for example `stack_*` and `admin_stack_*`) from cross-contaminating\n// default entity-detail routing.\nexport function findDetailEndpointForList(\n operations: ResolvedOperation[],\n listEndpoint: ResolvedOperation | undefined,\n): ResolvedOperation | undefined {\n if (!listEndpoint) {\n return findDetailEndpoint(operations);\n }\n\n const baseSegments = splitPath(listEndpoint.path);\n const candidates = operations.filter(\n (op) =>\n op.method === \"get\" &&\n op.path !== listEndpoint.path &&\n op.operation.parameters?.some((p) => p.in === \"path\" || isPositionalParam(p)),\n );\n\n const exactChild = candidates.find((op) => {\n const segments = splitPath(op.path);\n if (segments.length !== baseSegments.length + 1) {\n return false;\n }\n return baseSegments.every((segment, index) => segments[index] === segment);\n });\n\n if (exactChild) {\n return exactChild;\n }\n\n const descendant = candidates.find((op) => op.path.startsWith(`${listEndpoint.path}/`));\n return descendant ?? findDetailEndpoint(operations);\n}\n\nexport function parseJsonBody(response: ExecutionResponse | undefined): unknown {\n if (!response) return null;\n const text = response.stdout || response.output || \"\";\n if (!text.trim()) return null;\n try {\n return JSON.parse(text);\n } catch {\n return null;\n }\n}\n\nexport function normalizeRows(data: unknown): Record<string, unknown>[] {\n if (Array.isArray(data)) return data as Record<string, unknown>[];\n if (data && typeof data === \"object\") {\n for (const value of Object.values(data)) {\n if (Array.isArray(value)) return value as Record<string, unknown>[];\n }\n }\n return [];\n}\n\n// filterOperationsByDomain returns operations whose OpenAPI `tags` intersect\n// the given entity list. Clicky-rpc's converter stamps the parent command\n// name into `op.tags`, so passing the entities that belong to a domain\n// yields that domain's operations.\nexport function filterOperationsByDomain(\n operations: ResolvedOperation[],\n entities: string[],\n): ResolvedOperation[] {\n if (entities.length === 0) return [];\n const wanted = new Set(entities);\n return operations.filter((op) => {\n if ((op.operation.tags ?? []).some((tag) => wanted.has(tag))) return true;\n // clicky promotes a collection to a bare entity-root GET (operationId\n // `<entity>`, no tag). Include it so the catalog can resolve the listing.\n return op.method === \"get\" && wanted.has(op.operation.operationId ?? \"\");\n });\n}\n"],"names":[],"mappings":";AAcO,SAAS,iBACd,YACA,UAC+B;AAC/B,MAAI,SAAS,WAAW,EAAG,QAAO;AAClC,QAAM,UAAU,IAAI,IAAI,SAAS,IAAI,CAAC,MAAM,GAAG,CAAC,OA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AAAA,EAC3E,CAAC;AAED,MAAI,YAAY;AACd,WAAO;AAAA,EACT;AAEA,QAAM,aAAa,WAAW,KAAK,CAAC,OAAO,GAAG,KAAK,WAAW,GAAG,aAAa,IAAI,GAAG,CAAC;AACtF,SAAO,cAAc,mBAAmB,UAAU;AACpD;AAEO,SAAS,cAAc,UAAkD;AAC9E,MAAI,CAAC,SAAU,QAAO;AACtB,QAAM,OAAO,SAAS,UAAU,SAAS,UAAU;AACnD,MAAI,CAAC,KAAK,KAAA,EAAQ,QAAO;AACzB,MAAI;AACF,WAAO,KAAK,MAAM,IAAI;AAAA,EACxB,QAAQ;AACN,WAAO;AAAA,EACT;AACF;AAEO,SAAS,cAAc,MAA0C;AACtE,MAAI,MAAM,QAAQ,IAAI,EAAG,QAAO;AAChC,MAAI,QAAQ,OAAO,SAAS,UAAU;AACpC,eAAW,SAAS,OAAO,OAAO,IAAI,GAAG;AACvC,UAAI,MAAM,QAAQ,KAAK,EAAG,QAAO;AAAA,IACnC;AAAA,EACF;AACA,SAAO,CAAA;AACT;AAMO,SAAS,yBACd,YACA,UACqB;AACrB,MAAI,SAAS,WAAW,EAAG,QAAO,CAAA;AAClC,QAAM,SAAS,IAAI,IAAI,QAAQ;AAC/B,SAAO,WAAW,OAAO,CAAC,OAAO;AAC/B,SAAK,GAAG,UAAU,QAAQ,CAAA,GAAI,KAAK,CAAC,QAAQ,OAAO,IAAI,GAAG,CAAC,EAAG,QAAO;AAGrE,WAAO,GAAG,WAAW,SAAS,OAAO,IAAI,GAAG,UAAU,eAAe,EAAE;AAAA,EACzE,CAAC;AACH;"}
|
|
@@ -39,12 +39,21 @@ function findSurfaceDetailOperation(operations, surfaceKey) {
|
|
|
39
39
|
(meta) => meta.verb === "get" && meta.scope === "entity"
|
|
40
40
|
);
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function findSurfaceActions(operations, surfaceKey) {
|
|
43
43
|
return filterOperationsBySurface(operations, surfaceKey).filter((operation) => {
|
|
44
44
|
const meta = getOperationClickyMeta(operation);
|
|
45
|
-
return meta != null && meta.
|
|
45
|
+
return meta != null && meta.verb !== "list" && meta.verb !== "get";
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
|
+
function surfaceActionLabel(operation) {
|
|
49
|
+
var _a, _b;
|
|
50
|
+
const meta = getOperationClickyMeta(operation);
|
|
51
|
+
const short = ((_a = meta == null ? void 0 : meta.actionName) == null ? void 0 : _a.trim()) || ((_b = meta == null ? void 0 : meta.verb) == null ? void 0 : _b.trim());
|
|
52
|
+
if (short && short !== "action") {
|
|
53
|
+
return short.charAt(0).toUpperCase() + short.slice(1);
|
|
54
|
+
}
|
|
55
|
+
return operation.operation.operationId || operation.path;
|
|
56
|
+
}
|
|
48
57
|
function findSurfaceEntityActions(operations, surfaceKey) {
|
|
49
58
|
return filterOperationsBySurface(operations, surfaceKey).filter((operation) => {
|
|
50
59
|
const meta = getOperationClickyMeta(operation);
|
|
@@ -59,7 +68,7 @@ function makeSurfaceDefinition(surface) {
|
|
|
59
68
|
};
|
|
60
69
|
}
|
|
61
70
|
exports.filterOperationsBySurface = filterOperationsBySurface;
|
|
62
|
-
exports.
|
|
71
|
+
exports.findSurfaceActions = findSurfaceActions;
|
|
63
72
|
exports.findSurfaceDetailOperation = findSurfaceDetailOperation;
|
|
64
73
|
exports.findSurfaceEntityActions = findSurfaceEntityActions;
|
|
65
74
|
exports.findSurfaceListOperation = findSurfaceListOperation;
|
|
@@ -68,4 +77,5 @@ exports.getClickySpecMeta = getClickySpecMeta;
|
|
|
68
77
|
exports.getClickySurfaces = getClickySurfaces;
|
|
69
78
|
exports.getOperationClickyMeta = getOperationClickyMeta;
|
|
70
79
|
exports.makeSurfaceDefinition = makeSurfaceDefinition;
|
|
80
|
+
exports.surfaceActionLabel = surfaceActionLabel;
|
|
71
81
|
//# sourceMappingURL=clickyMetadata.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clickyMetadata.cjs","sources":["../../src/rpc/clickyMetadata.ts"],"sourcesContent":["import type {\n ClickyOperationMeta,\n ClickySpecMeta,\n ClickySurface,\n DomainDefinition,\n OpenAPISpec,\n ResolvedOperation,\n} from \"./types\";\n\nexport function getClickySpecMeta(spec: OpenAPISpec | undefined): ClickySpecMeta | undefined {\n return spec?.[\"x-clicky\"];\n}\n\nexport function getClickySurfaces(spec: OpenAPISpec | undefined): ClickySurface[] {\n return getClickySpecMeta(spec)?.surfaces ?? [];\n}\n\nexport function getOperationClickyMeta(\n operation: Pick<ResolvedOperation, \"operation\">,\n): ClickyOperationMeta | undefined {\n return operation.operation[\"x-clicky\"];\n}\n\nexport function filterOperationsBySurface(\n operations: ResolvedOperation[],\n surfaceKey: string | undefined,\n): ResolvedOperation[] {\n if (!surfaceKey) return [];\n return operations.filter(\n (operation) => getOperationClickyMeta(operation)?.surface === surfaceKey,\n );\n}\n\nexport function findSurfaceOperation(\n operations: ResolvedOperation[],\n surfaceKey: string | undefined,\n predicate: (meta: ClickyOperationMeta) => boolean,\n): ResolvedOperation | undefined {\n return filterOperationsBySurface(operations, surfaceKey).find((operation) => {\n const meta = getOperationClickyMeta(operation);\n return meta != null && predicate(meta);\n });\n}\n\nexport function findSurfaceListOperation(\n operations: ResolvedOperation[],\n surfaceKey: string | undefined,\n): ResolvedOperation | undefined {\n return findSurfaceOperation(\n operations,\n surfaceKey,\n (meta) => meta.verb === \"list\" && meta.scope === \"collection\",\n );\n}\n\nexport function findSurfaceDetailOperation(\n operations: ResolvedOperation[],\n surfaceKey: string | undefined,\n): ResolvedOperation | undefined {\n return findSurfaceOperation(\n operations,\n surfaceKey,\n (meta) => meta.verb === \"get\" && meta.scope === \"entity\",\n );\n}\n\nexport function findSurfaceCollectionActions(\n operations: ResolvedOperation[],\n surfaceKey: string | undefined,\n): ResolvedOperation[] {\n return filterOperationsBySurface(operations, surfaceKey).filter((operation) => {\n const meta = getOperationClickyMeta(operation);\n return meta != null && meta.scope === \"collection\" && meta.verb !== \"list\";\n });\n}\n\nexport function findSurfaceEntityActions(\n operations: ResolvedOperation[],\n surfaceKey: string | undefined,\n): ResolvedOperation[] {\n return filterOperationsBySurface(operations, surfaceKey).filter((operation) => {\n const meta = getOperationClickyMeta(operation);\n return meta != null && meta.scope === \"entity\" && meta.verb !== \"get\";\n });\n}\n\nexport function makeSurfaceDefinition(surface: ClickySurface): DomainDefinition {\n return {\n key: surface.key,\n title: surface.title,\n description: surface.description || `Manage ${surface.title.toLowerCase()} resources.`,\n };\n}\n"],"names":[],"mappings":";;AASO,SAAS,kBAAkB,MAA2D;AAC3F,SAAO,6BAAO;AAChB;AAEO,SAAS,kBAAkB,MAAgD;;AAChF,WAAO,uBAAkB,IAAI,MAAtB,mBAAyB,aAAY,CAAA;AAC9C;AAEO,SAAS,uBACd,WACiC;AACjC,SAAO,UAAU,UAAU,UAAU;AACvC;AAEO,SAAS,0BACd,YACA,YACqB;AACrB,MAAI,CAAC,WAAY,QAAO,CAAA;AACxB,SAAO,WAAW;AAAA,IAChB,CAAC,cAAA;;AAAc,2CAAuB,SAAS,MAAhC,mBAAmC,aAAY;AAAA;AAAA,EAAA;AAElE;AAEO,SAAS,qBACd,YACA,YACA,WAC+B;AAC/B,SAAO,0BAA0B,YAAY,UAAU,EAAE,KAAK,CAAC,cAAc;AAC3E,UAAM,OAAO,uBAAuB,SAAS;AAC7C,WAAO,QAAQ,QAAQ,UAAU,IAAI;AAAA,EACvC,CAAC;AACH;AAEO,SAAS,yBACd,YACA,YAC+B;AAC/B,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA,CAAC,SAAS,KAAK,SAAS,UAAU,KAAK,UAAU;AAAA,EAAA;AAErD;AAEO,SAAS,2BACd,YACA,YAC+B;AAC/B,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA,CAAC,SAAS,KAAK,SAAS,SAAS,KAAK,UAAU;AAAA,EAAA;AAEpD;
|
|
1
|
+
{"version":3,"file":"clickyMetadata.cjs","sources":["../../src/rpc/clickyMetadata.ts"],"sourcesContent":["import type {\n ClickyOperationMeta,\n ClickySpecMeta,\n ClickySurface,\n DomainDefinition,\n OpenAPISpec,\n ResolvedOperation,\n} from \"./types\";\n\nexport function getClickySpecMeta(spec: OpenAPISpec | undefined): ClickySpecMeta | undefined {\n return spec?.[\"x-clicky\"];\n}\n\nexport function getClickySurfaces(spec: OpenAPISpec | undefined): ClickySurface[] {\n return getClickySpecMeta(spec)?.surfaces ?? [];\n}\n\nexport function getOperationClickyMeta(\n operation: Pick<ResolvedOperation, \"operation\">,\n): ClickyOperationMeta | undefined {\n return operation.operation[\"x-clicky\"];\n}\n\nexport function filterOperationsBySurface(\n operations: ResolvedOperation[],\n surfaceKey: string | undefined,\n): ResolvedOperation[] {\n if (!surfaceKey) return [];\n return operations.filter(\n (operation) => getOperationClickyMeta(operation)?.surface === surfaceKey,\n );\n}\n\nexport function findSurfaceOperation(\n operations: ResolvedOperation[],\n surfaceKey: string | undefined,\n predicate: (meta: ClickyOperationMeta) => boolean,\n): ResolvedOperation | undefined {\n return filterOperationsBySurface(operations, surfaceKey).find((operation) => {\n const meta = getOperationClickyMeta(operation);\n return meta != null && predicate(meta);\n });\n}\n\nexport function findSurfaceListOperation(\n operations: ResolvedOperation[],\n surfaceKey: string | undefined,\n): ResolvedOperation | undefined {\n return findSurfaceOperation(\n operations,\n surfaceKey,\n (meta) => meta.verb === \"list\" && meta.scope === \"collection\",\n );\n}\n\nexport function findSurfaceDetailOperation(\n operations: ResolvedOperation[],\n surfaceKey: string | undefined,\n): ResolvedOperation | undefined {\n return findSurfaceOperation(\n operations,\n surfaceKey,\n (meta) => meta.verb === \"get\" && meta.scope === \"entity\",\n );\n}\n\nexport function findSurfaceCollectionActions(\n operations: ResolvedOperation[],\n surfaceKey: string | undefined,\n): ResolvedOperation[] {\n return filterOperationsBySurface(operations, surfaceKey).filter((operation) => {\n const meta = getOperationClickyMeta(operation);\n return meta != null && meta.scope === \"collection\" && meta.verb !== \"list\";\n });\n}\n\n// findSurfaceActions returns every runnable action on a surface — both\n// collection-scoped (e.g. create) and entity-scoped (e.g. update/delete, and\n// custom Actions which clicky always annotates scope:\"entity\"). The action bar\n// surfaces these as buttons that open the execution dialog (the dialog collects\n// any id the entity-scoped action needs). Only the list and the entity get are\n// excluded — they drive the table and the row click-through respectively.\nexport function findSurfaceActions(\n operations: ResolvedOperation[],\n surfaceKey: string | undefined,\n): ResolvedOperation[] {\n return filterOperationsBySurface(operations, surfaceKey).filter((operation) => {\n const meta = getOperationClickyMeta(operation);\n return meta != null && meta.verb !== \"list\" && meta.verb !== \"get\";\n });\n}\n\n// surfaceActionLabel prefers the short clicky actionName/verb (capitalized)\n// over the OpenAPI summary, which is often a full sentence. Falls back to the\n// operationId/path so a button always has a label.\nexport function surfaceActionLabel(operation: ResolvedOperation): string {\n const meta = getOperationClickyMeta(operation);\n const short = meta?.actionName?.trim() || meta?.verb?.trim();\n if (short && short !== \"action\") {\n return short.charAt(0).toUpperCase() + short.slice(1);\n }\n return operation.operation.operationId || operation.path;\n}\n\nexport function findSurfaceEntityActions(\n operations: ResolvedOperation[],\n surfaceKey: string | undefined,\n): ResolvedOperation[] {\n return filterOperationsBySurface(operations, surfaceKey).filter((operation) => {\n const meta = getOperationClickyMeta(operation);\n return meta != null && meta.scope === \"entity\" && meta.verb !== \"get\";\n });\n}\n\nexport function makeSurfaceDefinition(surface: ClickySurface): DomainDefinition {\n return {\n key: surface.key,\n title: surface.title,\n description: surface.description || `Manage ${surface.title.toLowerCase()} resources.`,\n };\n}\n"],"names":[],"mappings":";;AASO,SAAS,kBAAkB,MAA2D;AAC3F,SAAO,6BAAO;AAChB;AAEO,SAAS,kBAAkB,MAAgD;;AAChF,WAAO,uBAAkB,IAAI,MAAtB,mBAAyB,aAAY,CAAA;AAC9C;AAEO,SAAS,uBACd,WACiC;AACjC,SAAO,UAAU,UAAU,UAAU;AACvC;AAEO,SAAS,0BACd,YACA,YACqB;AACrB,MAAI,CAAC,WAAY,QAAO,CAAA;AACxB,SAAO,WAAW;AA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EO,SAAS,sBAAsB,SAA0C;AAC9E,SAAO;AAAA,IACL,KAAK,QAAQ;AAAA,IACb,OAAO,QAAQ;AAAA,IACf,aAAa,QAAQ,eAAe,UAAU,QAAQ,MAAM,aAAa;AAAA,EAAA;AAE7E;;;;;;;;;;;;"}
|
|
@@ -7,6 +7,8 @@ export declare function findSurfaceOperation(operations: ResolvedOperation[], su
|
|
|
7
7
|
export declare function findSurfaceListOperation(operations: ResolvedOperation[], surfaceKey: string | undefined): ResolvedOperation | undefined;
|
|
8
8
|
export declare function findSurfaceDetailOperation(operations: ResolvedOperation[], surfaceKey: string | undefined): ResolvedOperation | undefined;
|
|
9
9
|
export declare function findSurfaceCollectionActions(operations: ResolvedOperation[], surfaceKey: string | undefined): ResolvedOperation[];
|
|
10
|
+
export declare function findSurfaceActions(operations: ResolvedOperation[], surfaceKey: string | undefined): ResolvedOperation[];
|
|
11
|
+
export declare function surfaceActionLabel(operation: ResolvedOperation): string;
|
|
10
12
|
export declare function findSurfaceEntityActions(operations: ResolvedOperation[], surfaceKey: string | undefined): ResolvedOperation[];
|
|
11
13
|
export declare function makeSurfaceDefinition(surface: ClickySurface): DomainDefinition;
|
|
12
14
|
//# sourceMappingURL=clickyMetadata.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clickyMetadata.d.ts","sourceRoot":"","sources":["../../src/rpc/clickyMetadata.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,WAAW,EACX,iBAAiB,EAClB,MAAM,SAAS,CAAC;AAEjB,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,WAAW,GAAG,SAAS,GAAG,cAAc,GAAG,SAAS,CAE3F;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,WAAW,GAAG,SAAS,GAAG,aAAa,EAAE,CAEhF;AAED,wBAAgB,sBAAsB,CACpC,SAAS,EAAE,IAAI,CAAC,iBAAiB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B,CAM9E"}
|
|
@@ -37,12 +37,21 @@ function findSurfaceDetailOperation(operations, surfaceKey) {
|
|
|
37
37
|
(meta) => meta.verb === "get" && meta.scope === "entity"
|
|
38
38
|
);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function findSurfaceActions(operations, surfaceKey) {
|
|
41
41
|
return filterOperationsBySurface(operations, surfaceKey).filter((operation) => {
|
|
42
42
|
const meta = getOperationClickyMeta(operation);
|
|
43
|
-
return meta != null && meta.
|
|
43
|
+
return meta != null && meta.verb !== "list" && meta.verb !== "get";
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
|
+
function surfaceActionLabel(operation) {
|
|
47
|
+
var _a, _b;
|
|
48
|
+
const meta = getOperationClickyMeta(operation);
|
|
49
|
+
const short = ((_a = meta == null ? void 0 : meta.actionName) == null ? void 0 : _a.trim()) || ((_b = meta == null ? void 0 : meta.verb) == null ? void 0 : _b.trim());
|
|
50
|
+
if (short && short !== "action") {
|
|
51
|
+
return short.charAt(0).toUpperCase() + short.slice(1);
|
|
52
|
+
}
|
|
53
|
+
return operation.operation.operationId || operation.path;
|
|
54
|
+
}
|
|
46
55
|
function findSurfaceEntityActions(operations, surfaceKey) {
|
|
47
56
|
return filterOperationsBySurface(operations, surfaceKey).filter((operation) => {
|
|
48
57
|
const meta = getOperationClickyMeta(operation);
|
|
@@ -58,7 +67,7 @@ function makeSurfaceDefinition(surface) {
|
|
|
58
67
|
}
|
|
59
68
|
export {
|
|
60
69
|
filterOperationsBySurface,
|
|
61
|
-
|
|
70
|
+
findSurfaceActions,
|
|
62
71
|
findSurfaceDetailOperation,
|
|
63
72
|
findSurfaceEntityActions,
|
|
64
73
|
findSurfaceListOperation,
|
|
@@ -66,6 +75,7 @@ export {
|
|
|
66
75
|
getClickySpecMeta,
|
|
67
76
|
getClickySurfaces,
|
|
68
77
|
getOperationClickyMeta,
|
|
69
|
-
makeSurfaceDefinition
|
|
78
|
+
makeSurfaceDefinition,
|
|
79
|
+
surfaceActionLabel
|
|
70
80
|
};
|
|
71
81
|
//# sourceMappingURL=clickyMetadata.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clickyMetadata.js","sources":["../../src/rpc/clickyMetadata.ts"],"sourcesContent":["import type {\n ClickyOperationMeta,\n ClickySpecMeta,\n ClickySurface,\n DomainDefinition,\n OpenAPISpec,\n ResolvedOperation,\n} from \"./types\";\n\nexport function getClickySpecMeta(spec: OpenAPISpec | undefined): ClickySpecMeta | undefined {\n return spec?.[\"x-clicky\"];\n}\n\nexport function getClickySurfaces(spec: OpenAPISpec | undefined): ClickySurface[] {\n return getClickySpecMeta(spec)?.surfaces ?? [];\n}\n\nexport function getOperationClickyMeta(\n operation: Pick<ResolvedOperation, \"operation\">,\n): ClickyOperationMeta | undefined {\n return operation.operation[\"x-clicky\"];\n}\n\nexport function filterOperationsBySurface(\n operations: ResolvedOperation[],\n surfaceKey: string | undefined,\n): ResolvedOperation[] {\n if (!surfaceKey) return [];\n return operations.filter(\n (operation) => getOperationClickyMeta(operation)?.surface === surfaceKey,\n );\n}\n\nexport function findSurfaceOperation(\n operations: ResolvedOperation[],\n surfaceKey: string | undefined,\n predicate: (meta: ClickyOperationMeta) => boolean,\n): ResolvedOperation | undefined {\n return filterOperationsBySurface(operations, surfaceKey).find((operation) => {\n const meta = getOperationClickyMeta(operation);\n return meta != null && predicate(meta);\n });\n}\n\nexport function findSurfaceListOperation(\n operations: ResolvedOperation[],\n surfaceKey: string | undefined,\n): ResolvedOperation | undefined {\n return findSurfaceOperation(\n operations,\n surfaceKey,\n (meta) => meta.verb === \"list\" && meta.scope === \"collection\",\n );\n}\n\nexport function findSurfaceDetailOperation(\n operations: ResolvedOperation[],\n surfaceKey: string | undefined,\n): ResolvedOperation | undefined {\n return findSurfaceOperation(\n operations,\n surfaceKey,\n (meta) => meta.verb === \"get\" && meta.scope === \"entity\",\n );\n}\n\nexport function findSurfaceCollectionActions(\n operations: ResolvedOperation[],\n surfaceKey: string | undefined,\n): ResolvedOperation[] {\n return filterOperationsBySurface(operations, surfaceKey).filter((operation) => {\n const meta = getOperationClickyMeta(operation);\n return meta != null && meta.scope === \"collection\" && meta.verb !== \"list\";\n });\n}\n\nexport function findSurfaceEntityActions(\n operations: ResolvedOperation[],\n surfaceKey: string | undefined,\n): ResolvedOperation[] {\n return filterOperationsBySurface(operations, surfaceKey).filter((operation) => {\n const meta = getOperationClickyMeta(operation);\n return meta != null && meta.scope === \"entity\" && meta.verb !== \"get\";\n });\n}\n\nexport function makeSurfaceDefinition(surface: ClickySurface): DomainDefinition {\n return {\n key: surface.key,\n title: surface.title,\n description: surface.description || `Manage ${surface.title.toLowerCase()} resources.`,\n };\n}\n"],"names":[],"mappings":"AASO,SAAS,kBAAkB,MAA2D;AAC3F,SAAO,6BAAO;AAChB;AAEO,SAAS,kBAAkB,MAAgD;AAJ3E;AAKL,WAAO,uBAAkB,IAAI,MAAtB,mBAAyB,aAAY,CAAA;AAC9C;AAEO,SAAS,uBACd,WACiC;AACjC,SAAO,UAAU,UAAU,UAAU;AACvC;AAEO,SAAS,0BACd,YACA,YACqB;AACrB,MAAI,CAAC,WAAY,QAAO,CAAA;AACxB,SAAO,WAAW;AAAA,IAChB,CAAC,cAAA;AApBE;AAoBY,2CAAuB,SAAS,MAAhC,mBAAmC,aAAY;AAAA;AAAA,EAAA;AAElE;AAEO,SAAS,qBACd,YACA,YACA,WAC+B;AAC/B,SAAO,0BAA0B,YAAY,UAAU,EAAE,KAAK,CAAC,cAAc;AAC3E,UAAM,OAAO,uBAAuB,SAAS;AAC7C,WAAO,QAAQ,QAAQ,UAAU,IAAI;AAAA,EACvC,CAAC;AACH;AAEO,SAAS,yBACd,YACA,YAC+B;AAC/B,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA,CAAC,SAAS,KAAK,SAAS,UAAU,KAAK,UAAU;AAAA,EAAA;AAErD;AAEO,SAAS,2BACd,YACA,YAC+B;AAC/B,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA,CAAC,SAAS,KAAK,SAAS,SAAS,KAAK,UAAU;AAAA,EAAA;AAEpD;
|
|
1
|
+
{"version":3,"file":"clickyMetadata.js","sources":["../../src/rpc/clickyMetadata.ts"],"sourcesContent":["import type {\n ClickyOperationMeta,\n ClickySpecMeta,\n ClickySurface,\n DomainDefinition,\n OpenAPISpec,\n ResolvedOperation,\n} from \"./types\";\n\nexport function getClickySpecMeta(spec: OpenAPISpec | undefined): ClickySpecMeta | undefined {\n return spec?.[\"x-clicky\"];\n}\n\nexport function getClickySurfaces(spec: OpenAPISpec | undefined): ClickySurface[] {\n return getClickySpecMeta(spec)?.surfaces ?? [];\n}\n\nexport function getOperationClickyMeta(\n operation: Pick<ResolvedOperation, \"operation\">,\n): ClickyOperationMeta | undefined {\n return operation.operation[\"x-clicky\"];\n}\n\nexport function filterOperationsBySurface(\n operations: ResolvedOperation[],\n surfaceKey: string | undefined,\n): ResolvedOperation[] {\n if (!surfaceKey) return [];\n return operations.filter(\n (operation) => getOperationClickyMeta(operation)?.surface === surfaceKey,\n );\n}\n\nexport function findSurfaceOperation(\n operations: ResolvedOperation[],\n surfaceKey: string | undefined,\n predicate: (meta: ClickyOperationMeta) => boolean,\n): ResolvedOperation | undefined {\n return filterOperationsBySurface(operations, surfaceKey).find((operation) => {\n const meta = getOperationClickyMeta(operation);\n return meta != null && predicate(meta);\n });\n}\n\nexport function findSurfaceListOperation(\n operations: ResolvedOperation[],\n surfaceKey: string | undefined,\n): ResolvedOperation | undefined {\n return findSurfaceOperation(\n operations,\n surfaceKey,\n (meta) => meta.verb === \"list\" && meta.scope === \"collection\",\n );\n}\n\nexport function findSurfaceDetailOperation(\n operations: ResolvedOperation[],\n surfaceKey: string | undefined,\n): ResolvedOperation | undefined {\n return findSurfaceOperation(\n operations,\n surfaceKey,\n (meta) => meta.verb === \"get\" && meta.scope === \"entity\",\n );\n}\n\nexport function findSurfaceCollectionActions(\n operations: ResolvedOperation[],\n surfaceKey: string | undefined,\n): ResolvedOperation[] {\n return filterOperationsBySurface(operations, surfaceKey).filter((operation) => {\n const meta = getOperationClickyMeta(operation);\n return meta != null && meta.scope === \"collection\" && meta.verb !== \"list\";\n });\n}\n\n// findSurfaceActions returns every runnable action on a surface — both\n// collection-scoped (e.g. create) and entity-scoped (e.g. update/delete, and\n// custom Actions which clicky always annotates scope:\"entity\"). The action bar\n// surfaces these as buttons that open the execution dialog (the dialog collects\n// any id the entity-scoped action needs). Only the list and the entity get are\n// excluded — they drive the table and the row click-through respectively.\nexport function findSurfaceActions(\n operations: ResolvedOperation[],\n surfaceKey: string | undefined,\n): ResolvedOperation[] {\n return filterOperationsBySurface(operations, surfaceKey).filter((operation) => {\n const meta = getOperationClickyMeta(operation);\n return meta != null && meta.verb !== \"list\" && meta.verb !== \"get\";\n });\n}\n\n// surfaceActionLabel prefers the short clicky actionName/verb (capitalized)\n// over the OpenAPI summary, which is often a full sentence. Falls back to the\n// operationId/path so a button always has a label.\nexport function surfaceActionLabel(operation: ResolvedOperation): string {\n const meta = getOperationClickyMeta(operation);\n const short = meta?.actionName?.trim() || meta?.verb?.trim();\n if (short && short !== \"action\") {\n return short.charAt(0).toUpperCase() + short.slice(1);\n }\n return operation.operation.operationId || operation.path;\n}\n\nexport function findSurfaceEntityActions(\n operations: ResolvedOperation[],\n surfaceKey: string | undefined,\n): ResolvedOperation[] {\n return filterOperationsBySurface(operations, surfaceKey).filter((operation) => {\n const meta = getOperationClickyMeta(operation);\n return meta != null && meta.scope === \"entity\" && meta.verb !== \"get\";\n });\n}\n\nexport function makeSurfaceDefinition(surface: ClickySurface): DomainDefinition {\n return {\n key: surface.key,\n title: surface.title,\n description: surface.description || `Manage ${surface.title.toLowerCase()} resources.`,\n };\n}\n"],"names":[],"mappings":"AASO,SAAS,kBAAkB,MAA2D;AAC3F,SAAO,6BAAO;AAChB;AAEO,SAAS,kBAAkB,MAAgD;AAJ3E;AAKL,WAAO,uBAAkB,IAAI,MAAtB,mBAAyB,aAAY,CAAA;AA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AO,0BAA0B,YAAY,UAAU,EAAE,OAAO,CAAC,cAAc;AAC7E,UAAM,OAAO,uBAAuB,SAAS;AAC7C,WAAO,QAAQ,QAAQ,KAAK,UAAU,YAAY,KAAK,SAAS;AAAA,EAClE,CAAC;AACH;AAEO,SAAS,sBAAsB,SAA0C;AAC9E,SAAO;AAAA,IACL,KAAK,QAAQ;AAAA,IACb,OAAO,QAAQ;AAAA,IACf,aAAa,QAAQ,eAAe,UAAU,QAAQ,MAAM,aAAa;AAAA,EAAA;AAE7E;"}
|
package/dist/rpc.cjs
CHANGED
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const OperationCatalog = require("./rpc/OperationCatalog.cjs");
|
|
4
4
|
const EntityExplorerApp = require("./rpc/EntityExplorerApp.cjs");
|
|
5
5
|
const AcceptPicker = require("./rpc/AcceptPicker.cjs");
|
|
6
|
+
const acceptOptions = require("./rpc/accept-options.cjs");
|
|
6
7
|
const CommandForm = require("./rpc/CommandForm.cjs");
|
|
7
8
|
const CommandOutput = require("./rpc/CommandOutput.cjs");
|
|
8
9
|
const FilterForm = require("./rpc/FilterForm.cjs");
|
|
@@ -17,9 +18,9 @@ const classify = require("./rpc/classify.cjs");
|
|
|
17
18
|
const types = require("./rpc/types.cjs");
|
|
18
19
|
exports.OperationCatalog = OperationCatalog.OperationCatalog;
|
|
19
20
|
exports.EntityExplorerApp = EntityExplorerApp.EntityExplorerApp;
|
|
20
|
-
exports.ACCEPT_OPTIONS = AcceptPicker.ACCEPT_OPTIONS;
|
|
21
21
|
exports.AcceptPicker = AcceptPicker.AcceptPicker;
|
|
22
|
-
exports.
|
|
22
|
+
exports.ACCEPT_OPTIONS = acceptOptions.ACCEPT_OPTIONS;
|
|
23
|
+
exports.VIEW_OPTIONS = acceptOptions.VIEW_OPTIONS;
|
|
23
24
|
exports.CommandForm = CommandForm.CommandForm;
|
|
24
25
|
exports.CommandOutput = CommandOutput.CommandOutput;
|
|
25
26
|
exports.FilterForm = FilterForm.FilterForm;
|
package/dist/rpc.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rpc.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"rpc.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/rpc.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { OperationCatalog, type OperationCatalogProps } from './rpc/OperationCatalog';
|
|
2
2
|
export { EntityExplorerApp, type EntityExplorerAppProps } from './rpc/EntityExplorerApp';
|
|
3
|
-
export {
|
|
3
|
+
export { AcceptPicker, type AcceptPickerProps } from './rpc/AcceptPicker';
|
|
4
|
+
export { ACCEPT_OPTIONS, VIEW_OPTIONS, type AcceptOption, type AcceptValue, type OperationPreviewMode, } from './rpc/accept-options';
|
|
4
5
|
export { CommandForm, type CommandFormProps } from './rpc/CommandForm';
|
|
5
6
|
export { CommandOutput, type CommandOutputProps } from './rpc/CommandOutput';
|
|
6
7
|
export { FilterForm, type FilterFormProps } from './rpc/FilterForm';
|
package/dist/rpc.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rpc.d.ts","sourceRoot":"","sources":["../src/rpc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,KAAK,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AACtF,OAAO,EAAE,iBAAiB,EAAE,KAAK,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AACzF,OAAO,EACL,cAAc,EACd,YAAY,EACZ,
|
|
1
|
+
{"version":3,"file":"rpc.d.ts","sourceRoot":"","sources":["../src/rpc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,KAAK,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AACtF,OAAO,EAAE,i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AAO,EACL,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,iBAAiB,EACjB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,iBAAiB,GACvB,MAAM,aAAa,CAAC"}
|
package/dist/rpc.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { OperationCatalog } from "./rpc/OperationCatalog.js";
|
|
2
2
|
import { EntityExplorerApp } from "./rpc/EntityExplorerApp.js";
|
|
3
|
-
import {
|
|
3
|
+
import { AcceptPicker } from "./rpc/AcceptPicker.js";
|
|
4
|
+
import { ACCEPT_OPTIONS, VIEW_OPTIONS } from "./rpc/accept-options.js";
|
|
4
5
|
import { CommandForm } from "./rpc/CommandForm.js";
|
|
5
6
|
import { CommandOutput } from "./rpc/CommandOutput.js";
|
|
6
7
|
import { FilterForm } from "./rpc/FilterForm.js";
|
package/dist/rpc.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rpc.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"rpc.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;"}
|