ublo-lib 1.45.5 → 1.45.6

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,2 @@
1
- export declare const eventConfig: {
2
- passive: boolean;
3
- };
1
+ export declare function fire(domain: Document | Window | HTMLElement, name: string, detail: any): void;
4
2
  //# sourceMappingURL=events.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/common/utils/events.ts"],"names":[],"mappings":"AAoBA,eAAO,MAAM,WAAW;;CAAiB,CAAC"}
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/common/utils/events.ts"],"names":[],"mappings":"AAAA,wBAAgB,IAAI,CAClB,MAAM,EAAE,QAAQ,GAAG,MAAM,GAAG,WAAW,EACvC,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,GAAG,QAIZ"}
@@ -1,2 +1,4 @@
1
- const PASSIVE_OPTION = { passive: true };
2
- export const eventConfig = PASSIVE_OPTION;
1
+ export function fire(domain, name, detail) {
2
+ const event = new window.CustomEvent(name, { detail, bubbles: true });
3
+ domain.dispatchEvent(event);
4
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ublo-lib",
3
- "version": "1.45.5",
3
+ "version": "1.45.6",
4
4
  "peerDependencies": {
5
5
  "classnames": "^2.5.1",
6
6
  "dt-design-system": "^3.12.0",