AIIntegration: Update module export to match types (T1324402)#32976
AIIntegration: Update module export to match types (T1324402)#32976r-farkhutdinov wants to merge 1 commit intoDevExpress:26_1from
Conversation
There was a problem hiding this comment.
Pull request overview
Updates the dx.ai-integration bundle’s global export shape so it matches the TypeScript namespace layout (DevExpress.aiIntegration.AIIntegration), and aligns the jQuery demos with the new access path.
Changes:
- Change
dx.ai-integrationbundle template to exposeAIIntegrationunderDevExpress.aiIntegration.AIIntegration. - Update affected jQuery demos to instantiate
DevExpress.aiIntegration.AIIntegrationinstead ofDevExpress.aiIntegration.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| packages/devextreme/build/bundle-templates/dx.ai-integration.js | Adjusts global namespace/export wiring for the AIIntegration bundle. |
| apps/demos/Demos/TreeList/AIColumns/jQuery/index.js | Updates demo to use DevExpress.aiIntegration.AIIntegration. |
| apps/demos/Demos/HtmlEditor/AITextEditing/jQuery/index.js | Updates demo to use DevExpress.aiIntegration.AIIntegration. |
| apps/demos/Demos/Form/SmartPaste/jQuery/index.js | Updates demo to use DevExpress.aiIntegration.AIIntegration. |
| apps/demos/Demos/DataGrid/AIColumns/jQuery/index.js | Updates demo to use DevExpress.aiIntegration.AIIntegration. |
You can also share your feedback on Copilot code review. Take the survey.
35ac9ea to
f86a00e
Compare
There was a problem hiding this comment.
Pull request overview
Aligns the DevExpress.aiIntegration runtime export shape with the expected typings by exposing AIIntegration under a namespace-like object, and updates tests/demos to use the new access path.
Changes:
- Update the dx.ai-integration bundle template to export
DevExpress.aiIntegration.AIIntegration. - Update e2e TestCafe tests to instantiate
DevExpress.aiIntegration.AIIntegration. - Update jQuery demos to instantiate
DevExpress.aiIntegration.AIIntegration.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/devextreme/build/bundle-templates/dx.ai-integration.js | Changes global/module export shape to expose AIIntegration on DevExpress.aiIntegration. |
| e2e/testcafe-devextreme/tests/dataGrid/common/aiColumn/virtualScrolling.functional.ts | Updates DataGrid e2e instantiation path to aiIntegration.AIIntegration. |
| e2e/testcafe-devextreme/tests/dataGrid/common/aiColumn/functional.ts | Updates DataGrid e2e instantiation path to aiIntegration.AIIntegration across scenarios. |
| e2e/testcafe-devextreme/tests/dataGrid/common/aiColumn/adaptivity.functional.ts | Updates DataGrid adaptivity e2e instantiation path to aiIntegration.AIIntegration. |
| e2e/testcafe-devextreme/tests/common/treeList/aiColumn/functional.ts | Updates TreeList e2e instantiation path to aiIntegration.AIIntegration. |
| apps/demos/Demos/TreeList/AIColumns/jQuery/index.js | Updates demo code to use DevExpress.aiIntegration.AIIntegration. |
| apps/demos/Demos/HtmlEditor/AITextEditing/jQuery/index.js | Updates demo code to use DevExpress.aiIntegration.AIIntegration. |
| apps/demos/Demos/Form/SmartPaste/jQuery/index.js | Updates demo code to use DevExpress.aiIntegration.AIIntegration. |
| apps/demos/Demos/DataGrid/AIColumns/jQuery/index.js | Updates demo code to use DevExpress.aiIntegration.AIIntegration. |
You can also share your feedback on Copilot code review. Take the survey.
| DevExpress.aiIntegration = {}; | ||
| module.exports = DevExpress.aiIntegration.AIIntegration = AIIntegration; |
| @@ -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 | |||
|
|
||
| module.exports = DevExpress.aiIntegration = AIIntegration; | ||
| DevExpress.aiIntegration = {}; | ||
| module.exports = DevExpress.aiIntegration.AIIntegration = AIIntegration; |
No description provided.