@simai-studio/chat 0.0.0-stage → 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.
Files changed (261) hide show
  1. package/LICENSE.md +182 -0
  2. package/README.md +67 -2
  3. package/dist/package-receipt.json +1553 -0
  4. package/dist/set.json +107 -0
  5. package/dist/smart/chat-composer/aliases.json +67 -0
  6. package/dist/smart/chat-composer/aliases.json.gz +0 -0
  7. package/dist/smart/chat-composer/component.json +698 -0
  8. package/dist/smart/chat-composer/component.json.gz +0 -0
  9. package/dist/smart/chat-composer/css/chat-composer.css +223 -0
  10. package/dist/smart/chat-composer/css/chat-composer.css.gz +0 -0
  11. package/dist/smart/chat-composer/css/chat-composer.min.css +2 -0
  12. package/dist/smart/chat-composer/css/chat-composer.min.css.gz +0 -0
  13. package/dist/smart/chat-composer/examples.json +550 -0
  14. package/dist/smart/chat-composer/examples.json.gz +0 -0
  15. package/dist/smart/chat-composer/js/chat-composer.js +1028 -0
  16. package/dist/smart/chat-composer/js/chat-composer.js.gz +0 -0
  17. package/dist/smart/chat-composer/js/chat-composer.min.js +73 -0
  18. package/dist/smart/chat-composer/js/chat-composer.min.js.gz +0 -0
  19. package/dist/smart/chat-composer/lang/en.json +28 -0
  20. package/dist/smart/chat-composer/lang/en.json.gz +0 -0
  21. package/dist/smart/chat-composer/lang/ru.json +28 -0
  22. package/dist/smart/chat-composer/lang/ru.json.gz +0 -0
  23. package/dist/smart/chat-composer/probe.json +416 -0
  24. package/dist/smart/chat-composer/probe.json.gz +0 -0
  25. package/dist/smart/chat-composer/smart.manifest.json +651 -0
  26. package/dist/smart/chat-composer/smart.manifest.json.gz +0 -0
  27. package/dist/smart/chat-composer/static/default/busy.html +20 -0
  28. package/dist/smart/chat-composer/static/default/busy.html.gz +0 -0
  29. package/dist/smart/chat-composer/static/default/disabled.html +20 -0
  30. package/dist/smart/chat-composer/static/default/disabled.html.gz +0 -0
  31. package/dist/smart/chat-composer/static/default/files.html +99 -0
  32. package/dist/smart/chat-composer/static/default/files.html.gz +0 -0
  33. package/dist/smart/chat-composer/static/default/near-limit.html +20 -0
  34. package/dist/smart/chat-composer/static/default/near-limit.html.gz +0 -0
  35. package/dist/smart/chat-composer/static/default/reference.html +20 -0
  36. package/dist/smart/chat-composer/static/default/reference.html.gz +0 -0
  37. package/dist/smart/chat-composer/static/sheets.json +110 -0
  38. package/dist/smart/chat-composer/static/sheets.json.gz +0 -0
  39. package/dist/smart/chat-composer/studio.fixture.json +18 -0
  40. package/dist/smart/chat-composer/studio.fixture.json.gz +0 -0
  41. package/dist/smart/chat-composer/studio.scenario.json +37 -0
  42. package/dist/smart/chat-composer/studio.scenario.json.gz +0 -0
  43. package/dist/smart/chat-composer/template/default.css +198 -0
  44. package/dist/smart/chat-composer/template/default.css.gz +0 -0
  45. package/dist/smart/chat-composer/template/default.js +109 -0
  46. package/dist/smart/chat-composer/template/default.js.gz +0 -0
  47. package/dist/smart/chat-composer/template/parts.js +89 -0
  48. package/dist/smart/chat-composer/template/parts.js.gz +0 -0
  49. package/dist/smart/chat-interlocutor/aliases.json +20 -0
  50. package/dist/smart/chat-interlocutor/aliases.json.gz +0 -0
  51. package/dist/smart/chat-interlocutor/component.json +436 -0
  52. package/dist/smart/chat-interlocutor/component.json.gz +0 -0
  53. package/dist/smart/chat-interlocutor/css/chat-interlocutor.css +72 -0
  54. package/dist/smart/chat-interlocutor/css/chat-interlocutor.css.gz +0 -0
  55. package/dist/smart/chat-interlocutor/css/chat-interlocutor.min.css +2 -0
  56. package/dist/smart/chat-interlocutor/css/chat-interlocutor.min.css.gz +0 -0
  57. package/dist/smart/chat-interlocutor/examples.json +379 -0
  58. package/dist/smart/chat-interlocutor/examples.json.gz +0 -0
  59. package/dist/smart/chat-interlocutor/js/chat-interlocutor.js +531 -0
  60. package/dist/smart/chat-interlocutor/js/chat-interlocutor.js.gz +0 -0
  61. package/dist/smart/chat-interlocutor/js/chat-interlocutor.min.js +22 -0
  62. package/dist/smart/chat-interlocutor/js/chat-interlocutor.min.js.gz +0 -0
  63. package/dist/smart/chat-interlocutor/lang/en.json +13 -0
  64. package/dist/smart/chat-interlocutor/lang/en.json.gz +0 -0
  65. package/dist/smart/chat-interlocutor/lang/ru.json +13 -0
  66. package/dist/smart/chat-interlocutor/lang/ru.json.gz +0 -0
  67. package/dist/smart/chat-interlocutor/probe.json +204 -0
  68. package/dist/smart/chat-interlocutor/probe.json.gz +0 -0
  69. package/dist/smart/chat-interlocutor/smart.manifest.json +406 -0
  70. package/dist/smart/chat-interlocutor/smart.manifest.json.gz +0 -0
  71. package/dist/smart/chat-interlocutor/static/default/former.html +10 -0
  72. package/dist/smart/chat-interlocutor/static/default/former.html.gz +0 -0
  73. package/dist/smart/chat-interlocutor/static/default/grouped.html +10 -0
  74. package/dist/smart/chat-interlocutor/static/default/grouped.html.gz +0 -0
  75. package/dist/smart/chat-interlocutor/static/default/reference.html +10 -0
  76. package/dist/smart/chat-interlocutor/static/default/reference.html.gz +0 -0
  77. package/dist/smart/chat-interlocutor/static/default/single.html +10 -0
  78. package/dist/smart/chat-interlocutor/static/default/single.html.gz +0 -0
  79. package/dist/smart/chat-interlocutor/static/sheets.json +110 -0
  80. package/dist/smart/chat-interlocutor/static/sheets.json.gz +0 -0
  81. package/dist/smart/chat-interlocutor/studio.fixture.json +25 -0
  82. package/dist/smart/chat-interlocutor/studio.fixture.json.gz +0 -0
  83. package/dist/smart/chat-interlocutor/studio.scenario.json +41 -0
  84. package/dist/smart/chat-interlocutor/studio.scenario.json.gz +0 -0
  85. package/dist/smart/chat-interlocutor/template/default.css +58 -0
  86. package/dist/smart/chat-interlocutor/template/default.css.gz +0 -0
  87. package/dist/smart/chat-interlocutor/template/default.js +43 -0
  88. package/dist/smart/chat-interlocutor/template/default.js.gz +0 -0
  89. package/dist/smart/chat-message/aliases.json +125 -0
  90. package/dist/smart/chat-message/aliases.json.gz +0 -0
  91. package/dist/smart/chat-message/component.json +850 -0
  92. package/dist/smart/chat-message/component.json.gz +0 -0
  93. package/dist/smart/chat-message/css/chat-message.css +2260 -0
  94. package/dist/smart/chat-message/css/chat-message.css.gz +0 -0
  95. package/dist/smart/chat-message/css/chat-message.min.css +2 -0
  96. package/dist/smart/chat-message/css/chat-message.min.css.gz +0 -0
  97. package/dist/smart/chat-message/examples.json +1626 -0
  98. package/dist/smart/chat-message/examples.json.gz +0 -0
  99. package/dist/smart/chat-message/js/chat-message.js +5859 -0
  100. package/dist/smart/chat-message/js/chat-message.js.gz +0 -0
  101. package/dist/smart/chat-message/js/chat-message.min.js +15 -0
  102. package/dist/smart/chat-message/js/chat-message.min.js.gz +0 -0
  103. package/dist/smart/chat-message/lang/en.json +176 -0
  104. package/dist/smart/chat-message/lang/en.json.gz +0 -0
  105. package/dist/smart/chat-message/lang/ru.json +180 -0
  106. package/dist/smart/chat-message/lang/ru.json.gz +0 -0
  107. package/dist/smart/chat-message/probe.json +1051 -0
  108. package/dist/smart/chat-message/probe.json.gz +0 -0
  109. package/dist/smart/chat-message/smart.manifest.json +824 -0
  110. package/dist/smart/chat-message/smart.manifest.json.gz +0 -0
  111. package/dist/smart/chat-message/static/default/brief-card.html +2 -0
  112. package/dist/smart/chat-message/static/default/brief-card.html.gz +0 -0
  113. package/dist/smart/chat-message/static/default/brief-questions.html +2 -0
  114. package/dist/smart/chat-message/static/default/brief-questions.html.gz +0 -0
  115. package/dist/smart/chat-message/static/default/deliverables.html +2 -0
  116. package/dist/smart/chat-message/static/default/deliverables.html.gz +0 -0
  117. package/dist/smart/chat-message/static/default/document.html +13 -0
  118. package/dist/smart/chat-message/static/default/document.html.gz +0 -0
  119. package/dist/smart/chat-message/static/default/failed.html +2 -0
  120. package/dist/smart/chat-message/static/default/failed.html.gz +0 -0
  121. package/dist/smart/chat-message/static/default/feedback-reason.html +2 -0
  122. package/dist/smart/chat-message/static/default/feedback-reason.html.gz +0 -0
  123. package/dist/smart/chat-message/static/default/limit.html +2 -0
  124. package/dist/smart/chat-message/static/default/limit.html.gz +0 -0
  125. package/dist/smart/chat-message/static/default/proposal.html +40 -0
  126. package/dist/smart/chat-message/static/default/proposal.html.gz +0 -0
  127. package/dist/smart/chat-message/static/default/question.html +22 -0
  128. package/dist/smart/chat-message/static/default/question.html.gz +0 -0
  129. package/dist/smart/chat-message/static/default/reference.html +2 -0
  130. package/dist/smart/chat-message/static/default/reference.html.gz +0 -0
  131. package/dist/smart/chat-message/static/default/steps.html +2 -0
  132. package/dist/smart/chat-message/static/default/steps.html.gz +0 -0
  133. package/dist/smart/chat-message/static/default/stopped.html +2 -0
  134. package/dist/smart/chat-message/static/default/stopped.html.gz +0 -0
  135. package/dist/smart/chat-message/static/default/waiting.html +2 -0
  136. package/dist/smart/chat-message/static/default/waiting.html.gz +0 -0
  137. package/dist/smart/chat-message/static/person/person-own.html +2 -0
  138. package/dist/smart/chat-message/static/person/person-own.html.gz +0 -0
  139. package/dist/smart/chat-message/static/person/person-reply.html +2 -0
  140. package/dist/smart/chat-message/static/person/person-reply.html.gz +0 -0
  141. package/dist/smart/chat-message/static/person/person.html +12 -0
  142. package/dist/smart/chat-message/static/person/person.html.gz +0 -0
  143. package/dist/smart/chat-message/static/sheets.json +452 -0
  144. package/dist/smart/chat-message/static/sheets.json.gz +0 -0
  145. package/dist/smart/chat-message/studio.fixture.json +27 -0
  146. package/dist/smart/chat-message/studio.fixture.json.gz +0 -0
  147. package/dist/smart/chat-message/studio.scenario.json +22 -0
  148. package/dist/smart/chat-message/studio.scenario.json.gz +0 -0
  149. package/dist/smart/chat-message/template/default.css +1805 -0
  150. package/dist/smart/chat-message/template/default.css.gz +0 -0
  151. package/dist/smart/chat-message/template/default.js +27 -0
  152. package/dist/smart/chat-message/template/default.js.gz +0 -0
  153. package/dist/smart/chat-message/template/person.js +11 -0
  154. package/dist/smart/chat-message/template/person.js.gz +0 -0
  155. package/dist/smart/chat-threads/aliases.json +174 -0
  156. package/dist/smart/chat-threads/aliases.json.gz +0 -0
  157. package/dist/smart/chat-threads/component.json +1240 -0
  158. package/dist/smart/chat-threads/component.json.gz +0 -0
  159. package/dist/smart/chat-threads/css/chat-threads.css +134 -0
  160. package/dist/smart/chat-threads/css/chat-threads.css.gz +0 -0
  161. package/dist/smart/chat-threads/css/chat-threads.min.css +2 -0
  162. package/dist/smart/chat-threads/css/chat-threads.min.css.gz +0 -0
  163. package/dist/smart/chat-threads/examples.json +689 -0
  164. package/dist/smart/chat-threads/examples.json.gz +0 -0
  165. package/dist/smart/chat-threads/js/chat-threads.js +859 -0
  166. package/dist/smart/chat-threads/js/chat-threads.js.gz +0 -0
  167. package/dist/smart/chat-threads/js/chat-threads.min.js +39 -0
  168. package/dist/smart/chat-threads/js/chat-threads.min.js.gz +0 -0
  169. package/dist/smart/chat-threads/lang/en.json +18 -0
  170. package/dist/smart/chat-threads/lang/en.json.gz +0 -0
  171. package/dist/smart/chat-threads/lang/ru.json +18 -0
  172. package/dist/smart/chat-threads/lang/ru.json.gz +0 -0
  173. package/dist/smart/chat-threads/probe.json +406 -0
  174. package/dist/smart/chat-threads/probe.json.gz +0 -0
  175. package/dist/smart/chat-threads/smart.manifest.json +1159 -0
  176. package/dist/smart/chat-threads/smart.manifest.json.gz +0 -0
  177. package/dist/smart/chat-threads/static/default/activity.html +145 -0
  178. package/dist/smart/chat-threads/static/default/activity.html.gz +0 -0
  179. package/dist/smart/chat-threads/static/default/activity.skeleton.html +145 -0
  180. package/dist/smart/chat-threads/static/default/activity.skeleton.html.gz +0 -0
  181. package/dist/smart/chat-threads/static/default/archive.html +58 -0
  182. package/dist/smart/chat-threads/static/default/archive.html.gz +0 -0
  183. package/dist/smart/chat-threads/static/default/archive.skeleton.html +58 -0
  184. package/dist/smart/chat-threads/static/default/archive.skeleton.html.gz +0 -0
  185. package/dist/smart/chat-threads/static/default/avatars.html +116 -0
  186. package/dist/smart/chat-threads/static/default/avatars.html.gz +0 -0
  187. package/dist/smart/chat-threads/static/default/avatars.skeleton.html +116 -0
  188. package/dist/smart/chat-threads/static/default/avatars.skeleton.html.gz +0 -0
  189. package/dist/smart/chat-threads/static/default/empty.html +50 -0
  190. package/dist/smart/chat-threads/static/default/empty.html.gz +0 -0
  191. package/dist/smart/chat-threads/static/default/loading.html +50 -0
  192. package/dist/smart/chat-threads/static/default/loading.html.gz +0 -0
  193. package/dist/smart/chat-threads/static/default/people.html +104 -0
  194. package/dist/smart/chat-threads/static/default/people.html.gz +0 -0
  195. package/dist/smart/chat-threads/static/default/people.skeleton.html +104 -0
  196. package/dist/smart/chat-threads/static/default/people.skeleton.html.gz +0 -0
  197. package/dist/smart/chat-threads/static/default/reference.html +123 -0
  198. package/dist/smart/chat-threads/static/default/reference.html.gz +0 -0
  199. package/dist/smart/chat-threads/static/default/reference.skeleton.html +123 -0
  200. package/dist/smart/chat-threads/static/default/reference.skeleton.html.gz +0 -0
  201. package/dist/smart/chat-threads/static/default/ungrouped.html +99 -0
  202. package/dist/smart/chat-threads/static/default/ungrouped.html.gz +0 -0
  203. package/dist/smart/chat-threads/static/default/ungrouped.skeleton.html +99 -0
  204. package/dist/smart/chat-threads/static/default/ungrouped.skeleton.html.gz +0 -0
  205. package/dist/smart/chat-threads/static/sheets.json +503 -0
  206. package/dist/smart/chat-threads/static/sheets.json.gz +0 -0
  207. package/dist/smart/chat-threads/studio.fixture.json +23 -0
  208. package/dist/smart/chat-threads/studio.fixture.json.gz +0 -0
  209. package/dist/smart/chat-threads/template/default.css +113 -0
  210. package/dist/smart/chat-threads/template/default.css.gz +0 -0
  211. package/dist/smart/chat-threads/template/default.js +62 -0
  212. package/dist/smart/chat-threads/template/default.js.gz +0 -0
  213. package/dist/smart/chat-window/aliases.json +395 -0
  214. package/dist/smart/chat-window/aliases.json.gz +0 -0
  215. package/dist/smart/chat-window/component.json +2819 -0
  216. package/dist/smart/chat-window/component.json.gz +0 -0
  217. package/dist/smart/chat-window/css/chat-window.css +1509 -0
  218. package/dist/smart/chat-window/css/chat-window.css.gz +0 -0
  219. package/dist/smart/chat-window/css/chat-window.min.css +2 -0
  220. package/dist/smart/chat-window/css/chat-window.min.css.gz +0 -0
  221. package/dist/smart/chat-window/examples.json +2798 -0
  222. package/dist/smart/chat-window/examples.json.gz +0 -0
  223. package/dist/smart/chat-window/js/chat-window.js +12780 -0
  224. package/dist/smart/chat-window/js/chat-window.js.gz +0 -0
  225. package/dist/smart/chat-window/js/chat-window.min.js +1 -0
  226. package/dist/smart/chat-window/js/chat-window.min.js.gz +0 -0
  227. package/dist/smart/chat-window/lang/en.json +212 -0
  228. package/dist/smart/chat-window/lang/en.json.gz +0 -0
  229. package/dist/smart/chat-window/lang/ru.json +218 -0
  230. package/dist/smart/chat-window/lang/ru.json.gz +0 -0
  231. package/dist/smart/chat-window/probe.json +2023 -0
  232. package/dist/smart/chat-window/probe.json.gz +0 -0
  233. package/dist/smart/chat-window/smart.manifest.json +2844 -0
  234. package/dist/smart/chat-window/smart.manifest.json.gz +0 -0
  235. package/dist/smart/chat-window/static/default/archived.html +100 -0
  236. package/dist/smart/chat-window/static/default/archived.html.gz +0 -0
  237. package/dist/smart/chat-window/static/default/embedded.html +125 -0
  238. package/dist/smart/chat-window/static/default/embedded.html.gz +0 -0
  239. package/dist/smart/chat-window/static/default/greeting.html +125 -0
  240. package/dist/smart/chat-window/static/default/greeting.html.gz +0 -0
  241. package/dist/smart/chat-window/static/default/people.html +104 -0
  242. package/dist/smart/chat-window/static/default/people.html.gz +0 -0
  243. package/dist/smart/chat-window/static/default/proposal.html +161 -0
  244. package/dist/smart/chat-window/static/default/proposal.html.gz +0 -0
  245. package/dist/smart/chat-window/static/default/reference.html +123 -0
  246. package/dist/smart/chat-window/static/default/reference.html.gz +0 -0
  247. package/dist/smart/chat-window/static/default/waiting.html +123 -0
  248. package/dist/smart/chat-window/static/default/waiting.html.gz +0 -0
  249. package/dist/smart/chat-window/static/sheets.json +526 -0
  250. package/dist/smart/chat-window/static/sheets.json.gz +0 -0
  251. package/dist/smart/chat-window/studio.fixture.json +13 -0
  252. package/dist/smart/chat-window/studio.fixture.json.gz +0 -0
  253. package/dist/smart/chat-window/studio.scenario.json +95 -0
  254. package/dist/smart/chat-window/studio.scenario.json.gz +0 -0
  255. package/dist/smart/chat-window/template/default.css +1168 -0
  256. package/dist/smart/chat-window/template/default.css.gz +0 -0
  257. package/dist/smart/chat-window/template/default.js +12 -0
  258. package/dist/smart/chat-window/template/default.js.gz +0 -0
  259. package/dist/smart/rule.js +193 -0
  260. package/dist/smart/rule.js.gz +0 -0
  261. package/package.json +29 -4
@@ -0,0 +1,10 @@
1
+ <!-- sf-chat-interlocutor, example «single»: 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-interlocutor value="personal" style="display: contents;"><script type="application/json" data-sf-settings>{"options":[{"id":"personal","title":"Мой помощник","kind":"personal"}]}</script>
3
+ <div class="sf-chat-interlocutor sf-chat-interlocutor--single" data-sf-static>
4
+ <button type="button" class="sf-chat-interlocutor__button" aria-label="Помощник: Мой помощник" disabled><span class="sf-chat-interlocutor__title">Мой помощник</span><sf-icon icon="expand_more" size="1/2" aria-hidden="true" style="display: contents;" data-sf-size-relative><i class="sf-icon sf-icon--size-1/2" aria-hidden="true" data-sf-static>expand_more</i></sf-icon></button>
5
+ <sf-menu-context class="sf-chat-interlocutor__menu" popup aria-label="Выбрать помощника" style="display: contents;">
6
+ <div class="sf-context-menu" role="menu" aria-label="Выбрать помощника" data-sf-static></div>
7
+ </sf-menu-context>
8
+ <span class="sf-chat-interlocutor__note sr-only" id="sf-chat-interlocutor-single-1"></span>
9
+ </div>
10
+ </sf-chat-interlocutor>
@@ -0,0 +1,110 @@
1
+ {
2
+ "$comment": "The sheets the first paint of sf-chat-interlocutor needs, as the Loader asked for them while each example was rendered (standard simai.smart-component 1.3.8 §5.4). Paths are under the distribution root (distr/). The markup also needs the theme class on <html>: theme-light or theme-dark. Generated by scripts/snapshot-first-paint.mjs.",
3
+ "component": "sf-chat-interlocutor",
4
+ "theme": [
5
+ "theme-light",
6
+ "theme-dark"
7
+ ],
8
+ "sheets": [
9
+ "component/avatars/css/avatars.min.css",
10
+ "component/buttons/css/buttons.min.css",
11
+ "component/context-menu/css/context-menu.min.css",
12
+ "component/icons/css/icons.min.css",
13
+ "component/kbd/css/kbd.min.css",
14
+ "core/css/core.css",
15
+ "smart/chat-interlocutor/css/chat-interlocutor.min.css",
16
+ "utility/align-items/default/css/default.min.css",
17
+ "utility/display/default/css/default.min.css",
18
+ "utility/flex-direction/default/css/default.min.css",
19
+ "utility/flex/default/css/default.min.css",
20
+ "utility/font-weight/default/css/default.min.css",
21
+ "utility/pointer-events/default/css/default.min.css",
22
+ "utility/position/default/css/default.min.css",
23
+ "utility/sr-only/default/css/default.min.css",
24
+ "utility/text-align/default/css/default.min.css",
25
+ "utility/text-decoration/default/css/default.min.css",
26
+ "utility/text-overflow/default/css/default.min.css"
27
+ ],
28
+ "examples": {
29
+ "former": [
30
+ "component/avatars/css/avatars.min.css",
31
+ "component/buttons/css/buttons.min.css",
32
+ "component/context-menu/css/context-menu.min.css",
33
+ "component/icons/css/icons.min.css",
34
+ "component/kbd/css/kbd.min.css",
35
+ "core/css/core.css",
36
+ "smart/chat-interlocutor/css/chat-interlocutor.min.css",
37
+ "utility/align-items/default/css/default.min.css",
38
+ "utility/display/default/css/default.min.css",
39
+ "utility/flex-direction/default/css/default.min.css",
40
+ "utility/flex/default/css/default.min.css",
41
+ "utility/font-weight/default/css/default.min.css",
42
+ "utility/pointer-events/default/css/default.min.css",
43
+ "utility/position/default/css/default.min.css",
44
+ "utility/sr-only/default/css/default.min.css",
45
+ "utility/text-align/default/css/default.min.css",
46
+ "utility/text-decoration/default/css/default.min.css",
47
+ "utility/text-overflow/default/css/default.min.css"
48
+ ],
49
+ "grouped": [
50
+ "component/avatars/css/avatars.min.css",
51
+ "component/buttons/css/buttons.min.css",
52
+ "component/context-menu/css/context-menu.min.css",
53
+ "component/icons/css/icons.min.css",
54
+ "component/kbd/css/kbd.min.css",
55
+ "core/css/core.css",
56
+ "smart/chat-interlocutor/css/chat-interlocutor.min.css",
57
+ "utility/align-items/default/css/default.min.css",
58
+ "utility/display/default/css/default.min.css",
59
+ "utility/flex-direction/default/css/default.min.css",
60
+ "utility/flex/default/css/default.min.css",
61
+ "utility/font-weight/default/css/default.min.css",
62
+ "utility/pointer-events/default/css/default.min.css",
63
+ "utility/position/default/css/default.min.css",
64
+ "utility/sr-only/default/css/default.min.css",
65
+ "utility/text-align/default/css/default.min.css",
66
+ "utility/text-decoration/default/css/default.min.css",
67
+ "utility/text-overflow/default/css/default.min.css"
68
+ ],
69
+ "reference": [
70
+ "component/avatars/css/avatars.min.css",
71
+ "component/buttons/css/buttons.min.css",
72
+ "component/context-menu/css/context-menu.min.css",
73
+ "component/icons/css/icons.min.css",
74
+ "component/kbd/css/kbd.min.css",
75
+ "core/css/core.css",
76
+ "smart/chat-interlocutor/css/chat-interlocutor.min.css",
77
+ "utility/align-items/default/css/default.min.css",
78
+ "utility/display/default/css/default.min.css",
79
+ "utility/flex-direction/default/css/default.min.css",
80
+ "utility/flex/default/css/default.min.css",
81
+ "utility/font-weight/default/css/default.min.css",
82
+ "utility/pointer-events/default/css/default.min.css",
83
+ "utility/position/default/css/default.min.css",
84
+ "utility/sr-only/default/css/default.min.css",
85
+ "utility/text-align/default/css/default.min.css",
86
+ "utility/text-decoration/default/css/default.min.css",
87
+ "utility/text-overflow/default/css/default.min.css"
88
+ ],
89
+ "single": [
90
+ "component/avatars/css/avatars.min.css",
91
+ "component/buttons/css/buttons.min.css",
92
+ "component/context-menu/css/context-menu.min.css",
93
+ "component/icons/css/icons.min.css",
94
+ "component/kbd/css/kbd.min.css",
95
+ "core/css/core.css",
96
+ "smart/chat-interlocutor/css/chat-interlocutor.min.css",
97
+ "utility/align-items/default/css/default.min.css",
98
+ "utility/display/default/css/default.min.css",
99
+ "utility/flex-direction/default/css/default.min.css",
100
+ "utility/flex/default/css/default.min.css",
101
+ "utility/font-weight/default/css/default.min.css",
102
+ "utility/pointer-events/default/css/default.min.css",
103
+ "utility/position/default/css/default.min.css",
104
+ "utility/sr-only/default/css/default.min.css",
105
+ "utility/text-align/default/css/default.min.css",
106
+ "utility/text-decoration/default/css/default.min.css",
107
+ "utility/text-overflow/default/css/default.min.css"
108
+ ]
109
+ }
110
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "schema": "simai.smart-component-fixture.v2",
3
+ "id": "interlocutor-reference",
4
+ "component": "smart.chat-interlocutor",
5
+ "title": "Interlocutor reference",
6
+ "summary": "Deterministic reference fixture for sf-chat-interlocutor: two interlocutors, the personal one current.",
7
+ "locale": "ru",
8
+ "props": {
9
+ "value": "personal",
10
+ "options": [
11
+ {
12
+ "id": "personal",
13
+ "title": "Мой помощник",
14
+ "kind": "personal"
15
+ },
16
+ {
17
+ "id": "admin",
18
+ "title": "Ассистент администратора",
19
+ "kind": "admin"
20
+ }
21
+ ]
22
+ },
23
+ "children": [],
24
+ "state": "default"
25
+ }
@@ -0,0 +1,41 @@
1
+ {
2
+ "schema": "simai.smart-component-scenario.v1",
3
+ "id": "smoke",
4
+ "component": "smart.chat-interlocutor",
5
+ "fixture": "interlocutor-reference",
6
+ "viewport": "desktop",
7
+ "actions": [
8
+ {
9
+ "type": "invoke",
10
+ "method": "setOptions",
11
+ "arguments": [
12
+ [
13
+ {
14
+ "id": "personal",
15
+ "title": "Мой помощник",
16
+ "kind": "personal"
17
+ },
18
+ {
19
+ "id": "admin",
20
+ "title": "Ассистент администратора",
21
+ "kind": "admin"
22
+ }
23
+ ]
24
+ ]
25
+ }
26
+ ],
27
+ "assertions": [
28
+ {
29
+ "type": "upgraded"
30
+ },
31
+ {
32
+ "type": "visible"
33
+ },
34
+ {
35
+ "type": "no-console-error"
36
+ },
37
+ {
38
+ "type": "no-network"
39
+ }
40
+ ]
41
+ }
@@ -0,0 +1,58 @@
1
+ @layer sf.reset, sf.tokens, sf.base, sf.paint, sf.utilities, sf.components, sf.overrides, sf.states;
2
+ @layer sf.components {
3
+ /* sf-chat-interlocutor. The host is display: contents; .sf-chat-interlocutor
4
+ is what a header places. Every value is a Framework token. The public
5
+ variables (component.json css-variables) are read here and never set, on
6
+ the element or any ancestor (public-variables.v1 rule):
7
+ --sf-chat-interlocutor-color the name's text
8
+ --sf-chat-interlocutor-icon-color the chevron
9
+ --sf-chat-interlocutor-hover-background-color the button's ground under a pointer
10
+ --sf-chat-interlocutor-radius the button's corner
11
+ --sf-chat-interlocutor-height the button's least height
12
+ Their fallbacks are the tokens simai/ui-chat's chat.css gave the same
13
+ places (--sf-chat--ink, --sf-chat--ink-muted, --sf-chat--touch), so the
14
+ header reads as it did there. */
15
+ .sf-chat-interlocutor {
16
+ --sf-chat-interlocutor--color: var(--sf-chat-interlocutor-color, var(--sf-on-surface));
17
+ --sf-chat-interlocutor--icon-color: var(--sf-chat-interlocutor-icon-color, var(--sf-on-surface-variant));
18
+ --sf-chat-interlocutor--hover: var(--sf-chat-interlocutor-hover-background-color, var(--sf-surface-transparent-hover));
19
+ --sf-chat-interlocutor--radius: var(--sf-chat-interlocutor-radius, var(--sf-radius-1));
20
+ --sf-chat-interlocutor--height: var(--sf-chat-interlocutor-height, var(--sf-ui-1--control-height));
21
+ }
22
+
23
+ .sf-chat-interlocutor__button {
24
+ display: inline-flex;
25
+ align-items: center;
26
+ gap: var(--sf-space-1\/4);
27
+ max-inline-size: 100%;
28
+ min-block-size: var(--sf-chat-interlocutor--height);
29
+ padding-inline: var(--sf-space-1\/2) var(--sf-space-1\/3);
30
+ border: 0;
31
+ border-radius: var(--sf-chat-interlocutor--radius);
32
+ background: transparent;
33
+ color: var(--sf-chat-interlocutor--color);
34
+ font: inherit;
35
+ font-size: var(--sf-text--size);
36
+ line-height: var(--sf-text--height);
37
+ font-weight: var(--sf-font-weight-bold);
38
+ cursor: pointer;
39
+ }
40
+
41
+ .sf-chat-interlocutor__button:hover:not(:disabled) { background: var(--sf-chat-interlocutor--hover); }
42
+
43
+ .sf-chat-interlocutor__button:disabled { cursor: default; }
44
+ .sf-chat-interlocutor__button sf-icon { color: var(--sf-chat-interlocutor--icon-color); }
45
+ .sf-chat-interlocutor--single sf-icon { display: none; }
46
+
47
+ .sf-chat-interlocutor__title {
48
+ overflow: hidden;
49
+ text-overflow: ellipsis;
50
+ white-space: nowrap;
51
+ }
52
+
53
+ @media (pointer: coarse) {
54
+ .sf-chat-interlocutor__button {
55
+ min-block-size: var(--sf-chat-interlocutor-height, var(--sf-ui-2--control-height));
56
+ }
57
+ }
58
+ }
@@ -0,0 +1,43 @@
1
+ import {html, nothing} from "lit";
2
+ import "./default.css";
3
+
4
+ // Whom the conversation is with: one native button that names the current
5
+ // interlocutor, its chevron, the sentence that describes it to a screen reader
6
+ // and the Framework's context menu it opens.
7
+ //
8
+ // With fewer than two interlocutors the button is a name: disabled, with no
9
+ // aria-haspopup, aria-expanded or description, and the chevron hidden.
10
+ // Otherwise it is a menu button, closed from the start (aria-expanded false);
11
+ // sf-menu-context sets aria-expanded while it is open and puts it back after,
12
+ // and the template writes it again only when the button stops or starts being
13
+ // a choice.
14
+ //
15
+ // The menu is printed closed: the first paint is the button (§5.4).
16
+ export function renderChatInterlocutorTemplate(context) {
17
+ const {component} = context;
18
+ return html`
19
+ <div class="sf-chat-interlocutor${context.single ? " sf-chat-interlocutor--single" : ""}">
20
+ <button
21
+ type="button"
22
+ class="sf-chat-interlocutor__button"
23
+ aria-label=${context.label}
24
+ aria-haspopup=${context.single ? nothing : "menu"}
25
+ aria-expanded=${context.single ? nothing : "false"}
26
+ aria-describedby=${context.single ? nothing : context.noteId}
27
+ ?disabled=${context.single}
28
+ @click=${() => component.openMenu()}
29
+ ><span class="sf-chat-interlocutor__title">${context.title}</span><sf-icon
30
+ icon="expand_more" size="1/2" aria-hidden="true"></sf-icon></button>
31
+ <sf-menu-context
32
+ class="sf-chat-interlocutor__menu"
33
+ popup
34
+ aria-label=${context.menuLabel}
35
+ @sf-menu-context-select=${(event) => {
36
+ event.stopPropagation();
37
+ component.onMenuSelect(event.detail);
38
+ }}
39
+ ></sf-menu-context>
40
+ <span class="sf-chat-interlocutor__note sr-only" id=${context.noteId}>${context.note}</span>
41
+ </div>
42
+ `;
43
+ }
@@ -0,0 +1,125 @@
1
+ {
2
+ "$comment": "Dated aliases of sf-chat-message for the shim (core/js/aliases.js, standard §16 item 20). The 0.3 general sf-chat-action {action, ...} is split by verb (vocabulary 1.1.5 §5.1); every row needs the element's detail adapter (sfAliasAdapters), which makes the 0.3 detail from the new one.",
3
+ "component": "sf-chat-message",
4
+ "since": "2026-10-28",
5
+ "remove_after": "2026-12-01",
6
+ "aliases": [
7
+ {
8
+ "from": "sf-chat-action",
9
+ "to": "sf-chat-message-retry",
10
+ "kind": "event",
11
+ "component": "sf-chat-message",
12
+ "since": "2026-10-28",
13
+ "remove_after": "2026-12-01",
14
+ "mode": "split",
15
+ "cancelable": true,
16
+ "section": "§8, vocabulary 1.1.5 §5, §5.1, §7",
17
+ "note": "the 0.3 {action: retry, id}; a person's retry (key, kind) has no 0.3 form and sends no old event; the element's adapter (sfAliasAdapters) puts action back"
18
+ },
19
+ {
20
+ "from": "sf-chat-action",
21
+ "to": "sf-chat-message-check",
22
+ "kind": "event",
23
+ "component": "sf-chat-message",
24
+ "since": "2026-10-28",
25
+ "remove_after": "2026-12-01",
26
+ "mode": "split",
27
+ "cancelable": true,
28
+ "section": "§8, vocabulary 1.1.5 §5, §5.1, §7",
29
+ "note": "the 0.3 {action: check, id}; the element's adapter (sfAliasAdapters) puts action back"
30
+ },
31
+ {
32
+ "from": "sf-chat-action",
33
+ "to": "sf-chat-message-rate",
34
+ "kind": "event",
35
+ "component": "sf-chat-message",
36
+ "since": "2026-10-28",
37
+ "remove_after": "2026-12-01",
38
+ "mode": "split",
39
+ "cancelable": true,
40
+ "section": "§8, vocabulary 1.1.5 §5, §5.1, §7",
41
+ "note": "the 0.3 {action: feedback, id, value}, or {action: feedback-send, id, reason, note} when the rating carries a reason or a note; the element's adapter (sfAliasAdapters) puts action back"
42
+ },
43
+ {
44
+ "from": "sf-chat-action",
45
+ "to": "sf-chat-message-cancel",
46
+ "kind": "event",
47
+ "component": "sf-chat-message",
48
+ "since": "2026-10-28",
49
+ "remove_after": "2026-12-01",
50
+ "mode": "split",
51
+ "cancelable": true,
52
+ "section": "§8, vocabulary 1.1.5 §5, §5.1, §7",
53
+ "note": "the 0.3 {action: feedback-skip, id} for kind rate; the element's adapter (sfAliasAdapters) puts action back"
54
+ },
55
+ {
56
+ "from": "sf-chat-action",
57
+ "to": "sf-chat-message-drafted",
58
+ "kind": "event",
59
+ "component": "sf-chat-message",
60
+ "since": "2026-10-28",
61
+ "remove_after": "2026-12-01",
62
+ "mode": "split",
63
+ "cancelable": false,
64
+ "section": "§8, vocabulary 1.1.5 §5, §5.1, §7",
65
+ "note": "the 0.3 {action: feedback-draft, id, reason, note}; the element's adapter (sfAliasAdapters) puts action back"
66
+ },
67
+ {
68
+ "from": "sf-chat-action",
69
+ "to": "sf-chat-message-toggle",
70
+ "kind": "event",
71
+ "component": "sf-chat-message",
72
+ "since": "2026-10-28",
73
+ "remove_after": "2026-12-01",
74
+ "mode": "split",
75
+ "cancelable": false,
76
+ "section": "§8, vocabulary 1.1.5 §5, §5.1, §7",
77
+ "note": "the 0.3 {action: sources, id, open} for kind sources; edit and delete (the template person) send no old event; the element's adapter (sfAliasAdapters) puts action back"
78
+ },
79
+ {
80
+ "from": "sf-chat-action",
81
+ "to": "sf-chat-message-copied",
82
+ "kind": "event",
83
+ "component": "sf-chat-message",
84
+ "since": "2026-10-28",
85
+ "remove_after": "2026-12-01",
86
+ "mode": "split",
87
+ "cancelable": false,
88
+ "section": "§8, vocabulary 1.1.5 §5, §5.1, §7",
89
+ "note": "the 0.3 {action: copy, id, done}; the element's adapter (sfAliasAdapters) puts action back"
90
+ },
91
+ {
92
+ "from": "sf-chat-action",
93
+ "to": "sf-chat-message-submit",
94
+ "kind": "event",
95
+ "component": "sf-chat-message",
96
+ "since": "2026-10-28",
97
+ "remove_after": "2026-12-01",
98
+ "mode": "split",
99
+ "cancelable": true,
100
+ "section": "§8, vocabulary 1.1.5 §5, §5.1, §7",
101
+ "note": "the 0.3 {action: brief-answer, id, text}; the element's adapter (sfAliasAdapters) puts action back"
102
+ },
103
+ {
104
+ "from": "view",
105
+ "to": "display",
106
+ "kind": "setting",
107
+ "component": "sf-chat-message",
108
+ "since": "2026-10-28",
109
+ "remove_after": "2026-12-01",
110
+ "section": "§3.1, §4.2",
111
+ "note": "the 0.3 property view (what the window knows), renamed: view is a name the base reserves; the old property reads and writes display"
112
+ },
113
+ {
114
+ "from": "sf-chat-attachment",
115
+ "to": null,
116
+ "kind": "attribute",
117
+ "component": "sf-chat-message",
118
+ "since": "2026-11-26",
119
+ "remove_after": "2027-01-01",
120
+ "mode": "host-attribute",
121
+ "section": "K-08, SIMAI Framework pair ui-73df5d1b4d4c",
122
+ "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"
123
+ }
124
+ ]
125
+ }