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

@spectrum-web-components/split-view

Package Overview
Dependencies
Maintainers
6
Versions
231
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@spectrum-web-components/split-view - npm Package Compare versions

Comparing version 0.2.5 to 0.2.6-alpha.0

6

package.json
{
"name": "@spectrum-web-components/split-view",
"version": "0.2.5",
"version": "0.2.6-alpha.0+f76f322c5",
"publishConfig": {

@@ -46,3 +46,3 @@ "access": "public"

"dependencies": {
"@spectrum-web-components/base": "^0.4.3",
"@spectrum-web-components/base": "^0.4.4-alpha.74+f76f322c5",
"tslib": "^2.0.0"

@@ -59,3 +59,3 @@ },

],
"gitHead": "50e608e54fbf56132aeed4433299fbcf7f6893ac"
"gitHead": "f76f322c5dc769ddfac85dc4d36a322e55e2cadb"
}

@@ -1,2 +0,2 @@

declare const styles: import("@spectrum-web-components/base").CSSResult;
declare const styles: import("@spectrum-web-components/base").CSSResultGroup;
export default styles;

@@ -1,2 +0,2 @@

declare const styles: import("@spectrum-web-components/base").CSSResult;
declare const styles: import("@spectrum-web-components/base").CSSResultGroup;
export default styles;

@@ -14,2 +14,3 @@ /*

import { html, SpectrumElement, property, ifDefined, query, nothing, classMap, } from '@spectrum-web-components/base';
import { streamingListener } from '@spectrum-web-components/base/src/streaming-listener.js';
import styles from './split-view.css.js';

@@ -108,4 +109,10 @@ const DEFAULT_MAX_SIZE = 3840;

@keydown=${this.onKeydown}
@pointerdown=${this.onPointerdown}
@pointerup=${this.onPointerup}
${streamingListener({
start: ['pointerdown', this.onPointerdown],
streamInside: ['pointermove', this.onPointermove],
end: [
['pointerup', 'pointercancel'],
this.onPointerup,
],
})}
>

@@ -128,6 +135,6 @@ ${this.resizable

if (!this.resizable || (event.button && event.button !== 0)) {
event.preventDefault();
return;
}
this.splitter.setPointerCapture(event.pointerId);
this.onpointermove = this.onPointermove;
this.offset = this.getOffset();

@@ -150,3 +157,2 @@ }

this.splitter.releasePointerCapture(event.pointerId);
this.onpointermove = null;
}

@@ -153,0 +159,0 @@ getOffset() {

@@ -26,2 +26,3 @@ /*

} from '@spectrum-web-components/base';
import { streamingListener } from '@spectrum-web-components/base/src/streaming-listener.js';

@@ -194,4 +195,10 @@ import { WithSWCResizeObserver } from './types';

@keydown=${this.onKeydown}
@pointerdown=${this.onPointerdown}
@pointerup=${this.onPointerup}
${streamingListener({
start: ['pointerdown', this.onPointerdown],
streamInside: ['pointermove', this.onPointermove],
end: [
['pointerup', 'pointercancel'],
this.onPointerup,
],
})}
>

@@ -216,6 +223,6 @@ ${this.resizable

if (!this.resizable || (event.button && event.button !== 0)) {
event.preventDefault();
return;
}
this.splitter.setPointerCapture(event.pointerId);
this.onpointermove = this.onPointermove;
this.offset = this.getOffset();

@@ -241,3 +248,2 @@ }

this.splitter.releasePointerCapture(event.pointerId);
this.onpointermove = null;
}

@@ -244,0 +250,0 @@

Sorry, the diff of this file is not supported yet

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