@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
|
@@ -0,0 +1,550 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema_version": 2,
|
|
3
|
+
"id": "smart.mail-canvas",
|
|
4
|
+
"version": "1.1.9",
|
|
5
|
+
"title": "Letter canvas",
|
|
6
|
+
"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.",
|
|
7
|
+
"kind": "smart",
|
|
8
|
+
"reuse_mode": "whole",
|
|
9
|
+
"lifecycle": "experimental",
|
|
10
|
+
"tags": [
|
|
11
|
+
"mail",
|
|
12
|
+
"canvas",
|
|
13
|
+
"preview",
|
|
14
|
+
"letter"
|
|
15
|
+
],
|
|
16
|
+
"capabilities": [
|
|
17
|
+
"interaction",
|
|
18
|
+
"keyboard",
|
|
19
|
+
"responsive"
|
|
20
|
+
],
|
|
21
|
+
"custom_element": "sf-mail-canvas",
|
|
22
|
+
"templates": [
|
|
23
|
+
"default"
|
|
24
|
+
],
|
|
25
|
+
"exported_parts": [],
|
|
26
|
+
"composition": {
|
|
27
|
+
"uses": [
|
|
28
|
+
"smart.segmented",
|
|
29
|
+
"smart.editor-overlay"
|
|
30
|
+
],
|
|
31
|
+
"public_parts": []
|
|
32
|
+
},
|
|
33
|
+
"inputs": {
|
|
34
|
+
"type": "object",
|
|
35
|
+
"properties": {
|
|
36
|
+
"template": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"default": "default",
|
|
39
|
+
"description": "Template variant name for SfBaseElement external templates."
|
|
40
|
+
},
|
|
41
|
+
"root-class": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"default": "",
|
|
44
|
+
"description": "Classes added to the root element the component draws."
|
|
45
|
+
},
|
|
46
|
+
"root-style": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"default": "",
|
|
49
|
+
"description": "Inline style declarations set on the root element the component draws, custom properties included."
|
|
50
|
+
},
|
|
51
|
+
"html": {
|
|
52
|
+
"type": "string",
|
|
53
|
+
"default": "",
|
|
54
|
+
"description": "The rendered letter, the string the frame shows. Empty keeps the last good picture."
|
|
55
|
+
},
|
|
56
|
+
"selected": {
|
|
57
|
+
"type": "string",
|
|
58
|
+
"default": "",
|
|
59
|
+
"description": "The chosen block; empty means none is."
|
|
60
|
+
},
|
|
61
|
+
"width": {
|
|
62
|
+
"type": "string",
|
|
63
|
+
"default": "",
|
|
64
|
+
"description": "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."
|
|
65
|
+
},
|
|
66
|
+
"stale": {
|
|
67
|
+
"type": "boolean",
|
|
68
|
+
"default": false,
|
|
69
|
+
"description": "Says the picture is out of date; the picture stays."
|
|
70
|
+
},
|
|
71
|
+
"accepts": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"default": "",
|
|
74
|
+
"description": "The sf-sortable groups whose items may be dropped on the letter, separated by spaces (the overlay's accepts)."
|
|
75
|
+
},
|
|
76
|
+
"mark-attribute": {
|
|
77
|
+
"type": "string",
|
|
78
|
+
"default": "data-block",
|
|
79
|
+
"description": "The attribute that marks a block in the letter; its value is the item's id. A data- name."
|
|
80
|
+
},
|
|
81
|
+
"box-attribute": {
|
|
82
|
+
"type": "string",
|
|
83
|
+
"default": "",
|
|
84
|
+
"description": "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."
|
|
85
|
+
},
|
|
86
|
+
"paper": {
|
|
87
|
+
"type": "string",
|
|
88
|
+
"default": "",
|
|
89
|
+
"description": "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."
|
|
90
|
+
},
|
|
91
|
+
"overlay-target": {
|
|
92
|
+
"type": "string",
|
|
93
|
+
"default": "",
|
|
94
|
+
"description": "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."
|
|
95
|
+
},
|
|
96
|
+
"widths": {
|
|
97
|
+
"type": "array",
|
|
98
|
+
"default": [],
|
|
99
|
+
"items": {
|
|
100
|
+
"type": "object"
|
|
101
|
+
},
|
|
102
|
+
"description": "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."
|
|
103
|
+
},
|
|
104
|
+
"weight": {
|
|
105
|
+
"type": "object",
|
|
106
|
+
"default": {},
|
|
107
|
+
"description": "How heavy the letter's HTML is, {bytes, max} in kilobytes, when it comes near the clip size. Empty shows no note."
|
|
108
|
+
},
|
|
109
|
+
"items": {
|
|
110
|
+
"type": "array",
|
|
111
|
+
"default": [],
|
|
112
|
+
"items": {
|
|
113
|
+
"type": "object"
|
|
114
|
+
},
|
|
115
|
+
"description": "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."
|
|
116
|
+
},
|
|
117
|
+
"actions": {
|
|
118
|
+
"type": "array",
|
|
119
|
+
"default": [],
|
|
120
|
+
"items": {
|
|
121
|
+
"type": "object"
|
|
122
|
+
},
|
|
123
|
+
"description": "The toolbar of the chosen block: up to 16 {id, label, icon, shortcut, disabled, tone}, through the overlay's own check."
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
"additionalProperties": false
|
|
127
|
+
},
|
|
128
|
+
"item_contract": {},
|
|
129
|
+
"contracts": {
|
|
130
|
+
"item": {
|
|
131
|
+
"type": "object",
|
|
132
|
+
"properties": {
|
|
133
|
+
"id": {
|
|
134
|
+
"type": "string",
|
|
135
|
+
"description": "The block's id: what the events carry and what the mark holds."
|
|
136
|
+
},
|
|
137
|
+
"label": {
|
|
138
|
+
"type": "string",
|
|
139
|
+
"description": "Its name, in the overlay's frame and tree."
|
|
140
|
+
},
|
|
141
|
+
"kind": {
|
|
142
|
+
"type": "string",
|
|
143
|
+
"description": "The host's kind of node."
|
|
144
|
+
},
|
|
145
|
+
"parent": {
|
|
146
|
+
"type": "string",
|
|
147
|
+
"description": "The id of another item."
|
|
148
|
+
},
|
|
149
|
+
"editable": {
|
|
150
|
+
"type": "boolean",
|
|
151
|
+
"description": "Allows plain-string editing on the letter."
|
|
152
|
+
},
|
|
153
|
+
"rect": {
|
|
154
|
+
"type": "object",
|
|
155
|
+
"description": "{x, y, width, height} in frame coordinates, for a part with no element."
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
"required": [
|
|
159
|
+
"id"
|
|
160
|
+
]
|
|
161
|
+
},
|
|
162
|
+
"choice": {
|
|
163
|
+
"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."
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
"methods": {
|
|
167
|
+
"select": {
|
|
168
|
+
"summary": "Choose a block as a press does; no id chooses none; refused unknown for a block not in items.",
|
|
169
|
+
"arguments": [
|
|
170
|
+
{
|
|
171
|
+
"name": "id",
|
|
172
|
+
"schema": {}
|
|
173
|
+
}
|
|
174
|
+
],
|
|
175
|
+
"returns": {
|
|
176
|
+
"type": "object",
|
|
177
|
+
"description": "{outcome: applied} or {outcome: refused, reason: unknown}"
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
"setWidth": {
|
|
181
|
+
"summary": "Switch the width as its button does; refused unknown for a width not offered, unchanged when it is in use.",
|
|
182
|
+
"arguments": [
|
|
183
|
+
{
|
|
184
|
+
"name": "value",
|
|
185
|
+
"schema": {
|
|
186
|
+
"type": "string"
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
],
|
|
190
|
+
"returns": {
|
|
191
|
+
"type": "object",
|
|
192
|
+
"description": "{outcome: applied} or {outcome: refused, reason: unknown | unchanged}"
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
"reveal": {
|
|
196
|
+
"summary": "Bring a block into view on the canvas, the chosen one without an id; refused unknown, unchanged when it is already in view.",
|
|
197
|
+
"arguments": [
|
|
198
|
+
{
|
|
199
|
+
"name": "id",
|
|
200
|
+
"schema": {}
|
|
201
|
+
}
|
|
202
|
+
],
|
|
203
|
+
"returns": {
|
|
204
|
+
"type": "object",
|
|
205
|
+
"description": "{outcome: applied} or {outcome: refused, reason: unknown | unchanged}"
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
"refresh": {
|
|
209
|
+
"summary": "Measure the frame and update the overlay again, after a change nothing reports (a transform on an ancestor).",
|
|
210
|
+
"arguments": [],
|
|
211
|
+
"returns": {
|
|
212
|
+
"type": "object",
|
|
213
|
+
"description": "{outcome: applied}"
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
"events": {
|
|
218
|
+
"sf-mail-canvas-select": {
|
|
219
|
+
"summary": "This block was chosen: {ids, id}. An empty id is none.",
|
|
220
|
+
"payload": {
|
|
221
|
+
"type": "object",
|
|
222
|
+
"required": [
|
|
223
|
+
"ids",
|
|
224
|
+
"id"
|
|
225
|
+
],
|
|
226
|
+
"properties": {
|
|
227
|
+
"ids": {
|
|
228
|
+
"type": "array"
|
|
229
|
+
},
|
|
230
|
+
"id": {}
|
|
231
|
+
},
|
|
232
|
+
"additionalProperties": true
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
"sf-mail-canvas-hover": {
|
|
236
|
+
"summary": "The pointer is over this block: {id}. An empty id is none.",
|
|
237
|
+
"payload": {
|
|
238
|
+
"type": "object",
|
|
239
|
+
"required": [
|
|
240
|
+
"id"
|
|
241
|
+
],
|
|
242
|
+
"properties": {
|
|
243
|
+
"id": {}
|
|
244
|
+
},
|
|
245
|
+
"additionalProperties": true
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
"change": {
|
|
249
|
+
"summary": "The width in use is now this: {value, previous}.",
|
|
250
|
+
"payload": {
|
|
251
|
+
"type": "object",
|
|
252
|
+
"required": [
|
|
253
|
+
"value",
|
|
254
|
+
"previous"
|
|
255
|
+
],
|
|
256
|
+
"properties": {
|
|
257
|
+
"value": {
|
|
258
|
+
"type": "string"
|
|
259
|
+
},
|
|
260
|
+
"previous": {
|
|
261
|
+
"type": "string"
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
"additionalProperties": true
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
"sf-mail-canvas-apply": {
|
|
268
|
+
"summary": "This toolbar action was chosen for this block: {action, scope, ids}.",
|
|
269
|
+
"payload": {
|
|
270
|
+
"type": "object",
|
|
271
|
+
"required": [
|
|
272
|
+
"action",
|
|
273
|
+
"scope",
|
|
274
|
+
"ids"
|
|
275
|
+
],
|
|
276
|
+
"properties": {
|
|
277
|
+
"action": {
|
|
278
|
+
"type": "string"
|
|
279
|
+
},
|
|
280
|
+
"scope": {
|
|
281
|
+
"const": "entry"
|
|
282
|
+
},
|
|
283
|
+
"ids": {
|
|
284
|
+
"type": "array"
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
"additionalProperties": true
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
"sf-mail-canvas-insert": {
|
|
291
|
+
"summary": "A block was asked for at this place: {parent, slot, index, item, from, mode}.",
|
|
292
|
+
"payload": {
|
|
293
|
+
"type": "object",
|
|
294
|
+
"required": [
|
|
295
|
+
"parent",
|
|
296
|
+
"slot",
|
|
297
|
+
"index"
|
|
298
|
+
],
|
|
299
|
+
"properties": {
|
|
300
|
+
"parent": {},
|
|
301
|
+
"slot": {
|
|
302
|
+
"type": "string"
|
|
303
|
+
},
|
|
304
|
+
"index": {
|
|
305
|
+
"type": "integer"
|
|
306
|
+
},
|
|
307
|
+
"item": {
|
|
308
|
+
"type": "string"
|
|
309
|
+
},
|
|
310
|
+
"from": {
|
|
311
|
+
"type": "string"
|
|
312
|
+
},
|
|
313
|
+
"mode": {
|
|
314
|
+
"enum": [
|
|
315
|
+
"move",
|
|
316
|
+
"copy"
|
|
317
|
+
]
|
|
318
|
+
}
|
|
319
|
+
},
|
|
320
|
+
"additionalProperties": true
|
|
321
|
+
}
|
|
322
|
+
},
|
|
323
|
+
"sf-mail-canvas-move": {
|
|
324
|
+
"summary": "Move this block to this place: {ids, id, parent, position, slot}.",
|
|
325
|
+
"payload": {
|
|
326
|
+
"type": "object",
|
|
327
|
+
"required": [
|
|
328
|
+
"ids",
|
|
329
|
+
"id",
|
|
330
|
+
"parent",
|
|
331
|
+
"position",
|
|
332
|
+
"slot"
|
|
333
|
+
],
|
|
334
|
+
"properties": {
|
|
335
|
+
"ids": {
|
|
336
|
+
"type": "array"
|
|
337
|
+
},
|
|
338
|
+
"id": {},
|
|
339
|
+
"parent": {},
|
|
340
|
+
"position": {
|
|
341
|
+
"type": "number"
|
|
342
|
+
},
|
|
343
|
+
"slot": {
|
|
344
|
+
"type": "string"
|
|
345
|
+
}
|
|
346
|
+
},
|
|
347
|
+
"additionalProperties": true
|
|
348
|
+
}
|
|
349
|
+
},
|
|
350
|
+
"sf-mail-canvas-edit": {
|
|
351
|
+
"summary": "This node's text now reads this: {id, value, previous}. Cancel to put the text back.",
|
|
352
|
+
"payload": {
|
|
353
|
+
"type": "object",
|
|
354
|
+
"required": [
|
|
355
|
+
"id",
|
|
356
|
+
"value",
|
|
357
|
+
"previous"
|
|
358
|
+
],
|
|
359
|
+
"properties": {
|
|
360
|
+
"id": {},
|
|
361
|
+
"value": {
|
|
362
|
+
"type": "string"
|
|
363
|
+
},
|
|
364
|
+
"previous": {
|
|
365
|
+
"type": "string"
|
|
366
|
+
}
|
|
367
|
+
},
|
|
368
|
+
"additionalProperties": true
|
|
369
|
+
}
|
|
370
|
+
},
|
|
371
|
+
"sf-mail-canvas-draw": {
|
|
372
|
+
"summary": "A new letter is in the frame, not yet measured.",
|
|
373
|
+
"payload": {
|
|
374
|
+
"type": "object",
|
|
375
|
+
"required": [],
|
|
376
|
+
"properties": {},
|
|
377
|
+
"additionalProperties": true
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
},
|
|
381
|
+
"state": {
|
|
382
|
+
"machines": {
|
|
383
|
+
"picture": [
|
|
384
|
+
"none",
|
|
385
|
+
"shown",
|
|
386
|
+
"drawing"
|
|
387
|
+
]
|
|
388
|
+
},
|
|
389
|
+
"visual_states": [
|
|
390
|
+
"default",
|
|
391
|
+
"selected",
|
|
392
|
+
"loading"
|
|
393
|
+
]
|
|
394
|
+
},
|
|
395
|
+
"persistence": {
|
|
396
|
+
"mode": "none",
|
|
397
|
+
"source_of_truth": "host",
|
|
398
|
+
"network_owner": "host",
|
|
399
|
+
"revision_field": null
|
|
400
|
+
},
|
|
401
|
+
"ownership": {
|
|
402
|
+
"source": "simai/ui-pro",
|
|
403
|
+
"data": "host",
|
|
404
|
+
"effects": "host",
|
|
405
|
+
"forbidden_client_responsibilities": [
|
|
406
|
+
"rendering or changing the letter",
|
|
407
|
+
"knowing the block manifest",
|
|
408
|
+
"running anything from the letter"
|
|
409
|
+
]
|
|
410
|
+
},
|
|
411
|
+
"security": {
|
|
412
|
+
"permissions_owner": "host",
|
|
413
|
+
"untrusted_inputs": [
|
|
414
|
+
"html (shown in a sandboxed frame with no scripts)",
|
|
415
|
+
"marks in html (a block only when items names it)"
|
|
416
|
+
],
|
|
417
|
+
"network_policy": "deny"
|
|
418
|
+
},
|
|
419
|
+
"accessibility": {
|
|
420
|
+
"role": "region",
|
|
421
|
+
"accessible_name": "internal",
|
|
422
|
+
"keyboard": [
|
|
423
|
+
"Tab",
|
|
424
|
+
"ArrowUp",
|
|
425
|
+
"ArrowDown",
|
|
426
|
+
"ArrowLeft",
|
|
427
|
+
"ArrowRight",
|
|
428
|
+
"Home",
|
|
429
|
+
"End",
|
|
430
|
+
"Enter",
|
|
431
|
+
"Escape"
|
|
432
|
+
],
|
|
433
|
+
"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."
|
|
434
|
+
},
|
|
435
|
+
"presentation": {
|
|
436
|
+
"themes": [
|
|
437
|
+
"light",
|
|
438
|
+
"dark"
|
|
439
|
+
],
|
|
440
|
+
"locales": [
|
|
441
|
+
"en",
|
|
442
|
+
"ru"
|
|
443
|
+
],
|
|
444
|
+
"responsive": [
|
|
445
|
+
"desktop",
|
|
446
|
+
"mobile"
|
|
447
|
+
]
|
|
448
|
+
},
|
|
449
|
+
"adapter": {
|
|
450
|
+
"kind": "generic",
|
|
451
|
+
"protocol": "simai.smart-studio-adapter.v1",
|
|
452
|
+
"module": null
|
|
453
|
+
},
|
|
454
|
+
"artifacts": {
|
|
455
|
+
"fixtures": [
|
|
456
|
+
"studio.fixture.json"
|
|
457
|
+
],
|
|
458
|
+
"scenarios": [
|
|
459
|
+
"studio.scenario.json"
|
|
460
|
+
]
|
|
461
|
+
},
|
|
462
|
+
"readiness": {
|
|
463
|
+
"level": "host-required",
|
|
464
|
+
"required_checks": [
|
|
465
|
+
"manifest",
|
|
466
|
+
"loader-rule",
|
|
467
|
+
"mail-canvas-probe"
|
|
468
|
+
]
|
|
469
|
+
},
|
|
470
|
+
"compatibility": {
|
|
471
|
+
"contract_schema": {
|
|
472
|
+
"id": "https://simai.io/contracts/smart-component-manifest.v2.schema.json",
|
|
473
|
+
"version": 2
|
|
474
|
+
},
|
|
475
|
+
"runtime_pair": {
|
|
476
|
+
"ui_revision": "d6292bd6fc34b6bab3cc2c21ee04ee321a7b5ee2",
|
|
477
|
+
"ui_smart_revision": "d6292bd6fc34b6bab3cc2c21ee04ee321a7b5ee2"
|
|
478
|
+
},
|
|
479
|
+
"aliases": [],
|
|
480
|
+
"deprecations": [],
|
|
481
|
+
"replacement": null,
|
|
482
|
+
"migrations": [
|
|
483
|
+
{
|
|
484
|
+
"from": "1.1.0",
|
|
485
|
+
"to": "1.1.1",
|
|
486
|
+
"changes": [
|
|
487
|
+
"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."
|
|
488
|
+
]
|
|
489
|
+
}
|
|
490
|
+
]
|
|
491
|
+
},
|
|
492
|
+
"provenance": {
|
|
493
|
+
"source_repository": "simai/ui-pro",
|
|
494
|
+
"source_revision": "a5ac53753d95b49e2e70078c94fd89ccd3045993",
|
|
495
|
+
"source_artifacts": [
|
|
496
|
+
{
|
|
497
|
+
"path": "src/smart/mail-canvas/index.js",
|
|
498
|
+
"sha256": "063ea1abc6f60acfeeed59b27b72f5a235c098aac10f1511237f2ebab2adfd41"
|
|
499
|
+
},
|
|
500
|
+
{
|
|
501
|
+
"path": "src/smart/mail-canvas/js/templates/default.js",
|
|
502
|
+
"sha256": "270385d45db41b0d878f26445a652e797b50c615928805bc730bd0d6c480a98a"
|
|
503
|
+
},
|
|
504
|
+
{
|
|
505
|
+
"path": "src/smart/mail-canvas/js/templates/default.css",
|
|
506
|
+
"sha256": "d82fe40898b316becdb403a3f34440e2ef2ed8f125cfac5195c4c1921cc95a0e"
|
|
507
|
+
},
|
|
508
|
+
{
|
|
509
|
+
"path": "src/smart/mail-canvas/rule.js",
|
|
510
|
+
"sha256": "64de351d5805fe3924397a5afaa78ea6c5a2f50b64eef8b10aca86ff406777a4"
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
"path": "src/smart/mail-canvas/docs.md",
|
|
514
|
+
"sha256": "e0f2de81c0670804be2b75c77eb4dfdcd5234f2ef5b054bcc4f1eef6cb76ad8d"
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
"path": "src/smart/mail-canvas/component.json",
|
|
518
|
+
"sha256": "5f7386092017641cd19287467c97b17305f0d479ccd7b12a5d539b8d1c2e5e09"
|
|
519
|
+
},
|
|
520
|
+
{
|
|
521
|
+
"path": "src/smart/mail-canvas/lang/en.json",
|
|
522
|
+
"sha256": "bc46bd17c3b7aae142e66d52332759daaad872c476a9852c4baafd1bb57132f3"
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
"path": "src/smart/mail-canvas/lang/ru.json",
|
|
526
|
+
"sha256": "991edbb8e3d7ee68ffb3605ef307f71b868feed79d8c368ddafc559067930dce"
|
|
527
|
+
}
|
|
528
|
+
],
|
|
529
|
+
"generated_runtime": []
|
|
530
|
+
},
|
|
531
|
+
"ai_guidance": {
|
|
532
|
+
"use_when": "Use sf-mail-canvas wherever a person sees and presses on a rendered letter in SIMAI Email Editor.",
|
|
533
|
+
"do_not": [
|
|
534
|
+
"Do not give the frame scripts or a wider sandbox",
|
|
535
|
+
"Do not place the element's own overlay under an ancestor with contain: layout; pass overlay-target",
|
|
536
|
+
"Do not render or change the letter in the element; listen for its events and do it in the host"
|
|
537
|
+
],
|
|
538
|
+
"required_reads": [
|
|
539
|
+
"inputs",
|
|
540
|
+
"contracts",
|
|
541
|
+
"events",
|
|
542
|
+
"accessibility"
|
|
543
|
+
],
|
|
544
|
+
"minimal_example": "<sf-mail-canvas id=\"canvas\"></sf-mail-canvas> <script>canvas.items = [{id: 'b1', label: 'Заголовок'}]; canvas.html = '<p data-block=\"b1\">Письмо</p>';</script>",
|
|
545
|
+
"owner_commands": [
|
|
546
|
+
"node scripts/test.mjs",
|
|
547
|
+
"node scripts/run-manifest-probes.mjs <free output> <package output> mail-canvas"
|
|
548
|
+
]
|
|
549
|
+
}
|
|
550
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
<!-- sf-mail-canvas, example «notes»: 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-canvas html="<!doctype html><html lang="ru"><head><meta charset="utf-8"><title>Письмо</title><style>html,body{margin:0;background:transparent}.email{max-width:600px;margin:0 auto;background:#fff;color:#1a1a1a;font:16px/1.5 sans-serif}[data-block-box]{padding:8px 40px}h1{margin:0;font-size:24px}p{margin:0}</style></head><body><div class="email"><div data-block="b1"><div data-block-box><h1>Осенняя рассылка</h1></div></div><div data-block="b2"><div data-block-box><p>Здравствуйте! Рассказываем, что нового.</p></div></div><div data-block="b3"><div data-block-box><a href="https://example.com/">Подробнее</a></div></div></div></body></html>" box-attribute="data-block-box" paper=".email" stale width="600" style="display: contents;"><script type="application/json" data-sf-settings>{"widths":[{"value":"600","label":"Компьютер 600","icon":"desktop_windows","frame":680},{"value":"375","label":"Телефон 375","icon":"smartphone"},{"value":"320","label":"Узкий 320","icon":"phone_iphone"}],"items":[{"id":"b1","label":"Заголовок"},{"id":"b2","label":"Текст"},{"id":"b3","label":"Кнопка"}],"actions":[{"id":"up","label":"Выше"},{"id":"down","label":"Ниже"},{"id":"remove","label":"Удалить"}],"weight":{"bytes":98,"max":90}}</script>
|
|
3
|
+
<section class="sf-mail-canvas" aria-label="Предпросмотр" data-sf-static>
|
|
4
|
+
<h2 class="sr-only">Предпросмотр</h2>
|
|
5
|
+
<div class="sf-mail-canvas-bar">
|
|
6
|
+
<sf-segmented class="sf-mail-canvas-widths" plate="raised" size="1/2" aria-label="Ширина письма" value="600" items="[{"value":"600","label":"Компьютер 600","icon":"desktop_windows","frame":680},{"value":"375","label":"Телефон 375","icon":"smartphone"},{"value":"320","label":"Узкий 320","icon":"phone_iphone"}]" style="display: contents;" data-sf-size-relative>
|
|
7
|
+
<div role="radiogroup" class="sf-button-group sf-button-group--segmented sf-button-group--size-1/2 sf-button-group--plate-raised sf-button-group--primary" aria-label="Ширина письма" aria-orientation="horizontal" data-value="600" data-plate="placed" data-sf-static>
|
|
8
|
+
<span class="sf-button-group-plate" aria-hidden="true"></span>
|
|
9
|
+
|
|
10
|
+
<button type="button" class="sf-button sf-button--size-1/2 sf-button--ghost sf-button--link sf-button--on-surface flex items-cross-center sf-button-group-segment active" data-sf-button-group-value="600" role="radio" aria-checked="true" tabindex="0">
|
|
11
|
+
|
|
12
|
+
<sf-icon root-class="pointer-events-none" weight="400" aria-hidden="true" icon="desktop_windows" style="display: contents;"><i class="sf-icon sf-icon--weight-regular pointer-events-none" aria-hidden="true" data-sf-static>desktop_windows</i></sf-icon>
|
|
13
|
+
<span class="sf-button-text-container text-center pointer-events-none">Компьютер 600</span>
|
|
14
|
+
</button>
|
|
15
|
+
|
|
16
|
+
<button type="button" class="sf-button sf-button--size-1/2 sf-button--ghost sf-button--link sf-button--on-surface flex items-cross-center sf-button-group-segment" data-sf-button-group-value="375" role="radio" aria-checked="false" tabindex="-1">
|
|
17
|
+
|
|
18
|
+
<sf-icon root-class="pointer-events-none" weight="400" aria-hidden="true" icon="smartphone" style="display: contents;"><i class="sf-icon sf-icon--weight-regular pointer-events-none" aria-hidden="true" data-sf-static>smartphone</i></sf-icon>
|
|
19
|
+
<span class="sf-button-text-container text-center pointer-events-none">Телефон 375</span>
|
|
20
|
+
</button>
|
|
21
|
+
|
|
22
|
+
<button type="button" class="sf-button sf-button--size-1/2 sf-button--ghost sf-button--link sf-button--on-surface flex items-cross-center sf-button-group-segment" data-sf-button-group-value="320" role="radio" aria-checked="false" tabindex="-1">
|
|
23
|
+
|
|
24
|
+
<sf-icon root-class="pointer-events-none" weight="400" aria-hidden="true" icon="phone_iphone" style="display: contents;"><i class="sf-icon sf-icon--weight-regular pointer-events-none" aria-hidden="true" data-sf-static>phone_iphone</i></sf-icon>
|
|
25
|
+
<span class="sf-button-text-container text-center pointer-events-none">Узкий 320</span>
|
|
26
|
+
</button>
|
|
27
|
+
|
|
28
|
+
</div>
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
</sf-segmented>
|
|
33
|
+
</div>
|
|
34
|
+
<p class="sf-mail-canvas-note sf-mail-canvas-stale">Предпросмотр устарел: исправьте ошибку в полях.</p>
|
|
35
|
+
<p class="sf-mail-canvas-note sf-mail-canvas-weight" role="status">HTML письма 98 КБ (предупреждение с 90 КБ). Gmail обрезает письмо около 102 КБ, и подвал теряется первым.</p>
|
|
36
|
+
<div class="sf-mail-canvas-scroll">
|
|
37
|
+
<section class="sf-mail-canvas-layer" aria-label="Слой редактора над письмом">
|
|
38
|
+
<sf-editor-overlay label="Предпросмотр" class="sf-composition-overlay" data-sf-overlay-mode="frame" data-sf-overlay="connected" data-sf-overlay-place="content" style="--sf-composition-overlay-frame-color: var(--sf-paper-primary);"><div class="sf-composition-overlay-tree" role="tree" tabindex="0" aria-label="Предпросмотр" data-sf-static><div id="sf-mail-canvas-notes-1" role="treeitem" aria-level="1" aria-setsize="3" aria-posinset="1" aria-label="Заголовок" data-node-id="b1" aria-selected="false"></div><div id="sf-mail-canvas-notes-2" role="treeitem" aria-level="1" aria-setsize="3" aria-posinset="2" aria-label="Текст" data-node-id="b2" aria-selected="false"></div><div id="sf-mail-canvas-notes-3" role="treeitem" aria-level="1" aria-setsize="3" aria-posinset="3" aria-label="Кнопка" data-node-id="b3" aria-selected="false"></div></div><div class="sf-composition-overlay-rail" data-sf-static><div class="sf-composition-overlay-toolbar" role="toolbar" hidden aria-label="Действия"></div></div><div class="sf-composition-overlay-insertions" data-sf-static></div><div class="sf-composition-overlay-layer" aria-hidden="true" data-sf-static><div class="sf-composition-overlay-frame sf-composition-overlay-frame--hover" hidden></div><div class="sf-composition-overlay-frame sf-composition-overlay-frame--selected" hidden></div></div><div class="sf-composition-overlay-live" aria-live="polite" data-sf-static></div></sf-editor-overlay>
|
|
39
|
+
</section>
|
|
40
|
+
<iframe sandbox="allow-same-origin" tabindex="-1" class="sf-mail-canvas-frame" title="Письмо в предпросмотре" width="680" srcdoc="<!doctype html><html lang="ru"><head><meta charset="utf-8"><title>Письмо</title><style>html,body{margin:0;background:transparent}.email{max-width:600px;margin:0 auto;background:#fff;color:#1a1a1a;font:16px/1.5 sans-serif}[data-block-box]{padding:8px 40px}h1{margin:0;font-size:24px}p{margin:0}</style></head><body><div class="email"><div data-block="b1"><div data-block-box><h1>Осенняя рассылка</h1></div></div><div data-block="b2"><div data-block-box><p>Здравствуйте! Рассказываем, что нового.</p></div></div><div data-block="b3"><div data-block-box><a href="https://example.com/">Подробнее</a></div></div></div></body></html>"></iframe>
|
|
41
|
+
</div>
|
|
42
|
+
</section>
|
|
43
|
+
</sf-mail-canvas>
|
|
Binary file
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
<!-- sf-mail-canvas, example «phone»: 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-canvas html="<!doctype html><html lang="ru"><head><meta charset="utf-8"><title>Письмо</title><style>html,body{margin:0;background:transparent}.email{max-width:600px;margin:0 auto;background:#fff;color:#1a1a1a;font:16px/1.5 sans-serif}[data-block-box]{padding:8px 40px}h1{margin:0;font-size:24px}p{margin:0}</style></head><body><div class="email"><div data-block="b1"><div data-block-box><h1>Осенняя рассылка</h1></div></div><div data-block="b2"><div data-block-box><p>Здравствуйте! Рассказываем, что нового.</p></div></div><div data-block="b3"><div data-block-box><a href="https://example.com/">Подробнее</a></div></div></div></body></html>" box-attribute="data-block-box" paper=".email" width="375" style="display: contents;"><script type="application/json" data-sf-settings>{"widths":[{"value":"600","label":"Компьютер 600","icon":"desktop_windows","frame":680},{"value":"375","label":"Телефон 375","icon":"smartphone"},{"value":"320","label":"Узкий 320","icon":"phone_iphone"}],"items":[{"id":"b1","label":"Заголовок"},{"id":"b2","label":"Текст"},{"id":"b3","label":"Кнопка"}],"actions":[{"id":"up","label":"Выше"},{"id":"down","label":"Ниже"},{"id":"remove","label":"Удалить"}]}</script>
|
|
3
|
+
<section class="sf-mail-canvas" aria-label="Предпросмотр" data-sf-static>
|
|
4
|
+
<h2 class="sr-only">Предпросмотр</h2>
|
|
5
|
+
<div class="sf-mail-canvas-bar">
|
|
6
|
+
<sf-segmented class="sf-mail-canvas-widths" plate="raised" size="1/2" aria-label="Ширина письма" value="375" items="[{"value":"600","label":"Компьютер 600","icon":"desktop_windows","frame":680},{"value":"375","label":"Телефон 375","icon":"smartphone"},{"value":"320","label":"Узкий 320","icon":"phone_iphone"}]" style="display: contents;" data-sf-size-relative>
|
|
7
|
+
<div role="radiogroup" class="sf-button-group sf-button-group--segmented sf-button-group--size-1/2 sf-button-group--plate-raised sf-button-group--primary" aria-label="Ширина письма" aria-orientation="horizontal" data-value="375" data-plate="placed" data-sf-static>
|
|
8
|
+
<span class="sf-button-group-plate" aria-hidden="true"></span>
|
|
9
|
+
|
|
10
|
+
<button type="button" class="sf-button sf-button--size-1/2 sf-button--ghost sf-button--link sf-button--on-surface flex items-cross-center sf-button-group-segment" data-sf-button-group-value="600" role="radio" aria-checked="false" tabindex="-1">
|
|
11
|
+
|
|
12
|
+
<sf-icon root-class="pointer-events-none" weight="400" aria-hidden="true" icon="desktop_windows" style="display: contents;"><i class="sf-icon sf-icon--weight-regular pointer-events-none" aria-hidden="true" data-sf-static>desktop_windows</i></sf-icon>
|
|
13
|
+
<span class="sf-button-text-container text-center pointer-events-none">Компьютер 600</span>
|
|
14
|
+
</button>
|
|
15
|
+
|
|
16
|
+
<button type="button" class="sf-button sf-button--size-1/2 sf-button--ghost sf-button--link sf-button--on-surface flex items-cross-center sf-button-group-segment active" data-sf-button-group-value="375" role="radio" aria-checked="true" tabindex="0">
|
|
17
|
+
|
|
18
|
+
<sf-icon root-class="pointer-events-none" weight="400" aria-hidden="true" icon="smartphone" style="display: contents;"><i class="sf-icon sf-icon--weight-regular pointer-events-none" aria-hidden="true" data-sf-static>smartphone</i></sf-icon>
|
|
19
|
+
<span class="sf-button-text-container text-center pointer-events-none">Телефон 375</span>
|
|
20
|
+
</button>
|
|
21
|
+
|
|
22
|
+
<button type="button" class="sf-button sf-button--size-1/2 sf-button--ghost sf-button--link sf-button--on-surface flex items-cross-center sf-button-group-segment" data-sf-button-group-value="320" role="radio" aria-checked="false" tabindex="-1">
|
|
23
|
+
|
|
24
|
+
<sf-icon root-class="pointer-events-none" weight="400" aria-hidden="true" icon="phone_iphone" style="display: contents;"><i class="sf-icon sf-icon--weight-regular pointer-events-none" aria-hidden="true" data-sf-static>phone_iphone</i></sf-icon>
|
|
25
|
+
<span class="sf-button-text-container text-center pointer-events-none">Узкий 320</span>
|
|
26
|
+
</button>
|
|
27
|
+
|
|
28
|
+
</div>
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
</sf-segmented>
|
|
33
|
+
</div>
|
|
34
|
+
<p class="sf-mail-canvas-note sf-mail-canvas-stale" hidden></p>
|
|
35
|
+
<p class="sf-mail-canvas-note sf-mail-canvas-weight" role="status" hidden></p>
|
|
36
|
+
<div class="sf-mail-canvas-scroll">
|
|
37
|
+
<section class="sf-mail-canvas-layer" aria-label="Слой редактора над письмом">
|
|
38
|
+
<sf-editor-overlay label="Предпросмотр" class="sf-composition-overlay" data-sf-overlay-mode="frame" data-sf-overlay="connected" data-sf-overlay-place="content" style="--sf-composition-overlay-frame-color: var(--sf-paper-primary);"><div class="sf-composition-overlay-tree" role="tree" tabindex="0" aria-label="Предпросмотр" data-sf-static><div id="sf-mail-canvas-phone-1" role="treeitem" aria-level="1" aria-setsize="3" aria-posinset="1" aria-label="Заголовок" data-node-id="b1" aria-selected="false"></div><div id="sf-mail-canvas-phone-2" role="treeitem" aria-level="1" aria-setsize="3" aria-posinset="2" aria-label="Текст" data-node-id="b2" aria-selected="false"></div><div id="sf-mail-canvas-phone-3" role="treeitem" aria-level="1" aria-setsize="3" aria-posinset="3" aria-label="Кнопка" data-node-id="b3" aria-selected="false"></div></div><div class="sf-composition-overlay-rail" data-sf-static><div class="sf-composition-overlay-toolbar" role="toolbar" hidden aria-label="Действия"></div></div><div class="sf-composition-overlay-insertions" data-sf-static></div><div class="sf-composition-overlay-layer" aria-hidden="true" data-sf-static><div class="sf-composition-overlay-frame sf-composition-overlay-frame--hover" hidden></div><div class="sf-composition-overlay-frame sf-composition-overlay-frame--selected" hidden></div></div><div class="sf-composition-overlay-live" aria-live="polite" data-sf-static></div></sf-editor-overlay>
|
|
39
|
+
</section>
|
|
40
|
+
<iframe sandbox="allow-same-origin" tabindex="-1" class="sf-mail-canvas-frame shadow-raised" title="Письмо в предпросмотре" width="375" srcdoc="<!doctype html><html lang="ru"><head><meta charset="utf-8"><title>Письмо</title><style>html,body{margin:0;background:transparent}.email{max-width:600px;margin:0 auto;background:#fff;color:#1a1a1a;font:16px/1.5 sans-serif}[data-block-box]{padding:8px 40px}h1{margin:0;font-size:24px}p{margin:0}</style></head><body><div class="email"><div data-block="b1"><div data-block-box><h1>Осенняя рассылка</h1></div></div><div data-block="b2"><div data-block-box><p>Здравствуйте! Рассказываем, что нового.</p></div></div><div data-block="b3"><div data-block-box><a href="https://example.com/">Подробнее</a></div></div></div></body></html>"></iframe>
|
|
41
|
+
</div>
|
|
42
|
+
</section>
|
|
43
|
+
</sf-mail-canvas>
|
|
Binary file
|