@simai-studio/chat 1.0.0 → 1.1.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/README.md +7 -5
- package/dist/package-receipt.json +438 -436
- package/dist/set.json +4 -2
- package/dist/smart/chat-composer/aliases.json +11 -0
- package/dist/smart/chat-composer/aliases.json.gz +0 -0
- package/dist/smart/chat-composer/component.json +44 -4
- package/dist/smart/chat-composer/component.json.gz +0 -0
- package/dist/smart/chat-composer/css/chat-composer.css +8 -103
- package/dist/smart/chat-composer/css/chat-composer.css.gz +0 -0
- package/dist/smart/chat-composer/css/chat-composer.min.css +2 -2
- package/dist/smart/chat-composer/css/chat-composer.min.css.gz +0 -0
- package/dist/smart/chat-composer/examples.json +27 -8
- package/dist/smart/chat-composer/examples.json.gz +0 -0
- package/dist/smart/chat-composer/js/chat-composer.js +65 -60
- package/dist/smart/chat-composer/js/chat-composer.js.gz +0 -0
- package/dist/smart/chat-composer/js/chat-composer.min.js +17 -19
- package/dist/smart/chat-composer/js/chat-composer.min.js.gz +0 -0
- package/dist/smart/chat-composer/lang/en.json +1 -4
- package/dist/smart/chat-composer/lang/en.json.gz +0 -0
- package/dist/smart/chat-composer/lang/ru.json +1 -4
- package/dist/smart/chat-composer/lang/ru.json.gz +0 -0
- package/dist/smart/chat-composer/probe.json +21 -5
- package/dist/smart/chat-composer/probe.json.gz +0 -0
- package/dist/smart/chat-composer/smart.manifest.json +41 -15
- package/dist/smart/chat-composer/smart.manifest.json.gz +0 -0
- package/dist/smart/chat-composer/static/default/busy.html +2 -2
- package/dist/smart/chat-composer/static/default/busy.html.gz +0 -0
- package/dist/smart/chat-composer/static/default/disabled.html +1 -1
- package/dist/smart/chat-composer/static/default/disabled.html.gz +0 -0
- package/dist/smart/chat-composer/static/default/files.html +82 -27
- package/dist/smart/chat-composer/static/default/files.html.gz +0 -0
- package/dist/smart/chat-composer/static/default/near-limit.html +2 -2
- package/dist/smart/chat-composer/static/default/near-limit.html.gz +0 -0
- package/dist/smart/chat-composer/static/default/reference.html +2 -2
- package/dist/smart/chat-composer/static/default/reference.html.gz +0 -0
- package/dist/smart/chat-composer/static/sheets.json +24 -2
- package/dist/smart/chat-composer/static/sheets.json.gz +0 -0
- package/dist/smart/chat-composer/template/default.css +7 -82
- package/dist/smart/chat-composer/template/default.css.gz +0 -0
- package/dist/smart/chat-composer/template/default.js +1 -1
- package/dist/smart/chat-composer/template/default.js.gz +0 -0
- package/dist/smart/chat-composer/template/parts.js +40 -33
- package/dist/smart/chat-composer/template/parts.js.gz +0 -0
- package/dist/smart/chat-interlocutor/component.json +3 -2
- package/dist/smart/chat-interlocutor/component.json.gz +0 -0
- package/dist/smart/chat-interlocutor/css/chat-interlocutor.css +1 -36
- package/dist/smart/chat-interlocutor/css/chat-interlocutor.css.gz +0 -0
- package/dist/smart/chat-interlocutor/css/chat-interlocutor.min.css +2 -2
- package/dist/smart/chat-interlocutor/css/chat-interlocutor.min.css.gz +0 -0
- package/dist/smart/chat-interlocutor/js/chat-interlocutor.js +1 -1
- package/dist/smart/chat-interlocutor/js/chat-interlocutor.js.gz +0 -0
- package/dist/smart/chat-interlocutor/js/chat-interlocutor.min.js +1 -1
- package/dist/smart/chat-interlocutor/js/chat-interlocutor.min.js.gz +0 -0
- package/dist/smart/chat-interlocutor/smart.manifest.json +4 -4
- package/dist/smart/chat-interlocutor/smart.manifest.json.gz +0 -0
- package/dist/smart/chat-interlocutor/static/default/former.html +1 -1
- package/dist/smart/chat-interlocutor/static/default/former.html.gz +0 -0
- package/dist/smart/chat-interlocutor/static/default/grouped.html +1 -1
- package/dist/smart/chat-interlocutor/static/default/grouped.html.gz +0 -0
- package/dist/smart/chat-interlocutor/static/default/reference.html +1 -1
- package/dist/smart/chat-interlocutor/static/default/reference.html.gz +0 -0
- package/dist/smart/chat-interlocutor/static/default/single.html +1 -1
- package/dist/smart/chat-interlocutor/static/default/single.html.gz +0 -0
- package/dist/smart/chat-interlocutor/static/sheets.json +10 -5
- package/dist/smart/chat-interlocutor/static/sheets.json.gz +0 -0
- package/dist/smart/chat-interlocutor/template/default.css +1 -1
- package/dist/smart/chat-interlocutor/template/default.css.gz +0 -0
- package/dist/smart/chat-message/aliases.json +11 -0
- package/dist/smart/chat-message/aliases.json.gz +0 -0
- package/dist/smart/chat-message/component.json +30 -2
- package/dist/smart/chat-message/component.json.gz +0 -0
- package/dist/smart/chat-message/css/chat-message.css +91 -1122
- package/dist/smart/chat-message/css/chat-message.css.gz +0 -0
- package/dist/smart/chat-message/css/chat-message.min.css +2 -2
- package/dist/smart/chat-message/css/chat-message.min.css.gz +0 -0
- package/dist/smart/chat-message/examples.json +32 -10
- package/dist/smart/chat-message/examples.json.gz +0 -0
- package/dist/smart/chat-message/js/chat-message.js +511 -150
- package/dist/smart/chat-message/js/chat-message.js.gz +0 -0
- package/dist/smart/chat-message/js/chat-message.min.js +15 -25
- package/dist/smart/chat-message/js/chat-message.min.js.gz +0 -0
- package/dist/smart/chat-message/lang/en.json +1 -6
- package/dist/smart/chat-message/lang/en.json.gz +0 -0
- package/dist/smart/chat-message/lang/ru.json +1 -6
- package/dist/smart/chat-message/lang/ru.json.gz +0 -0
- package/dist/smart/chat-message/probe.json +31 -9
- package/dist/smart/chat-message/probe.json.gz +0 -0
- package/dist/smart/chat-message/smart.manifest.json +23 -13
- package/dist/smart/chat-message/smart.manifest.json.gz +0 -0
- package/dist/smart/chat-message/static/default/brief-card.html +1 -1
- package/dist/smart/chat-message/static/default/brief-card.html.gz +0 -0
- package/dist/smart/chat-message/static/default/brief-questions.html +1 -1
- package/dist/smart/chat-message/static/default/brief-questions.html.gz +0 -0
- package/dist/smart/chat-message/static/default/deliverables.html +1 -1
- package/dist/smart/chat-message/static/default/deliverables.html.gz +0 -0
- package/dist/smart/chat-message/static/default/document.html +2 -2
- package/dist/smart/chat-message/static/default/document.html.gz +0 -0
- package/dist/smart/chat-message/static/default/failed.html +1 -1
- package/dist/smart/chat-message/static/default/failed.html.gz +0 -0
- package/dist/smart/chat-message/static/default/feedback-reason.html +1 -1
- package/dist/smart/chat-message/static/default/feedback-reason.html.gz +0 -0
- package/dist/smart/chat-message/static/default/limit.html +1 -1
- package/dist/smart/chat-message/static/default/limit.html.gz +0 -0
- package/dist/smart/chat-message/static/default/proposal.html +17 -19
- package/dist/smart/chat-message/static/default/proposal.html.gz +0 -0
- package/dist/smart/chat-message/static/default/question.html +15 -11
- package/dist/smart/chat-message/static/default/question.html.gz +0 -0
- package/dist/smart/chat-message/static/default/reference.html +1 -1
- package/dist/smart/chat-message/static/default/reference.html.gz +0 -0
- package/dist/smart/chat-message/static/default/steps.html +1 -1
- package/dist/smart/chat-message/static/default/steps.html.gz +0 -0
- package/dist/smart/chat-message/static/default/stopped.html +1 -1
- package/dist/smart/chat-message/static/default/stopped.html.gz +0 -0
- package/dist/smart/chat-message/static/person/person-own.html +1 -1
- package/dist/smart/chat-message/static/person/person-own.html.gz +0 -0
- package/dist/smart/chat-message/static/person/person-reply.html +1 -5
- package/dist/smart/chat-message/static/person/person-reply.html.gz +0 -0
- package/dist/smart/chat-message/static/person/person.html +8 -10
- package/dist/smart/chat-message/static/person/person.html.gz +0 -0
- package/dist/smart/chat-message/static/sheets.json +66 -12
- package/dist/smart/chat-message/static/sheets.json.gz +0 -0
- package/dist/smart/chat-message/template/default.css +9 -99
- package/dist/smart/chat-message/template/default.css.gz +0 -0
- package/dist/smart/chat-threads/component.json +10 -2
- package/dist/smart/chat-threads/component.json.gz +0 -0
- package/dist/smart/chat-threads/css/chat-threads.css +1 -17
- package/dist/smart/chat-threads/css/chat-threads.css.gz +0 -0
- package/dist/smart/chat-threads/css/chat-threads.min.css +2 -2
- package/dist/smart/chat-threads/css/chat-threads.min.css.gz +0 -0
- package/dist/smart/chat-threads/examples.json +3 -3
- package/dist/smart/chat-threads/examples.json.gz +0 -0
- package/dist/smart/chat-threads/js/chat-threads.js +1 -1
- package/dist/smart/chat-threads/js/chat-threads.js.gz +0 -0
- package/dist/smart/chat-threads/js/chat-threads.min.js +1 -1
- package/dist/smart/chat-threads/js/chat-threads.min.js.gz +0 -0
- package/dist/smart/chat-threads/probe.json +3 -3
- package/dist/smart/chat-threads/probe.json.gz +0 -0
- package/dist/smart/chat-threads/smart.manifest.json +11 -4
- package/dist/smart/chat-threads/smart.manifest.json.gz +0 -0
- package/dist/smart/chat-threads/static/default/activity.html +27 -21
- package/dist/smart/chat-threads/static/default/activity.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/activity.skeleton.html +27 -21
- package/dist/smart/chat-threads/static/default/activity.skeleton.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/archive.html +9 -6
- package/dist/smart/chat-threads/static/default/archive.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/archive.skeleton.html +9 -6
- package/dist/smart/chat-threads/static/default/archive.skeleton.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/avatars.html +25 -13
- package/dist/smart/chat-threads/static/default/avatars.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/avatars.skeleton.html +25 -13
- package/dist/smart/chat-threads/static/default/avatars.skeleton.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/empty.html +11 -9
- package/dist/smart/chat-threads/static/default/empty.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/loading.html +11 -9
- package/dist/smart/chat-threads/static/default/loading.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/people.html +20 -11
- package/dist/smart/chat-threads/static/default/people.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/people.skeleton.html +20 -11
- package/dist/smart/chat-threads/static/default/people.skeleton.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/reference.html +22 -13
- package/dist/smart/chat-threads/static/default/reference.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/reference.skeleton.html +22 -13
- package/dist/smart/chat-threads/static/default/reference.skeleton.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/ungrouped.html +18 -13
- package/dist/smart/chat-threads/static/default/ungrouped.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/ungrouped.skeleton.html +18 -13
- package/dist/smart/chat-threads/static/default/ungrouped.skeleton.html.gz +0 -0
- package/dist/smart/chat-threads/static/sheets.json +81 -0
- package/dist/smart/chat-threads/static/sheets.json.gz +0 -0
- package/dist/smart/chat-threads/template/default.css +1 -1
- package/dist/smart/chat-threads/template/default.css.gz +0 -0
- package/dist/smart/chat-window/component.json +12 -2
- package/dist/smart/chat-window/component.json.gz +0 -0
- package/dist/smart/chat-window/css/chat-window.css +1 -209
- package/dist/smart/chat-window/css/chat-window.css.gz +0 -0
- package/dist/smart/chat-window/css/chat-window.min.css +2 -2
- package/dist/smart/chat-window/css/chat-window.min.css.gz +0 -0
- package/dist/smart/chat-window/examples.json +3 -3
- package/dist/smart/chat-window/examples.json.gz +0 -0
- package/dist/smart/chat-window/js/chat-window.js +520 -122
- package/dist/smart/chat-window/js/chat-window.js.gz +0 -0
- package/dist/smart/chat-window/js/chat-window.min.js +1 -1
- package/dist/smart/chat-window/js/chat-window.min.js.gz +0 -0
- package/dist/smart/chat-window/probe.json +3 -3
- package/dist/smart/chat-window/probe.json.gz +0 -0
- package/dist/smart/chat-window/smart.manifest.json +15 -6
- package/dist/smart/chat-window/smart.manifest.json.gz +0 -0
- package/dist/smart/chat-window/static/default/archived.html +15 -12
- package/dist/smart/chat-window/static/default/archived.html.gz +0 -0
- package/dist/smart/chat-window/static/default/embedded.html +19 -13
- package/dist/smart/chat-window/static/default/embedded.html.gz +0 -0
- package/dist/smart/chat-window/static/default/greeting.html +19 -13
- package/dist/smart/chat-window/static/default/greeting.html.gz +0 -0
- package/dist/smart/chat-window/static/default/people.html +21 -27
- package/dist/smart/chat-window/static/default/people.html.gz +0 -0
- package/dist/smart/chat-window/static/default/proposal.html +36 -32
- package/dist/smart/chat-window/static/default/proposal.html.gz +0 -0
- package/dist/smart/chat-window/static/default/reference.html +20 -14
- package/dist/smart/chat-window/static/default/reference.html.gz +0 -0
- package/dist/smart/chat-window/static/default/waiting.html +19 -13
- package/dist/smart/chat-window/static/default/waiting.html.gz +0 -0
- package/dist/smart/chat-window/static/sheets.json +50 -0
- package/dist/smart/chat-window/static/sheets.json.gz +0 -0
- package/dist/smart/chat-window/template/default.css +1 -1
- package/dist/smart/chat-window/template/default.css.gz +0 -0
- package/dist/smart/rule.js +8 -0
- package/dist/smart/rule.js.gz +0 -0
- package/package.json +1 -1
package/dist/set.json
CHANGED
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"spdx": "PolyForm-Small-Business-1.0.0 OR PolyForm-Noncommercial-1.0.0 OR LicenseRef-SIMAI-Commercial"
|
|
15
15
|
},
|
|
16
16
|
"framework": {
|
|
17
|
-
"core_runtime": ">=1.
|
|
18
|
-
"source_revision": "
|
|
17
|
+
"core_runtime": ">=1.58.0",
|
|
18
|
+
"source_revision": "5e30b946fd0e620a4d00ab771af143dc286be1b8"
|
|
19
19
|
},
|
|
20
20
|
"requires_sets": [
|
|
21
21
|
{
|
|
@@ -59,6 +59,7 @@
|
|
|
59
59
|
"cl-avatar",
|
|
60
60
|
"cl-badge",
|
|
61
61
|
"cl-confirm-change",
|
|
62
|
+
"cl-file-preview",
|
|
62
63
|
"cl-icon",
|
|
63
64
|
"cl-menu-context",
|
|
64
65
|
"cl-view-properties"
|
|
@@ -70,6 +71,7 @@
|
|
|
70
71
|
"folder": "chat-composer",
|
|
71
72
|
"status": "released",
|
|
72
73
|
"requires": [
|
|
74
|
+
"cl-file-preview",
|
|
73
75
|
"cl-icon"
|
|
74
76
|
]
|
|
75
77
|
},
|
|
@@ -51,6 +51,17 @@
|
|
|
51
51
|
"cancelable": true,
|
|
52
52
|
"section": "§8, vocabulary 1.1.5 §5, §5.1, §7",
|
|
53
53
|
"note": "the 0.3 general action event {action: remove-attachment, id, name}: the element's adapter puts action back on {id, name}"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"from": "sf-chat-attachment",
|
|
57
|
+
"to": null,
|
|
58
|
+
"kind": "attribute",
|
|
59
|
+
"component": "sf-chat-composer",
|
|
60
|
+
"since": "2026-11-26",
|
|
61
|
+
"remove_after": "2027-01-01",
|
|
62
|
+
"mode": "host-attribute",
|
|
63
|
+
"section": "K-08, SIMAI Framework pair ui-73df5d1b4d4c",
|
|
64
|
+
"note": "the chip's former class (the chip is now sf-file-preview): sf-chat-attachment and sf-chat-attachment--<ready|uploading|error> stay on the sf-file-preview host until the date, for a page that finds or styles a chip by it (Mirai24 docs/ui-chat/HANDOFF.md names it); no shim. Its inner parts (__icon, __body, __name, __meta, __link, __progress, __remove) are gone: the parts are sf-file-preview's"
|
|
54
65
|
}
|
|
55
66
|
]
|
|
56
67
|
}
|
|
Binary file
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$comment": "The source of sf-chat-composer's element plumbing (core/js/element-manifest.js); standard simai.smart-component 1.3.9, vocabulary 1.1.5. Moved from simai/ui-chat components/src/smart/chat-composer (smart.manifest.json 0.3.1, ui-chat 10d376b) by the D31 move, step 4 (owner yes 2026-10-27), with the pieces of chat-core and component/chat it drew on; written by hand on the shape of sf-chat-interlocutor (step 3), since migration/convert-1.3.8.mjs takes only the pinned 66 and needs stand 17's output. x-decisions says how each point was decided.",
|
|
3
3
|
"id": "smart.chat-composer",
|
|
4
4
|
"tag": "sf-chat-composer",
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.3.0",
|
|
6
6
|
"kind": "leaf",
|
|
7
7
|
"family": "chat",
|
|
8
8
|
"settings": {
|
|
@@ -159,6 +159,18 @@
|
|
|
159
159
|
"cancelable": true,
|
|
160
160
|
"x-summary": "A chip's remove was pressed (vocabulary §5 detach); the host removes it and hands the chips back.",
|
|
161
161
|
"summary": "A chip's remove was pressed. The 0.3 sf-chat-action {action: remove-attachment, id, name} follows it until 2026-12-01."
|
|
162
|
+
},
|
|
163
|
+
"retry": {
|
|
164
|
+
"carries": {
|
|
165
|
+
"id": "id",
|
|
166
|
+
"name": {
|
|
167
|
+
"type": "string",
|
|
168
|
+
"optional": true
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
"cancelable": false,
|
|
172
|
+
"x-summary": "«Повторить» was pressed on a chip that did not upload (vocabulary §5 retry; sf-file-preview's retry, K-08): the host sends the file again and hands the chips back.",
|
|
173
|
+
"summary": "«Повторить» was pressed on a chip that did not upload: the host sends the file again (id is the chip's id, else its localId)."
|
|
162
174
|
}
|
|
163
175
|
},
|
|
164
176
|
"actions": {
|
|
@@ -200,7 +212,7 @@
|
|
|
200
212
|
"string",
|
|
201
213
|
"null"
|
|
202
214
|
],
|
|
203
|
-
"description": "The server's refusal
|
|
215
|
+
"description": "The server's refusal: the chip's state error, said after «Не загрузился:» (sf-file-preview error-text)."
|
|
204
216
|
}
|
|
205
217
|
}
|
|
206
218
|
}
|
|
@@ -248,6 +260,13 @@
|
|
|
248
260
|
},
|
|
249
261
|
{
|
|
250
262
|
"name": "sr-only/default"
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"name": "cl-file-preview",
|
|
266
|
+
"lazy": true,
|
|
267
|
+
"$comment": [
|
|
268
|
+
"A file chip is SIMAI Framework's sf-file-preview, appearance chip (K-08, pair ui-73df5d1b4d4c): drawn only when there are files."
|
|
269
|
+
]
|
|
251
270
|
}
|
|
252
271
|
],
|
|
253
272
|
"templates": {
|
|
@@ -332,6 +351,17 @@
|
|
|
332
351
|
"cancelable": true,
|
|
333
352
|
"section": "§8, vocabulary 1.1.5 §5, §5.1, §7",
|
|
334
353
|
"note": "the 0.3 general action event {action: remove-attachment, id, name}: the element's adapter puts action back on {id, name}"
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
"from": "sf-chat-attachment",
|
|
357
|
+
"to": null,
|
|
358
|
+
"kind": "attribute",
|
|
359
|
+
"mode": "host-attribute",
|
|
360
|
+
"since": "2026-11-26",
|
|
361
|
+
"section": "K-08, SIMAI Framework pair ui-73df5d1b4d4c",
|
|
362
|
+
"note": "the chip's former class (the chip is now sf-file-preview): sf-chat-attachment and sf-chat-attachment--<ready|uploading|error> stay on the sf-file-preview host until the date, for a page that finds or styles a chip by it (Mirai24 docs/ui-chat/HANDOFF.md names it); no shim. Its inner parts (__icon, __body, __name, __meta, __link, __progress, __remove) are gone: the parts are sf-file-preview's",
|
|
363
|
+
"remove_after": "2027-01-01",
|
|
364
|
+
"since-version": "1.3.0"
|
|
335
365
|
}
|
|
336
366
|
]
|
|
337
367
|
},
|
|
@@ -371,7 +401,8 @@
|
|
|
371
401
|
"queue (1.1.0): the composer only lets a message of text out while busy and says so; the queue itself is the host's (sf-chat-window keeps it per conversation, draws its cards above the field and sends them after the answer), since what an answer's end means and what a conversation is are the host's. A message with files is not queued: its chips are the host's upload state, which a queued message would have to hold apart from the field; while busy it waits as before, and the hint says so. Without queue nothing changes.",
|
|
372
402
|
"no-stop 1.2.0: a minor (§4.10). Between people sf-chat-window keeps the field busy only while a send is out, and Stop is a message's own; without this the stop button would flash for each send. Default false: nothing changes for a host that does not set it.",
|
|
373
403
|
"version 1.2.2 (2026-11-09): a patch, for the SIMAI Framework pair with the shadow places (C20, owner 2026-11-08; core.runtime >= 1.43.0). The box's ground falls back to --sf-surface-card and its shadow is --sf-shadow-raised, instead of elevation step 1, whose names resolve to these on that pair; --sf-chat-composer-background-color still comes first. No visible change against that pair; settings, values and events are unchanged.",
|
|
374
|
-
"version 1.2.3 (2026-11-09): a patch (no visible change). SIMAI Framework ui-cb287da78ab1 (core.runtime 1.45.0, standard §4.4) writes an action's method in the reference as one args object whose schema is the action's `with` fields, not the fields one by one (ui-source 9d2eeb8e, generate-component-files.mjs argumentsOf); smart.manifest.json is regenerated and changes only in methods.*.arguments. setFiles is the runtime's generated method and takes both forms. Settings, values and events are unchanged. The same version first-paint snapshots are retaken over that pair; static/sheets.json is unchanged."
|
|
404
|
+
"version 1.2.3 (2026-11-09): a patch (no visible change). SIMAI Framework ui-cb287da78ab1 (core.runtime 1.45.0, standard §4.4) writes an action's method in the reference as one args object whose schema is the action's `with` fields, not the fields one by one (ui-source 9d2eeb8e, generate-component-files.mjs argumentsOf); smart.manifest.json is regenerated and changes only in methods.*.arguments. setFiles is the runtime's generated method and takes both forms. Settings, values and events are unchanged. The same version first-paint snapshots are retaken over that pair; static/sheets.json is unchanged.",
|
|
405
|
+
"version 1.3.0 (2026-11-26, K-08): a minor, over SIMAI Framework pair ui-73df5d1b4d4c (ui-source 5e30b946, core.runtime 1.69.0; sf-file-preview's chip look since its 1.4.0, pair core.runtime 1.58.0, decision C149). A file chip is the Framework's sf-file-preview with appearance chip (the decision's word view is reserved, §3.1): file-name, file-size (bytes; the preview formats and says it), mime-type, state ready | uploading | error, value (per cent while uploading; none: the bar runs), error-text (the refusal, after «Не загрузился:»), remove-action. Upload progress and refusal are the preview's own state, not the composer's bar or line; the composer hears the preview's sf-file-preview-detach («×») and sf-file-preview-retry («Повторить»), stops them at the chip and raises its own detach {id, name} (unchanged) and the new retry {id, name}. The chip markup sf-chat-attachment* is no longer drawn; the class sf-chat-attachment (with --<state>) stays on the preview's host as a dated alias until 2027-01-01 (aliases, host-attribute). The words file-label, uploading-text and remove-label are dropped: the preview names the chip («Отчёт.pdf, PDF, 47 килобайт») and «Убрать <имя>» itself. The rule relates cl-file-preview (lazy)."
|
|
375
406
|
],
|
|
376
407
|
"x-rule": {
|
|
377
408
|
"$comment": [
|
|
@@ -444,7 +475,7 @@
|
|
|
444
475
|
"string",
|
|
445
476
|
"null"
|
|
446
477
|
],
|
|
447
|
-
"description": "The server's refusal
|
|
478
|
+
"description": "The server's refusal: the chip's state error, said after «Не загрузился:» (sf-file-preview error-text)."
|
|
448
479
|
}
|
|
449
480
|
}
|
|
450
481
|
},
|
|
@@ -590,6 +621,15 @@
|
|
|
590
621
|
"changes": [
|
|
591
622
|
"The setting no-stop: while busy, no stop button. Without it nothing changes."
|
|
592
623
|
]
|
|
624
|
+
},
|
|
625
|
+
{
|
|
626
|
+
"from": "1.2.3",
|
|
627
|
+
"to": "1.3.0",
|
|
628
|
+
"changes": [
|
|
629
|
+
"K-08 (pair ui-73df5d1b4d4c): a file chip is SIMAI Framework's sf-file-preview (appearance chip): the upload's bar and per cent and the refusal («Не загрузился: …», «Повторить») are its own state. The markup sf-chat-attachment__* is gone; a page that styled it styles sf-file-preview through its variables (--sf-file-preview-*). The class sf-chat-attachment and sf-chat-attachment--<state> stay on the chip until 2027-01-01.",
|
|
630
|
+
"New event retry {id, name}: «Повторить» on a chip that did not upload. Without a listener nothing happens, as before. detach {id, name} is unchanged.",
|
|
631
|
+
"Needs a SIMAI Framework pair with sf-file-preview 1.4 or later (core.runtime >= 1.58.0)."
|
|
632
|
+
]
|
|
593
633
|
}
|
|
594
634
|
]
|
|
595
635
|
},
|
|
Binary file
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
@
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
@layer sf.reset, sf.tokens, sf.base, sf.paint, sf.utilities, sf.components, sf.overrides, sf.states;
|
|
2
3
|
@layer sf.components {
|
|
3
4
|
/* sf-chat-composer. The host is display: contents; .sf-chat-composer is
|
|
4
5
|
what a window places. Every value is a Framework token. The public
|
|
@@ -51,10 +52,8 @@
|
|
|
51
52
|
gap: var(--sf-space-1\/3);
|
|
52
53
|
padding: var(--sf-chat-composer--inset);
|
|
53
54
|
/* The field's edge at 3:1 against the page (WCAG 1.4.11). */
|
|
54
|
-
border: var(--sf-px) solid var(--sf-outline);
|
|
55
55
|
border: var(--sf-px) solid var(--sf-chat-composer-border-color, var(--sf-outline));
|
|
56
56
|
border-radius: var(--sf-chat-composer--radius);
|
|
57
|
-
background: var(--sf-surface-card);
|
|
58
57
|
background: var(--sf-chat-composer-background-color, var(--sf-surface-card));
|
|
59
58
|
box-shadow: var(--sf-shadow-raised);
|
|
60
59
|
transition: border-color var(--sf-duration-fast), box-shadow var(--sf-duration-fast);
|
|
@@ -94,18 +93,14 @@
|
|
|
94
93
|
}
|
|
95
94
|
[data-chat-input=pointer] .sf-chat-composer__box:has(.sf-chat-composer__input.focus-visible) {
|
|
96
95
|
outline: none;
|
|
97
|
-
border-color: var(--sf-outline);
|
|
98
96
|
border-color: var(--sf-chat-composer-border-color, var(--sf-outline));
|
|
99
97
|
}
|
|
100
98
|
[data-chat-input=pointer] .sf-chat-composer__box:has(.sf-chat-composer__input.focus-visible) {
|
|
101
99
|
outline: none;
|
|
102
|
-
border-color: var(--sf-outline);
|
|
103
|
-
border-color: var(--sf-outline);
|
|
104
100
|
border-color: var(--sf-chat-composer-border-color, var(--sf-outline));
|
|
105
101
|
}
|
|
106
102
|
[data-chat-input=pointer] .sf-chat-composer__box:has(.sf-chat-composer__input:focus-visible) {
|
|
107
103
|
outline: none;
|
|
108
|
-
border-color: var(--sf-outline);
|
|
109
104
|
border-color: var(--sf-chat-composer-border-color, var(--sf-outline));
|
|
110
105
|
}
|
|
111
106
|
/* In forced colours the field keeps the system outline (Framework, flush
|
|
@@ -205,99 +200,15 @@
|
|
|
205
200
|
.sf-chat-composer--dragging .sf-chat-composer__drop {
|
|
206
201
|
display: grid;
|
|
207
202
|
}
|
|
208
|
-
/* --- a file chip
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
203
|
+
/* --- a file chip: the Framework's sf-file-preview, chip look (K-08) --
|
|
204
|
+
The preview draws the name, type · size, the upload's bar, the refusal
|
|
205
|
+
and «×»; the box only keeps it from shrinking in its one scrolled row and
|
|
206
|
+
gives it the box's inner corner (radius less the inset). */
|
|
207
|
+
.sf-chat-composer__files > sf-file-preview {
|
|
212
208
|
flex: none;
|
|
213
|
-
align-items: center;
|
|
214
|
-
gap: var(--sf-space-1\/3);
|
|
215
|
-
max-width: var(--sf-f6);
|
|
216
|
-
max-inline-size: var(--sf-f6);
|
|
217
209
|
min-width: 0;
|
|
218
210
|
min-inline-size: 0;
|
|
219
|
-
|
|
220
|
-
min-block-size: var(--sf-ui-2--control-height);
|
|
221
|
-
padding-top: var(--sf-space-1\/4);
|
|
222
|
-
padding-bottom: var(--sf-space-1\/4);
|
|
223
|
-
padding-block: var(--sf-space-1\/4);
|
|
224
|
-
padding-left: var(--sf-space-1\/3);
|
|
225
|
-
padding-right: var(--sf-space-1\/3);
|
|
226
|
-
padding-inline: var(--sf-space-1\/3);
|
|
227
|
-
border: var(--sf-px) solid var(--sf-outline-variant);
|
|
228
|
-
/* A file inside the box follows the box's corner, and passes the rule on
|
|
229
|
-
to its own icon and remove button. */
|
|
230
|
-
--sf-chat-attachment--radius: max(var(--sf-radius--ui), calc(var(--sf-chat-composer--radius) - var(--sf-chat-composer--inset)));
|
|
231
|
-
border-radius: var(--sf-chat-attachment--radius);
|
|
232
|
-
background: var(--sf-surface-0);
|
|
233
|
-
color: var(--sf-on-surface);
|
|
234
|
-
}
|
|
235
|
-
.sf-chat-attachment--error {
|
|
236
|
-
border-color: var(--sf-outline-error);
|
|
237
|
-
}
|
|
238
|
-
.sf-chat-attachment__icon {
|
|
239
|
-
flex: none;
|
|
240
|
-
display: grid;
|
|
241
|
-
align-items: center;
|
|
242
|
-
justify-items: center;
|
|
243
|
-
place-items: center;
|
|
244
|
-
width: var(--sf-ui-1\/2--control-height);
|
|
245
|
-
inline-size: var(--sf-ui-1\/2--control-height);
|
|
246
|
-
height: var(--sf-ui-1\/2--control-height);
|
|
247
|
-
block-size: var(--sf-ui-1\/2--control-height);
|
|
248
|
-
border-radius: max(var(--sf-radius--ui), var(--sf-chat-attachment--radius) - var(--sf-space-1\/3));
|
|
249
|
-
background: var(--sf-surface-container);
|
|
250
|
-
color: var(--sf-chat-composer--muted);
|
|
251
|
-
}
|
|
252
|
-
.sf-chat-attachment--error .sf-chat-attachment__icon {
|
|
253
|
-
color: var(--sf-error);
|
|
254
|
-
}
|
|
255
|
-
.sf-chat-attachment__body {
|
|
256
|
-
display: flex;
|
|
257
|
-
flex: 1;
|
|
258
|
-
flex-direction: column;
|
|
259
|
-
min-width: 0;
|
|
260
|
-
min-inline-size: 0;
|
|
261
|
-
}
|
|
262
|
-
.sf-chat-attachment__name {
|
|
263
|
-
overflow: hidden;
|
|
264
|
-
text-overflow: ellipsis;
|
|
265
|
-
white-space: nowrap;
|
|
266
|
-
font-size: var(--sf-chat-composer--ui-size);
|
|
267
|
-
line-height: var(--sf-chat-composer--ui-height);
|
|
268
|
-
}
|
|
269
|
-
/* One line: a refusal's reason is shortened here and said in full in the
|
|
270
|
-
notice under the field. */
|
|
271
|
-
.sf-chat-attachment__meta {
|
|
272
|
-
overflow: hidden;
|
|
273
|
-
text-overflow: ellipsis;
|
|
274
|
-
white-space: nowrap;
|
|
275
|
-
color: var(--sf-chat-composer--muted);
|
|
276
|
-
font-size: var(--sf-chat-composer--meta-size);
|
|
277
|
-
line-height: var(--sf-chat-composer--meta-height);
|
|
278
|
-
}
|
|
279
|
-
.sf-chat-attachment--error .sf-chat-attachment__meta {
|
|
280
|
-
color: var(--sf-error);
|
|
281
|
-
}
|
|
282
|
-
.sf-chat-attachment__progress {
|
|
283
|
-
position: absolute;
|
|
284
|
-
left: var(--sf-space-1\/3);
|
|
285
|
-
right: var(--sf-space-1\/3);
|
|
286
|
-
inset-inline: var(--sf-space-1\/3);
|
|
287
|
-
bottom: 0;
|
|
288
|
-
inset-block-end: 0;
|
|
289
|
-
height: calc(2 * var(--sf-px));
|
|
290
|
-
block-size: calc(2 * var(--sf-px));
|
|
291
|
-
border-radius: var(--sf-radius-circle);
|
|
292
|
-
background: linear-gradient(90deg, var(--sf-primary) calc(0 * 100%), transparent 0);
|
|
293
|
-
background: linear-gradient(90deg, var(--sf-primary) calc(var(--sf-chat-attachment--progress, 0) * 100%), transparent 0);
|
|
294
|
-
}
|
|
295
|
-
.sf-chat-attachment__remove {
|
|
296
|
-
flex: none;
|
|
297
|
-
}
|
|
298
|
-
.sf-chat-composer__files .sf-chat-attachment__remove {
|
|
299
|
-
--sf-icon-button-radius: max(var(--sf-radius--ui), calc(var(--sf-chat-attachment--radius) - var(--sf-space-1\/3)));
|
|
300
|
-
border-radius: max(var(--sf-radius--ui), var(--sf-chat-attachment--radius) - var(--sf-space-1\/3));
|
|
211
|
+
--sf-file-preview-radius: max(var(--sf-radius--ui), calc(var(--sf-chat-composer--radius) - var(--sf-chat-composer--inset)));
|
|
301
212
|
}
|
|
302
213
|
/* Touch screens: every target at least the comfortable control, and no
|
|
303
214
|
keyboard to press Enter on, so the hint has nothing to say. */
|
|
@@ -305,12 +216,6 @@
|
|
|
305
216
|
.sf-chat-composer {
|
|
306
217
|
--sf-chat-composer--control: var(--sf-chat-composer-height, var(--sf-ui-2--control-height));
|
|
307
218
|
}
|
|
308
|
-
.sf-chat-attachment__remove {
|
|
309
|
-
min-width: var(--sf-ui-2--control-height);
|
|
310
|
-
min-inline-size: var(--sf-ui-2--control-height);
|
|
311
|
-
min-height: var(--sf-ui-2--control-height);
|
|
312
|
-
min-block-size: var(--sf-ui-2--control-height);
|
|
313
|
-
}
|
|
314
219
|
.sf-chat-composer__hint:not(.sf-chat-composer__hint--busy) {
|
|
315
220
|
display: none;
|
|
316
221
|
}
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@layer sf.reset, sf.tokens, sf.base, sf.utilities, sf.components, sf.overrides, sf.states;
|
|
2
|
-
@layer sf.components{.sf-chat-composer{--sf-chat-composer--muted: var(--sf-chat-composer-hint-color, var(--sf-on-surface-variant));--sf-chat-composer--control: var(--sf-chat-composer-height, var(--sf-ui-1--control-height));--sf-chat-composer--meta-size: var(--sf-label-medium--size);--sf-chat-composer--meta-height: var(--sf-label-medium--height);--sf-chat-composer--ui-size: var(--sf-label-large--size);--sf-chat-composer--ui-height: var(--sf-label-large--height);position:relative;display:flex;flex-direction:column;gap:var(--sf-space-1\/3);margin:0}.sf-chat-composer__files{display:flex;flex-wrap:nowrap;align-items:flex-start;gap:var(--sf-space-1\/3);overflow-x:auto;scrollbar-width:none}.sf-chat-composer__files[hidden]{display:none}.sf-chat-composer__box{--sf-chat-composer--radius: var(--sf-radius-rounded);--sf-chat-composer--inset: var(--sf-space-1\/3);position:relative;display:flex;flex-direction:column;gap:var(--sf-space-1\/3);padding:var(--sf-chat-composer--inset);border:var(--sf-px) solid var(--sf-
|
|
1
|
+
@layer sf.reset, sf.tokens, sf.base, sf.paint, sf.utilities, sf.components, sf.overrides, sf.states;
|
|
2
|
+
@layer sf.components{.sf-chat-composer{--sf-chat-composer--muted: var(--sf-chat-composer-hint-color, var(--sf-on-surface-variant));--sf-chat-composer--control: var(--sf-chat-composer-height, var(--sf-ui-1--control-height));--sf-chat-composer--meta-size: var(--sf-label-medium--size);--sf-chat-composer--meta-height: var(--sf-label-medium--height);--sf-chat-composer--ui-size: var(--sf-label-large--size);--sf-chat-composer--ui-height: var(--sf-label-large--height);position:relative;display:flex;flex-direction:column;gap:var(--sf-space-1\/3);margin:0}.sf-chat-composer__files{display:flex;flex-wrap:nowrap;align-items:flex-start;gap:var(--sf-space-1\/3);overflow-x:auto;scrollbar-width:none}.sf-chat-composer__files[hidden]{display:none}.sf-chat-composer__box{--sf-chat-composer--radius: var(--sf-radius-rounded);--sf-chat-composer--inset: var(--sf-space-1\/3);position:relative;display:flex;flex-direction:column;gap:var(--sf-space-1\/3);padding:var(--sf-chat-composer--inset);border:var(--sf-px) solid var(--sf-chat-composer-border-color, var(--sf-outline));border-radius:var(--sf-chat-composer--radius);background:var(--sf-chat-composer-background-color, var(--sf-surface-card));box-shadow:var(--sf-shadow-raised);transition:border-color var(--sf-duration-fast),box-shadow var(--sf-duration-fast)}.sf-chat-composer__box--tall{--sf-chat-composer--radius: calc(var(--sf-chat-composer--control) / 2 + var(--sf-chat-composer--inset))}.sf-chat-composer__row{display:flex;align-items:center;gap:var(--sf-space-1\/4)}.sf-chat-composer__box--tall .sf-chat-composer__row{align-items:flex-end}.sf-chat-composer__box .sf-icon-button{--sf-icon-button-radius: max(var(--sf-radius--ui), calc(var(--sf-chat-composer--radius) - var(--sf-chat-composer--inset)));min-width:var(--sf-chat-composer--control);min-inline-size:var(--sf-chat-composer--control);min-height:var(--sf-chat-composer--control);min-block-size:var(--sf-chat-composer--control);justify-content:center}.sf-chat-composer__box:has(.sf-chat-composer__input.focus-visible){outline:var(--sf-focus--width) var(--sf-focus--style) var(--sf-focus--color);outline-offset:var(--sf-focus--offset)}.sf-chat-composer__box:has(.sf-chat-composer__input:focus-visible){outline:var(--sf-focus--width) var(--sf-focus--style) var(--sf-focus--color);outline-offset:var(--sf-focus--offset)}[data-chat-input=pointer] .sf-chat-composer__box:has(.sf-chat-composer__input.focus-visible){outline:none;border-color:var(--sf-chat-composer-border-color, var(--sf-outline))}[data-chat-input=pointer] .sf-chat-composer__box:has(.sf-chat-composer__input.focus-visible){outline:none;border-color:var(--sf-chat-composer-border-color, var(--sf-outline))}[data-chat-input=pointer] .sf-chat-composer__box:has(.sf-chat-composer__input:focus-visible){outline:none;border-color:var(--sf-chat-composer-border-color, var(--sf-outline))}@media(forced-colors: active){.sf-chat-composer__box:has(.sf-chat-composer__input.focus-visible){outline:none}.sf-chat-composer__box:has(.sf-chat-composer__input:focus-visible){outline:none}}.sf-chat-composer--over .sf-chat-composer__box{border-color:var(--sf-outline-error)}.sf-chat-composer__field{display:flex;flex:1;align-self:center;min-width:0;min-inline-size:0;--sf-textarea-padding-inline: var(--sf-space-1\/4);--sf-textarea-padding-block: calc((var(--sf-chat-composer--control) - var(--sf-text--height)) / 2)}.sf-chat-composer__input{flex:1}.sf-chat-composer__field.sf-textarea.sf-textarea--flush textarea.sf-chat-composer__input{--sf-textarea-textarea--font-size: max(var(--sf-b6), var(--sf-text--size))}.sf-chat-composer__input:disabled{cursor:not-allowed}.sf-chat-composer__attach[hidden],.sf-chat-composer__send[hidden],.sf-chat-composer__stop[hidden],.sf-chat-composer__count[hidden],.sf-chat-composer__notice[hidden]{display:none}.sf-chat-composer__count{align-self:center;padding-left:var(--sf-space-1\/4);padding-right:var(--sf-space-1\/4);padding-inline:var(--sf-space-1\/4);color:var(--sf-chat-composer--muted);font-size:var(--sf-chat-composer--meta-size);line-height:var(--sf-chat-composer--meta-height);white-space:nowrap}.sf-chat-composer--over .sf-chat-composer__count{color:var(--sf-error)}.sf-chat-composer__notice{margin:0;padding-left:var(--sf-space-1\/2);padding-right:var(--sf-space-1\/2);padding-inline:var(--sf-space-1\/2);color:var(--sf-error);font-size:var(--sf-chat-composer--meta-size);line-height:var(--sf-chat-composer--meta-height)}.sf-chat-composer__hint{margin:0;min-height:var(--sf-chat-composer--meta-height);min-block-size:var(--sf-chat-composer--meta-height);color:var(--sf-chat-composer--muted);font-size:var(--sf-chat-composer--meta-size);line-height:var(--sf-chat-composer--meta-height);text-align:center}.sf-chat-composer__drop{position:absolute;top:0;right:0;bottom:0;left:0;inset:0;display:none;align-items:center;justify-items:center;place-items:center;border:calc(2*var(--sf-px)) dashed var(--sf-outline-primary);border-radius:inherit;background:var(--sf-primary-container);color:var(--sf-on-primary-container);font-size:var(--sf-chat-composer--ui-size);pointer-events:none}.sf-chat-composer--dragging .sf-chat-composer__drop{display:grid}.sf-chat-composer__files>sf-file-preview{flex:none;min-width:0;min-inline-size:0;--sf-file-preview-radius: max(var(--sf-radius--ui), calc(var(--sf-chat-composer--radius) - var(--sf-chat-composer--inset)))}@media(pointer: coarse){.sf-chat-composer{--sf-chat-composer--control: var(--sf-chat-composer-height, var(--sf-ui-2--control-height))}.sf-chat-composer__hint:not(.sf-chat-composer__hint--busy){display:none}}}
|
|
Binary file
|
|
@@ -77,10 +77,13 @@
|
|
|
77
77
|
"expect": {
|
|
78
78
|
"name": "Сообщение",
|
|
79
79
|
"texts": {
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
".sf-chat-attachment--error .sf-chat-attachment__meta": "не похоже на документ"
|
|
80
|
+
"sf-file-preview[state=ready] .sf-file-preview-full": "Договор.pdf",
|
|
81
|
+
"sf-file-preview[state=error] .sf-file-preview-error": "Не загрузился: не похоже на документ"
|
|
83
82
|
}
|
|
83
|
+
},
|
|
84
|
+
"first-paint": {
|
|
85
|
+
"max-bytes": 12288,
|
|
86
|
+
"why": "three file chips print before any code (K-08): each is SIMAI Framework's sf-file-preview chip with its holder, its name (whole, fitted and said), its type · size or its upload bar or its refusal with «Повторить», and «×», so the box keeps its height when the runtime arrives"
|
|
84
87
|
}
|
|
85
88
|
},
|
|
86
89
|
{
|
|
@@ -338,8 +341,8 @@
|
|
|
338
341
|
},
|
|
339
342
|
{
|
|
340
343
|
"id": "p6-chips",
|
|
341
|
-
"title": "set-files, the 0.3 setFiles: chips with size, upload
|
|
342
|
-
"covers": "settings.files, actions.set-files, events.detach, aliases sf-chat-action
|
|
344
|
+
"title": "set-files, the 0.3 setFiles: the chips are the Framework's sf-file-preview (chip; K-08) with the size, the upload's own bar and per cent (state uploading, value) and the server's refusal (state error, error-text); while one uploads send is off and the files button is off at max-files; a chip's «×» sends sf-chat-composer-detach {id, name} and the 0.3 sf-chat-action {action: remove-attachment, id, name}; «Повторить» on a refused chip sends sf-chat-composer-retry {id, name}",
|
|
345
|
+
"covers": "settings.files, actions.set-files, events.detach, events.retry, aliases sf-chat-action",
|
|
343
346
|
"steps": [
|
|
344
347
|
{
|
|
345
348
|
"script": "(await customElements.whenDefined('sf-chat-composer'), true)",
|
|
@@ -370,16 +373,16 @@
|
|
|
370
373
|
]
|
|
371
374
|
},
|
|
372
375
|
"target": "#files",
|
|
373
|
-
"wait":
|
|
376
|
+
"wait": 1500,
|
|
374
377
|
"expect": {
|
|
375
378
|
"returns": {
|
|
376
379
|
"outcome": "applied"
|
|
377
380
|
}
|
|
378
381
|
},
|
|
379
|
-
"check": "(() => { const c = document.querySelector('#files'); const chips = c.querySelectorAll('.sf-chat-composer__files .sf-
|
|
382
|
+
"check": "(() => { const c = document.querySelector('#files'); const chips = [...c.querySelectorAll('.sf-chat-composer__files > sf-file-preview')]; const ready = c.querySelector('sf-file-preview[state=ready]'); const up = c.querySelector('sf-file-preview[state=uploading]'); const failed = c.querySelector('sf-file-preview[state=error]'); return chips.length === 3 && chips.every((chip) => chip.getAttribute('appearance') === 'chip' && chip.classList.contains('sf-chat-attachment')) && ready.classList.contains('sf-chat-attachment--ready') && ready.getAttribute('file-name') === 'Договор.pdf' && ready.getAttribute('file-size') === '48213' && /КБ/u.test(ready.querySelector('.sf-file-preview-meta')?.textContent ?? '') && up.getAttribute('value') === '40' && up.querySelector('[aria-busy=true]') !== null && up.querySelector('[role=progressbar]')?.getAttribute('aria-valuenow') === '40' && failed.getAttribute('error-text') === 'не похоже на документ' && /не похоже на документ/u.test(failed.querySelector('.sf-file-preview-error')?.textContent ?? '') && !c.querySelector('.sf-chat-attachment__meta, .sf-chat-attachment__progress') && c.querySelector('.sf-chat-composer__send').disabled && c.querySelector('.sf-chat-composer__attach').disabled && c.querySelector('.sf-chat-composer__box--tall') !== null; })()"
|
|
380
383
|
},
|
|
381
384
|
{
|
|
382
|
-
"user": "click:#files
|
|
385
|
+
"user": "click:#files sf-file-preview[state=ready] [data-action=remove]",
|
|
383
386
|
"expect": {
|
|
384
387
|
"events": [
|
|
385
388
|
{
|
|
@@ -409,6 +412,22 @@
|
|
|
409
412
|
}
|
|
410
413
|
]
|
|
411
414
|
}
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
"script": "([...document.querySelectorAll('#files sf-file-preview[state=error] button')].find((button) => /^Повторить/u.test(button.getAttribute('aria-label') || '') && button.getClientRects().length).click(), true)",
|
|
418
|
+
"wait": 300,
|
|
419
|
+
"expect": {
|
|
420
|
+
"events": [
|
|
421
|
+
{
|
|
422
|
+
"name": "sf-chat-composer-retry",
|
|
423
|
+
"count": 1,
|
|
424
|
+
"detail": {
|
|
425
|
+
"id": "f3",
|
|
426
|
+
"name": "Скан.pdf"
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
]
|
|
430
|
+
}
|
|
412
431
|
}
|
|
413
432
|
]
|
|
414
433
|
},
|
|
Binary file
|