@justeattakeaway/pie-webc-core 0.14.0 → 0.16.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.
@@ -1,7 +1,7 @@
1
1
  vite v4.3.9 building for production...
2
2
  transforming...
3
- ✓ 11 modules transformed.
3
+ ✓ 10 modules transformed.
4
4
  rendering chunks...
5
5
  computing gzip size...
6
6
  dist/index.js 2.23 kB │ gzip: 1.02 kB
7
- ✓ built in 117ms
7
+ ✓ built in 333ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.16.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [Removed] - unused LitElementMixin type as we do not need it anywhere ([#1145](https://github.com/justeattakeaway/pie/pull/1145)) by [@jamieomaguire](https://github.com/jamieomaguire)
8
+
9
+ - [Changed] - Added `@justeattakeaway/pie-wrapper-react` as a devDependency as `build` now relies on the publish `add-react-wrapper` executable ([#1144](https://github.com/justeattakeaway/pie/pull/1144)) by [@siggerzz](https://github.com/siggerzz)
10
+
11
+ - [Changed] - Use proper interface keyword for RTLmixin interface. Was using a class before which is incorrect. ([#1145](https://github.com/justeattakeaway/pie/pull/1145)) by [@jamieomaguire](https://github.com/jamieomaguire)
12
+
13
+ ## 0.15.0
14
+
15
+ ### Minor Changes
16
+
17
+ - [Changed] - Updated LitElement imports where it is only used as a type to include the 'type' keyword (fixes a TS error in some consumers) ([#1143](https://github.com/justeattakeaway/pie/pull/1143)) by [@jamieomaguire](https://github.com/jamieomaguire)
18
+
3
19
  ## 0.14.0
4
20
 
5
21
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@justeattakeaway/pie-webc-core",
3
- "version": "0.14.0",
3
+ "version": "0.16.0",
4
4
  "description": "PIE design system base classes, mixins and utilities for web components",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -20,7 +20,7 @@
20
20
  "lit": "3.1.0"
21
21
  },
22
22
  "devDependencies": {
23
- "@justeattakeaway/pie-components-config": "0.7.0"
23
+ "@justeattakeaway/pie-components-config": "0.8.0"
24
24
  },
25
25
  "volta": {
26
26
  "extends": "../../../package.json"
@@ -1,4 +1,4 @@
1
- import { LitElement } from 'lit';
1
+ import type { LitElement } from 'lit';
2
2
 
3
3
  /**
4
4
  * Defines a web component, ensuring that the component is only defined once in the Custom Element Registry.
@@ -1,4 +1,4 @@
1
- import { LitElement } from 'lit';
1
+ import type { LitElement } from 'lit';
2
2
  import type { GenericConstructor } from '../types/GenericConstructor';
3
3
 
4
4
  /**
@@ -36,7 +36,7 @@ export const FormControlMixin =
36
36
  /**
37
37
  * Class representing a LitElement that behaves like a native HTML form control element.
38
38
  * @extends {LitElement}
39
- * @implements {_FormControlInterface}
39
+ * @implements {FormControlInterface}
40
40
  */
41
41
  class FormControlElement extends superClass implements FormControlInterface {
42
42
  static formAssociated = true;
@@ -2,4 +2,3 @@ export * from './rtl/rtlMixin';
2
2
  export * from './formControl/formControlMixin';
3
3
 
4
4
  export * from './types/GenericConstructor';
5
- export * from './types/LitElementMixin';
@@ -6,7 +6,7 @@ import type { GenericConstructor } from '../types/GenericConstructor';
6
6
  * An interface representing the structure of RTL related class.
7
7
  * @interface
8
8
  */
9
- declare class _RTLInterface {
9
+ export interface RTLInterface {
10
10
  /** A boolean indicating whether the text direction is right-to-left. */
11
11
  isRTL: boolean;
12
12
  }
@@ -18,7 +18,7 @@ declare class _RTLInterface {
18
18
  *
19
19
  * @function
20
20
  * @param {GenericConstructor<LitElement>} superClass - The LitElement class to extend with RTL functionality.
21
- * @returns {GenericConstructor<_RTLInterface> & T} - A new class extending both LitElement and _RTLInterface.
21
+ * @returns {GenericConstructor<RTLInterface> & T} - A new class extending both LitElement and RTLInterface.
22
22
  *
23
23
  * @example
24
24
  * ```typescript
@@ -61,9 +61,9 @@ export const RtlMixin =
61
61
  /**
62
62
  * Class representing a LitElement with RTL handling.
63
63
  * @extends {LitElement}
64
- * @implements {_RTLInterface}
64
+ * @implements {RTLInterface}
65
65
  */
66
- class RTLElement extends superClass implements _RTLInterface {
66
+ class RTLElement extends superClass implements RTLInterface {
67
67
  /**
68
68
  * A getter to determine whether the text direction is right-to-left (RTL).
69
69
  * If the `dir` property is present on the component, it will be used to determine the text direction.
@@ -87,5 +87,5 @@ export const RtlMixin =
87
87
  }
88
88
  }
89
89
 
90
- return RTLElement as GenericConstructor<_RTLInterface> & T;
90
+ return RTLElement as GenericConstructor<RTLInterface> & T;
91
91
  };
@@ -1,4 +1,4 @@
1
- import { LitElement } from 'lit';
1
+ import type { LitElement } from 'lit';
2
2
  import type { GenericConstructor } from './GenericConstructor';
3
3
 
4
4
  /**