Skip to content

Commit

Permalink
HtmlEditor: Remove valueType from .d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
marker-dao authored Oct 16, 2024
1 parent 1cd3f73 commit 30e7b2a
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 39 deletions.
23 changes: 1 addition & 22 deletions packages/devextreme-angular/src/ui/html-editor/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {


import { EditorStyle, Position, ValidationMessageMode, ValidationStatus } from 'devextreme/common';
import { ContentReadyEvent, DisposingEvent, dxHtmlEditorImageUpload, dxHtmlEditorMediaResizing, dxHtmlEditorMention, dxHtmlEditorTableContextMenu, dxHtmlEditorTableResizing, dxHtmlEditorToolbar, dxHtmlEditorVariables, FocusInEvent, FocusOutEvent, InitializedEvent, MarkupType, OptionChangedEvent, ValueChangedEvent } from 'devextreme/ui/html_editor';
import { ContentReadyEvent, DisposingEvent, dxHtmlEditorImageUpload, dxHtmlEditorMediaResizing, dxHtmlEditorMention, dxHtmlEditorTableContextMenu, dxHtmlEditorTableResizing, dxHtmlEditorToolbar, dxHtmlEditorVariables, FocusInEvent, FocusOutEvent, InitializedEvent, OptionChangedEvent, ValueChangedEvent } from 'devextreme/ui/html_editor';

import DxHtmlEditor from 'devextreme/ui/html_editor';

Expand Down Expand Up @@ -485,19 +485,6 @@ export class DxHtmlEditorComponent extends DxComponent implements OnDestroy, Con
}


/**
* [descr:dxHtmlEditorOptions.valueType]
*/
@Input()
get valueType(): MarkupType {
return this._getOption('valueType');
}
set valueType(value: MarkupType) {
this._setOption('valueType', value);
}


/**
* [descr:dxHtmlEditorOptions.variables]
Expand Down Expand Up @@ -802,13 +789,6 @@ export class DxHtmlEditorComponent extends DxComponent implements OnDestroy, Con
*/
@Output() valueChange: EventEmitter<any>;

/**
* This member supports the internal infrastructure and is not intended to be used directly from your code.
*/
@Output() valueTypeChange: EventEmitter<MarkupType>;

/**
* This member supports the internal infrastructure and is not intended to be used directly from your code.
Expand Down Expand Up @@ -913,7 +893,6 @@ export class DxHtmlEditorComponent extends DxComponent implements OnDestroy, Con
{ emit: 'validationMessagePositionChange' },
{ emit: 'validationStatusChange' },
{ emit: 'valueChange' },
{ emit: 'valueTypeChange' },
{ emit: 'variablesChange' },
{ emit: 'visibleChange' },
{ emit: 'widthChange' },
Expand Down
3 changes: 0 additions & 3 deletions packages/devextreme-vue/src/html-editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ type AccessibleOptions = Pick<Properties,
"validationMessagePosition" |
"validationStatus" |
"value" |
"valueType" |
"variables" |
"visible" |
"width"
Expand Down Expand Up @@ -90,7 +89,6 @@ const componentConfig = {
validationMessagePosition: String,
validationStatus: String,
value: {},
valueType: String,
variables: Object,
visible: Boolean,
width: [Function, Number, String]
Expand Down Expand Up @@ -135,7 +133,6 @@ const componentConfig = {
"update:validationMessagePosition": null,
"update:validationStatus": null,
"update:value": null,
"update:valueType": null,
"update:variables": null,
"update:visible": null,
"update:width": null,
Expand Down
8 changes: 0 additions & 8 deletions packages/devextreme/js/ui/html_editor.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ export type HtmlEditorImageUploadTab = 'url' | 'file';
export type HtmlEditorPredefinedContextMenuItem = 'background' | 'bold' | 'color' | 'font' | 'italic' | 'link' | 'image' | 'strike' | 'subscript' | 'superscript' | 'underline' | 'blockquote' | 'increaseIndent' | 'decreaseIndent' | 'orderedList' | 'bulletList' | 'alignLeft' | 'alignCenter' | 'alignRight' | 'alignJustify' | 'codeBlock' | 'variable' | 'undo' | 'redo' | 'clear' | 'insertTable' | 'insertHeaderRow' | 'insertRowAbove' | 'insertRowBelow' | 'insertColumnLeft' | 'insertColumnRight' | 'deleteColumn' | 'deleteRow' | 'deleteTable' | 'cellProperties' | 'tableProperties';
/** @public */
export type HtmlEditorPredefinedToolbarItem = 'background' | 'bold' | 'color' | 'font' | 'italic' | 'link' | 'image' | 'size' | 'strike' | 'subscript' | 'superscript' | 'underline' | 'blockquote' | 'header' | 'increaseIndent' | 'decreaseIndent' | 'orderedList' | 'bulletList' | 'alignLeft' | 'alignCenter' | 'alignRight' | 'alignJustify' | 'codeBlock' | 'variable' | 'separator' | 'undo' | 'redo' | 'clear' | 'cellProperties' | 'tableProperties' | 'insertTable' | 'insertHeaderRow' | 'insertRowAbove' | 'insertRowBelow' | 'insertColumnLeft' | 'insertColumnRight' | 'deleteColumn' | 'deleteRow' | 'deleteTable';
/** @public */
export type MarkupType = 'html' | 'markdown';

/**
* @docid _ui_html_editor_ContentReadyEvent
Expand Down Expand Up @@ -203,12 +201,6 @@ export interface dxHtmlEditorOptions extends EditorOptions<dxHtmlEditor> {
* @public
*/
toolbar?: dxHtmlEditorToolbar;
/**
* @docid
* @default "html"
* @public
*/
valueType?: MarkupType;
/**
* @docid
* @default null
Expand Down
1 change: 0 additions & 1 deletion packages/devextreme/js/ui/html_editor_types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ export {
HtmlEditorImageUploadTab,
HtmlEditorPredefinedContextMenuItem,
HtmlEditorPredefinedToolbarItem,
MarkupType,
ContentReadyEvent,
DisposingEvent,
FocusInEvent,
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 @@ -19279,7 +19279,6 @@ declare module DevExpress.ui {
*/
export type InitializedEvent =
DevExpress.events.InitializedEventInfo<dxHtmlEditor>;
export type MarkupType = 'html' | 'markdown';
export interface MentionTemplateData {
readonly marker: string;
readonly id?: string | number;
Expand Down Expand Up @@ -19464,10 +19463,6 @@ declare module DevExpress.ui {
* [descr:dxHtmlEditorOptions.toolbar]
*/
toolbar?: dxHtmlEditorToolbar;
/**
* [descr:dxHtmlEditorOptions.valueType]
*/
valueType?: DevExpress.ui.dxHtmlEditor.MarkupType;
/**
* [descr:dxHtmlEditorOptions.variables]
*/
Expand Down

0 comments on commit 30e7b2a

Please sign in to comment.