@techhalo/chat 1.0.0 → 1.0.2

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.
Files changed (2) hide show
  1. package/dist/halochat.d.ts +39 -0
  2. package/package.json +3 -2
@@ -0,0 +1,39 @@
1
+ import { DetailedHTMLProps, HTMLAttributes } from "react";
2
+
3
+ declare module "HaloChat" {}
4
+
5
+ declare global {
6
+ namespace JSX {
7
+ interface IntrinsicElements {
8
+ "halo-chat": DetailedHTMLProps<
9
+ HTMLAttributes<HTMLElement> & {
10
+ projectId: string;
11
+ position: string;
12
+ onCustomEvent?: (event: CustomEvent) => void;
13
+ },
14
+ HTMLElement
15
+ >;
16
+ }
17
+ }
18
+ }
19
+
20
+ declare global {
21
+ interface HTMLElementTagNameMap {
22
+ "halo-chat": HaloChatElement;
23
+ }
24
+ }
25
+
26
+ export interface HaloChatElement extends HTMLElement {
27
+ projectId: string;
28
+ position: string;
29
+ onCustomEvent?: (event: CustomEvent) => void;
30
+ addEventListener(
31
+ type: string,
32
+ listener: EventListenerOrEventListenerObject,
33
+ options?: boolean | AddEventListenerOptions
34
+ ): void;
35
+ }
36
+
37
+ declare module "@HaloChat/HaloChat" {
38
+ export = HaloChatElement;
39
+ }
package/package.json CHANGED
@@ -1,14 +1,15 @@
1
1
  {
2
2
  "name": "@techhalo/chat",
3
3
  "description": "Techhalo Chat Widget",
4
- "version": "1.0.0",
4
+ "version": "1.0.2",
5
5
  "author": "Techhalo",
6
6
  "type": "module",
7
7
  "main": "dist/halo-chat.umd.js",
8
8
  "module": "dist/halo-chat.es.js",
9
- "types": "src/types/halochat.d.ts",
9
+ "types": "dist/halochat.d.ts",
10
10
  "exports": {
11
11
  ".": {
12
+ "types": "./dist/halochat.d.ts",
12
13
  "import": "./dist/halo-chat.es.js",
13
14
  "require": "./dist/halo-chat.umd.js"
14
15
  }