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
230
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.6 to 0.2.7-alpha.1

6

package.json
{
"name": "@spectrum-web-components/split-view",
"version": "0.2.6",
"version": "0.2.7-alpha.1+ed84dff79",
"publishConfig": {

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

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

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

],
"gitHead": "b425768aaf694ab19ddad4fcab9939c29a2a503b"
"gitHead": "ed84dff79fd23708ed6c63a8114290217d9c17ad"
}

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