Skip to content

Commit 9a96545

Browse files
igdmdimitrovteodosiahgedinakovaSisIvanovarkaraivanov
authored
feat(chat): Added Chat component (#1688)
--------- Co-authored-by: teodosiah <[email protected]> Co-authored-by: Galina Edinakova <[email protected]> Co-authored-by: Teodosia Hristodorova <[email protected]> Co-authored-by: sivanova <[email protected]> Co-authored-by: Silvia Ivanova <[email protected]> Co-authored-by: Radoslav Karaivanov <[email protected]> Co-authored-by: desig9stein <[email protected]> Co-authored-by: Simeon Simeonoff <[email protected]> Co-authored-by: Marin Popov <[email protected]>
1 parent d2258ca commit 9a96545

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+6839
-869
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,6 @@ custom-elements.json
3232
i18nRepo
3333

3434
# Development environment
35+
.env
3536
.envrc
3637
.direnv

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/)
55
and this project adheres to [Semantic Versioning](http://semver.org/).
66

7+
## [Unreleased]
8+
### Added
9+
- Chat component
10+
711
## [6.2.2] - 2025-09-16
812
### Fixed
913
- Minor bug fixes around styles

package-lock.json

Lines changed: 1632 additions & 841 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"license": "SEE LICENSE IN LICENSE",
77
"exports": {
88
".": "./src/index.js",
9-
"./types": "./src/types.js"
9+
"./types": "./src/types.js",
10+
"./extras": "./src/extras/index.js"
1011
},
1112
"type": "module",
1213
"repository": {
@@ -59,13 +60,13 @@
5960
},
6061
"devDependencies": {
6162
"@biomejs/biome": "~2.2.4",
62-
"@custom-elements-manifest/analyzer": "^0.10.5",
63+
"@custom-elements-manifest/analyzer": "^0.10.6",
6364
"@igniteui/material-icons-extended": "^3.1.0",
6465
"@open-wc/testing": "^4.0.0",
65-
"@storybook/addon-a11y": "^9.1.5",
66-
"@storybook/addon-docs": "^9.1.5",
67-
"@storybook/addon-links": "^9.1.5",
68-
"@storybook/web-components-vite": "^9.1.5",
66+
"@storybook/addon-a11y": "^9.1.6",
67+
"@storybook/addon-docs": "^9.1.6",
68+
"@storybook/addon-links": "^9.1.6",
69+
"@storybook/web-components-vite": "^9.1.6",
6970
"@types/mocha": "^10.0.10",
7071
"@web/dev-server-esbuild": "^1.0.4",
7172
"@web/test-runner": "^0.20.2",
@@ -79,8 +80,8 @@
7980
"globby": "^14.1.0",
8081
"husky": "^9.1.7",
8182
"ig-typedoc-theme": "^6.2.3",
82-
"igniteui-theming": "^19.3.1",
83-
"keep-a-changelog": "^2.7.0",
83+
"igniteui-theming": "^20.0.0",
84+
"keep-a-changelog": "^2.7.1",
8485
"lint-staged": "^16.1.6",
8586
"lit-analyzer": "^2.0.3",
8687
"madge": "^8.0.0",
@@ -91,7 +92,7 @@
9192
"rimraf": "^6.0.1",
9293
"sass-embedded": "~1.92.1",
9394
"sinon": "^21.0.0",
94-
"storybook": "^9.1.5",
95+
"storybook": "^9.1.6",
9596
"stylelint": "^16.24.0",
9697
"stylelint-config-standard-scss": "^16.0.0",
9798
"stylelint-prettier": "^5.0.3",
@@ -101,7 +102,13 @@
101102
"typedoc": "~0.27.9",
102103
"typedoc-plugin-localization": "^3.0.6",
103104
"typescript": "^5.8.3",
104-
"vite": "^7.1.5"
105+
"vite": "^7.1.6"
106+
},
107+
"peerDependencies": {
108+
"dompurify": "^3.2.7",
109+
"marked": "^16.3.0",
110+
"marked-shiki": "^1.2.1",
111+
"shiki": "^3.12.2"
105112
},
106113
"browserslist": [
107114
"defaults"

scripts/_package.json

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@
1010
"types": "./index.d.ts",
1111
"default": "./index.js"
1212
},
13-
"./themes/*.css": "./themes/*.css"
13+
"./themes/*.css": "./themes/*.css",
14+
"./extras": {
15+
"types": "./extras/index.d.ts",
16+
"default": "./extras/index.js"
17+
}
1418
},
1519
"type": "module",
1620
"sideEffects": false,
@@ -28,6 +32,7 @@
2832
"webcomponents",
2933
"web components",
3034
"UI components",
35+
"AI chat",
3136
"accordion",
3237
"avatar",
3338
"badge",
@@ -38,6 +43,7 @@
3843
"card",
3944
"carousel",
4045
"circular progress",
46+
"chat",
4147
"checkbox",
4248
"chip",
4349
"combo",
@@ -72,11 +78,31 @@
7278
"tree"
7379
],
7480
"customElements": "custom-elements.json",
81+
"web-types": "./web-types.json",
7582
"dependencies": {
7683
"@floating-ui/dom": "^1.7.0",
7784
"@lit-labs/virtualizer": "^2.1.0",
7885
"@lit/context": "^1.1.0",
7986
"lit": "^3.3.0"
8087
},
81-
"web-types": "./web-types.json"
88+
"peerDependencies": {
89+
"dompurify": "^3.2.",
90+
"marked": "^16.3.0",
91+
"marked-shiki": "^1.2.0",
92+
"shiki": "^3.12.0"
93+
},
94+
"peerDependenciesMeta": {
95+
"dompurify": {
96+
"optional": true
97+
},
98+
"marked": {
99+
"optional": true
100+
},
101+
"marked-shiki": {
102+
"optional": true
103+
},
104+
"shiki": {
105+
"optional": true
106+
}
107+
}
82108
}

scripts/build.mjs

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { exec as _exec } from 'node:child_process';
2-
import { copyFile, writeFile } from 'node:fs/promises';
2+
import { copyFile, mkdir, writeFile } from 'node:fs/promises';
33
import path from 'node:path';
44
import { fileURLToPath } from 'node:url';
55
import { promisify } from 'node:util';
@@ -11,6 +11,7 @@ import {
1111
import customElements from '../custom-elements.json' with { type: 'json' };
1212
import report from './report.mjs';
1313
import { buildComponents, buildThemes } from './sass.mjs';
14+
import { globby } from 'globby';
1415

1516
const exec = promisify(_exec);
1617

@@ -49,12 +50,23 @@ async function runTask(tag, cmd) {
4950
)
5051
);
5152

52-
await runTask('Copying release files', () =>
53+
await runTask('Copying release files', async () => {
54+
const pngFiles = await globby('src/components/**/*.png');
55+
pngFiles.forEach(
56+
async (dest) =>
57+
await mkdir(path.dirname(DEST_DIR(dest.replace('src', ''))), {
58+
recursive: true,
59+
})
60+
);
61+
5362
Promise.all([
5463
copyFile('scripts/_package.json', DEST_DIR('package.json')),
5564
...RELEASE_FILES.map((file) => copyFile(file, DEST_DIR(file))),
56-
])
57-
);
65+
...pngFiles.map((file) =>
66+
copyFile(file, DEST_DIR(file.replace('src', '')))
67+
),
68+
]);
69+
});
5870

5971
await runTask('VSCode custom data + Web types', () =>
6072
Promise.all([

0 commit comments

Comments
 (0)