@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,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 sf-icon--weight-regular" style="--sf-icon--grade:0;--sf-icon--optical-size:24" 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>
|
|
Binary file
|
|
@@ -0,0 +1,105 @@
|
|
|
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
|
+
],
|
|
27
|
+
"examples": {
|
|
28
|
+
"former": [
|
|
29
|
+
"component/avatars/css/avatars.min.css",
|
|
30
|
+
"component/buttons/css/buttons.min.css",
|
|
31
|
+
"component/context-menu/css/context-menu.min.css",
|
|
32
|
+
"component/icons/css/icons.min.css",
|
|
33
|
+
"component/kbd/css/kbd.min.css",
|
|
34
|
+
"core/css/core.css",
|
|
35
|
+
"smart/chat-interlocutor/css/chat-interlocutor.min.css",
|
|
36
|
+
"utility/align-items/default/css/default.min.css",
|
|
37
|
+
"utility/display/default/css/default.min.css",
|
|
38
|
+
"utility/flex-direction/default/css/default.min.css",
|
|
39
|
+
"utility/flex/default/css/default.min.css",
|
|
40
|
+
"utility/font-weight/default/css/default.min.css",
|
|
41
|
+
"utility/pointer-events/default/css/default.min.css",
|
|
42
|
+
"utility/position/default/css/default.min.css",
|
|
43
|
+
"utility/sr-only/default/css/default.min.css",
|
|
44
|
+
"utility/text-align/default/css/default.min.css",
|
|
45
|
+
"utility/text-decoration/default/css/default.min.css"
|
|
46
|
+
],
|
|
47
|
+
"grouped": [
|
|
48
|
+
"component/avatars/css/avatars.min.css",
|
|
49
|
+
"component/buttons/css/buttons.min.css",
|
|
50
|
+
"component/context-menu/css/context-menu.min.css",
|
|
51
|
+
"component/icons/css/icons.min.css",
|
|
52
|
+
"component/kbd/css/kbd.min.css",
|
|
53
|
+
"core/css/core.css",
|
|
54
|
+
"smart/chat-interlocutor/css/chat-interlocutor.min.css",
|
|
55
|
+
"utility/align-items/default/css/default.min.css",
|
|
56
|
+
"utility/display/default/css/default.min.css",
|
|
57
|
+
"utility/flex-direction/default/css/default.min.css",
|
|
58
|
+
"utility/flex/default/css/default.min.css",
|
|
59
|
+
"utility/font-weight/default/css/default.min.css",
|
|
60
|
+
"utility/pointer-events/default/css/default.min.css",
|
|
61
|
+
"utility/position/default/css/default.min.css",
|
|
62
|
+
"utility/sr-only/default/css/default.min.css",
|
|
63
|
+
"utility/text-align/default/css/default.min.css",
|
|
64
|
+
"utility/text-decoration/default/css/default.min.css"
|
|
65
|
+
],
|
|
66
|
+
"reference": [
|
|
67
|
+
"component/avatars/css/avatars.min.css",
|
|
68
|
+
"component/buttons/css/buttons.min.css",
|
|
69
|
+
"component/context-menu/css/context-menu.min.css",
|
|
70
|
+
"component/icons/css/icons.min.css",
|
|
71
|
+
"component/kbd/css/kbd.min.css",
|
|
72
|
+
"core/css/core.css",
|
|
73
|
+
"smart/chat-interlocutor/css/chat-interlocutor.min.css",
|
|
74
|
+
"utility/align-items/default/css/default.min.css",
|
|
75
|
+
"utility/display/default/css/default.min.css",
|
|
76
|
+
"utility/flex-direction/default/css/default.min.css",
|
|
77
|
+
"utility/flex/default/css/default.min.css",
|
|
78
|
+
"utility/font-weight/default/css/default.min.css",
|
|
79
|
+
"utility/pointer-events/default/css/default.min.css",
|
|
80
|
+
"utility/position/default/css/default.min.css",
|
|
81
|
+
"utility/sr-only/default/css/default.min.css",
|
|
82
|
+
"utility/text-align/default/css/default.min.css",
|
|
83
|
+
"utility/text-decoration/default/css/default.min.css"
|
|
84
|
+
],
|
|
85
|
+
"single": [
|
|
86
|
+
"component/avatars/css/avatars.min.css",
|
|
87
|
+
"component/buttons/css/buttons.min.css",
|
|
88
|
+
"component/context-menu/css/context-menu.min.css",
|
|
89
|
+
"component/icons/css/icons.min.css",
|
|
90
|
+
"component/kbd/css/kbd.min.css",
|
|
91
|
+
"core/css/core.css",
|
|
92
|
+
"smart/chat-interlocutor/css/chat-interlocutor.min.css",
|
|
93
|
+
"utility/align-items/default/css/default.min.css",
|
|
94
|
+
"utility/display/default/css/default.min.css",
|
|
95
|
+
"utility/flex-direction/default/css/default.min.css",
|
|
96
|
+
"utility/flex/default/css/default.min.css",
|
|
97
|
+
"utility/font-weight/default/css/default.min.css",
|
|
98
|
+
"utility/pointer-events/default/css/default.min.css",
|
|
99
|
+
"utility/position/default/css/default.min.css",
|
|
100
|
+
"utility/sr-only/default/css/default.min.css",
|
|
101
|
+
"utility/text-align/default/css/default.min.css",
|
|
102
|
+
"utility/text-decoration/default/css/default.min.css"
|
|
103
|
+
]
|
|
104
|
+
}
|
|
105
|
+
}
|
|
Binary file
|
|
@@ -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
|
+
}
|
|
Binary file
|
|
@@ -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
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
@layer sf.reset, sf.tokens, sf.base, 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
|
+
}
|
|
Binary file
|
|
@@ -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
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,114 @@
|
|
|
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
|
+
}
|
|
Binary file
|