From 2116c135ed89d179b78576a05e84228234fb643c Mon Sep 17 00:00:00 2001 From: sam detweiler Date: Sun, 1 Dec 2024 07:59:20 -0600 Subject: [PATCH 1/3] add export for animation names --- CHANGELOG.md | 1 + js/animateCSS.js | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 61f2416109..1e52f75a29 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ _This release is scheduled to be released on 2025-01-01._ - [core] Add GitHub workflow to run spellcheck a few days before each release. - [core] Add intest flag to index.html to pass to module js for test mode detection (needed by #3630) - [compliments] add support for refreshing remote compliments file, and testcases +- [core] Add export on animation names ### Removed diff --git a/js/animateCSS.js b/js/animateCSS.js index 057d53c72d..a503e1067b 100644 --- a/js/animateCSS.js +++ b/js/animateCSS.js @@ -155,3 +155,4 @@ function removeAnimateCSS (element, animation) { node.classList.remove("animate__animated", animationName); node.style.removeProperty("--animate-duration"); } +module.exports = { AnimateCSSIn, AnimateCSSOut }; From dd21977bf7540145387064d2d522164bb4386ff0 Mon Sep 17 00:00:00 2001 From: sam detweiler Date: Sun, 8 Dec 2024 08:52:30 -0600 Subject: [PATCH 2/3] fix animation export only in nodejs/server side --- js/animateCSS.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/animateCSS.js b/js/animateCSS.js index a503e1067b..c8f2924e8f 100644 --- a/js/animateCSS.js +++ b/js/animateCSS.js @@ -155,4 +155,4 @@ function removeAnimateCSS (element, animation) { node.classList.remove("animate__animated", animationName); node.style.removeProperty("--animate-duration"); } -module.exports = { AnimateCSSIn, AnimateCSSOut }; +if (typeof window === "undefined") module.exports = { AnimateCSSIn, AnimateCSSOut }; From e79952911dadff762ab74eec3f96be91ccde3177 Mon Sep 17 00:00:00 2001 From: sam detweiler Date: Sun, 8 Dec 2024 08:57:19 -0600 Subject: [PATCH 3/3] add Changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1c9481b479..8634bbb06c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,6 +27,7 @@ _This release is scheduled to be released on 2025-01-01._ ### Changed - [core] Run code style checks in workflow only once. +- [core] fix animations export #3644 only on server side ### Removed