Skip to content

Commit 35cea63

Browse files
HtmlEditor Demos: arrange imports (#30251)
1 parent e2b9d86 commit 35cea63

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

apps/demos/Demos/HtmlEditor/AITextEditing/Angular/app/app.component.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
import { NgModule, Component, enableProdMode } from '@angular/core';
22
import { BrowserModule } from '@angular/platform-browser';
33
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
4-
import { DxHtmlEditorModule } from 'devextreme-angular';
4+
import { DxHtmlEditorModule, type DxHtmlEditorTypes } from 'devextreme-angular/ui/html-editor';
55
import {
66
AIIntegration,
77
RequestParams,
88
Response,
99
} from 'devextreme-angular/common/ai-integration';
1010
import { AzureOpenAI, OpenAI } from 'openai';
1111
import { Service } from './app.service';
12-
import { AICustomCommand } from 'devextreme/ui/html_editor';
1312

1413
if (!/localhost/.test(document.location.host)) {
1514
enableProdMode();
@@ -39,7 +38,7 @@ export class AppComponent {
3938

4039
aiIntegration: AIIntegration;
4140

42-
extractKeywordsPrompt: AICustomCommand['prompt'];
41+
extractKeywordsPrompt: DxHtmlEditorTypes.AICustomCommand['prompt'];
4342

4443
valueContent: string;
4544

apps/demos/Demos/HtmlEditor/AITextEditing/Angular/app/app.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Injectable } from '@angular/core';
2-
import { AICustomCommand } from 'devextreme/ui/html_editor';
2+
import { type DxHtmlEditorTypes } from 'devextreme-angular/ui/html_editor';
33

44
const AzureOpenAIConfig = {
55
dangerouslyAllowBrowser: true,
@@ -9,7 +9,7 @@ const AzureOpenAIConfig = {
99
apiKey: 'DEMO',
1010
};
1111

12-
const extractKeywordsPrompt: AICustomCommand['prompt'] = () =>
12+
const extractKeywordsPrompt: DxHtmlEditorTypes.AICustomCommand['prompt'] = () =>
1313
'Extract a list of keywords from the text and return it as a comma-separated string';
1414

1515
const markup = `

apps/demos/Demos/HtmlEditor/AITextEditing/React/data.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1+
import { type HtmlEditorTypes } from 'devextreme-react/html-editor';
12
import {
23
AIIntegration,
34
RequestParams,
45
Response,
56
} from 'devextreme-react/common/ai-integration';
6-
import { AICustomCommand } from 'devextreme/ui/html_editor';
77
import { AzureOpenAI, OpenAI } from 'openai';
88

99
type AIMessage = (OpenAI.ChatCompletionUserMessageParam | OpenAI.ChatCompletionSystemMessageParam) & {
@@ -90,5 +90,5 @@ export const markup = `
9090
</ul>
9191
`;
9292

93-
export const extractKeywordsPrompt: AICustomCommand['prompt'] = () =>
93+
export const extractKeywordsPrompt: HtmlEditorTypes.AICustomCommand['prompt'] = () =>
9494
'Extract a list of keywords from the text and return it as a comma-separated string';

0 commit comments

Comments
 (0)