@connectycube/chat-widget-angular 0.36.1 → 0.37.1
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.
|
@@ -40,10 +40,10 @@ class ConnectyCubeChatWidgetComponent {
|
|
|
40
40
|
const reactElement = React.createElement(ConnectyCubeChatWidget, this.props);
|
|
41
41
|
this.root.render(reactElement);
|
|
42
42
|
}
|
|
43
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
44
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
43
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: ConnectyCubeChatWidgetComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
44
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.7", type: ConnectyCubeChatWidgetComponent, isStandalone: true, selector: "connectycube-chat-widget", inputs: { props: "props" }, usesOnChanges: true, ngImport: i0, template: `<div id="connectycube-chat-widget-root" style="display: contents;"></div>`, isInline: true });
|
|
45
45
|
}
|
|
46
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
46
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: ConnectyCubeChatWidgetComponent, decorators: [{
|
|
47
47
|
type: Component,
|
|
48
48
|
args: [{
|
|
49
49
|
selector: 'connectycube-chat-widget',
|
|
@@ -55,11 +55,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.3", ngImpor
|
|
|
55
55
|
}] } });
|
|
56
56
|
|
|
57
57
|
class ConnectyCubeChatWidgetModule {
|
|
58
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
59
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.
|
|
60
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.
|
|
58
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: ConnectyCubeChatWidgetModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
59
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.7", ngImport: i0, type: ConnectyCubeChatWidgetModule, imports: [ConnectyCubeChatWidgetComponent], exports: [ConnectyCubeChatWidgetComponent] });
|
|
60
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: ConnectyCubeChatWidgetModule });
|
|
61
61
|
}
|
|
62
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
62
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: ConnectyCubeChatWidgetModule, decorators: [{
|
|
63
63
|
type: NgModule,
|
|
64
64
|
args: [{
|
|
65
65
|
imports: [ConnectyCubeChatWidgetComponent],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connectycube-chat-widget.mjs","sources":["../../src/lib/connectycube-chat-widget.component.ts","../../src/lib/connectycube-chat-widget.module.ts","../../src/connectycube-chat-widget.ts"],"sourcesContent":["import {\n AfterViewInit,\n Component,\n ElementRef,\n Input,\n NgZone,\n OnChanges,\n OnDestroy,\n SimpleChanges,\n} from '@angular/core';\n\nimport * as React from 'react';\nimport { createRoot, Root } from 'react-dom/client';\nimport ConnectyCubeChatWidget, { type ConnectyCubeChatWidgetProps } from '@connectycube/chat-widget';\n\n@Component({\n selector: 'connectycube-chat-widget',\n standalone: true,\n template: `<div id=\"connectycube-chat-widget-root\" style=\"display: contents;\"></div>`,\n})\nexport class ConnectyCubeChatWidgetComponent implements AfterViewInit, OnChanges, OnDestroy {\n @Input() props?: ConnectyCubeChatWidgetProps;\n\n private root: Root | null = null;\n private container!: HTMLElement;\n\n constructor(\n private host: ElementRef<HTMLElement>,\n private zone: NgZone\n ) {}\n\n ngAfterViewInit(): void {\n if (typeof window === 'undefined') return;\n\n this.container = this.host.nativeElement.querySelector('#connectycube-chat-widget-root') as HTMLElement;\n\n this.zone.runOutsideAngular(() => {\n this.root = createRoot(this.container);\n this.renderReact();\n });\n }\n\n ngOnChanges(_changes: SimpleChanges): void {\n if (this.root) {\n this.zone.runOutsideAngular(() => this.renderReact());\n }\n }\n\n ngOnDestroy(): void {\n if (this.root) {\n this.root.unmount();\n this.root = null;\n }\n }\n\n private renderReact(): void {\n if (!this.root) return;\n const reactElement = React.createElement(ConnectyCubeChatWidget, this.props);\n this.root.render(reactElement);\n }\n}\n","import { NgModule } from '@angular/core';\nimport { ConnectyCubeChatWidgetComponent } from './connectycube-chat-widget.component';\n\n@NgModule({\n imports: [ConnectyCubeChatWidgetComponent],\n exports: [ConnectyCubeChatWidgetComponent],\n})\nexport class ConnectyCubeChatWidgetModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAoBa,+BAA+B,CAAA;AAOhC,IAAA,IAAA;AACA,IAAA,IAAA;AAPD,IAAA,KAAK;IAEN,IAAI,GAAgB,IAAI;AACxB,IAAA,SAAS;IAEjB,WAAA,CACU,IAA6B,EAC7B,IAAY,EAAA;QADZ,IAAA,CAAA,IAAI,GAAJ,IAAI;QACJ,IAAA,CAAA,IAAI,GAAJ,IAAI;IACX;IAEH,eAAe,GAAA;QACb,IAAI,OAAO,MAAM,KAAK,WAAW;YAAE;AAEnC,QAAA,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,aAAa,CAAC,gCAAgC,CAAgB;AAEvG,QAAA,IAAI,CAAC,IAAI,CAAC,iBAAiB,C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,IAAI;AAChB,oBAAA,QAAQ,EAAE,CAAA,yEAAA,CAA2E;AACtF,iBAAA
|
|
1
|
+
{"version":3,"file":"connectycube-chat-widget.mjs","sources":["../../src/lib/connectycube-chat-widget.component.ts","../../src/lib/connectycube-chat-widget.module.ts","../../src/connectycube-chat-widget.ts"],"sourcesContent":["import {\n AfterViewInit,\n Component,\n ElementRef,\n Input,\n NgZone,\n OnChanges,\n OnDestroy,\n SimpleChanges,\n} from '@angular/core';\n\nimport * as React from 'react';\nimport { createRoot, Root } from 'react-dom/client';\nimport ConnectyCubeChatWidget, { type ConnectyCubeChatWidgetProps } from '@connectycube/chat-widget';\n\n@Component({\n selector: 'connectycube-chat-widget',\n standalone: true,\n template: `<div id=\"connectycube-chat-widget-root\" style=\"display: contents;\"></div>`,\n})\nexport class ConnectyCubeChatWidgetComponent implements AfterViewInit, OnChanges, OnDestroy {\n @Input() props?: ConnectyCubeChatWidgetProps;\n\n private root: Root | null = null;\n private container!: HTMLElement;\n\n constructor(\n private host: ElementRef<HTMLElement>,\n private zone: NgZone\n ) {}\n\n ngAfterViewInit(): void {\n if (typeof window === 'undefined') return;\n\n this.container = this.host.nativeElement.querySelector('#connectycube-chat-widget-root') as HTMLElement;\n\n this.zone.runOutsideAngular(() => {\n this.root = createRoot(this.container);\n this.renderReact();\n });\n }\n\n ngOnChanges(_changes: SimpleChanges): void {\n if (this.root) {\n this.zone.runOutsideAngular(() => this.renderReact());\n }\n }\n\n ngOnDestroy(): void {\n if (this.root) {\n this.root.unmount();\n this.root = null;\n }\n }\n\n private renderReact(): void {\n if (!this.root) return;\n const reactElement = React.createElement(ConnectyCubeChatWidget, this.props);\n this.root.render(reactElement);\n }\n}\n","import { NgModule } from '@angular/core';\nimport { ConnectyCubeChatWidgetComponent } from './connectycube-chat-widget.component';\n\n@NgModule({\n imports: [ConnectyCubeChatWidgetComponent],\n exports: [ConnectyCubeChatWidgetComponent],\n})\nexport class ConnectyCubeChatWidgetModule {}\n","/**\n * Generated bund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AAA,EAAA,KAAA,EAAA,EAAA,CAAA,UAAA,EAAA,EAAA,EAAA,KAAA,EAAA,EAAA,CAAA,MAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAA/B,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,+BAA+B,qIAFhC,CAAA,yEAAA,CAA2E,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA;;2FAE1E,+BAA+B,EAAA,UAAA,EAAA,CAAA;kBAL3C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,0BAA0B;AACpC,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,CAAA,yEAAA,CAA2E;AACtF,iBAAA;;sBAEE;;;MCdU,4BAA4B,CAAA;uGAA5B,4BAA4B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;wGAA5B,4BAA4B,EAAA,OAAA,EAAA,CAH7B,+BAA+B,CAAA,EAAA,OAAA,EAAA,CAC/B,+BAA+B,CAAA,EAAA,CAAA;wGAE9B,4BAA4B,EAAA,CAAA;;2FAA5B,4BAA4B,EAAA,UAAA,EAAA,CAAA;kBAJxC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,+BAA+B,CAAC;oBAC1C,OAAO,EAAE,CAAC,+BAA+B,CAAC;AAC3C,iBAAA;;;ACND;;AAEG;;;;"}
|
|
@@ -40,10 +40,10 @@ class ConnectyCubeChatWidgetComponent {
|
|
|
40
40
|
const reactElement = React.createElement(ConnectyCubeChatWidget, this.props);
|
|
41
41
|
this.root.render(reactElement);
|
|
42
42
|
}
|
|
43
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
44
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
43
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: ConnectyCubeChatWidgetComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
44
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.7", type: ConnectyCubeChatWidgetComponent, isStandalone: true, selector: "connectycube-chat-widget", inputs: { props: "props" }, usesOnChanges: true, ngImport: i0, template: `<div id="connectycube-chat-widget-root" style="display: contents;"></div>`, isInline: true });
|
|
45
45
|
}
|
|
46
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
46
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: ConnectyCubeChatWidgetComponent, decorators: [{
|
|
47
47
|
type: Component,
|
|
48
48
|
args: [{
|
|
49
49
|
selector: 'connectycube-chat-widget',
|
|
@@ -55,11 +55,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.3", ngImpor
|
|
|
55
55
|
}] } });
|
|
56
56
|
|
|
57
57
|
class ConnectyCubeChatWidgetModule {
|
|
58
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
59
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.
|
|
60
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.
|
|
58
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: ConnectyCubeChatWidgetModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
59
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.7", ngImport: i0, type: ConnectyCubeChatWidgetModule, imports: [ConnectyCubeChatWidgetComponent], exports: [ConnectyCubeChatWidgetComponent] });
|
|
60
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: ConnectyCubeChatWidgetModule });
|
|
61
61
|
}
|
|
62
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
62
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: ConnectyCubeChatWidgetModule, decorators: [{
|
|
63
63
|
type: NgModule,
|
|
64
64
|
args: [{
|
|
65
65
|
imports: [ConnectyCubeChatWidgetComponent],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connectycube-chat-widget.mjs","sources":["../../../src/lib/connectycube-chat-widget.react18.component.ts","../../../src/lib/connectycube-chat-widget.react18.module.ts","../../../src/connectycube-chat-widget.ts"],"sourcesContent":["import {\n AfterViewInit,\n Component,\n ElementRef,\n Input,\n NgZone,\n OnChanges,\n OnDestroy,\n SimpleChanges,\n} from '@angular/core';\nimport * as React from 'react';\nimport { createRoot, Root } from 'react-dom/client';\nimport ConnectyCubeChatWidget, { type ConnectyCubeChatWidgetProps } from '@connectycube/chat-widget/react18';\n\n@Component({\n selector: 'connectycube-chat-widget',\n standalone: true,\n template: `<div id=\"connectycube-chat-widget-root\" style=\"display: contents;\"></div>`,\n})\nexport class ConnectyCubeChatWidgetComponent implements AfterViewInit, OnChanges, OnDestroy {\n @Input() props?: ConnectyCubeChatWidgetProps;\n\n private root: Root | null = null;\n private container!: HTMLElement;\n\n constructor(\n private host: ElementRef<HTMLElement>,\n private zone: NgZone\n ) {}\n\n ngAfterViewInit(): void {\n if (typeof window === 'undefined') return;\n\n this.container = this.host.nativeElement.querySelector('#connectycube-chat-widget-root') as HTMLElement;\n\n this.zone.runOutsideAngular(() => {\n this.root = createRoot(this.container);\n this.renderReact();\n });\n }\n\n ngOnChanges(_changes: SimpleChanges): void {\n if (this.root) {\n this.zone.runOutsideAngular(() => this.renderReact());\n }\n }\n\n ngOnDestroy(): void {\n if (this.root) {\n this.root.unmount();\n this.root = null;\n }\n }\n\n private renderReact(): void {\n if (!this.root) return;\n const reactElement = React.createElement(ConnectyCubeChatWidget, this.props);\n this.root.render(reactElement);\n }\n}\n","import { NgModule } from '@angular/core';\nimport { ConnectyCubeChatWidgetComponent } from './connectycube-chat-widget.react18.component';\n\n@NgModule({\n imports: [ConnectyCubeChatWidgetComponent],\n exports: [ConnectyCubeChatWidgetComponent],\n})\nexport class ConnectyCubeChatWidgetModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index.react18';\n"],"names":[],"mappings":";;;;;;MAmBa,+BAA+B,CAAA;AAOhC,IAAA,IAAA;AACA,IAAA,IAAA;AAPD,IAAA,KAAK;IAEN,IAAI,GAAgB,IAAI;AACxB,IAAA,SAAS;IAEjB,WAAA,CACU,IAA6B,EAC7B,IAAY,EAAA;QADZ,IAAA,CAAA,IAAI,GAAJ,IAAI;QACJ,IAAA,CAAA,IAAI,GAAJ,IAAI;IACX;IAEH,eAAe,GAAA;QACb,IAAI,OAAO,MAAM,KAAK,WAAW;YAAE;AAEnC,QAAA,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,aAAa,CAAC,gCAAgC,CAAgB;AAEvG,QAAA,IAAI,CAAC,IAAI,CAAC,iBAAiB,CAAC,MAAK;YAC/B,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC;YACtC,IAAI,CAAC,WAAW,EAAE;AACpB,QAAA,CAAC,CAAC;IACJ;AAEA,IAAA,WAAW,CAAC,QAAuB,EAAA;AACjC,QAAA,IAAI,IAAI,CAAC,IAAI,EAAE;AACb,YAAA,IAAI,CAAC,IAAI,CAAC,iBAAiB,CAAC,MAAM,IAAI,CAAC,WAAW,EAAE,CAAC;QACvD;IACF;IAEA,WAAW,GAAA;AACT,QAAA,IAAI,IAAI,CAAC,IAAI,EAAE;AACb,YAAA,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;AACnB,YAAA,IAAI,CAAC,IAAI,GAAG,IAAI;QAClB;IACF;IAEQ,WAAW,GAAA;QACjB,IAAI,CAAC,IAAI,CAAC,IAAI;YAAE;AAChB,QAAA,MAAM,YAAY,GAAG,KAAK,CAAC,aAAa,CAAC,sBAAsB,EAAE,IAAI,CAAC,KAAK,CAAC;AAC5E,QAAA,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC;IAChC;uGAvCW,+BAA+B,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,UAAA,EAAA,EAAA,EAAA,KAAA,EAAA,EAAA,CAAA,MAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAA/B,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,+BAA+B,qIAFhC,CAAA,yEAAA,CAA2E,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA;;2FAE1E,+BAA+B,EAAA,UAAA,EAAA,CAAA;kBAL3C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,0BAA0B;AACpC,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,CAAA,yEAAA,CAA2E;AACtF,iBAAA
|
|
1
|
+
{"version":3,"file":"connectycube-chat-widget.mjs","sources":["../../../src/lib/connectycube-chat-widget.react18.component.ts","../../../src/lib/connectycube-chat-widget.react18.module.ts","../../../src/connectycube-chat-widget.ts"],"sourcesContent":["import {\n AfterViewInit,\n Component,\n ElementRef,\n Input,\n NgZone,\n OnChanges,\n OnDestroy,\n SimpleChanges,\n} from '@angular/core';\nimport * as React from 'react';\nimport { createRoot, Root } from 'react-dom/client';\nimport ConnectyCubeChatWidget, { type ConnectyCubeChatWidgetProps } from '@connectycube/chat-widget/react18';\n\n@Component({\n selector: 'connectycube-chat-widget',\n standalone: true,\n template: `<div id=\"connectycube-chat-widget-root\" style=\"display: contents;\"></div>`,\n})\nexport class ConnectyCubeChatWidgetComponent implements AfterViewInit, OnChanges, OnDestroy {\n @Input() props?: ConnectyCubeChatWidgetProps;\n\n private root: Root | null = null;\n private container!: HTMLElement;\n\n constructor(\n private host: ElementRef<HTMLElement>,\n private zone: NgZone\n ) {}\n\n ngAfterViewInit(): void {\n if (typeof window === 'undefined') return;\n\n this.container = this.host.nativeElement.querySelector('#connectycube-chat-widget-root') as HTMLElement;\n\n this.zone.runOutsideAngular(() => {\n this.root = createRoot(this.container);\n this.renderReact();\n });\n }\n\n ngOnChanges(_changes: SimpleChanges): void {\n if (this.root) {\n this.zone.runOutsideAngular(() => this.renderReact());\n }\n }\n\n ngOnDestroy(): void {\n if (this.root) {\n this.root.unmount();\n this.root = null;\n }\n }\n\n private renderReact(): void {\n if (!this.root) return;\n const reactElement = React.createElement(ConnectyCubeChatWidget, this.props);\n this.root.render(reactElement);\n }\n}\n","import { NgModule } from '@angular/core';\nimport { ConnectyCubeChatWidgetComponent } from './connectycube-chat-widget.react18.component';\n\n@NgModule({\n imports: [ConnectyCubeChatWidgetComponent],\n exports: [ConnectyCubeChatWidgetComponent],\n})\nexport class ConnectyCubeChatWidgetModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index.react18';\n"],"names":[],"mappings":";;;;;;MAmBa,+BAA+B,CAAA;AAOhC,IAAA,IAAA;AACA,IAAA,IAAA;AAPD,IAAA,KAAK;IAEN,IAAI,GAAgB,IAAI;AACxB,IAAA,SAAS;IAEjB,WAAA,CACU,IAA6B,EAC7B,IAAY,EAAA;QADZ,IAAA,CAAA,IAAI,GAAJ,IAAI;QACJ,IAAA,CA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AAA,IAAA,EAAA,+BAA+B,qIAFhC,CAAA,yEAAA,CAA2E,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA;;2FAE1E,+BAA+B,EAAA,UAAA,EAAA,CAAA;kBAL3C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,0BAA0B;AACpC,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,CAAA,yEAAA,CAA2E;AACtF,iBAAA;;sBAEE;;;MCbU,4BAA4B,CAAA;uGAA5B,4BAA4B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;wGAA5B,4BAA4B,EAAA,OAAA,EAAA,CAH7B,+BAA+B,CAAA,EAAA,OAAA,EAAA,CAC/B,+BAA+B,CAAA,EAAA,CAAA;wGAE9B,4BAA4B,EAAA,CAAA;;2FAA5B,4BAA4B,EAAA,UAAA,EAAA,CAAA;kBAJxC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,+BAA+B,CAAC;oBAC1C,OAAO,EAAE,CAAC,+BAA+B,CAAC;AAC3C,iBAAA;;;ACND;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@connectycube/chat-widget-angular",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.37.1",
|
|
4
4
|
"description": "A customizable Angular chat widget built on the ConnectyCube platform, enabling real-time messaging, calls, and user engagement in any web app.",
|
|
5
5
|
"license": "GPL-3.0-only",
|
|
6
6
|
"homepage": "https://github.com/ConnectyCube/connectycube-chat-widget/packages/chat-widget-angular#readme",
|
|
@@ -54,12 +54,12 @@
|
|
|
54
54
|
"react-dom": ">=18"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@connectycube/chat-widget": "
|
|
57
|
+
"@connectycube/chat-widget": "0.37.1"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@connectycube/chat-widget": "file:../chat-widget",
|
|
61
61
|
"@types/react": "^19.2.2",
|
|
62
|
-
"@types/react-dom": "^19.2.
|
|
62
|
+
"@types/react-dom": "^19.2.2",
|
|
63
63
|
"ng-packagr": "^20.3.0",
|
|
64
64
|
"typescript": "^5.9.3"
|
|
65
65
|
},
|