feat!: v2: move to v2 module

This commit is contained in:
Ayman Bagabas
2024-09-18 14:12:55 -04:00
parent 0fdf5f5be5
commit a2602f8509
14 changed files with 26 additions and 26 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"strings"
"sync"
"github.com/charmbracelet/bubbles/key"
"github.com/charmbracelet/bubbles/v2/key"
tea "github.com/charmbracelet/bubbletea/v2"
"github.com/charmbracelet/lipgloss"
"github.com/dustin/go-humanize"
+1 -1
View File
@@ -1,4 +1,4 @@
module github.com/charmbracelet/bubbles
module github.com/charmbracelet/bubbles/v2
go 1.18
+1 -1
View File
@@ -3,7 +3,7 @@ package help
import (
"strings"
"github.com/charmbracelet/bubbles/key"
"github.com/charmbracelet/bubbles/v2/key"
tea "github.com/charmbracelet/bubbletea/v2"
"github.com/charmbracelet/lipgloss"
)
+1 -1
View File
@@ -40,7 +40,7 @@ very flexible and powerful.
If you just want to alter the default style you could do something like:
```go
import "github.com/charmbracelet/bubbles/list"
import "github.com/charmbracelet/bubbles/v2/list"
// Create a new default delegate
d := list.NewDefaultDelegate()
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"io"
"strings"
"github.com/charmbracelet/bubbles/key"
"github.com/charmbracelet/bubbles/v2/key"
tea "github.com/charmbracelet/bubbletea/v2"
"github.com/charmbracelet/lipgloss"
"github.com/charmbracelet/x/ansi"
+1 -1
View File
@@ -1,6 +1,6 @@
package list
import "github.com/charmbracelet/bubbles/key"
import "github.com/charmbracelet/bubbles/v2/key"
// KeyMap defines keybindings. It satisfies to the help.KeyMap interface, which
// is used to render the menu.
+5 -5
View File
@@ -15,11 +15,11 @@ import (
"github.com/charmbracelet/x/ansi"
"github.com/sahilm/fuzzy"
"github.com/charmbracelet/bubbles/help"
"github.com/charmbracelet/bubbles/key"
"github.com/charmbracelet/bubbles/paginator"
"github.com/charmbracelet/bubbles/spinner"
"github.com/charmbracelet/bubbles/textinput"
"github.com/charmbracelet/bubbles/v2/help"
"github.com/charmbracelet/bubbles/v2/key"
"github.com/charmbracelet/bubbles/v2/paginator"
"github.com/charmbracelet/bubbles/v2/spinner"
"github.com/charmbracelet/bubbles/v2/textinput"
)
// Item is an item that appears in the list.
+1 -1
View File
@@ -7,7 +7,7 @@ package paginator
import (
"fmt"
"github.com/charmbracelet/bubbles/key"
"github.com/charmbracelet/bubbles/v2/key"
tea "github.com/charmbracelet/bubbletea/v2"
)
+1 -1
View File
@@ -3,7 +3,7 @@ package spinner_test
import (
"testing"
"github.com/charmbracelet/bubbles/spinner"
"github.com/charmbracelet/bubbles/v2/spinner"
)
func TestSpinnerNew(t *testing.T) {
+3 -3
View File
@@ -3,9 +3,9 @@ package table
import (
"strings"
"github.com/charmbracelet/bubbles/help"
"github.com/charmbracelet/bubbles/key"
"github.com/charmbracelet/bubbles/viewport"
"github.com/charmbracelet/bubbles/v2/help"
"github.com/charmbracelet/bubbles/v2/key"
"github.com/charmbracelet/bubbles/v2/viewport"
tea "github.com/charmbracelet/bubbletea/v2"
"github.com/charmbracelet/lipgloss"
"github.com/mattn/go-runewidth"
+5 -5
View File
@@ -8,11 +8,11 @@ import (
"unicode"
"github.com/atotto/clipboard"
"github.com/charmbracelet/bubbles/cursor"
"github.com/charmbracelet/bubbles/key"
"github.com/charmbracelet/bubbles/runeutil"
"github.com/charmbracelet/bubbles/textarea/memoization"
"github.com/charmbracelet/bubbles/viewport"
"github.com/charmbracelet/bubbles/v2/cursor"
"github.com/charmbracelet/bubbles/v2/key"
"github.com/charmbracelet/bubbles/v2/runeutil"
"github.com/charmbracelet/bubbles/v2/textarea/memoization"
"github.com/charmbracelet/bubbles/v2/viewport"
tea "github.com/charmbracelet/bubbletea/v2"
"github.com/charmbracelet/lipgloss"
"github.com/charmbracelet/x/ansi"
+3 -3
View File
@@ -7,9 +7,9 @@ import (
"unicode"
"github.com/atotto/clipboard"
"github.com/charmbracelet/bubbles/cursor"
"github.com/charmbracelet/bubbles/key"
"github.com/charmbracelet/bubbles/runeutil"
"github.com/charmbracelet/bubbles/v2/cursor"
"github.com/charmbracelet/bubbles/v2/key"
"github.com/charmbracelet/bubbles/v2/runeutil"
tea "github.com/charmbracelet/bubbletea/v2"
"github.com/charmbracelet/lipgloss"
rw "github.com/mattn/go-runewidth"
+1 -1
View File
@@ -1,6 +1,6 @@
package viewport
import "github.com/charmbracelet/bubbles/key"
import "github.com/charmbracelet/bubbles/v2/key"
const spacebar = " "
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"math"
"strings"
"github.com/charmbracelet/bubbles/key"
"github.com/charmbracelet/bubbles/v2/key"
tea "github.com/charmbracelet/bubbletea/v2"
"github.com/charmbracelet/lipgloss"
)