Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@prosekit/web

Package Overview
Dependencies
Maintainers
0
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@prosekit/web - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

11

dist/prosekit-web-resizable.js

@@ -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 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc