@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.
- package/.turbo/turbo-build.log +2 -2
- package/CHANGELOG.md +16 -0
- package/package.json +2 -2
- package/src/functions/defineCustomElement.ts +1 -1
- package/src/mixins/formControl/formControlMixin.ts +2 -2
- package/src/mixins/index.ts +0 -1
- package/src/mixins/rtl/rtlMixin.ts +5 -5
- package/src/mixins/types/LitElementMixin.ts +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
[36mvite v4.3.9 [32mbuilding for production...[36m[39m
|
|
2
2
|
transforming...
|
|
3
|
-
[32m✓[39m
|
|
3
|
+
[32m✓[39m 10 modules transformed.
|
|
4
4
|
rendering chunks...
|
|
5
5
|
computing gzip size...
|
|
6
6
|
[2mdist/[22m[36mindex.js [39m[1m[2m2.23 kB[22m[1m[22m[2m │ gzip: 1.02 kB[22m
|
|
7
|
-
[32m✓ built in
|
|
7
|
+
[32m✓ built in 333ms[39m
|
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.
|
|
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.
|
|
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
|
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 {
|
|
39
|
+
* @implements {FormControlInterface}
|
|
40
40
|
*/
|
|
41
41
|
class FormControlElement extends superClass implements FormControlInterface {
|
|
42
42
|
static formAssociated = true;
|
package/src/mixins/index.ts
CHANGED
|
@@ -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
|
-
|
|
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<
|
|
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 {
|
|
64
|
+
* @implements {RTLInterface}
|
|
65
65
|
*/
|
|
66
|
-
class RTLElement extends superClass implements
|
|
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<
|
|
90
|
+
return RTLElement as GenericConstructor<RTLInterface> & T;
|
|
91
91
|
};
|