refactor!: remove deprecated references

This removes all the `NewModel` functions from all the bubbles and any
deprecated fields and types.
This commit is contained in:
Ayman Bagabas
2024-09-19 13:44:03 -04:00
parent 95541c2f51
commit 09242fdf67
6 changed files with 0 additions and 84 deletions
-13
View File
@@ -126,11 +126,6 @@ func New(opts ...Option) Model {
return m
}
// NewModel returns a model with default values.
//
// Deprecated: use [New] instead.
var NewModel = New
// TickMsg indicates that the timer has ticked and we should render a frame.
type TickMsg struct {
Time time.Time
@@ -202,14 +197,6 @@ func (m Model) tick(id, tag int) tea.Cmd {
})
}
// Tick is the command used to advance the spinner one frame. Use this command
// to effectively start the spinner.
//
// Deprecated: Use [Model.Tick] instead.
func Tick() tea.Msg {
return TickMsg{Time: time.Now()}
}
// Option is used to set options in New. For example:
//
// spinner := New(WithSpinner(Dot))