@pstdio/ui 0.26.0 → 0.35.0
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/EquationComponent-DDd5UoIP.js +65 -0
- package/dist/EquationComponent-DDd5UoIP.js.map +1 -0
- package/dist/MermaidComponent-DGDnQ6pb.js +90 -0
- package/dist/MermaidComponent-DGDnQ6pb.js.map +1 -0
- package/dist/browser-storage-C_ipoNwP.js +37 -0
- package/dist/browser-storage-C_ipoNwP.js.map +1 -0
- package/dist/chat-ui.d.ts +688 -2
- package/dist/chat-ui.js +3271 -2848
- package/dist/chat-ui.js.map +1 -1
- package/dist/data-table-stats-row-DNJG8tLZ.js +415 -0
- package/dist/data-table-stats-row-DNJG8tLZ.js.map +1 -0
- package/dist/data-table.d.ts +143 -2
- package/dist/data-table.js +1216 -1188
- package/dist/data-table.js.map +1 -1
- package/dist/diff-bubble-DZsarmSG.js +61 -0
- package/dist/diff-bubble-DZsarmSG.js.map +1 -0
- package/dist/diff-drawer-45rpk3aq.js +776 -0
- package/dist/diff-drawer-45rpk3aq.js.map +1 -0
- package/dist/diff-editor-CGpeyoCE.js +124 -0
- package/dist/diff-editor-CGpeyoCE.js.map +1 -0
- package/dist/diff-size-Dydn_Uw5.js +61 -0
- package/dist/diff-size-Dydn_Uw5.js.map +1 -0
- package/dist/diff-viewer-hGkaF_zW.js +558 -0
- package/dist/diff-viewer-hGkaF_zW.js.map +1 -0
- package/dist/diff.d.ts +128 -2
- package/dist/diff.js +163 -1302
- package/dist/diff.js.map +1 -1
- package/dist/empty-state-3mVV_pV-.js +38 -0
- package/dist/empty-state-3mVV_pV-.js.map +1 -0
- package/dist/file-change-badge-0QFNv82B.js +64 -0
- package/dist/file-change-badge-0QFNv82B.js.map +1 -0
- package/dist/index-BfFLdci8.d.ts +189 -0
- package/dist/index-Dd6e8lU_.d.ts +61 -0
- package/dist/index-DlmvvQ6x.d.ts +143 -0
- package/dist/index.d.ts +1508 -40
- package/dist/index.js +3167 -2707
- package/dist/index.js.map +1 -1
- package/dist/kanban-renderer.d.ts +337 -2
- package/dist/kanban-renderer.js +1413 -1085
- package/dist/kanban-renderer.js.map +1 -1
- package/dist/list-row-De9R2zKU.js +1008 -0
- package/dist/list-row-De9R2zKU.js.map +1 -0
- package/dist/mermaid-renderer-DImi0fDp.js +553 -0
- package/dist/mermaid-renderer-DImi0fDp.js.map +1 -0
- package/dist/mermaid.d.ts +12 -2
- package/dist/mermaid.js +2 -5
- package/dist/monaco-browser-CLRPSE4-.js +14 -0
- package/dist/monaco-browser-CLRPSE4-.js.map +1 -0
- package/dist/param-editor-IJzw1cA2.js +225 -0
- package/dist/param-editor-IJzw1cA2.js.map +1 -0
- package/dist/param-editor-field-DscIjv8s.js +2368 -0
- package/dist/param-editor-field-DscIjv8s.js.map +1 -0
- package/dist/param-editor.d.ts +407 -2
- package/dist/param-editor.js +3 -47
- package/dist/prism-pSHJejZx.js +646 -0
- package/dist/prism-pSHJejZx.js.map +1 -0
- package/dist/radio-CiFrDN6O.js +54 -0
- package/dist/radio-CiFrDN6O.js.map +1 -0
- package/dist/resource-badge-95WPVlZf.d.ts +76 -0
- package/dist/rich-text-DtQpHBlX.js +7018 -0
- package/dist/rich-text-DtQpHBlX.js.map +1 -0
- package/dist/rich-text.d.ts +3 -2
- package/dist/rich-text.js +2 -429
- package/dist/rolldown-runtime-Dy4uBu1J.js +11 -0
- package/dist/scroll-area-Cr1lNXAr.js +100 -0
- package/dist/scroll-area-Cr1lNXAr.js.map +1 -0
- package/dist/slider-hwHYe98I.js +423 -0
- package/dist/slider-hwHYe98I.js.map +1 -0
- package/dist/style.css +2 -1
- package/dist/terminal.d.ts +203 -2
- package/dist/terminal.js +324 -360
- package/dist/terminal.js.map +1 -1
- package/dist/theme-kSkOHzbV.js +2852 -0
- package/dist/theme-kSkOHzbV.js.map +1 -0
- package/dist/theme-preference-pzfuK5cH.js +101 -0
- package/dist/theme-preference-pzfuK5cH.js.map +1 -0
- package/dist/theme.d.ts +3 -2
- package/dist/theme.js +2 -15
- package/dist/tree-list-BUfDQz3v.js +1449 -0
- package/dist/tree-list-BUfDQz3v.js.map +1 -0
- package/dist/types-yjKBk07w.d.ts +161 -0
- package/dist/workspace-badge-9g78pXHS.js +245 -0
- package/dist/workspace-badge-9g78pXHS.js.map +1 -0
- package/dist/workspace-badge-CkJ_jTQw.d.ts +75 -0
- package/dist-monaco/assets/codicon-ngg6Pgfi.ttf +0 -0
- package/dist-monaco/assets/css.worker-DFdt6_zu.js +89 -0
- package/dist-monaco/assets/editor.worker-O-CH8JUO.js +26 -0
- package/dist-monaco/assets/html.worker-JUzsMP-j.js +502 -0
- package/dist-monaco/assets/json.worker-B4dEhy0e.js +58 -0
- package/dist-monaco/assets/ts.worker-CmEKzkmF.js +67734 -0
- package/dist-monaco/monaco.css +1 -0
- package/dist-monaco/monaco.js +1201 -0
- package/package.json +26 -13
- package/dist/EquationComponent-DeDYHvqY.js +0 -62
- package/dist/EquationComponent-DeDYHvqY.js.map +0 -1
- package/dist/MermaidComponent-X__B6qib.js +0 -60
- package/dist/MermaidComponent-X__B6qib.js.map +0 -1
- package/dist/activity-timeline-BynMjXSB.js +0 -283
- package/dist/activity-timeline-BynMjXSB.js.map +0 -1
- package/dist/alert-ubcrW24X.js +0 -33
- package/dist/alert-ubcrW24X.js.map +0 -1
- package/dist/browser-storage-BinyFNJX.js +0 -40
- package/dist/browser-storage-BinyFNJX.js.map +0 -1
- package/dist/components/activity/activity-avatar.d.ts +0 -9
- package/dist/components/activity/activity-comment.d.ts +0 -27
- package/dist/components/activity/activity-composer.d.ts +0 -18
- package/dist/components/activity/activity-event.d.ts +0 -12
- package/dist/components/activity/activity-root.d.ts +0 -15
- package/dist/components/activity/activity-timeline.d.ts +0 -6
- package/dist/components/activity/activity.types.d.ts +0 -5
- package/dist/components/activity/index.d.ts +0 -25
- package/dist/components/chat-ui/components/ai-conversation.d.ts +0 -603
- package/dist/components/chat-ui/components/ai-message.d.ts +0 -91
- package/dist/components/chat-ui/components/ai-response.d.ts +0 -5
- package/dist/components/chat-ui/components/approval-prompt.d.ts +0 -8
- package/dist/components/chat-ui/components/attachment-list.d.ts +0 -23
- package/dist/components/chat-ui/components/auto-scroll.d.ts +0 -37
- package/dist/components/chat-ui/components/chat-history-story.d.ts +0 -14
- package/dist/components/chat-ui/components/chat-input-actions.d.ts +0 -13
- package/dist/components/chat-ui/components/chat-input-attachments.d.ts +0 -12
- package/dist/components/chat-ui/components/chat-input-history.d.ts +0 -6
- package/dist/components/chat-ui/components/chat-input-question-prompt.d.ts +0 -36
- package/dist/components/chat-ui/components/chat-input.d.ts +0 -33
- package/dist/components/chat-ui/components/chat-message-animation.d.ts +0 -22
- package/dist/components/chat-ui/components/chat-message-list-items.d.ts +0 -17
- package/dist/components/chat-ui/components/chat-message-list.d.ts +0 -12
- package/dist/components/chat-ui/components/chat-panel-composer.d.ts +0 -49
- package/dist/components/chat-ui/components/chat-panel-sticky-user-message.d.ts +0 -13
- package/dist/components/chat-ui/components/chat-panel.d.ts +0 -45
- package/dist/components/chat-ui/components/chat-skeleton.d.ts +0 -1
- package/dist/components/chat-ui/components/composer-constants.d.ts +0 -1
- package/dist/components/chat-ui/components/conversation-browse.d.ts +0 -22
- package/dist/components/chat-ui/components/message-action-panel.d.ts +0 -10
- package/dist/components/chat-ui/components/message-parts-renderer.d.ts +0 -13
- package/dist/components/chat-ui/components/message-types.d.ts +0 -116
- package/dist/components/chat-ui/components/model-swap-separator.d.ts +0 -5
- package/dist/components/chat-ui/components/queued-follow-up-list-state.d.ts +0 -4
- package/dist/components/chat-ui/components/queued-follow-up-list.d.ts +0 -11
- package/dist/components/chat-ui/components/send-button.d.ts +0 -7
- package/dist/components/chat-ui/components/timeline-title.d.ts +0 -6
- package/dist/components/chat-ui/components/timeline-tool-blocks.d.ts +0 -14
- package/dist/components/chat-ui/components/timeline.d.ts +0 -113
- package/dist/components/chat-ui/components/tool-invocation-timeline.d.ts +0 -8
- package/dist/components/chat-ui/components/use-chat-input-history.d.ts +0 -16
- package/dist/components/chat-ui/components/working-indicator.d.ts +0 -9
- package/dist/components/chat-ui/components/workspace-hub.d.ts +0 -19
- package/dist/components/chat-ui/index.d.ts +0 -19
- package/dist/components/chat-ui/mocks/library/index.d.ts +0 -10
- package/dist/components/chat-ui/performance/chat-mount-metrics.d.ts +0 -37
- package/dist/components/chat-ui/performance/chat-panel.perf.d.ts +0 -18
- package/dist/components/chat-ui/performance/chat-performance-fixtures.d.ts +0 -28
- package/dist/components/chat-ui/performance/chat-performance-panel.d.ts +0 -23
- package/dist/components/chat-ui/performance/chat-performance-story-utils.d.ts +0 -30
- package/dist/components/chat-ui/tool-rendering/apply-patch-renderer.d.ts +0 -2
- package/dist/components/chat-ui/tool-rendering/build-timeline.d.ts +0 -13
- package/dist/components/chat-ui/tool-rendering/default-renderers.d.ts +0 -13
- package/dist/components/chat-ui/tool-rendering/edit-renderer.d.ts +0 -2
- package/dist/components/chat-ui/tool-rendering/index.d.ts +0 -3
- package/dist/components/chat-ui/tool-rendering/question-prompt.d.ts +0 -9
- package/dist/components/chat-ui/tool-rendering/question-renderer.d.ts +0 -10
- package/dist/components/chat-ui/tool-rendering/shared.d.ts +0 -53
- package/dist/components/chat-ui/tool-rendering/standard-renderers.d.ts +0 -7
- package/dist/components/chat-ui/tool-rendering/todowrite-renderer.d.ts +0 -10
- package/dist/components/chat-ui/tool-rendering/types.d.ts +0 -12
- package/dist/components/chat-ui/utils/diff.d.ts +0 -21
- package/dist/components/chat-ui/utils/editor-state.d.ts +0 -1
- package/dist/components/chat-ui/utils/get-icon.d.ts +0 -36
- package/dist/components/chat-ui/utils/tool-name.d.ts +0 -2
- package/dist/components/command-palette/index.d.ts +0 -4
- package/dist/components/command-palette/palette-filter.d.ts +0 -23
- package/dist/components/command-palette/palette-list.d.ts +0 -11
- package/dist/components/command-palette/palette-shortcut.d.ts +0 -12
- package/dist/components/command-palette/palette.d.ts +0 -48
- package/dist/components/data-table/build-columns.d.ts +0 -16
- package/dist/components/data-table/categorical-color-cell.d.ts +0 -8
- package/dist/components/data-table/color-cell-style.d.ts +0 -13
- package/dist/components/data-table/color-scale-cell.d.ts +0 -7
- package/dist/components/data-table/data-table-column-menu.d.ts +0 -17
- package/dist/components/data-table/data-table-header.d.ts +0 -12
- package/dist/components/data-table/data-table-row-display.d.ts +0 -11
- package/dist/components/data-table/data-table-skeleton.d.ts +0 -13
- package/dist/components/data-table/data-table-stat-chart.d.ts +0 -21
- package/dist/components/data-table/data-table-state.d.ts +0 -27
- package/dist/components/data-table/data-table-stats-row.d.ts +0 -11
- package/dist/components/data-table/data-table-stats.d.ts +0 -19
- package/dist/components/data-table/data-table-table-parts.d.ts +0 -22
- package/dist/components/data-table/data-table.d.ts +0 -2
- package/dist/components/data-table/data-table.story-descriptions.d.ts +0 -6
- package/dist/components/data-table/data-table.story-fixtures.d.ts +0 -6
- package/dist/components/data-table/edit-mode-data-table-body.d.ts +0 -30
- package/dist/components/data-table/edit-mode-data-table-cell.d.ts +0 -16
- package/dist/components/data-table/edit-mode-data-table-editors.d.ts +0 -19
- package/dist/components/data-table/edit-mode-data-table-header.d.ts +0 -24
- package/dist/components/data-table/edit-mode-data-table-selection.d.ts +0 -12
- package/dist/components/data-table/edit-mode-data-table.d.ts +0 -2
- package/dist/components/data-table/edit-mode-story.d.ts +0 -5
- package/dist/components/data-table/friendly-json-display.d.ts +0 -31
- package/dist/components/data-table/helpers.d.ts +0 -10
- package/dist/components/data-table/index.d.ts +0 -7
- package/dist/components/data-table/json-cell.d.ts +0 -6
- package/dist/components/data-table/pagination-footer.d.ts +0 -11
- package/dist/components/data-table/selection-toolbar.d.ts +0 -11
- package/dist/components/data-table/types.d.ts +0 -117
- package/dist/components/diff-viewer/build-changed-files-tree.d.ts +0 -4
- package/dist/components/diff-viewer/code-editor.d.ts +0 -45
- package/dist/components/diff-viewer/diff-bubble.d.ts +0 -14
- package/dist/components/diff-viewer/diff-card-body.d.ts +0 -60
- package/dist/components/diff-viewer/diff-card-content.d.ts +0 -23
- package/dist/components/diff-viewer/diff-card-load-state.d.ts +0 -9
- package/dist/components/diff-viewer/diff-card.d.ts +0 -46
- package/dist/components/diff-viewer/diff-drawer-empty-state.d.ts +0 -1
- package/dist/components/diff-viewer/diff-drawer-height.d.ts +0 -10
- package/dist/components/diff-viewer/diff-drawer-scroll.d.ts +0 -28
- package/dist/components/diff-viewer/diff-drawer.d.ts +0 -29
- package/dist/components/diff-viewer/diff-editor.d.ts +0 -20
- package/dist/components/diff-viewer/diff-size.d.ts +0 -16
- package/dist/components/diff-viewer/diff-view-adapter.d.ts +0 -27
- package/dist/components/diff-viewer/diff-viewer-options-menu.d.ts +0 -16
- package/dist/components/diff-viewer/diff-viewer.d.ts +0 -14
- package/dist/components/diff-viewer/diff-viewer.store.d.ts +0 -21
- package/dist/components/diff-viewer/file-change-badge.d.ts +0 -3
- package/dist/components/diff-viewer/file-list-panel.d.ts +0 -18
- package/dist/components/diff-viewer/index.d.ts +0 -9
- package/dist/components/diff-viewer/monaco-browser.d.ts +0 -1
- package/dist/components/diff-viewer/types.d.ts +0 -13
- package/dist/components/diff-viewer/use-selected-diff-scroll.d.ts +0 -23
- package/dist/components/file-browser/column-file-browser.d.ts +0 -20
- package/dist/components/internal/performance-panel.d.ts +0 -40
- package/dist/components/internal/style-guide.d.ts +0 -14
- package/dist/components/internal/token-editor-controls.d.ts +0 -8
- package/dist/components/internal/token-editor-data.d.ts +0 -40
- package/dist/components/internal/token-editor-state.d.ts +0 -22
- package/dist/components/kanban-renderer/collection-badge.d.ts +0 -7
- package/dist/components/kanban-renderer/display-menu.d.ts +0 -16
- package/dist/components/kanban-renderer/filter-menu.d.ts +0 -12
- package/dist/components/kanban-renderer/index.d.ts +0 -19
- package/dist/components/kanban-renderer/kanban-renderer-attribute-badge.d.ts +0 -7
- package/dist/components/kanban-renderer/kanban-renderer-badge-helpers.d.ts +0 -46
- package/dist/components/kanban-renderer/kanban-renderer-board-column-header.d.ts +0 -8
- package/dist/components/kanban-renderer/kanban-renderer-board-group-section.d.ts +0 -17
- package/dist/components/kanban-renderer/kanban-renderer-board-move.d.ts +0 -21
- package/dist/components/kanban-renderer/kanban-renderer-board.d.ts +0 -49
- package/dist/components/kanban-renderer/kanban-renderer-card.d.ts +0 -17
- package/dist/components/kanban-renderer/kanban-renderer-content.d.ts +0 -27
- package/dist/components/kanban-renderer/kanban-renderer-create-dialog.d.ts +0 -12
- package/dist/components/kanban-renderer/kanban-renderer-create-field.d.ts +0 -10
- package/dist/components/kanban-renderer/kanban-renderer-enum-helpers.d.ts +0 -10
- package/dist/components/kanban-renderer/kanban-renderer-grouping.d.ts +0 -23
- package/dist/components/kanban-renderer/kanban-renderer-helpers.d.ts +0 -58
- package/dist/components/kanban-renderer/kanban-renderer-list-items.d.ts +0 -25
- package/dist/components/kanban-renderer/kanban-renderer-list.d.ts +0 -43
- package/dist/components/kanban-renderer/kanban-renderer-story-fixtures.d.ts +0 -14
- package/dist/components/kanban-renderer/kanban-renderer-toolbar.d.ts +0 -15
- package/dist/components/kanban-renderer/kanban-renderer-view-bar.d.ts +0 -14
- package/dist/components/kanban-renderer/kanban-renderer-views.d.ts +0 -12
- package/dist/components/kanban-renderer/kanban-renderer.d.ts +0 -43
- package/dist/components/kanban-renderer/types.d.ts +0 -159
- package/dist/components/kanban-renderer/use-kanban-renderer-store.d.ts +0 -78
- package/dist/components/kanban-renderer/use-resolved-attributes.d.ts +0 -14
- package/dist/components/layout/header.d.ts +0 -7
- package/dist/components/layout/horizontal-menu-stack.d.ts +0 -6
- package/dist/components/layout/index.d.ts +0 -8
- package/dist/components/layout/item-section.d.ts +0 -11
- package/dist/components/layout/panel-header.constants.d.ts +0 -3
- package/dist/components/layout/resizable-split-layout.d.ts +0 -22
- package/dist/components/layout/resizable-split-layout.geometry.d.ts +0 -56
- package/dist/components/layout/resizable-split-layout.handle.d.ts +0 -25
- package/dist/components/layout/resizable-split-layout.panels.d.ts +0 -29
- package/dist/components/layout/resizable-split-layout.root-size.d.ts +0 -3
- package/dist/components/list-row/list-row-actions.d.ts +0 -11
- package/dist/components/list-row/list-row-chrome.d.ts +0 -11
- package/dist/components/list-row/list-row-content.d.ts +0 -17
- package/dist/components/list-row/list-row-menu.d.ts +0 -12
- package/dist/components/list-row/list-row-root-props.d.ts +0 -34
- package/dist/components/list-row/list-row.d.ts +0 -2
- package/dist/components/list-row/list-row.types.d.ts +0 -109
- package/dist/components/list-row/searchable-action-menu.d.ts +0 -6
- package/dist/components/mermaid-renderer/download-png.d.ts +0 -7
- package/dist/components/mermaid-renderer/index.d.ts +0 -2
- package/dist/components/mermaid-renderer/mermaid-error-state.d.ts +0 -6
- package/dist/components/mermaid-renderer/mermaid-fixtures.d.ts +0 -9
- package/dist/components/mermaid-renderer/mermaid-fullscreen.d.ts +0 -10
- package/dist/components/mermaid-renderer/mermaid-renderer.d.ts +0 -8
- package/dist/components/mermaid-renderer/mermaid-svg-view.d.ts +0 -12
- package/dist/components/mermaid-renderer/mermaid-toolbar.d.ts +0 -12
- package/dist/components/mermaid-renderer/mermaid-zoom.d.ts +0 -6
- package/dist/components/mermaid-renderer/svg-data-url.d.ts +0 -6
- package/dist/components/mermaid-renderer/use-mermaid-render.d.ts +0 -5
- package/dist/components/notification-center/index.d.ts +0 -2
- package/dist/components/notification-center/notification-center.d.ts +0 -2
- package/dist/components/notification-center/notification-center.types.d.ts +0 -37
- package/dist/components/overlays/attached-menu.d.ts +0 -6
- package/dist/components/overlays/attached-panel.d.ts +0 -9
- package/dist/components/overlays/attachment-chip.d.ts +0 -13
- package/dist/components/overlays/bubble-button.d.ts +0 -10
- package/dist/components/overlays/bubble-panel.d.ts +0 -18
- package/dist/components/overlays/delete-confirmation-modal.d.ts +0 -13
- package/dist/components/overlays/dialog-accept-shortcut.d.ts +0 -12
- package/dist/components/overlays/index.d.ts +0 -17
- package/dist/components/overlays/repo-picker-dialog.d.ts +0 -25
- package/dist/components/overlays/resource-context-menu.d.ts +0 -35
- package/dist/components/overlays/search-modal-content.d.ts +0 -20
- package/dist/components/overlays/searchable-menu-input.d.ts +0 -9
- package/dist/components/overlays/searchable-menu.d.ts +0 -65
- package/dist/components/param-editor/index.d.ts +0 -31
- package/dist/components/param-editor/inputs/action-input.d.ts +0 -14
- package/dist/components/param-editor/inputs/anchor-grid-input.d.ts +0 -12
- package/dist/components/param-editor/inputs/anchor-grid.d.ts +0 -4
- package/dist/components/param-editor/inputs/boolean-input.d.ts +0 -13
- package/dist/components/param-editor/inputs/color-input.d.ts +0 -14
- package/dist/components/param-editor/inputs/date-input.d.ts +0 -16
- package/dist/components/param-editor/inputs/file-upload-input.d.ts +0 -15
- package/dist/components/param-editor/inputs/file-upload-value.d.ts +0 -7
- package/dist/components/param-editor/inputs/horizontal-text-input.d.ts +0 -13
- package/dist/components/param-editor/inputs/markdown-input.d.ts +0 -13
- package/dist/components/param-editor/inputs/number-input.d.ts +0 -18
- package/dist/components/param-editor/inputs/numeric-value.d.ts +0 -6
- package/dist/components/param-editor/inputs/range-input.d.ts +0 -18
- package/dist/components/param-editor/inputs/range-value.d.ts +0 -5
- package/dist/components/param-editor/inputs/resource-input-chips.d.ts +0 -15
- package/dist/components/param-editor/inputs/resource-input.d.ts +0 -20
- package/dist/components/param-editor/inputs/segmented-input.d.ts +0 -15
- package/dist/components/param-editor/inputs/selection-input.d.ts +0 -27
- package/dist/components/param-editor/inputs/selection-menu.d.ts +0 -39
- package/dist/components/param-editor/inputs/slider-marks.d.ts +0 -5
- package/dist/components/param-editor/inputs/text-input.d.ts +0 -14
- package/dist/components/param-editor/inputs/vector-input.d.ts +0 -17
- package/dist/components/param-editor/inputs/vector-value.d.ts +0 -7
- package/dist/components/param-editor/param-editor-advanced-field.d.ts +0 -14
- package/dist/components/param-editor/param-editor-control-fixtures.d.ts +0 -24
- package/dist/components/param-editor/param-editor-control-item.d.ts +0 -15
- package/dist/components/param-editor/param-editor-control-list.d.ts +0 -5
- package/dist/components/param-editor/param-editor-field-label.d.ts +0 -1
- package/dist/components/param-editor/param-editor-field.d.ts +0 -13
- package/dist/components/param-editor/param-editor-horizontal.d.ts +0 -11
- package/dist/components/param-editor/param-editor-inline-group.d.ts +0 -5
- package/dist/components/param-editor/param-editor-label.d.ts +0 -7
- package/dist/components/param-editor/param-editor-presentation.d.ts +0 -3
- package/dist/components/param-editor/param-editor-read-only-field.d.ts +0 -9
- package/dist/components/param-editor/param-editor-read-only-value.d.ts +0 -8
- package/dist/components/param-editor/param-editor-row.d.ts +0 -17
- package/dist/components/param-editor/param-editor-section.d.ts +0 -17
- package/dist/components/param-editor/param-editor.d.ts +0 -12
- package/dist/components/param-editor/param-editor.types.d.ts +0 -31
- package/dist/components/param-editor/resolve-param-value.d.ts +0 -2
- package/dist/components/primitives/alert.d.ts +0 -9
- package/dist/components/primitives/breadcrumb.d.ts +0 -20
- package/dist/components/primitives/checkbox.d.ts +0 -8
- package/dist/components/primitives/chip.d.ts +0 -4
- package/dist/components/primitives/content-placeholder.d.ts +0 -6
- package/dist/components/primitives/empty-state.d.ts +0 -12
- package/dist/components/primitives/error-boundary.d.ts +0 -26
- package/dist/components/primitives/glyph-icon.d.ts +0 -16
- package/dist/components/primitives/icon-color-picker.d.ts +0 -15
- package/dist/components/primitives/icon-options.d.ts +0 -301
- package/dist/components/primitives/index.d.ts +0 -39
- package/dist/components/primitives/info-card.d.ts +0 -12
- package/dist/components/primitives/integration-card.d.ts +0 -12
- package/dist/components/primitives/number-input.d.ts +0 -6
- package/dist/components/primitives/radio.d.ts +0 -8
- package/dist/components/primitives/resource-badge.d.ts +0 -64
- package/dist/components/primitives/scroll-area.d.ts +0 -17
- package/dist/components/primitives/segmented-control.d.ts +0 -20
- package/dist/components/primitives/session-indicator.d.ts +0 -15
- package/dist/components/primitives/simple-card.d.ts +0 -5
- package/dist/components/primitives/slider.d.ts +0 -5
- package/dist/components/primitives/switch.d.ts +0 -15
- package/dist/components/primitives/tag-swatch.d.ts +0 -10
- package/dist/components/primitives/toaster.d.ts +0 -3
- package/dist/components/primitives/tooltip.d.ts +0 -11
- package/dist/components/primitives/workspace-badge.d.ts +0 -23
- package/dist/components/rich-text/collaborative-markdown-editor/awareness-cursors.d.ts +0 -5
- package/dist/components/rich-text/collaborative-markdown-editor/collaborative-markdown-editor.d.ts +0 -9
- package/dist/components/rich-text/index.d.ts +0 -19
- package/dist/components/rich-text/lazy-markdown-editor.d.ts +0 -2
- package/dist/components/rich-text/markdown-editor/markdown-editor-scrolling.play.d.ts +0 -4
- package/dist/components/rich-text/markdown-editor/markdown-editor.d.ts +0 -17
- package/dist/components/rich-text/markdown-editor/markdown-table.story-fixture.d.ts +0 -3
- package/dist/components/rich-text/markdown-editor/plugins/MarkdownSectionNavigationPlugin.d.ts +0 -8
- package/dist/components/rich-text/markdown-editor/plugins/MarkdownSlashCommandPlugin.d.ts +0 -1
- package/dist/components/rich-text/markdown-editor/plugins/ReferenceLinkPlugin/ReferenceLinkNode.d.ts +0 -21
- package/dist/components/rich-text/markdown-editor/plugins/ReferenceLinkPlugin/ReferenceLinkTransformer.d.ts +0 -2
- package/dist/components/rich-text/markdown-editor/plugins/ReferenceLinkPlugin/index.d.ts +0 -2
- package/dist/components/rich-text/markdown-editor/plugins/markdown-history-plugin.d.ts +0 -1
- package/dist/components/rich-text/markdown-editor/plugins/markdown-section-navigation.d.ts +0 -20
- package/dist/components/rich-text/prompt-input/commands.d.ts +0 -2
- package/dist/components/rich-text/prompt-input/events.d.ts +0 -2
- package/dist/components/rich-text/prompt-input/plugins/CommentPlugin/CommentPlugin.d.ts +0 -1
- package/dist/components/rich-text/prompt-input/plugins/CommentPlugin/hooks/useCommentCommands.d.ts +0 -3
- package/dist/components/rich-text/prompt-input/plugins/CommentPlugin/hooks/useCommentSchema.d.ts +0 -1
- package/dist/components/rich-text/prompt-input/plugins/CommentPlugin/nodes/CommentNode/CommentNode.d.ts +0 -16
- package/dist/components/rich-text/prompt-input/plugins/ImperativeAPIPlugin.d.ts +0 -7
- package/dist/components/rich-text/prompt-input/plugins/KeyboardShortcutPlugin.d.ts +0 -6
- package/dist/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/ReferenceMenuOption.d.ts +0 -12
- package/dist/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/ReferenceMenuPlugin.d.ts +0 -11
- package/dist/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/components/ReferenceMenu/ReferenceMenu.d.ts +0 -9
- package/dist/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/components/ReferenceMenu/ReferenceMenuItem.d.ts +0 -12
- package/dist/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/constants.d.ts +0 -2
- package/dist/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/hooks/useContextLookup.d.ts +0 -14
- package/dist/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/utils/checkForTriggers.d.ts +0 -9
- package/dist/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/utils/getSortedMenuOptions.d.ts +0 -2
- package/dist/components/rich-text/prompt-input/plugins/ReferencePlugin/ReferencePlugin.d.ts +0 -7
- package/dist/components/rich-text/prompt-input/plugins/ReferencePlugin/nodes/ReferenceNode/ReferenceNode.d.ts +0 -25
- package/dist/components/rich-text/prompt-input/plugins/keyboard-shortcuts.d.ts +0 -11
- package/dist/components/rich-text/prompt-input/prompt-input.d.ts +0 -27
- package/dist/components/rich-text/prompt-input/theme/prompt-input-theme.d.ts +0 -3
- package/dist/components/rich-text/prompt-input/utils.d.ts +0 -22
- package/dist/components/rich-text/resource-activity-feed/resource-activity-feed.d.ts +0 -58
- package/dist/components/rich-text/rich-message/plugins/ReferenceLinkPlugin/ReferenceLinkNode.d.ts +0 -21
- package/dist/components/rich-text/rich-message/plugins/ReferenceLinkPlugin/ReferenceLinkTransformer.d.ts +0 -2
- package/dist/components/rich-text/rich-message/plugins/ReferenceLinkPlugin/index.d.ts +0 -2
- package/dist/components/rich-text/rich-message/rich-message.d.ts +0 -10
- package/dist/components/rich-text/shared/components/content-editable.d.ts +0 -9
- package/dist/components/rich-text/shared/components/default-rich-text-components.d.ts +0 -3
- package/dist/components/rich-text/shared/editor-config.d.ts +0 -5
- package/dist/components/rich-text/shared/lexical-code.d.ts +0 -2
- package/dist/components/rich-text/shared/markdown-ast.d.ts +0 -7
- package/dist/components/rich-text/shared/markdown-codec.d.ts +0 -3
- package/dist/components/rich-text/shared/markdown-export.d.ts +0 -2
- package/dist/components/rich-text/shared/markdown-import.d.ts +0 -2
- package/dist/components/rich-text/shared/markdown-inline.d.ts +0 -5
- package/dist/components/rich-text/shared/markdown-source-document.d.ts +0 -7
- package/dist/components/rich-text/shared/markdown-source-links.d.ts +0 -11
- package/dist/components/rich-text/shared/markdown-source-map.d.ts +0 -10
- package/dist/components/rich-text/shared/markdown-table.d.ts +0 -41
- package/dist/components/rich-text/shared/markdown-url-context.d.ts +0 -9
- package/dist/components/rich-text/shared/markdown-url.d.ts +0 -3
- package/dist/components/rich-text/shared/nodes/DataTableNode.d.ts +0 -24
- package/dist/components/rich-text/shared/nodes/MarkdownImageNode.d.ts +0 -35
- package/dist/components/rich-text/shared/nodes/MarkdownLinkNode.d.ts +0 -18
- package/dist/components/rich-text/shared/nodes/RawHtmlNode.d.ts +0 -31
- package/dist/components/rich-text/shared/plugins/CodePlugin/CodeBlockActionsPlugin.d.ts +0 -4
- package/dist/components/rich-text/shared/plugins/CodePlugin/CodeBlockPlugin.d.ts +0 -3
- package/dist/components/rich-text/shared/plugins/CodePlugin/CodeHighlightingPlugin.d.ts +0 -1
- package/dist/components/rich-text/shared/plugins/EquationPlugin/EquationComponent.d.ts +0 -6
- package/dist/components/rich-text/shared/plugins/EquationPlugin/EquationNode.d.ts +0 -26
- package/dist/components/rich-text/shared/plugins/EquationPlugin/EquationPlugin.d.ts +0 -4
- package/dist/components/rich-text/shared/plugins/EquationPlugin/KatexRenderer.d.ts +0 -4
- package/dist/components/rich-text/shared/plugins/FloatingTextFormatToolbarPlugin/FloatingTextFormatToolbarPlugin.d.ts +0 -4
- package/dist/components/rich-text/shared/plugins/FloatingTextFormatToolbarPlugin/floating-toolbar-buttons.d.ts +0 -18
- package/dist/components/rich-text/shared/plugins/FloatingTextFormatToolbarPlugin/index.d.ts +0 -1
- package/dist/components/rich-text/shared/plugins/FloatingTextFormatToolbarPlugin/resolve-block-type.d.ts +0 -17
- package/dist/components/rich-text/shared/plugins/FloatingTextFormatToolbarPlugin/should-show-floating-toolbar.d.ts +0 -12
- package/dist/components/rich-text/shared/plugins/HorizontalRulePlugin/HorizontalRuleNode.d.ts +0 -13
- package/dist/components/rich-text/shared/plugins/HorizontalRulePlugin/horizontalRule.d.ts +0 -2
- package/dist/components/rich-text/shared/plugins/LinkEditorPlugin/LinkEditorPlugin.d.ts +0 -4
- package/dist/components/rich-text/shared/plugins/LinkEditorPlugin/LinkPlugin.d.ts +0 -1
- package/dist/components/rich-text/shared/plugins/LinkEditorPlugin/commands.d.ts +0 -2
- package/dist/components/rich-text/shared/plugins/LinkEditorPlugin/index.d.ts +0 -3
- package/dist/components/rich-text/shared/plugins/LinkEditorPlugin/link-editor-content.d.ts +0 -18
- package/dist/components/rich-text/shared/plugins/LinkEditorPlugin/utils/getSelectedNode.d.ts +0 -2
- package/dist/components/rich-text/shared/plugins/LinkEditorPlugin/utils/link-edit-state.d.ts +0 -1
- package/dist/components/rich-text/shared/plugins/LinkEditorPlugin/utils/selection-link-url.d.ts +0 -2
- package/dist/components/rich-text/shared/plugins/LinkEditorPlugin/utils/setFloatingElemPos.d.ts +0 -1
- package/dist/components/rich-text/shared/plugins/LinkEditorPlugin/utils/url.d.ts +0 -2
- package/dist/components/rich-text/shared/plugins/MermaidPlugin/MermaidComponent.d.ts +0 -6
- package/dist/components/rich-text/shared/plugins/MermaidPlugin/MermaidNode.d.ts +0 -23
- package/dist/components/rich-text/shared/plugins/StateUpdatePlugin.d.ts +0 -6
- package/dist/components/rich-text/shared/plugins/ToggleEditablePlugin.d.ts +0 -3
- package/dist/components/rich-text/shared/plugins/TreeViewPlugin/TreeViewPlugin.d.ts +0 -1
- package/dist/components/rich-text/shared/prism-global.d.ts +0 -2
- package/dist/components/rich-text/shared/transformers/markdown-transformers-test-utils.d.ts +0 -3
- package/dist/components/rich-text/shared/transformers/markdown-transformers.d.ts +0 -16
- package/dist/components/rich-text/shared/types/rich-text-components.d.ts +0 -15
- package/dist/components/rich-text/theme/rich-text-theme.d.ts +0 -3
- package/dist/components/rich-text/types.d.ts +0 -8
- package/dist/components/rich-text/utils/inferResourceType.d.ts +0 -1
- package/dist/components/rich-text/utils/markdown.d.ts +0 -5
- package/dist/components/rich-text/utils/mediaType.d.ts +0 -1
- package/dist/components/sidenav/sidenav-footer.d.ts +0 -6
- package/dist/components/sidenav/sidenav-header.d.ts +0 -6
- package/dist/components/sidenav/sidenav.d.ts +0 -2
- package/dist/components/sidenav/sidenav.store.d.ts +0 -49
- package/dist/components/sidenav/sidenav.types.d.ts +0 -31
- package/dist/components/tab-strip/tab-visibility-filter.d.ts +0 -22
- package/dist/components/tab-strip/tab-visibility.store.d.ts +0 -41
- package/dist/components/tab-strip/window-tabs.d.ts +0 -15
- package/dist/components/tab-strip/window-title-bar.d.ts +0 -6
- package/dist/components/tag-editor/index.d.ts +0 -8
- package/dist/components/tag-editor/tag-editor-heading.d.ts +0 -11
- package/dist/components/tag-editor/tag-editor-row.d.ts +0 -20
- package/dist/components/tag-editor/tag-editor-save-bar.d.ts +0 -13
- package/dist/components/tag-editor/tag-editor.d.ts +0 -2
- package/dist/components/tag-editor/tag-editor.types.d.ts +0 -57
- package/dist/components/tag-editor/tag-settings-panel.d.ts +0 -30
- package/dist/components/terminal/bind-session.d.ts +0 -33
- package/dist/components/terminal/index.d.ts +0 -6
- package/dist/components/terminal/scripted-bridge.d.ts +0 -35
- package/dist/components/terminal/terminal-contract.d.ts +0 -22
- package/dist/components/terminal/terminal-theme.d.ts +0 -12
- package/dist/components/terminal/terminal.d.ts +0 -56
- package/dist/components/terminal/types.d.ts +0 -35
- package/dist/components/terminal/use-terminal-session.d.ts +0 -21
- package/dist/components/tree-list/tree-list-background.d.ts +0 -8
- package/dist/components/tree-list/tree-list-drag-provider.d.ts +0 -13
- package/dist/components/tree-list/tree-list-drag.d.ts +0 -7
- package/dist/components/tree-list/tree-list-inline-creation-story.d.ts +0 -3
- package/dist/components/tree-list/tree-list-inline-input.d.ts +0 -9
- package/dist/components/tree-list/tree-list-model.d.ts +0 -58
- package/dist/components/tree-list/tree-list-move-surface.d.ts +0 -7
- package/dist/components/tree-list/tree-list-node-row.d.ts +0 -21
- package/dist/components/tree-list/tree-list-order-filter.d.ts +0 -2
- package/dist/components/tree-list/tree-list-order.store.d.ts +0 -45
- package/dist/components/tree-list/tree-list-reorder.d.ts +0 -24
- package/dist/components/tree-list/tree-list-section-header.d.ts +0 -14
- package/dist/components/tree-list/tree-list-sortable.d.ts +0 -24
- package/dist/components/tree-list/tree-list-visibility-filter.d.ts +0 -24
- package/dist/components/tree-list/tree-list-visibility.store.d.ts +0 -45
- package/dist/components/tree-list/tree-list.d.ts +0 -41
- package/dist/components/tree-list/tree-list.types.d.ts +0 -63
- package/dist/components/tree-list/use-tree-list-keyboard-navigation.d.ts +0 -15
- package/dist/diff-bubble-DvUPRnfB.js +0 -183
- package/dist/diff-bubble-DvUPRnfB.js.map +0 -1
- package/dist/edit-mode-data-table-Nfmfi7bz.js +0 -847
- package/dist/edit-mode-data-table-Nfmfi7bz.js.map +0 -1
- package/dist/empty-state-Bo4HVrgr.js +0 -34
- package/dist/empty-state-Bo4HVrgr.js.map +0 -1
- package/dist/foundations/gallery/gallery-frame.d.ts +0 -21
- package/dist/foundations/gallery/sections/badges-section.d.ts +0 -1
- package/dist/foundations/gallery/sections/buttons-section.d.ts +0 -1
- package/dist/foundations/gallery/sections/composite-chat-section.d.ts +0 -1
- package/dist/foundations/gallery/sections/composites-section.d.ts +0 -1
- package/dist/foundations/gallery/sections/feedback-section.d.ts +0 -1
- package/dist/foundations/gallery/sections/input-authoring-card.d.ts +0 -1
- package/dist/foundations/gallery/sections/inputs-section.d.ts +0 -1
- package/dist/foundations/gallery/sections/layout-section.d.ts +0 -1
- package/dist/foundations/gallery/sections/navigation-identity-section.d.ts +0 -1
- package/dist/foundations/gallery/sections/overlays-section.d.ts +0 -1
- package/dist/foundations/gallery/sections/panels-section.d.ts +0 -1
- package/dist/foundations/gallery/sections/param-editor-composite-card.d.ts +0 -1
- package/dist/foundations/gallery/sections/settings-composite-cards.d.ts +0 -1
- package/dist/kanban-renderer-toolbar-Buek4icz.js +0 -1375
- package/dist/kanban-renderer-toolbar-Buek4icz.js.map +0 -1
- package/dist/lazy-markdown-editor-PzIBc9-l.js +0 -42
- package/dist/lazy-markdown-editor-PzIBc9-l.js.map +0 -1
- package/dist/list-row-DHzRa9-O.js +0 -815
- package/dist/list-row-DHzRa9-O.js.map +0 -1
- package/dist/markdown-BCfPxNpb.js +0 -1663
- package/dist/markdown-BCfPxNpb.js.map +0 -1
- package/dist/markdown-editor-CsJ4KNGu.js +0 -1034
- package/dist/markdown-editor-CsJ4KNGu.js.map +0 -1
- package/dist/mermaid-renderer-D0YP0FmJ.js +0 -425
- package/dist/mermaid-renderer-D0YP0FmJ.js.map +0 -1
- package/dist/mermaid.js.map +0 -1
- package/dist/monaco-browser-l82HnffN.js +0 -22
- package/dist/monaco-browser-l82HnffN.js.map +0 -1
- package/dist/param-editor-CFM2Nf3l.js +0 -161
- package/dist/param-editor-CFM2Nf3l.js.map +0 -1
- package/dist/param-editor-field-Bj-AGUY6.js +0 -1728
- package/dist/param-editor-field-Bj-AGUY6.js.map +0 -1
- package/dist/param-editor.js.map +0 -1
- package/dist/prism-n5gcERyD.js +0 -202
- package/dist/prism-n5gcERyD.js.map +0 -1
- package/dist/radio-BfjibByI.js +0 -51
- package/dist/radio-BfjibByI.js.map +0 -1
- package/dist/rich-message-q6Y6QJOq.js +0 -633
- package/dist/rich-message-q6Y6QJOq.js.map +0 -1
- package/dist/rich-text.js.map +0 -1
- package/dist/scroll-area-BMbg1WcD.js +0 -91
- package/dist/scroll-area-BMbg1WcD.js.map +0 -1
- package/dist/slider-DBHjdxsU.js +0 -1092
- package/dist/slider-DBHjdxsU.js.map +0 -1
- package/dist/test-utils/local-storage.d.ts +0 -1
- package/dist/theme/custom/index.d.ts +0 -2
- package/dist/theme/custom/vscode-theme.d.ts +0 -32
- package/dist/theme/global.d.ts +0 -62
- package/dist/theme/index.d.ts +0 -3
- package/dist/theme/primitives/colors.d.ts +0 -1081
- package/dist/theme/primitives/fonts.d.ts +0 -84
- package/dist/theme/primitives/sizes.d.ts +0 -207
- package/dist/theme/recipes/activity-comment.d.ts +0 -36
- package/dist/theme/recipes/alert.d.ts +0 -1
- package/dist/theme/recipes/badge.d.ts +0 -58
- package/dist/theme/recipes/button.d.ts +0 -188
- package/dist/theme/recipes/color-picker.d.ts +0 -18
- package/dist/theme/recipes/dialog.d.ts +0 -1
- package/dist/theme/recipes/divider.d.ts +0 -1
- package/dist/theme/recipes/drawer.d.ts +0 -1
- package/dist/theme/recipes/editable.d.ts +0 -46
- package/dist/theme/recipes/form.d.ts +0 -1
- package/dist/theme/recipes/input.d.ts +0 -94
- package/dist/theme/recipes/kbd.d.ts +0 -41
- package/dist/theme/recipes/menu.d.ts +0 -1
- package/dist/theme/recipes/number-input.d.ts +0 -98
- package/dist/theme/recipes/popover.d.ts +0 -16
- package/dist/theme/recipes/progress-circle.d.ts +0 -28
- package/dist/theme/recipes/resizable-split-layout.d.ts +0 -106
- package/dist/theme/recipes/segmented-control.d.ts +0 -22
- package/dist/theme/recipes/skeleton.d.ts +0 -1
- package/dist/theme/recipes/switch.d.ts +0 -18
- package/dist/theme/recipes/tabs.d.ts +0 -80
- package/dist/theme/recipes/textarea.d.ts +0 -62
- package/dist/theme/recipes/timeline.d.ts +0 -83
- package/dist/theme/recipes/tooltip.d.ts +0 -1
- package/dist/theme/recipes/window-title-bar.d.ts +0 -19
- package/dist/theme/shadowless-default-config.d.ts +0 -2
- package/dist/theme/theme.d.ts +0 -2
- package/dist/theme/tokens/borders.d.ts +0 -17
- package/dist/theme/tokens/colors-background.d.ts +0 -260
- package/dist/theme/tokens/colors-visualization.d.ts +0 -162
- package/dist/theme/tokens/colors.d.ts +0 -878
- package/dist/theme/tokens/layer-styles.d.ts +0 -1
- package/dist/theme/tokens/text.d.ts +0 -1
- package/dist/theme-AzJH4Om3.js +0 -3999
- package/dist/theme-AzJH4Om3.js.map +0 -1
- package/dist/theme-preference-DxGW1qg-.js +0 -114
- package/dist/theme-preference-DxGW1qg-.js.map +0 -1
- package/dist/theme.js.map +0 -1
- package/dist/tree-list-CPjbGTvs.js +0 -1348
- package/dist/tree-list-CPjbGTvs.js.map +0 -1
- package/dist/utils/apply-file-icon-theme-preference.d.ts +0 -35
- package/dist/utils/apply-theme-preference.d.ts +0 -22
- package/dist/utils/browser-storage.d.ts +0 -7
- package/dist/utils/file-icon-theme-preference.d.ts +0 -15
- package/dist/utils/get-file-type-icon.d.ts +0 -2
- package/dist/utils/prism.d.ts +0 -1
- package/dist/utils/resolve-file-icon-element.d.ts +0 -8
- package/dist/utils/theme-preference.d.ts +0 -20
- package/dist/workspace-badge-CuOcmnZc.js +0 -175
- package/dist/workspace-badge-CuOcmnZc.js.map +0 -1
|
@@ -0,0 +1,776 @@
|
|
|
1
|
+
import { n as e, t } from "./scroll-area-Cr1lNXAr.js";
|
|
2
|
+
import { t as n } from "./empty-state-3mVV_pV-.js";
|
|
3
|
+
import { t as r } from "./diff-bubble-DZsarmSG.js";
|
|
4
|
+
import { a as i, i as a, n as o, o as s, r as c } from "./diff-size-Dydn_Uw5.js";
|
|
5
|
+
import { r as l, t as u } from "./diff-editor-CGpeyoCE.js";
|
|
6
|
+
import { Box as d, Button as f, Grid as p, IconButton as m, Image as h, Skeleton as g, Stack as _, Text as v } from "@chakra-ui/react";
|
|
7
|
+
import { c as y } from "react/compiler-runtime";
|
|
8
|
+
import { jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
9
|
+
import { useEffect as S, useLayoutEffect as C, useRef as w, useState as T } from "react";
|
|
10
|
+
import { Check as E, ChevronDown as D, ChevronRight as O, Copy as k } from "lucide-react";
|
|
11
|
+
import { defaultRangeExtractor as A, useVirtualizer as j } from "@tanstack/react-virtual";
|
|
12
|
+
//#region src/components/diff-viewer/diff-card-body.tsx
|
|
13
|
+
var M = (e) => {
|
|
14
|
+
let { diff: t, filePath: n, oldContent: r, newContent: a, isLargeDiff: s, hasOptedIntoLargeDiff: u, onShowFullDiff: d, diffViewMode: f = "unified", buildViewData: p } = e;
|
|
15
|
+
if (c(n)) {
|
|
16
|
+
let e = N(r), t = N(a);
|
|
17
|
+
return i(n) && (e || t) ? {
|
|
18
|
+
kind: "image",
|
|
19
|
+
filePath: n,
|
|
20
|
+
oldSrc: e,
|
|
21
|
+
newSrc: t
|
|
22
|
+
} : {
|
|
23
|
+
kind: "binary",
|
|
24
|
+
filePath: n,
|
|
25
|
+
isImage: i(n)
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
return s && !u ? {
|
|
29
|
+
kind: "placeholder",
|
|
30
|
+
filePath: n,
|
|
31
|
+
renderedLineCount: o(t),
|
|
32
|
+
onShowFullDiff: d
|
|
33
|
+
} : {
|
|
34
|
+
kind: "editor",
|
|
35
|
+
diffViewData: (p ?? l)({
|
|
36
|
+
original: r,
|
|
37
|
+
modified: a,
|
|
38
|
+
oldPath: t.oldPath,
|
|
39
|
+
newPath: t.newPath
|
|
40
|
+
}),
|
|
41
|
+
sideBySide: f === "split"
|
|
42
|
+
};
|
|
43
|
+
}, N = (e) => e.startsWith("data:image/") ? e : "", P = (e) => {
|
|
44
|
+
let t = y(22), { diff: n, filePath: r, oldContent: i, newContent: a, isLargeDiff: o, hasOptedIntoLargeDiff: s, onShowFullDiff: c, diffViewMode: l } = e, f = l === void 0 ? "unified" : l, p;
|
|
45
|
+
t[0] !== n || t[1] !== f || t[2] !== r || t[3] !== s || t[4] !== o || t[5] !== a || t[6] !== i || t[7] !== c ? (p = M({
|
|
46
|
+
diff: n,
|
|
47
|
+
filePath: r,
|
|
48
|
+
oldContent: i,
|
|
49
|
+
newContent: a,
|
|
50
|
+
isLargeDiff: o,
|
|
51
|
+
hasOptedIntoLargeDiff: s,
|
|
52
|
+
onShowFullDiff: c,
|
|
53
|
+
diffViewMode: f
|
|
54
|
+
}), t[0] = n, t[1] = f, t[2] = r, t[3] = s, t[4] = o, t[5] = a, t[6] = i, t[7] = c, t[8] = p) : p = t[8];
|
|
55
|
+
let m = p, h;
|
|
56
|
+
return t[9] !== n || t[10] !== m.diffViewData || t[11] !== m.filePath || t[12] !== m.isImage || t[13] !== m.kind || t[14] !== m.newSrc || t[15] !== m.oldSrc || t[16] !== m.onShowFullDiff || t[17] !== m.renderedLineCount || t[18] !== m.sideBySide || t[19] !== a || t[20] !== i ? (h = /* @__PURE__ */ b(d, {
|
|
57
|
+
bg: "bg",
|
|
58
|
+
borderBottomRadius: "xs",
|
|
59
|
+
overflow: "hidden",
|
|
60
|
+
children: m.kind === "editor" ? /* @__PURE__ */ b(u, {
|
|
61
|
+
original: i,
|
|
62
|
+
modified: a,
|
|
63
|
+
oldPath: n.oldPath,
|
|
64
|
+
newPath: n.newPath,
|
|
65
|
+
sideBySide: m.sideBySide,
|
|
66
|
+
data: m.diffViewData
|
|
67
|
+
}) : m.kind === "image" ? /* @__PURE__ */ b(F, {
|
|
68
|
+
oldSrc: m.oldSrc,
|
|
69
|
+
newSrc: m.newSrc
|
|
70
|
+
}) : m.kind === "binary" ? /* @__PURE__ */ b(R, { isImage: m.isImage }) : /* @__PURE__ */ b(L, {
|
|
71
|
+
filePath: m.filePath,
|
|
72
|
+
renderedLineCount: m.renderedLineCount,
|
|
73
|
+
onShowFullDiff: m.onShowFullDiff
|
|
74
|
+
})
|
|
75
|
+
}), t[9] = n, t[10] = m.diffViewData, t[11] = m.filePath, t[12] = m.isImage, t[13] = m.kind, t[14] = m.newSrc, t[15] = m.oldSrc, t[16] = m.onShowFullDiff, t[17] = m.renderedLineCount, t[18] = m.sideBySide, t[19] = a, t[20] = i, t[21] = h) : h = t[21], h;
|
|
76
|
+
}, F = (e) => {
|
|
77
|
+
let t = y(8), { oldSrc: n, newSrc: r } = e, i;
|
|
78
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (i = {
|
|
79
|
+
base: "1fr",
|
|
80
|
+
md: "1fr 1fr"
|
|
81
|
+
}, t[0] = i) : i = t[0];
|
|
82
|
+
let a;
|
|
83
|
+
t[1] === n ? a = t[2] : (a = /* @__PURE__ */ b(I, {
|
|
84
|
+
label: "Old",
|
|
85
|
+
src: n,
|
|
86
|
+
fallback: "No old image"
|
|
87
|
+
}), t[1] = n, t[2] = a);
|
|
88
|
+
let o;
|
|
89
|
+
t[3] === r ? o = t[4] : (o = /* @__PURE__ */ b(I, {
|
|
90
|
+
label: "New",
|
|
91
|
+
src: r,
|
|
92
|
+
fallback: "No new image"
|
|
93
|
+
}), t[3] = r, t[4] = o);
|
|
94
|
+
let s;
|
|
95
|
+
return t[5] !== a || t[6] !== o ? (s = /* @__PURE__ */ x(p, {
|
|
96
|
+
templateColumns: i,
|
|
97
|
+
gap: "sm",
|
|
98
|
+
p: "sm",
|
|
99
|
+
borderTop: "1px solid",
|
|
100
|
+
borderColor: "border.subtle",
|
|
101
|
+
bg: "bg",
|
|
102
|
+
children: [a, o]
|
|
103
|
+
}), t[5] = a, t[6] = o, t[7] = s) : s = t[7], s;
|
|
104
|
+
}, I = (e) => {
|
|
105
|
+
let t = y(9), { label: n, src: r, fallback: i } = e, a;
|
|
106
|
+
t[0] === n ? a = t[1] : (a = /* @__PURE__ */ b(v, {
|
|
107
|
+
px: "xs",
|
|
108
|
+
py: "2xs",
|
|
109
|
+
textStyle: "label/S/medium",
|
|
110
|
+
color: "fg.muted",
|
|
111
|
+
borderBottom: "1px solid",
|
|
112
|
+
borderColor: "border.subtle",
|
|
113
|
+
children: n
|
|
114
|
+
}), t[0] = n, t[1] = a);
|
|
115
|
+
let o;
|
|
116
|
+
t[2] !== i || t[3] !== n || t[4] !== r ? (o = /* @__PURE__ */ b(d, {
|
|
117
|
+
display: "grid",
|
|
118
|
+
placeItems: "center",
|
|
119
|
+
minH: "180px",
|
|
120
|
+
p: "sm",
|
|
121
|
+
children: r ? /* @__PURE__ */ b(h, {
|
|
122
|
+
src: r,
|
|
123
|
+
alt: `${n} image diff`,
|
|
124
|
+
maxH: "260px",
|
|
125
|
+
maxW: "100%",
|
|
126
|
+
objectFit: "contain"
|
|
127
|
+
}) : /* @__PURE__ */ b(v, {
|
|
128
|
+
color: "fg.muted",
|
|
129
|
+
textStyle: "body/S/regular",
|
|
130
|
+
children: i
|
|
131
|
+
})
|
|
132
|
+
}), t[2] = i, t[3] = n, t[4] = r, t[5] = o) : o = t[5];
|
|
133
|
+
let s;
|
|
134
|
+
return t[6] !== a || t[7] !== o ? (s = /* @__PURE__ */ x(d, {
|
|
135
|
+
border: "1px solid",
|
|
136
|
+
borderColor: "border.subtle",
|
|
137
|
+
borderRadius: "xs",
|
|
138
|
+
overflow: "hidden",
|
|
139
|
+
bg: "bg.subtle",
|
|
140
|
+
minW: "0",
|
|
141
|
+
children: [a, o]
|
|
142
|
+
}), t[6] = a, t[7] = o, t[8] = s) : s = t[8], s;
|
|
143
|
+
}, L = (e) => {
|
|
144
|
+
let t = y(5), { filePath: r, onShowFullDiff: i } = e, a;
|
|
145
|
+
t[0] !== r || t[1] !== i ? (a = i ? /* @__PURE__ */ b(f, {
|
|
146
|
+
size: "xs",
|
|
147
|
+
variant: "outline",
|
|
148
|
+
"aria-label": `Render full diff for ${r}`,
|
|
149
|
+
onClick: i,
|
|
150
|
+
children: "Show full diff"
|
|
151
|
+
}) : null, t[0] = r, t[1] = i, t[2] = a) : a = t[2];
|
|
152
|
+
let o;
|
|
153
|
+
return t[3] === a ? o = t[4] : (o = /* @__PURE__ */ b(d, {
|
|
154
|
+
p: "md",
|
|
155
|
+
borderTop: "1px solid",
|
|
156
|
+
borderColor: "border.subtle",
|
|
157
|
+
bg: "bg",
|
|
158
|
+
children: /* @__PURE__ */ b(n, {
|
|
159
|
+
title: "Large diffs are hidden by default",
|
|
160
|
+
paddingY: "sm",
|
|
161
|
+
children: a
|
|
162
|
+
})
|
|
163
|
+
}), t[3] = a, t[4] = o), o;
|
|
164
|
+
}, R = (e) => {
|
|
165
|
+
let t = y(2), { isImage: r } = e, i = r ? "Image diffs are not shown" : "Binary diffs are not shown", a;
|
|
166
|
+
return t[0] === i ? a = t[1] : (a = /* @__PURE__ */ b(d, {
|
|
167
|
+
p: "md",
|
|
168
|
+
borderTop: "1px solid",
|
|
169
|
+
borderColor: "border.subtle",
|
|
170
|
+
bg: "bg",
|
|
171
|
+
children: /* @__PURE__ */ b(n, {
|
|
172
|
+
title: i,
|
|
173
|
+
paddingY: "sm"
|
|
174
|
+
})
|
|
175
|
+
}), t[0] = i, t[1] = a), a;
|
|
176
|
+
}, z = (e) => {
|
|
177
|
+
let t = y(7), { title: r, actionLabel: i, isLoadingDiff: a, onAction: o } = e, s;
|
|
178
|
+
t[0] !== i || t[1] !== a || t[2] !== o ? (s = i ? /* @__PURE__ */ b(f, {
|
|
179
|
+
size: "xs",
|
|
180
|
+
variant: "outline",
|
|
181
|
+
loading: a,
|
|
182
|
+
onClick: o,
|
|
183
|
+
children: i
|
|
184
|
+
}) : null, t[0] = i, t[1] = a, t[2] = o, t[3] = s) : s = t[3];
|
|
185
|
+
let c;
|
|
186
|
+
return t[4] !== s || t[5] !== r ? (c = /* @__PURE__ */ b(d, {
|
|
187
|
+
bg: "bg",
|
|
188
|
+
p: "md",
|
|
189
|
+
borderTop: "1px solid",
|
|
190
|
+
borderColor: "border.subtle",
|
|
191
|
+
children: /* @__PURE__ */ b(n, {
|
|
192
|
+
title: r,
|
|
193
|
+
paddingY: "sm",
|
|
194
|
+
children: s
|
|
195
|
+
})
|
|
196
|
+
}), t[4] = s, t[5] = r, t[6] = c) : c = t[6], c;
|
|
197
|
+
}, B = [
|
|
198
|
+
"first",
|
|
199
|
+
"second",
|
|
200
|
+
"third"
|
|
201
|
+
], V = () => {
|
|
202
|
+
let e = y(1), t;
|
|
203
|
+
return e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ b(_, {
|
|
204
|
+
h: "280px",
|
|
205
|
+
bg: "bg",
|
|
206
|
+
borderTop: "1px solid",
|
|
207
|
+
borderColor: "border.subtle",
|
|
208
|
+
p: "xs",
|
|
209
|
+
gap: "2xs",
|
|
210
|
+
role: "status",
|
|
211
|
+
"aria-busy": "true",
|
|
212
|
+
"aria-label": "Loading diff",
|
|
213
|
+
children: B.map(H)
|
|
214
|
+
}), e[0] = t) : t = e[0], t;
|
|
215
|
+
};
|
|
216
|
+
function H(e) {
|
|
217
|
+
return /* @__PURE__ */ b(g, {
|
|
218
|
+
h: "20px",
|
|
219
|
+
w: "full",
|
|
220
|
+
borderRadius: "xs"
|
|
221
|
+
}, e);
|
|
222
|
+
}
|
|
223
|
+
//#endregion
|
|
224
|
+
//#region src/components/diff-viewer/diff-card-content.tsx
|
|
225
|
+
var U = (e) => {
|
|
226
|
+
let { isLargeDiff: t, isGeneratedDiff: n, loadError: r, canLoadDiff: i, onLoadDiff: a, onShowFullDiff: o } = e, s = "Diff content is not loaded yet.", c = i ? "Load diff" : void 0, l = i ? () => void a() : void 0;
|
|
227
|
+
return t && (s = "Large diffs are hidden by default", c = i ? "Show full diff" : void 0, l = () => {
|
|
228
|
+
o?.(), a();
|
|
229
|
+
}), n && (s = "Generated diffs are hidden by default", c = i ? "Load diff" : void 0, l = i ? () => void a() : void 0), r && (s = "Diff failed to load. Try again.", c = i ? "Load diff" : void 0, l = i ? () => void a() : void 0), {
|
|
230
|
+
title: s,
|
|
231
|
+
actionLabel: c,
|
|
232
|
+
onAction: l
|
|
233
|
+
};
|
|
234
|
+
}, ee = (e) => {
|
|
235
|
+
let t = y(30), { diff: n, filePath: r, oldContent: i, newContent: a, isExpanded: o, isLargeDiff: s, isGeneratedDiff: c, isBinaryDiff: l, hasDiffContent: u, canLoadDiff: d, shouldAutoLoadDiff: f, loadError: p, isLoadingDiff: m, onLoadDiff: h, hasOptedIntoLargeDiff: g, onShowFullDiff: _, diffViewMode: v } = e, x = v === void 0 ? "unified" : v;
|
|
236
|
+
if (!o) return null;
|
|
237
|
+
if (l) {
|
|
238
|
+
let e;
|
|
239
|
+
return t[0] !== n || t[1] !== x || t[2] !== r || t[3] !== g || t[4] !== a || t[5] !== i || t[6] !== _ ? (e = /* @__PURE__ */ b(P, {
|
|
240
|
+
diff: n,
|
|
241
|
+
filePath: r,
|
|
242
|
+
oldContent: i,
|
|
243
|
+
newContent: a,
|
|
244
|
+
isLargeDiff: !1,
|
|
245
|
+
hasOptedIntoLargeDiff: g,
|
|
246
|
+
onShowFullDiff: _,
|
|
247
|
+
diffViewMode: x
|
|
248
|
+
}), t[0] = n, t[1] = x, t[2] = r, t[3] = g, t[4] = a, t[5] = i, t[6] = _, t[7] = e) : e = t[7], e;
|
|
249
|
+
}
|
|
250
|
+
if (!u && !f) {
|
|
251
|
+
let e;
|
|
252
|
+
t[8] !== d || t[9] !== c || t[10] !== s || t[11] !== p || t[12] !== h || t[13] !== _ ? (e = U({
|
|
253
|
+
isLargeDiff: s,
|
|
254
|
+
isGeneratedDiff: c,
|
|
255
|
+
loadError: p,
|
|
256
|
+
canLoadDiff: d,
|
|
257
|
+
onLoadDiff: h,
|
|
258
|
+
onShowFullDiff: _
|
|
259
|
+
}), t[8] = d, t[9] = c, t[10] = s, t[11] = p, t[12] = h, t[13] = _, t[14] = e) : e = t[14];
|
|
260
|
+
let { title: n, actionLabel: r, onAction: i } = e, a;
|
|
261
|
+
return t[15] !== r || t[16] !== m || t[17] !== i || t[18] !== n ? (a = /* @__PURE__ */ b(z, {
|
|
262
|
+
title: n,
|
|
263
|
+
actionLabel: r,
|
|
264
|
+
isLoadingDiff: m,
|
|
265
|
+
onAction: i
|
|
266
|
+
}), t[15] = r, t[16] = m, t[17] = i, t[18] = n, t[19] = a) : a = t[19], a;
|
|
267
|
+
}
|
|
268
|
+
if (f) {
|
|
269
|
+
let e;
|
|
270
|
+
return t[20] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ b(V, {}), t[20] = e) : e = t[20], e;
|
|
271
|
+
}
|
|
272
|
+
let S;
|
|
273
|
+
return t[21] !== n || t[22] !== x || t[23] !== r || t[24] !== g || t[25] !== s || t[26] !== a || t[27] !== i || t[28] !== _ ? (S = /* @__PURE__ */ b(P, {
|
|
274
|
+
diff: n,
|
|
275
|
+
filePath: r,
|
|
276
|
+
oldContent: i,
|
|
277
|
+
newContent: a,
|
|
278
|
+
isLargeDiff: s,
|
|
279
|
+
hasOptedIntoLargeDiff: g,
|
|
280
|
+
onShowFullDiff: _,
|
|
281
|
+
diffViewMode: x
|
|
282
|
+
}), t[21] = n, t[22] = x, t[23] = r, t[24] = g, t[25] = s, t[26] = a, t[27] = i, t[28] = _, t[29] = S) : S = t[29], S;
|
|
283
|
+
}, te = (e) => {
|
|
284
|
+
let { isExpanded: t, isSelected: n, hasDiffContent: r, isLargeDiff: i, isGeneratedDiff: a, isBinaryDiff: o, requestedPath: s, filePath: c } = e;
|
|
285
|
+
return t && n && !r && !i && !a && !o && s !== c;
|
|
286
|
+
}, W = (e) => {
|
|
287
|
+
let { requestedPath: t, filePath: n, hasDiffContent: r } = e;
|
|
288
|
+
return t === n && r ? null : t;
|
|
289
|
+
}, ne = (e) => !i(e), re = (e) => e.newPath || e.oldPath || "unknown", ie = (e) => {
|
|
290
|
+
let { filePath: t, isExpanded: n, isSelected: r, hasDiffContent: i, isLargeDiff: a, isGeneratedDiff: o, isBinaryDiff: s, onLoadDiff: c } = e, [l, u] = T(!1), [d, f] = T(null), [p, m] = T(!1), h = async () => {
|
|
291
|
+
if (c && !l) {
|
|
292
|
+
f(t), m(!1), u(!0);
|
|
293
|
+
try {
|
|
294
|
+
await c(t);
|
|
295
|
+
} catch {
|
|
296
|
+
f(null), m(!0);
|
|
297
|
+
} finally {
|
|
298
|
+
u(!1);
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
}, g = te({
|
|
302
|
+
isExpanded: n,
|
|
303
|
+
isSelected: r,
|
|
304
|
+
hasDiffContent: i,
|
|
305
|
+
isLargeDiff: a,
|
|
306
|
+
isGeneratedDiff: o,
|
|
307
|
+
isBinaryDiff: s,
|
|
308
|
+
requestedPath: d,
|
|
309
|
+
filePath: t
|
|
310
|
+
});
|
|
311
|
+
return S(() => {
|
|
312
|
+
f((e) => W({
|
|
313
|
+
requestedPath: e,
|
|
314
|
+
filePath: t,
|
|
315
|
+
hasDiffContent: i
|
|
316
|
+
}));
|
|
317
|
+
}, [t, i]), S(() => {
|
|
318
|
+
c && g && !p && h();
|
|
319
|
+
}), {
|
|
320
|
+
isLoadingDiff: l,
|
|
321
|
+
loadError: p,
|
|
322
|
+
shouldAutoLoadDiff: !!c && g && !p,
|
|
323
|
+
loadDiff: h
|
|
324
|
+
};
|
|
325
|
+
}, ae = (e) => {
|
|
326
|
+
let t = y(44), { diff: n, isSelected: r, isExpanded: o, onToggleExpanded: l, onSelect: u, onLoadDiff: f, hasOptedIntoLargeDiff: p, onShowFullDiff: m, diffViewMode: h } = e, g = r !== void 0 && r, _ = o === void 0 || o, v = p !== void 0 && p, S = h === void 0 ? "unified" : h, C, w, T, E, D, O;
|
|
327
|
+
t[0] === n ? (C = t[1], w = t[2], T = t[3], E = t[4], D = t[5], O = t[6]) : (C = re(n), D = n.oldContent || "", E = n.newContent || "", T = s(n), w = a(C), O = c(C) && !i(C), t[0] = n, t[1] = C, t[2] = w, t[3] = T, t[4] = E, t[5] = D, t[6] = O);
|
|
328
|
+
let k = O, A = n.oldContent !== void 0 || n.newContent !== void 0, j = T && !v, M;
|
|
329
|
+
t[7] !== k || t[8] !== C || t[9] !== A || t[10] !== _ || t[11] !== w || t[12] !== g || t[13] !== f || t[14] !== j ? (M = {
|
|
330
|
+
filePath: C,
|
|
331
|
+
isExpanded: _,
|
|
332
|
+
isSelected: g,
|
|
333
|
+
hasDiffContent: A,
|
|
334
|
+
isLargeDiff: j,
|
|
335
|
+
isGeneratedDiff: w,
|
|
336
|
+
isBinaryDiff: k,
|
|
337
|
+
onLoadDiff: f
|
|
338
|
+
}, t[7] = k, t[8] = C, t[9] = A, t[10] = _, t[11] = w, t[12] = g, t[13] = f, t[14] = j, t[15] = M) : M = t[15];
|
|
339
|
+
let { isLoadingDiff: N, loadError: P, shouldAutoLoadDiff: F, loadDiff: I } = ie(M), L = g ? "border.accent" : "border.subtle", R;
|
|
340
|
+
t[16] === Symbol.for("react.memo_cache_sentinel") ? (R = { borderColor: "border.accent" }, t[16] = R) : R = t[16];
|
|
341
|
+
let z;
|
|
342
|
+
t[17] !== n || t[18] !== _ || t[19] !== l ? (z = /* @__PURE__ */ b(G, {
|
|
343
|
+
diff: n,
|
|
344
|
+
isExpanded: _,
|
|
345
|
+
onToggleExpanded: l
|
|
346
|
+
}), t[17] = n, t[18] = _, t[19] = l, t[20] = z) : z = t[20];
|
|
347
|
+
let B = !!f, V;
|
|
348
|
+
t[21] !== k || t[22] !== n || t[23] !== S || t[24] !== C || t[25] !== A || t[26] !== v || t[27] !== _ || t[28] !== w || t[29] !== T || t[30] !== N || t[31] !== I || t[32] !== P || t[33] !== E || t[34] !== D || t[35] !== m || t[36] !== F || t[37] !== B ? (V = /* @__PURE__ */ b(ee, {
|
|
349
|
+
diff: n,
|
|
350
|
+
filePath: C,
|
|
351
|
+
oldContent: D,
|
|
352
|
+
newContent: E,
|
|
353
|
+
isExpanded: _,
|
|
354
|
+
isLargeDiff: T,
|
|
355
|
+
isGeneratedDiff: w,
|
|
356
|
+
isBinaryDiff: k,
|
|
357
|
+
hasDiffContent: A,
|
|
358
|
+
canLoadDiff: B,
|
|
359
|
+
shouldAutoLoadDiff: F,
|
|
360
|
+
loadError: P,
|
|
361
|
+
isLoadingDiff: N,
|
|
362
|
+
onLoadDiff: I,
|
|
363
|
+
hasOptedIntoLargeDiff: v,
|
|
364
|
+
onShowFullDiff: m,
|
|
365
|
+
diffViewMode: S
|
|
366
|
+
}), t[21] = k, t[22] = n, t[23] = S, t[24] = C, t[25] = A, t[26] = v, t[27] = _, t[28] = w, t[29] = T, t[30] = N, t[31] = I, t[32] = P, t[33] = E, t[34] = D, t[35] = m, t[36] = F, t[37] = B, t[38] = V) : V = t[38];
|
|
367
|
+
let H;
|
|
368
|
+
return t[39] !== u || t[40] !== V || t[41] !== L || t[42] !== z ? (H = /* @__PURE__ */ x(d, {
|
|
369
|
+
"data-testid": "diff-card",
|
|
370
|
+
border: "1px solid",
|
|
371
|
+
borderColor: L,
|
|
372
|
+
borderRadius: "xs",
|
|
373
|
+
overflow: "visible",
|
|
374
|
+
bg: "bg",
|
|
375
|
+
width: "100%",
|
|
376
|
+
maxW: "100%",
|
|
377
|
+
transition: "border-color 0.14s ease",
|
|
378
|
+
_hover: R,
|
|
379
|
+
onClick: u,
|
|
380
|
+
children: [z, V]
|
|
381
|
+
}), t[39] = u, t[40] = V, t[41] = L, t[42] = z, t[43] = H) : H = t[43], H;
|
|
382
|
+
}, G = (t) => {
|
|
383
|
+
let n = y(58), { diff: i, isExpanded: a, onToggleExpanded: o } = t, s = a === void 0 || a, c, l, u, f;
|
|
384
|
+
n[0] === i ? (c = n[1], l = n[2], u = n[3], f = n[4]) : (u = re(i), c = i.additions ?? 0, l = i.deletions ?? 0, f = ne(u), n[0] = i, n[1] = c, n[2] = l, n[3] = u, n[4] = f);
|
|
385
|
+
let h = f, [g, _] = T(!1), C = w(null), A, j;
|
|
386
|
+
n[5] === Symbol.for("react.memo_cache_sentinel") ? (A = () => () => {
|
|
387
|
+
C.current !== null && window.clearTimeout(C.current);
|
|
388
|
+
}, j = [], n[5] = A, n[6] = j) : (A = n[5], j = n[6]), S(A, j);
|
|
389
|
+
let M;
|
|
390
|
+
n[7] === u ? M = n[8] : (M = async () => {
|
|
391
|
+
try {
|
|
392
|
+
await navigator.clipboard.writeText(u), _(!0), C.current !== null && window.clearTimeout(C.current), C.current = window.setTimeout(() => _(!1), 1200);
|
|
393
|
+
} catch {
|
|
394
|
+
_(!1);
|
|
395
|
+
}
|
|
396
|
+
}, n[7] = u, n[8] = M);
|
|
397
|
+
let N = M, P = s ? "1px solid" : "none", F = s ? "0" : "xs", I;
|
|
398
|
+
n[9] === Symbol.for("react.memo_cache_sentinel") ? (I = { bg: "bg" }, n[9] = I) : I = n[9];
|
|
399
|
+
let L;
|
|
400
|
+
n[10] === o ? L = n[11] : (L = () => o?.(), n[10] = o, n[11] = L);
|
|
401
|
+
let R = s ? "Collapse" : "Expand", z;
|
|
402
|
+
n[12] === o ? z = n[13] : (z = (e) => {
|
|
403
|
+
e.stopPropagation(), o?.();
|
|
404
|
+
}, n[12] = o, n[13] = z);
|
|
405
|
+
let B;
|
|
406
|
+
n[14] === s ? B = n[15] : (B = b(s ? D : O, { size: 16 }), n[14] = s, n[15] = B);
|
|
407
|
+
let V;
|
|
408
|
+
n[16] !== z || n[17] !== B || n[18] !== R ? (V = /* @__PURE__ */ b(m, {
|
|
409
|
+
"aria-label": R,
|
|
410
|
+
variant: "ghost",
|
|
411
|
+
size: "2xs",
|
|
412
|
+
onClick: z,
|
|
413
|
+
flexShrink: 0,
|
|
414
|
+
children: B
|
|
415
|
+
}), n[16] = z, n[17] = B, n[18] = R, n[19] = V) : V = n[19];
|
|
416
|
+
let H;
|
|
417
|
+
n[20] !== i.change || n[21] !== i.newPath || n[22] !== i.oldPath || n[23] !== u ? (H = i.change === "renamed" ? /* @__PURE__ */ x(v, {
|
|
418
|
+
as: "span",
|
|
419
|
+
textStyle: "sm",
|
|
420
|
+
children: [
|
|
421
|
+
/* @__PURE__ */ b(v, {
|
|
422
|
+
as: "span",
|
|
423
|
+
color: "fg.muted",
|
|
424
|
+
textDecoration: "line-through",
|
|
425
|
+
mr: "xs",
|
|
426
|
+
children: i.oldPath
|
|
427
|
+
}),
|
|
428
|
+
/* @__PURE__ */ b(d, {
|
|
429
|
+
as: "span",
|
|
430
|
+
display: "inline-flex",
|
|
431
|
+
alignItems: "center",
|
|
432
|
+
verticalAlign: "middle",
|
|
433
|
+
mr: "xs",
|
|
434
|
+
children: /* @__PURE__ */ b(O, { size: 12 })
|
|
435
|
+
}),
|
|
436
|
+
i.newPath
|
|
437
|
+
]
|
|
438
|
+
}) : i.change === "deleted" ? /* @__PURE__ */ b(v, {
|
|
439
|
+
as: "span",
|
|
440
|
+
color: "fg.muted",
|
|
441
|
+
textDecoration: "line-through",
|
|
442
|
+
textStyle: "sm",
|
|
443
|
+
children: u
|
|
444
|
+
}) : /* @__PURE__ */ b(v, {
|
|
445
|
+
as: "span",
|
|
446
|
+
textStyle: "sm",
|
|
447
|
+
children: u
|
|
448
|
+
}), n[20] = i.change, n[21] = i.newPath, n[22] = i.oldPath, n[23] = u, n[24] = H) : H = n[24];
|
|
449
|
+
let U;
|
|
450
|
+
n[25] !== u || n[26] !== H ? (U = /* @__PURE__ */ b(d, {
|
|
451
|
+
minW: 0,
|
|
452
|
+
overflow: "hidden",
|
|
453
|
+
textOverflow: "ellipsis",
|
|
454
|
+
whiteSpace: "nowrap",
|
|
455
|
+
title: u,
|
|
456
|
+
children: H
|
|
457
|
+
}), n[25] = u, n[26] = H, n[27] = U) : U = n[27];
|
|
458
|
+
let ee = g ? "1" : "0", te = g ? "auto" : "none", W;
|
|
459
|
+
n[28] === Symbol.for("react.memo_cache_sentinel") ? (W = { "[data-testid='diff-card-header']:hover &, [data-testid='diff-card-header']:focus-within &": {
|
|
460
|
+
opacity: 1,
|
|
461
|
+
pointerEvents: "auto"
|
|
462
|
+
} }, n[28] = W) : W = n[28];
|
|
463
|
+
let ie = g ? "Copied" : "Copy file path", ae = g ? "Copied" : "Copy file path", G;
|
|
464
|
+
n[29] === N ? G = n[30] : (G = (e) => {
|
|
465
|
+
e.stopPropagation(), N();
|
|
466
|
+
}, n[29] = N, n[30] = G);
|
|
467
|
+
let K;
|
|
468
|
+
n[31] === g ? K = n[32] : (K = b(g ? E : k, { size: 12 }), n[31] = g, n[32] = K);
|
|
469
|
+
let q;
|
|
470
|
+
n[33] !== ae || n[34] !== G || n[35] !== K ? (q = /* @__PURE__ */ b(m, {
|
|
471
|
+
"aria-label": ae,
|
|
472
|
+
variant: "ghost",
|
|
473
|
+
size: "2xs",
|
|
474
|
+
onClick: G,
|
|
475
|
+
flexShrink: 0,
|
|
476
|
+
children: K
|
|
477
|
+
}), n[33] = ae, n[34] = G, n[35] = K, n[36] = q) : q = n[36];
|
|
478
|
+
let J;
|
|
479
|
+
n[37] !== ie || n[38] !== q ? (J = /* @__PURE__ */ b(e, {
|
|
480
|
+
content: ie,
|
|
481
|
+
children: q
|
|
482
|
+
}), n[37] = ie, n[38] = q, n[39] = J) : J = n[39];
|
|
483
|
+
let Y;
|
|
484
|
+
n[40] !== ee || n[41] !== te || n[42] !== J ? (Y = /* @__PURE__ */ b(d, {
|
|
485
|
+
opacity: ee,
|
|
486
|
+
pointerEvents: te,
|
|
487
|
+
transition: "opacity 120ms ease",
|
|
488
|
+
css: W,
|
|
489
|
+
children: J
|
|
490
|
+
}), n[40] = ee, n[41] = te, n[42] = J, n[43] = Y) : Y = n[43];
|
|
491
|
+
let X;
|
|
492
|
+
n[44] !== U || n[45] !== Y ? (X = /* @__PURE__ */ x(p, {
|
|
493
|
+
templateColumns: "minmax(0, max-content) auto",
|
|
494
|
+
alignItems: "center",
|
|
495
|
+
justifyContent: "start",
|
|
496
|
+
gap: "2xs",
|
|
497
|
+
minW: 0,
|
|
498
|
+
children: [U, Y]
|
|
499
|
+
}), n[44] = U, n[45] = Y, n[46] = X) : X = n[46];
|
|
500
|
+
let Z;
|
|
501
|
+
n[47] !== c || n[48] !== l || n[49] !== h ? (Z = h ? /* @__PURE__ */ b(d, {
|
|
502
|
+
flexShrink: 0,
|
|
503
|
+
children: /* @__PURE__ */ b(r, {
|
|
504
|
+
variant: "ghost",
|
|
505
|
+
additions: c,
|
|
506
|
+
deletions: l
|
|
507
|
+
})
|
|
508
|
+
}) : null, n[47] = c, n[48] = l, n[49] = h, n[50] = Z) : Z = n[50];
|
|
509
|
+
let Q;
|
|
510
|
+
return n[51] !== V || n[52] !== X || n[53] !== Z || n[54] !== P || n[55] !== F || n[56] !== L ? (Q = /* @__PURE__ */ x(p, {
|
|
511
|
+
"data-testid": "diff-card-header",
|
|
512
|
+
templateColumns: "auto minmax(0, 1fr) auto",
|
|
513
|
+
px: "xs",
|
|
514
|
+
py: "2xs",
|
|
515
|
+
alignItems: "center",
|
|
516
|
+
justifyContent: "space-between",
|
|
517
|
+
borderBottom: P,
|
|
518
|
+
borderColor: "border.subtle",
|
|
519
|
+
borderTopRadius: "xs",
|
|
520
|
+
borderBottomRadius: F,
|
|
521
|
+
position: "sticky",
|
|
522
|
+
top: "0",
|
|
523
|
+
zIndex: "1",
|
|
524
|
+
bg: "bg",
|
|
525
|
+
cursor: "pointer",
|
|
526
|
+
transition: "background 0.14s ease",
|
|
527
|
+
_hover: I,
|
|
528
|
+
onClick: L,
|
|
529
|
+
gap: "sm",
|
|
530
|
+
children: [
|
|
531
|
+
V,
|
|
532
|
+
X,
|
|
533
|
+
Z
|
|
534
|
+
]
|
|
535
|
+
}), n[51] = V, n[52] = X, n[53] = Z, n[54] = P, n[55] = F, n[56] = L, n[57] = Q) : Q = n[57], Q;
|
|
536
|
+
}, K = () => {
|
|
537
|
+
let e = y(1), r;
|
|
538
|
+
return e[0] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ b(_, {
|
|
539
|
+
h: "full",
|
|
540
|
+
minH: "0",
|
|
541
|
+
gap: "0",
|
|
542
|
+
bg: "bg",
|
|
543
|
+
children: /* @__PURE__ */ b(t, {
|
|
544
|
+
flex: "1",
|
|
545
|
+
minH: "0",
|
|
546
|
+
contentProps: {
|
|
547
|
+
p: "xs",
|
|
548
|
+
spaceY: "xs"
|
|
549
|
+
},
|
|
550
|
+
children: /* @__PURE__ */ b(n, {
|
|
551
|
+
title: "No changes detected",
|
|
552
|
+
description: "Make some changes to see the diff here.",
|
|
553
|
+
paddingY: "sm"
|
|
554
|
+
})
|
|
555
|
+
})
|
|
556
|
+
}), e[0] = r) : r = e[0], r;
|
|
557
|
+
}, q = 34, J = 18, Y = 28, X = 8, Z = () => 130, Q = (e) => {
|
|
558
|
+
let { diff: t, isCollapsed: n, hasOptedIntoLargeDiff: r = !1, diffViewMode: a = "unified" } = e;
|
|
559
|
+
if (n) return 42;
|
|
560
|
+
let o = t.oldContent !== void 0 || t.newContent !== void 0, u = t.newPath ?? t.oldPath ?? "";
|
|
561
|
+
if (i(u) && (t.oldContent || t.newContent)) return 380;
|
|
562
|
+
if (c(u) || !o || s(t) && !r) return Z();
|
|
563
|
+
let { unifiedContentRows: d, splitContentRows: f, hunkRows: p } = l({
|
|
564
|
+
original: t.oldContent ?? "",
|
|
565
|
+
modified: t.newContent ?? "",
|
|
566
|
+
oldPath: t.oldPath,
|
|
567
|
+
newPath: t.newPath
|
|
568
|
+
}), m = a === "split" ? f : d;
|
|
569
|
+
return m === 0 && p === 0 ? Z() : q + (m * J + p * Y) + X;
|
|
570
|
+
}, oe = (e) => e.newPath ?? e.oldPath ?? "unknown", se = 24, ce = (e) => {
|
|
571
|
+
let { diffs: t, selectedDiffPath: n, collapsedPaths: r, expansionCommand: i, completedScrollCommandId: a } = e, o = n, s = n ? `selected:${n}` : null, c = i?.action === "expand-selected" ? i.id : null, l = c !== null && a === c;
|
|
572
|
+
i?.action === "expand-selected" && i.path && (o = i.path, s = `command:${i.id}:${i.path}`);
|
|
573
|
+
let u = s;
|
|
574
|
+
if (o && s) {
|
|
575
|
+
let e = r.has(o) ? "collapsed" : "expanded";
|
|
576
|
+
u = `${s}:${e}`;
|
|
577
|
+
}
|
|
578
|
+
let d = o ? t.findIndex((e) => oe(e) === o) : -1, f = d >= 0 && i?.action === "expand-selected" && i.direction === "up" && !l;
|
|
579
|
+
return {
|
|
580
|
+
selectedScrollPath: o,
|
|
581
|
+
selectedScrollKey: u,
|
|
582
|
+
selectedScrollCommandId: c,
|
|
583
|
+
selectedScrollIndex: d,
|
|
584
|
+
shouldPinSelectedScrollIndex: f,
|
|
585
|
+
hasCompletedSelectedScroll: l
|
|
586
|
+
};
|
|
587
|
+
}, le = (e) => {
|
|
588
|
+
let { indexes: t, selectedScrollIndex: n, shouldPinSelectedScrollIndex: r } = e;
|
|
589
|
+
if (!r || t.includes(n)) return t;
|
|
590
|
+
let i = Math.max(0, n - se), a = Array.from({ length: n - i + 1 }, (e, t) => i + t);
|
|
591
|
+
return Array.from(/* @__PURE__ */ new Set([...t, ...a])).sort((e, t) => e - t);
|
|
592
|
+
}, ue = 3, de = 12, fe = (e) => e.newPath ?? e.oldPath ?? "unknown", pe = (e) => {
|
|
593
|
+
let t = y(20), { diffs: n, selectedDiffPath: r, collapsedPaths: i, expansionCommand: a, scrollRef: o, virtualizerRef: s, suppressScrollAdjustRef: c } = e, [l, u] = T(null), d;
|
|
594
|
+
t[0] !== i || t[1] !== l || t[2] !== n || t[3] !== a || t[4] !== r ? (d = ce({
|
|
595
|
+
diffs: n,
|
|
596
|
+
selectedDiffPath: r,
|
|
597
|
+
collapsedPaths: i,
|
|
598
|
+
expansionCommand: a,
|
|
599
|
+
completedScrollCommandId: l
|
|
600
|
+
}), t[0] = i, t[1] = l, t[2] = n, t[3] = a, t[4] = r, t[5] = d) : d = t[5];
|
|
601
|
+
let { selectedScrollPath: f, selectedScrollKey: p, selectedScrollCommandId: m, selectedScrollIndex: h, shouldPinSelectedScrollIndex: g, hasCompletedSelectedScroll: _ } = d, v, b;
|
|
602
|
+
t[6] !== i || t[7] !== n || t[8] !== _ || t[9] !== o || t[10] !== m || t[11] !== p || t[12] !== f || t[13] !== c || t[14] !== s ? (v = () => {
|
|
603
|
+
if (!f || !p || _ || i.has(f)) return;
|
|
604
|
+
let e = n.findIndex((e) => fe(e) === f);
|
|
605
|
+
if (e < 0) return;
|
|
606
|
+
let t = s.current, r = o.current;
|
|
607
|
+
if (!t || !r) return;
|
|
608
|
+
let a = [], l = !1;
|
|
609
|
+
c.current = !0;
|
|
610
|
+
let d = () => {
|
|
611
|
+
c.current = !1;
|
|
612
|
+
}, h = () => {
|
|
613
|
+
l = !0, d(), m !== null && u(m);
|
|
614
|
+
}, g = 0, v = () => {
|
|
615
|
+
if (!l) {
|
|
616
|
+
if (t.scrollToIndex(e, { align: "start" }), g += 1, g >= ue && m !== null) {
|
|
617
|
+
d(), u(m);
|
|
618
|
+
return;
|
|
619
|
+
}
|
|
620
|
+
if (g < de) {
|
|
621
|
+
a.push(requestAnimationFrame(v));
|
|
622
|
+
return;
|
|
623
|
+
}
|
|
624
|
+
d();
|
|
625
|
+
}
|
|
626
|
+
};
|
|
627
|
+
return r.addEventListener("wheel", h, { passive: !0 }), r.addEventListener("touchmove", h, { passive: !0 }), v(), () => {
|
|
628
|
+
d(), r.removeEventListener("wheel", h), r.removeEventListener("touchmove", h);
|
|
629
|
+
for (let e of a) cancelAnimationFrame(e);
|
|
630
|
+
};
|
|
631
|
+
}, b = [
|
|
632
|
+
p,
|
|
633
|
+
f,
|
|
634
|
+
m,
|
|
635
|
+
_,
|
|
636
|
+
n,
|
|
637
|
+
i,
|
|
638
|
+
o,
|
|
639
|
+
s,
|
|
640
|
+
c
|
|
641
|
+
], t[6] = i, t[7] = n, t[8] = _, t[9] = o, t[10] = m, t[11] = p, t[12] = f, t[13] = c, t[14] = s, t[15] = v, t[16] = b) : (v = t[15], b = t[16]), C(v, b);
|
|
642
|
+
let x;
|
|
643
|
+
return t[17] !== h || t[18] !== g ? (x = {
|
|
644
|
+
selectedScrollIndex: h,
|
|
645
|
+
shouldPinSelectedScrollIndex: g
|
|
646
|
+
}, t[17] = h, t[18] = g, t[19] = x) : x = t[19], x;
|
|
647
|
+
}, $ = (e) => e.newPath ?? e.oldPath ?? "unknown", me = 10, he = 100, ge = (e) => e.length <= me ? /* @__PURE__ */ new Set() : new Set(e.filter((e, t) => {
|
|
648
|
+
let n = (e.additions ?? 0) + (e.deletions ?? 0);
|
|
649
|
+
return t >= me || n > he;
|
|
650
|
+
}).map((e) => $(e))), _e = (e) => new Set(e.map((e) => $(e))), ve = (e, t) => {
|
|
651
|
+
let n = new Set(e);
|
|
652
|
+
return n.has(t) ? n.delete(t) : n.add(t), n;
|
|
653
|
+
}, ye = (e, t, n) => {
|
|
654
|
+
if (!n || !t.has(n) || !e.some((e) => $(e) === n)) return t;
|
|
655
|
+
let r = new Set(t);
|
|
656
|
+
return r.delete(n), r;
|
|
657
|
+
}, be = (e, t, n, r) => {
|
|
658
|
+
let i = ye(e, t, n);
|
|
659
|
+
if (!r || r === n || i.has(r) || !e.some((e) => $(e) === r)) return i;
|
|
660
|
+
let a = i === t ? new Set(t) : i;
|
|
661
|
+
return a.add(r), a;
|
|
662
|
+
};
|
|
663
|
+
function xe(e) {
|
|
664
|
+
let { diffs: n, selectedDiffPath: r = null, onLoadDiff: i, onSelectDiffPath: a, onExpansionStateChange: o, expansionCommand: s = null, diffViewMode: c = "unified" } = e, l = w(null), u = w(null), f = w(null), p = w(!1), m = w(null), [h, g] = T(() => ge(n)), [v, y] = T(() => /* @__PURE__ */ new Set()), { selectedScrollIndex: x, shouldPinSelectedScrollIndex: E } = pe({
|
|
665
|
+
diffs: n,
|
|
666
|
+
selectedDiffPath: r,
|
|
667
|
+
collapsedPaths: h,
|
|
668
|
+
expansionCommand: s,
|
|
669
|
+
scrollRef: l,
|
|
670
|
+
virtualizerRef: f,
|
|
671
|
+
suppressScrollAdjustRef: p
|
|
672
|
+
}), D = j({
|
|
673
|
+
count: n.length,
|
|
674
|
+
getScrollElement: () => l.current,
|
|
675
|
+
estimateSize: (e) => {
|
|
676
|
+
let t = n[e], r = $(t);
|
|
677
|
+
return Q({
|
|
678
|
+
diff: t,
|
|
679
|
+
isCollapsed: h.has(r),
|
|
680
|
+
hasOptedIntoLargeDiff: v.has(r),
|
|
681
|
+
diffViewMode: c
|
|
682
|
+
});
|
|
683
|
+
},
|
|
684
|
+
getItemKey: (e) => $(n[e]),
|
|
685
|
+
overscan: 3,
|
|
686
|
+
rangeExtractor: (e) => le({
|
|
687
|
+
indexes: A(e),
|
|
688
|
+
selectedScrollIndex: x,
|
|
689
|
+
shouldPinSelectedScrollIndex: E
|
|
690
|
+
})
|
|
691
|
+
});
|
|
692
|
+
if (D.shouldAdjustScrollPositionOnItemSizeChange = (e, t, n) => !n.isScrolling && !p.current, f.current = D, C(() => {
|
|
693
|
+
r && g((e) => ye(n, e, r));
|
|
694
|
+
}, [n, r]), C(() => {
|
|
695
|
+
if (s) {
|
|
696
|
+
if (s.action === "expand-selected") {
|
|
697
|
+
let e = s.path;
|
|
698
|
+
if (e) {
|
|
699
|
+
let t = m.current;
|
|
700
|
+
m.current = e, g((r) => be(n, r, e, t));
|
|
701
|
+
}
|
|
702
|
+
return;
|
|
703
|
+
}
|
|
704
|
+
m.current = null, g(s.action === "collapse" ? _e(n) : /* @__PURE__ */ new Set());
|
|
705
|
+
}
|
|
706
|
+
}, [n, s]), S(() => {
|
|
707
|
+
let e = {
|
|
708
|
+
allExpanded: h.size === 0,
|
|
709
|
+
allCollapsed: n.length > 0 && n.every((e) => h.has($(e)))
|
|
710
|
+
}, t = u.current;
|
|
711
|
+
(t?.allExpanded !== e.allExpanded || t.allCollapsed !== e.allCollapsed) && (u.current = e, o?.(e));
|
|
712
|
+
}, [
|
|
713
|
+
h,
|
|
714
|
+
n,
|
|
715
|
+
o
|
|
716
|
+
]), n.length === 0) return /* @__PURE__ */ b(K, {});
|
|
717
|
+
let O = (e) => {
|
|
718
|
+
g((t) => ve(t, e));
|
|
719
|
+
}, k = (e) => {
|
|
720
|
+
y((t) => {
|
|
721
|
+
let n = new Set(t);
|
|
722
|
+
return n.add(e), n;
|
|
723
|
+
});
|
|
724
|
+
}, M = D.getVirtualItems();
|
|
725
|
+
return /* @__PURE__ */ b(_, {
|
|
726
|
+
h: "full",
|
|
727
|
+
minH: "0",
|
|
728
|
+
gap: "0",
|
|
729
|
+
bg: "bg",
|
|
730
|
+
children: /* @__PURE__ */ b(d, {
|
|
731
|
+
position: "relative",
|
|
732
|
+
flex: "1",
|
|
733
|
+
minH: "0",
|
|
734
|
+
bg: "bg",
|
|
735
|
+
children: /* @__PURE__ */ b(t, {
|
|
736
|
+
position: "absolute",
|
|
737
|
+
inset: "0",
|
|
738
|
+
viewportRef: l,
|
|
739
|
+
viewportProps: { style: { overflowAnchor: "none" } },
|
|
740
|
+
contentProps: { p: "xs" },
|
|
741
|
+
children: /* @__PURE__ */ b(d, {
|
|
742
|
+
position: "relative",
|
|
743
|
+
width: "100%",
|
|
744
|
+
style: { height: D.getTotalSize() },
|
|
745
|
+
children: M.map((e) => {
|
|
746
|
+
let t = n[e.index], o = $(t);
|
|
747
|
+
return /* @__PURE__ */ b(d, {
|
|
748
|
+
"data-index": e.index,
|
|
749
|
+
ref: D.measureElement,
|
|
750
|
+
position: "absolute",
|
|
751
|
+
left: "0",
|
|
752
|
+
width: "100%",
|
|
753
|
+
pb: "xs",
|
|
754
|
+
style: { top: `${e.start}px` },
|
|
755
|
+
children: /* @__PURE__ */ b(ae, {
|
|
756
|
+
diff: t,
|
|
757
|
+
isSelected: r === o,
|
|
758
|
+
isExpanded: !h.has(o),
|
|
759
|
+
onToggleExpanded: () => O(o),
|
|
760
|
+
onSelect: () => a?.(o),
|
|
761
|
+
onLoadDiff: i,
|
|
762
|
+
hasOptedIntoLargeDiff: v.has(o),
|
|
763
|
+
onShowFullDiff: () => k(o),
|
|
764
|
+
diffViewMode: c
|
|
765
|
+
}, o)
|
|
766
|
+
}, e.key);
|
|
767
|
+
})
|
|
768
|
+
})
|
|
769
|
+
})
|
|
770
|
+
})
|
|
771
|
+
});
|
|
772
|
+
}
|
|
773
|
+
//#endregion
|
|
774
|
+
export { xe as DiffDrawer };
|
|
775
|
+
|
|
776
|
+
//# sourceMappingURL=diff-drawer-45rpk3aq.js.map
|