@kieransimkin/dancemoves 3.0.4 → 3.0.5
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/README.md +6 -3
- package/docs/api/effects.md +6 -4
- package/docs/api/styling.md +1 -1
- package/docs/javascript-api.md +1 -1
- package/docs/wordpress-shared-runtime.md +6 -1
- package/lib/build-manifest.json +9 -9
- package/lib/dancemoves.min.js +1 -1
- package/lib/index.cjs +7 -6
- package/lib/index.mjs +7 -6
- package/lib/wordpress.js +3 -3
- package/package.json +1 -1
package/lib/index.cjs
CHANGED
|
@@ -643,7 +643,7 @@ function install(__dmScope) {
|
|
|
643
643
|
__dmScope.dataset(this.element, "danceMovesLyricState", "idle");
|
|
644
644
|
}
|
|
645
645
|
};
|
|
646
|
-
document2.dispatchEvent(new CustomEvent("dance-moves-lyric-ready", { detail: { element: container } }));
|
|
646
|
+
document2.dispatchEvent(new CustomEvent("dance-moves-lyric-ready", { bubbles: true, detail: { element: container } }));
|
|
647
647
|
return lyricRenderer;
|
|
648
648
|
}
|
|
649
649
|
function callHandlers(key, detail) {
|
|
@@ -1838,7 +1838,7 @@ function install2(__dmScope) {
|
|
|
1838
1838
|
});
|
|
1839
1839
|
}
|
|
1840
1840
|
});
|
|
1841
|
-
document2.dispatchEvent(new CustomEvent("dance-moves-effects-ready", { detail: { api: window2.DanceMovesEffects, version: window2.DanceMovesEffects.version } }));
|
|
1841
|
+
document2.dispatchEvent(new CustomEvent("dance-moves-effects-ready", { bubbles: true, detail: { api: window2.DanceMovesEffects, version: window2.DanceMovesEffects.version } }));
|
|
1842
1842
|
})(window, document);
|
|
1843
1843
|
}
|
|
1844
1844
|
|
|
@@ -3816,7 +3816,7 @@ function install9(__dmScope) {
|
|
|
3816
3816
|
let native = null, view = null, loading = null, loadError = null;
|
|
3817
3817
|
let frame = 0, serial2 = 0, styleElement = null, removalObserver = null, pageHidden = false;
|
|
3818
3818
|
function emit(name, detail) {
|
|
3819
|
-
document2.dispatchEvent(new window2.CustomEvent(name, { detail }));
|
|
3819
|
+
document2.dispatchEvent(new window2.CustomEvent(name, { bubbles: true, detail }));
|
|
3820
3820
|
}
|
|
3821
3821
|
function number(value, label) {
|
|
3822
3822
|
if (typeof value !== "number" || !Number.isFinite(value))
|
|
@@ -4572,10 +4572,11 @@ function createScope(root, config, { legacyGlobals = false, nonce, orientation =
|
|
|
4572
4572
|
if (property === "readyState") return "complete";
|
|
4573
4573
|
if (property === "defaultView") return window;
|
|
4574
4574
|
if (property === "styleSheets" && !legacyGlobals) return [];
|
|
4575
|
-
if (property === "querySelectorAll") return queryAll;
|
|
4576
|
-
if (property === "querySelector") return (selector) => queryAll(selector)[0] || null;
|
|
4575
|
+
if (property === "querySelectorAll") return legacyGlobals ? target.querySelectorAll.bind(target) : queryAll;
|
|
4576
|
+
if (property === "querySelector") return legacyGlobals ? target.querySelector.bind(target) : (selector) => queryAll(selector)[0] || null;
|
|
4577
4577
|
if (property === "getElementById") return (wanted) => {
|
|
4578
4578
|
if (disposed) return null;
|
|
4579
|
+
if (legacyGlobals) return target.getElementById(wanted);
|
|
4579
4580
|
if (root.id === wanted) return root;
|
|
4580
4581
|
return Array.from(root.querySelectorAll("[id]")).find((node) => node.id === wanted) || [...created].find((node) => node.id === wanted) || null;
|
|
4581
4582
|
};
|
|
@@ -5048,7 +5049,7 @@ function createMotionRecorder(scope, { durationMilliseconds = 3e4, maxSamples =
|
|
|
5048
5049
|
}
|
|
5049
5050
|
|
|
5050
5051
|
// .build/modules/version.mjs
|
|
5051
|
-
var VERSION = "3.0.
|
|
5052
|
+
var VERSION = "3.0.5";
|
|
5052
5053
|
|
|
5053
5054
|
// .build/modules/index.mjs
|
|
5054
5055
|
var mounted = /* @__PURE__ */ new WeakMap();
|
package/lib/index.mjs
CHANGED
|
@@ -612,7 +612,7 @@ function install(__dmScope) {
|
|
|
612
612
|
__dmScope.dataset(this.element, "danceMovesLyricState", "idle");
|
|
613
613
|
}
|
|
614
614
|
};
|
|
615
|
-
document2.dispatchEvent(new CustomEvent("dance-moves-lyric-ready", { detail: { element: container } }));
|
|
615
|
+
document2.dispatchEvent(new CustomEvent("dance-moves-lyric-ready", { bubbles: true, detail: { element: container } }));
|
|
616
616
|
return lyricRenderer;
|
|
617
617
|
}
|
|
618
618
|
function callHandlers(key, detail) {
|
|
@@ -1807,7 +1807,7 @@ function install2(__dmScope) {
|
|
|
1807
1807
|
});
|
|
1808
1808
|
}
|
|
1809
1809
|
});
|
|
1810
|
-
document2.dispatchEvent(new CustomEvent("dance-moves-effects-ready", { detail: { api: window2.DanceMovesEffects, version: window2.DanceMovesEffects.version } }));
|
|
1810
|
+
document2.dispatchEvent(new CustomEvent("dance-moves-effects-ready", { bubbles: true, detail: { api: window2.DanceMovesEffects, version: window2.DanceMovesEffects.version } }));
|
|
1811
1811
|
})(window, document);
|
|
1812
1812
|
}
|
|
1813
1813
|
|
|
@@ -3785,7 +3785,7 @@ function install9(__dmScope) {
|
|
|
3785
3785
|
let native = null, view = null, loading = null, loadError = null;
|
|
3786
3786
|
let frame = 0, serial2 = 0, styleElement = null, removalObserver = null, pageHidden = false;
|
|
3787
3787
|
function emit(name, detail) {
|
|
3788
|
-
document2.dispatchEvent(new window2.CustomEvent(name, { detail }));
|
|
3788
|
+
document2.dispatchEvent(new window2.CustomEvent(name, { bubbles: true, detail }));
|
|
3789
3789
|
}
|
|
3790
3790
|
function number(value, label) {
|
|
3791
3791
|
if (typeof value !== "number" || !Number.isFinite(value))
|
|
@@ -4541,10 +4541,11 @@ function createScope(root, config, { legacyGlobals = false, nonce, orientation =
|
|
|
4541
4541
|
if (property === "readyState") return "complete";
|
|
4542
4542
|
if (property === "defaultView") return window;
|
|
4543
4543
|
if (property === "styleSheets" && !legacyGlobals) return [];
|
|
4544
|
-
if (property === "querySelectorAll") return queryAll;
|
|
4545
|
-
if (property === "querySelector") return (selector) => queryAll(selector)[0] || null;
|
|
4544
|
+
if (property === "querySelectorAll") return legacyGlobals ? target.querySelectorAll.bind(target) : queryAll;
|
|
4545
|
+
if (property === "querySelector") return legacyGlobals ? target.querySelector.bind(target) : (selector) => queryAll(selector)[0] || null;
|
|
4546
4546
|
if (property === "getElementById") return (wanted) => {
|
|
4547
4547
|
if (disposed) return null;
|
|
4548
|
+
if (legacyGlobals) return target.getElementById(wanted);
|
|
4548
4549
|
if (root.id === wanted) return root;
|
|
4549
4550
|
return Array.from(root.querySelectorAll("[id]")).find((node) => node.id === wanted) || [...created].find((node) => node.id === wanted) || null;
|
|
4550
4551
|
};
|
|
@@ -5017,7 +5018,7 @@ function createMotionRecorder(scope, { durationMilliseconds = 3e4, maxSamples =
|
|
|
5017
5018
|
}
|
|
5018
5019
|
|
|
5019
5020
|
// .build/modules/version.mjs
|
|
5020
|
-
var VERSION = "3.0.
|
|
5021
|
+
var VERSION = "3.0.5";
|
|
5021
5022
|
|
|
5022
5023
|
// .build/modules/index.mjs
|
|
5023
5024
|
var mounted = /* @__PURE__ */ new WeakMap();
|