@progress/kendo-angular-conversational-ui 25.0.0-develop.3 → 25.0.0-develop.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/codemods/libs/common/src/codemods/utils.js +15 -0
- package/codemods/libs/conversational-ui/codemods/v25/conversational-ui-rendering-changes.js +38 -0
- package/fesm2022/progress-kendo-angular-conversational-ui.mjs +3090 -411
- package/index.d.ts +1073 -93
- package/package-metadata.mjs +2 -2
- package/package.json +23 -14
|
@@ -13,6 +13,7 @@ exports.writeInstructionMarker = writeInstructionMarker;
|
|
|
13
13
|
exports.isApiChangeTarget = isApiChangeTarget;
|
|
14
14
|
exports.isRenderingChangeTarget = isRenderingChangeTarget;
|
|
15
15
|
exports.executeCodemodTest = executeCodemodTest;
|
|
16
|
+
exports.removeAttributeFromDirectiveHost = removeAttributeFromDirectiveHost;
|
|
16
17
|
const tslib_1 = require("tslib");
|
|
17
18
|
/// <reference types="node" />
|
|
18
19
|
const fs = tslib_1.__importStar(require("fs"));
|
|
@@ -1486,3 +1487,17 @@ function executeCodemodTest(codemod, testDir, exampleFileName = 'example.ts', ex
|
|
|
1486
1487
|
catch { }
|
|
1487
1488
|
}
|
|
1488
1489
|
}
|
|
1490
|
+
function removeAttributeFromDirectiveHost(templateContent, directiveAttr, attrToRemove) {
|
|
1491
|
+
const escapedDirective = directiveAttr.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
1492
|
+
const escapedAttr = attrToRemove.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
1493
|
+
const boundPattern = new RegExp(`(<[a-zA-Z][a-zA-Z0-9-]*[^>]*${escapedDirective}[^>]*?)\\s+\\[${escapedAttr}\\]\\s*=\\s*("(?:[^"\\\\]|\\\\.)*?"|'(?:[^'\\\\]|\\\\.)*?'|[^\\s>]+)([^>]*?>)`, 'gi');
|
|
1494
|
+
const staticPattern = new RegExp(`(<[a-zA-Z][a-zA-Z0-9-]*[^>]*${escapedDirective}[^>]*?)\\s+${escapedAttr}\\s*=\\s*("(?:[^"\\\\]|\\\\.)*?"|'(?:[^'\\\\]|\\\\.)*?'|[^\\s>]+)([^>]*?>)`, 'gi');
|
|
1495
|
+
// Also match when the attribute appears before the directive
|
|
1496
|
+
const boundPatternBefore = new RegExp(`(<[a-zA-Z][a-zA-Z0-9-]*[^>]*?)\\s+\\[${escapedAttr}\\]\\s*=\\s*("(?:[^"\\\\]|\\\\.)*?"|'(?:[^'\\\\]|\\\\.)*?'|[^\\s>]+)([^>]*${escapedDirective}[^>]*?>)`, 'gi');
|
|
1497
|
+
const staticPatternBefore = new RegExp(`(<[a-zA-Z][a-zA-Z0-9-]*[^>]*?)\\s+${escapedAttr}\\s*=\\s*("(?:[^"\\\\]|\\\\.)*?"|'(?:[^'\\\\]|\\\\.)*?'|[^\\s>]+)([^>]*${escapedDirective}[^>]*?>)`, 'gi');
|
|
1498
|
+
let result = templateContent.replace(boundPattern, '$1$3');
|
|
1499
|
+
result = result.replace(staticPattern, '$1$3');
|
|
1500
|
+
result = result.replace(boundPatternBefore, '$1$3');
|
|
1501
|
+
result = result.replace(staticPatternBefore, '$1$3');
|
|
1502
|
+
return result;
|
|
1503
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
"use strict";
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.aiInstructions = void 0;
|
|
8
|
+
exports.default = default_1;
|
|
9
|
+
const codemods_1 = require("@progress/kendo-angular-common/codemods");
|
|
10
|
+
exports.aiInstructions = `Review your stylesheets, test files, and any code that references these Conversational UI classes:
|
|
11
|
+
|
|
12
|
+
k-toolbar-md — removed from toolbar div.
|
|
13
|
+
Remove any CSS rules or test assertions targeting .k-toolbar-md in Chat/AI Prompt context.
|
|
14
|
+
|
|
15
|
+
k-toolbar-solid — removed from toolbar host binding.
|
|
16
|
+
Remove any CSS rules or test assertions targeting .k-toolbar-solid in Chat/AI Prompt context.
|
|
17
|
+
|
|
18
|
+
Speech to Text Button — Default rounded, size, and themeColor properties removed from settings.
|
|
19
|
+
Update tests that assert default rounded/size/themeColor on the Speech to Text Button.
|
|
20
|
+
|
|
21
|
+
rounded="full" — removed from copy and retry action buttons.
|
|
22
|
+
Remove test assertions checking for rounded="full" on action buttons.
|
|
23
|
+
|
|
24
|
+
k-bubble-content — Typing indicator now wrapped in new k-bubble-content div container.
|
|
25
|
+
Update selectors targeting typing indicator content.
|
|
26
|
+
|
|
27
|
+
Resend/Delete icons — changed from xIcon to xCircleIcon.
|
|
28
|
+
Update test assertions referencing xIcon for resend/delete actions.`;
|
|
29
|
+
const classes = ['k-toolbar-md', 'k-toolbar-solid', 'k-bubble-content'];
|
|
30
|
+
const pattern = (0, codemods_1.makePattern)(classes);
|
|
31
|
+
function default_1(fileInfo) {
|
|
32
|
+
if ((0, codemods_1.isRenderingChangeTarget)(fileInfo.path)) {
|
|
33
|
+
if (pattern.test(fileInfo.source)) {
|
|
34
|
+
(0, codemods_1.writeInstructionMarker)(exports.aiInstructions, __filename, fileInfo.path);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return fileInfo.source;
|
|
38
|
+
}
|