@justeattakeaway/pie-button 1.5.1 → 1.6.0

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": "@justeattakeaway/pie-button",
3
- "version": "1.5.1",
3
+ "version": "1.6.0",
4
4
  "description": "PIE design system button built using web components",
5
5
  "repository": {
6
6
  "type": "git",
@@ -39,9 +39,9 @@
39
39
  "license": "Apache-2.0",
40
40
  "devDependencies": {
41
41
  "@custom-elements-manifest/analyzer": "0.9.0",
42
- "@justeattakeaway/pie-components-config": "0.19.1",
42
+ "@justeattakeaway/pie-components-config": "0.20.1",
43
43
  "@justeattakeaway/pie-css": "0.16.0",
44
- "@justeattakeaway/pie-monorepo-utils": "0.5.0",
44
+ "@justeattakeaway/pie-monorepo-utils": "0.5.1",
45
45
  "@justeattakeaway/pie-wrapper-react": "0.14.3",
46
46
  "cem-plugin-module-file-extensions": "0.0.5"
47
47
  },
@@ -53,8 +53,8 @@
53
53
  "dist/*.js"
54
54
  ],
55
55
  "dependencies": {
56
- "@justeattakeaway/pie-spinner": "1.1.1",
57
- "@justeattakeaway/pie-webc-core": "0.25.1",
56
+ "@justeattakeaway/pie-spinner": "1.2.0",
57
+ "@justeattakeaway/pie-webc-core": "0.26.0",
58
58
  "element-internals-polyfill": "1.3.11"
59
59
  }
60
60
  }
package/src/index.ts CHANGED
@@ -6,8 +6,8 @@ import { ifDefined } from 'lit/directives/if-defined.js';
6
6
  import { property } from 'lit/decorators.js';
7
7
  import 'element-internals-polyfill';
8
8
 
9
- import { validPropertyValues, defineCustomElement, FormControlMixin } from '@justeattakeaway/pie-webc-core';
10
9
  import { PieElement } from '@justeattakeaway/pie-webc-core/src/internals/PieElement';
10
+ import { validPropertyValues, FormControlMixin, safeCustomElement } from '@justeattakeaway/pie-webc-core';
11
11
 
12
12
  import '@justeattakeaway/pie-spinner';
13
13
  import { type SpinnerProps } from '@justeattakeaway/pie-spinner';
@@ -27,6 +27,7 @@ const componentSelector = 'pie-button';
27
27
  * @slot icon - The icon slot
28
28
  * @slot - Default slot
29
29
  */
30
+ @safeCustomElement('pie-button')
30
31
  export class PieButton extends FormControlMixin(PieElement) implements ButtonProps {
31
32
  connectedCallback () {
32
33
  super.connectedCallback();
@@ -305,8 +306,6 @@ export class PieButton extends FormControlMixin(PieElement) implements ButtonPro
305
306
  static styles = unsafeCSS(styles);
306
307
  }
307
308
 
308
- defineCustomElement(componentSelector, PieButton);
309
-
310
309
  declare global {
311
310
  interface HTMLElementTagNameMap {
312
311
  [componentSelector]: PieButton;