@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.
@@ -1,4 +1,4 @@
1
- [5:08:22 PM] @custom-elements-manifest/analyzer: Created new manifest.
1
+ [9:29:39 AM] @custom-elements-manifest/analyzer: Created new manifest.
2
2
  react wrapper has been added!
3
3
  vite v4.3.9 building for production...
4
4
  transforming...
@@ -6,9 +6,9 @@ transforming...
6
6
  rendering chunks...
7
7
  computing gzip size...
8
8
  dist/index.js 13.38 kB │ gzip: 4.21 kB
9
- dist/react.js 59.04 kB │ gzip: 15.92 kB
9
+ dist/react.js 59.18 kB │ gzip: 15.97 kB
10
10
  
11
11
  [vite:dts] Start generate declaration files...
12
- ✓ built in 10.29s
13
- [vite:dts] Declaration files built in 9310ms.
12
+ ✓ built in 9.68s
13
+ [vite:dts] Declaration files built in 8742ms.
14
14
  
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,OAAO,EAAE,KAAK,UAAU,EAAE,aAAa,EAAE,KAAK,EAAE,CAAC;AAEjD,QAAA,MAAM,iBAAiB,cAAc,CAAC;;;;;AAEtC,qBAAa,QAAS,SAAQ,aAAqB,YAAW,UAAU;IAG7D,OAAO,EAAG,MAAM,CAAC;IAIjB,YAAY,EAAE,UAAU,CAAC,cAAc,CAAC,CAAQ;IAGhD,aAAa,UAAS;IAGtB,mBAAmB,UAAS;IAG5B,MAAM,UAAS;IAGf,6BAA6B,CAAC,EAAE,MAAM,CAAC;IAIvC,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,CAAY;IAGvC,OAAO,CAAC,EAAE,iBAAiB,CAAC;;IAOhC,iBAAiB,IAAM,IAAI;IAM3B,oBAAoB,IAAM,IAAI;IAM9B,YAAY,CAAE,iBAAiB,EAAE,YAAY,CAAC,UAAU,CAAC,GAAI,IAAI;IASjE,OAAO,CAAE,iBAAiB,EAAE,YAAY,CAAC,UAAU,CAAC,GAAI,IAAI;IAI5D;;OAEG;IACH,OAAO,CAAC,kBAAkB;IAS1B;;OAEG;IACH,OAAO,CAAC,kBAAkB;IAM1B;;;;;OAKG;IACH,OAAO,CAAC,wBAAwB,CAI9B;IAGF,OAAO,CAAC,kC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IASjE,OAAO,CAAE,iBAAiB,EAAE,YAAY,CAAC,UAAU,CAAC,GAAI,IAAI;IAI5D;;OAEG;IACH,OAAO,CAAC,kBAAkB;IAS1B;;OAEG;IACH,OAAO,CAAC,kBAAkB;IAM1B;;;;;OAKG;IACH,OAAO,CAAC,wBAAwB,CAI9B;IAGF,OAAO,CAAC,kCAAkC;IAU1C,OAAO,CAAC,4BAA4B;IAYpC;;;;OAIG;IACH,OAAO,CAAC,YAAY;IAQpB,MAAM;IA2BN;;;OAGG;IACH,OAAO,CAAC,yBAAyB,CAyB/B;IAEF;;;;;;;;;;OAUG;IACH,OAAO,CAAC,yBAAyB,CAO/B;IAEF;;;;;OAKG;IACH,OAAO,CAAC,iBAAiB;IAWzB,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;AAGpD,eAAO,MAAM,QAAQ,gEAMnB,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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@justeattakeaway/pie-modal",
3
- "version": "0.11.0",
3
+ "version": "0.12.0",
4
4
  "description": "PIE design system modal built using web components",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
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)