Socket
Socket
Sign inDemoInstall

@spectrum-web-components/base

Package Overview
Dependencies
5
Maintainers
5
Versions
161
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.4-alpha.85 to 0.1.4-alpha.169

src/sizedMixin.d.ts

6

package.json

@@ -21,3 +21,3 @@ {

],
"version": "0.1.4-alpha.85+d9ef1386",
"version": "0.1.4-alpha.169+a396c860",
"description": "",

@@ -48,3 +48,3 @@ "main": "./src/index.js",

"dependencies": {
"@spectrum-web-components/theme": "^0.6.4-alpha.85+d9ef1386",
"@spectrum-web-components/theme": "^0.6.4-alpha.169+a396c860",
"lit-element": "^2.4.0",

@@ -54,3 +54,3 @@ "lit-html": "^1.0.0",

},
"gitHead": "d9ef13866edfb98e309914ae7582b807bee5d241"
"gitHead": "a396c860b62c2f94b2e9fcd015a4962a6c57af36"
}

@@ -28,3 +28,4 @@ /*

});
const canManageContentDirection = (el) => typeof el.startManagingContentDirection === 'undefined';
const canManageContentDirection = (el) => typeof el.startManagingContentDirection !== 'undefined' ||
el.tagName === 'SP-THEME';
export function SpectrumMixin(constructor) {

@@ -50,3 +51,3 @@ class SlotTextObservingElement extends constructor {

while (dirParent !== document.documentElement &&
canManageContentDirection(dirParent)) {
!canManageContentDirection(dirParent)) {
dirParent = (dirParent.assignedSlot || // step into the shadow DOM of the parent of a slotted node

@@ -53,0 +54,0 @@ dirParent.parentNode || // DOM Element detected

@@ -50,6 +50,9 @@ /*

type ContentDirectionManager = { startManagingContentDirection?(): void };
type ContentDirectionManager = HTMLElement & {
startManagingContentDirection?(): void;
};
const canManageContentDirection = (el: ContentDirectionManager): boolean =>
typeof el.startManagingContentDirection === 'undefined';
typeof el.startManagingContentDirection !== 'undefined' ||
el.tagName === 'SP-THEME';

@@ -82,3 +85,3 @@ export function SpectrumMixin<T extends Constructor<UpdatingElement>>(

dirParent !== document.documentElement &&
canManageContentDirection(
!canManageContentDirection(
dirParent as ContentDirectionManager

@@ -85,0 +88,0 @@ )

export * from './Base.js';
export * from './streaming-listener.js';
export * from './sizedMixin.js';
export * from 'lit-element';

@@ -4,0 +4,0 @@ export { nothing } from 'lit-html';

@@ -13,3 +13,3 @@ /*

export * from './Base.js';
export * from './streaming-listener.js';
export * from './sizedMixin.js';
export * from 'lit-element';

@@ -16,0 +16,0 @@ export { nothing } from 'lit-html';

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

export * from './Base.js';
export * from './streaming-listener.js';
export * from './sizedMixin.js';
export * from 'lit-element';

@@ -17,0 +17,0 @@ export { nothing } from 'lit-html';

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc