Skip to content
Merged
Show file tree
Hide file tree
Changes from 163 commits
Commits
Show all changes
167 commits
Select commit Hold shift + click to select a range
4d48b1a
`[dependencies]` Update Chameleon to `"~6.13.0"`
bsastregx Jun 23, 2025
33bd2f7
`[mercury]` Add brand logo
bsastregx Jun 23, 2025
4387057
`[showcase]` Add nexa image, Mercury brand logo
bsastregx Jun 23, 2025
aaaf8c0
`[chat]` Add showcase required files
bsastregx Jun 23, 2025
bf5a72f
`[chat]` Temporarily add models and metadata in `/showcase`
bsastregx Jun 23, 2025
bfc2174
Create renderItemMercury.ts
bsastregx Jun 23, 2025
a3bb5d1
`[chat]` Use `getMessageSerializedContentAll` whenc opying the message
bsastregx Jun 23, 2025
1d26296
`[mercury][showcase]` Update Chameleon to latest
bsastregx Jun 25, 2025
5a894ab
`[showcase][chat]` Rename custom render item file extension
bsastregx Jun 25, 2025
73652b2
`[showcase][chat]` Update all files, and add dots animation
bsastregx Jun 25, 2025
70f33d9
`[mercury][chat]` Update styles to match chat lit render
bsastregx Jun 25, 2025
eb2aa9d
`[showcase][chat]` Add "User Message" case
bsastregx Jun 25, 2025
c39f726
`[showcase][chat]` Add "Assistant Message" case
bsastregx Jun 25, 2025
d930af4
`[showcase][chat]` Add "Assistant Message: Warning" case
bsastregx Jun 25, 2025
50cdeed
`[showcase][chat]` Add "Assistant Message: Success" case
bsastregx Jun 25, 2025
e1ae9b0
`[showcase][chat]` Fix typo
bsastregx Jun 25, 2025
806b431
`[showcase][chat]` Add "Error Message" case
bsastregx Jun 25, 2025
103d759
`[showcase][chat]` Add "Markdown Message" case
bsastregx Jun 25, 2025
f452a39
`[showcase][chat]` Improve a little bit the messages models
bsastregx Jun 25, 2025
82b9a22
`[showcase][chat]` Set `generatingResponse` to boolean
bsastregx Jun 25, 2025
4ef4b34
`[showcase][chat]` Remove unused styles and comments
bsastregx Jun 25, 2025
fb21699
`[showcase][chat]` Clean up `chat.component.ts`
bsastregx Jun 25, 2025
d12a385
`[showcase][]chat` Fix block-size cases
bsastregx Jun 25, 2025
811db4b
`[showcase][chat]` Fix typo
bsastregx Jun 25, 2025
3f8f5a8
`[showcase][compatibility-table]` Update version and UI
bsastregx Jun 26, 2025
3d74716
Update app.component.html
bsastregx Jun 26, 2025
5326eef
Update package.json
bsastregx Jun 26, 2025
4ae2a19
`[showcase][chat][dots-animation]` Replace `span` with `div` for sema…
bsastregx Jun 26, 2025
c815b52
`[showcase][chat][dots-animation]` Remove props for color in favor of…
bsastregx Jun 26, 2025
9763547
`[showcase][chat][dots-animation]` Remove unrequired "from" keyframes
bsastregx Jun 26, 2025
2ce2549
`[showcase][chat]` Remove required Chat types
bsastregx Jun 26, 2025
8297e51
`[showcase][chat]` Use mer token for time color
bsastregx Jun 26, 2025
61b593e
`[showcase][chat]` Make "copied" text animation work in RTL as well
bsastregx Jun 26, 2025
ec9e23c
`[showcase][chat]` Remove fixed colors
bsastregx Jun 26, 2025
0161898
`[chat][animation-dots]` Fix `--dot-initial-scale` variable
bsastregx Jun 27, 2025
c93a956
Update renderItemMercury.lit.ts
bsastregx Jun 27, 2025
0541889
`[chat][render-item-mercury]` Rename file
bsastregx Jun 27, 2025
b08e6be
`[chat][custom-code-block]` Add custom code block file
bsastregx Jun 27, 2025
ce8bd2e
`[chat][render-item-mercury]` Rename `MercuryMessageMetadata` to `Mer…
bsastregx Jun 27, 2025
e166bbf
`[chat][render-item-mercury]` Add optional chaining on setTimeOut's
bsastregx Jun 27, 2025
94c4599
`[chat][render-item-mercury]` Remove unnecessary casting
bsastregx Jun 27, 2025
d9876b7
`[chat][render-item-mercury]` Use `MercuryChatMessageMetadata` and ma…
bsastregx Jun 27, 2025
24c73e4
`[chat][render-item-mercury]` Change `when` for `nothing` in time
bsastregx Jun 27, 2025
0729fff
`[chat][render-item-mercury]` Move `messageStructure` outside `render…
bsastregx Jun 27, 2025
69dedcd
`[chat][render-item-mercury]` Move `customAssistantContentRender` out…
bsastregx Jun 27, 2025
fe88700
`[chat][render-item-mercury]` Remove avatar image page requirement fr…
bsastregx Jun 27, 2025
f3c89dd
Update render-item-mercury.lit.ts
bsastregx Jun 27, 2025
6bb4a35
`[chat]` Move mercury item render from `/showcaese` to `/mercury`
bsastregx Jun 27, 2025
6b432c3
`[mercury][chat]` Include default ai-avatar image
bsastregx Jun 27, 2025
7d0de53
`[mercury][chat]` Rename chat files (remove redundant words)
bsastregx Jun 27, 2025
1fb471a
`[showcase][chat]` Put back chat files to work faster
bsastregx Jun 27, 2025
19631e1
`[showcase][chat]` Use local imports (temporarily)
bsastregx Jun 27, 2025
5e7628c
`[mercury][tsconfig]` Include chat ts and `DOM` to lib
bsastregx Jun 27, 2025
5872ac5
`[mercury][chat]` import types as type
bsastregx Jun 27, 2025
43f1f0c
Update dots-animation.ts
bsastregx Jun 27, 2025
fee5832
Update package.json
bsastregx Jun 27, 2025
50b54bc
Update index.ts
bsastregx Jun 27, 2025
aedca75
`[mercury][chat]` Remove !important
bsastregx Jun 27, 2025
935899b
`[mercury][chat]` Use font style
bsastregx Jun 27, 2025
98199a8
`[chat]` Apply several PR review suggestions
bsastregx Jun 30, 2025
0df64bd
`[chat][mercury]` Update avatar styles
bsastregx Jun 30, 2025
1f75d66
`[chat][mercury]` Add custom variables for avatar styles
bsastregx Jun 30, 2025
4c334f6
`[chat][mercury]` Remove custom copy button from header
bsastregx Jun 30, 2025
687956a
`[chat][mercury]` Add required utils
bsastregx Jul 1, 2025
c18633d
`[mercury][chat]` Add "content-container" part and remove copied-sele…
bsastregx Jul 1, 2025
ea1dd42
`[chat][showcase]` Temporary utils update
bsastregx Jul 1, 2025
ce2507d
`[chat]` Add `actions.lit.ts`
bsastregx Jul 1, 2025
3dc252a
`[showcase][chat]` Revert chat block-size
bsastregx Jul 1, 2025
4a1453d
`[chat][markdown-viewer][mercury]` Stylize code-blocck parts
bsastregx Jul 1, 2025
c42db6c
`[chat]` Use a generic function for copying button
bsastregx Jul 1, 2025
421600f
`[chat][markdown-viewer]` Apply gap on every content-container
bsastregx Jul 1, 2025
636dfd0
`[mercury][chat][markdown-viewer]` Remove block margin from first or …
bsastregx Jul 1, 2025
9a61ac5
`[chat][mercury]` Display actions on error message
bsastregx Jul 1, 2025
8f7333f
`[showcase][chat]` Adjust chat cases block-size
bsastregx Jul 1, 2025
6030fc0
`[chat][utils]` Clean up file
bsastregx Jul 1, 2025
f66aa62
`[mercury][icon]` Add "assistant-fill" icon and use on chat
bsastregx Jul 1, 2025
e9c8a09
Commit to update from main
bsastregx Jul 1, 2025
348f4c3
Merge branch 'main' into mercury/chat-message-render-lit
bsastregx Jul 1, 2025
5315218
Update yarn.lock
bsastregx Jul 2, 2025
b830e01
`[chat][render-item]` Clean up and refactorize `render-item`
bsastregx Jul 2, 2025
cf911f1
`[common][paginator]` Update for breaking changes
bsastregx Jul 2, 2025
a450f6d
Update MERCURY_ASSETS.ts
bsastregx Jul 2, 2025
9ab6945
`[chat][mercury]` Update code block button styles
bsastregx Jul 2, 2025
cec1183
`[chat][mercury]` Update send-input styles
bsastregx Jul 2, 2025
85afeeb
`[ch-chat][mercury]` Add "attach file" related elements
bsastregx Jul 11, 2025
28e9974
`[ch-chat][mercury]` Set "send-input" min-block-size
bsastregx Jul 11, 2025
9b869e1
`[chat][mercury]` Add attached files viewer
bsastregx Jul 11, 2025
5e22fde
`[chat][mercury]` Fix block size difference
bsastregx Jul 11, 2025
1f9ea74
`[mercury][ch-chat]` checkpoint: saving progress
bsastregx Jul 14, 2025
eede51c
Update yarn.lock
bsastregx Jul 14, 2025
6be028f
`[mercury][ch-chat]` Add file related parts to styles
bsastregx Jul 21, 2025
7acb0b1
`[mercury][ch-chat]` Include lit custom render files
bsastregx Jul 21, 2025
42895f2
`[showcase][ch-chat]` Update showcase
bsastregx Jul 21, 2025
b9b61f4
`[showcase][ch-chat]` Move temporary files to `/mercury`
bsastregx Jul 21, 2025
1d8277b
`[mercury][ch-chat]` Add chat specific tokens
bsastregx Jul 21, 2025
85cea3b
`[showcase]` Add mercury imports
bsastregx Jul 21, 2025
d6dcb59
`[mercury][ch-chat][markdown-viewer]` Fixes for markdown in chat
bsastregx Jul 21, 2025
e28ad7d
`[mercury][ch-chat]` Export mercury render and message custom type
bsastregx Jul 21, 2025
ec0585b
`[showcase][internal]` Ignore `renderItemMercury` from `define-variab…
bsastregx Jul 21, 2025
41eb525
Update yarn.lock
bsastregx Jul 21, 2025
cf76594
Merge branch 'main' into mercury/chat-message-render-lit
bsastregx Jul 21, 2025
8cfe173
`[mercury][icons]` Regenerate `MERCURY_ASSETS.ts`
bsastregx Jul 21, 2025
cf1d66a
Update yarn.lock
bsastregx Jul 21, 2025
a5acfd7
`[mercury][bundles]` Update test bundles
bsastregx Jul 21, 2025
12ae2a7
`[common][showcase]` `bundleToHashMapping` super WA
bsastregx Jul 21, 2025
530d544
Update yarn.lock
bsastregx Jul 21, 2025
71fada9
`[chat][showcase]` Update chat "file" related functions and styles
bsastregx Jul 21, 2025
ca7b405
Update _chat-styles.scss
bsastregx Jul 21, 2025
72ed418
`[mercury][chat]` Update showcase and styles for files
bsastregx Jul 23, 2025
82c5163
`[mercury][chat]` Remove temporarily `chat-lit` that was created as a WA
bsastregx Jul 24, 2025
20c25b9
`[showcase][chat]` Remove chat files that belong to `/mercury` package
bsastregx Jul 24, 2025
c615b25
`[common][components][chat]` Add metadata
bsastregx Jul 24, 2025
88d6a23
`[mercury][chat]` Tidy up stylesheet
bsastregx Jul 24, 2025
6159851
`[mercury][chat]` Update file related files
bsastregx Jul 24, 2025
3797f1a
`[mercury][chat]` Move chat exports from `index.ts`to `package.json`
bsastregx Jul 24, 2025
1638648
`[showcase]` Use `design-system-common` localy with `file:../common`
bsastregx Jul 24, 2025
032ff9a
Update chat.component.ts
bsastregx Jul 24, 2025
2bab23c
Update utils.ts
bsastregx Jul 24, 2025
4f1dfc1
Update yarn.lock
bsastregx Jul 24, 2025
bf01b89
`[mercury][chat]` Remove references to delete "chat-lit" bundle
bsastregx Jul 24, 2025
fd95c88
`[mercury][chat]` Rename files
bsastregx Jul 24, 2025
00c5dfb
`[showcase][mercury][chat]` Apply PR review suggestions
bsastregx Jul 24, 2025
cc82887
`[general][packages]` Use local versions of `mercury` and `common`
bsastregx Jul 24, 2025
36c0983
`[showcase][chat]` Add "headings" and improve "code blocks" cases
bsastregx Jul 25, 2025
caba1b1
`[mercury][chat]` Reduce heading's font-size's
bsastregx Jul 25, 2025
afd1ba5
`[mercury][chat]` Prevent chat custom elements from being defined again
bsastregx Jul 25, 2025
eb97a60
`[mercury][spin]` Move spin keyframes outside mixin to avoid duplication
bsastregx Jul 25, 2025
ce9c870
`[mercury][sass]` Fix `DEPRECATION WARNING [mixed-decls]` warnings
bsastregx Jul 25, 2025
6755fb8
`[mercury][bundles]` Update bundles tests
bsastregx Jul 25, 2025
8270b2e
`[mercury][chat]` Update tests
bsastregx Jul 25, 2025
3251bbf
`[common]` Make this package private
bsastregx Jul 25, 2025
37f8007
`[mercury][markdown-viewer]` Reduce headings sizes
bsastregx Jul 25, 2025
762e55a
`[mercury][markdown-viewer]` Use smaller headings
bsastregx Jul 25, 2025
40e8b65
`[mercury][chat]` Improve "open-file" link accesibility
bsastregx Jul 25, 2025
51920b1
`[mercury][chat]` Apply PR review suggestions
bsastregx Jul 28, 2025
a059c49
`[mercury][chat]` Apply PR review suggestions
bsastregx Jul 28, 2025
8e824f7
`[mercury][showcase][common]` General update
bsastregx Jul 30, 2025
2e82fbe
`[chameleon]` Use local Chameleon
bsastregx Aug 6, 2025
1da1454
`[common][mercury]` Update chat
bsastregx Aug 6, 2025
d886f2e
`[mercury][chat]common]` Update metadata and styles
bsastregx Aug 15, 2025
2b043ae
Update assets-manager.ts
bsastregx Aug 15, 2025
5d45db0
`[chat][mercury][showcase]` General update
bsastregx Aug 15, 2025
c2e2d2d
`[mercury][chat]` Update chat render, styles, and related files
bsastregx Aug 18, 2025
0a01550
`[showcase][chat]` Upadte chat showcase page and common medata
bsastregx Aug 18, 2025
fd626c1
Update category-explanation.ts
bsastregx Aug 18, 2025
04c112c
`[showcase][common]` Use local chameleon
bsastregx Aug 18, 2025
96e4043
`[general]` Update *-lock.json
bsastregx Aug 18, 2025
d420c49
`[mercury][tests]` Update bundles tests
bsastregx Aug 18, 2025
bfac441
`[showcase][mercury]` Last update from PR review
bsastregx Aug 19, 2025
a9649fc
`[mercury][chat][tests]` Update bundles tests
bsastregx Aug 19, 2025
1478e3f
Merge branch 'main' into mercury/chat-message-render-lit
bsastregx Aug 19, 2025
a521b08
Update models.ts
bsastregx Aug 19, 2025
b5f9831
Update MERCURY_ASSETS.ts
bsastregx Aug 19, 2025
ed0470a
`[mercury][tests]` Update bundles tests
bsastregx Aug 19, 2025
0738072
`[mercury][tests]` Update bundles tests
bsastregx Aug 19, 2025
2f20248
Fix build issues
ncamera Aug 28, 2025
13e1254
Improve the default value for --chat-send-input-max-lines
ncamera Aug 28, 2025
d358a61
Update chat.component.html
ncamera Aug 28, 2025
fdccbb9
Fix build issues
ncamera Aug 28, 2025
2b94161
Improve translation
ncamera Sep 5, 2025
95a63b0
Correct peerDependency
ncamera Sep 5, 2025
4f86c41
Bump chameleon in the showcase
ncamera Sep 5, 2025
0548491
Correct the compatibility-table
ncamera Sep 5, 2025
c7baf11
Update local references to Mercury
bsastregx Sep 5, 2025
214407b
Merge branch 'main' into mercury/chat-message-render-lit
bsastregx Sep 5, 2025
0942157
Resolve bundles conflicts
bsastregx Sep 5, 2025
dfd864c
Update MERCURY_ASSETS.ts
bsastregx Sep 5, 2025
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
10 changes: 8 additions & 2 deletions packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"dist/"
],
"type": "module",
"private": true,
"scripts": {
"build": "tsc --project tsconfig-build.json",
"build.scss": "yarn mercury -i=/assets/icons/ -f=/assets/fonts/ --outDir=./public/mercury/css/",
Expand All @@ -22,8 +23,9 @@
},
"license": "Apache-2.0",
"dependencies": {
"@genexus/chameleon-controls-library": "~6.7.0",
"@genexus/mercury": "*"
"@genexus/chameleon-controls-library": "6.20.0",
"@genexus/mercury": "file:///../mercury",
"@genexus/unanimo": "*"
},
"devDependencies": {
"@eslint/js": "~9.26.0",
Expand Down Expand Up @@ -68,6 +70,10 @@
"types": "./dist/metadata/components/button/metadata.d.ts",
"default": "./dist/metadata/components/button/metadata.js"
},
"./components/chat/metadata.js": {
"types": "./dist/metadata/components/chat/metadata.d.ts",
"default": "./dist/metadata/components/chat/metadata.js"
},
"./components/checkbox/metadata.js": {
"types": "./dist/metadata/components/checkbox/metadata.d.ts",
"default": "./dist/metadata/components/checkbox/metadata.js"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import type { ThemeModel } from "@genexus/chameleon-controls-library";
import type { MercuryBundleOptimized } from "@genexus/mercury";
import { getBundles as getBundlesMercury } from "@genexus/mercury/bundles.js";

import type { UnanimoBundleOptimized } from "@genexus/unanimo";

import type {
CodeTemplateEvents,
CodeTemplateStates,
Expand All @@ -33,6 +31,11 @@ export class TemplateRender extends LitElement {
#variableMapping: Map<string, unknown> | undefined;
#cssTheme: ThemeModel | undefined;

/**
* test has
*/
@property({ attribute: false }) bundleToHashMappings!: unknown;

/**
* Specifies the base path of the bundles
*/
Expand All @@ -41,10 +44,7 @@ export class TemplateRender extends LitElement {
/**
* Specifies the bundles to load for customizing the template.
*/
@property({ attribute: false }) bundles:
| MercuryBundleOptimized[]
| UnanimoBundleOptimized[]
| undefined;
@property({ attribute: false }) bundles: MercuryBundleOptimized[] | undefined;

/**
* Specifies a custom css for improving the result.
Expand Down Expand Up @@ -123,7 +123,9 @@ export class TemplateRender extends LitElement {
// TODO: Add support for Unanimo
if (changedProperties.has("bundles") && this.bundles !== undefined) {
this.#cssTheme = getBundlesMercury(this.bundles, {
basePath: this.bundleBasePath
basePath: this.bundleBasePath,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
bundleMappings: this.bundleToHashMappings as any
});
}
}
Expand Down
1 change: 1 addition & 0 deletions packages/common/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export { accordionMetadata } from "./metadata/components/accordion/metadata";
export { buttonMetadata } from "./metadata/components/button/metadata";
export { chatMetadata } from "./metadata/components/chat/metadata";
export { checkboxMetadata } from "./metadata/components/checkbox/metadata";
export { comboBoxMetadata } from "./metadata/components/combo-box/metadata";
export { dialogMetadata } from "./metadata/components/dialog/metadata";
Expand Down
Loading