@w0nna_dev/lina-widget 1.2.4 → 1.2.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.
- package/dist/lina-widget.es.js +1254 -1058
- package/dist/lina-widget.umd.js +184 -54
- package/dist/src/lina/components/LinaWidget.d.ts +25 -0
- package/package.json +42 -43
|
@@ -3,6 +3,7 @@ import { LinaState, LinaEmotion, LinaColors } from '../core';
|
|
|
3
3
|
export type CallStatus = 'idle' | 'connecting' | 'active' | 'ending' | 'error' | 'mic-denied';
|
|
4
4
|
export declare class LinaWidget extends LitElement {
|
|
5
5
|
static styles: import('lit').CSSResult;
|
|
6
|
+
private static readonly CONSENT_STORAGE_KEY;
|
|
6
7
|
private orbRenderer;
|
|
7
8
|
private orbContainerRef;
|
|
8
9
|
private audioSimPhase;
|
|
@@ -27,8 +28,16 @@ export declare class LinaWidget extends LitElement {
|
|
|
27
28
|
versionColor: string;
|
|
28
29
|
buttonBackground: string;
|
|
29
30
|
buttonTextColor: string;
|
|
31
|
+
requireConsent: boolean;
|
|
32
|
+
termsUrl: string;
|
|
33
|
+
privacyUrl: string;
|
|
34
|
+
consentTitle: string;
|
|
35
|
+
consentText: string;
|
|
36
|
+
consentAcceptText: string;
|
|
37
|
+
consentDeclineText: string;
|
|
30
38
|
private currentState;
|
|
31
39
|
private callStatus;
|
|
40
|
+
private showConsentDialog;
|
|
32
41
|
private isLoading;
|
|
33
42
|
private _hasMicPermission;
|
|
34
43
|
connectedCallback(): void;
|
|
@@ -70,6 +79,22 @@ export declare class LinaWidget extends LitElement {
|
|
|
70
79
|
private startIdleAnimation;
|
|
71
80
|
private startActiveAnimation;
|
|
72
81
|
private connectAudioStream;
|
|
82
|
+
/**
|
|
83
|
+
* Check if user has accepted consent
|
|
84
|
+
*/
|
|
85
|
+
private hasUserConsent;
|
|
86
|
+
/**
|
|
87
|
+
* Save user consent to localStorage
|
|
88
|
+
*/
|
|
89
|
+
private saveConsent;
|
|
90
|
+
/**
|
|
91
|
+
* Handle consent accept
|
|
92
|
+
*/
|
|
93
|
+
private handleConsentAccept;
|
|
94
|
+
/**
|
|
95
|
+
* Handle consent decline
|
|
96
|
+
*/
|
|
97
|
+
private handleConsentDecline;
|
|
73
98
|
private handleCallClick;
|
|
74
99
|
/**
|
|
75
100
|
* Start a call
|
package/package.json
CHANGED
|
@@ -1,43 +1,42 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@w0nna_dev/lina-widget",
|
|
3
|
-
"version": "1.2.
|
|
4
|
-
"private": false,
|
|
5
|
-
"publishConfig": {
|
|
6
|
-
"access": "public"
|
|
7
|
-
},
|
|
8
|
-
"type": "module",
|
|
9
|
-
"main": "dist/lina-widget.umd.js",
|
|
10
|
-
"module": "dist/lina-widget.es.js",
|
|
11
|
-
"types": "dist/index.d.ts",
|
|
12
|
-
"files": [
|
|
13
|
-
"dist",
|
|
14
|
-
"README.md"
|
|
15
|
-
],
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"three": "^0.182.0"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"eslint": "^
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@w0nna_dev/lina-widget",
|
|
3
|
+
"version": "1.2.6",
|
|
4
|
+
"private": false,
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"access": "public"
|
|
7
|
+
},
|
|
8
|
+
"type": "module",
|
|
9
|
+
"main": "dist/lina-widget.umd.js",
|
|
10
|
+
"module": "dist/lina-widget.es.js",
|
|
11
|
+
"types": "dist/index.d.ts",
|
|
12
|
+
"files": [
|
|
13
|
+
"dist",
|
|
14
|
+
"README.md"
|
|
15
|
+
],
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"lit": "^3.2.1",
|
|
18
|
+
"livekit-client": "^2.15.6",
|
|
19
|
+
"three": "^0.182.0"
|
|
20
|
+
},
|
|
21
|
+
"devDependencies": {
|
|
22
|
+
"@changesets/cli": "^2.29.5",
|
|
23
|
+
"@eslint/js": "^9.24.0",
|
|
24
|
+
"@types/node": "^22.14.0",
|
|
25
|
+
"@types/three": "^0.182.0",
|
|
26
|
+
"eslint": "^9.24.0",
|
|
27
|
+
"eslint-config-prettier": "^10.1.1",
|
|
28
|
+
"eslint-plugin-import": "^2.31.0",
|
|
29
|
+
"eslint-plugin-lit": "^2.0.0",
|
|
30
|
+
"ts-lit-plugin": "^2.0.2",
|
|
31
|
+
"typescript": "~5.7.2",
|
|
32
|
+
"typescript-eslint": "^8.29.1",
|
|
33
|
+
"vite": "^6.2.0",
|
|
34
|
+
"vite-plugin-dts": "^4.5.4"
|
|
35
|
+
},
|
|
36
|
+
"scripts": {
|
|
37
|
+
"dev": "vite",
|
|
38
|
+
"build": "tsc && vite build",
|
|
39
|
+
"preview": "vite preview",
|
|
40
|
+
"release": "pnpm build && changeset publish --access public"
|
|
41
|
+
}
|
|
42
|
+
}
|