@simai-studio/chat 0.0.0-stage → 1.0.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/LICENSE.md +182 -0
- package/README.md +65 -2
- package/dist/package-receipt.json +1551 -0
- package/dist/set.json +105 -0
- package/dist/smart/chat-composer/aliases.json +56 -0
- package/dist/smart/chat-composer/aliases.json.gz +0 -0
- package/dist/smart/chat-composer/component.json +658 -0
- package/dist/smart/chat-composer/component.json.gz +0 -0
- package/dist/smart/chat-composer/css/chat-composer.css +318 -0
- package/dist/smart/chat-composer/css/chat-composer.css.gz +0 -0
- package/dist/smart/chat-composer/css/chat-composer.min.css +2 -0
- package/dist/smart/chat-composer/css/chat-composer.min.css.gz +0 -0
- package/dist/smart/chat-composer/examples.json +531 -0
- package/dist/smart/chat-composer/examples.json.gz +0 -0
- package/dist/smart/chat-composer/js/chat-composer.js +1023 -0
- package/dist/smart/chat-composer/js/chat-composer.js.gz +0 -0
- package/dist/smart/chat-composer/js/chat-composer.min.js +75 -0
- package/dist/smart/chat-composer/js/chat-composer.min.js.gz +0 -0
- package/dist/smart/chat-composer/lang/en.json +31 -0
- package/dist/smart/chat-composer/lang/en.json.gz +0 -0
- package/dist/smart/chat-composer/lang/ru.json +31 -0
- package/dist/smart/chat-composer/lang/ru.json.gz +0 -0
- package/dist/smart/chat-composer/probe.json +400 -0
- package/dist/smart/chat-composer/probe.json.gz +0 -0
- package/dist/smart/chat-composer/smart.manifest.json +625 -0
- package/dist/smart/chat-composer/smart.manifest.json.gz +0 -0
- package/dist/smart/chat-composer/static/default/busy.html +20 -0
- package/dist/smart/chat-composer/static/default/busy.html.gz +0 -0
- package/dist/smart/chat-composer/static/default/disabled.html +20 -0
- package/dist/smart/chat-composer/static/default/disabled.html.gz +0 -0
- package/dist/smart/chat-composer/static/default/files.html +44 -0
- package/dist/smart/chat-composer/static/default/files.html.gz +0 -0
- package/dist/smart/chat-composer/static/default/near-limit.html +20 -0
- package/dist/smart/chat-composer/static/default/near-limit.html.gz +0 -0
- package/dist/smart/chat-composer/static/default/reference.html +20 -0
- package/dist/smart/chat-composer/static/default/reference.html.gz +0 -0
- package/dist/smart/chat-composer/static/sheets.json +88 -0
- package/dist/smart/chat-composer/static/sheets.json.gz +0 -0
- package/dist/smart/chat-composer/studio.fixture.json +18 -0
- package/dist/smart/chat-composer/studio.fixture.json.gz +0 -0
- package/dist/smart/chat-composer/studio.scenario.json +37 -0
- package/dist/smart/chat-composer/studio.scenario.json.gz +0 -0
- package/dist/smart/chat-composer/template/default.css +273 -0
- package/dist/smart/chat-composer/template/default.css.gz +0 -0
- package/dist/smart/chat-composer/template/default.js +109 -0
- package/dist/smart/chat-composer/template/default.js.gz +0 -0
- package/dist/smart/chat-composer/template/parts.js +82 -0
- package/dist/smart/chat-composer/template/parts.js.gz +0 -0
- package/dist/smart/chat-interlocutor/aliases.json +20 -0
- package/dist/smart/chat-interlocutor/aliases.json.gz +0 -0
- package/dist/smart/chat-interlocutor/component.json +435 -0
- package/dist/smart/chat-interlocutor/component.json.gz +0 -0
- package/dist/smart/chat-interlocutor/css/chat-interlocutor.css +107 -0
- package/dist/smart/chat-interlocutor/css/chat-interlocutor.css.gz +0 -0
- package/dist/smart/chat-interlocutor/css/chat-interlocutor.min.css +2 -0
- package/dist/smart/chat-interlocutor/css/chat-interlocutor.min.css.gz +0 -0
- package/dist/smart/chat-interlocutor/examples.json +379 -0
- package/dist/smart/chat-interlocutor/examples.json.gz +0 -0
- package/dist/smart/chat-interlocutor/js/chat-interlocutor.js +531 -0
- package/dist/smart/chat-interlocutor/js/chat-interlocutor.js.gz +0 -0
- package/dist/smart/chat-interlocutor/js/chat-interlocutor.min.js +22 -0
- package/dist/smart/chat-interlocutor/js/chat-interlocutor.min.js.gz +0 -0
- package/dist/smart/chat-interlocutor/lang/en.json +13 -0
- package/dist/smart/chat-interlocutor/lang/en.json.gz +0 -0
- package/dist/smart/chat-interlocutor/lang/ru.json +13 -0
- package/dist/smart/chat-interlocutor/lang/ru.json.gz +0 -0
- package/dist/smart/chat-interlocutor/probe.json +204 -0
- package/dist/smart/chat-interlocutor/probe.json.gz +0 -0
- package/dist/smart/chat-interlocutor/smart.manifest.json +406 -0
- package/dist/smart/chat-interlocutor/smart.manifest.json.gz +0 -0
- package/dist/smart/chat-interlocutor/static/default/former.html +10 -0
- package/dist/smart/chat-interlocutor/static/default/former.html.gz +0 -0
- package/dist/smart/chat-interlocutor/static/default/grouped.html +10 -0
- package/dist/smart/chat-interlocutor/static/default/grouped.html.gz +0 -0
- package/dist/smart/chat-interlocutor/static/default/reference.html +10 -0
- package/dist/smart/chat-interlocutor/static/default/reference.html.gz +0 -0
- package/dist/smart/chat-interlocutor/static/default/single.html +10 -0
- package/dist/smart/chat-interlocutor/static/default/single.html.gz +0 -0
- package/dist/smart/chat-interlocutor/static/sheets.json +105 -0
- package/dist/smart/chat-interlocutor/static/sheets.json.gz +0 -0
- package/dist/smart/chat-interlocutor/studio.fixture.json +25 -0
- package/dist/smart/chat-interlocutor/studio.fixture.json.gz +0 -0
- package/dist/smart/chat-interlocutor/studio.scenario.json +41 -0
- package/dist/smart/chat-interlocutor/studio.scenario.json.gz +0 -0
- package/dist/smart/chat-interlocutor/template/default.css +58 -0
- package/dist/smart/chat-interlocutor/template/default.css.gz +0 -0
- package/dist/smart/chat-interlocutor/template/default.js +43 -0
- package/dist/smart/chat-interlocutor/template/default.js.gz +0 -0
- package/dist/smart/chat-message/aliases.json +114 -0
- package/dist/smart/chat-message/aliases.json.gz +0 -0
- package/dist/smart/chat-message/component.json +822 -0
- package/dist/smart/chat-message/component.json.gz +0 -0
- package/dist/smart/chat-message/css/chat-message.css +3291 -0
- package/dist/smart/chat-message/css/chat-message.css.gz +0 -0
- package/dist/smart/chat-message/css/chat-message.min.css +2 -0
- package/dist/smart/chat-message/css/chat-message.min.css.gz +0 -0
- package/dist/smart/chat-message/examples.json +1604 -0
- package/dist/smart/chat-message/examples.json.gz +0 -0
- package/dist/smart/chat-message/js/chat-message.js +5498 -0
- package/dist/smart/chat-message/js/chat-message.js.gz +0 -0
- package/dist/smart/chat-message/js/chat-message.min.js +25 -0
- package/dist/smart/chat-message/js/chat-message.min.js.gz +0 -0
- package/dist/smart/chat-message/lang/en.json +181 -0
- package/dist/smart/chat-message/lang/en.json.gz +0 -0
- package/dist/smart/chat-message/lang/ru.json +185 -0
- package/dist/smart/chat-message/lang/ru.json.gz +0 -0
- package/dist/smart/chat-message/probe.json +1029 -0
- package/dist/smart/chat-message/probe.json.gz +0 -0
- package/dist/smart/chat-message/smart.manifest.json +814 -0
- package/dist/smart/chat-message/smart.manifest.json.gz +0 -0
- package/dist/smart/chat-message/static/default/brief-card.html +2 -0
- package/dist/smart/chat-message/static/default/brief-card.html.gz +0 -0
- package/dist/smart/chat-message/static/default/brief-questions.html +2 -0
- package/dist/smart/chat-message/static/default/brief-questions.html.gz +0 -0
- package/dist/smart/chat-message/static/default/deliverables.html +2 -0
- package/dist/smart/chat-message/static/default/deliverables.html.gz +0 -0
- package/dist/smart/chat-message/static/default/document.html +13 -0
- package/dist/smart/chat-message/static/default/document.html.gz +0 -0
- package/dist/smart/chat-message/static/default/failed.html +2 -0
- package/dist/smart/chat-message/static/default/failed.html.gz +0 -0
- package/dist/smart/chat-message/static/default/feedback-reason.html +2 -0
- package/dist/smart/chat-message/static/default/feedback-reason.html.gz +0 -0
- package/dist/smart/chat-message/static/default/limit.html +2 -0
- package/dist/smart/chat-message/static/default/limit.html.gz +0 -0
- package/dist/smart/chat-message/static/default/proposal.html +42 -0
- package/dist/smart/chat-message/static/default/proposal.html.gz +0 -0
- package/dist/smart/chat-message/static/default/question.html +18 -0
- package/dist/smart/chat-message/static/default/question.html.gz +0 -0
- package/dist/smart/chat-message/static/default/reference.html +2 -0
- package/dist/smart/chat-message/static/default/reference.html.gz +0 -0
- package/dist/smart/chat-message/static/default/steps.html +2 -0
- package/dist/smart/chat-message/static/default/steps.html.gz +0 -0
- package/dist/smart/chat-message/static/default/stopped.html +2 -0
- package/dist/smart/chat-message/static/default/stopped.html.gz +0 -0
- package/dist/smart/chat-message/static/default/waiting.html +2 -0
- package/dist/smart/chat-message/static/default/waiting.html.gz +0 -0
- package/dist/smart/chat-message/static/person/person-own.html +2 -0
- package/dist/smart/chat-message/static/person/person-own.html.gz +0 -0
- package/dist/smart/chat-message/static/person/person-reply.html +6 -0
- package/dist/smart/chat-message/static/person/person-reply.html.gz +0 -0
- package/dist/smart/chat-message/static/person/person.html +14 -0
- package/dist/smart/chat-message/static/person/person.html.gz +0 -0
- package/dist/smart/chat-message/static/sheets.json +398 -0
- package/dist/smart/chat-message/static/sheets.json.gz +0 -0
- package/dist/smart/chat-message/studio.fixture.json +27 -0
- package/dist/smart/chat-message/studio.fixture.json.gz +0 -0
- package/dist/smart/chat-message/studio.scenario.json +22 -0
- package/dist/smart/chat-message/studio.scenario.json.gz +0 -0
- package/dist/smart/chat-message/template/default.css +1895 -0
- package/dist/smart/chat-message/template/default.css.gz +0 -0
- package/dist/smart/chat-message/template/default.js +27 -0
- package/dist/smart/chat-message/template/default.js.gz +0 -0
- package/dist/smart/chat-message/template/person.js +11 -0
- package/dist/smart/chat-message/template/person.js.gz +0 -0
- package/dist/smart/chat-threads/aliases.json +174 -0
- package/dist/smart/chat-threads/aliases.json.gz +0 -0
- package/dist/smart/chat-threads/component.json +1232 -0
- package/dist/smart/chat-threads/component.json.gz +0 -0
- package/dist/smart/chat-threads/css/chat-threads.css +150 -0
- package/dist/smart/chat-threads/css/chat-threads.css.gz +0 -0
- package/dist/smart/chat-threads/css/chat-threads.min.css +2 -0
- package/dist/smart/chat-threads/css/chat-threads.min.css.gz +0 -0
- package/dist/smart/chat-threads/examples.json +689 -0
- package/dist/smart/chat-threads/examples.json.gz +0 -0
- package/dist/smart/chat-threads/js/chat-threads.js +859 -0
- package/dist/smart/chat-threads/js/chat-threads.js.gz +0 -0
- package/dist/smart/chat-threads/js/chat-threads.min.js +39 -0
- package/dist/smart/chat-threads/js/chat-threads.min.js.gz +0 -0
- package/dist/smart/chat-threads/lang/en.json +18 -0
- package/dist/smart/chat-threads/lang/en.json.gz +0 -0
- package/dist/smart/chat-threads/lang/ru.json +18 -0
- package/dist/smart/chat-threads/lang/ru.json.gz +0 -0
- package/dist/smart/chat-threads/probe.json +406 -0
- package/dist/smart/chat-threads/probe.json.gz +0 -0
- package/dist/smart/chat-threads/smart.manifest.json +1152 -0
- package/dist/smart/chat-threads/smart.manifest.json.gz +0 -0
- package/dist/smart/chat-threads/static/default/activity.html +139 -0
- package/dist/smart/chat-threads/static/default/activity.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/activity.skeleton.html +139 -0
- package/dist/smart/chat-threads/static/default/activity.skeleton.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/archive.html +55 -0
- package/dist/smart/chat-threads/static/default/archive.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/archive.skeleton.html +55 -0
- package/dist/smart/chat-threads/static/default/archive.skeleton.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/avatars.html +104 -0
- package/dist/smart/chat-threads/static/default/avatars.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/avatars.skeleton.html +104 -0
- package/dist/smart/chat-threads/static/default/avatars.skeleton.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/empty.html +48 -0
- package/dist/smart/chat-threads/static/default/empty.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/loading.html +48 -0
- package/dist/smart/chat-threads/static/default/loading.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/people.html +95 -0
- package/dist/smart/chat-threads/static/default/people.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/people.skeleton.html +95 -0
- package/dist/smart/chat-threads/static/default/people.skeleton.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/reference.html +114 -0
- package/dist/smart/chat-threads/static/default/reference.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/reference.skeleton.html +114 -0
- package/dist/smart/chat-threads/static/default/reference.skeleton.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/ungrouped.html +94 -0
- package/dist/smart/chat-threads/static/default/ungrouped.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/ungrouped.skeleton.html +94 -0
- package/dist/smart/chat-threads/static/default/ungrouped.skeleton.html.gz +0 -0
- package/dist/smart/chat-threads/static/sheets.json +422 -0
- package/dist/smart/chat-threads/static/sheets.json.gz +0 -0
- package/dist/smart/chat-threads/studio.fixture.json +23 -0
- package/dist/smart/chat-threads/studio.fixture.json.gz +0 -0
- package/dist/smart/chat-threads/template/default.css +113 -0
- package/dist/smart/chat-threads/template/default.css.gz +0 -0
- package/dist/smart/chat-threads/template/default.js +62 -0
- package/dist/smart/chat-threads/template/default.js.gz +0 -0
- package/dist/smart/chat-window/aliases.json +395 -0
- package/dist/smart/chat-window/aliases.json.gz +0 -0
- package/dist/smart/chat-window/component.json +2809 -0
- package/dist/smart/chat-window/component.json.gz +0 -0
- package/dist/smart/chat-window/css/chat-window.css +1717 -0
- package/dist/smart/chat-window/css/chat-window.css.gz +0 -0
- package/dist/smart/chat-window/css/chat-window.min.css +2 -0
- package/dist/smart/chat-window/css/chat-window.min.css.gz +0 -0
- package/dist/smart/chat-window/examples.json +2798 -0
- package/dist/smart/chat-window/examples.json.gz +0 -0
- package/dist/smart/chat-window/js/chat-window.js +12382 -0
- package/dist/smart/chat-window/js/chat-window.js.gz +0 -0
- package/dist/smart/chat-window/js/chat-window.min.js +1 -0
- package/dist/smart/chat-window/js/chat-window.min.js.gz +0 -0
- package/dist/smart/chat-window/lang/en.json +212 -0
- package/dist/smart/chat-window/lang/en.json.gz +0 -0
- package/dist/smart/chat-window/lang/ru.json +218 -0
- package/dist/smart/chat-window/lang/ru.json.gz +0 -0
- package/dist/smart/chat-window/probe.json +2023 -0
- package/dist/smart/chat-window/probe.json.gz +0 -0
- package/dist/smart/chat-window/smart.manifest.json +2835 -0
- package/dist/smart/chat-window/smart.manifest.json.gz +0 -0
- package/dist/smart/chat-window/static/default/archived.html +97 -0
- package/dist/smart/chat-window/static/default/archived.html.gz +0 -0
- package/dist/smart/chat-window/static/default/embedded.html +119 -0
- package/dist/smart/chat-window/static/default/embedded.html.gz +0 -0
- package/dist/smart/chat-window/static/default/greeting.html +119 -0
- package/dist/smart/chat-window/static/default/greeting.html.gz +0 -0
- package/dist/smart/chat-window/static/default/people.html +110 -0
- package/dist/smart/chat-window/static/default/people.html.gz +0 -0
- package/dist/smart/chat-window/static/default/proposal.html +157 -0
- package/dist/smart/chat-window/static/default/proposal.html.gz +0 -0
- package/dist/smart/chat-window/static/default/reference.html +117 -0
- package/dist/smart/chat-window/static/default/reference.html.gz +0 -0
- package/dist/smart/chat-window/static/default/waiting.html +117 -0
- package/dist/smart/chat-window/static/default/waiting.html.gz +0 -0
- package/dist/smart/chat-window/static/sheets.json +476 -0
- package/dist/smart/chat-window/static/sheets.json.gz +0 -0
- package/dist/smart/chat-window/studio.fixture.json +13 -0
- package/dist/smart/chat-window/studio.fixture.json.gz +0 -0
- package/dist/smart/chat-window/studio.scenario.json +95 -0
- package/dist/smart/chat-window/studio.scenario.json.gz +0 -0
- package/dist/smart/chat-window/template/default.css +1168 -0
- package/dist/smart/chat-window/template/default.css.gz +0 -0
- package/dist/smart/chat-window/template/default.js +12 -0
- package/dist/smart/chat-window/template/default.js.gz +0 -0
- package/dist/smart/rule.js +185 -0
- package/dist/smart/rule.js.gz +0 -0
- package/package.json +29 -4
|
@@ -0,0 +1,625 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema_version": 2,
|
|
3
|
+
"id": "smart.chat-composer",
|
|
4
|
+
"version": "1.2.3",
|
|
5
|
+
"title": "Chat composer",
|
|
6
|
+
"summary": "Where a question is written and files are added: Enter sends, Shift+Enter breaks the line, an IME composition is never cut short, the send button becomes «stop waiting» while an answer is awaited, and files are only reported for the host to upload; their chips come back as files.",
|
|
7
|
+
"kind": "smart",
|
|
8
|
+
"reuse_mode": "whole",
|
|
9
|
+
"lifecycle": "experimental",
|
|
10
|
+
"tags": [
|
|
11
|
+
"chat",
|
|
12
|
+
"composer",
|
|
13
|
+
"input",
|
|
14
|
+
"attachments"
|
|
15
|
+
],
|
|
16
|
+
"capabilities": [
|
|
17
|
+
"input",
|
|
18
|
+
"keyboard",
|
|
19
|
+
"attachments",
|
|
20
|
+
"drag-and-drop",
|
|
21
|
+
"responsive"
|
|
22
|
+
],
|
|
23
|
+
"custom_element": "sf-chat-composer",
|
|
24
|
+
"templates": [
|
|
25
|
+
"default"
|
|
26
|
+
],
|
|
27
|
+
"exported_parts": [],
|
|
28
|
+
"composition": {
|
|
29
|
+
"uses": [
|
|
30
|
+
"component.icon-buttons",
|
|
31
|
+
"component.textarea",
|
|
32
|
+
"smart.icon"
|
|
33
|
+
],
|
|
34
|
+
"public_parts": []
|
|
35
|
+
},
|
|
36
|
+
"inputs": {
|
|
37
|
+
"type": "object",
|
|
38
|
+
"properties": {
|
|
39
|
+
"template": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"default": "default",
|
|
42
|
+
"description": "Template variant name for SfBaseElement external templates.",
|
|
43
|
+
"const": "default"
|
|
44
|
+
},
|
|
45
|
+
"root-class": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"default": "",
|
|
48
|
+
"description": "Classes added to the root element the component draws."
|
|
49
|
+
},
|
|
50
|
+
"root-style": {
|
|
51
|
+
"type": "string",
|
|
52
|
+
"default": "",
|
|
53
|
+
"description": "Inline style declarations set on the root element the component draws, custom properties included."
|
|
54
|
+
},
|
|
55
|
+
"placeholder": {
|
|
56
|
+
"type": "string",
|
|
57
|
+
"description": "Empty uses the composer's own word «Спросите что-нибудь»."
|
|
58
|
+
},
|
|
59
|
+
"maxlength": {
|
|
60
|
+
"type": "integer",
|
|
61
|
+
"default": 4000,
|
|
62
|
+
"description": "bootstrap.limits.message_chars.",
|
|
63
|
+
"minimum": 1
|
|
64
|
+
},
|
|
65
|
+
"max-files": {
|
|
66
|
+
"type": "integer",
|
|
67
|
+
"default": 5,
|
|
68
|
+
"minimum": 1
|
|
69
|
+
},
|
|
70
|
+
"max-bytes": {
|
|
71
|
+
"type": "integer",
|
|
72
|
+
"default": 0,
|
|
73
|
+
"description": "0 checks no size.",
|
|
74
|
+
"minimum": 0
|
|
75
|
+
},
|
|
76
|
+
"accept": {
|
|
77
|
+
"type": "string",
|
|
78
|
+
"default": "",
|
|
79
|
+
"description": "Comma-separated extensions, e.g. .pdf,.docx."
|
|
80
|
+
},
|
|
81
|
+
"attachments": {
|
|
82
|
+
"type": "boolean",
|
|
83
|
+
"default": false,
|
|
84
|
+
"description": "Files may be added."
|
|
85
|
+
},
|
|
86
|
+
"busy": {
|
|
87
|
+
"type": "boolean",
|
|
88
|
+
"default": false,
|
|
89
|
+
"description": "An answer is awaited: send becomes stop."
|
|
90
|
+
},
|
|
91
|
+
"queue": {
|
|
92
|
+
"type": "boolean",
|
|
93
|
+
"default": false,
|
|
94
|
+
"description": "While busy, a message of text is still submitted: the host keeps it until the answer is over. A message with files waits as before."
|
|
95
|
+
},
|
|
96
|
+
"disabled": {
|
|
97
|
+
"type": "boolean",
|
|
98
|
+
"default": false,
|
|
99
|
+
"description": "Writing is off, e.g. no consent."
|
|
100
|
+
},
|
|
101
|
+
"no-stop": {
|
|
102
|
+
"type": "boolean",
|
|
103
|
+
"default": false,
|
|
104
|
+
"description": "While busy, no stop button: a host whose stop belongs elsewhere."
|
|
105
|
+
},
|
|
106
|
+
"value": {
|
|
107
|
+
"type": "string",
|
|
108
|
+
"default": "",
|
|
109
|
+
"description": "the text in the field (the draft); setting it is as if typed: the field grows to it. The attribute gives the first text; the property reads the field."
|
|
110
|
+
},
|
|
111
|
+
"files": {
|
|
112
|
+
"type": "array",
|
|
113
|
+
"default": [],
|
|
114
|
+
"items": {
|
|
115
|
+
"type": "object",
|
|
116
|
+
"required": [
|
|
117
|
+
"name"
|
|
118
|
+
],
|
|
119
|
+
"properties": {
|
|
120
|
+
"id": {
|
|
121
|
+
"type": "string",
|
|
122
|
+
"description": "The stored file's id; a chip with an id and no error is sent with the message."
|
|
123
|
+
},
|
|
124
|
+
"localId": {
|
|
125
|
+
"type": "string",
|
|
126
|
+
"description": "The host's key while it uploads."
|
|
127
|
+
},
|
|
128
|
+
"name": {
|
|
129
|
+
"type": "string",
|
|
130
|
+
"description": "The file's name, drawn as text."
|
|
131
|
+
},
|
|
132
|
+
"bytes": {
|
|
133
|
+
"type": "number"
|
|
134
|
+
},
|
|
135
|
+
"progress": {
|
|
136
|
+
"type": [
|
|
137
|
+
"number",
|
|
138
|
+
"null"
|
|
139
|
+
],
|
|
140
|
+
"description": "0..1 while uploading; null or 1 when done."
|
|
141
|
+
},
|
|
142
|
+
"error": {
|
|
143
|
+
"type": [
|
|
144
|
+
"string",
|
|
145
|
+
"null"
|
|
146
|
+
],
|
|
147
|
+
"description": "The server's refusal, the chip's second line."
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
"description": "The chips as the host knows them, a property, the action set-files or the JSON island."
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
"additionalProperties": false
|
|
155
|
+
},
|
|
156
|
+
"item_contract": {},
|
|
157
|
+
"contracts": {
|
|
158
|
+
"file": {
|
|
159
|
+
"type": "object",
|
|
160
|
+
"required": [
|
|
161
|
+
"name"
|
|
162
|
+
],
|
|
163
|
+
"properties": {
|
|
164
|
+
"id": {
|
|
165
|
+
"type": "string",
|
|
166
|
+
"description": "The stored file's id; a chip with an id and no error is sent with the message."
|
|
167
|
+
},
|
|
168
|
+
"localId": {
|
|
169
|
+
"type": "string",
|
|
170
|
+
"description": "The host's key while it uploads."
|
|
171
|
+
},
|
|
172
|
+
"name": {
|
|
173
|
+
"type": "string",
|
|
174
|
+
"description": "The file's name, drawn as text."
|
|
175
|
+
},
|
|
176
|
+
"bytes": {
|
|
177
|
+
"type": "number"
|
|
178
|
+
},
|
|
179
|
+
"progress": {
|
|
180
|
+
"type": [
|
|
181
|
+
"number",
|
|
182
|
+
"null"
|
|
183
|
+
],
|
|
184
|
+
"description": "0..1 while uploading; null or 1 when done."
|
|
185
|
+
},
|
|
186
|
+
"error": {
|
|
187
|
+
"type": [
|
|
188
|
+
"string",
|
|
189
|
+
"null"
|
|
190
|
+
],
|
|
191
|
+
"description": "The server's refusal, the chip's second line."
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
"send": {
|
|
196
|
+
"const": "Enter or the send button dispatches sf-chat-composer-submit {text, attachment-ids} (cancelable) when there is text or a ready chip, nothing uploading, not busy (or busy with queue and no chips), not disabled and within maxlength. The host sends and calls clear() once it took the message."
|
|
197
|
+
},
|
|
198
|
+
"files": {
|
|
199
|
+
"const": "Files offered by the button, a drop or a paste are checked by accept, max-bytes and max-files; sf-chat-composer-attach {files, rejected} reports them and the notice names each refusal. The host uploads and sets files; a chip's remove dispatches sf-chat-composer-detach {id, name}."
|
|
200
|
+
},
|
|
201
|
+
"css_variables": {
|
|
202
|
+
"type": "object",
|
|
203
|
+
"properties": {
|
|
204
|
+
"--sf-chat-composer-background-color": {
|
|
205
|
+
"type": "string"
|
|
206
|
+
},
|
|
207
|
+
"--sf-chat-composer-border-color": {
|
|
208
|
+
"type": "string"
|
|
209
|
+
},
|
|
210
|
+
"--sf-chat-composer-hint-color": {
|
|
211
|
+
"type": "string"
|
|
212
|
+
},
|
|
213
|
+
"--sf-chat-composer-height": {
|
|
214
|
+
"type": "string"
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
"methods": {
|
|
220
|
+
"setFiles": {
|
|
221
|
+
"summary": "The chips, as the files property (the action set-files).",
|
|
222
|
+
"arguments": [
|
|
223
|
+
{
|
|
224
|
+
"name": "args",
|
|
225
|
+
"type": "object",
|
|
226
|
+
"required": true,
|
|
227
|
+
"schema": {
|
|
228
|
+
"type": "object",
|
|
229
|
+
"properties": {
|
|
230
|
+
"files": {
|
|
231
|
+
"type": "array",
|
|
232
|
+
"items": {
|
|
233
|
+
"type": "object",
|
|
234
|
+
"required": [
|
|
235
|
+
"name"
|
|
236
|
+
],
|
|
237
|
+
"properties": {
|
|
238
|
+
"id": {
|
|
239
|
+
"type": "string",
|
|
240
|
+
"description": "The stored file's id; a chip with an id and no error is sent with the message."
|
|
241
|
+
},
|
|
242
|
+
"localId": {
|
|
243
|
+
"type": "string",
|
|
244
|
+
"description": "The host's key while it uploads."
|
|
245
|
+
},
|
|
246
|
+
"name": {
|
|
247
|
+
"type": "string",
|
|
248
|
+
"description": "The file's name, drawn as text."
|
|
249
|
+
},
|
|
250
|
+
"bytes": {
|
|
251
|
+
"type": "number"
|
|
252
|
+
},
|
|
253
|
+
"progress": {
|
|
254
|
+
"type": [
|
|
255
|
+
"number",
|
|
256
|
+
"null"
|
|
257
|
+
],
|
|
258
|
+
"description": "0..1 while uploading; null or 1 when done."
|
|
259
|
+
},
|
|
260
|
+
"error": {
|
|
261
|
+
"type": [
|
|
262
|
+
"string",
|
|
263
|
+
"null"
|
|
264
|
+
],
|
|
265
|
+
"description": "The server's refusal, the chip's second line."
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
},
|
|
271
|
+
"required": [
|
|
272
|
+
"files"
|
|
273
|
+
]
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
],
|
|
277
|
+
"returns": {
|
|
278
|
+
"type": "object",
|
|
279
|
+
"description": "{outcome: applied}"
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
"clear": {
|
|
283
|
+
"summary": "Empty the field and the notice (the action clear).",
|
|
284
|
+
"arguments": [],
|
|
285
|
+
"returns": {
|
|
286
|
+
"type": "object",
|
|
287
|
+
"description": "{outcome: applied}"
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
"focus": {
|
|
291
|
+
"summary": "Focus the field (the base's focus, delegated).",
|
|
292
|
+
"arguments": [
|
|
293
|
+
{
|
|
294
|
+
"name": "options",
|
|
295
|
+
"required": false,
|
|
296
|
+
"schema": {
|
|
297
|
+
"type": "object"
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
],
|
|
301
|
+
"returns": {
|
|
302
|
+
"type": "null"
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
},
|
|
306
|
+
"events": {
|
|
307
|
+
"sf-chat-composer-submit": {
|
|
308
|
+
"summary": "Send: the trimmed text and the ids of the ready files. While busy only with queue, and only a message of text. Cancelling it keeps the notice. The 0.3 name sf-chat-send {text, attachmentIds} follows it until 2026-12-01.",
|
|
309
|
+
"payload": {
|
|
310
|
+
"type": "object",
|
|
311
|
+
"required": [
|
|
312
|
+
"text",
|
|
313
|
+
"attachmentIds"
|
|
314
|
+
],
|
|
315
|
+
"properties": {
|
|
316
|
+
"text": {
|
|
317
|
+
"type": "string"
|
|
318
|
+
},
|
|
319
|
+
"attachmentIds": {
|
|
320
|
+
"type": "array"
|
|
321
|
+
}
|
|
322
|
+
},
|
|
323
|
+
"additionalProperties": true
|
|
324
|
+
},
|
|
325
|
+
"canonical": true
|
|
326
|
+
},
|
|
327
|
+
"sf-chat-composer-stop": {
|
|
328
|
+
"summary": "«Остановить ожидание» was pressed. The 0.3 name sf-chat-stop follows it until 2026-12-01.",
|
|
329
|
+
"payload": {
|
|
330
|
+
"type": "object",
|
|
331
|
+
"required": [],
|
|
332
|
+
"properties": {},
|
|
333
|
+
"additionalProperties": true
|
|
334
|
+
},
|
|
335
|
+
"canonical": true
|
|
336
|
+
},
|
|
337
|
+
"sf-chat-composer-attach": {
|
|
338
|
+
"summary": "Files were offered by the button, a drop or a paste; rejected by type, size or count, each with a reason. The 0.3 name sf-chat-files follows it until 2026-12-01.",
|
|
339
|
+
"payload": {
|
|
340
|
+
"type": "object",
|
|
341
|
+
"required": [
|
|
342
|
+
"files",
|
|
343
|
+
"rejected"
|
|
344
|
+
],
|
|
345
|
+
"properties": {
|
|
346
|
+
"files": {
|
|
347
|
+
"type": "array"
|
|
348
|
+
},
|
|
349
|
+
"rejected": {
|
|
350
|
+
"type": "array",
|
|
351
|
+
"items": {
|
|
352
|
+
"type": "object",
|
|
353
|
+
"required": [
|
|
354
|
+
"file",
|
|
355
|
+
"reason"
|
|
356
|
+
],
|
|
357
|
+
"properties": {
|
|
358
|
+
"file": {
|
|
359
|
+
"type": "object"
|
|
360
|
+
},
|
|
361
|
+
"reason": {
|
|
362
|
+
"type": "string"
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
},
|
|
368
|
+
"additionalProperties": true
|
|
369
|
+
},
|
|
370
|
+
"canonical": true
|
|
371
|
+
},
|
|
372
|
+
"sf-chat-composer-detach": {
|
|
373
|
+
"summary": "A chip's remove was pressed. The 0.3 sf-chat-action {action: remove-attachment, id, name} follows it until 2026-12-01.",
|
|
374
|
+
"payload": {
|
|
375
|
+
"type": "object",
|
|
376
|
+
"required": [
|
|
377
|
+
"id"
|
|
378
|
+
],
|
|
379
|
+
"properties": {
|
|
380
|
+
"id": {},
|
|
381
|
+
"name": {
|
|
382
|
+
"type": "string"
|
|
383
|
+
}
|
|
384
|
+
},
|
|
385
|
+
"additionalProperties": true
|
|
386
|
+
},
|
|
387
|
+
"canonical": true
|
|
388
|
+
},
|
|
389
|
+
"sf-chat-send": {
|
|
390
|
+
"summary": "Dated alias of sf-chat-composer-submit until 2026-12-01 (split).",
|
|
391
|
+
"payload": {
|
|
392
|
+
"type": "object"
|
|
393
|
+
},
|
|
394
|
+
"alias_of": "sf-chat-composer-submit"
|
|
395
|
+
},
|
|
396
|
+
"sf-chat-stop": {
|
|
397
|
+
"summary": "Dated alias of sf-chat-composer-stop until 2026-12-01 (same-detail).",
|
|
398
|
+
"payload": {
|
|
399
|
+
"type": "object"
|
|
400
|
+
},
|
|
401
|
+
"alias_of": "sf-chat-composer-stop"
|
|
402
|
+
},
|
|
403
|
+
"sf-chat-files": {
|
|
404
|
+
"summary": "Dated alias of sf-chat-composer-attach until 2026-12-01 (same-detail).",
|
|
405
|
+
"payload": {
|
|
406
|
+
"type": "object"
|
|
407
|
+
},
|
|
408
|
+
"alias_of": "sf-chat-composer-attach"
|
|
409
|
+
},
|
|
410
|
+
"sf-chat-action": {
|
|
411
|
+
"summary": "Dated alias of sf-chat-composer-detach until 2026-12-01 (split).",
|
|
412
|
+
"payload": {
|
|
413
|
+
"type": "object"
|
|
414
|
+
},
|
|
415
|
+
"alias_of": "sf-chat-composer-detach"
|
|
416
|
+
}
|
|
417
|
+
},
|
|
418
|
+
"state": {
|
|
419
|
+
"machines": {
|
|
420
|
+
"send": [
|
|
421
|
+
"idle",
|
|
422
|
+
"busy"
|
|
423
|
+
],
|
|
424
|
+
"length": [
|
|
425
|
+
"under",
|
|
426
|
+
"near",
|
|
427
|
+
"over"
|
|
428
|
+
],
|
|
429
|
+
"drop": [
|
|
430
|
+
"idle",
|
|
431
|
+
"dragging"
|
|
432
|
+
]
|
|
433
|
+
},
|
|
434
|
+
"visual_states": [
|
|
435
|
+
"default",
|
|
436
|
+
"disabled",
|
|
437
|
+
"error",
|
|
438
|
+
"active"
|
|
439
|
+
]
|
|
440
|
+
},
|
|
441
|
+
"persistence": {
|
|
442
|
+
"mode": "none",
|
|
443
|
+
"source_of_truth": "host",
|
|
444
|
+
"network_owner": "host",
|
|
445
|
+
"revision_field": null
|
|
446
|
+
},
|
|
447
|
+
"ownership": {
|
|
448
|
+
"source": "simai/ui-pro",
|
|
449
|
+
"data": "host",
|
|
450
|
+
"effects": "host",
|
|
451
|
+
"forbidden_client_responsibilities": [
|
|
452
|
+
"fetching or polling the chat API",
|
|
453
|
+
"access decisions",
|
|
454
|
+
"deciding whether a file is accepted by the server",
|
|
455
|
+
"uploading files"
|
|
456
|
+
]
|
|
457
|
+
},
|
|
458
|
+
"security": {
|
|
459
|
+
"permissions_owner": "host",
|
|
460
|
+
"untrusted_inputs": [
|
|
461
|
+
"file names (drawn as text)",
|
|
462
|
+
"pasted and dropped files"
|
|
463
|
+
],
|
|
464
|
+
"network_policy": "deny"
|
|
465
|
+
},
|
|
466
|
+
"accessibility": {
|
|
467
|
+
"role": "form",
|
|
468
|
+
"accessible_name": "internal",
|
|
469
|
+
"keyboard": [
|
|
470
|
+
"Enter",
|
|
471
|
+
"Shift+Enter",
|
|
472
|
+
"Tab"
|
|
473
|
+
],
|
|
474
|
+
"focus": "The field is named and described by the character count shown past 80 % of the limit; a polite line speaks only when a threshold is crossed. A rejected file is a role=alert notice. Enter while an answer is awaited says why nothing was sent, or, with queue, that the message goes after the answer. «Stop waiting» returns focus to the field."
|
|
475
|
+
},
|
|
476
|
+
"presentation": {
|
|
477
|
+
"themes": [
|
|
478
|
+
"light",
|
|
479
|
+
"dark"
|
|
480
|
+
],
|
|
481
|
+
"locales": [
|
|
482
|
+
"en",
|
|
483
|
+
"ru"
|
|
484
|
+
],
|
|
485
|
+
"responsive": [
|
|
486
|
+
"desktop",
|
|
487
|
+
"mobile"
|
|
488
|
+
]
|
|
489
|
+
},
|
|
490
|
+
"adapter": {
|
|
491
|
+
"kind": "generic",
|
|
492
|
+
"protocol": "simai.smart-studio-adapter.v1",
|
|
493
|
+
"module": null
|
|
494
|
+
},
|
|
495
|
+
"artifacts": {
|
|
496
|
+
"fixtures": [
|
|
497
|
+
"studio.fixture.json"
|
|
498
|
+
],
|
|
499
|
+
"scenarios": [
|
|
500
|
+
"studio.scenario.json"
|
|
501
|
+
]
|
|
502
|
+
},
|
|
503
|
+
"readiness": {
|
|
504
|
+
"level": "host-required",
|
|
505
|
+
"required_checks": [
|
|
506
|
+
"manifest",
|
|
507
|
+
"loader-rule",
|
|
508
|
+
"chat-composer-probe"
|
|
509
|
+
]
|
|
510
|
+
},
|
|
511
|
+
"compatibility": {
|
|
512
|
+
"contract_schema": {
|
|
513
|
+
"id": "https://simai.io/contracts/smart-component-manifest.v2.schema.json",
|
|
514
|
+
"version": 2
|
|
515
|
+
},
|
|
516
|
+
"runtime_pair": {
|
|
517
|
+
"ui_revision": "0edd49be08f802b60ed92f176b68911a42a12f3f",
|
|
518
|
+
"ui_smart_revision": "0edd49be08f802b60ed92f176b68911a42a12f3f"
|
|
519
|
+
},
|
|
520
|
+
"aliases": [],
|
|
521
|
+
"deprecations": [],
|
|
522
|
+
"replacement": null,
|
|
523
|
+
"migrations": [
|
|
524
|
+
{
|
|
525
|
+
"from": "0.3.1",
|
|
526
|
+
"to": "1.0.0",
|
|
527
|
+
"changes": [
|
|
528
|
+
"moved from simai/ui-chat to ui-pro (D31): standard simai.smart-component 1.3.9, the element is made from component.json; words in lang/; dated aliases in aliases.json; nothing imported from chat-core or component/chat",
|
|
529
|
+
"sf-chat-send {text, attachmentIds} -> sf-chat-composer-submit {text, attachment-ids} until 2026-12-01 (event, split alias)",
|
|
530
|
+
"sf-chat-stop -> sf-chat-composer-stop until 2026-12-01 (event)",
|
|
531
|
+
"sf-chat-files -> sf-chat-composer-attach until 2026-12-01 (event)",
|
|
532
|
+
"sf-chat-action {action: remove-attachment, id, name} -> sf-chat-composer-detach {id, name} until 2026-12-01 (event, split alias)",
|
|
533
|
+
"setFiles(files) is the action set-files and the setting files; clear() is the action clear"
|
|
534
|
+
]
|
|
535
|
+
},
|
|
536
|
+
{
|
|
537
|
+
"from": "1.0.0",
|
|
538
|
+
"to": "1.0.1",
|
|
539
|
+
"changes": [
|
|
540
|
+
"The first-paint snapshot's sheets.json lists the utility sheets its markup uses (retaken on ui-source 5ba9399); no behaviour changed. Nothing to change for a host."
|
|
541
|
+
]
|
|
542
|
+
},
|
|
543
|
+
{
|
|
544
|
+
"from": "1.0.2",
|
|
545
|
+
"to": "1.1.0",
|
|
546
|
+
"changes": [
|
|
547
|
+
"The setting queue (default off): while busy, Enter and send still submit a message of text, beside «Остановить ожидание», for the host to queue; the hint under the field says so. A message with files waits as before. Without queue nothing changes for a host."
|
|
548
|
+
]
|
|
549
|
+
},
|
|
550
|
+
{
|
|
551
|
+
"from": "1.1.0",
|
|
552
|
+
"to": "1.2.0",
|
|
553
|
+
"changes": [
|
|
554
|
+
"The setting no-stop: while busy, no stop button. Without it nothing changes."
|
|
555
|
+
]
|
|
556
|
+
}
|
|
557
|
+
]
|
|
558
|
+
},
|
|
559
|
+
"provenance": {
|
|
560
|
+
"source_repository": "simai/ui-pro",
|
|
561
|
+
"source_revision": "ed3c2a43c480135e29f8c2fb5667169deb87a655",
|
|
562
|
+
"source_artifacts": [
|
|
563
|
+
{
|
|
564
|
+
"path": "src/smart/chat-composer/index.js",
|
|
565
|
+
"sha256": "e9268400d0eb87ea94e1f27e51a1a8e3bead5fbd1aa6d398175e85b798d12a18"
|
|
566
|
+
},
|
|
567
|
+
{
|
|
568
|
+
"path": "src/smart/chat-composer/js/templates/default.js",
|
|
569
|
+
"sha256": "5379f6ef99d371195cafcbf6fc462e3aff596b77ad2109001aa9cdc2b3915df4"
|
|
570
|
+
},
|
|
571
|
+
{
|
|
572
|
+
"path": "src/smart/chat-composer/js/templates/parts.js",
|
|
573
|
+
"sha256": "39a3af446ba4d89441eca034c4639ce2b8191538a3414afa974daea56c08ec0c"
|
|
574
|
+
},
|
|
575
|
+
{
|
|
576
|
+
"path": "src/smart/chat-composer/js/templates/default.css",
|
|
577
|
+
"sha256": "a1bf322e45b9908b02d59871eef691e86f5954b04e0446d186cb67554178e82d"
|
|
578
|
+
},
|
|
579
|
+
{
|
|
580
|
+
"path": "src/smart/chat-composer/rule.js",
|
|
581
|
+
"sha256": "cca7b00064185d4b75feba62eee56f9d8341805ffd0099a0891033681d5ccdef"
|
|
582
|
+
},
|
|
583
|
+
{
|
|
584
|
+
"path": "src/smart/chat-composer/docs.md",
|
|
585
|
+
"sha256": "ee1675284126ecc0cc01629140c888a4549118bdfc2c8c91f812e8a5642b8237"
|
|
586
|
+
},
|
|
587
|
+
{
|
|
588
|
+
"path": "src/smart/chat-composer/component.json",
|
|
589
|
+
"sha256": "e76befa749b628bd815f98ed9ae4dbe8b5b86830a0777c80a2e0b4d92dd6c809"
|
|
590
|
+
},
|
|
591
|
+
{
|
|
592
|
+
"path": "src/smart/chat-composer/aliases.json",
|
|
593
|
+
"sha256": "fb8800414e609b679241f17902e428b5b07dd9fedbe1df522ccf066a521b016b"
|
|
594
|
+
},
|
|
595
|
+
{
|
|
596
|
+
"path": "src/smart/chat-composer/lang/en.json",
|
|
597
|
+
"sha256": "8c20676d2ce294b5611572911550482f67d691aaaf21cd17c498ba11380eeb87"
|
|
598
|
+
},
|
|
599
|
+
{
|
|
600
|
+
"path": "src/smart/chat-composer/lang/ru.json",
|
|
601
|
+
"sha256": "ae26c2d037ddd51d583caf8ec4fc994019113d9d73fdc44a87a79e1699468409"
|
|
602
|
+
}
|
|
603
|
+
],
|
|
604
|
+
"generated_runtime": []
|
|
605
|
+
},
|
|
606
|
+
"ai_guidance": {
|
|
607
|
+
"use_when": "Use sf-chat-composer for the question field of a chat window: it reports a send, a stop and the files a person offers; the host sends, uploads, and hands the chips back as files.",
|
|
608
|
+
"do_not": [
|
|
609
|
+
"Do not upload from the element; listen to attach and set files",
|
|
610
|
+
"Do not take the element's type and size check for the server's acceptance",
|
|
611
|
+
"Do not clear it from the submit event; clear it once the host took the message"
|
|
612
|
+
],
|
|
613
|
+
"required_reads": [
|
|
614
|
+
"inputs",
|
|
615
|
+
"contracts",
|
|
616
|
+
"events",
|
|
617
|
+
"accessibility"
|
|
618
|
+
],
|
|
619
|
+
"minimal_example": "<sf-chat-composer maxlength=\"4000\" attachments accept=\".pdf,.docx\" max-files=\"5\"></sf-chat-composer>",
|
|
620
|
+
"owner_commands": [
|
|
621
|
+
"node scripts/test.mjs",
|
|
622
|
+
"node scripts/run-manifest-probes.mjs <free output> <package output> chat-composer"
|
|
623
|
+
]
|
|
624
|
+
}
|
|
625
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<!-- sf-chat-composer, example «busy»: the static markup (standard simai.smart-component 1.3.8 §5.4). Generated by scripts/snapshot-first-paint.mjs from the built output; do not edit, run it again. -->
|
|
2
|
+
<sf-chat-composer attachments busy style="display: contents;">
|
|
3
|
+
<form novalidate class="sf-chat-composer" data-sf-static>
|
|
4
|
+
<div class="sf-chat-composer__box">
|
|
5
|
+
<div class="sf-chat-composer__files" hidden></div>
|
|
6
|
+
<div class="sf-chat-composer__row">
|
|
7
|
+
<button type="button" class="sf-icon-button sf-icon-button--size-1 sf-icon-button--icon sf-icon-button--link sf-icon-button--on-surface flex items-cross-center content-main-center sf-chat-composer__attach" aria-label="Прикрепить файл" title="Прикрепить файл"><sf-icon aria-hidden="true" icon="attach_file" size="2" style="display: contents;" data-sf-size-relative><i class="sf-icon sf-icon--size-2 sf-icon--weight-regular" style="--sf-icon--grade:0;--sf-icon--optical-size:24" aria-hidden="true" data-sf-static>attach_file</i></sf-icon></button>
|
|
8
|
+
<label class="sf-textarea sf-textarea--size-1 sf-textarea--flush sf-chat-composer__field sf-textarea--auto-grow" data-sf-textarea-bound="1" for="sf-chat-composer-busy-1"><textarea class="sf-chat-composer__input" rows="1" data-auto-grow data-max-rows="8" id="sf-chat-composer-busy-1" aria-label="Сообщение" aria-describedby="sf-chat-composer-busy-2" placeholder="Спросите что-нибудь" style="--sf-textarea--min-rows: 1; --sf-textarea--max-rows: 8;"></textarea></label>
|
|
9
|
+
<span class="sf-chat-composer__count" id="sf-chat-composer-busy-2" hidden></span>
|
|
10
|
+
<button type="submit" class="sf-icon-button sf-icon-button--size-1 sf-icon-button--icon sf-icon-button--tonal sf-icon-button--on-surface flex items-cross-center content-main-center sf-chat-composer__send" aria-label="Отправить" title="Отправить" disabled hidden></button>
|
|
11
|
+
<button type="button" class="sf-icon-button sf-icon-button--size-1 sf-icon-button--icon sf-icon-button--default sf-icon-button--on-surface flex items-cross-center content-main-center sf-chat-composer__stop" aria-label="Остановить ожидание" title="Остановить ожидание"><sf-icon aria-hidden="true" icon="stop" size="2" style="display: contents;" data-sf-size-relative><i class="sf-icon sf-icon--size-2 sf-icon--weight-regular" style="--sf-icon--grade:0;--sf-icon--optical-size:24" aria-hidden="true" data-sf-static>stop</i></sf-icon></button>
|
|
12
|
+
</div>
|
|
13
|
+
<div class="sf-chat-composer__drop" aria-hidden="true">Отпустите, чтобы прикрепить</div>
|
|
14
|
+
</div>
|
|
15
|
+
<p class="sf-chat-composer__notice" role="alert" hidden></p>
|
|
16
|
+
<p aria-live="polite" class="sf-chat-composer__hint" id="sf-chat-composer-busy-3">Enter — отправить, Shift+Enter — новая строка</p>
|
|
17
|
+
<input class="sf-chat-composer__picker" type="file" multiple hidden>
|
|
18
|
+
<span class="sf-chat-composer__said sr-only" aria-live="polite"></span>
|
|
19
|
+
</form>
|
|
20
|
+
</sf-chat-composer>
|
|
Binary file
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<!-- sf-chat-composer, example «disabled»: the static markup (standard simai.smart-component 1.3.8 §5.4). Generated by scripts/snapshot-first-paint.mjs from the built output; do not edit, run it again. -->
|
|
2
|
+
<sf-chat-composer disabled placeholder="Примите условия, чтобы задать вопрос" style="display: contents;">
|
|
3
|
+
<form novalidate class="sf-chat-composer sf-chat-composer--disabled" data-sf-static>
|
|
4
|
+
<div class="sf-chat-composer__box">
|
|
5
|
+
<div class="sf-chat-composer__files" hidden></div>
|
|
6
|
+
<div class="sf-chat-composer__row">
|
|
7
|
+
<button type="button" class="sf-icon-button sf-icon-button--size-1 sf-icon-button--icon sf-icon-button--link sf-icon-button--on-surface flex items-cross-center content-main-center sf-chat-composer__attach" aria-label="Прикрепить файл" title="Прикрепить файл" disabled hidden></button>
|
|
8
|
+
<label class="sf-textarea sf-textarea--size-1 sf-textarea--flush sf-chat-composer__field sf-textarea--auto-grow" data-sf-textarea-bound="1" for="sf-chat-composer-disabled-1"><textarea class="sf-chat-composer__input" rows="1" data-auto-grow data-max-rows="8" id="sf-chat-composer-disabled-1" aria-label="Сообщение" aria-describedby="sf-chat-composer-disabled-2" placeholder="Примите условия, чтобы задать вопрос" disabled style="--sf-textarea--min-rows: 1; --sf-textarea--max-rows: 8;"></textarea></label>
|
|
9
|
+
<span class="sf-chat-composer__count" id="sf-chat-composer-disabled-2" hidden></span>
|
|
10
|
+
<button type="submit" class="sf-icon-button sf-icon-button--size-1 sf-icon-button--icon sf-icon-button--tonal sf-icon-button--on-surface flex items-cross-center content-main-center sf-chat-composer__send" aria-label="Отправить" title="Отправить" disabled><sf-icon aria-hidden="true" icon="arrow_upward" size="2" style="display: contents;" data-sf-size-relative><i class="sf-icon sf-icon--size-2 sf-icon--weight-regular" style="--sf-icon--grade:0;--sf-icon--optical-size:24" aria-hidden="true" data-sf-static>arrow_upward</i></sf-icon></button>
|
|
11
|
+
<button type="button" class="sf-icon-button sf-icon-button--size-1 sf-icon-button--icon sf-icon-button--default sf-icon-button--on-surface flex items-cross-center content-main-center sf-chat-composer__stop" aria-label="Остановить ожидание" title="Остановить ожидание" hidden></button>
|
|
12
|
+
</div>
|
|
13
|
+
<div class="sf-chat-composer__drop" aria-hidden="true">Отпустите, чтобы прикрепить</div>
|
|
14
|
+
</div>
|
|
15
|
+
<p class="sf-chat-composer__notice" role="alert" hidden></p>
|
|
16
|
+
<p aria-live="polite" class="sf-chat-composer__hint" id="sf-chat-composer-disabled-3">Enter — отправить, Shift+Enter — новая строка</p>
|
|
17
|
+
<input class="sf-chat-composer__picker" type="file" multiple hidden>
|
|
18
|
+
<span class="sf-chat-composer__said sr-only" aria-live="polite"></span>
|
|
19
|
+
</form>
|
|
20
|
+
</sf-chat-composer>
|
|
Binary file
|