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

@spectrum-web-components/overlay

Package Overview
Dependencies
Maintainers
12
Versions
314
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@spectrum-web-components/overlay - npm Package Compare versions

Comparing version 0.50.0-beta.8 to 0.50.0-beta.9

14

package.json
{
"name": "@spectrum-web-components/overlay",
"version": "0.50.0-beta.8",
"version": "0.50.0-beta.9",
"publishConfig": {

@@ -163,7 +163,7 @@ "access": "public"

"@floating-ui/utils": "^0.2.1",
"@spectrum-web-components/action-button": "^0.50.0-beta.8",
"@spectrum-web-components/base": "^0.50.0-beta.8",
"@spectrum-web-components/reactive-controllers": "^0.50.0-beta.8",
"@spectrum-web-components/shared": "^0.50.0-beta.8",
"@spectrum-web-components/theme": "^0.50.0-beta.8"
"@spectrum-web-components/action-button": "^0.50.0-beta.9",
"@spectrum-web-components/base": "^0.50.0-beta.9",
"@spectrum-web-components/reactive-controllers": "^0.50.0-beta.9",
"@spectrum-web-components/shared": "^0.50.0-beta.9",
"@spectrum-web-components/theme": "^0.50.0-beta.9"
},

@@ -180,3 +180,3 @@ "types": "./src/index.d.ts",

],
"gitHead": "8764173251bcf2b85ddef058ec9433c0f8dfcc6c"
"gitHead": "c984cc2babbfecd14c86403ab920fbf6b0beb52c"
}

@@ -31,3 +31,3 @@ "use strict";

const test = await fixture(html`
<sp-theme theme="spectrum" scale="medium" color="light">
<sp-theme system="spectrum" scale="medium" color="light">
${story}

@@ -724,14 +724,28 @@ </sp-theme>

const sliderRect = track.getBoundingClientRect();
await sendMouse({
steps: [
{
type: "click",
position: [
sliderRect.left + sliderRect.width - 5,
sliderRect.top + sliderRect.height / 2
]
}
]
});
await aTimeout(500);
let pointerId = -1;
slider.track.setPointerCapture = (id) => pointerId = id;
slider.track.releasePointerCapture = (id) => pointerId = id;
expect(pointerId).to.equal(-1);
track.dispatchEvent(
new PointerEvent("pointerdown", {
clientX: sliderRect.left + sliderRect.width - 5,
clientY: sliderRect.top + sliderRect.height / 2,
pointerId: 1,
cancelable: true,
bubbles: true,
composed: true,
button: 0
})
);
await elementUpdated(slider);
track.dispatchEvent(
new PointerEvent("pointerup", {
pointerId: 1,
cancelable: true,
bubbles: true,
composed: true
})
);
await elementUpdated(slider);
await aTimeout(1500);
expect(slider.value).to.equal(19.5);

@@ -738,0 +752,0 @@ expect(el.open).to.be.true;

@@ -28,3 +28,3 @@ "use strict";

const test = await fixture(html`
<sp-theme theme="spectrum" scale="medium" color="light">
<sp-theme system="spectrum" scale="medium" color="light">
${story}

@@ -31,0 +31,0 @@ </sp-theme>

@@ -35,3 +35,3 @@ "use strict";

const test = await fixture(html`
<sp-theme theme="spectrum" scale="medium" color="dark">
<sp-theme system="spectrum" scale="medium" color="dark">
${story}

@@ -38,0 +38,0 @@ </sp-theme>

@@ -37,3 +37,3 @@ "use strict";

const test = await fixture(html`
<sp-theme theme="spectrum" scale="medium" color="dark">
<sp-theme system="spectrum" scale="medium" color="dark">
${story}

@@ -49,54 +49,48 @@ </sp-theme>

beforeEach(async () => {
testDiv = await styledFixture(
html`
<div id="top">
<style>
body {
display: flex;
align-items: center;
justify-content: center;
}
testDiv = await styledFixture(html`
<div id="top">
<style>
body {
display: flex;
align-items: center;
justify-content: center;
}
#top {
margin: 100px;
}
#top {
margin: 100px;
}
sp-button {
flex: none;
}
sp-button {
flex: none;
}
#overlay-content {
display: none;
}
</style>
<sp-button id="first-button" variant="primary">
Show Popover
</sp-button>
<div id="overlay-content">
<sp-popover
id="outer-popover"
direction="bottom"
tip
>
<sp-dialog no-divider>
<div class="options-popover-content">
A popover message
</div>
<sp-button id="outer-focus-target">
Test 1
</sp-button>
<sp-button>Test 2</sp-button>
<sp-button>Test 3</sp-button>
</sp-dialog>
</sp-popover>
<sp-tooltip id="hover-1" class="hover-content">
Hover message
</sp-tooltip>
<sp-tooltip id="hover-2" class="hover-content">
Other hover message
</sp-tooltip>
</div>
#overlay-content {
display: none;
}
</style>
<sp-button id="first-button" variant="primary">
Show Popover
</sp-button>
<div id="overlay-content">
<sp-popover id="outer-popover" direction="bottom" tip>
<sp-dialog no-divider>
<div class="options-popover-content">
A popover message
</div>
<sp-button id="outer-focus-target">
Test 1
</sp-button>
<sp-button>Test 2</sp-button>
<sp-button>Test 3</sp-button>
</sp-dialog>
</sp-popover>
<sp-tooltip id="hover-1" class="hover-content">
Hover message
</sp-tooltip>
<sp-tooltip id="hover-2" class="hover-content">
Other hover message
</sp-tooltip>
</div>
`
);
</div>
`);
await elementUpdated(testDiv);

@@ -502,7 +496,5 @@ });

const textContent = "This is a detached element that has been overlaid";
const el = await fixture(
html`
<button>Trigger</button>
`
);
const el = await fixture(html`
<button>Trigger</button>
`);
const content = document.createElement("sp-popover");

@@ -509,0 +501,0 @@ content.textContent = textContent;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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