cotomy 0.1.33 → 0.1.35

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/dist/view.d.ts CHANGED
@@ -18,11 +18,11 @@ export declare class CotomyElement {
18
18
  get scopedSelector(): string;
19
19
  get stylable(): boolean;
20
20
  private get scopedCssElementId();
21
- private get scopedCssElement();
22
21
  private useScopedCss;
23
22
  static readonly LISTEN_LAYOUT_EVENTS_ATTRIBUTE: string;
24
23
  listenLayoutEvents(): this;
25
24
  get id(): string | null | undefined;
25
+ generateId(prefix?: string): this;
26
26
  get element(): HTMLElement;
27
27
  get tagname(): string;
28
28
  is(selector: string): boolean;
@@ -132,7 +132,7 @@ export declare class CotomyElement {
132
132
  prependTo(target: CotomyElement): this;
133
133
  trigger(event: string, e?: Event | null): this;
134
134
  on(event: string, handle: (e: Event) => void | Promise<void>): this;
135
- onChild(event: string, selector: string, handle: (e: Event, matched: HTMLElement) => void | Promise<void>): this;
135
+ onChild(event: string, selector: string, handle: (e: Event) => void | Promise<void>): this;
136
136
  once(event: string, handle: (e: Event) => void | Promise<void>): this;
137
137
  off(event: string, handle?: (e: Event) => void | Promise<void>): this;
138
138
  handlers(event: string): Array<(e: Event) => void | Promise<void>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cotomy",
3
- "version": "0.1.33",
3
+ "version": "0.1.35",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [