Skip to content

Commit

Permalink
Release v0.6.4
Browse files Browse the repository at this point in the history
  • Loading branch information
srcrip committed Jul 12, 2024
1 parent 5c691f2 commit 0283893
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 31 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ Releasing new bundle (meant to compile it in `v0.6.1`).
## [v0.6.3] (2024-05-22)

- Documentation updates.

## [v0.6.4] (2024-07-10)

- More documentation updates.
- Fixes invalid usage of Phoenix LiveView streams by moving the flashes outside the stream container.
- Fixes a bit of a visual issue when loading on non LV pages by setting opacity to 0.
- New feature: arbitrary severity levels other than `:info` and `:error`.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ application:
```elixir
def deps do
[
{:live_toast, "~> 0.6.3"}
{:live_toast, "~> 0.6.4"}
]
end
```
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ defmodule LiveToast.MixProject do

use Mix.Project

@version "0.6.3"
@version "0.6.4"

def project do
[
Expand Down
12 changes: 4 additions & 8 deletions priv/static/live_toast.cjs.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions priv/static/live_toast.cjs.js.map

Large diffs are not rendered by default.

12 changes: 4 additions & 8 deletions priv/static/live_toast.esm.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions priv/static/live_toast.esm.js.map

Large diffs are not rendered by default.

12 changes: 4 additions & 8 deletions priv/static/live_toast.js
Original file line number Diff line number Diff line change
Expand Up @@ -781,11 +781,7 @@ var LiveMotion = (() => {
return el.offsetParent === null;
}
function isFlash(el) {
if (["server-error", "client-error", "flash-info", "flash-error"].includes(el.id)) {
return true;
} else {
return false;
}
return el.dataset.component === "flash";
}
function flashCount() {
let num = 0;
Expand Down Expand Up @@ -845,7 +841,7 @@ var LiveMotion = (() => {
} else {
toast.classList.add("pointer-events-auto");
}
let keyframes = { y: [`${direction}${val}px`], opacity: [opacity] };
const keyframes = { y: [`${direction}${val}px`], opacity: [opacity] };
if (toast.order === 0 && lastTS.includes(toast) === false) {
const val2 = toast.offsetHeight + gap;
const oppositeDirection = direction === "-" ? "" : "-";
Expand Down Expand Up @@ -892,7 +888,7 @@ var LiveMotion = (() => {
doAnimations.bind(this)(duration, maxItems);
},
updated() {
let keyframes = { y: [this.el.targetDestination] };
const keyframes = { y: [this.el.targetDestination] };
animate2(this.el, keyframes, { duration: 0 });
},
mounted() {
Expand All @@ -913,7 +909,7 @@ var LiveMotion = (() => {
}
let durationOverride = duration;
if (this.el.dataset.duration !== void 0) {
durationOverride = parseInt(this.el.dataset.duration);
durationOverride = Number.parseInt(this.el.dataset.duration);
}
window.setTimeout(() => __async(this, null, function* () {
yield animateOut.bind(this)();
Expand Down
2 changes: 1 addition & 1 deletion priv/static/live_toast.min.js

Large diffs are not rendered by default.

0 comments on commit 0283893

Please sign in to comment.