@spectrum-web-components/shared 0.42.1 → 0.42.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectrum-web-components/shared",
3
- "version": "0.42.1",
3
+ "version": "0.42.3",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -100,8 +100,8 @@
100
100
  "lit-html"
101
101
  ],
102
102
  "dependencies": {
103
- "@lit-labs/observers": "^2.0.0",
104
- "@spectrum-web-components/base": "^0.42.1",
103
+ "@lit-labs/observers": "^2.0.2",
104
+ "@spectrum-web-components/base": "^0.42.3",
105
105
  "focus-visible": "^5.1.0"
106
106
  },
107
107
  "types": "./src/index.d.ts",
@@ -109,5 +109,5 @@
109
109
  "sideEffects": [
110
110
  "./**/*.dev.js"
111
111
  ],
112
- "gitHead": "c7ab5516e86d20194e92114afd04affa490b7248"
112
+ "gitHead": "a03edce4f21f232f1705d8eb222e6e5436cad4c3"
113
113
  }
@@ -3,7 +3,7 @@ declare global {
3
3
  applyFocusVisiblePolyfill?: (scope: Document | ShadowRoot) => void;
4
4
  }
5
5
  }
6
- declare type Constructor<T = Record<string, unknown>> = {
6
+ type Constructor<T = Record<string, unknown>> = {
7
7
  new (...args: any[]): T;
8
8
  prototype: T;
9
9
  };
@@ -12,7 +12,7 @@ interface OptionalLifecycleCallbacks {
12
12
  disconnectedCallback?(): void;
13
13
  manageAutoFocus?(): void;
14
14
  }
15
- declare type MixableBaseClass = HTMLElement & OptionalLifecycleCallbacks;
15
+ type MixableBaseClass = HTMLElement & OptionalLifecycleCallbacks;
16
16
  /**
17
17
  * This mixin function is designed to be applied to a class that inherits
18
18
  * from HTMLElement. It makes it easy for a custom element to coordinate with
@@ -1,5 +1,5 @@
1
1
  import { PropertyValues, SpectrumElement } from '@spectrum-web-components/base';
2
- declare type DisableableElement = HTMLElement & {
2
+ type DisableableElement = HTMLElement & {
3
3
  disabled?: boolean;
4
4
  };
5
5
  declare const Focusable_base: typeof SpectrumElement;
@@ -1,9 +1,9 @@
1
1
  import { ReactiveElement, TemplateResult } from '@spectrum-web-components/base';
2
- declare type Constructor<T = Record<string, unknown>> = {
2
+ type Constructor<T = Record<string, unknown>> = {
3
3
  new (...args: any[]): T;
4
4
  prototype: T;
5
5
  };
6
- declare type RenderAnchorOptions = {
6
+ type RenderAnchorOptions = {
7
7
  id: string;
8
8
  className?: string;
9
9
  ariaHidden?: boolean;
@@ -1,14 +1,14 @@
1
- "use strict";var f=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var n=(s,r,p,o)=>{for(var t=o>1?void 0:o?b(r,p):r,a=s.length-1,l;a>=0;a--)(l=s[a])&&(t=(o?l(r,p,t):l(t))||t);return o&&t&&f(r,p,t),t};import{html as c}from"@spectrum-web-components/base";import{property as i}from"@spectrum-web-components/base/src/decorators.js";import{ifDefined as e}from"@spectrum-web-components/base/src/directives.js";export function LikeAnchor(s){class r extends s{renderAnchor({id:t,className:a,ariaHidden:l,labelledby:d,tabindex:g,anchorContent:u=c`<slot></slot>`}){return c`<a
2
- id=${t}
3
- class=${e(a)}
1
+ "use strict";var u=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var n=(s,r,p,i)=>{for(var t=i>1?void 0:i?f(r,p):r,a=s.length-1,l;a>=0;a--)(l=s[a])&&(t=(i?l(r,p,t):l(t))||t);return i&&t&&u(r,p,t),t};import{html as c}from"@spectrum-web-components/base";import{property as o}from"@spectrum-web-components/base/src/decorators.js";import{ifDefined as e}from"@spectrum-web-components/base/src/directives.js";export function LikeAnchor(s){class r extends s{renderAnchor({id:i,className:t,ariaHidden:a,labelledby:l,tabindex:d,anchorContent:g=c`<slot></slot>`}){return c`<a
2
+ id=${i}
3
+ class=${e(t)}
4
4
  href=${e(this.href)}
5
5
  download=${e(this.download)}
6
6
  target=${e(this.target)}
7
7
  aria-label=${e(this.label)}
8
- aria-labelledby=${e(d)}
9
- aria-hidden=${e(l?"true":void 0)}
10
- tabindex=${e(g)}
8
+ aria-labelledby=${e(l)}
9
+ aria-hidden=${e(a?"true":void 0)}
10
+ tabindex=${e(d)}
11
11
  referrerpolicy=${e(this.referrerpolicy)}
12
12
  rel=${e(this.rel)}
13
- >${u}</a>`}}return n([i()],r.prototype,"download",2),n([i()],r.prototype,"label",2),n([i()],r.prototype,"href",2),n([i()],r.prototype,"target",2),n([i()],r.prototype,"referrerpolicy",2),n([i()],r.prototype,"rel",2),r}
13
+ >${g}</a>`}}return n([o()],r.prototype,"download",2),n([o()],r.prototype,"label",2),n([o()],r.prototype,"href",2),n([o()],r.prototype,"target",2),n([o()],r.prototype,"referrerpolicy",2),n([o()],r.prototype,"rel",2),r}
14
14
  //# sourceMappingURL=like-anchor.js.map
@@ -1,5 +1,5 @@
1
1
  import { ReactiveElement } from '@spectrum-web-components/base';
2
- declare type Constructor<T = Record<string, unknown>> = {
2
+ type Constructor<T = Record<string, unknown>> = {
3
3
  new (...args: any[]): T;
4
4
  prototype: T;
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import { ReactiveElement } from '@spectrum-web-components/base';
2
- declare type Constructor<T = Record<string, unknown>> = {
2
+ type Constructor<T = Record<string, unknown>> = {
3
3
  new (...args: any[]): T;
4
4
  prototype: T;
5
5
  };