Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/demos/Demos/DataGrid/AIColumns/jQuery/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ $(() => {
});
}

const aiIntegration = new DevExpress.aiIntegration({
const aiIntegration = new DevExpress.aiIntegration.AIIntegration({
sendRequest({ prompt }) {
const isValidRequest = JSON.stringify(prompt.user).length < 5000;
if (!isValidRequest) {
Expand Down
2 changes: 1 addition & 1 deletion apps/demos/Demos/Form/SmartPaste/jQuery/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ $(() => {
return result;
}

const aiIntegration = new DevExpress.aiIntegration({
const aiIntegration = new DevExpress.aiIntegration.AIIntegration({
sendRequest({ prompt }) {
const controller = new AbortController();
const signal = controller.signal;
Expand Down
2 changes: 1 addition & 1 deletion apps/demos/Demos/HtmlEditor/AITextEditing/jQuery/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ $(() => {
return result;
}

const aiIntegration = new DevExpress.aiIntegration({
const aiIntegration = new DevExpress.aiIntegration.AIIntegration({
sendRequest({ prompt }) {
const controller = new AbortController();
const signal = controller.signal;
Expand Down
2 changes: 1 addition & 1 deletion apps/demos/Demos/TreeList/AIColumns/jQuery/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ $(() => {
});
}

const aiIntegration = new DevExpress.aiIntegration({
const aiIntegration = new DevExpress.aiIntegration.AIIntegration({
sendRequest({ prompt }) {
const isValidRequest = JSON.stringify(prompt.user).length < 5000;
if (!isValidRequest) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ test('Get result from AI and display it in the AI column', async (t) => {
name: 'AI Column',
ai: {
prompt: 'first AI column',
// eslint-disable-next-line new-cap
aiIntegration: new (window as any).DevExpress.aiIntegration({

aiIntegration: new (window as any).DevExpress.aiIntegration.AIIntegration({
sendRequest(prompt) {
return {
promise: new Promise<string>((resolve) => {
Expand Down Expand Up @@ -102,8 +102,8 @@ test('Get result from AI and display it in two AI columns', async (t) => {
name: 'AI Column',
ai: {
prompt: 'first AI column',
// eslint-disable-next-line new-cap
aiIntegration: new (window as any).DevExpress.aiIntegration({

aiIntegration: new (window as any).DevExpress.aiIntegration.AIIntegration({
sendRequest(prompt) {
return {
promise: new Promise<string>((resolve) => {
Expand All @@ -127,8 +127,8 @@ test('Get result from AI and display it in two AI columns', async (t) => {
name: 'AI Column2',
ai: {
prompt: 'second AI column',
// eslint-disable-next-line new-cap
aiIntegration: new (window as any).DevExpress.aiIntegration({

aiIntegration: new (window as any).DevExpress.aiIntegration.AIIntegration({
sendRequest(prompt) {
return {
promise: new Promise<string>((resolve) => {
Expand Down Expand Up @@ -195,8 +195,8 @@ test('Regenerate the AI request from DropDownButton menu', async (t) => {
ai: {
mode: 'manual',
prompt: 'first AI column',
// eslint-disable-next-line new-cap
aiIntegration: new (window as any).DevExpress.aiIntegration({

aiIntegration: new (window as any).DevExpress.aiIntegration.AIIntegration({
sendRequest(prompt) {
return {
promise: new Promise<string>((resolve) => {
Expand Down Expand Up @@ -266,8 +266,8 @@ test('Regenerate the AI request from Prompt Editor', async (t) => {
ai: {
mode: 'manual',
prompt: 'first AI column',
// eslint-disable-next-line new-cap
aiIntegration: new (window as any).DevExpress.aiIntegration({

aiIntegration: new (window as any).DevExpress.aiIntegration.AIIntegration({
sendRequest(prompt) {
return {
promise: new Promise<string>((resolve) => {
Expand Down Expand Up @@ -334,8 +334,8 @@ test('Clear Data from AI column by DropDownButton menu', async (t) => {
name: 'AI Column',
ai: {
prompt: 'first AI column',
// eslint-disable-next-line new-cap
aiIntegration: new (window as any).DevExpress.aiIntegration({

aiIntegration: new (window as any).DevExpress.aiIntegration.AIIntegration({
sendRequest(prompt) {
return {
promise: new Promise<string>((resolve) => {
Expand Down Expand Up @@ -408,8 +408,8 @@ test('Abort the AI request from Prompt Editor', async (t) => {
ai: {
prompt: 'first AI column',
mode: 'manual',
// eslint-disable-next-line new-cap
aiIntegration: new (window as any).DevExpress.aiIntegration({

aiIntegration: new (window as any).DevExpress.aiIntegration.AIIntegration({
sendRequest(prompt) {
return {
promise: new Promise<string>((resolve) => {
Expand Down Expand Up @@ -482,8 +482,8 @@ test('Change the prompt in the AI Prompt Editor', async (t) => {
name: 'AI Column',
ai: {
prompt: 'first AI column',
// eslint-disable-next-line new-cap
aiIntegration: new (window as any).DevExpress.aiIntegration({

aiIntegration: new (window as any).DevExpress.aiIntegration.AIIntegration({
sendRequest(prompt) {
return {
promise: new Promise<string>((resolve) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ test('The AI column should have value in the adaptive detail row', async (t) =>
ai: {
prompt: 'Send me nothing',
// eslint-disable-next-line new-cap
aiIntegration: new (window as any).DevExpress.aiIntegration({
aiIntegration: new (window as any).DevExpress.aiIntegration.AIIntegration({
sendRequest({ data }) {
return {
promise: new Promise<string>((resolve) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ test('Get result from AI and display it in the AI column', async (t) => {
ai: {
prompt: 'first AI column',
// eslint-disable-next-line new-cap
aiIntegration: new (window as any).DevExpress.aiIntegration({
aiIntegration: new (window as any).DevExpress.aiIntegration.AIIntegration({
sendRequest(prompt) {
return {
promise: new Promise<string>((resolve) => {
Expand Down Expand Up @@ -143,7 +143,7 @@ test('Get result from AI and display it in two AI columns', async (t) => {
ai: {
prompt: 'first AI column',
// eslint-disable-next-line new-cap
aiIntegration: new (window as any).DevExpress.aiIntegration({
aiIntegration: new (window as any).DevExpress.aiIntegration.AIIntegration({
sendRequest(prompt) {
return {
promise: new Promise<string>((resolve) => {
Expand All @@ -168,7 +168,7 @@ test('Get result from AI and display it in two AI columns', async (t) => {
ai: {
prompt: 'second AI column',
// eslint-disable-next-line new-cap
aiIntegration: new (window as any).DevExpress.aiIntegration({
aiIntegration: new (window as any).DevExpress.aiIntegration.AIIntegration({
sendRequest(prompt) {
return {
promise: new Promise<string>((resolve) => {
Expand Down Expand Up @@ -228,7 +228,7 @@ test('Regenerate the AI request from DropDownButton menu', async (t) => {
mode: 'manual',
prompt: 'first AI column',
// eslint-disable-next-line new-cap
aiIntegration: new (window as any).DevExpress.aiIntegration({
aiIntegration: new (window as any).DevExpress.aiIntegration.AIIntegration({
sendRequest(prompt) {
return {
promise: new Promise<string>((resolve) => {
Expand Down Expand Up @@ -291,7 +291,7 @@ test('Regenerate the AI request from Prompt Editor', async (t) => {
mode: 'manual',
prompt: 'first AI column',
// eslint-disable-next-line new-cap
aiIntegration: new (window as any).DevExpress.aiIntegration({
aiIntegration: new (window as any).DevExpress.aiIntegration.AIIntegration({
sendRequest(prompt) {
return {
promise: new Promise<string>((resolve) => {
Expand Down Expand Up @@ -351,7 +351,7 @@ test('Clear Data from AI column by DropDownButton menu', async (t) => {
ai: {
prompt: 'first AI column',
// eslint-disable-next-line new-cap
aiIntegration: new (window as any).DevExpress.aiIntegration({
aiIntegration: new (window as any).DevExpress.aiIntegration.AIIntegration({
sendRequest(prompt) {
return {
promise: new Promise<string>((resolve) => {
Expand Down Expand Up @@ -417,7 +417,7 @@ test('Abort the AI request from Prompt Editor', async (t) => {
prompt: 'first AI column',
mode: 'manual',
// eslint-disable-next-line new-cap
aiIntegration: new (window as any).DevExpress.aiIntegration({
aiIntegration: new (window as any).DevExpress.aiIntegration.AIIntegration({
sendRequest(prompt) {
return {
promise: new Promise<string>((resolve) => {
Expand Down Expand Up @@ -483,7 +483,7 @@ test('Change the prompt in the AI Prompt Editor', async (t) => {
ai: {
prompt: 'first AI column',
// eslint-disable-next-line new-cap
aiIntegration: new (window as any).DevExpress.aiIntegration({
aiIntegration: new (window as any).DevExpress.aiIntegration.AIIntegration({
sendRequest(prompt) {
return {
promise: new Promise<string>((resolve) => {
Expand Down Expand Up @@ -536,7 +536,7 @@ test('The scroll position should not reset when the ai.prompt changes at runtime
name: 'aiColumn',
ai: {
// eslint-disable-next-line new-cap
aiIntegration: new (window as any).DevExpress.aiIntegration({
aiIntegration: new (window as any).DevExpress.aiIntegration.AIIntegration({
sendRequest() {
return {
promise: new Promise<string>((resolve) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ test('DataGrid should send an AI request for rendered rows after scrolling witho
ai: {
prompt: 'Initial prompt',
// eslint-disable-next-line new-cap
aiIntegration: new (window as any).DevExpress.aiIntegration({
aiIntegration: new (window as any).DevExpress.aiIntegration.AIIntegration({
sendRequest(prompt) {
return {
promise: new Promise<string>((resolve) => {
Expand Down Expand Up @@ -222,7 +222,7 @@ test('DataGrid should send an AI request for rendered rows after scrolling with
ai: {
prompt: 'Initial prompt',
// eslint-disable-next-line new-cap
aiIntegration: new (window as any).DevExpress.aiIntegration({
aiIntegration: new (window as any).DevExpress.aiIntegration.AIIntegration({
sendRequest(prompt) {
return {
promise: new Promise<string>((resolve) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
/* eslint-disable import/no-commonjs */
import { AIIntegration } from '../common/ai-integration';

module.exports = DevExpress.aiIntegration = AIIntegration;
DevExpress.aiIntegration = {};
module.exports = DevExpress.aiIntegration.AIIntegration = AIIntegration;
Comment on lines +5 to +6
Loading