@nswds/app 2.0.2 → 3.0.0
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 +13 -6
- package/dist/index.cjs +8 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -6
- package/dist/index.js.map +1 -1
- package/package.json +14 -8
package/dist/index.js
CHANGED
|
@@ -14414,7 +14414,7 @@ function FormatToggle({ format, setFormat }) {
|
|
|
14414
14414
|
|
|
14415
14415
|
// package.json
|
|
14416
14416
|
var package_default = {
|
|
14417
|
-
version: "
|
|
14417
|
+
version: "3.0.0"};
|
|
14418
14418
|
var SluggerContext = React5__default.createContext(null);
|
|
14419
14419
|
function flattenText(nodes) {
|
|
14420
14420
|
if (nodes == null || typeof nodes === "boolean") return "";
|
|
@@ -18942,10 +18942,8 @@ var acceleratedValues = /* @__PURE__ */ new Set([
|
|
|
18942
18942
|
"opacity",
|
|
18943
18943
|
"clipPath",
|
|
18944
18944
|
"filter",
|
|
18945
|
-
"transform"
|
|
18946
|
-
|
|
18947
|
-
// or until we implement support for linear() easing.
|
|
18948
|
-
// "background-color"
|
|
18945
|
+
"transform",
|
|
18946
|
+
"backgroundColor"
|
|
18949
18947
|
]);
|
|
18950
18948
|
|
|
18951
18949
|
// node_modules/motion-dom/dist/es/animation/waapi/utils/is-browser-color.mjs
|
|
@@ -18976,7 +18974,7 @@ var supportsWaapi = /* @__PURE__ */ memo(() => Object.hasOwnProperty.call(Elemen
|
|
|
18976
18974
|
function supportsBrowserAnimation(options) {
|
|
18977
18975
|
const { motionValue: motionValue2, name, repeatDelay, repeatType, damping, type, keyframes: keyframes2 } = options;
|
|
18978
18976
|
const subject = motionValue2?.owner?.current;
|
|
18979
|
-
if (!(subject instanceof HTMLElement)) {
|
|
18977
|
+
if (!(subject instanceof HTMLElement) && !(subject instanceof SVGElement)) {
|
|
18980
18978
|
return false;
|
|
18981
18979
|
}
|
|
18982
18980
|
const { onUpdate, transformTemplate } = motionValue2.owner.getProps();
|
|
@@ -21333,6 +21331,10 @@ var HTMLVisualElement = class extends DOMVisualElement {
|
|
|
21333
21331
|
this.type = "html";
|
|
21334
21332
|
this.renderInstance = renderHTML;
|
|
21335
21333
|
}
|
|
21334
|
+
mount(instance) {
|
|
21335
|
+
invariant(Boolean(instance.style), "motion.create() components must forward their ref to a HTML or SVG element", "custom-component-ref");
|
|
21336
|
+
super.mount(instance);
|
|
21337
|
+
}
|
|
21336
21338
|
readValueFromInstance(instance, key) {
|
|
21337
21339
|
if (transformProps.has(key)) {
|
|
21338
21340
|
return this.projection?.isProjecting ? defaultTransformValue(key) : readTransformValue(instance, key);
|