@genesislcap/ai-assistant 15.96.0 → 15.96.1
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/dist/custom-elements.json +96 -96
- package/dist/dts/react.d.ts +8 -8
- package/dist/react.cjs +5 -5
- package/dist/react.mjs +4 -4
- package/package.json +17 -17
|
@@ -24471,6 +24471,102 @@
|
|
|
24471
24471
|
}
|
|
24472
24472
|
]
|
|
24473
24473
|
},
|
|
24474
|
+
{
|
|
24475
|
+
"kind": "javascript-module",
|
|
24476
|
+
"path": "src/components/chat-markdown/chat-markdown.ts",
|
|
24477
|
+
"declarations": [
|
|
24478
|
+
{
|
|
24479
|
+
"kind": "variable",
|
|
24480
|
+
"name": "MARKDOWN_EXPORTPARTS",
|
|
24481
|
+
"type": {
|
|
24482
|
+
"text": "string"
|
|
24483
|
+
},
|
|
24484
|
+
"description": "Every part this component exposes, as an `exportparts` value.\n\n`::part()` crosses exactly one shadow boundary, so a host that renders `<ai-chat-markdown>` in\nits own shadow root has to forward these for an app to reach them at all. Built from the map\nabove rather than written out, so the forwarded list cannot drift from what is emitted."
|
|
24485
|
+
},
|
|
24486
|
+
{
|
|
24487
|
+
"kind": "class",
|
|
24488
|
+
"description": "",
|
|
24489
|
+
"name": "AiChatMarkdown",
|
|
24490
|
+
"members": [
|
|
24491
|
+
{
|
|
24492
|
+
"kind": "field",
|
|
24493
|
+
"name": "content",
|
|
24494
|
+
"type": {
|
|
24495
|
+
"text": "string"
|
|
24496
|
+
},
|
|
24497
|
+
"default": "''",
|
|
24498
|
+
"description": "The markdown string to render."
|
|
24499
|
+
},
|
|
24500
|
+
{
|
|
24501
|
+
"kind": "method",
|
|
24502
|
+
"name": "annotateParts",
|
|
24503
|
+
"privacy": "private",
|
|
24504
|
+
"return": {
|
|
24505
|
+
"type": {
|
|
24506
|
+
"text": "string"
|
|
24507
|
+
}
|
|
24508
|
+
},
|
|
24509
|
+
"parameters": [
|
|
24510
|
+
{
|
|
24511
|
+
"name": "fragment",
|
|
24512
|
+
"type": {
|
|
24513
|
+
"text": "DocumentFragment"
|
|
24514
|
+
}
|
|
24515
|
+
}
|
|
24516
|
+
],
|
|
24517
|
+
"description": "Tag the generated elements with shadow parts so an embedding app can style them.\n\nTakes the tree DOMPurify built rather than re-parsing its serialised output: `content` changes\non every streamed chunk, so a second parse/serialise round trip would run per chunk over the\nwhole message, and the string the browser finally parses is then serialised straight from the\ntree DOMPurify checked. Parse/serialise mismatches are where mXSS bypasses have historically\nlived, and this walk has no need to introduce one.\n\nOnly ever *adds* attributes, to DOM that has already been cleared - so it is not itself\nsanitiser surface.\n\nLists additionally carry a level: a top-level list is `md-ul md-ul-level-1`, a list nested\ninside it is `md-ul-level-2`, and an `li` takes the level of the list holding it. Levels are\nclamped at `MAX_LIST_LEVEL`, so a list deeper than that answers to the deepest level\nrather than to a name no host forwards. Chat markdown rarely nests, so this is a safety valve\nrather than a feature - without it, every list at every depth would answer to one selector and\nthere would be no way to tell them apart afterwards. Depth comes from walking the tree rather\nthan from marked's renderers, which are invoked innermost-first and so cannot count downwards."
|
|
24518
|
+
}
|
|
24519
|
+
],
|
|
24520
|
+
"superclass": {
|
|
24521
|
+
"name": "GenesisElement",
|
|
24522
|
+
"package": "@genesislcap/web-core"
|
|
24523
|
+
},
|
|
24524
|
+
"tagName": "ai-chat-markdown",
|
|
24525
|
+
"customElement": true
|
|
24526
|
+
}
|
|
24527
|
+
],
|
|
24528
|
+
"exports": [
|
|
24529
|
+
{
|
|
24530
|
+
"kind": "js",
|
|
24531
|
+
"name": "MARKDOWN_EXPORTPARTS",
|
|
24532
|
+
"declaration": {
|
|
24533
|
+
"name": "MARKDOWN_EXPORTPARTS",
|
|
24534
|
+
"module": "src/components/chat-markdown/chat-markdown.ts"
|
|
24535
|
+
}
|
|
24536
|
+
},
|
|
24537
|
+
{
|
|
24538
|
+
"kind": "js",
|
|
24539
|
+
"name": "AiChatMarkdown",
|
|
24540
|
+
"declaration": {
|
|
24541
|
+
"name": "AiChatMarkdown",
|
|
24542
|
+
"module": "src/components/chat-markdown/chat-markdown.ts"
|
|
24543
|
+
}
|
|
24544
|
+
},
|
|
24545
|
+
{
|
|
24546
|
+
"kind": "custom-element-definition",
|
|
24547
|
+
"name": "ai-chat-markdown",
|
|
24548
|
+
"declaration": {
|
|
24549
|
+
"name": "AiChatMarkdown",
|
|
24550
|
+
"module": "src/components/chat-markdown/chat-markdown.ts"
|
|
24551
|
+
}
|
|
24552
|
+
}
|
|
24553
|
+
]
|
|
24554
|
+
},
|
|
24555
|
+
{
|
|
24556
|
+
"kind": "javascript-module",
|
|
24557
|
+
"path": "src/components/chat-markdown/index.ts",
|
|
24558
|
+
"declarations": [],
|
|
24559
|
+
"exports": [
|
|
24560
|
+
{
|
|
24561
|
+
"kind": "js",
|
|
24562
|
+
"name": "*",
|
|
24563
|
+
"declaration": {
|
|
24564
|
+
"name": "*",
|
|
24565
|
+
"package": "./chat-markdown"
|
|
24566
|
+
}
|
|
24567
|
+
}
|
|
24568
|
+
]
|
|
24569
|
+
},
|
|
24474
24570
|
{
|
|
24475
24571
|
"kind": "javascript-module",
|
|
24476
24572
|
"path": "src/components/message-feedback/index.ts",
|
|
@@ -24869,102 +24965,6 @@
|
|
|
24869
24965
|
}
|
|
24870
24966
|
]
|
|
24871
24967
|
},
|
|
24872
|
-
{
|
|
24873
|
-
"kind": "javascript-module",
|
|
24874
|
-
"path": "src/components/chat-markdown/chat-markdown.ts",
|
|
24875
|
-
"declarations": [
|
|
24876
|
-
{
|
|
24877
|
-
"kind": "variable",
|
|
24878
|
-
"name": "MARKDOWN_EXPORTPARTS",
|
|
24879
|
-
"type": {
|
|
24880
|
-
"text": "string"
|
|
24881
|
-
},
|
|
24882
|
-
"description": "Every part this component exposes, as an `exportparts` value.\n\n`::part()` crosses exactly one shadow boundary, so a host that renders `<ai-chat-markdown>` in\nits own shadow root has to forward these for an app to reach them at all. Built from the map\nabove rather than written out, so the forwarded list cannot drift from what is emitted."
|
|
24883
|
-
},
|
|
24884
|
-
{
|
|
24885
|
-
"kind": "class",
|
|
24886
|
-
"description": "",
|
|
24887
|
-
"name": "AiChatMarkdown",
|
|
24888
|
-
"members": [
|
|
24889
|
-
{
|
|
24890
|
-
"kind": "field",
|
|
24891
|
-
"name": "content",
|
|
24892
|
-
"type": {
|
|
24893
|
-
"text": "string"
|
|
24894
|
-
},
|
|
24895
|
-
"default": "''",
|
|
24896
|
-
"description": "The markdown string to render."
|
|
24897
|
-
},
|
|
24898
|
-
{
|
|
24899
|
-
"kind": "method",
|
|
24900
|
-
"name": "annotateParts",
|
|
24901
|
-
"privacy": "private",
|
|
24902
|
-
"return": {
|
|
24903
|
-
"type": {
|
|
24904
|
-
"text": "string"
|
|
24905
|
-
}
|
|
24906
|
-
},
|
|
24907
|
-
"parameters": [
|
|
24908
|
-
{
|
|
24909
|
-
"name": "fragment",
|
|
24910
|
-
"type": {
|
|
24911
|
-
"text": "DocumentFragment"
|
|
24912
|
-
}
|
|
24913
|
-
}
|
|
24914
|
-
],
|
|
24915
|
-
"description": "Tag the generated elements with shadow parts so an embedding app can style them.\n\nTakes the tree DOMPurify built rather than re-parsing its serialised output: `content` changes\non every streamed chunk, so a second parse/serialise round trip would run per chunk over the\nwhole message, and the string the browser finally parses is then serialised straight from the\ntree DOMPurify checked. Parse/serialise mismatches are where mXSS bypasses have historically\nlived, and this walk has no need to introduce one.\n\nOnly ever *adds* attributes, to DOM that has already been cleared - so it is not itself\nsanitiser surface.\n\nLists additionally carry a level: a top-level list is `md-ul md-ul-level-1`, a list nested\ninside it is `md-ul-level-2`, and an `li` takes the level of the list holding it. Levels are\nclamped at `MAX_LIST_LEVEL`, so a list deeper than that answers to the deepest level\nrather than to a name no host forwards. Chat markdown rarely nests, so this is a safety valve\nrather than a feature - without it, every list at every depth would answer to one selector and\nthere would be no way to tell them apart afterwards. Depth comes from walking the tree rather\nthan from marked's renderers, which are invoked innermost-first and so cannot count downwards."
|
|
24916
|
-
}
|
|
24917
|
-
],
|
|
24918
|
-
"superclass": {
|
|
24919
|
-
"name": "GenesisElement",
|
|
24920
|
-
"package": "@genesislcap/web-core"
|
|
24921
|
-
},
|
|
24922
|
-
"tagName": "ai-chat-markdown",
|
|
24923
|
-
"customElement": true
|
|
24924
|
-
}
|
|
24925
|
-
],
|
|
24926
|
-
"exports": [
|
|
24927
|
-
{
|
|
24928
|
-
"kind": "js",
|
|
24929
|
-
"name": "MARKDOWN_EXPORTPARTS",
|
|
24930
|
-
"declaration": {
|
|
24931
|
-
"name": "MARKDOWN_EXPORTPARTS",
|
|
24932
|
-
"module": "src/components/chat-markdown/chat-markdown.ts"
|
|
24933
|
-
}
|
|
24934
|
-
},
|
|
24935
|
-
{
|
|
24936
|
-
"kind": "js",
|
|
24937
|
-
"name": "AiChatMarkdown",
|
|
24938
|
-
"declaration": {
|
|
24939
|
-
"name": "AiChatMarkdown",
|
|
24940
|
-
"module": "src/components/chat-markdown/chat-markdown.ts"
|
|
24941
|
-
}
|
|
24942
|
-
},
|
|
24943
|
-
{
|
|
24944
|
-
"kind": "custom-element-definition",
|
|
24945
|
-
"name": "ai-chat-markdown",
|
|
24946
|
-
"declaration": {
|
|
24947
|
-
"name": "AiChatMarkdown",
|
|
24948
|
-
"module": "src/components/chat-markdown/chat-markdown.ts"
|
|
24949
|
-
}
|
|
24950
|
-
}
|
|
24951
|
-
]
|
|
24952
|
-
},
|
|
24953
|
-
{
|
|
24954
|
-
"kind": "javascript-module",
|
|
24955
|
-
"path": "src/components/chat-markdown/index.ts",
|
|
24956
|
-
"declarations": [],
|
|
24957
|
-
"exports": [
|
|
24958
|
-
{
|
|
24959
|
-
"kind": "js",
|
|
24960
|
-
"name": "*",
|
|
24961
|
-
"declaration": {
|
|
24962
|
-
"name": "*",
|
|
24963
|
-
"package": "./chat-markdown"
|
|
24964
|
-
}
|
|
24965
|
-
}
|
|
24966
|
-
]
|
|
24967
|
-
},
|
|
24968
24968
|
{
|
|
24969
24969
|
"kind": "javascript-module",
|
|
24970
24970
|
"path": "src/components/notification-level/index.ts",
|
package/dist/dts/react.d.ts
CHANGED
|
@@ -161,23 +161,23 @@ export declare const AiChatInteractionWrapper: React.ForwardRefExoticComponent<
|
|
|
161
161
|
>;
|
|
162
162
|
export type AiChatInteractionWrapperRef = AiChatInteractionWrapperWC;
|
|
163
163
|
|
|
164
|
-
export declare const
|
|
164
|
+
export declare const AiChatMarkdown: React.ForwardRefExoticComponent<
|
|
165
165
|
React.PropsWithChildren<
|
|
166
|
-
Omit<PublicOf<
|
|
166
|
+
Omit<PublicOf<AiChatMarkdownWC>, 'children' | 'style'> &
|
|
167
167
|
HTMLWCProps & {
|
|
168
168
|
}
|
|
169
|
-
> & React.RefAttributes<
|
|
169
|
+
> & React.RefAttributes<AiChatMarkdownWC>
|
|
170
170
|
>;
|
|
171
|
-
export type
|
|
171
|
+
export type AiChatMarkdownRef = AiChatMarkdownWC;
|
|
172
172
|
|
|
173
|
-
export declare const
|
|
173
|
+
export declare const MessageFeedback: React.ForwardRefExoticComponent<
|
|
174
174
|
React.PropsWithChildren<
|
|
175
|
-
Omit<PublicOf<
|
|
175
|
+
Omit<PublicOf<MessageFeedbackWC>, 'children' | 'style'> &
|
|
176
176
|
HTMLWCProps & {
|
|
177
177
|
}
|
|
178
|
-
> & React.RefAttributes<
|
|
178
|
+
> & React.RefAttributes<MessageFeedbackWC>
|
|
179
179
|
>;
|
|
180
|
-
export type
|
|
180
|
+
export type MessageFeedbackRef = MessageFeedbackWC;
|
|
181
181
|
|
|
182
182
|
export declare const AiNotificationLevel: React.ForwardRefExoticComponent<
|
|
183
183
|
React.PropsWithChildren<
|
package/dist/react.cjs
CHANGED
|
@@ -163,14 +163,14 @@ const AiChatInteractionWrapper = React.forwardRef(function AiChatInteractionWrap
|
|
|
163
163
|
return React.createElement(customElements.getName(AiChatInteractionWrapperWC) ?? 'ai-chat-interaction-wrapper', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
164
164
|
});
|
|
165
165
|
|
|
166
|
-
const
|
|
166
|
+
const AiChatMarkdown = React.forwardRef(function AiChatMarkdown(props, ref) {
|
|
167
167
|
const { children, ...rest } = props;
|
|
168
|
-
return React.createElement(customElements.getName(
|
|
168
|
+
return React.createElement(customElements.getName(AiChatMarkdownWC) ?? 'ai-chat-markdown', { ...rest, ref }, children);
|
|
169
169
|
});
|
|
170
170
|
|
|
171
|
-
const
|
|
171
|
+
const MessageFeedback = React.forwardRef(function MessageFeedback(props, ref) {
|
|
172
172
|
const { children, ...rest } = props;
|
|
173
|
-
return React.createElement(customElements.getName(
|
|
173
|
+
return React.createElement(customElements.getName(MessageFeedbackWC) ?? 'foundation-ai-message-feedback', { ...rest, ref }, children);
|
|
174
174
|
});
|
|
175
175
|
|
|
176
176
|
const AiNotificationLevel = React.forwardRef(function AiNotificationLevel(props, ref) {
|
|
@@ -212,8 +212,8 @@ module.exports = {
|
|
|
212
212
|
AgentPicker,
|
|
213
213
|
AiChatBubble,
|
|
214
214
|
AiChatInteractionWrapper,
|
|
215
|
-
MessageFeedback,
|
|
216
215
|
AiChatMarkdown,
|
|
216
|
+
MessageFeedback,
|
|
217
217
|
AiNotificationLevel,
|
|
218
218
|
FoundationAiPopoutManager,
|
|
219
219
|
GenesisWriteReview,
|
package/dist/react.mjs
CHANGED
|
@@ -161,14 +161,14 @@ export const AiChatInteractionWrapper = React.forwardRef(function AiChatInteract
|
|
|
161
161
|
return React.createElement(customElements.getName(AiChatInteractionWrapperWC) ?? 'ai-chat-interaction-wrapper', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
162
162
|
});
|
|
163
163
|
|
|
164
|
-
export const
|
|
164
|
+
export const AiChatMarkdown = React.forwardRef(function AiChatMarkdown(props, ref) {
|
|
165
165
|
const { children, ...rest } = props;
|
|
166
|
-
return React.createElement(customElements.getName(
|
|
166
|
+
return React.createElement(customElements.getName(AiChatMarkdownWC) ?? 'ai-chat-markdown', { ...rest, ref }, children);
|
|
167
167
|
});
|
|
168
168
|
|
|
169
|
-
export const
|
|
169
|
+
export const MessageFeedback = React.forwardRef(function MessageFeedback(props, ref) {
|
|
170
170
|
const { children, ...rest } = props;
|
|
171
|
-
return React.createElement(customElements.getName(
|
|
171
|
+
return React.createElement(customElements.getName(MessageFeedbackWC) ?? 'foundation-ai-message-feedback', { ...rest, ref }, children);
|
|
172
172
|
});
|
|
173
173
|
|
|
174
174
|
export const AiNotificationLevel = React.forwardRef(function AiNotificationLevel(props, ref) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/ai-assistant",
|
|
3
3
|
"description": "Genesis AI Assistant micro-frontend",
|
|
4
|
-
"version": "15.96.
|
|
4
|
+
"version": "15.96.1",
|
|
5
5
|
"license": "SEE LICENSE IN license.txt",
|
|
6
6
|
"main": "dist/esm/index.js",
|
|
7
7
|
"types": "dist/dts/index.d.ts",
|
|
@@ -102,31 +102,31 @@
|
|
|
102
102
|
}
|
|
103
103
|
},
|
|
104
104
|
"devDependencies": {
|
|
105
|
-
"@genesislcap/foundation-comms": "15.96.
|
|
106
|
-
"@genesislcap/foundation-testing": "15.96.
|
|
107
|
-
"@genesislcap/genx": "15.96.
|
|
108
|
-
"@genesislcap/ts-builder": "15.96.
|
|
109
|
-
"@genesislcap/uvu-playwright-builder": "15.96.
|
|
110
|
-
"@genesislcap/vite-builder": "15.96.
|
|
111
|
-
"@genesislcap/webpack-builder": "15.96.
|
|
105
|
+
"@genesislcap/foundation-comms": "15.96.1",
|
|
106
|
+
"@genesislcap/foundation-testing": "15.96.1",
|
|
107
|
+
"@genesislcap/genx": "15.96.1",
|
|
108
|
+
"@genesislcap/ts-builder": "15.96.1",
|
|
109
|
+
"@genesislcap/uvu-playwright-builder": "15.96.1",
|
|
110
|
+
"@genesislcap/vite-builder": "15.96.1",
|
|
111
|
+
"@genesislcap/webpack-builder": "15.96.1",
|
|
112
112
|
"@types/dompurify": "^3.0.5",
|
|
113
113
|
"@types/marked": "^5.0.2",
|
|
114
114
|
"esbuild": "0.25.12"
|
|
115
115
|
},
|
|
116
116
|
"dependencies": {
|
|
117
|
-
"@genesislcap/foundation-ai": "15.96.
|
|
118
|
-
"@genesislcap/foundation-logger": "15.96.
|
|
119
|
-
"@genesislcap/foundation-notifications": "15.96.
|
|
120
|
-
"@genesislcap/foundation-redux": "15.96.
|
|
121
|
-
"@genesislcap/foundation-ui": "15.96.
|
|
122
|
-
"@genesislcap/foundation-utils": "15.96.
|
|
123
|
-
"@genesislcap/rapid-design-system": "15.96.
|
|
124
|
-
"@genesislcap/web-core": "15.96.
|
|
117
|
+
"@genesislcap/foundation-ai": "15.96.1",
|
|
118
|
+
"@genesislcap/foundation-logger": "15.96.1",
|
|
119
|
+
"@genesislcap/foundation-notifications": "15.96.1",
|
|
120
|
+
"@genesislcap/foundation-redux": "15.96.1",
|
|
121
|
+
"@genesislcap/foundation-ui": "15.96.1",
|
|
122
|
+
"@genesislcap/foundation-utils": "15.96.1",
|
|
123
|
+
"@genesislcap/rapid-design-system": "15.96.1",
|
|
124
|
+
"@genesislcap/web-core": "15.96.1",
|
|
125
125
|
"dompurify": "^3.3.1",
|
|
126
126
|
"marked": "^17.0.3"
|
|
127
127
|
},
|
|
128
128
|
"peerDependencies": {
|
|
129
|
-
"@genesislcap/foundation-comms": "15.96.
|
|
129
|
+
"@genesislcap/foundation-comms": "15.96.1"
|
|
130
130
|
},
|
|
131
131
|
"peerDependenciesMeta": {
|
|
132
132
|
"@genesislcap/foundation-comms": {
|