@hivegpt/hiveai-angular 0.0.380 → 0.0.381

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 (34) hide show
  1. package/README.md +23 -23
  2. package/karma.conf.js +32 -32
  3. package/ng-package.json +6 -6
  4. package/package.json +20 -20
  5. package/src/environments/environment.ts +19 -19
  6. package/src/lib/components/NotificationSocket.ts +37 -37
  7. package/src/lib/components/bot-html-editor/bot-html-editor.component.css +9 -9
  8. package/src/lib/components/bot-html-editor/bot-html-editor.component.html +11 -11
  9. package/src/lib/components/bot-html-editor/bot-html-editor.component.spec.ts +25 -25
  10. package/src/lib/components/bot-html-editor/bot-html-editor.component.ts +152 -152
  11. package/src/lib/components/bot.service.ts +51 -51
  12. package/src/lib/components/chat-drawer/chat-drawer.component.html +1586 -1586
  13. package/src/lib/components/chat-drawer/chat-drawer.component.scss +2906 -2906
  14. package/src/lib/components/chat-drawer/chat-drawer.component.ts +2143 -2143
  15. package/src/lib/components/chatbot/chatbot.component.html +37 -37
  16. package/src/lib/components/chatbot/chatbot.component.scss +97 -97
  17. package/src/lib/components/chatbot/chatbot.component.ts +44 -44
  18. package/src/lib/components/conversation.service.spec.ts +16 -16
  19. package/src/lib/components/conversation.service.ts +54 -54
  20. package/src/lib/components/socket-service.service.spec.ts +16 -16
  21. package/src/lib/components/socket-service.service.ts +77 -77
  22. package/src/lib/components/translations/translation.service.ts +221 -221
  23. package/src/lib/components/video-player/video-player.component.html +51 -51
  24. package/src/lib/components/video-player/video-player.component.scss +262 -262
  25. package/src/lib/components/video-player/video-player.component.ts +148 -148
  26. package/src/lib/hivegpt.module.ts +18 -18
  27. package/src/lib/models/video.ts +36 -36
  28. package/src/lib/pipes/safe-html.pipe.ts +16 -16
  29. package/src/lib/utils/utils.ts +37 -37
  30. package/src/public-api.ts +7 -7
  31. package/tsconfig.lib.json +25 -25
  32. package/tsconfig.lib.prod.json +10 -10
  33. package/tsconfig.spec.json +17 -17
  34. package/tslint.json +17 -17
package/README.md CHANGED
@@ -1,23 +1,23 @@
1
- # EventsgptAngular
2
-
3
- This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 10.2.5.
4
-
5
- ## Code scaffolding
6
-
7
- Run `ng generate component component-name --project eventsgpt-angular` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project eventsgpt-angular`.
8
- > Note: Don't forget to add `--project eventsgpt-angular` or else it will be added to the default project in your `angular.json` file.
9
-
10
- ## Build
11
- Run `npx ng build @hivegpt/hiveai-angular` to build the project. The build artifacts will be stored in the `dist/` directory.
12
-
13
- ## Publishing
14
-
15
- After building your library with `ng build eventsgpt-angular`, go to the dist folder `cd dist/eventsgpt-angular` and run `npm publish`.
16
-
17
- ## Running unit tests
18
-
19
- Run `ng test eventsgpt-angular` to execute the unit tests via [Karma](https://karma-runner.github.io).
20
-
21
- ## Further help
22
-
23
- To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
1
+ # EventsgptAngular
2
+
3
+ This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 10.2.5.
4
+
5
+ ## Code scaffolding
6
+
7
+ Run `ng generate component component-name --project eventsgpt-angular` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project eventsgpt-angular`.
8
+ > Note: Don't forget to add `--project eventsgpt-angular` or else it will be added to the default project in your `angular.json` file.
9
+
10
+ ## Build
11
+ Run `npx ng build @hivegpt/hiveai-angular` to build the project. The build artifacts will be stored in the `dist/` directory.
12
+
13
+ ## Publishing
14
+
15
+ After building your library with `ng build eventsgpt-angular`, go to the dist folder `cd dist/eventsgpt-angular` and run `npm publish`.
16
+
17
+ ## Running unit tests
18
+
19
+ Run `ng test eventsgpt-angular` to execute the unit tests via [Karma](https://karma-runner.github.io).
20
+
21
+ ## Further help
22
+
23
+ To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
package/karma.conf.js CHANGED
@@ -1,32 +1,32 @@
1
- // Karma configuration file, see link for more information
2
- // https://karma-runner.github.io/1.0/config/configuration-file.html
3
-
4
- module.exports = function (config) {
5
- config.set({
6
- basePath: '',
7
- frameworks: ['jasmine', '@angular-devkit/build-angular'],
8
- plugins: [
9
- require('karma-jasmine'),
10
- require('karma-chrome-launcher'),
11
- require('karma-jasmine-html-reporter'),
12
- require('karma-coverage-istanbul-reporter'),
13
- require('@angular-devkit/build-angular/plugins/karma')
14
- ],
15
- client: {
16
- clearContext: false // leave Jasmine Spec Runner output visible in browser
17
- },
18
- coverageIstanbulReporter: {
19
- dir: require('path').join(__dirname, '../../../coverage/hivegpt/eventsgpt-angular'),
20
- reports: ['html', 'lcovonly', 'text-summary'],
21
- fixWebpackSourcePaths: true
22
- },
23
- reporters: ['progress', 'kjhtml'],
24
- port: 9876,
25
- colors: true,
26
- logLevel: config.LOG_INFO,
27
- autoWatch: true,
28
- browsers: ['Chrome'],
29
- singleRun: false,
30
- restartOnFileChange: true
31
- });
32
- };
1
+ // Karma configuration file, see link for more information
2
+ // https://karma-runner.github.io/1.0/config/configuration-file.html
3
+
4
+ module.exports = function (config) {
5
+ config.set({
6
+ basePath: '',
7
+ frameworks: ['jasmine', '@angular-devkit/build-angular'],
8
+ plugins: [
9
+ require('karma-jasmine'),
10
+ require('karma-chrome-launcher'),
11
+ require('karma-jasmine-html-reporter'),
12
+ require('karma-coverage-istanbul-reporter'),
13
+ require('@angular-devkit/build-angular/plugins/karma')
14
+ ],
15
+ client: {
16
+ clearContext: false // leave Jasmine Spec Runner output visible in browser
17
+ },
18
+ coverageIstanbulReporter: {
19
+ dir: require('path').join(__dirname, '../../../coverage/hivegpt/eventsgpt-angular'),
20
+ reports: ['html', 'lcovonly', 'text-summary'],
21
+ fixWebpackSourcePaths: true
22
+ },
23
+ reporters: ['progress', 'kjhtml'],
24
+ port: 9876,
25
+ colors: true,
26
+ logLevel: config.LOG_INFO,
27
+ autoWatch: true,
28
+ browsers: ['Chrome'],
29
+ singleRun: false,
30
+ restartOnFileChange: true
31
+ });
32
+ };
package/ng-package.json CHANGED
@@ -1,7 +1,7 @@
1
- {
2
- "$schema": "../../../node_modules/ng-packagr/ng-package.schema.json",
3
- "dest": "../../../dist/hivegpt/eventsgpt-angular",
4
- "lib": {
5
- "entryFile": "src/public-api.ts"
6
- }
1
+ {
2
+ "$schema": "../../../node_modules/ng-packagr/ng-package.schema.json",
3
+ "dest": "../../../dist/hivegpt/eventsgpt-angular",
4
+ "lib": {
5
+ "entryFile": "src/public-api.ts"
6
+ }
7
7
  }
package/package.json CHANGED
@@ -1,20 +1,20 @@
1
- {
2
- "name": "@hivegpt/hiveai-angular",
3
- "version": "0.0.380",
4
- "peerDependencies": {
5
- "@angular/common": "^10.2.5",
6
- "@angular/core": "^10.2.5",
7
- "microsoft-cognitiveservices-speech-sdk": "^1.17.0"
8
- },
9
- "scripts": {
10
- "ng": "ng",
11
- "start": "ng serve",
12
- "build": "ng build",
13
- "test": "ng test",
14
- "lint": "ng lint",
15
- "e2e": "ng e2e"
16
- },
17
- "dependencies": {
18
- "tslib": "^2.0.0"
19
- }
20
- }
1
+ {
2
+ "name": "@hivegpt/hiveai-angular",
3
+ "version": "0.0.381",
4
+ "peerDependencies": {
5
+ "@angular/common": "^10.2.5",
6
+ "@angular/core": "^10.2.5",
7
+ "microsoft-cognitiveservices-speech-sdk": "^1.17.0"
8
+ },
9
+ "scripts": {
10
+ "ng": "ng",
11
+ "start": "ng serve",
12
+ "build": "ng build",
13
+ "test": "ng test",
14
+ "lint": "ng lint",
15
+ "e2e": "ng e2e"
16
+ },
17
+ "dependencies": {
18
+ "tslib": "^2.0.0"
19
+ }
20
+ }
@@ -1,19 +1,19 @@
1
-
2
-
3
- export const prod_environment = {
4
- USERS_API: 'https://es-user.social27.com/api',
5
- BASE_URL: 'https://agent-api.hivegpt.ai',
6
- AGENTS_API: 'https://hive-ai.social27.com/api',
7
- API_KEY: '82595783-dc9c-4513-8204-709818d51be3',
8
- SocketUrl: 'https://notif-v2-ws.social27.com/'
9
- }
10
-
11
-
12
- export const dev_environment = {
13
- USERS_API: 'https://pre-user.social27.com/api',
14
- BASE_URL: 'https://pre-agent-api.hivegpt.ai',
15
- AGENTS_API: 'https://hive-pre-ai.social27.com/api',
16
- API_KEY: '66d59244c50b8fb597a101t1',
17
- SocketUrl: 'https://notif-ws-staging.social27.com/',
18
- };
19
-
1
+
2
+
3
+ export const prod_environment = {
4
+ USERS_API: 'https://es-user.social27.com/api',
5
+ BASE_URL: 'https://agent-api.hivegpt.ai',
6
+ AGENTS_API: 'https://hive-ai.social27.com/api',
7
+ API_KEY: '82595783-dc9c-4513-8204-709818d51be3',
8
+ SocketUrl: 'https://notif-v2-ws.social27.com/'
9
+ }
10
+
11
+
12
+ export const dev_environment = {
13
+ USERS_API: 'https://pre-user.social27.com/api',
14
+ BASE_URL: 'https://pre-agent-api.hivegpt.ai',
15
+ AGENTS_API: 'https://hive-pre-ai.social27.com/api',
16
+ API_KEY: '66d59244c50b8fb597a101t1',
17
+ SocketUrl: 'https://notif-ws-staging.social27.com/',
18
+ };
19
+
@@ -1,38 +1,38 @@
1
- import { Injectable } from '@angular/core';
2
- import { Socket, SocketIoConfig } from 'ngx-socket-io';
3
- import { prod_environment } from '../../environments/environment';
4
-
5
- @Injectable({
6
- providedIn: 'root' // This ensures the service is available across the application
7
- })
8
- export class NotificationSocket extends Socket {
9
- constructor() {
10
- super(socketConfig);
11
-
12
- // Log connection status
13
- this.on('connect', () => {
14
- console.log('Socket connected');
15
- });
16
-
17
- this.on('disconnect', () => {
18
- console.warn('Socket disconnected');
19
- });
20
-
21
- this.on('connect_error', (err) => {
22
- console.error('Socket connection error:', err);
23
- });
24
- }
25
- }
26
-
27
- const socketConfig: SocketIoConfig = {
28
- url: prod_environment.SocketUrl,
29
- options: {
30
- transports: ['websocket', 'polling'],
31
- reconnection: true,
32
- autoConnect: true,
33
- upgrade: true,
34
- reconnectionDelay: 1000,
35
- reconnectionDelayMax: 5000,
36
- reconnectionAttempts: Infinity
37
- }
1
+ import { Injectable } from '@angular/core';
2
+ import { Socket, SocketIoConfig } from 'ngx-socket-io';
3
+ import { prod_environment } from '../../environments/environment';
4
+
5
+ @Injectable({
6
+ providedIn: 'root' // This ensures the service is available across the application
7
+ })
8
+ export class NotificationSocket extends Socket {
9
+ constructor() {
10
+ super(socketConfig);
11
+
12
+ // Log connection status
13
+ this.on('connect', () => {
14
+ console.log('Socket connected');
15
+ });
16
+
17
+ this.on('disconnect', () => {
18
+ console.warn('Socket disconnected');
19
+ });
20
+
21
+ this.on('connect_error', (err) => {
22
+ console.error('Socket connection error:', err);
23
+ });
24
+ }
25
+ }
26
+
27
+ const socketConfig: SocketIoConfig = {
28
+ url: prod_environment.SocketUrl,
29
+ options: {
30
+ transports: ['websocket', 'polling'],
31
+ reconnection: true,
32
+ autoConnect: true,
33
+ upgrade: true,
34
+ reconnectionDelay: 1000,
35
+ reconnectionDelayMax: 5000,
36
+ reconnectionAttempts: Infinity
37
+ }
38
38
  };
@@ -1,10 +1,10 @@
1
- .save-btn
2
- {
3
- background-color: #f0f0f0;
4
- border: none;
5
- color: #333;
6
- width: 56px;
7
- position: absolute;
8
- right: 16px;
9
- margin-top: 22px;
1
+ .save-btn
2
+ {
3
+ background-color: #f0f0f0;
4
+ border: none;
5
+ color: #333;
6
+ width: 56px;
7
+ position: absolute;
8
+ right: 16px;
9
+ margin-top: 22px;
10
10
  }
@@ -1,11 +1,11 @@
1
- <div style="padding: 12px">
2
- <div style="margin-top: 42px" class="form-group">
3
- <input [(ngModel)]="documentName" class="form-control" type="text" />
4
- <button (click)="saveContent()" class="save-btn">Save</button>
5
- </div>
6
-
7
- <quill-editor
8
- [(ngModel)]="editorContent"
9
- [modules]="quillConfig"
10
- ></quill-editor>
11
- </div>
1
+ <div style="padding: 12px">
2
+ <div style="margin-top: 42px" class="form-group">
3
+ <input [(ngModel)]="documentName" class="form-control" type="text" />
4
+ <button (click)="saveContent()" class="save-btn">Save</button>
5
+ </div>
6
+
7
+ <quill-editor
8
+ [(ngModel)]="editorContent"
9
+ [modules]="quillConfig"
10
+ ></quill-editor>
11
+ </div>
@@ -1,25 +1,25 @@
1
- import { ComponentFixture, TestBed } from '@angular/core/testing';
2
-
3
- import { BotHtmlEditorComponent } from './bot-html-editor.component';
4
-
5
- describe('BotHtmlEditorComponent', () => {
6
- let component: BotHtmlEditorComponent;
7
- let fixture: ComponentFixture<BotHtmlEditorComponent>;
8
-
9
- beforeEach(async () => {
10
- await TestBed.configureTestingModule({
11
- declarations: [ BotHtmlEditorComponent ]
12
- })
13
- .compileComponents();
14
- });
15
-
16
- beforeEach(() => {
17
- fixture = TestBed.createComponent(BotHtmlEditorComponent);
18
- component = fixture.componentInstance;
19
- fixture.detectChanges();
20
- });
21
-
22
- it('should create', () => {
23
- expect(component).toBeTruthy();
24
- });
25
- });
1
+ import { ComponentFixture, TestBed } from '@angular/core/testing';
2
+
3
+ import { BotHtmlEditorComponent } from './bot-html-editor.component';
4
+
5
+ describe('BotHtmlEditorComponent', () => {
6
+ let component: BotHtmlEditorComponent;
7
+ let fixture: ComponentFixture<BotHtmlEditorComponent>;
8
+
9
+ beforeEach(async () => {
10
+ await TestBed.configureTestingModule({
11
+ declarations: [ BotHtmlEditorComponent ]
12
+ })
13
+ .compileComponents();
14
+ });
15
+
16
+ beforeEach(() => {
17
+ fixture = TestBed.createComponent(BotHtmlEditorComponent);
18
+ component = fixture.componentInstance;
19
+ fixture.detectChanges();
20
+ });
21
+
22
+ it('should create', () => {
23
+ expect(component).toBeTruthy();
24
+ });
25
+ });