@simai-studio/mail 0.0.0-stage → 1.0.1

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 (191) hide show
  1. package/LICENSE.md +188 -0
  2. package/README.md +79 -2
  3. package/dist/package-receipt.json +1176 -0
  4. package/dist/set.json +97 -0
  5. package/dist/smart/mail-canvas/component.json +562 -0
  6. package/dist/smart/mail-canvas/component.json.gz +0 -0
  7. package/dist/smart/mail-canvas/css/mail-canvas.css +85 -0
  8. package/dist/smart/mail-canvas/css/mail-canvas.css.gz +0 -0
  9. package/dist/smart/mail-canvas/css/mail-canvas.min.css +2 -0
  10. package/dist/smart/mail-canvas/css/mail-canvas.min.css.gz +0 -0
  11. package/dist/smart/mail-canvas/examples.json +731 -0
  12. package/dist/smart/mail-canvas/examples.json.gz +0 -0
  13. package/dist/smart/mail-canvas/js/mail-canvas.js +1039 -0
  14. package/dist/smart/mail-canvas/js/mail-canvas.js.gz +0 -0
  15. package/dist/smart/mail-canvas/js/mail-canvas.min.js +22 -0
  16. package/dist/smart/mail-canvas/js/mail-canvas.min.js.gz +0 -0
  17. package/dist/smart/mail-canvas/lang/en.json +25 -0
  18. package/dist/smart/mail-canvas/lang/en.json.gz +0 -0
  19. package/dist/smart/mail-canvas/lang/ru.json +25 -0
  20. package/dist/smart/mail-canvas/lang/ru.json.gz +0 -0
  21. package/dist/smart/mail-canvas/probe.json +465 -0
  22. package/dist/smart/mail-canvas/probe.json.gz +0 -0
  23. package/dist/smart/mail-canvas/smart.manifest.json +550 -0
  24. package/dist/smart/mail-canvas/smart.manifest.json.gz +0 -0
  25. package/dist/smart/mail-canvas/static/default/notes.html +43 -0
  26. package/dist/smart/mail-canvas/static/default/notes.html.gz +0 -0
  27. package/dist/smart/mail-canvas/static/default/phone.html +43 -0
  28. package/dist/smart/mail-canvas/static/default/phone.html.gz +0 -0
  29. package/dist/smart/mail-canvas/static/default/reference.html +48 -0
  30. package/dist/smart/mail-canvas/static/default/reference.html.gz +0 -0
  31. package/dist/smart/mail-canvas/static/sheets.json +132 -0
  32. package/dist/smart/mail-canvas/static/sheets.json.gz +0 -0
  33. package/dist/smart/mail-canvas/studio.fixture.json +63 -0
  34. package/dist/smart/mail-canvas/studio.fixture.json.gz +0 -0
  35. package/dist/smart/mail-canvas/studio.scenario.json +39 -0
  36. package/dist/smart/mail-canvas/studio.scenario.json.gz +0 -0
  37. package/dist/smart/mail-canvas/template/default.css +73 -0
  38. package/dist/smart/mail-canvas/template/default.css.gz +0 -0
  39. package/dist/smart/mail-canvas/template/default.js +38 -0
  40. package/dist/smart/mail-canvas/template/default.js.gz +0 -0
  41. package/dist/smart/mail-inspector/component.json +768 -0
  42. package/dist/smart/mail-inspector/component.json.gz +0 -0
  43. package/dist/smart/mail-inspector/css/mail-inspector.css +194 -0
  44. package/dist/smart/mail-inspector/css/mail-inspector.css.gz +0 -0
  45. package/dist/smart/mail-inspector/css/mail-inspector.min.css +2 -0
  46. package/dist/smart/mail-inspector/css/mail-inspector.min.css.gz +0 -0
  47. package/dist/smart/mail-inspector/examples.json +1301 -0
  48. package/dist/smart/mail-inspector/examples.json.gz +0 -0
  49. package/dist/smart/mail-inspector/js/mail-inspector.js +1619 -0
  50. package/dist/smart/mail-inspector/js/mail-inspector.js.gz +0 -0
  51. package/dist/smart/mail-inspector/js/mail-inspector.min.js +103 -0
  52. package/dist/smart/mail-inspector/js/mail-inspector.min.js.gz +0 -0
  53. package/dist/smart/mail-inspector/lang/en.json +29 -0
  54. package/dist/smart/mail-inspector/lang/en.json.gz +0 -0
  55. package/dist/smart/mail-inspector/lang/ru.json +29 -0
  56. package/dist/smart/mail-inspector/lang/ru.json.gz +0 -0
  57. package/dist/smart/mail-inspector/probe.json +648 -0
  58. package/dist/smart/mail-inspector/probe.json.gz +0 -0
  59. package/dist/smart/mail-inspector/smart.manifest.json +920 -0
  60. package/dist/smart/mail-inspector/smart.manifest.json.gz +0 -0
  61. package/dist/smart/mail-inspector/static/default/item.html +189 -0
  62. package/dist/smart/mail-inspector/static/default/item.html.gz +0 -0
  63. package/dist/smart/mail-inspector/static/default/letter.html +247 -0
  64. package/dist/smart/mail-inspector/static/default/letter.html.gz +0 -0
  65. package/dist/smart/mail-inspector/static/default/reference.html +545 -0
  66. package/dist/smart/mail-inspector/static/default/reference.html.gz +0 -0
  67. package/dist/smart/mail-inspector/static/sheets.json +226 -0
  68. package/dist/smart/mail-inspector/static/sheets.json.gz +0 -0
  69. package/dist/smart/mail-inspector/studio.fixture.json +232 -0
  70. package/dist/smart/mail-inspector/studio.fixture.json.gz +0 -0
  71. package/dist/smart/mail-inspector/studio.scenario.json +43 -0
  72. package/dist/smart/mail-inspector/studio.scenario.json.gz +0 -0
  73. package/dist/smart/mail-inspector/template/default.css +190 -0
  74. package/dist/smart/mail-inspector/template/default.css.gz +0 -0
  75. package/dist/smart/mail-inspector/template/default.js +249 -0
  76. package/dist/smart/mail-inspector/template/default.js.gz +0 -0
  77. package/dist/smart/mail-letters/component.json +455 -0
  78. package/dist/smart/mail-letters/component.json.gz +0 -0
  79. package/dist/smart/mail-letters/css/mail-letters.css +72 -0
  80. package/dist/smart/mail-letters/css/mail-letters.css.gz +0 -0
  81. package/dist/smart/mail-letters/css/mail-letters.min.css +2 -0
  82. package/dist/smart/mail-letters/css/mail-letters.min.css.gz +0 -0
  83. package/dist/smart/mail-letters/examples.json +477 -0
  84. package/dist/smart/mail-letters/examples.json.gz +0 -0
  85. package/dist/smart/mail-letters/js/mail-letters.js +1772 -0
  86. package/dist/smart/mail-letters/js/mail-letters.js.gz +0 -0
  87. package/dist/smart/mail-letters/js/mail-letters.min.js +35 -0
  88. package/dist/smart/mail-letters/js/mail-letters.min.js.gz +0 -0
  89. package/dist/smart/mail-letters/lang/en.json +29 -0
  90. package/dist/smart/mail-letters/lang/en.json.gz +0 -0
  91. package/dist/smart/mail-letters/lang/ru.json +31 -0
  92. package/dist/smart/mail-letters/lang/ru.json.gz +0 -0
  93. package/dist/smart/mail-letters/probe.json +290 -0
  94. package/dist/smart/mail-letters/probe.json.gz +0 -0
  95. package/dist/smart/mail-letters/smart.manifest.json +476 -0
  96. package/dist/smart/mail-letters/smart.manifest.json.gz +0 -0
  97. package/dist/smart/mail-letters/static/default/by-title.html +177 -0
  98. package/dist/smart/mail-letters/static/default/by-title.html.gz +0 -0
  99. package/dist/smart/mail-letters/static/default/empty.html +88 -0
  100. package/dist/smart/mail-letters/static/default/empty.html.gz +0 -0
  101. package/dist/smart/mail-letters/static/default/nothing-found.html +88 -0
  102. package/dist/smart/mail-letters/static/default/nothing-found.html.gz +0 -0
  103. package/dist/smart/mail-letters/static/default/reference.html +168 -0
  104. package/dist/smart/mail-letters/static/default/reference.html.gz +0 -0
  105. package/dist/smart/mail-letters/static/sheets.json +245 -0
  106. package/dist/smart/mail-letters/static/sheets.json.gz +0 -0
  107. package/dist/smart/mail-letters/studio.fixture.json +41 -0
  108. package/dist/smart/mail-letters/studio.fixture.json.gz +0 -0
  109. package/dist/smart/mail-letters/studio.scenario.json +41 -0
  110. package/dist/smart/mail-letters/studio.scenario.json.gz +0 -0
  111. package/dist/smart/mail-letters/template/default.css +79 -0
  112. package/dist/smart/mail-letters/template/default.css.gz +0 -0
  113. package/dist/smart/mail-letters/template/default.js +61 -0
  114. package/dist/smart/mail-letters/template/default.js.gz +0 -0
  115. package/dist/smart/mail-library/component.json +512 -0
  116. package/dist/smart/mail-library/component.json.gz +0 -0
  117. package/dist/smart/mail-library/css/mail-library.css +149 -0
  118. package/dist/smart/mail-library/css/mail-library.css.gz +0 -0
  119. package/dist/smart/mail-library/css/mail-library.min.css +2 -0
  120. package/dist/smart/mail-library/css/mail-library.min.css.gz +0 -0
  121. package/dist/smart/mail-library/examples.json +616 -0
  122. package/dist/smart/mail-library/examples.json.gz +0 -0
  123. package/dist/smart/mail-library/js/mail-library.js +559 -0
  124. package/dist/smart/mail-library/js/mail-library.js.gz +0 -0
  125. package/dist/smart/mail-library/js/mail-library.min.js +52 -0
  126. package/dist/smart/mail-library/js/mail-library.min.js.gz +0 -0
  127. package/dist/smart/mail-library/lang/en.json +21 -0
  128. package/dist/smart/mail-library/lang/en.json.gz +0 -0
  129. package/dist/smart/mail-library/lang/ru.json +21 -0
  130. package/dist/smart/mail-library/lang/ru.json.gz +0 -0
  131. package/dist/smart/mail-library/probe.json +275 -0
  132. package/dist/smart/mail-library/probe.json.gz +0 -0
  133. package/dist/smart/mail-library/smart.manifest.json +512 -0
  134. package/dist/smart/mail-library/smart.manifest.json.gz +0 -0
  135. package/dist/smart/mail-library/static/default/category.html +85 -0
  136. package/dist/smart/mail-library/static/default/category.html.gz +0 -0
  137. package/dist/smart/mail-library/static/default/nothing-found.html +81 -0
  138. package/dist/smart/mail-library/static/default/nothing-found.html.gz +0 -0
  139. package/dist/smart/mail-library/static/default/one-group.html +67 -0
  140. package/dist/smart/mail-library/static/default/one-group.html.gz +0 -0
  141. package/dist/smart/mail-library/static/default/reference.html +135 -0
  142. package/dist/smart/mail-library/static/default/reference.html.gz +0 -0
  143. package/dist/smart/mail-library/static/sheets.json +180 -0
  144. package/dist/smart/mail-library/static/sheets.json.gz +0 -0
  145. package/dist/smart/mail-library/studio.fixture.json +75 -0
  146. package/dist/smart/mail-library/studio.fixture.json.gz +0 -0
  147. package/dist/smart/mail-library/studio.scenario.json +41 -0
  148. package/dist/smart/mail-library/studio.scenario.json.gz +0 -0
  149. package/dist/smart/mail-library/template/default.css +133 -0
  150. package/dist/smart/mail-library/template/default.css.gz +0 -0
  151. package/dist/smart/mail-library/template/default.js +83 -0
  152. package/dist/smart/mail-library/template/default.js.gz +0 -0
  153. package/dist/smart/mail-structure/component.json +497 -0
  154. package/dist/smart/mail-structure/component.json.gz +0 -0
  155. package/dist/smart/mail-structure/css/mail-structure.css +106 -0
  156. package/dist/smart/mail-structure/css/mail-structure.css.gz +0 -0
  157. package/dist/smart/mail-structure/css/mail-structure.min.css +2 -0
  158. package/dist/smart/mail-structure/css/mail-structure.min.css.gz +0 -0
  159. package/dist/smart/mail-structure/examples.json +286 -0
  160. package/dist/smart/mail-structure/examples.json.gz +0 -0
  161. package/dist/smart/mail-structure/js/mail-structure.js +767 -0
  162. package/dist/smart/mail-structure/js/mail-structure.js.gz +0 -0
  163. package/dist/smart/mail-structure/js/mail-structure.min.js +48 -0
  164. package/dist/smart/mail-structure/js/mail-structure.min.js.gz +0 -0
  165. package/dist/smart/mail-structure/lang/en.json +22 -0
  166. package/dist/smart/mail-structure/lang/en.json.gz +0 -0
  167. package/dist/smart/mail-structure/lang/ru.json +22 -0
  168. package/dist/smart/mail-structure/lang/ru.json.gz +0 -0
  169. package/dist/smart/mail-structure/probe.json +112 -0
  170. package/dist/smart/mail-structure/probe.json.gz +0 -0
  171. package/dist/smart/mail-structure/smart.manifest.json +495 -0
  172. package/dist/smart/mail-structure/smart.manifest.json.gz +0 -0
  173. package/dist/smart/mail-structure/static/default/empty.html +76 -0
  174. package/dist/smart/mail-structure/static/default/empty.html.gz +0 -0
  175. package/dist/smart/mail-structure/static/default/reference.html +98 -0
  176. package/dist/smart/mail-structure/static/default/reference.html.gz +0 -0
  177. package/dist/smart/mail-structure/static/default/settings.html +98 -0
  178. package/dist/smart/mail-structure/static/default/settings.html.gz +0 -0
  179. package/dist/smart/mail-structure/static/sheets.json +142 -0
  180. package/dist/smart/mail-structure/static/sheets.json.gz +0 -0
  181. package/dist/smart/mail-structure/studio.fixture.json +45 -0
  182. package/dist/smart/mail-structure/studio.fixture.json.gz +0 -0
  183. package/dist/smart/mail-structure/studio.scenario.json +42 -0
  184. package/dist/smart/mail-structure/studio.scenario.json.gz +0 -0
  185. package/dist/smart/mail-structure/template/default.css +100 -0
  186. package/dist/smart/mail-structure/template/default.css.gz +0 -0
  187. package/dist/smart/mail-structure/template/default.js +80 -0
  188. package/dist/smart/mail-structure/template/default.js.gz +0 -0
  189. package/dist/smart/rule.js +161 -0
  190. package/dist/smart/rule.js.gz +0 -0
  191. package/package.json +29 -4
@@ -0,0 +1,476 @@
1
+ {
2
+ "schema_version": 2,
3
+ "id": "smart.mail-letters",
4
+ "version": "1.1.3",
5
+ "title": "Emails",
6
+ "summary": "Every letter a person has in SIMAI Email Editor: a search by name, an order, and what each row offers -- «Открыть» and, under ⋯, a copy, a rename and a delete. The moment and the block count are worded in the page's language. The element holds no letter and stores nothing; it says what the person chose.",
7
+ "kind": "smart",
8
+ "reuse_mode": "whole",
9
+ "lifecycle": "experimental",
10
+ "tags": [
11
+ "mail",
12
+ "letters",
13
+ "library",
14
+ "list"
15
+ ],
16
+ "capabilities": [
17
+ "interaction",
18
+ "keyboard",
19
+ "search",
20
+ "responsive"
21
+ ],
22
+ "custom_element": "sf-mail-letters",
23
+ "templates": [
24
+ "default"
25
+ ],
26
+ "exported_parts": [],
27
+ "composition": {
28
+ "uses": [
29
+ "smart.button",
30
+ "smart.button-icon",
31
+ "smart.dropdown",
32
+ "smart.empty-state",
33
+ "smart.input",
34
+ "smart.menu-context"
35
+ ],
36
+ "public_parts": []
37
+ },
38
+ "inputs": {
39
+ "type": "object",
40
+ "properties": {
41
+ "template": {
42
+ "type": "string",
43
+ "default": "default",
44
+ "description": "Template variant name for SfBaseElement external templates.",
45
+ "const": "default"
46
+ },
47
+ "root-class": {
48
+ "type": "string",
49
+ "default": "",
50
+ "description": "Classes added to the root element the component draws."
51
+ },
52
+ "root-style": {
53
+ "type": "string",
54
+ "default": "",
55
+ "description": "Inline style declarations set on the root element the component draws, custom properties included."
56
+ },
57
+ "query": {
58
+ "type": "string",
59
+ "default": "",
60
+ "description": "The search by name; the field inside the element writes it while the person types."
61
+ },
62
+ "order": {
63
+ "type": "string",
64
+ "default": "changed",
65
+ "description": "changed (the newest first) or title (by name, sorted in the page's language); the order control inside the element writes it.",
66
+ "enum": [
67
+ "changed",
68
+ "title"
69
+ ]
70
+ },
71
+ "current": {
72
+ "type": "string",
73
+ "default": "",
74
+ "description": "The letter open in the editor: its row is marked, says «открыто сейчас» and offers no «Открыть»."
75
+ },
76
+ "letters": {
77
+ "type": "array",
78
+ "default": [],
79
+ "items": {
80
+ "type": "object",
81
+ "properties": {
82
+ "id": {
83
+ "type": "string"
84
+ },
85
+ "title": {
86
+ "type": "string"
87
+ },
88
+ "at": {
89
+ "type": "string"
90
+ },
91
+ "blocks": {
92
+ "type": "integer"
93
+ }
94
+ },
95
+ "required": [
96
+ "id",
97
+ "title"
98
+ ]
99
+ },
100
+ "description": "The letters, one row each: {id, title, at, blocks}. at is the moment the letter changed; the row words it («5 минут назад») and the block count («4 блока») in the page's language."
101
+ }
102
+ },
103
+ "additionalProperties": false
104
+ },
105
+ "item_contract": {},
106
+ "contracts": {
107
+ "letter": {
108
+ "type": "object",
109
+ "properties": {
110
+ "id": {
111
+ "type": "string",
112
+ "description": "The letter's id: what the events carry."
113
+ },
114
+ "title": {
115
+ "type": "string",
116
+ "description": "Its name, drawn as text."
117
+ },
118
+ "at": {
119
+ "type": "string",
120
+ "description": "The moment it changed (ISO 8601), worded by the row."
121
+ },
122
+ "blocks": {
123
+ "type": "integer",
124
+ "description": "How many blocks it has, worded with its plural form."
125
+ }
126
+ },
127
+ "required": [
128
+ "id",
129
+ "title"
130
+ ]
131
+ },
132
+ "choice": {
133
+ "const": "«Открыть» dispatches sf-mail-letters-open {id}; the ⋯ menu sf-mail-letters-copy {id}, sf-mail-letters-rename {id} and sf-mail-letters-delete {ids, id}; «Новое письмо» sf-mail-letters-create {}. The element opens, copies, renames and deletes nothing: the host does, and passes letters back."
134
+ }
135
+ },
136
+ "methods": {
137
+ "search": {
138
+ "summary": "Search as the field does: sets query.",
139
+ "arguments": [
140
+ {
141
+ "name": "args",
142
+ "type": "object",
143
+ "required": true,
144
+ "schema": {
145
+ "type": "object",
146
+ "properties": {
147
+ "query": {
148
+ "type": "string"
149
+ }
150
+ },
151
+ "required": [
152
+ "query"
153
+ ]
154
+ }
155
+ }
156
+ ],
157
+ "returns": {
158
+ "type": "object",
159
+ "description": "{outcome: applied}"
160
+ }
161
+ },
162
+ "sort": {
163
+ "summary": "Order the rows as the order control does; refused unknown for an order that is not changed or title.",
164
+ "arguments": [
165
+ {
166
+ "name": "args",
167
+ "type": "object",
168
+ "required": true,
169
+ "schema": {
170
+ "type": "object",
171
+ "properties": {
172
+ "order": {
173
+ "enum": [
174
+ "changed",
175
+ "title"
176
+ ]
177
+ }
178
+ },
179
+ "required": [
180
+ "order"
181
+ ]
182
+ }
183
+ }
184
+ ],
185
+ "returns": {
186
+ "type": "object",
187
+ "description": "{outcome: applied} or {outcome: refused, reason: unknown}"
188
+ }
189
+ },
190
+ "choose": {
191
+ "summary": "Do what a row or the bar would: sends open, copy, rename, delete or create; refused current for opening the letter open now.",
192
+ "arguments": [
193
+ {
194
+ "name": "args",
195
+ "type": "object",
196
+ "required": true,
197
+ "schema": {
198
+ "type": "object",
199
+ "properties": {
200
+ "action": {
201
+ "enum": [
202
+ "open",
203
+ "copy",
204
+ "rename",
205
+ "delete",
206
+ "create"
207
+ ]
208
+ },
209
+ "id": {}
210
+ },
211
+ "required": [
212
+ "action"
213
+ ]
214
+ }
215
+ }
216
+ ],
217
+ "returns": {
218
+ "type": "object",
219
+ "description": "{outcome: applied} or {outcome: refused, reason: unknown | current}"
220
+ }
221
+ }
222
+ },
223
+ "events": {
224
+ "sf-mail-letters-open": {
225
+ "summary": "Open this letter: {id}. The current letter is not offered.",
226
+ "payload": {
227
+ "type": "object",
228
+ "required": [
229
+ "id"
230
+ ],
231
+ "properties": {
232
+ "id": {}
233
+ },
234
+ "additionalProperties": true
235
+ }
236
+ },
237
+ "sf-mail-letters-copy": {
238
+ "summary": "Make a copy of this letter: {id}.",
239
+ "payload": {
240
+ "type": "object",
241
+ "required": [
242
+ "id"
243
+ ],
244
+ "properties": {
245
+ "id": {}
246
+ },
247
+ "additionalProperties": true
248
+ }
249
+ },
250
+ "sf-mail-letters-rename": {
251
+ "summary": "Rename this letter: {id}. The host asks for the new name.",
252
+ "payload": {
253
+ "type": "object",
254
+ "required": [
255
+ "id"
256
+ ],
257
+ "properties": {
258
+ "id": {}
259
+ },
260
+ "additionalProperties": true
261
+ }
262
+ },
263
+ "sf-mail-letters-delete": {
264
+ "summary": "Delete this letter: {ids: [id], id}. The host confirms and deletes.",
265
+ "payload": {
266
+ "type": "object",
267
+ "required": [
268
+ "ids",
269
+ "id"
270
+ ],
271
+ "properties": {
272
+ "ids": {
273
+ "type": "array"
274
+ },
275
+ "id": {}
276
+ },
277
+ "additionalProperties": true
278
+ }
279
+ },
280
+ "sf-mail-letters-create": {
281
+ "summary": "A new letter was asked for.",
282
+ "payload": {
283
+ "type": "object",
284
+ "required": [],
285
+ "properties": {},
286
+ "additionalProperties": true
287
+ }
288
+ }
289
+ },
290
+ "state": {
291
+ "machines": {
292
+ "order": [
293
+ "changed",
294
+ "title"
295
+ ],
296
+ "search": [
297
+ "empty",
298
+ "filtered",
299
+ "nothing-found"
300
+ ]
301
+ },
302
+ "visual_states": [
303
+ "default",
304
+ "selected",
305
+ "empty",
306
+ "open",
307
+ "closed"
308
+ ]
309
+ },
310
+ "persistence": {
311
+ "mode": "none",
312
+ "source_of_truth": "host",
313
+ "network_owner": "host",
314
+ "revision_field": null
315
+ },
316
+ "ownership": {
317
+ "source": "simai/ui-pro",
318
+ "data": "host",
319
+ "effects": "host",
320
+ "forbidden_client_responsibilities": [
321
+ "opening, copying, renaming or deleting a letter",
322
+ "reading or writing the letter store",
323
+ "asking for a new name or confirming a delete"
324
+ ]
325
+ },
326
+ "security": {
327
+ "permissions_owner": "host",
328
+ "untrusted_inputs": [
329
+ "letter titles (drawn as text)"
330
+ ],
331
+ "network_policy": "deny"
332
+ },
333
+ "accessibility": {
334
+ "role": "list",
335
+ "accessible_name": "internal",
336
+ "keyboard": [
337
+ "Tab",
338
+ "Enter",
339
+ "Space"
340
+ ],
341
+ "focus": "The bar comes first -- the search, the order, «Новое письмо» -- then every row's «Открыть» and its ⋯ in the tab order; the menu is sf-menu-context and keeps its own keyboard. A row's ⋯ is named «Действия с письмом: <name>», so two rows never sound alike. The open letter's row says «открыто сейчас» in its own words, not by colour alone, and offers no «Открыть»."
342
+ },
343
+ "presentation": {
344
+ "themes": [
345
+ "light",
346
+ "dark"
347
+ ],
348
+ "locales": [
349
+ "en",
350
+ "ru"
351
+ ],
352
+ "responsive": [
353
+ "desktop",
354
+ "mobile"
355
+ ]
356
+ },
357
+ "adapter": {
358
+ "kind": "generic",
359
+ "protocol": "simai.smart-studio-adapter.v1",
360
+ "module": null
361
+ },
362
+ "artifacts": {
363
+ "fixtures": [
364
+ "studio.fixture.json"
365
+ ],
366
+ "scenarios": [
367
+ "studio.scenario.json"
368
+ ]
369
+ },
370
+ "readiness": {
371
+ "level": "host-required",
372
+ "required_checks": [
373
+ "manifest",
374
+ "loader-rule",
375
+ "mail-letters-probe"
376
+ ]
377
+ },
378
+ "compatibility": {
379
+ "contract_schema": {
380
+ "id": "https://simai.io/contracts/smart-component-manifest.v2.schema.json",
381
+ "version": 2
382
+ },
383
+ "runtime_pair": {
384
+ "ui_revision": "e2cff39223f1a4b004dafe332f081e5178fad2f3",
385
+ "ui_smart_revision": "e2cff39223f1a4b004dafe332f081e5178fad2f3"
386
+ },
387
+ "aliases": [],
388
+ "deprecations": [],
389
+ "replacement": null,
390
+ "migrations": [
391
+ {
392
+ "from": "0.1.0",
393
+ "to": "1.0.0",
394
+ "changes": [
395
+ "moved from simai/ui-mail to ui-pro (D31): standard simai.smart-component 1.4, the element is made from component.json; words in lang/",
396
+ "sf-mail-letters-new -> sf-mail-letters-create (event; never released, no alias)",
397
+ "sf-mail-letters-delete carries {ids, id} (was {id})",
398
+ "choose, search and sort are actions"
399
+ ]
400
+ },
401
+ {
402
+ "from": "1.0.0",
403
+ "to": "1.0.1",
404
+ "changes": [
405
+ "The letter's relative time through core's formatRelativeTime; needs core.runtime >= 1.20.0. No visible change. Nothing to change for a host on a pair from core.runtime 1.20.0 on."
406
+ ]
407
+ },
408
+ {
409
+ "from": "1.0.1",
410
+ "to": "1.0.2",
411
+ "changes": [
412
+ "Draws and finds the renamed Framework elements by their new tags (the row's ⋯ is sf-button-icon, its menu sf-menu-context); the rule relations name cl-<new>. Needs the SIMAI Framework pair with the tag renames (core.runtime 1.21.0). No visible change. Nothing to change for a host on that pair; a host that writes the former tags keeps working until 2027-01-01."
413
+ ]
414
+ }
415
+ ]
416
+ },
417
+ "provenance": {
418
+ "source_repository": "simai/ui-pro",
419
+ "source_revision": "a5ac53753d95b49e2e70078c94fd89ccd3045993",
420
+ "source_artifacts": [
421
+ {
422
+ "path": "src/smart/mail-letters/index.js",
423
+ "sha256": "b800d4c22abb97ae816d7d2578354923520358fe9d814d2bc46dc32a5a8cefa6"
424
+ },
425
+ {
426
+ "path": "src/smart/mail-letters/js/templates/default.js",
427
+ "sha256": "02c92f274c7056a360fa35de22522ad65ddfc00ee09b874abc29a93679c7b1cc"
428
+ },
429
+ {
430
+ "path": "src/smart/mail-letters/js/templates/default.css",
431
+ "sha256": "034473469050d0d6222cd8cee21a3241624e13e181b004fd4b3c22e4bfb2f7c0"
432
+ },
433
+ {
434
+ "path": "src/smart/mail-letters/rule.js",
435
+ "sha256": "baeebdba443b65d26aa37e5a36acb2ddb3adafe65bfb2988abab8a18be7e298a"
436
+ },
437
+ {
438
+ "path": "src/smart/mail-letters/docs.md",
439
+ "sha256": "f16b481bc1aae1eabc7e8beab67424b3293409d9e4a89561d42fbc15d9a694bd"
440
+ },
441
+ {
442
+ "path": "src/smart/mail-letters/component.json",
443
+ "sha256": "e8b2bf735b0015d5adf6d19e6938d1c43e50b8ff1380778ab3158cdc7808348d"
444
+ },
445
+ {
446
+ "path": "src/smart/mail-letters/lang/en.json",
447
+ "sha256": "7545e7ab1c08ff88e5ff1f283c4428aaad4efa4c3f7cae526161753e0e60456d"
448
+ },
449
+ {
450
+ "path": "src/smart/mail-letters/lang/ru.json",
451
+ "sha256": "c649853f95213969a42591c5a18946abf564736d5c8d9d56b105fb18831473c5"
452
+ }
453
+ ],
454
+ "generated_runtime": []
455
+ },
456
+ "ai_guidance": {
457
+ "use_when": "Use sf-mail-letters wherever a person picks among the letters they have in SIMAI Email Editor.",
458
+ "do_not": [
459
+ "Do not open, copy, rename or delete in the element; listen for its events and do it in the host",
460
+ "Do not pass a worded date in at; pass the moment and let the row word it",
461
+ "Do not confirm a delete inside the element; the host asks",
462
+ "Do not draw a second search field or order control beside it; set query and order instead"
463
+ ],
464
+ "required_reads": [
465
+ "inputs",
466
+ "contracts",
467
+ "events",
468
+ "accessibility"
469
+ ],
470
+ "minimal_example": "<sf-mail-letters id=\"letters\"></sf-mail-letters> <script>letters.letters = [{id: 'prj_1', title: 'Осенняя рассылка', at: '2026-10-29T08:00:00Z', blocks: 7}];</script>",
471
+ "owner_commands": [
472
+ "node scripts/test.mjs",
473
+ "node scripts/run-manifest-probes.mjs <free output> <package output> mail-letters"
474
+ ]
475
+ }
476
+ }
@@ -0,0 +1,177 @@
1
+ <!-- sf-mail-letters, example «by-title»: 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-mail-letters order="title" style="display: contents;"><script type="application/json" data-sf-settings>{"letters":[{"id":"prj_1","title":"Осенняя рассылка","at":"2026-10-27T08:55:00Z","blocks":7},{"id":"prj_2","title":"Приглашение","at":"2026-10-26T07:00:00Z","blocks":4},{"id":"prj_3","title":"Анонс вебинара","at":"2026-10-18T09:00:00Z","blocks":11},{"id":"prj_4","title":"Летняя распродажа","at":"2026-09-17T09:00:00Z","blocks":1}]}</script>
3
+ <div class="sf-mail-letters" data-sf-static>
4
+ <div class="sf-mail-letters-bar">
5
+ <sf-input class="sf-mail-letters-search" input-type="search" size="1/2" label="Поиск по названию" value style="display: contents;" data-sf-size-relative>
6
+ <label class="sf-input sf-input--size-1/2 sf-input--bordered flex flex-col" data-mask="false" data-mask-pattern data-mask-lazy data-mask-placeholder-char data-mask-options data-sf-input-bound="1" for="sf-mail-letters-by-title-2" data-sf-static>
7
+
8
+ <span class="sf-input-label flex">
9
+
10
+ <span class="sf-input-text" id="sf-mail-letters-by-title-1">Поиск по названию</span>
11
+
12
+
13
+
14
+ </span>
15
+
16
+ <span class="sf-input-field items-cross-center transition flex">
17
+
18
+
19
+ <input id="sf-mail-letters-by-title-2" type="search" placeholder value data-mask="false" data-mask-pattern data-mask-lazy data-mask-placeholder-char data-mask-options aria-labelledby="sf-mail-letters-by-title-1">
20
+
21
+
22
+
23
+
24
+
25
+ <button type="button" class="sf-field-action sf-input-clear" data-action="clear" tabindex="-1" aria-label="Очистить" hidden></button>
26
+
27
+
28
+
29
+
30
+
31
+ </span>
32
+
33
+
34
+ </label>
35
+ </sf-input>
36
+ <sf-dropdown class="sf-mail-letters-order" size="1/2" label="Порядок" value="title" style="display: contents;" data-sf-size-relative>
37
+ <div class="sf-dropdown sf-dropdown--size-1/2 sf-dropdown--outlined sf-dropdown--text flex flex-col" portal data-portal="true" data-sf-static>
38
+
39
+ <span class="sf-dropdown-label flex">
40
+ <span class="sf-dropdown-text" id="sf-mail-letters-by-title-3">Порядок</span>
41
+
42
+
43
+ </span>
44
+
45
+
46
+ <label class="sf-dropdown-field cursor-pointer items-cross-center relative transition flex" tabindex="-1">
47
+
48
+
49
+ <input type="text" class="cursor-pointer" readonly placeholder="Не выбрано" aria-label="Порядок" tabindex="-1" value="По названию">
50
+
51
+ <button type="button" class="sf-field-action sf-field-action--indicator sf-dropdown-chevron absolute" id="sf-mail-letters-by-title-4" tabindex="0" aria-expanded="false" aria-haspopup="listbox" aria-controls="sf-dropdown-1--listbox" aria-describedby="sf-mail-letters-by-title-5" aria-labelledby="sf-mail-letters-by-title-3">
52
+ <sf-icon aria-hidden="true" icon="keyboard_arrow_down" style="display: contents;"><i class="sf-icon" aria-hidden="true" data-sf-static>keyboard_arrow_down</i></sf-icon>
53
+ </button>
54
+ </label>
55
+
56
+
57
+ <div class="sf-list sf-list--size-1/2 flex flex-col" style="--sf-list--cell: var(--sf-ui-1\/2--control-height)" hidden></div>
58
+ <span class="sf-dropdown-value" id="sf-mail-letters-by-title-5">По названию</span></div>
59
+ </sf-dropdown>
60
+ <sf-button class="sf-mail-letters-new" size="1/2" icon-start="add" text="Новое письмо" style="display: contents;" data-sf-size-relative>
61
+ <button type="button" class="sf-button sf-button--size-1/2 sf-button--default sf-button--primary flex items-cross-center" data-action="create" data-sf-static>
62
+
63
+ <sf-icon root-class="pointer-events-none" aria-hidden="true" icon="add" style="display: contents;"><i class="sf-icon pointer-events-none" aria-hidden="true" data-sf-static>add</i></sf-icon>
64
+ <span class="sf-button-text-container text-center pointer-events-none">
65
+ Новое письмо
66
+ </span>
67
+
68
+ </button>
69
+ </sf-button>
70
+ </div>
71
+ <ul class="sf-mail-letters-list">
72
+ <li class="sf-mail-letters-row" data-letter="prj_3">
73
+ <span class="sf-mail-letters-words">
74
+ <span class="sf-mail-letters-title">Анонс вебинара</span>
75
+ <span class="sf-mail-letters-summary">на прошлой неделе · 11 блоков</span>
76
+ </span>
77
+ <span class="sf-mail-letters-actions">
78
+ <sf-button size="1/2" appearance="outline" text="Открыть" style="display: contents;" data-sf-size-relative>
79
+ <button type="button" class="sf-button sf-button--size-1/2 sf-button--outline sf-button--primary flex items-cross-center" data-action="open" data-sf-static>
80
+
81
+
82
+ <span class="sf-button-text-container text-center pointer-events-none flex-1">
83
+ Открыть
84
+ </span>
85
+
86
+ </button>
87
+ </sf-button>
88
+ <sf-button-icon size="1/2" appearance="ghost" scheme="on-surface-variant" icon="more_horiz" aria-label="Действия с письмом: Анонс вебинара" style="display: contents;" data-sf-size-relative>
89
+ <button type="button" class="sf-icon-button sf-icon-button--size-1/2 sf-icon-button--icon sf-icon-button--ghost flex items-cross-center sf-icon-button--on-surface-variant" aria-label="Действия с письмом: Анонс вебинара" data-action="more" data-sf-static>
90
+
91
+ <sf-icon root-class="pointer-events-none" weight="400" aria-hidden="true" filled="false" icon="more_horiz" style="display: contents;"><i class="sf-icon sf-icon--weight-regular pointer-events-none" aria-hidden="true" data-sf-static>more_horiz</i></sf-icon>
92
+ </button>
93
+ </sf-button-icon>
94
+ </span>
95
+ </li>
96
+
97
+ <li class="sf-mail-letters-row" data-letter="prj_4">
98
+ <span class="sf-mail-letters-words">
99
+ <span class="sf-mail-letters-title">Летняя распродажа</span>
100
+ <span class="sf-mail-letters-summary">в прошлом месяце · 1 блок</span>
101
+ </span>
102
+ <span class="sf-mail-letters-actions">
103
+ <sf-button size="1/2" appearance="outline" text="Открыть" style="display: contents;" data-sf-size-relative>
104
+ <button type="button" class="sf-button sf-button--size-1/2 sf-button--outline sf-button--primary flex items-cross-center" data-action="open" data-sf-static>
105
+
106
+
107
+ <span class="sf-button-text-container text-center pointer-events-none flex-1">
108
+ Открыть
109
+ </span>
110
+
111
+ </button>
112
+ </sf-button>
113
+ <sf-button-icon size="1/2" appearance="ghost" scheme="on-surface-variant" icon="more_horiz" aria-label="Действия с письмом: Летняя распродажа" style="display: contents;" data-sf-size-relative>
114
+ <button type="button" class="sf-icon-button sf-icon-button--size-1/2 sf-icon-button--icon sf-icon-button--ghost flex items-cross-center sf-icon-button--on-surface-variant" aria-label="Действия с письмом: Летняя распродажа" data-action="more" data-sf-static>
115
+
116
+ <sf-icon root-class="pointer-events-none" weight="400" aria-hidden="true" filled="false" icon="more_horiz" style="display: contents;"><i class="sf-icon sf-icon--weight-regular pointer-events-none" aria-hidden="true" data-sf-static>more_horiz</i></sf-icon>
117
+ </button>
118
+ </sf-button-icon>
119
+ </span>
120
+ </li>
121
+
122
+ <li class="sf-mail-letters-row" data-letter="prj_1">
123
+ <span class="sf-mail-letters-words">
124
+ <span class="sf-mail-letters-title">Осенняя рассылка</span>
125
+ <span class="sf-mail-letters-summary">5 минут назад · 7 блоков</span>
126
+ </span>
127
+ <span class="sf-mail-letters-actions">
128
+ <sf-button size="1/2" appearance="outline" text="Открыть" style="display: contents;" data-sf-size-relative>
129
+ <button type="button" class="sf-button sf-button--size-1/2 sf-button--outline sf-button--primary flex items-cross-center" data-action="open" data-sf-static>
130
+
131
+
132
+ <span class="sf-button-text-container text-center pointer-events-none flex-1">
133
+ Открыть
134
+ </span>
135
+
136
+ </button>
137
+ </sf-button>
138
+ <sf-button-icon size="1/2" appearance="ghost" scheme="on-surface-variant" icon="more_horiz" aria-label="Действия с письмом: Осенняя рассылка" style="display: contents;" data-sf-size-relative>
139
+ <button type="button" class="sf-icon-button sf-icon-button--size-1/2 sf-icon-button--icon sf-icon-button--ghost flex items-cross-center sf-icon-button--on-surface-variant" aria-label="Действия с письмом: Осенняя рассылка" data-action="more" data-sf-static>
140
+
141
+ <sf-icon root-class="pointer-events-none" weight="400" aria-hidden="true" filled="false" icon="more_horiz" style="display: contents;"><i class="sf-icon sf-icon--weight-regular pointer-events-none" aria-hidden="true" data-sf-static>more_horiz</i></sf-icon>
142
+ </button>
143
+ </sf-button-icon>
144
+ </span>
145
+ </li>
146
+
147
+ <li class="sf-mail-letters-row" data-letter="prj_2">
148
+ <span class="sf-mail-letters-words">
149
+ <span class="sf-mail-letters-title">Приглашение</span>
150
+ <span class="sf-mail-letters-summary">вчера · 4 блока</span>
151
+ </span>
152
+ <span class="sf-mail-letters-actions">
153
+ <sf-button size="1/2" appearance="outline" text="Открыть" style="display: contents;" data-sf-size-relative>
154
+ <button type="button" class="sf-button sf-button--size-1/2 sf-button--outline sf-button--primary flex items-cross-center" data-action="open" data-sf-static>
155
+
156
+
157
+ <span class="sf-button-text-container text-center pointer-events-none flex-1">
158
+ Открыть
159
+ </span>
160
+
161
+ </button>
162
+ </sf-button>
163
+ <sf-button-icon size="1/2" appearance="ghost" scheme="on-surface-variant" icon="more_horiz" aria-label="Действия с письмом: Приглашение" style="display: contents;" data-sf-size-relative>
164
+ <button type="button" class="sf-icon-button sf-icon-button--size-1/2 sf-icon-button--icon sf-icon-button--ghost flex items-cross-center sf-icon-button--on-surface-variant" aria-label="Действия с письмом: Приглашение" data-action="more" data-sf-static>
165
+
166
+ <sf-icon root-class="pointer-events-none" weight="400" aria-hidden="true" filled="false" icon="more_horiz" style="display: contents;"><i class="sf-icon sf-icon--weight-regular pointer-events-none" aria-hidden="true" data-sf-static>more_horiz</i></sf-icon>
167
+ </button>
168
+ </sf-button-icon>
169
+ </span>
170
+ </li>
171
+ </ul>
172
+
173
+ <sf-menu-context class="sf-mail-letters-menu" popup style="display: contents;">
174
+ <div class="sf-context-menu" role="menu" data-sf-static></div>
175
+ </sf-menu-context>
176
+ </div>
177
+ </sf-mail-letters>