@fusion.dev/helix 0.10.3 → 0.11.0
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/custom-elements.json
CHANGED
|
@@ -10915,6 +10915,14 @@
|
|
|
10915
10915
|
"module": "src/chat/message/chat-message.ts"
|
|
10916
10916
|
}
|
|
10917
10917
|
},
|
|
10918
|
+
{
|
|
10919
|
+
"description": "The three dots, when nothing is slotted over them.",
|
|
10920
|
+
"name": "indicator",
|
|
10921
|
+
"inheritedFrom": {
|
|
10922
|
+
"name": "HelixHeadlessChatMessage",
|
|
10923
|
+
"module": "src/chat/message/chat-message.ts"
|
|
10924
|
+
}
|
|
10925
|
+
},
|
|
10918
10926
|
{
|
|
10919
10927
|
"description": "The time and the state together.",
|
|
10920
10928
|
"name": "meta",
|
|
@@ -11021,6 +11029,14 @@
|
|
|
11021
11029
|
"module": "src/chat/message/chat-message.ts"
|
|
11022
11030
|
}
|
|
11023
11031
|
},
|
|
11032
|
+
{
|
|
11033
|
+
"description": "The wait before the first token, in place of the three dots.",
|
|
11034
|
+
"name": "indicator",
|
|
11035
|
+
"inheritedFrom": {
|
|
11036
|
+
"name": "HelixHeadlessChatMessage",
|
|
11037
|
+
"module": "src/chat/message/chat-message.ts"
|
|
11038
|
+
}
|
|
11039
|
+
},
|
|
11024
11040
|
{
|
|
11025
11041
|
"description": "What it was said from: citations, documents, a retrieved page.",
|
|
11026
11042
|
"name": "sources",
|
|
@@ -11209,6 +11225,21 @@
|
|
|
11209
11225
|
"module": "src/chat/message/chat-message.ts"
|
|
11210
11226
|
}
|
|
11211
11227
|
},
|
|
11228
|
+
{
|
|
11229
|
+
"kind": "method",
|
|
11230
|
+
"name": "renderIndicator",
|
|
11231
|
+
"privacy": "protected",
|
|
11232
|
+
"return": {
|
|
11233
|
+
"type": {
|
|
11234
|
+
"text": "TemplateResult | typeof nothing"
|
|
11235
|
+
}
|
|
11236
|
+
},
|
|
11237
|
+
"description": "The wait, for a consumer who slots nothing.\n\n**The slot and its fallback together, in a seam of its own**, because the\ntwo answer different people: the slot lets a consumer put their own\nindicator in the bubble, and the method lets the tier above replace what\nthey get when they do not, without reimplementing the template around it.\nHeadless draws a box and paints nothing on it.",
|
|
11238
|
+
"inheritedFrom": {
|
|
11239
|
+
"name": "HelixHeadlessChatMessage",
|
|
11240
|
+
"module": "src/chat/message/chat-message.ts"
|
|
11241
|
+
}
|
|
11242
|
+
},
|
|
11212
11243
|
{
|
|
11213
11244
|
"kind": "method",
|
|
11214
11245
|
"name": "renderState",
|
|
@@ -12354,6 +12385,11 @@
|
|
|
12354
12385
|
"min": 420,
|
|
12355
12386
|
"slug": "fullscreen"
|
|
12356
12387
|
},
|
|
12388
|
+
{
|
|
12389
|
+
"description": "The wait, as it comes and as a consumer can replace it.",
|
|
12390
|
+
"min": 420,
|
|
12391
|
+
"slug": "indicator"
|
|
12392
|
+
},
|
|
12357
12393
|
{
|
|
12358
12394
|
"description": "The floating one: an icon in the corner, and the conversation in a popover over the page.",
|
|
12359
12395
|
"layout": "fullscreen",
|
|
@@ -142,7 +142,15 @@ min-inline-size: 0;
|
|
|
142
142
|
overflow-x: auto;
|
|
143
143
|
}
|
|
144
144
|
|
|
145
|
-
|
|
145
|
+
[part="content"] slot[name="indicator"] {
|
|
146
|
+
display: none;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
:host([state="streaming"]) [part="content"][data-empty] slot[name="indicator"] {
|
|
150
|
+
display: block;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
[part="indicator"] {
|
|
146
154
|
animation: helix-chat-typing 1.2s infinite ease-in-out;
|
|
147
155
|
background-image:
|
|
148
156
|
radial-gradient(circle closest-side, currentColor 90%, transparent),
|
|
@@ -158,7 +166,6 @@ background-size:
|
|
|
158
166
|
20% 30%,
|
|
159
167
|
20% 30%;
|
|
160
168
|
block-size: 1lh;
|
|
161
|
-
content: "";
|
|
162
169
|
display: block;
|
|
163
170
|
inline-size: 1.75em;
|
|
164
171
|
opacity: 0.7;
|
|
@@ -197,7 +204,7 @@ background-position:
|
|
|
197
204
|
}
|
|
198
205
|
|
|
199
206
|
@media (prefers-reduced-motion: reduce) {
|
|
200
|
-
|
|
207
|
+
[part="indicator"] {
|
|
201
208
|
animation: none;
|
|
202
209
|
}
|
|
203
210
|
}
|
|
@@ -259,7 +266,7 @@ display: none;
|
|
|
259
266
|
display: none;
|
|
260
267
|
}
|
|
261
268
|
|
|
262
|
-
|
|
269
|
+
[part="content"] slot[name="indicator"] {
|
|
263
270
|
display: none;
|
|
264
271
|
}
|
|
265
272
|
}`);
|
|
@@ -20,8 +20,10 @@ import type { CSSResultGroup } from 'lit';
|
|
|
20
20
|
* @slot - What was said.
|
|
21
21
|
* @slot actions - What can be done with it.
|
|
22
22
|
* @slot avatar - Who said it.
|
|
23
|
+
* @slot indicator - The wait before the first token, in place of the three dots.
|
|
23
24
|
*
|
|
24
25
|
* @csspart content - What was said.
|
|
26
|
+
* @csspart indicator - The three dots, when nothing is slotted over them.
|
|
25
27
|
* @csspart meta - The time and the state together.
|
|
26
28
|
*
|
|
27
29
|
* @cssproperty --chat-message-background-color - Fill behind a turn.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fusion.dev/helix",
|
|
3
3
|
"description": "Styled component tier. Extends the headless tier with token-driven presentation.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.11.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Ross Sheppard <ross.sheppard@fusion.dev>",
|
|
7
7
|
"repository": {
|
|
@@ -46,14 +46,14 @@
|
|
|
46
46
|
},
|
|
47
47
|
"bugs": "https://github.com/project-fusion/fusion/issues",
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@fusion.dev/helix-core": "0.
|
|
50
|
-
"@fusion.dev/helix-headless": "0.
|
|
51
|
-
"@fusion.dev/helix-styles": "0.
|
|
49
|
+
"@fusion.dev/helix-core": "0.11.0",
|
|
50
|
+
"@fusion.dev/helix-headless": "0.11.0",
|
|
51
|
+
"@fusion.dev/helix-styles": "0.11.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@custom-elements-manifest/analyzer": "^0.11.0",
|
|
55
|
-
"@fusion.dev/helix-cem": "0.
|
|
56
|
-
"@fusion.dev/helix-testing": "0.
|
|
55
|
+
"@fusion.dev/helix-cem": "0.11.0",
|
|
56
|
+
"@fusion.dev/helix-testing": "0.11.0",
|
|
57
57
|
"@fusion.dev/scripts": "0.0.0-dev",
|
|
58
58
|
"@happy-dom/global-registrator": "^20.0.0",
|
|
59
59
|
"@lit-labs/ssr": "^3.3.0",
|
package/types/jsx.d.ts
CHANGED
|
@@ -20156,6 +20156,7 @@ export type CustomElements = {
|
|
|
20156
20156
|
* - `(default)`: What was said.
|
|
20157
20157
|
* - `actions`: What can be done with it.
|
|
20158
20158
|
* - `avatar`: Who said it.
|
|
20159
|
+
* - `indicator`: The wait before the first token, in place of the three dots.
|
|
20159
20160
|
* - `sources`: What it was said from: citations, documents, a retrieved page.
|
|
20160
20161
|
*
|
|
20161
20162
|
* ## CSS Custom Properties
|
|
@@ -20172,6 +20173,7 @@ export type CustomElements = {
|
|
|
20172
20173
|
* Custom selectors for styling elements within the component.
|
|
20173
20174
|
*
|
|
20174
20175
|
* - `content`: What was said.
|
|
20176
|
+
* - `indicator`: The three dots, when nothing is slotted over them.
|
|
20175
20177
|
* - `meta`: The time and the state together.
|
|
20176
20178
|
* - `actions`: The controls offered on the turn, beside its time.
|
|
20177
20179
|
* - `avatar`: The leading slot's box.
|
|
@@ -35914,6 +35916,7 @@ export type CustomElementsSolidJs = {
|
|
|
35914
35916
|
* - `(default)`: What was said.
|
|
35915
35917
|
* - `actions`: What can be done with it.
|
|
35916
35918
|
* - `avatar`: Who said it.
|
|
35919
|
+
* - `indicator`: The wait before the first token, in place of the three dots.
|
|
35917
35920
|
* - `sources`: What it was said from: citations, documents, a retrieved page.
|
|
35918
35921
|
*
|
|
35919
35922
|
* ## CSS Custom Properties
|
|
@@ -35930,6 +35933,7 @@ export type CustomElementsSolidJs = {
|
|
|
35930
35933
|
* Custom selectors for styling elements within the component.
|
|
35931
35934
|
*
|
|
35932
35935
|
* - `content`: What was said.
|
|
35936
|
+
* - `indicator`: The three dots, when nothing is slotted over them.
|
|
35933
35937
|
* - `meta`: The time and the state together.
|
|
35934
35938
|
* - `actions`: The controls offered on the turn, beside its time.
|
|
35935
35939
|
* - `avatar`: The leading slot's box.
|