@telelogx/analytick-widget 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.
- package/README.md +16 -4
- package/dist/analytick-widget.es.js +683 -595
- package/dist/analytick-widget.umd.js +1 -1
- package/package.json +12 -2
- package/src/index.d.ts +39 -0
package/package.json
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@telelogx/analytick-widget",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Customizable web widget for Analytick platform",
|
|
5
5
|
"author": "Analytick",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "./dist/analytick-widget.umd.js",
|
|
9
9
|
"module": "./dist/analytick-widget.es.js",
|
|
10
|
+
"types": "./src/index.d.ts",
|
|
10
11
|
"files": [
|
|
11
|
-
"dist"
|
|
12
|
+
"dist",
|
|
13
|
+
"src/index.d.ts"
|
|
12
14
|
],
|
|
13
15
|
"keywords": [
|
|
14
16
|
"widget",
|
|
@@ -44,6 +46,14 @@
|
|
|
44
46
|
"preact": "^10.27.0",
|
|
45
47
|
"react-i18next": "^15.1.4"
|
|
46
48
|
},
|
|
49
|
+
"peerDependencies": {
|
|
50
|
+
"react": ">=16.8.0"
|
|
51
|
+
},
|
|
52
|
+
"peerDependenciesMeta": {
|
|
53
|
+
"react": {
|
|
54
|
+
"optional": true
|
|
55
|
+
}
|
|
56
|
+
},
|
|
47
57
|
"devDependencies": {
|
|
48
58
|
"@biomejs/biome": "^2.2.2",
|
|
49
59
|
"@preact/preset-vite": "^2.10.2",
|
package/src/index.d.ts
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { FC } from "react";
|
|
2
|
+
|
|
3
|
+
export interface AnalytickWidgetProps {
|
|
4
|
+
orgId: string;
|
|
5
|
+
widgetId: string;
|
|
6
|
+
baseUrl: string;
|
|
7
|
+
theme?: string;
|
|
8
|
+
language?: string;
|
|
9
|
+
position?: string;
|
|
10
|
+
autoOpen?: boolean;
|
|
11
|
+
greetingMessage?: string;
|
|
12
|
+
primaryColor?: string;
|
|
13
|
+
rtl?: boolean;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface WidgetInitConfig {
|
|
17
|
+
orgId: string;
|
|
18
|
+
widgetId: string;
|
|
19
|
+
baseUrl: string;
|
|
20
|
+
primaryColor?: string;
|
|
21
|
+
secondaryColor?: string;
|
|
22
|
+
container?: HTMLElement;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export const AnalytickWidget: FC<AnalytickWidgetProps>;
|
|
26
|
+
|
|
27
|
+
export class AnalytickWidgetElement extends HTMLElement {
|
|
28
|
+
orgId: string;
|
|
29
|
+
widgetId: string;
|
|
30
|
+
baseUrl: string;
|
|
31
|
+
primaryColor: string | null;
|
|
32
|
+
secondaryColor: string | null;
|
|
33
|
+
theme: string | null;
|
|
34
|
+
language: string | null;
|
|
35
|
+
position: string | null;
|
|
36
|
+
autoOpen: boolean;
|
|
37
|
+
greetingMessage: string | null;
|
|
38
|
+
rtl: boolean;
|
|
39
|
+
}
|