@spectrum-web-components/base
Advanced tools
Comparing version 0.1.4-alpha.85 to 0.1.4-alpha.169
@@ -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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
44666
362