Skip to content

Commit

Permalink
refactor(chat): Remove ContentReady
Browse files Browse the repository at this point in the history
  • Loading branch information
marker dao ® committed Jul 17, 2024
1 parent 9bab507 commit 9b77198
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 25 deletions.
6 changes: 3 additions & 3 deletions packages/devextreme-angular/src/ui/chat/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {
} from '@angular/core';


import { ContentReadyEvent, DisposingEvent, InitializedEvent, Message, MessageSendEvent, OptionChangedEvent } from 'devextreme/ui/chat';
import { DisposingEvent, InitializedEvent, Message, MessageSendEvent, OptionChangedEvent } from 'devextreme/ui/chat';

import DxChat from 'devextreme/ui/chat';

Expand Down Expand Up @@ -166,11 +166,11 @@ export class DxChatComponent extends DxComponent implements OnDestroy, OnChanges

/**
* [descr:dxChatOptions.onContentReady]
* [descr:WidgetOptions.onContentReady]
*/
@Output() onContentReady: EventEmitter<ContentReadyEvent>;
@Output() onContentReady: EventEmitter<any>;

/**
Expand Down
3 changes: 1 addition & 2 deletions packages/devextreme-react/src/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,13 @@ import dxChat, {
import { Component as BaseComponent, IHtmlOptions, ComponentRef, IElementDescriptor } from "./core/component";
import NestedOption from "./core/nested-option";

import type { Message, ContentReadyEvent, DisposingEvent, InitializedEvent, MessageSendEvent, User } from "devextreme/ui/chat";
import type { Message, DisposingEvent, InitializedEvent, MessageSendEvent, User } from "devextreme/ui/chat";

type ReplaceFieldTypes<TSource, TReplacement> = {
[P in keyof TSource]: P extends keyof TReplacement ? TReplacement[P] : TSource[P];
}

type IChatOptionsNarrowedEvents = {
onContentReady?: ((e: ContentReadyEvent) => void);
onDisposing?: ((e: DisposingEvent) => void);
onInitialized?: ((e: InitializedEvent) => void);
onMessageSend?: ((e: MessageSendEvent) => void);
Expand Down
14 changes: 0 additions & 14 deletions packages/devextreme/js/ui/chat.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,6 @@ import {
ChangedOptionInfo,
} from '../events/index';

/**
* @docid _ui_chat_ContentReadyEvent
* @public
* @type object
* @inherits EventInfo
*/
export type ContentReadyEvent = EventInfo<dxChat>;

/**
* @docid _ui_chat_DisposingEvent
* @public
Expand Down Expand Up @@ -137,7 +129,6 @@ export default class dxChat extends Widget<Properties> { }
/** @public */
export type ExplicitTypes = {
Properties: Properties;
ContentReadyEvent: ContentReadyEvent;
DisposingEvent: DisposingEvent;
InitializedEvent: InitializedEvent;
OptionChangedEvent: OptionChangedEvent;
Expand All @@ -158,11 +149,6 @@ type EventsIntegrityCheckingHelper = CheckedEvents<FilterOutHidden<Properties>,
* @hidden
*/
type Events = {
/**
* @docid dxChatOptions.onContentReady
* @type_function_param1 e:{ui/chat:ContentReadyEvent}
*/
onContentReady?: ((e: ContentReadyEvent) => void);
/**
* @docid dxChatOptions.onDisposing
* @type_function_param1 e:{ui/chat:DisposingEvent}
Expand Down
1 change: 0 additions & 1 deletion packages/devextreme/js/ui/chat_types.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
export {
ContentReadyEvent,
DisposingEvent,
InitializedEvent,
OptionChangedEvent,
Expand Down
5 changes: 0 additions & 5 deletions packages/devextreme/ts/dx.all.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9417,17 +9417,12 @@ declare module DevExpress.ui {
*/
export class dxChat extends Widget<DevExpress.ui.dxChat.Properties> {}
module dxChat {
/**
* [descr:_ui_chat_ContentReadyEvent]
*/
export type ContentReadyEvent = DevExpress.events.EventInfo<dxChat>;
/**
* [descr:_ui_chat_DisposingEvent]
*/
export type DisposingEvent = DevExpress.events.EventInfo<dxChat>;
export type ExplicitTypes = {
Properties: Properties;
ContentReadyEvent: ContentReadyEvent;
DisposingEvent: DisposingEvent;
InitializedEvent: InitializedEvent;
OptionChangedEvent: OptionChangedEvent;
Expand Down

0 comments on commit 9b77198

Please sign in to comment.