@prosekit/web
Advanced tools
Comparing version 0.4.0 to 0.4.1
@@ -197,5 +197,7 @@ // src/components/resizable/resizable-handle/element.gen.ts | ||
createSignal as createSignal2, | ||
useAttribute, | ||
useEffect as useEffect2 | ||
} from "@aria-ui/core"; | ||
function useResizableRoot(host, { state, emit }) { | ||
const resizing = createSignal2(false); | ||
const onResizeStart = () => { | ||
@@ -209,2 +211,3 @@ var _a; | ||
emit("resizeStart", { width, height }); | ||
resizing.set(true); | ||
return [width, height, aspectRatio]; | ||
@@ -219,2 +222,3 @@ }; | ||
emit("resizeEnd", { width, height }); | ||
resizing.set(false); | ||
}; | ||
@@ -227,7 +231,8 @@ onResizeStartContext.provide(host, createSignal2(onResizeStart)); | ||
host, | ||
state.width.get(), | ||
state.height.get(), | ||
Math.max(state.width.get() || 0, 1), | ||
Math.max(state.height.get() || 0, 1), | ||
state.aspectRatio.get() | ||
); | ||
}); | ||
useAttribute(host, "data-resizing", () => resizing.get() ? "" : void 0); | ||
} | ||
@@ -242,3 +247,3 @@ function updateResizableRootStyles(host, width, height, aspectRatio) { | ||
} else if (height && height > 0 && aspectRatio <= 1) { | ||
host.style.width = "auto"; | ||
host.style.width = "min-content"; | ||
} | ||
@@ -245,0 +250,0 @@ } |
{ | ||
"name": "@prosekit/web", | ||
"type": "module", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"private": false, | ||
@@ -82,14 +82,14 @@ "author": { | ||
"@floating-ui/dom": "^1.6.11", | ||
"@zag-js/dom-query": "^0.68.1", | ||
"@zag-js/dom-query": "^0.75.0", | ||
"just-map-values": "^3.2.0", | ||
"just-omit": "^2.2.0", | ||
"prosemirror-tables": "^1.5.0", | ||
"@prosekit/core": "^0.7.11", | ||
"@prosekit/pm": "^0.1.8", | ||
"@prosekit/extensions": "^0.7.18" | ||
"@prosekit/core": "^0.7.12", | ||
"@prosekit/extensions": "^0.7.19", | ||
"@prosekit/pm": "^0.1.8" | ||
}, | ||
"devDependencies": { | ||
"tsup": "^8.3.0", | ||
"typescript": "^5.6.2", | ||
"vitest": "^2.1.2", | ||
"typescript": "^5.6.3", | ||
"vitest": "^2.1.3", | ||
"@prosekit/dev": "0.0.0" | ||
@@ -96,0 +96,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
112813
2848
+ Added@zag-js/dom-query@0.75.0(transitive)
- Removed@zag-js/dom-query@0.68.1(transitive)
Updated@prosekit/core@^0.7.12
Updated@prosekit/extensions@^0.7.19
Updated@zag-js/dom-query@^0.75.0