From cc5f1d0c1eb6321dc60ea62c24cc7cc7d14cdd6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marker=20dao=20=C2=AE?= Date: Wed, 17 Jul 2024 13:51:15 +0400 Subject: [PATCH] refactor(chat): Get rid of ContentReady, step 2 --- packages/devextreme-angular/src/ui/chat/index.ts | 9 --------- packages/devextreme-react/src/chat.ts | 2 +- packages/devextreme-vue/src/chat.ts | 3 --- packages/devextreme/js/ui/chat.js | 5 +++++ 4 files changed, 6 insertions(+), 13 deletions(-) diff --git a/packages/devextreme-angular/src/ui/chat/index.ts b/packages/devextreme-angular/src/ui/chat/index.ts index be6b533b2aad..bed128f62e73 100644 --- a/packages/devextreme-angular/src/ui/chat/index.ts +++ b/packages/devextreme-angular/src/ui/chat/index.ts @@ -164,14 +164,6 @@ export class DxChatComponent extends DxComponent implements OnDestroy, OnChanges this._setOption('width', value); } - /** - - * [descr:WidgetOptions.onContentReady] - - - */ - @Output() onContentReady: EventEmitter; - /** * [descr:dxChatOptions.onDisposing] @@ -284,7 +276,6 @@ export class DxChatComponent extends DxComponent implements OnDestroy, OnChanges super(elementRef, ngZone, templateHost, _watcherHelper, transferState, platformId); this._createEventEmitters([ - { subscribe: 'contentReady', emit: 'onContentReady' }, { subscribe: 'disposing', emit: 'onDisposing' }, { subscribe: 'initialized', emit: 'onInitialized' }, { subscribe: 'messageSend', emit: 'onMessageSend' }, diff --git a/packages/devextreme-react/src/chat.ts b/packages/devextreme-react/src/chat.ts index 2d025ed7b28d..d645ba4de6dc 100644 --- a/packages/devextreme-react/src/chat.ts +++ b/packages/devextreme-react/src/chat.ts @@ -43,7 +43,7 @@ const Chat = memo( ), [baseRef.current]); const subscribableOptions = useMemo(() => (["items"]), []); - const independentEvents = useMemo(() => (["onContentReady","onDisposing","onInitialized","onMessageSend"]), []); + const independentEvents = useMemo(() => (["onDisposing","onInitialized","onMessageSend"]), []); const defaults = useMemo(() => ({ defaultItems: "items", diff --git a/packages/devextreme-vue/src/chat.ts b/packages/devextreme-vue/src/chat.ts index 1a29586bec23..b0beca617901 100644 --- a/packages/devextreme-vue/src/chat.ts +++ b/packages/devextreme-vue/src/chat.ts @@ -8,7 +8,6 @@ type AccessibleOptions = Pick