@simai-studio/mail 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 +188 -0
- package/README.md +79 -2
- package/dist/package-receipt.json +1176 -0
- package/dist/set.json +97 -0
- package/dist/smart/mail-canvas/component.json +562 -0
- package/dist/smart/mail-canvas/component.json.gz +0 -0
- package/dist/smart/mail-canvas/css/mail-canvas.css +85 -0
- package/dist/smart/mail-canvas/css/mail-canvas.css.gz +0 -0
- package/dist/smart/mail-canvas/css/mail-canvas.min.css +2 -0
- package/dist/smart/mail-canvas/css/mail-canvas.min.css.gz +0 -0
- package/dist/smart/mail-canvas/examples.json +731 -0
- package/dist/smart/mail-canvas/examples.json.gz +0 -0
- package/dist/smart/mail-canvas/js/mail-canvas.js +1039 -0
- package/dist/smart/mail-canvas/js/mail-canvas.js.gz +0 -0
- package/dist/smart/mail-canvas/js/mail-canvas.min.js +22 -0
- package/dist/smart/mail-canvas/js/mail-canvas.min.js.gz +0 -0
- package/dist/smart/mail-canvas/lang/en.json +25 -0
- package/dist/smart/mail-canvas/lang/en.json.gz +0 -0
- package/dist/smart/mail-canvas/lang/ru.json +25 -0
- package/dist/smart/mail-canvas/lang/ru.json.gz +0 -0
- package/dist/smart/mail-canvas/probe.json +465 -0
- package/dist/smart/mail-canvas/probe.json.gz +0 -0
- package/dist/smart/mail-canvas/smart.manifest.json +550 -0
- package/dist/smart/mail-canvas/smart.manifest.json.gz +0 -0
- package/dist/smart/mail-canvas/static/default/notes.html +43 -0
- package/dist/smart/mail-canvas/static/default/notes.html.gz +0 -0
- package/dist/smart/mail-canvas/static/default/phone.html +43 -0
- package/dist/smart/mail-canvas/static/default/phone.html.gz +0 -0
- package/dist/smart/mail-canvas/static/default/reference.html +48 -0
- package/dist/smart/mail-canvas/static/default/reference.html.gz +0 -0
- package/dist/smart/mail-canvas/static/sheets.json +132 -0
- package/dist/smart/mail-canvas/static/sheets.json.gz +0 -0
- package/dist/smart/mail-canvas/studio.fixture.json +63 -0
- package/dist/smart/mail-canvas/studio.fixture.json.gz +0 -0
- package/dist/smart/mail-canvas/studio.scenario.json +39 -0
- package/dist/smart/mail-canvas/studio.scenario.json.gz +0 -0
- package/dist/smart/mail-canvas/template/default.css +73 -0
- package/dist/smart/mail-canvas/template/default.css.gz +0 -0
- package/dist/smart/mail-canvas/template/default.js +38 -0
- package/dist/smart/mail-canvas/template/default.js.gz +0 -0
- package/dist/smart/mail-inspector/component.json +768 -0
- package/dist/smart/mail-inspector/component.json.gz +0 -0
- package/dist/smart/mail-inspector/css/mail-inspector.css +194 -0
- package/dist/smart/mail-inspector/css/mail-inspector.css.gz +0 -0
- package/dist/smart/mail-inspector/css/mail-inspector.min.css +2 -0
- package/dist/smart/mail-inspector/css/mail-inspector.min.css.gz +0 -0
- package/dist/smart/mail-inspector/examples.json +1301 -0
- package/dist/smart/mail-inspector/examples.json.gz +0 -0
- package/dist/smart/mail-inspector/js/mail-inspector.js +1619 -0
- package/dist/smart/mail-inspector/js/mail-inspector.js.gz +0 -0
- package/dist/smart/mail-inspector/js/mail-inspector.min.js +103 -0
- package/dist/smart/mail-inspector/js/mail-inspector.min.js.gz +0 -0
- package/dist/smart/mail-inspector/lang/en.json +29 -0
- package/dist/smart/mail-inspector/lang/en.json.gz +0 -0
- package/dist/smart/mail-inspector/lang/ru.json +29 -0
- package/dist/smart/mail-inspector/lang/ru.json.gz +0 -0
- package/dist/smart/mail-inspector/probe.json +648 -0
- package/dist/smart/mail-inspector/probe.json.gz +0 -0
- package/dist/smart/mail-inspector/smart.manifest.json +920 -0
- package/dist/smart/mail-inspector/smart.manifest.json.gz +0 -0
- package/dist/smart/mail-inspector/static/default/item.html +189 -0
- package/dist/smart/mail-inspector/static/default/item.html.gz +0 -0
- package/dist/smart/mail-inspector/static/default/letter.html +247 -0
- package/dist/smart/mail-inspector/static/default/letter.html.gz +0 -0
- package/dist/smart/mail-inspector/static/default/reference.html +545 -0
- package/dist/smart/mail-inspector/static/default/reference.html.gz +0 -0
- package/dist/smart/mail-inspector/static/sheets.json +226 -0
- package/dist/smart/mail-inspector/static/sheets.json.gz +0 -0
- package/dist/smart/mail-inspector/studio.fixture.json +232 -0
- package/dist/smart/mail-inspector/studio.fixture.json.gz +0 -0
- package/dist/smart/mail-inspector/studio.scenario.json +43 -0
- package/dist/smart/mail-inspector/studio.scenario.json.gz +0 -0
- package/dist/smart/mail-inspector/template/default.css +190 -0
- package/dist/smart/mail-inspector/template/default.css.gz +0 -0
- package/dist/smart/mail-inspector/template/default.js +249 -0
- package/dist/smart/mail-inspector/template/default.js.gz +0 -0
- package/dist/smart/mail-letters/component.json +455 -0
- package/dist/smart/mail-letters/component.json.gz +0 -0
- package/dist/smart/mail-letters/css/mail-letters.css +72 -0
- package/dist/smart/mail-letters/css/mail-letters.css.gz +0 -0
- package/dist/smart/mail-letters/css/mail-letters.min.css +2 -0
- package/dist/smart/mail-letters/css/mail-letters.min.css.gz +0 -0
- package/dist/smart/mail-letters/examples.json +477 -0
- package/dist/smart/mail-letters/examples.json.gz +0 -0
- package/dist/smart/mail-letters/js/mail-letters.js +1772 -0
- package/dist/smart/mail-letters/js/mail-letters.js.gz +0 -0
- package/dist/smart/mail-letters/js/mail-letters.min.js +35 -0
- package/dist/smart/mail-letters/js/mail-letters.min.js.gz +0 -0
- package/dist/smart/mail-letters/lang/en.json +29 -0
- package/dist/smart/mail-letters/lang/en.json.gz +0 -0
- package/dist/smart/mail-letters/lang/ru.json +31 -0
- package/dist/smart/mail-letters/lang/ru.json.gz +0 -0
- package/dist/smart/mail-letters/probe.json +290 -0
- package/dist/smart/mail-letters/probe.json.gz +0 -0
- package/dist/smart/mail-letters/smart.manifest.json +476 -0
- package/dist/smart/mail-letters/smart.manifest.json.gz +0 -0
- package/dist/smart/mail-letters/static/default/by-title.html +177 -0
- package/dist/smart/mail-letters/static/default/by-title.html.gz +0 -0
- package/dist/smart/mail-letters/static/default/empty.html +88 -0
- package/dist/smart/mail-letters/static/default/empty.html.gz +0 -0
- package/dist/smart/mail-letters/static/default/nothing-found.html +88 -0
- package/dist/smart/mail-letters/static/default/nothing-found.html.gz +0 -0
- package/dist/smart/mail-letters/static/default/reference.html +168 -0
- package/dist/smart/mail-letters/static/default/reference.html.gz +0 -0
- package/dist/smart/mail-letters/static/sheets.json +245 -0
- package/dist/smart/mail-letters/static/sheets.json.gz +0 -0
- package/dist/smart/mail-letters/studio.fixture.json +41 -0
- package/dist/smart/mail-letters/studio.fixture.json.gz +0 -0
- package/dist/smart/mail-letters/studio.scenario.json +41 -0
- package/dist/smart/mail-letters/studio.scenario.json.gz +0 -0
- package/dist/smart/mail-letters/template/default.css +79 -0
- package/dist/smart/mail-letters/template/default.css.gz +0 -0
- package/dist/smart/mail-letters/template/default.js +61 -0
- package/dist/smart/mail-letters/template/default.js.gz +0 -0
- package/dist/smart/mail-library/component.json +512 -0
- package/dist/smart/mail-library/component.json.gz +0 -0
- package/dist/smart/mail-library/css/mail-library.css +149 -0
- package/dist/smart/mail-library/css/mail-library.css.gz +0 -0
- package/dist/smart/mail-library/css/mail-library.min.css +2 -0
- package/dist/smart/mail-library/css/mail-library.min.css.gz +0 -0
- package/dist/smart/mail-library/examples.json +616 -0
- package/dist/smart/mail-library/examples.json.gz +0 -0
- package/dist/smart/mail-library/js/mail-library.js +559 -0
- package/dist/smart/mail-library/js/mail-library.js.gz +0 -0
- package/dist/smart/mail-library/js/mail-library.min.js +52 -0
- package/dist/smart/mail-library/js/mail-library.min.js.gz +0 -0
- package/dist/smart/mail-library/lang/en.json +21 -0
- package/dist/smart/mail-library/lang/en.json.gz +0 -0
- package/dist/smart/mail-library/lang/ru.json +21 -0
- package/dist/smart/mail-library/lang/ru.json.gz +0 -0
- package/dist/smart/mail-library/probe.json +275 -0
- package/dist/smart/mail-library/probe.json.gz +0 -0
- package/dist/smart/mail-library/smart.manifest.json +512 -0
- package/dist/smart/mail-library/smart.manifest.json.gz +0 -0
- package/dist/smart/mail-library/static/default/category.html +85 -0
- package/dist/smart/mail-library/static/default/category.html.gz +0 -0
- package/dist/smart/mail-library/static/default/nothing-found.html +81 -0
- package/dist/smart/mail-library/static/default/nothing-found.html.gz +0 -0
- package/dist/smart/mail-library/static/default/one-group.html +67 -0
- package/dist/smart/mail-library/static/default/one-group.html.gz +0 -0
- package/dist/smart/mail-library/static/default/reference.html +135 -0
- package/dist/smart/mail-library/static/default/reference.html.gz +0 -0
- package/dist/smart/mail-library/static/sheets.json +180 -0
- package/dist/smart/mail-library/static/sheets.json.gz +0 -0
- package/dist/smart/mail-library/studio.fixture.json +75 -0
- package/dist/smart/mail-library/studio.fixture.json.gz +0 -0
- package/dist/smart/mail-library/studio.scenario.json +41 -0
- package/dist/smart/mail-library/studio.scenario.json.gz +0 -0
- package/dist/smart/mail-library/template/default.css +133 -0
- package/dist/smart/mail-library/template/default.css.gz +0 -0
- package/dist/smart/mail-library/template/default.js +83 -0
- package/dist/smart/mail-library/template/default.js.gz +0 -0
- package/dist/smart/mail-structure/component.json +497 -0
- package/dist/smart/mail-structure/component.json.gz +0 -0
- package/dist/smart/mail-structure/css/mail-structure.css +106 -0
- package/dist/smart/mail-structure/css/mail-structure.css.gz +0 -0
- package/dist/smart/mail-structure/css/mail-structure.min.css +2 -0
- package/dist/smart/mail-structure/css/mail-structure.min.css.gz +0 -0
- package/dist/smart/mail-structure/examples.json +286 -0
- package/dist/smart/mail-structure/examples.json.gz +0 -0
- package/dist/smart/mail-structure/js/mail-structure.js +767 -0
- package/dist/smart/mail-structure/js/mail-structure.js.gz +0 -0
- package/dist/smart/mail-structure/js/mail-structure.min.js +48 -0
- package/dist/smart/mail-structure/js/mail-structure.min.js.gz +0 -0
- package/dist/smart/mail-structure/lang/en.json +22 -0
- package/dist/smart/mail-structure/lang/en.json.gz +0 -0
- package/dist/smart/mail-structure/lang/ru.json +22 -0
- package/dist/smart/mail-structure/lang/ru.json.gz +0 -0
- package/dist/smart/mail-structure/probe.json +112 -0
- package/dist/smart/mail-structure/probe.json.gz +0 -0
- package/dist/smart/mail-structure/smart.manifest.json +495 -0
- package/dist/smart/mail-structure/smart.manifest.json.gz +0 -0
- package/dist/smart/mail-structure/static/default/empty.html +76 -0
- package/dist/smart/mail-structure/static/default/empty.html.gz +0 -0
- package/dist/smart/mail-structure/static/default/reference.html +98 -0
- package/dist/smart/mail-structure/static/default/reference.html.gz +0 -0
- package/dist/smart/mail-structure/static/default/settings.html +98 -0
- package/dist/smart/mail-structure/static/default/settings.html.gz +0 -0
- package/dist/smart/mail-structure/static/sheets.json +142 -0
- package/dist/smart/mail-structure/static/sheets.json.gz +0 -0
- package/dist/smart/mail-structure/studio.fixture.json +45 -0
- package/dist/smart/mail-structure/studio.fixture.json.gz +0 -0
- package/dist/smart/mail-structure/studio.scenario.json +42 -0
- package/dist/smart/mail-structure/studio.scenario.json.gz +0 -0
- package/dist/smart/mail-structure/template/default.css +100 -0
- package/dist/smart/mail-structure/template/default.css.gz +0 -0
- package/dist/smart/mail-structure/template/default.js +80 -0
- package/dist/smart/mail-structure/template/default.js.gz +0 -0
- package/dist/smart/rule.js +161 -0
- package/dist/smart/rule.js.gz +0 -0
- package/package.json +29 -4
package/dist/set.json
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "simai.framework.component-set",
|
|
3
|
+
"schema_version": 1,
|
|
4
|
+
"standard": {
|
|
5
|
+
"id": "simai.component-set",
|
|
6
|
+
"version": "1.3.2"
|
|
7
|
+
},
|
|
8
|
+
"id": "mail",
|
|
9
|
+
"title": "SIMAI Mail",
|
|
10
|
+
"summary": "The email editor's parts for SIMAI Framework pages: the library of blocks and samples sf-mail-library, the list of letters sf-mail-letters, the letter's structure sf-mail-structure, the canvas that shows the letter as it is sent sf-mail-canvas and the inspector of the chosen block sf-mail-inspector; the host gives the letters, the blocks and the brand.",
|
|
11
|
+
"repository": "simai/ui-mail",
|
|
12
|
+
"licence": {
|
|
13
|
+
"class": "simai-pro",
|
|
14
|
+
"spdx": "PolyForm-Small-Business-1.0.0 OR PolyForm-Noncommercial-1.0.0 OR LicenseRef-SIMAI-Commercial"
|
|
15
|
+
},
|
|
16
|
+
"framework": {
|
|
17
|
+
"core_runtime": ">=1.69.0",
|
|
18
|
+
"source_revision": "5e30b946fd0e620a4d00ab771af143dc286be1b8"
|
|
19
|
+
},
|
|
20
|
+
"requires_sets": [],
|
|
21
|
+
"families": [
|
|
22
|
+
"mail"
|
|
23
|
+
],
|
|
24
|
+
"docs": "",
|
|
25
|
+
"components": [
|
|
26
|
+
{
|
|
27
|
+
"element": "sf-mail-library",
|
|
28
|
+
"rule": "cl-mail-library",
|
|
29
|
+
"folder": "mail-library",
|
|
30
|
+
"status": "released",
|
|
31
|
+
"requires": [
|
|
32
|
+
"cl-empty-state",
|
|
33
|
+
"cl-icon",
|
|
34
|
+
"cl-input",
|
|
35
|
+
"cl-segmented"
|
|
36
|
+
]
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"element": "sf-mail-letters",
|
|
40
|
+
"rule": "cl-mail-letters",
|
|
41
|
+
"folder": "mail-letters",
|
|
42
|
+
"status": "released",
|
|
43
|
+
"requires": [
|
|
44
|
+
"cl-button",
|
|
45
|
+
"cl-button-icon",
|
|
46
|
+
"cl-dropdown",
|
|
47
|
+
"cl-empty-state",
|
|
48
|
+
"cl-input",
|
|
49
|
+
"cl-menu-context"
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"element": "sf-mail-structure",
|
|
54
|
+
"rule": "cl-mail-structure",
|
|
55
|
+
"folder": "mail-structure",
|
|
56
|
+
"status": "released",
|
|
57
|
+
"requires": [
|
|
58
|
+
"cl-button",
|
|
59
|
+
"cl-button-icon",
|
|
60
|
+
"cl-empty-state",
|
|
61
|
+
"cl-icon",
|
|
62
|
+
"cl-menu-context",
|
|
63
|
+
"cl-sortable"
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"element": "sf-mail-canvas",
|
|
68
|
+
"rule": "cl-mail-canvas",
|
|
69
|
+
"folder": "mail-canvas",
|
|
70
|
+
"status": "released",
|
|
71
|
+
"requires": [
|
|
72
|
+
"cl-editor-overlay",
|
|
73
|
+
"cl-segmented"
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"element": "sf-mail-inspector",
|
|
78
|
+
"rule": "cl-mail-inspector",
|
|
79
|
+
"folder": "mail-inspector",
|
|
80
|
+
"status": "released",
|
|
81
|
+
"requires": [
|
|
82
|
+
"cl-breadcrumbs",
|
|
83
|
+
"cl-button",
|
|
84
|
+
"cl-button-icon",
|
|
85
|
+
"cl-dropdown",
|
|
86
|
+
"cl-icon",
|
|
87
|
+
"cl-input",
|
|
88
|
+
"cl-input-image",
|
|
89
|
+
"cl-input-textarea",
|
|
90
|
+
"cl-menu-context",
|
|
91
|
+
"cl-sortable",
|
|
92
|
+
"cl-switch",
|
|
93
|
+
"cl-tabs"
|
|
94
|
+
]
|
|
95
|
+
}
|
|
96
|
+
]
|
|
97
|
+
}
|
|
@@ -0,0 +1,562 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$comment": "The source of sf-mail-canvas's element plumbing (core/js/element-manifest.js); standard simai.smart-component 1.4, vocabulary 1.1.5. Written for simai/ui-mail by the owner's decision D31 of 2026-10-29: a product repository makes no component set of its own, the shared components live in ui-pro. Written by hand in the 1.4 form on the shape of sf-mail-structure; x-decisions says how each point was decided.",
|
|
3
|
+
"id": "smart.mail-canvas",
|
|
4
|
+
"tag": "sf-mail-canvas",
|
|
5
|
+
"version": "1.1.9",
|
|
6
|
+
"kind": "leaf",
|
|
7
|
+
"family": "editor",
|
|
8
|
+
"settings": {
|
|
9
|
+
"html": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"default": "",
|
|
12
|
+
"x-markup": "a property: a letter is too long for an attribute; the attribute is read until a property is written. Untrusted: it is shown in a frame that runs no script.",
|
|
13
|
+
"summary": "The rendered letter, the string the frame shows. Empty keeps the last good picture."
|
|
14
|
+
},
|
|
15
|
+
"selected": {
|
|
16
|
+
"type": "id",
|
|
17
|
+
"default": "",
|
|
18
|
+
"summary": "The chosen block; empty means none is."
|
|
19
|
+
},
|
|
20
|
+
"widths": {
|
|
21
|
+
"type": "list",
|
|
22
|
+
"default": [],
|
|
23
|
+
"of": {
|
|
24
|
+
"value": "string",
|
|
25
|
+
"label": "string",
|
|
26
|
+
"icon": {
|
|
27
|
+
"type": "icon",
|
|
28
|
+
"optional": true
|
|
29
|
+
},
|
|
30
|
+
"frame": {
|
|
31
|
+
"type": "number",
|
|
32
|
+
"optional": true
|
|
33
|
+
},
|
|
34
|
+
"icon-only": {
|
|
35
|
+
"type": "boolean",
|
|
36
|
+
"optional": true
|
|
37
|
+
},
|
|
38
|
+
"aria-label": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"optional": true
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"entries": {
|
|
44
|
+
"key": "value",
|
|
45
|
+
"changes": "content"
|
|
46
|
+
},
|
|
47
|
+
"x-markup": "a property, or the JSON island a server prints; label is text, never markup.",
|
|
48
|
+
"summary": "The widths offered, as sf-segmented takes them: {value, label, icon, icon-only, aria-label}. value is the letter's width; frame is the frame's width in pixels when it differs from value. Empty shows no switch and the frame fills the well."
|
|
49
|
+
},
|
|
50
|
+
"width": {
|
|
51
|
+
"type": "string",
|
|
52
|
+
"default": "",
|
|
53
|
+
"summary": "The width in use, by value; empty or unknown is the first of widths. The element changes it itself when the person presses a width."
|
|
54
|
+
},
|
|
55
|
+
"stale": {
|
|
56
|
+
"type": "boolean",
|
|
57
|
+
"default": false,
|
|
58
|
+
"summary": "Says the picture is out of date; the picture stays."
|
|
59
|
+
},
|
|
60
|
+
"weight": {
|
|
61
|
+
"type": "object",
|
|
62
|
+
"default": {},
|
|
63
|
+
"of": {
|
|
64
|
+
"bytes": "number",
|
|
65
|
+
"max": "number"
|
|
66
|
+
},
|
|
67
|
+
"x-markup": "a property, or the JSON island a server prints.",
|
|
68
|
+
"summary": "How heavy the letter's HTML is, {bytes, max} in kilobytes, when it comes near the clip size. Empty shows no note."
|
|
69
|
+
},
|
|
70
|
+
"items": {
|
|
71
|
+
"type": "list",
|
|
72
|
+
"default": [],
|
|
73
|
+
"of": {
|
|
74
|
+
"id": "id",
|
|
75
|
+
"label": {
|
|
76
|
+
"type": "string",
|
|
77
|
+
"optional": true
|
|
78
|
+
},
|
|
79
|
+
"kind": {
|
|
80
|
+
"type": "string",
|
|
81
|
+
"optional": true
|
|
82
|
+
},
|
|
83
|
+
"parent": {
|
|
84
|
+
"type": "id",
|
|
85
|
+
"optional": true
|
|
86
|
+
},
|
|
87
|
+
"editable": {
|
|
88
|
+
"type": "boolean",
|
|
89
|
+
"optional": true
|
|
90
|
+
},
|
|
91
|
+
"rect": {
|
|
92
|
+
"type": "object",
|
|
93
|
+
"optional": true
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"entries": {
|
|
97
|
+
"key": "id",
|
|
98
|
+
"changes": "content"
|
|
99
|
+
},
|
|
100
|
+
"x-markup": "a property, or the JSON island a server prints; label is text, never markup.",
|
|
101
|
+
"summary": "What the letter holds, for the overlay and for what counts as a block: {id, label, kind, parent, editable, rect}. A mark in the letter whose id is not here is not a block."
|
|
102
|
+
},
|
|
103
|
+
"actions": {
|
|
104
|
+
"type": "list",
|
|
105
|
+
"default": [],
|
|
106
|
+
"of": {
|
|
107
|
+
"id": "string",
|
|
108
|
+
"label": "string",
|
|
109
|
+
"icon": {
|
|
110
|
+
"type": "string",
|
|
111
|
+
"optional": true
|
|
112
|
+
},
|
|
113
|
+
"shortcut": {
|
|
114
|
+
"type": "string",
|
|
115
|
+
"optional": true
|
|
116
|
+
},
|
|
117
|
+
"disabled": {
|
|
118
|
+
"type": "boolean",
|
|
119
|
+
"optional": true
|
|
120
|
+
},
|
|
121
|
+
"tone": {
|
|
122
|
+
"type": "enum",
|
|
123
|
+
"values": [
|
|
124
|
+
"danger"
|
|
125
|
+
],
|
|
126
|
+
"optional": true
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
"entries": {
|
|
130
|
+
"key": "id",
|
|
131
|
+
"changes": "content"
|
|
132
|
+
},
|
|
133
|
+
"summary": "The toolbar of the chosen block: up to 16 {id, label, icon, shortcut, disabled, tone}, through the overlay's own check."
|
|
134
|
+
},
|
|
135
|
+
"accepts": {
|
|
136
|
+
"type": "string",
|
|
137
|
+
"default": "",
|
|
138
|
+
"summary": "The sf-sortable groups whose items may be dropped on the letter, separated by spaces (the overlay's accepts)."
|
|
139
|
+
},
|
|
140
|
+
"mark-attribute": {
|
|
141
|
+
"type": "string",
|
|
142
|
+
"default": "data-block",
|
|
143
|
+
"summary": "The attribute that marks a block in the letter; its value is the item's id. A data- name."
|
|
144
|
+
},
|
|
145
|
+
"box-attribute": {
|
|
146
|
+
"type": "string",
|
|
147
|
+
"default": "",
|
|
148
|
+
"summary": "The attribute that marks a block's box inside it: the box takes the overlay's line. Empty is the block itself. A data- name."
|
|
149
|
+
},
|
|
150
|
+
"paper": {
|
|
151
|
+
"type": "string",
|
|
152
|
+
"default": "",
|
|
153
|
+
"summary": "A selector of the letter's paper inside the frame: it casts the shadow when the frame is wider than the letter. Otherwise the frame casts it."
|
|
154
|
+
},
|
|
155
|
+
"overlay-target": {
|
|
156
|
+
"type": "string",
|
|
157
|
+
"default": "",
|
|
158
|
+
"summary": "The id of an sf-editor-overlay the host placed elsewhere on the page, outside a contained ancestor (simai/ui-source#58). Empty places one in the element's own markup."
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
"values": {},
|
|
162
|
+
"events": {
|
|
163
|
+
"select": {
|
|
164
|
+
"carries": {
|
|
165
|
+
"ids": "list",
|
|
166
|
+
"id": "id"
|
|
167
|
+
},
|
|
168
|
+
"x-summary": "a press in the frame or the overlay's tree chose a block (vocabulary §5 select); an empty id and ids means nothing is chosen. The host passes selected back.",
|
|
169
|
+
"summary": "This block was chosen: {ids, id}. An empty id is none."
|
|
170
|
+
},
|
|
171
|
+
"hover": {
|
|
172
|
+
"carries": {
|
|
173
|
+
"id": "id"
|
|
174
|
+
},
|
|
175
|
+
"own-verb": true,
|
|
176
|
+
"x-summary": "the pointer came to another block in the frame (a verb of this element, as view state: the overlay's hover frame is already drawn).",
|
|
177
|
+
"summary": "The pointer is over this block: {id}. An empty id is none."
|
|
178
|
+
},
|
|
179
|
+
"change": {
|
|
180
|
+
"carries": {
|
|
181
|
+
"value": "string",
|
|
182
|
+
"previous": "string"
|
|
183
|
+
},
|
|
184
|
+
"x-summary": "the person pressed another width (vocabulary §5 change, under the plain native name). The element has already applied it: this is view state.",
|
|
185
|
+
"summary": "The width in use is now this: {value, previous}."
|
|
186
|
+
},
|
|
187
|
+
"apply": {
|
|
188
|
+
"carries": {
|
|
189
|
+
"action": "string",
|
|
190
|
+
"scope": {
|
|
191
|
+
"type": "enum",
|
|
192
|
+
"values": [
|
|
193
|
+
"entry"
|
|
194
|
+
]
|
|
195
|
+
},
|
|
196
|
+
"ids": "list"
|
|
197
|
+
},
|
|
198
|
+
"x-summary": "an action of the overlay's toolbar (vocabulary §5 apply).",
|
|
199
|
+
"summary": "This toolbar action was chosen for this block: {action, scope, ids}."
|
|
200
|
+
},
|
|
201
|
+
"insert": {
|
|
202
|
+
"carries": {
|
|
203
|
+
"parent": "id",
|
|
204
|
+
"slot": "string",
|
|
205
|
+
"index": {
|
|
206
|
+
"type": "number",
|
|
207
|
+
"integer": true
|
|
208
|
+
},
|
|
209
|
+
"item": {
|
|
210
|
+
"type": "string",
|
|
211
|
+
"optional": true
|
|
212
|
+
},
|
|
213
|
+
"from": {
|
|
214
|
+
"type": "string",
|
|
215
|
+
"optional": true
|
|
216
|
+
},
|
|
217
|
+
"mode": {
|
|
218
|
+
"type": "enum",
|
|
219
|
+
"values": [
|
|
220
|
+
"move",
|
|
221
|
+
"copy"
|
|
222
|
+
],
|
|
223
|
+
"optional": true
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
"own-verb": true,
|
|
227
|
+
"x-summary": "an insertion point on the letter or an item dropped on it (a verb of the overlay, kept). The top level is parent empty.",
|
|
228
|
+
"summary": "A block was asked for at this place: {parent, slot, index, item, from, mode}."
|
|
229
|
+
},
|
|
230
|
+
"move": {
|
|
231
|
+
"carries": {
|
|
232
|
+
"ids": "list",
|
|
233
|
+
"id": "id",
|
|
234
|
+
"parent": "id",
|
|
235
|
+
"position": "number",
|
|
236
|
+
"slot": "string"
|
|
237
|
+
},
|
|
238
|
+
"x-summary": "the overlay's handle moved a node to a place (vocabulary §5 move).",
|
|
239
|
+
"summary": "Move this block to this place: {ids, id, parent, position, slot}."
|
|
240
|
+
},
|
|
241
|
+
"edit": {
|
|
242
|
+
"carries": {
|
|
243
|
+
"id": "id",
|
|
244
|
+
"value": "string",
|
|
245
|
+
"previous": "string"
|
|
246
|
+
},
|
|
247
|
+
"own-verb": true,
|
|
248
|
+
"cancelable": true,
|
|
249
|
+
"x-summary": "a plain-string edit on the letter was committed: the overlay's change, under a verb of this element, because change here is the width. Cancelled, the text shows what it showed before.",
|
|
250
|
+
"summary": "This node's text now reads this: {id, value, previous}. Cancel to put the text back."
|
|
251
|
+
},
|
|
252
|
+
"draw": {
|
|
253
|
+
"carries": {},
|
|
254
|
+
"own-verb": true,
|
|
255
|
+
"x-summary": "a new letter has loaded and is about to be measured (a verb of this element): what a host adjusts in frameDocument counts in the frame's height.",
|
|
256
|
+
"summary": "A new letter is in the frame, not yet measured."
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
"actions": {
|
|
260
|
+
"select": {
|
|
261
|
+
"with": {
|
|
262
|
+
"id": {
|
|
263
|
+
"type": "id",
|
|
264
|
+
"optional": true
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
"x-outcomes": [
|
|
268
|
+
"applied",
|
|
269
|
+
"refused"
|
|
270
|
+
],
|
|
271
|
+
"x-summary": "choose as a press does; refused unknown",
|
|
272
|
+
"summary": "Choose a block as a press does; no id chooses none; refused unknown for a block not in items.",
|
|
273
|
+
"x-returns": {
|
|
274
|
+
"type": "object",
|
|
275
|
+
"description": "{outcome: applied} or {outcome: refused, reason: unknown}"
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
"set-width": {
|
|
279
|
+
"with": {
|
|
280
|
+
"value": "string"
|
|
281
|
+
},
|
|
282
|
+
"x-outcomes": [
|
|
283
|
+
"applied",
|
|
284
|
+
"refused"
|
|
285
|
+
],
|
|
286
|
+
"x-summary": "what a width button does; refused unknown, unchanged",
|
|
287
|
+
"summary": "Switch the width as its button does; refused unknown for a width not offered, unchanged when it is in use.",
|
|
288
|
+
"x-returns": {
|
|
289
|
+
"type": "object",
|
|
290
|
+
"description": "{outcome: applied} or {outcome: refused, reason: unknown | unchanged}"
|
|
291
|
+
}
|
|
292
|
+
},
|
|
293
|
+
"reveal": {
|
|
294
|
+
"with": {
|
|
295
|
+
"id": {
|
|
296
|
+
"type": "id",
|
|
297
|
+
"optional": true
|
|
298
|
+
}
|
|
299
|
+
},
|
|
300
|
+
"x-outcomes": [
|
|
301
|
+
"applied",
|
|
302
|
+
"refused"
|
|
303
|
+
],
|
|
304
|
+
"x-summary": "bring a block into view on the canvas; refused unknown, unchanged",
|
|
305
|
+
"summary": "Bring a block into view on the canvas, the chosen one without an id; refused unknown, unchanged when it is already in view.",
|
|
306
|
+
"x-returns": {
|
|
307
|
+
"type": "object",
|
|
308
|
+
"description": "{outcome: applied} or {outcome: refused, reason: unknown | unchanged}"
|
|
309
|
+
}
|
|
310
|
+
},
|
|
311
|
+
"refresh": {
|
|
312
|
+
"with": {},
|
|
313
|
+
"x-outcomes": [
|
|
314
|
+
"applied"
|
|
315
|
+
],
|
|
316
|
+
"x-summary": "measure the frame and update the overlay again",
|
|
317
|
+
"summary": "Measure the frame and update the overlay again, after a change nothing reports (a transform on an ancestor).",
|
|
318
|
+
"x-returns": {
|
|
319
|
+
"type": "object",
|
|
320
|
+
"description": "{outcome: applied}"
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
},
|
|
324
|
+
"slots": {},
|
|
325
|
+
"keyboard": {
|
|
326
|
+
"host": {
|
|
327
|
+
"Tab": "reach"
|
|
328
|
+
},
|
|
329
|
+
"tree": {
|
|
330
|
+
"ArrowUp": "previous",
|
|
331
|
+
"ArrowDown": "next",
|
|
332
|
+
"ArrowLeft": "parent",
|
|
333
|
+
"ArrowRight": "child",
|
|
334
|
+
"Home": "first",
|
|
335
|
+
"End": "last",
|
|
336
|
+
"Enter": "toolbar",
|
|
337
|
+
"Escape": "clear"
|
|
338
|
+
}
|
|
339
|
+
},
|
|
340
|
+
"relations": [
|
|
341
|
+
{
|
|
342
|
+
"name": "cl-segmented"
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
"name": "cl-editor-overlay"
|
|
346
|
+
}
|
|
347
|
+
],
|
|
348
|
+
"templates": {
|
|
349
|
+
"default": {
|
|
350
|
+
"file": "js/templates/default.js",
|
|
351
|
+
"$comment": "The Lit template in JavaScript, the migration form of §5.2 (§16)."
|
|
352
|
+
}
|
|
353
|
+
},
|
|
354
|
+
"styles": "js/templates/default.css",
|
|
355
|
+
"examples": "examples.json",
|
|
356
|
+
"docs": "docs.md",
|
|
357
|
+
"lang": "lang/",
|
|
358
|
+
"accessibility": {
|
|
359
|
+
"role": "region",
|
|
360
|
+
"name": {
|
|
361
|
+
"from": [
|
|
362
|
+
"runtime.preview-label"
|
|
363
|
+
]
|
|
364
|
+
},
|
|
365
|
+
"keys": {
|
|
366
|
+
"Tab": "reach",
|
|
367
|
+
"ArrowUp": "previous",
|
|
368
|
+
"ArrowDown": "next",
|
|
369
|
+
"ArrowLeft": "parent",
|
|
370
|
+
"ArrowRight": "child",
|
|
371
|
+
"Home": "first",
|
|
372
|
+
"End": "last",
|
|
373
|
+
"Enter": "toolbar",
|
|
374
|
+
"Escape": "clear"
|
|
375
|
+
},
|
|
376
|
+
"x-keys": "the width switch, then the overlay's tree as one tab stop; the frame and the letter's links take no tab stop. The keys of the tree and the toolbar are sf-editor-overlay's, and work inside the frame after a press on it."
|
|
377
|
+
},
|
|
378
|
+
"host-states": {},
|
|
379
|
+
"css-variables": {},
|
|
380
|
+
"x-summary": "The canvas of SIMAI Email Editor: a rendered letter in a frame that runs nothing, the width switch, the out-of-date and weight notes and sf-editor-overlay on top. The element knows no letter, no block manifest and no renderer: the host passes the HTML and the data about it, and hears what the person did.",
|
|
381
|
+
"x-source": {
|
|
382
|
+
"package": "ui-pro",
|
|
383
|
+
"folder": "mail-canvas",
|
|
384
|
+
"manifest": "simai/ui-mail src/ui/app.ts drawPreview, wireFrame, wireOverlay and src/ui/index.html #canvas",
|
|
385
|
+
"converted": "written by hand (D31, 2026-10-30) from the editor's own canvas, so the words, the frame and the behaviour are the ones the editor proved"
|
|
386
|
+
},
|
|
387
|
+
"x-words": [],
|
|
388
|
+
"x-renamed": [],
|
|
389
|
+
"x-decisions": [
|
|
390
|
+
"names: sf-mail-canvas, as the dispatcher's plan names it.",
|
|
391
|
+
"boundary: the element knows no letter, no block manifest and no renderer. html is a string the host rendered; the marks are attributes the host names (mark-attribute, box-attribute), the paper a selector it names (paper). What the letter's own styles do, its background and the box's geometry among them, is part of html.",
|
|
392
|
+
"untrusted content: the frame's sandbox is allow-same-origin and nothing else, written in the template and proved by a probe. A mark counts as a block only when its id is in items, so a letter cannot choose for the host.",
|
|
393
|
+
"last good picture: an empty html changes nothing and a new one replaces the old only when it has loaded; stale only says so. A host whose render failed passes no new html.",
|
|
394
|
+
"html is a property kept by the element: the manifest's string makes an attribute, and a letter does not belong in one. The attribute is read until a property is written, so an example or a printed page still works.",
|
|
395
|
+
"width: the element applies a pressed width itself and says so with change, view state like a section's toggle; the host redraws only if it wants to. A frame wider than the letter's width leaves the shadow to the paper inside it, as the editor does at its 600 px width.",
|
|
396
|
+
"no tints, owner's decision of 2026-10-31: hover and selection are the overlay's frames, a tint changes how the letter looks. The frame casts the raised shadow (C20) through the shadow-raised utility and the paper inside through --sf-shadow-raised read in the light scheme: a letter takes no surface of the interface, and the elevation contract reads the stylesheet.",
|
|
397
|
+
"events: select, change, apply and move are vocabulary §5 verbs; hover, insert, edit and draw are verbs of this element. The overlay's change (a plain-string edit) is edit here, because change here is the width, under the plain native name.",
|
|
398
|
+
"overlay: simai/ui-source#58 is the Framework's and open: under an ancestor with contain: layout (a docked sf-drawer's container) the overlay's fixed layer lands offset. The element does not hide that. It places the overlay in its own markup by default, and overlay-target binds one the host placed outside such an ancestor; docs.md says which is which.",
|
|
399
|
+
"first paint: a printed frame shows the letter (sandbox and srcdoc as drawn) and the well holds its size, so nothing below moves when the letter is measured. The overlay's parts float where its code places them, so printed they are not shown; and its toolbar is not shown until placed, because sf-composition-overlay unhides it before the frame that places it and the gate measured the shift (a Framework behaviour, worked around in this element's sheet only).",
|
|
400
|
+
"version 1.1.0, owner's decision of 2026-10-31: the letter is patched block by block by its mark attribute and is not reloaded, a full write only when the head of the letter changes; the element's own overlay lies in the scroller, so its parts travel with the letter.",
|
|
401
|
+
"version 1.1.1: the Framework elements it draws, finds and listens to are named by their new tags (Smart component naming of 2026-11-02, sf-[set]-<block>): the overlay is sf-editor-overlay (its sf-editor-overlay-* events); an overlay-target the host placed may still be the former sf-composition-overlay. The rule relations and the registry ids follow (cl-<new>, smart.<new>; the package reference pro.package.json of the pair). The former tags stay dated aliases of the Framework until 2027-01-01; public CSS variables and classes keep their names. No visible change. Needs the SIMAI Framework pair with the tag renames (core.runtime 1.21.0).",
|
|
402
|
+
"version 1.1.2 (2026-11-08): a patch (first paint only). static/sheets.json no longer lists utility/headers/default/css/default.min.css: SIMAI Framework utility.headers 1.1.0 asks for that sheet only for a whole class token h1..h6 (its former rule matched h1..h6 inside ids, modifiers and SVG path data), and none of the snapshots has one; the sheet styled only the h1..h6 tags with the heading tokens core.css already gives them. Code, settings, values and events are unchanged.",
|
|
403
|
+
"version 1.1.3 (2026-11-09): a patch (no visible change). The width switch is sf-segmented, SIMAI Framework's name for sf-button-group (pair ui-d6f01121baca; the former tag stays a dated alias until 2027-01-01); its track look is the default, so appearance=\"segmented\" is dropped. The rule relates cl-segmented (cl-button-group is a forward to it) and composition.uses names smart.segmented. Settings, values and events are unchanged.",
|
|
404
|
+
"version 1.1.4 (2026-11-09): a patch, for the SIMAI Framework pair with the shadow places (C20, owner 2026-11-08; core.runtime >= 1.43.0). A frame narrower than the letter casts the raised shadow through the shadow-raised utility (shadow-1 is its dated alias), and the paper inside a wider frame through --sf-shadow-raised read in the light scheme (was --sf-elevation-1--shadow). Level 1 is the raised place on that pair, so the shadow is the same; the static phone snapshot and the probe follow the class. Settings, values and events are unchanged.",
|
|
405
|
+
"version 1.1.5 (2026-11-09): a patch (first paint only). The first-paint snapshots are retaken over SIMAI Framework ui-cb287da78ab1 (the pair's elements now print data-sf-size-relative on sf-icon and the other markup of that pair); static/sheets.json is unchanged (no sheet drift). Code, settings, values and events are unchanged.",
|
|
406
|
+
"version 1.1.6 (2026-11-16): a patch (probes only), over SIMAI Framework ui-078a4b4c6f6e. sf-editor-overlay 1.9.0+ (owner decision C170): the selected frame is a 2 px line 2 clear of the block, its content box being the block, so p9, p15 and p16 measure the line by its content box; an action without an icon is a row of the toolbar's «Ещё», so p10 and p11 give their actions icons (arrow_upward, arrow_downward, delete) and press them in the toolbar. Code, settings, values and events are unchanged; a host that wants its actions as toolbar buttons gives them icons. Numbered above 1.1.5, the highest on any ui-pro branch.",
|
|
407
|
+
"version 1.1.7 (2026-11-17): a patch, for SIMAI Framework group build 9 (ui-source 3d55e44d7). The first-paint snapshots and sheet list are retaken over the group build. Settings, values, events and actions are unchanged. The number is above 1.1.6, the highest on any ui-pro branch and in the released pro-589ced99cfbd.",
|
|
408
|
+
"version 1.1.8 (2026-11-21): a patch, rebuilt over SIMAI Framework ui-9ceecc24c988 (group build 15; ui-source e7ea89e07, core.runtime 1.65.0, core.styles 1.21.0): its first-paint snapshots (static/) are retaken from the build through scripts/run-first-paint.mjs, since the Framework segmented and button parts it prints write pointer-events-none on their glyphs and labels (the former pointer-event-none matched no utility). Its own code, settings, values and events are unchanged. 1.1.8 is above 1.1.7 (ui-pro), the highest on any origin branch.",
|
|
409
|
+
"version 1.1.9 (2026-11-25): a patch (no visible change), over SIMAI Framework ui-3963bfe39302 (group build 18; ui-source 96234dd71, core.runtime 1.68.0, core.styles 1.24.0): the first-paint snapshot static/default/reference.html is retaken through scripts/run-first-paint.mjs (three runs agree): the block menu's sf-button-icon no longer carries data-sf-size-relative in the static markup. Code, settings, values and events are unchanged. 1.1.9 is above 1.1.8, the highest on any origin branch."
|
|
410
|
+
],
|
|
411
|
+
"x-rule": {
|
|
412
|
+
"$comment": [
|
|
413
|
+
"The canvas draws its width switch as sf-segmented and places sf-editor-overlay over the frame;",
|
|
414
|
+
"a tag it renders is a tag it fetches. Both are drawn at once: the overlay is what makes the letter",
|
|
415
|
+
"something to press on. The element waits for the overlay before it attaches the frame."
|
|
416
|
+
]
|
|
417
|
+
},
|
|
418
|
+
"x-registry": {
|
|
419
|
+
"capabilities": [
|
|
420
|
+
"interaction",
|
|
421
|
+
"keyboard",
|
|
422
|
+
"responsive"
|
|
423
|
+
],
|
|
424
|
+
"persistence": {
|
|
425
|
+
"mode": "none",
|
|
426
|
+
"source_of_truth": "host",
|
|
427
|
+
"network_owner": "host",
|
|
428
|
+
"revision_field": null
|
|
429
|
+
},
|
|
430
|
+
"readiness": {
|
|
431
|
+
"level": "host-required",
|
|
432
|
+
"required_checks": [
|
|
433
|
+
"manifest",
|
|
434
|
+
"loader-rule",
|
|
435
|
+
"mail-canvas-probe"
|
|
436
|
+
]
|
|
437
|
+
},
|
|
438
|
+
"tags": [
|
|
439
|
+
"mail",
|
|
440
|
+
"canvas",
|
|
441
|
+
"preview",
|
|
442
|
+
"letter"
|
|
443
|
+
],
|
|
444
|
+
"contracts": {
|
|
445
|
+
"item": {
|
|
446
|
+
"type": "object",
|
|
447
|
+
"properties": {
|
|
448
|
+
"id": {
|
|
449
|
+
"type": "string",
|
|
450
|
+
"description": "The block's id: what the events carry and what the mark holds."
|
|
451
|
+
},
|
|
452
|
+
"label": {
|
|
453
|
+
"type": "string",
|
|
454
|
+
"description": "Its name, in the overlay's frame and tree."
|
|
455
|
+
},
|
|
456
|
+
"kind": {
|
|
457
|
+
"type": "string",
|
|
458
|
+
"description": "The host's kind of node."
|
|
459
|
+
},
|
|
460
|
+
"parent": {
|
|
461
|
+
"type": "string",
|
|
462
|
+
"description": "The id of another item."
|
|
463
|
+
},
|
|
464
|
+
"editable": {
|
|
465
|
+
"type": "boolean",
|
|
466
|
+
"description": "Allows plain-string editing on the letter."
|
|
467
|
+
},
|
|
468
|
+
"rect": {
|
|
469
|
+
"type": "object",
|
|
470
|
+
"description": "{x, y, width, height} in frame coordinates, for a part with no element."
|
|
471
|
+
}
|
|
472
|
+
},
|
|
473
|
+
"required": [
|
|
474
|
+
"id"
|
|
475
|
+
]
|
|
476
|
+
},
|
|
477
|
+
"choice": {
|
|
478
|
+
"const": "A press in the frame or the tree dispatches sf-mail-canvas-select {ids, id}; the pointer sf-mail-canvas-hover {id}; a width button change {value, previous}; the overlay sf-mail-canvas-apply {action, scope, ids}, sf-mail-canvas-insert {parent, slot, index, item, from, mode}, sf-mail-canvas-move {ids, id, parent, position, slot} and sf-mail-canvas-edit {id, value, previous}; a loaded letter sf-mail-canvas-draw {}. The element changes no letter: the host does, and passes the HTML back."
|
|
479
|
+
}
|
|
480
|
+
},
|
|
481
|
+
"state": {
|
|
482
|
+
"machines": {
|
|
483
|
+
"picture": [
|
|
484
|
+
"none",
|
|
485
|
+
"shown",
|
|
486
|
+
"drawing"
|
|
487
|
+
]
|
|
488
|
+
},
|
|
489
|
+
"visual_states": [
|
|
490
|
+
"default",
|
|
491
|
+
"selected",
|
|
492
|
+
"loading"
|
|
493
|
+
]
|
|
494
|
+
},
|
|
495
|
+
"ownership": {
|
|
496
|
+
"source": "simai/ui-pro",
|
|
497
|
+
"data": "host",
|
|
498
|
+
"effects": "host",
|
|
499
|
+
"forbidden_client_responsibilities": [
|
|
500
|
+
"rendering or changing the letter",
|
|
501
|
+
"knowing the block manifest",
|
|
502
|
+
"running anything from the letter"
|
|
503
|
+
]
|
|
504
|
+
},
|
|
505
|
+
"security": {
|
|
506
|
+
"permissions_owner": "host",
|
|
507
|
+
"untrusted_inputs": [
|
|
508
|
+
"html (shown in a sandboxed frame with no scripts)",
|
|
509
|
+
"marks in html (a block only when items names it)"
|
|
510
|
+
],
|
|
511
|
+
"network_policy": "deny"
|
|
512
|
+
},
|
|
513
|
+
"presentation": {
|
|
514
|
+
"themes": [
|
|
515
|
+
"light",
|
|
516
|
+
"dark"
|
|
517
|
+
],
|
|
518
|
+
"locales": [
|
|
519
|
+
"en",
|
|
520
|
+
"ru"
|
|
521
|
+
],
|
|
522
|
+
"responsive": [
|
|
523
|
+
"desktop",
|
|
524
|
+
"mobile"
|
|
525
|
+
]
|
|
526
|
+
},
|
|
527
|
+
"ai_guidance": {
|
|
528
|
+
"use_when": "Use sf-mail-canvas wherever a person sees and presses on a rendered letter in SIMAI Email Editor.",
|
|
529
|
+
"do_not": [
|
|
530
|
+
"Do not give the frame scripts or a wider sandbox",
|
|
531
|
+
"Do not place the element's own overlay under an ancestor with contain: layout; pass overlay-target",
|
|
532
|
+
"Do not render or change the letter in the element; listen for its events and do it in the host"
|
|
533
|
+
],
|
|
534
|
+
"required_reads": [
|
|
535
|
+
"inputs",
|
|
536
|
+
"contracts",
|
|
537
|
+
"events",
|
|
538
|
+
"accessibility"
|
|
539
|
+
],
|
|
540
|
+
"minimal_example": "<sf-mail-canvas id=\"canvas\"></sf-mail-canvas> <script>canvas.items = [{id: 'b1', label: 'Заголовок'}]; canvas.html = '<p data-block=\"b1\">Письмо</p>';</script>",
|
|
541
|
+
"owner_commands": [
|
|
542
|
+
"node scripts/test.mjs",
|
|
543
|
+
"node scripts/run-manifest-probes.mjs <free output> <package output> mail-canvas"
|
|
544
|
+
]
|
|
545
|
+
},
|
|
546
|
+
"accessibility": {
|
|
547
|
+
"accessible_name": "internal",
|
|
548
|
+
"focus": "The width switch, then the overlay's tree. The frame and the letter's links take no tab stop. The frame and the layer are named in the page language."
|
|
549
|
+
},
|
|
550
|
+
"compatibility": {
|
|
551
|
+
"migrations": [
|
|
552
|
+
{
|
|
553
|
+
"from": "1.1.0",
|
|
554
|
+
"to": "1.1.1",
|
|
555
|
+
"changes": [
|
|
556
|
+
"Draws and finds the renamed Framework elements by their new tags (the overlay is sf-editor-overlay (its sf-editor-overlay-* events); an overlay-target the host placed may still be the former sf-composition-overlay); 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."
|
|
557
|
+
]
|
|
558
|
+
}
|
|
559
|
+
]
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
}
|
|
Binary file
|