Socket
Socket
Sign inDemoInstall

@spectrum-web-components/split-view

Package Overview
Dependencies
1
Maintainers
8
Versions
156
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.31.1-react.21 to 0.32.0

6

custom-elements.json

@@ -7,3 +7,3 @@ {

"kind": "javascript-module",
"path": "sp-split-view.ts",
"path": "sp-split-view.js",
"declarations": [],

@@ -23,3 +23,3 @@ "exports": [

"kind": "javascript-module",
"path": "src/SplitView.ts",
"path": "src/SplitView.js",
"declarations": [

@@ -582,3 +582,3 @@ {

"name": "SplitView",
"module": "src/SplitView.ts"
"module": "src/SplitView.js"
}

@@ -585,0 +585,0 @@ }

{
"name": "@spectrum-web-components/split-view",
"version": "0.31.1-react.21+44f0b1df9",
"version": "0.32.0",
"publishConfig": {

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

"dependencies": {
"@spectrum-web-components/base": "^0.31.1-react.21+44f0b1df9"
"@spectrum-web-components/base": "^0.32.0"
},

@@ -76,3 +76,3 @@ "devDependencies": {

],
"gitHead": "44f0b1df9e1ea77d9e931629a63918ceee2744c2"
"gitHead": "c5f67662ac54d0e37debaf7cbd7c2df60e8b294e"
}
"use strict";
import { elementUpdated, expect, fixture, html } from "@open-wc/testing";
import {
elementUpdated,
expect,
fixture,
html,
nextFrame
} from "@open-wc/testing";
import "@spectrum-web-components/split-view/sp-split-view.js";

@@ -197,2 +203,3 @@ import {

await elementUpdated(el);
await nextFrame();
expect(Math.round(el.splitterPos)).to.equal(

@@ -207,2 +214,3 @@ pos - el.getBoundingClientRect().left

await elementUpdated(el);
await nextFrame();
expect(el.splitterPos).to.equal(el.primaryMin);

@@ -272,2 +280,3 @@ expect(getComputedStyle(splitter).cursor).to.equal("e-resize");

await elementUpdated(el);
await nextFrame();
expect(Math.round(el.splitterPos || 0)).to.equal(

@@ -282,2 +291,3 @@ el.getBoundingClientRect().right - pos

await elementUpdated(el);
await nextFrame();
expect(el.splitterPos || 0).to.equal(splitTotalWidth - el.secondaryMin);

@@ -487,2 +497,3 @@ expect(getComputedStyle(splitter).cursor).to.equal("e-resize");

await elementUpdated(el);
await nextFrame();
expect(el.splitterPos || 0).to.equal(50);

@@ -497,2 +508,3 @@ expect(splitter.classList.contains("is-collapsed-start")).to.be.false;

await elementUpdated(el);
await nextFrame();
expect(el.splitterPos || 0).to.equal(0);

@@ -507,2 +519,3 @@ expect(splitter.classList.contains("is-collapsed-start")).to.be.true;

await elementUpdated(el);
await nextFrame();
expect(el.splitterPos || 0).to.equal(350);

@@ -558,2 +571,3 @@ expect(splitter.classList.contains("is-collapsed-end")).to.be.false;

await elementUpdated(el);
await nextFrame();
expect(el.splitterPos || 0).to.equal(50);

@@ -568,2 +582,3 @@ expect(splitter.classList.contains("is-collapsed-start")).to.be.false;

await elementUpdated(el);
await nextFrame();
expect(el.splitterPos || 0).to.equal(0);

@@ -578,2 +593,3 @@ expect(splitter.classList.contains("is-collapsed-start")).to.be.true;

await elementUpdated(el);
await nextFrame();
expect(el.splitterPos || 0).to.equal(splitTotalHeight - 50);

@@ -580,0 +596,0 @@ expect(splitter.classList.contains("is-collapsed-end")).to.be.false;

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc