@justeattakeaway/pie-modal 0.11.0 → 0.12.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 +4 -4
- package/CHANGELOG.md +6 -0
- package/dist/react.js +6 -1
- package/dist/types/packages/components/pie-modal/src/index.d.ts +4 -0
- package/dist/types/packages/components/pie-modal/src/index.d.ts.map +1 -1
- package/dist/types/packages/components/pie-modal/src/react.d.ts +5 -1
- package/dist/types/packages/components/pie-modal/src/react.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +4 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[
|
|
1
|
+
[9:29:39 AM] @custom-elements-manifest/analyzer: Created new manifest.
|
|
2
2
|
react wrapper has been added!
|
|
3
3
|
[36mvite v4.3.9 [32mbuilding for production...[36m[39m
|
|
4
4
|
transforming...
|
|
@@ -6,9 +6,9 @@ transforming...
|
|
|
6
6
|
rendering chunks...
|
|
7
7
|
computing gzip size...
|
|
8
8
|
[2mdist/[22m[36mindex.js [39m[1m[2m13.38 kB[22m[1m[22m[2m │ gzip: 4.21 kB[22m
|
|
9
|
-
[2mdist/[22m[36mreact.js [39m[1m[2m59.
|
|
9
|
+
[2mdist/[22m[36mreact.js [39m[1m[2m59.18 kB[22m[1m[22m[2m │ gzip: 15.97 kB[22m
|
|
10
10
|
[32m
|
|
11
11
|
[36m[vite:dts][32m Start generate declaration files...[39m
|
|
12
|
-
[32m✓ built in
|
|
13
|
-
[32m[36m[vite:dts][32m Declaration files built in
|
|
12
|
+
[32m✓ built in 9.68s[39m
|
|
13
|
+
[32m[36m[vite:dts][32m Declaration files built in 8742ms.
|
|
14
14
|
[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @justeattakeaway/pie-modal
|
|
2
2
|
|
|
3
|
+
## 0.12.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [Added] - @event jsdoc comments for modal events for react wrapper to analyse ([#612](https://github.com/justeattakeaway/pie/pull/612)) by [@jamieomaguire](https://github.com/jamieomaguire)
|
|
8
|
+
|
|
3
9
|
## 0.11.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/dist/react.js
CHANGED
|
@@ -1585,7 +1585,12 @@ const Qr = zr({
|
|
|
1585
1585
|
elementClass: Nr,
|
|
1586
1586
|
react: Vr,
|
|
1587
1587
|
tagName: "pie-modal",
|
|
1588
|
-
events: {
|
|
1588
|
+
events: {
|
|
1589
|
+
onpiemodalopen: "pie-modal-open",
|
|
1590
|
+
// when the modal is opened.
|
|
1591
|
+
onpiemodalclose: "pie-modal-close"
|
|
1592
|
+
// when the modal is closed.
|
|
1593
|
+
}
|
|
1589
1594
|
});
|
|
1590
1595
|
export {
|
|
1591
1596
|
Qr as PieModal
|
|
@@ -7,6 +7,10 @@ declare const PieModal_base: (new (...args: any[]) => {
|
|
|
7
7
|
dir: string;
|
|
8
8
|
isRTL: boolean;
|
|
9
9
|
}) & typeof LitElement;
|
|
10
|
+
/**
|
|
11
|
+
* @event {CustomEvent} pie-modal-open - when the modal is opened.
|
|
12
|
+
* @event {CustomEvent} pie-modal-close - when the modal is closed.
|
|
13
|
+
*/
|
|
10
14
|
export declare class PieModal extends PieModal_base implements ModalProps {
|
|
11
15
|
heading: string;
|
|
12
16
|
headingLevel: ModalProps['headingLevel'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,UAAU,EAAW,cAAc,EACtC,MAAM,KAAK,CAAC;AAMb,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAEnE,OAAO,iDAAiD,CAAC;AAEzD,OAAO,EACH,UAAU,EACV,aAAa,EAGb,KAAK,EACR,MAAM,QAAQ,CAAC;AAGhB,O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MAAM,CAAC,MAAM,0BAAqB;CACrC;AAID,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAC3B,CAAC,iBAAiB,CAAC,EAAE,QAAQ,CAAC;KACjC;CACJ"}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import { EventName } from '@lit-labs/react';
|
|
1
2
|
import { PieModal as PieModalReact } from './index';
|
|
2
|
-
export declare const PieModal: import("@lit-labs/react").ReactWebComponent<PieModalReact, {
|
|
3
|
+
export declare const PieModal: import("@lit-labs/react").ReactWebComponent<PieModalReact, {
|
|
4
|
+
onpiemodalopen: EventName<CustomEvent<any>>;
|
|
5
|
+
onpiemodalclose: EventName<CustomEvent<any>>;
|
|
6
|
+
}>;
|
|
3
7
|
//# sourceMappingURL=react.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../../src/react.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,IAAI,aAAa,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../../src/react.ts"],"names":[],"mappings":"AAEA,OAAO,EAAmB,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EAAE,QAAQ,IAAI,aAAa,EAAE,MAAM,SAAS,CAAC;AAEpD,eAAO,MAAM,QAAQ;;;EASnB,CAAC"}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -23,6 +23,10 @@ export { type ModalProps, headingLevels, sizes };
|
|
|
23
23
|
|
|
24
24
|
const componentSelector = 'pie-modal';
|
|
25
25
|
|
|
26
|
+
/**
|
|
27
|
+
* @event {CustomEvent} pie-modal-open - when the modal is opened.
|
|
28
|
+
* @event {CustomEvent} pie-modal-close - when the modal is closed.
|
|
29
|
+
*/
|
|
26
30
|
export class PieModal extends RtlMixin(LitElement) implements ModalProps {
|
|
27
31
|
@property({ type: String })
|
|
28
32
|
@requiredProperty(componentSelector)
|