@canonical/react-ds-app-launchpad 0.9.0-experimental.2 → 0.9.0-experimental.21
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/esm/ui/DiffChangeMarker/DiffChangeMarker.js +47 -0
- package/dist/esm/ui/DiffChangeMarker/DiffChangeMarker.js.map +1 -0
- package/dist/esm/ui/DiffChangeMarker/common/DetailedChangeMarker/DetailedChangeMarker.js +8 -0
- package/dist/esm/ui/DiffChangeMarker/common/DetailedChangeMarker/DetailedChangeMarker.js.map +1 -0
- package/dist/esm/ui/DiffChangeMarker/common/DetailedChangeMarker/index.js +4 -0
- package/dist/esm/ui/DiffChangeMarker/common/DetailedChangeMarker/index.js.map +1 -0
- package/dist/esm/ui/DiffChangeMarker/common/DetailedChangeMarker/styles.css +21 -0
- package/dist/esm/ui/DiffChangeMarker/common/DetailedChangeMarker/types.js.map +1 -0
- package/dist/esm/ui/DiffChangeMarker/common/SimpleChangeMarker/SimpleChangeMarker.js +11 -0
- package/dist/esm/ui/DiffChangeMarker/common/SimpleChangeMarker/SimpleChangeMarker.js.map +1 -0
- package/dist/esm/ui/DiffChangeMarker/common/SimpleChangeMarker/index.js +4 -0
- package/dist/esm/ui/DiffChangeMarker/common/SimpleChangeMarker/index.js.map +1 -0
- package/dist/esm/ui/DiffChangeMarker/common/SimpleChangeMarker/styles.css +29 -0
- package/dist/esm/ui/DiffChangeMarker/common/SimpleChangeMarker/types.js.map +1 -0
- package/dist/esm/ui/DiffChangeMarker/common/index.js +3 -0
- package/dist/esm/ui/DiffChangeMarker/common/index.js.map +1 -0
- package/dist/esm/ui/DiffChangeMarker/icons.js +5 -0
- package/dist/esm/ui/DiffChangeMarker/icons.js.map +1 -0
- package/dist/esm/ui/DiffChangeMarker/index.js +4 -0
- package/dist/esm/ui/DiffChangeMarker/index.js.map +1 -0
- package/dist/esm/ui/DiffChangeMarker/styles.css +30 -0
- package/dist/esm/ui/DiffChangeMarker/types.js +2 -0
- package/dist/esm/ui/DiffChangeMarker/types.js.map +1 -0
- package/dist/esm/ui/EditableBlock/Context.js +4 -0
- package/dist/esm/ui/EditableBlock/Context.js.map +1 -0
- package/dist/esm/ui/EditableBlock/EditableBlock.js +35 -0
- package/dist/esm/ui/EditableBlock/EditableBlock.js.map +1 -0
- package/dist/esm/ui/EditableBlock/hooks/index.js +2 -0
- package/dist/esm/ui/EditableBlock/hooks/index.js.map +1 -0
- package/dist/esm/ui/EditableBlock/hooks/useEditableBlock.js +11 -0
- package/dist/esm/ui/EditableBlock/hooks/useEditableBlock.js.map +1 -0
- package/dist/esm/ui/EditableBlock/index.js +3 -0
- package/dist/esm/ui/EditableBlock/index.js.map +1 -0
- package/dist/esm/ui/EditableBlock/styles.css +38 -0
- package/dist/esm/ui/EditableBlock/types.js +2 -0
- package/dist/esm/ui/EditableBlock/types.js.map +1 -0
- package/dist/esm/ui/FileTree/Context.js +4 -0
- package/dist/esm/ui/FileTree/Context.js.map +1 -0
- package/dist/esm/ui/FileTree/Provider.js +74 -0
- package/dist/esm/ui/FileTree/Provider.js.map +1 -0
- package/dist/esm/ui/FileTree/common/File/File.js +12 -0
- package/dist/esm/ui/FileTree/common/File/File.js.map +1 -0
- package/dist/esm/ui/FileTree/common/File/index.js +4 -0
- package/dist/esm/ui/FileTree/common/File/index.js.map +1 -0
- package/dist/esm/ui/FileTree/common/File/styles.css +4 -0
- package/dist/esm/ui/FileTree/common/File/types.js +2 -0
- package/dist/esm/ui/FileTree/common/File/types.js.map +1 -0
- package/dist/esm/ui/FileTree/common/Folder/Folder.js +12 -0
- package/dist/esm/ui/FileTree/common/Folder/Folder.js.map +1 -0
- package/dist/esm/ui/FileTree/common/Folder/index.js +4 -0
- package/dist/esm/ui/FileTree/common/Folder/index.js.map +1 -0
- package/dist/esm/ui/FileTree/common/Folder/styles.css +4 -0
- package/dist/esm/ui/FileTree/common/Folder/types.js +2 -0
- package/dist/esm/ui/FileTree/common/Folder/types.js.map +1 -0
- package/dist/esm/ui/FileTree/common/IndentationBlock/IndentationBlock.js +16 -0
- package/dist/esm/ui/FileTree/common/IndentationBlock/IndentationBlock.js.map +1 -0
- package/dist/esm/ui/FileTree/common/IndentationBlock/index.js +4 -0
- package/dist/esm/ui/FileTree/common/IndentationBlock/index.js.map +1 -0
- package/dist/esm/ui/FileTree/common/IndentationBlock/styles.css +32 -0
- package/dist/esm/ui/FileTree/common/IndentationBlock/types.js +2 -0
- package/dist/esm/ui/FileTree/common/IndentationBlock/types.js.map +1 -0
- package/dist/esm/ui/FileTree/common/Node/Context.js +10 -0
- package/dist/esm/ui/FileTree/common/Node/Context.js.map +1 -0
- package/dist/esm/ui/FileTree/common/Node/Provider.js +165 -0
- package/dist/esm/ui/FileTree/common/Node/Provider.js.map +1 -0
- package/dist/esm/ui/FileTree/common/Node/hooks/index.js +2 -0
- package/dist/esm/ui/FileTree/common/Node/hooks/index.js.map +1 -0
- package/dist/esm/ui/FileTree/common/Node/hooks/useNode.js +12 -0
- package/dist/esm/ui/FileTree/common/Node/hooks/useNode.js.map +1 -0
- package/dist/esm/ui/FileTree/common/Node/index.js +4 -0
- package/dist/esm/ui/FileTree/common/Node/index.js.map +1 -0
- package/dist/esm/ui/FileTree/common/Node/styles.css +56 -0
- package/dist/esm/ui/FileTree/common/Node/types.js +2 -0
- package/dist/esm/ui/FileTree/common/Node/types.js.map +1 -0
- package/dist/esm/ui/FileTree/common/SearchBox/SearchBox.js +31 -0
- package/dist/esm/ui/FileTree/common/SearchBox/SearchBox.js.map +1 -0
- package/dist/esm/ui/FileTree/common/SearchBox/index.js +4 -0
- package/dist/esm/ui/FileTree/common/SearchBox/index.js.map +1 -0
- package/dist/esm/ui/FileTree/common/SearchBox/styles.css +61 -0
- package/dist/esm/ui/FileTree/common/SearchBox/types.js +2 -0
- package/dist/esm/ui/FileTree/common/SearchBox/types.js.map +1 -0
- package/dist/esm/ui/FileTree/common/TreeView/TreeView.js +60 -0
- package/dist/esm/ui/FileTree/common/TreeView/TreeView.js.map +1 -0
- package/dist/esm/ui/FileTree/common/TreeView/index.js +4 -0
- package/dist/esm/ui/FileTree/common/TreeView/index.js.map +1 -0
- package/dist/esm/ui/FileTree/common/TreeView/types.js +2 -0
- package/dist/esm/ui/FileTree/common/TreeView/types.js.map +1 -0
- package/dist/esm/ui/FileTree/common/index.js +5 -0
- package/dist/esm/ui/FileTree/common/index.js.map +1 -0
- package/dist/esm/ui/FileTree/hooks/index.js +2 -0
- package/dist/esm/ui/FileTree/hooks/index.js.map +1 -0
- package/dist/esm/ui/FileTree/hooks/useFileTree.js +11 -0
- package/dist/esm/ui/FileTree/hooks/useFileTree.js.map +1 -0
- package/dist/esm/ui/FileTree/index.js +10 -0
- package/dist/esm/ui/FileTree/index.js.map +1 -0
- package/dist/esm/ui/FileTree/styles.css +59 -0
- package/dist/esm/ui/FileTree/types.js +2 -0
- package/dist/esm/ui/{Button → FileTree}/types.js.map +1 -1
- package/dist/esm/ui/FileTree/utils/hashNodeName.js +11 -0
- package/dist/esm/ui/FileTree/utils/hashNodeName.js.map +1 -0
- package/dist/esm/ui/FileTree/utils/index.js +2 -0
- package/dist/esm/ui/FileTree/utils/index.js.map +1 -0
- package/dist/esm/ui/GitDiffViewer/Context.js +4 -0
- package/dist/esm/ui/GitDiffViewer/Context.js.map +1 -0
- package/dist/esm/ui/GitDiffViewer/Provider.js +25 -0
- package/dist/esm/ui/GitDiffViewer/Provider.js.map +1 -0
- package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/CodeDiffViewer.js +74 -0
- package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/CodeDiffViewer.js.map +1 -0
- package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/HighlighTheme.css +171 -0
- package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/common/AnnotatedDiffLine/AnnotatedDiffLine.js +38 -0
- package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/common/AnnotatedDiffLine/AnnotatedDiffLine.js.map +1 -0
- package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/common/AnnotatedDiffLine/index.js +4 -0
- package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/common/AnnotatedDiffLine/index.js.map +1 -0
- package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/common/AnnotatedDiffLine/styles.css +15 -0
- package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/common/AnnotatedDiffLine/types.js +3 -0
- package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/common/AnnotatedDiffLine/types.js.map +1 -0
- package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/DiffLine.js +36 -0
- package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/DiffLine.js.map +1 -0
- package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/index.js +4 -0
- package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/index.js.map +1 -0
- package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/styles.css +118 -0
- package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/types.js +2 -0
- package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/types.js.map +1 -0
- package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/common/icons.js +3 -0
- package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/common/icons.js.map +1 -0
- package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/common/index.js +2 -0
- package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/common/index.js.map +1 -0
- package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/constants.js +2 -0
- package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/constants.js.map +1 -0
- package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/index.js +5 -0
- package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/index.js.map +1 -0
- package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/styles.css +27 -0
- package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/types.js +2 -0
- package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/types.js.map +1 -0
- package/dist/esm/ui/GitDiffViewer/common/FileHeader/FileHeader.js +36 -0
- package/dist/esm/ui/GitDiffViewer/common/FileHeader/FileHeader.js.map +1 -0
- package/dist/esm/ui/GitDiffViewer/common/FileHeader/index.js +4 -0
- package/dist/esm/ui/GitDiffViewer/common/FileHeader/index.js.map +1 -0
- package/dist/esm/ui/GitDiffViewer/common/FileHeader/styles.css +56 -0
- package/dist/esm/ui/GitDiffViewer/common/FileHeader/types.js +2 -0
- package/dist/esm/ui/GitDiffViewer/common/FileHeader/types.js.map +1 -0
- package/dist/esm/ui/GitDiffViewer/common/index.js +3 -0
- package/dist/esm/ui/GitDiffViewer/common/index.js.map +1 -0
- package/dist/esm/ui/GitDiffViewer/hooks/index.js +2 -0
- package/dist/esm/ui/GitDiffViewer/hooks/index.js.map +1 -0
- package/dist/esm/ui/GitDiffViewer/hooks/useGitDiffViewer.js +11 -0
- package/dist/esm/ui/GitDiffViewer/hooks/useGitDiffViewer.js.map +1 -0
- package/dist/esm/ui/GitDiffViewer/index.js +9 -0
- package/dist/esm/ui/GitDiffViewer/index.js.map +1 -0
- package/dist/esm/ui/GitDiffViewer/styles.css +26 -0
- package/dist/esm/ui/GitDiffViewer/types.js +2 -0
- package/dist/esm/ui/GitDiffViewer/types.js.map +1 -0
- package/dist/esm/ui/GitDiffViewer/utils/highlightDiffHunkLines.js +52 -0
- package/dist/esm/ui/GitDiffViewer/utils/highlightDiffHunkLines.js.map +1 -0
- package/dist/esm/ui/GitDiffViewer/utils/index.js +3 -0
- package/dist/esm/ui/GitDiffViewer/utils/index.js.map +1 -0
- package/dist/esm/ui/GitDiffViewer/utils/parseGitDiff.js +96 -0
- package/dist/esm/ui/GitDiffViewer/utils/parseGitDiff.js.map +1 -0
- package/dist/esm/ui/MarkdownEditor/MarkdownEditor.js +75 -0
- package/dist/esm/ui/MarkdownEditor/MarkdownEditor.js.map +1 -0
- package/dist/esm/ui/MarkdownEditor/common/Toolbar/Toolbar.js +52 -0
- package/dist/esm/ui/MarkdownEditor/common/Toolbar/Toolbar.js.map +1 -0
- package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Button/Button.js +19 -0
- package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Button/Button.js.map +1 -0
- package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Button/index.js +4 -0
- package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Button/index.js.map +1 -0
- package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Button/styles.css +17 -0
- package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Button/types.js +2 -0
- package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Button/types.js.map +1 -0
- package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Group/Group.js +13 -0
- package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Group/Group.js.map +1 -0
- package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Group/index.js +4 -0
- package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Group/index.js.map +1 -0
- package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Group/styles.css +7 -0
- package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Group/types.js +2 -0
- package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Group/types.js.map +1 -0
- package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Separator/Separator.js +13 -0
- package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Separator/Separator.js.map +1 -0
- package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Separator/index.js +4 -0
- package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Separator/index.js.map +1 -0
- package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Separator/styles.css +7 -0
- package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Separator/types.js +2 -0
- package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Separator/types.js.map +1 -0
- package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/index.js +4 -0
- package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/index.js.map +1 -0
- package/dist/esm/ui/MarkdownEditor/common/Toolbar/index.js +9 -0
- package/dist/esm/ui/MarkdownEditor/common/Toolbar/index.js.map +1 -0
- package/dist/esm/ui/MarkdownEditor/common/Toolbar/styles.css +16 -0
- package/dist/esm/ui/MarkdownEditor/common/Toolbar/types.js +2 -0
- package/dist/esm/ui/MarkdownEditor/common/Toolbar/types.js.map +1 -0
- package/dist/esm/ui/MarkdownEditor/common/ViewModeTabs/ViewModeTabs.js +34 -0
- package/dist/esm/ui/MarkdownEditor/common/ViewModeTabs/ViewModeTabs.js.map +1 -0
- package/dist/esm/ui/MarkdownEditor/common/ViewModeTabs/index.js +4 -0
- package/dist/esm/ui/MarkdownEditor/common/ViewModeTabs/index.js.map +1 -0
- package/dist/esm/ui/MarkdownEditor/common/ViewModeTabs/styles.css +42 -0
- package/dist/esm/ui/MarkdownEditor/common/ViewModeTabs/types.js +2 -0
- package/dist/esm/ui/MarkdownEditor/common/ViewModeTabs/types.js.map +1 -0
- package/dist/esm/ui/MarkdownEditor/common/icons.js +10 -0
- package/dist/esm/ui/MarkdownEditor/common/icons.js.map +1 -0
- package/dist/esm/ui/MarkdownEditor/common/index.js +4 -0
- package/dist/esm/ui/MarkdownEditor/common/index.js.map +1 -0
- package/dist/esm/ui/MarkdownEditor/hooks/index.js +2 -0
- package/dist/esm/ui/MarkdownEditor/hooks/index.js.map +1 -0
- package/dist/esm/ui/MarkdownEditor/hooks/useEditor.js +274 -0
- package/dist/esm/ui/MarkdownEditor/hooks/useEditor.js.map +1 -0
- package/dist/esm/ui/MarkdownEditor/index.js +4 -0
- package/dist/esm/ui/MarkdownEditor/index.js.map +1 -0
- package/dist/esm/ui/MarkdownEditor/styles.css +83 -0
- package/dist/esm/ui/MarkdownEditor/types.js +2 -0
- package/dist/esm/ui/MarkdownEditor/types.js.map +1 -0
- package/dist/esm/ui/RelativeTime/RelativeTime.js +66 -0
- package/dist/esm/ui/RelativeTime/RelativeTime.js.map +1 -0
- package/dist/esm/ui/RelativeTime/index.js +4 -0
- package/dist/esm/ui/RelativeTime/index.js.map +1 -0
- package/dist/esm/ui/RelativeTime/types.js +2 -0
- package/dist/esm/ui/{Chip → RelativeTime}/types.js.map +1 -1
- package/dist/esm/ui/RelativeTime/utils/constants.js +6 -0
- package/dist/esm/ui/RelativeTime/utils/constants.js.map +1 -0
- package/dist/esm/ui/RelativeTime/utils/formatHumanTime.js +43 -0
- package/dist/esm/ui/RelativeTime/utils/formatHumanTime.js.map +1 -0
- package/dist/esm/ui/RelativeTime/utils/getOptimalUpdateInterval.js +24 -0
- package/dist/esm/ui/RelativeTime/utils/getOptimalUpdateInterval.js.map +1 -0
- package/dist/esm/ui/RelativeTime/utils/index.js +4 -0
- package/dist/esm/ui/RelativeTime/utils/index.js.map +1 -0
- package/dist/esm/ui/RelativeTime/utils/parseInstant.js +22 -0
- package/dist/esm/ui/RelativeTime/utils/parseInstant.js.map +1 -0
- package/dist/esm/ui/index.js +6 -1
- package/dist/esm/ui/index.js.map +1 -1
- package/dist/types/ui/DiffChangeMarker/DiffChangeMarker.d.ts +11 -0
- package/dist/types/ui/DiffChangeMarker/DiffChangeMarker.d.ts.map +1 -0
- package/dist/types/ui/DiffChangeMarker/common/DetailedChangeMarker/DetailedChangeMarker.d.ts +6 -0
- package/dist/types/ui/DiffChangeMarker/common/DetailedChangeMarker/DetailedChangeMarker.d.ts.map +1 -0
- package/dist/types/ui/DiffChangeMarker/common/DetailedChangeMarker/index.d.ts +3 -0
- package/dist/types/ui/DiffChangeMarker/common/DetailedChangeMarker/index.d.ts.map +1 -0
- package/dist/types/ui/DiffChangeMarker/common/DetailedChangeMarker/types.d.ts +10 -0
- package/dist/types/ui/DiffChangeMarker/common/DetailedChangeMarker/types.d.ts.map +1 -0
- package/dist/types/ui/DiffChangeMarker/common/SimpleChangeMarker/SimpleChangeMarker.d.ts +6 -0
- package/dist/types/ui/DiffChangeMarker/common/SimpleChangeMarker/SimpleChangeMarker.d.ts.map +1 -0
- package/dist/types/ui/DiffChangeMarker/common/SimpleChangeMarker/index.d.ts +3 -0
- package/dist/types/ui/DiffChangeMarker/common/SimpleChangeMarker/index.d.ts.map +1 -0
- package/dist/types/ui/DiffChangeMarker/common/SimpleChangeMarker/types.d.ts +9 -0
- package/dist/types/ui/DiffChangeMarker/common/SimpleChangeMarker/types.d.ts.map +1 -0
- package/dist/types/ui/DiffChangeMarker/common/index.d.ts +3 -0
- package/dist/types/ui/DiffChangeMarker/common/index.d.ts.map +1 -0
- package/dist/types/ui/DiffChangeMarker/icons.d.ts +4 -0
- package/dist/types/ui/DiffChangeMarker/icons.d.ts.map +1 -0
- package/dist/types/ui/DiffChangeMarker/index.d.ts +3 -0
- package/dist/types/ui/DiffChangeMarker/index.d.ts.map +1 -0
- package/dist/types/ui/DiffChangeMarker/types.d.ts +18 -0
- package/dist/types/ui/DiffChangeMarker/types.d.ts.map +1 -0
- package/dist/types/ui/EditableBlock/Context.d.ts +4 -0
- package/dist/types/ui/EditableBlock/Context.d.ts.map +1 -0
- package/dist/types/ui/EditableBlock/EditableBlock.d.ts +10 -0
- package/dist/types/ui/EditableBlock/EditableBlock.d.ts.map +1 -0
- package/dist/types/ui/EditableBlock/hooks/index.d.ts +2 -0
- package/dist/types/ui/EditableBlock/hooks/index.d.ts.map +1 -0
- package/dist/types/ui/EditableBlock/hooks/useEditableBlock.d.ts +4 -0
- package/dist/types/ui/EditableBlock/hooks/useEditableBlock.d.ts.map +1 -0
- package/dist/types/ui/EditableBlock/index.d.ts +3 -0
- package/dist/types/ui/EditableBlock/index.d.ts.map +1 -0
- package/dist/types/ui/EditableBlock/types.d.ts +26 -0
- package/dist/types/ui/EditableBlock/types.d.ts.map +1 -0
- package/dist/types/ui/FileTree/Context.d.ts +4 -0
- package/dist/types/ui/FileTree/Context.d.ts.map +1 -0
- package/dist/types/ui/FileTree/Provider.d.ts +7 -0
- package/dist/types/ui/FileTree/Provider.d.ts.map +1 -0
- package/dist/types/ui/FileTree/common/File/File.d.ts +10 -0
- package/dist/types/ui/FileTree/common/File/File.d.ts.map +1 -0
- package/dist/types/ui/FileTree/common/File/index.d.ts +3 -0
- package/dist/types/ui/FileTree/common/File/index.d.ts.map +1 -0
- package/dist/types/ui/FileTree/common/File/types.d.ts +16 -0
- package/dist/types/ui/FileTree/common/File/types.d.ts.map +1 -0
- package/dist/types/ui/FileTree/common/Folder/Folder.d.ts +10 -0
- package/dist/types/ui/FileTree/common/Folder/Folder.d.ts.map +1 -0
- package/dist/types/ui/FileTree/common/Folder/index.d.ts +3 -0
- package/dist/types/ui/FileTree/common/Folder/index.d.ts.map +1 -0
- package/dist/types/ui/FileTree/common/Folder/types.d.ts +16 -0
- package/dist/types/ui/FileTree/common/Folder/types.d.ts.map +1 -0
- package/dist/types/ui/FileTree/common/IndentationBlock/IndentationBlock.d.ts +10 -0
- package/dist/types/ui/FileTree/common/IndentationBlock/IndentationBlock.d.ts.map +1 -0
- package/dist/types/ui/FileTree/common/IndentationBlock/index.d.ts +3 -0
- package/dist/types/ui/FileTree/common/IndentationBlock/index.d.ts.map +1 -0
- package/dist/types/ui/FileTree/common/IndentationBlock/types.d.ts +12 -0
- package/dist/types/ui/FileTree/common/IndentationBlock/types.d.ts.map +1 -0
- package/dist/types/ui/FileTree/common/Node/Context.d.ts +5 -0
- package/dist/types/ui/FileTree/common/Node/Context.d.ts.map +1 -0
- package/dist/types/ui/FileTree/common/Node/Provider.d.ts +6 -0
- package/dist/types/ui/FileTree/common/Node/Provider.d.ts.map +1 -0
- package/dist/types/ui/FileTree/common/Node/hooks/index.d.ts +2 -0
- package/dist/types/ui/FileTree/common/Node/hooks/index.d.ts.map +1 -0
- package/dist/types/ui/FileTree/common/Node/hooks/useNode.d.ts +3 -0
- package/dist/types/ui/FileTree/common/Node/hooks/useNode.d.ts.map +1 -0
- package/dist/types/ui/FileTree/common/Node/index.d.ts +5 -0
- package/dist/types/ui/FileTree/common/Node/index.d.ts.map +1 -0
- package/dist/types/ui/FileTree/common/Node/types.d.ts +28 -0
- package/dist/types/ui/FileTree/common/Node/types.d.ts.map +1 -0
- package/dist/types/ui/FileTree/common/SearchBox/SearchBox.d.ts +10 -0
- package/dist/types/ui/FileTree/common/SearchBox/SearchBox.d.ts.map +1 -0
- package/dist/types/ui/FileTree/common/SearchBox/index.d.ts +3 -0
- package/dist/types/ui/FileTree/common/SearchBox/index.d.ts.map +1 -0
- package/dist/types/ui/FileTree/common/SearchBox/types.d.ts +10 -0
- package/dist/types/ui/FileTree/common/SearchBox/types.d.ts.map +1 -0
- package/dist/types/ui/FileTree/common/TreeView/TreeView.d.ts +16 -0
- package/dist/types/ui/FileTree/common/TreeView/TreeView.d.ts.map +1 -0
- package/dist/types/ui/FileTree/common/TreeView/index.d.ts +3 -0
- package/dist/types/ui/FileTree/common/TreeView/index.d.ts.map +1 -0
- package/dist/types/ui/FileTree/common/TreeView/types.d.ts +20 -0
- package/dist/types/ui/FileTree/common/TreeView/types.d.ts.map +1 -0
- package/dist/types/ui/FileTree/common/index.d.ts +5 -0
- package/dist/types/ui/FileTree/common/index.d.ts.map +1 -0
- package/dist/types/ui/FileTree/hooks/index.d.ts +2 -0
- package/dist/types/ui/FileTree/hooks/index.d.ts.map +1 -0
- package/dist/types/ui/FileTree/hooks/useFileTree.d.ts +3 -0
- package/dist/types/ui/FileTree/hooks/useFileTree.d.ts.map +1 -0
- package/dist/types/ui/FileTree/index.d.ts +5 -0
- package/dist/types/ui/FileTree/index.d.ts.map +1 -0
- package/dist/types/ui/FileTree/types.d.ts +73 -0
- package/dist/types/ui/FileTree/types.d.ts.map +1 -0
- package/dist/types/ui/FileTree/utils/hashNodeName.d.ts +3 -0
- package/dist/types/ui/FileTree/utils/hashNodeName.d.ts.map +1 -0
- package/dist/types/ui/FileTree/utils/index.d.ts +2 -0
- package/dist/types/ui/FileTree/utils/index.d.ts.map +1 -0
- package/dist/types/ui/GitDiffViewer/Context.d.ts +4 -0
- package/dist/types/ui/GitDiffViewer/Context.d.ts.map +1 -0
- package/dist/types/ui/GitDiffViewer/Provider.d.ts +5 -0
- package/dist/types/ui/GitDiffViewer/Provider.d.ts.map +1 -0
- package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/CodeDiffViewer.d.ts +7 -0
- package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/CodeDiffViewer.d.ts.map +1 -0
- package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/common/AnnotatedDiffLine/AnnotatedDiffLine.d.ts +10 -0
- package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/common/AnnotatedDiffLine/AnnotatedDiffLine.d.ts.map +1 -0
- package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/common/AnnotatedDiffLine/index.d.ts +3 -0
- package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/common/AnnotatedDiffLine/index.d.ts.map +1 -0
- package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/common/AnnotatedDiffLine/types.d.ts +21 -0
- package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/common/AnnotatedDiffLine/types.d.ts.map +1 -0
- package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/DiffLine.d.ts +11 -0
- package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/DiffLine.d.ts.map +1 -0
- package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/index.d.ts +3 -0
- package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/index.d.ts.map +1 -0
- package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/types.d.ts +34 -0
- package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/types.d.ts.map +1 -0
- package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/common/icons.d.ts +2 -0
- package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/common/icons.d.ts.map +1 -0
- package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/common/index.d.ts +2 -0
- package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/common/index.d.ts.map +1 -0
- package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/constants.d.ts +2 -0
- package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/constants.d.ts.map +1 -0
- package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/index.d.ts +4 -0
- package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/index.d.ts.map +1 -0
- package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/types.d.ts +34 -0
- package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/types.d.ts.map +1 -0
- package/dist/types/ui/GitDiffViewer/common/FileHeader/FileHeader.d.ts +15 -0
- package/dist/types/ui/GitDiffViewer/common/FileHeader/FileHeader.d.ts.map +1 -0
- package/dist/types/ui/GitDiffViewer/common/FileHeader/index.d.ts +3 -0
- package/dist/types/ui/GitDiffViewer/common/FileHeader/index.d.ts.map +1 -0
- package/dist/types/ui/GitDiffViewer/common/FileHeader/types.d.ts +17 -0
- package/dist/types/ui/GitDiffViewer/common/FileHeader/types.d.ts.map +1 -0
- package/dist/types/ui/GitDiffViewer/common/index.d.ts +3 -0
- package/dist/types/ui/GitDiffViewer/common/index.d.ts.map +1 -0
- package/dist/types/ui/GitDiffViewer/hooks/index.d.ts +2 -0
- package/dist/types/ui/GitDiffViewer/hooks/index.d.ts.map +1 -0
- package/dist/types/ui/GitDiffViewer/hooks/useGitDiffViewer.d.ts +3 -0
- package/dist/types/ui/GitDiffViewer/hooks/useGitDiffViewer.d.ts.map +1 -0
- package/dist/types/ui/GitDiffViewer/index.d.ts +6 -0
- package/dist/types/ui/GitDiffViewer/index.d.ts.map +1 -0
- package/dist/types/ui/GitDiffViewer/types.d.ts +80 -0
- package/dist/types/ui/GitDiffViewer/types.d.ts.map +1 -0
- package/dist/types/ui/GitDiffViewer/utils/highlightDiffHunkLines.d.ts +4 -0
- package/dist/types/ui/GitDiffViewer/utils/highlightDiffHunkLines.d.ts.map +1 -0
- package/dist/types/ui/GitDiffViewer/utils/index.d.ts +3 -0
- package/dist/types/ui/GitDiffViewer/utils/index.d.ts.map +1 -0
- package/dist/types/ui/GitDiffViewer/utils/parseGitDiff.d.ts +4 -0
- package/dist/types/ui/GitDiffViewer/utils/parseGitDiff.d.ts.map +1 -0
- package/dist/types/ui/MarkdownEditor/MarkdownEditor.d.ts +10 -0
- package/dist/types/ui/MarkdownEditor/MarkdownEditor.d.ts.map +1 -0
- package/dist/types/ui/MarkdownEditor/common/Toolbar/Toolbar.d.ts +8 -0
- package/dist/types/ui/MarkdownEditor/common/Toolbar/Toolbar.d.ts.map +1 -0
- package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Button/Button.d.ts +9 -0
- package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Button/Button.d.ts.map +1 -0
- package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Button/index.d.ts +3 -0
- package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Button/index.d.ts.map +1 -0
- package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Button/types.d.ts +14 -0
- package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Button/types.d.ts.map +1 -0
- package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Group/Group.d.ts +9 -0
- package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Group/Group.d.ts.map +1 -0
- package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Group/index.d.ts +3 -0
- package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Group/index.d.ts.map +1 -0
- package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Group/types.d.ts +14 -0
- package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Group/types.d.ts.map +1 -0
- package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Separator/Separator.d.ts +9 -0
- package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Separator/Separator.d.ts.map +1 -0
- package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Separator/index.d.ts +3 -0
- package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Separator/index.d.ts.map +1 -0
- package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Separator/types.d.ts +10 -0
- package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Separator/types.d.ts.map +1 -0
- package/dist/types/ui/MarkdownEditor/common/Toolbar/common/index.d.ts +4 -0
- package/dist/types/ui/MarkdownEditor/common/Toolbar/common/index.d.ts.map +1 -0
- package/dist/types/ui/MarkdownEditor/common/Toolbar/index.d.ts +4 -0
- package/dist/types/ui/MarkdownEditor/common/Toolbar/index.d.ts.map +1 -0
- package/dist/types/ui/MarkdownEditor/common/Toolbar/types.d.ts +20 -0
- package/dist/types/ui/MarkdownEditor/common/Toolbar/types.d.ts.map +1 -0
- package/dist/types/ui/MarkdownEditor/common/ViewModeTabs/ViewModeTabs.d.ts +9 -0
- package/dist/types/ui/MarkdownEditor/common/ViewModeTabs/ViewModeTabs.d.ts.map +1 -0
- package/dist/types/ui/MarkdownEditor/common/ViewModeTabs/index.d.ts +3 -0
- package/dist/types/ui/MarkdownEditor/common/ViewModeTabs/index.d.ts.map +1 -0
- package/dist/types/ui/MarkdownEditor/common/ViewModeTabs/types.d.ts +14 -0
- package/dist/types/ui/MarkdownEditor/common/ViewModeTabs/types.d.ts.map +1 -0
- package/dist/types/ui/MarkdownEditor/common/icons.d.ts +9 -0
- package/dist/types/ui/MarkdownEditor/common/icons.d.ts.map +1 -0
- package/dist/types/ui/MarkdownEditor/common/index.d.ts +4 -0
- package/dist/types/ui/MarkdownEditor/common/index.d.ts.map +1 -0
- package/dist/types/ui/MarkdownEditor/hooks/index.d.ts +2 -0
- package/dist/types/ui/MarkdownEditor/hooks/index.d.ts.map +1 -0
- package/dist/types/ui/MarkdownEditor/hooks/useEditor.d.ts +40 -0
- package/dist/types/ui/MarkdownEditor/hooks/useEditor.d.ts.map +1 -0
- package/dist/types/ui/MarkdownEditor/index.d.ts +3 -0
- package/dist/types/ui/MarkdownEditor/index.d.ts.map +1 -0
- package/dist/types/ui/MarkdownEditor/types.d.ts +47 -0
- package/dist/types/ui/MarkdownEditor/types.d.ts.map +1 -0
- package/dist/types/ui/RelativeTime/RelativeTime.d.ts +11 -0
- package/dist/types/ui/RelativeTime/RelativeTime.d.ts.map +1 -0
- package/dist/types/ui/RelativeTime/index.d.ts +3 -0
- package/dist/types/ui/RelativeTime/index.d.ts.map +1 -0
- package/dist/types/ui/RelativeTime/types.d.ts +36 -0
- package/dist/types/ui/RelativeTime/types.d.ts.map +1 -0
- package/dist/types/ui/RelativeTime/utils/constants.d.ts +6 -0
- package/dist/types/ui/RelativeTime/utils/constants.d.ts.map +1 -0
- package/dist/types/ui/RelativeTime/utils/formatHumanTime.d.ts +21 -0
- package/dist/types/ui/RelativeTime/utils/formatHumanTime.d.ts.map +1 -0
- package/dist/types/ui/RelativeTime/utils/getOptimalUpdateInterval.d.ts +8 -0
- package/dist/types/ui/RelativeTime/utils/getOptimalUpdateInterval.d.ts.map +1 -0
- package/dist/types/ui/RelativeTime/utils/index.d.ts +4 -0
- package/dist/types/ui/RelativeTime/utils/index.d.ts.map +1 -0
- package/dist/types/ui/RelativeTime/utils/parseInstant.d.ts +9 -0
- package/dist/types/ui/RelativeTime/utils/parseInstant.d.ts.map +1 -0
- package/dist/types/ui/index.d.ts +6 -1
- package/dist/types/ui/index.d.ts.map +1 -1
- package/package.json +28 -24
- package/dist/esm/ui/Button/Button.js +0 -10
- package/dist/esm/ui/Button/Button.js.map +0 -1
- package/dist/esm/ui/Button/index.js +0 -2
- package/dist/esm/ui/Button/index.js.map +0 -1
- package/dist/esm/ui/Button/styles.css +0 -63
- package/dist/esm/ui/Chip/Chip.css +0 -79
- package/dist/esm/ui/Chip/Chip.js +0 -15
- package/dist/esm/ui/Chip/Chip.js.map +0 -1
- package/dist/esm/ui/Chip/index.js +0 -4
- package/dist/esm/ui/Chip/index.js.map +0 -1
- package/dist/types/ui/Button/Button.d.ts +0 -6
- package/dist/types/ui/Button/Button.d.ts.map +0 -1
- package/dist/types/ui/Button/index.d.ts +0 -3
- package/dist/types/ui/Button/index.d.ts.map +0 -1
- package/dist/types/ui/Button/types.d.ts +0 -15
- package/dist/types/ui/Button/types.d.ts.map +0 -1
- package/dist/types/ui/Chip/Chip.d.ts +0 -10
- package/dist/types/ui/Chip/Chip.d.ts.map +0 -1
- package/dist/types/ui/Chip/index.d.ts +0 -3
- package/dist/types/ui/Chip/index.d.ts.map +0 -1
- package/dist/types/ui/Chip/types.d.ts +0 -27
- package/dist/types/ui/Chip/types.d.ts.map +0 -1
- /package/dist/esm/ui/{Button → DiffChangeMarker/common/DetailedChangeMarker}/types.js +0 -0
- /package/dist/esm/ui/{Chip → DiffChangeMarker/common/SimpleChangeMarker}/types.js +0 -0
@@ -0,0 +1,16 @@
|
|
1
|
+
import type React from "react";
|
2
|
+
export interface FileProps {
|
3
|
+
/** A unique identifier for the File */
|
4
|
+
id?: string;
|
5
|
+
/** Additional CSS classes */
|
6
|
+
className?: string;
|
7
|
+
/** Inline styles */
|
8
|
+
style?: React.CSSProperties;
|
9
|
+
/** File name */
|
10
|
+
name: string;
|
11
|
+
/**
|
12
|
+
* Shows a marker to the right of the file name.
|
13
|
+
*/
|
14
|
+
marker?: React.ReactNode;
|
15
|
+
}
|
16
|
+
//# sourceMappingURL=types.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/FileTree/common/File/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,WAAW,SAAS;IACxB,uCAAuC;IACvC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oBAAoB;IACpB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,gBAAgB;IAChB,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import type React from "react";
|
2
|
+
import "./styles.css";
|
3
|
+
import type { FolderProps } from "./types.js";
|
4
|
+
/**
|
5
|
+
* description of the Folder component
|
6
|
+
* @returns {React.ReactElement} - Rendered Folder
|
7
|
+
*/
|
8
|
+
declare const Folder: ({ id, children, className, style, name, defaultOpen, }: FolderProps) => React.ReactElement;
|
9
|
+
export default Folder;
|
10
|
+
//# sourceMappingURL=Folder.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Folder.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/FileTree/common/Folder/Folder.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAE9C;;;GAGG;AACH,QAAA,MAAM,MAAM,GAAI,wDAOb,WAAW,KAAG,KAAK,CAAC,YAatB,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/FileTree/common/Folder/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AAChD,cAAc,YAAY,CAAC"}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import type React from "react";
|
2
|
+
export interface FolderProps {
|
3
|
+
/** A unique identifier for the Folder */
|
4
|
+
id?: string;
|
5
|
+
/** Additional CSS classes */
|
6
|
+
className?: string;
|
7
|
+
/** Child elements */
|
8
|
+
children?: React.ReactNode;
|
9
|
+
/** Inline styles */
|
10
|
+
style?: React.CSSProperties;
|
11
|
+
/** Folder name */
|
12
|
+
name: string;
|
13
|
+
/** Whether the folder is expanded by default */
|
14
|
+
defaultOpen?: boolean;
|
15
|
+
}
|
16
|
+
//# sourceMappingURL=types.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/FileTree/common/Folder/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,WAAW,WAAW;IAC1B,yCAAyC;IACzC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qBAAqB;IACrB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,oBAAoB;IACpB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAE5B,kBAAkB;IAClB,IAAI,EAAE,MAAM,CAAC;IAEb,gDAAgD;IAChD,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import type React from "react";
|
2
|
+
import "./styles.css";
|
3
|
+
import type { IndentationBlockProps } from "./types.js";
|
4
|
+
/**
|
5
|
+
* description of the IndentationBlock component
|
6
|
+
* @returns {React.ReactElement} - Rendered IndentationBlock
|
7
|
+
*/
|
8
|
+
declare const IndentationBlock: ({ id, className, style, depth, }: IndentationBlockProps) => React.ReactElement | null;
|
9
|
+
export default IndentationBlock;
|
10
|
+
//# sourceMappingURL=IndentationBlock.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"IndentationBlock.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/FileTree/common/IndentationBlock/IndentationBlock.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAIxD;;;GAGG;AACH,QAAA,MAAM,gBAAgB,GAAI,kCAKvB,qBAAqB,KAAG,KAAK,CAAC,YAAY,GAAG,IAkB/C,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/FileTree/common/IndentationBlock/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACpE,cAAc,YAAY,CAAC"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import type React from "react";
|
2
|
+
export interface IndentationBlockProps {
|
3
|
+
/** A unique identifier for the IndentationBlock */
|
4
|
+
id?: string;
|
5
|
+
/** Additional CSS classes */
|
6
|
+
className?: string;
|
7
|
+
/** Inline styles */
|
8
|
+
style?: React.CSSProperties;
|
9
|
+
/** Depth of the indentation */
|
10
|
+
depth: number;
|
11
|
+
}
|
12
|
+
//# sourceMappingURL=types.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/FileTree/common/IndentationBlock/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,WAAW,qBAAqB;IACpC,mDAAmD;IACnD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oBAAoB;IACpB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,+BAA+B;IAC/B,KAAK,EAAE,MAAM,CAAC;CACf"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/FileTree/common/Node/Context.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjD,eAAO,MAAM,qBAAqB,EAAE,cAKnC,CAAC;AAEF,QAAA,MAAM,OAAO,yCAAuD,CAAC;AAErE,eAAe,OAAO,CAAC"}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import type React from "react";
|
2
|
+
import "./styles.css";
|
3
|
+
import type { ProviderProps } from "./types.js";
|
4
|
+
declare const Provider: ({ id, className, style, children, name, marker, ...nodeOptions }: ProviderProps) => React.ReactElement | null;
|
5
|
+
export default Provider;
|
6
|
+
//# sourceMappingURL=Provider.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/FileTree/common/Node/Provider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAS/B,OAAO,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAQhD,QAAA,MAAM,QAAQ,GAAI,kEAQf,aAAa,KAAG,KAAK,CAAC,YAAY,GAAG,IAiNvC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/FileTree/common/Node/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,cAAc,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useNode.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/FileTree/common/Node/hooks/useNode.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,OAAO,4CAOZ,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/FileTree/common/Node/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,cAAc,CAAC;AAClD,cAAc,kBAAkB,CAAC;AACjC,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,eAAe,CAAC;AAChD,mBAAmB,YAAY,CAAC"}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import type { FileTreeData } from "../../types.js";
|
2
|
+
export type ContextOptions = {
|
3
|
+
depth: number;
|
4
|
+
path: string;
|
5
|
+
addChildNode: (node: FileTreeData) => void;
|
6
|
+
childNodes: FileTreeData[];
|
7
|
+
};
|
8
|
+
export type FileOptions = {
|
9
|
+
nodeType: "file";
|
10
|
+
};
|
11
|
+
export type FolderOptions = {
|
12
|
+
nodeType: "folder";
|
13
|
+
defaultOpen?: boolean;
|
14
|
+
};
|
15
|
+
export type ProviderProps = {
|
16
|
+
/** A unique identifier for the Folder */
|
17
|
+
id?: string;
|
18
|
+
/** Additional CSS classes */
|
19
|
+
className?: string;
|
20
|
+
/** Child elements */
|
21
|
+
children?: React.ReactNode;
|
22
|
+
/** Inline styles */
|
23
|
+
style?: React.CSSProperties;
|
24
|
+
name: string;
|
25
|
+
/** Shows a marker to the right of the node */
|
26
|
+
marker?: React.ReactNode;
|
27
|
+
} & (FileOptions | FolderOptions);
|
28
|
+
//# sourceMappingURL=types.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/FileTree/common/Node/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,MAAM,MAAM,cAAc,GAAG;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IAEb,YAAY,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,IAAI,CAAC;IAC3C,UAAU,EAAE,YAAY,EAAE,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,EAAE,QAAQ,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,yCAAyC;IACzC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qBAAqB;IACrB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,oBAAoB;IACpB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,IAAI,EAAE,MAAM,CAAC;IAEb,8CAA8C;IAC9C,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B,GAAG,CAAC,WAAW,GAAG,aAAa,CAAC,CAAC"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import type React from "react";
|
2
|
+
import "./styles.css";
|
3
|
+
import type { SearchBoxProps } from "./types.js";
|
4
|
+
/**
|
5
|
+
* description of the SearchBox component
|
6
|
+
* @returns {React.ReactElement} - Rendered SearchBox
|
7
|
+
*/
|
8
|
+
declare const SearchBox: ({ id, className, style, }: SearchBoxProps) => React.ReactElement | null;
|
9
|
+
export default SearchBox;
|
10
|
+
//# sourceMappingURL=SearchBox.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"SearchBox.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/FileTree/common/SearchBox/SearchBox.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAIjD;;;GAGG;AACH,QAAA,MAAM,SAAS,GAAI,2BAIhB,cAAc,KAAG,KAAK,CAAC,YAAY,GAAG,IAyDxC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/FileTree/common/SearchBox/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,gBAAgB,CAAC;AACtD,cAAc,YAAY,CAAC"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import type React from "react";
|
2
|
+
export interface SearchBoxProps {
|
3
|
+
/** A unique identifier for the SearchBox */
|
4
|
+
id?: string;
|
5
|
+
/** Additional CSS classes */
|
6
|
+
className?: string;
|
7
|
+
/** Inline styles */
|
8
|
+
style?: React.CSSProperties;
|
9
|
+
}
|
10
|
+
//# sourceMappingURL=types.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/FileTree/common/SearchBox/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,WAAW,cAAc;IAC7B,4CAA4C;IAC5C,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oBAAoB;IACpB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B"}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import type React from "react";
|
2
|
+
import type { TreeViewProps } from "./types.js";
|
3
|
+
/**
|
4
|
+
* Render a tree view of the given file tree data
|
5
|
+
*
|
6
|
+
* @example
|
7
|
+
* <FileTree>
|
8
|
+
* <FileTree.SearchBox />
|
9
|
+
* <FileTree.TreeView tree={treeData} />
|
10
|
+
* </FileTree>
|
11
|
+
*
|
12
|
+
* @returns {React.ReactElement} - Rendered TreeView
|
13
|
+
*/
|
14
|
+
declare const TreeView: ({ tree, sortAlphabetically, defaultCollapsed, }: TreeViewProps) => React.ReactElement;
|
15
|
+
export default TreeView;
|
16
|
+
//# sourceMappingURL=TreeView.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"TreeView.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/FileTree/common/TreeView/TreeView.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD;;;;;;;;;;GAUG;AACH,QAAA,MAAM,QAAQ,GAAI,iDAIf,aAAa,KAAG,KAAK,CAAC,YA6DxB,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/FileTree/common/TreeView/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,eAAe,CAAC;AACpD,cAAc,YAAY,CAAC"}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import type { FileTreeData } from "../../types.js";
|
2
|
+
export interface TreeViewProps {
|
3
|
+
/**
|
4
|
+
* The list of files and folders to display in the tree
|
5
|
+
*/
|
6
|
+
tree: FileTreeData[];
|
7
|
+
/**
|
8
|
+
* Should the tree be sorted alphabetically
|
9
|
+
*
|
10
|
+
* @default false
|
11
|
+
*/
|
12
|
+
sortAlphabetically?: boolean;
|
13
|
+
/**
|
14
|
+
* The default collapsed state of each folder in the tree
|
15
|
+
*
|
16
|
+
* @default false
|
17
|
+
*/
|
18
|
+
defaultCollapsed?: boolean;
|
19
|
+
}
|
20
|
+
//# sourceMappingURL=types.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/FileTree/common/TreeView/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,IAAI,EAAE,YAAY,EAAE,CAAC;IACrB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/ui/FileTree/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/ui/FileTree/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,kBAAkB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useFileTree.d.ts","sourceRoot":"","sources":["../../../../../src/ui/FileTree/hooks/useFileTree.tsx"],"names":[],"mappings":"AAGA,QAAA,MAAM,WAAW,4CAMhB,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
@@ -0,0 +1,5 @@
|
|
1
|
+
export * from "./hooks/index.js";
|
2
|
+
export type { FileTreeData, FileNode as FileTreeFileNode, FolderNode as FileTreeFolderNode, } from "./types.js";
|
3
|
+
import type { FileTreeComponent } from "./types.js";
|
4
|
+
export declare const FileTree: FileTreeComponent;
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/FileTree/index.ts"],"names":[],"mappings":"AACA,cAAc,kBAAkB,CAAC;AACjC,YAAY,EACV,YAAY,EACZ,QAAQ,IAAI,gBAAgB,EAC5B,UAAU,IAAI,kBAAkB,GACjC,MAAM,YAAY,CAAC;AAIpB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAEpD,eAAO,MAAM,QAAQ,EAAe,iBAAiB,CAAC"}
|
@@ -0,0 +1,73 @@
|
|
1
|
+
import type { AllOrNone } from "@canonical/utils";
|
2
|
+
import type React from "react";
|
3
|
+
import type { FileProps, FolderProps, SearchBoxProps, TreeViewProps } from "./common/index.js";
|
4
|
+
export type BaseNode = {
|
5
|
+
name: string;
|
6
|
+
path?: string;
|
7
|
+
};
|
8
|
+
export type FileNode = BaseNode & {
|
9
|
+
type: "file";
|
10
|
+
marker?: React.ReactNode;
|
11
|
+
};
|
12
|
+
export type FolderNode = BaseNode & {
|
13
|
+
type: "folder";
|
14
|
+
children?: Array<FileTreeData>;
|
15
|
+
};
|
16
|
+
export type FileTreeData = FolderNode | FileNode;
|
17
|
+
export type SearchOptions = {
|
18
|
+
/**
|
19
|
+
* Files and folders to display if matching the search query.
|
20
|
+
*/
|
21
|
+
searchQuery: string;
|
22
|
+
/**
|
23
|
+
* Callback to update the search query.
|
24
|
+
*/
|
25
|
+
onSearch: (query: string) => void;
|
26
|
+
};
|
27
|
+
export type ExpansionOptions = {
|
28
|
+
/**
|
29
|
+
* Whether the folders are expandible (default is `false`).
|
30
|
+
*/
|
31
|
+
expandable: boolean;
|
32
|
+
};
|
33
|
+
export type FileSelectionOptions = {
|
34
|
+
/**
|
35
|
+
* The currently selected file item.
|
36
|
+
*/
|
37
|
+
selectedFile: FileTreeData | null;
|
38
|
+
/**
|
39
|
+
* Callback to select a file item.
|
40
|
+
*/
|
41
|
+
onSelectFile: (node: FileTreeData) => void;
|
42
|
+
};
|
43
|
+
export type UserContextOptions = AllOrNone<FileSelectionOptions> & AllOrNone<SearchOptions> & AllOrNone<ExpansionOptions>;
|
44
|
+
export type ManagedContextOptions = {
|
45
|
+
focusNextNode: (direction: "up" | "down") => void;
|
46
|
+
focusEndNode: (end: "start" | "end") => void;
|
47
|
+
focusNextSiblingCharacter: (character: string) => void;
|
48
|
+
};
|
49
|
+
export type ContextOptions = UserContextOptions & ManagedContextOptions;
|
50
|
+
export type ProviderOptions = {
|
51
|
+
/** A unique identifier for the SearchBox */
|
52
|
+
id?: string;
|
53
|
+
/** Additional CSS classes */
|
54
|
+
className?: string;
|
55
|
+
/** Inline styles */
|
56
|
+
style?: React.CSSProperties;
|
57
|
+
/**
|
58
|
+
* Consider using `FileTree.Folder` and `FileTree.File` components to build the file tree.
|
59
|
+
*/
|
60
|
+
children?: React.ReactNode;
|
61
|
+
/**
|
62
|
+
* The header of the file tree.
|
63
|
+
* Consider using `FileTree.Search` component to add search functionality.
|
64
|
+
*/
|
65
|
+
header?: React.ReactNode;
|
66
|
+
} & UserContextOptions;
|
67
|
+
export type FileTreeComponent = ((props: ProviderOptions) => React.ReactElement) & {
|
68
|
+
SearchBox: (props: SearchBoxProps) => React.ReactElement | null;
|
69
|
+
File: (props: FileProps) => React.ReactElement | null;
|
70
|
+
Folder: (props: FolderProps) => React.ReactElement | null;
|
71
|
+
TreeView: (props: TreeViewProps) => React.ReactElement | null;
|
72
|
+
};
|
73
|
+
//# sourceMappingURL=types.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/ui/FileTree/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EACV,SAAS,EACT,WAAW,EACX,cAAc,EACd,aAAa,EACd,MAAM,mBAAmB,CAAC;AAE3B,MAAM,MAAM,QAAQ,GAAG;IACrB,IAAI,EAAE,MAAM,CAAC;IAEb,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG,QAAQ,GAAG;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG;IAClC,IAAI,EAAE,QAAQ,CAAC;IACf,QAAQ,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,UAAU,GAAG,QAAQ,CAAC;AAEjD,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,YAAY,EAAE,YAAY,GAAG,IAAI,CAAC;IAClC;;OAEG;IACH,YAAY,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,IAAI,CAAC;CAC5C,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,SAAS,CAAC,oBAAoB,CAAC,GAC9D,SAAS,CAAC,aAAa,CAAC,GACxB,SAAS,CAAC,gBAAgB,CAAC,CAAC;AAC9B,MAAM,MAAM,qBAAqB,GAAG;IAClC,aAAa,EAAE,CAAC,SAAS,EAAE,IAAI,GAAG,MAAM,KAAK,IAAI,CAAC;IAClD,YAAY,EAAE,CAAC,GAAG,EAAE,OAAO,GAAG,KAAK,KAAK,IAAI,CAAC;IAC7C,yBAAyB,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;CACxD,CAAC;AACF,MAAM,MAAM,cAAc,GAAG,kBAAkB,GAAG,qBAAqB,CAAC;AAExE,MAAM,MAAM,eAAe,GAAG;IAC5B,4CAA4C;IAC5C,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oBAAoB;IACpB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;;;OAGG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B,GAAG,kBAAkB,CAAC;AAEvB,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAC/B,KAAK,EAAE,eAAe,KACnB,KAAK,CAAC,YAAY,CAAC,GAAG;IACzB,SAAS,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,KAAK,CAAC,YAAY,GAAG,IAAI,CAAC;IAChE,IAAI,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,KAAK,CAAC,YAAY,GAAG,IAAI,CAAC;IACtD,MAAM,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,KAAK,CAAC,YAAY,GAAG,IAAI,CAAC;IAC1D,QAAQ,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,KAAK,CAAC,YAAY,GAAG,IAAI,CAAC;CAC/D,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"hashNodeName.d.ts","sourceRoot":"","sources":["../../../../../src/ui/FileTree/utils/hashNodeName.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,YAAY,GAAI,MAAM,MAAM,WAQjC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/ui/FileTree/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,mBAAmB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../../../src/ui/GitDiffViewer/Context.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjD,QAAA,MAAM,oBAAoB,gDAA6C,CAAC;AAExE,eAAe,oBAAoB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../../src/ui/GitDiffViewer/Provider.tsx"],"names":[],"mappings":"AAEA,OAAO,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAIlD,QAAA,MAAM,QAAQ,GAAI,uDAMf,eAAe,KAAG,KAAK,CAAC,YAmC1B,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import type React from "react";
|
2
|
+
import "./HighlighTheme.css";
|
3
|
+
import "./styles.css";
|
4
|
+
import type { CodeDiffViewerProps } from "./types.js";
|
5
|
+
declare const _default: React.ForwardRefExoticComponent<CodeDiffViewerProps & React.RefAttributes<HTMLTableElement>>;
|
6
|
+
export default _default;
|
7
|
+
//# sourceMappingURL=CodeDiffViewer.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"CodeDiffViewer.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/GitDiffViewer/common/CodeDiffViewer/CodeDiffViewer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAY/B,OAAO,qBAAqB,CAAC;AAC7B,OAAO,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;;AA6HtD,wBAA0C"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import type React from "react";
|
2
|
+
import "./styles.css";
|
3
|
+
import type { AnnotatedDiffLineProps } from "./types.js";
|
4
|
+
/**
|
5
|
+
* A component that displays a diff line content, line decorations and AddComment component.
|
6
|
+
* @returns {React.ReactElement} - Rendered AnnotatedDiffLine
|
7
|
+
*/
|
8
|
+
declare const AnnotatedDiffLine: ({ newLineNumber, oldLineNumber, diffLineNumber, AddComment, onLineClick, type, ...rest }: AnnotatedDiffLineProps) => React.ReactElement;
|
9
|
+
export default AnnotatedDiffLine;
|
10
|
+
//# sourceMappingURL=AnnotatedDiffLine.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"AnnotatedDiffLine.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/GitDiffViewer/common/CodeDiffViewer/common/AnnotatedDiffLine/AnnotatedDiffLine.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAIzD;;;GAGG;AACH,QAAA,MAAM,iBAAiB,GAAI,0FAQxB,sBAAsB,KAAG,KAAK,CAAC,YA0DjC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/common/AnnotatedDiffLine/index.d.ts.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/GitDiffViewer/common/CodeDiffViewer/common/AnnotatedDiffLine/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AACtE,cAAc,YAAY,CAAC"}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import type { CodeDiffViewerAddComment, CodeDiffViewerLineSelectOptions } from "../../types.js";
|
2
|
+
import type { DiffContentLineProps } from "../DiffLine/types.js";
|
3
|
+
export type AnnotationOptions = {
|
4
|
+
/**
|
5
|
+
* The current line number in the new file.
|
6
|
+
*/
|
7
|
+
newLineNumber: number;
|
8
|
+
/**
|
9
|
+
* The current line number in the old file.
|
10
|
+
*/
|
11
|
+
oldLineNumber: number;
|
12
|
+
/**
|
13
|
+
* The current line number in the diff file.
|
14
|
+
* This is the line number that will be used to match the line decorations.
|
15
|
+
*/
|
16
|
+
diffLineNumber: number;
|
17
|
+
AddComment?: CodeDiffViewerAddComment;
|
18
|
+
onLineClick?: (options: CodeDiffViewerLineSelectOptions) => void;
|
19
|
+
};
|
20
|
+
export type AnnotatedDiffLineProps = Omit<DiffContentLineProps, "onLineClick"> & AnnotationOptions;
|
21
|
+
//# sourceMappingURL=types.d.ts.map
|
package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/common/AnnotatedDiffLine/types.d.ts.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/GitDiffViewer/common/CodeDiffViewer/common/AnnotatedDiffLine/types.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,wBAAwB,EACxB,+BAA+B,EAChC,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAEjE,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,wBAAwB,CAAC;IACtC,WAAW,CAAC,EAAE,CAAC,OAAO,EAAE,+BAA+B,KAAK,IAAI,CAAC;CAClE,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,IAAI,CAAC,oBAAoB,EAAE,aAAa,CAAC,GAC5E,iBAAiB,CAAC"}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import type React from "react";
|
2
|
+
import "./styles.css";
|
3
|
+
import type { DiffLineProps } from "./types.js";
|
4
|
+
/**
|
5
|
+
* Displays a single line of a diff as a table row with line numbers.
|
6
|
+
*
|
7
|
+
* @returns {React.ReactElement} - Rendered DiffLine
|
8
|
+
*/
|
9
|
+
declare const DiffLine: ({ id, className, style, onLineClick, ...props }: DiffLineProps) => React.ReactElement;
|
10
|
+
export default DiffLine;
|
11
|
+
//# sourceMappingURL=DiffLine.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"DiffLine.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/DiffLine.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAKhD;;;;GAIG;AACH,QAAA,MAAM,QAAQ,GAAI,iDAMf,aAAa,KAAG,KAAK,CAAC,YAyExB,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,eAAe,CAAC;AACpD,cAAc,YAAY,CAAC"}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
import type React from "react";
|
2
|
+
export type DiffContentLine = {
|
3
|
+
content: string;
|
4
|
+
} & ({
|
5
|
+
type: "add";
|
6
|
+
addLineNumber: number;
|
7
|
+
} | {
|
8
|
+
type: "remove";
|
9
|
+
removeLineNumber: number;
|
10
|
+
} | {
|
11
|
+
type: "context";
|
12
|
+
addLineNumber: number;
|
13
|
+
removeLineNumber: number;
|
14
|
+
});
|
15
|
+
export type DiffHunkLine = {
|
16
|
+
type: "hunk";
|
17
|
+
hunkHeader: string;
|
18
|
+
hunkIndex: number;
|
19
|
+
};
|
20
|
+
type DiffLineCommonProps = {
|
21
|
+
/** A unique identifier for the DiffLine */
|
22
|
+
id?: string;
|
23
|
+
/** Additional CSS classes */
|
24
|
+
className?: string;
|
25
|
+
/** Inline styles */
|
26
|
+
style?: React.CSSProperties;
|
27
|
+
/** Callback function for when a line is clicked. */
|
28
|
+
onLineClick?: (() => void) | undefined;
|
29
|
+
};
|
30
|
+
export type DiffContentLineProps = DiffLineCommonProps & DiffContentLine;
|
31
|
+
export type DiffHunkLineProps = DiffLineCommonProps & DiffHunkLine;
|
32
|
+
export type DiffLineProps = DiffContentLineProps | DiffHunkLineProps;
|
33
|
+
export {};
|
34
|
+
//# sourceMappingURL=types.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,MAAM,eAAe,GAAG;IAC5B,OAAO,EAAE,MAAM,CAAC;CACjB,GAAG,CACA;IACE,IAAI,EAAE,KAAK,CAAC;IACZ,aAAa,EAAE,MAAM,CAAC;CACvB,GACD;IACE,IAAI,EAAE,QAAQ,CAAC;IACf,gBAAgB,EAAE,MAAM,CAAC;CAC1B,GACD;IACE,IAAI,EAAE,SAAS,CAAC;IAEhB,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,MAAM,CAAC;CAC1B,CACJ,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,KAAK,mBAAmB,GAAG;IACzB,2CAA2C;IAC3C,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oBAAoB;IACpB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,oDAAoD;IACpD,WAAW,CAAC,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC;CACxC,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,mBAAmB,GAAG,eAAe,CAAC;AACzE,MAAM,MAAM,iBAAiB,GAAG,mBAAmB,GAAG,YAAY,CAAC;AACnE,MAAM,MAAM,aAAa,GAAG,oBAAoB,GAAG,iBAAiB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/GitDiffViewer/common/CodeDiffViewer/common/icons.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,yCAcvB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/GitDiffViewer/common/CodeDiffViewer/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/GitDiffViewer/common/CodeDiffViewer/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,kBAAkB,CAAC"}
|