@mjml-agent-editor/editor 0.1.16 → 0.2.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/README.md +8 -4
- package/dist/canvas.cjs +2895 -468
- package/dist/canvas.cjs.map +1 -1
- package/dist/canvas.js +2592 -386
- package/dist/canvas.js.map +1 -1
- package/dist/{chunk-W3HCLTFJ.js → chunk-FTEJNUJL.js} +198 -2
- package/dist/chunk-FTEJNUJL.js.map +1 -0
- package/dist/index.cjs +197 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +68 -5
- package/dist/index.d.ts +68 -5
- package/dist/index.js +1 -1
- package/package.json +8 -7
- package/src/components/editor/editor-theme.css +51 -80
- package/dist/chunk-W3HCLTFJ.js.map +0 -1
package/README.md
CHANGED
|
@@ -138,10 +138,14 @@ building in another language overrides rather than forks:
|
|
|
138
138
|
>
|
|
139
139
|
```
|
|
140
140
|
|
|
141
|
-
Overrides are shallow-merged, so anything omitted stays English.
|
|
142
|
-
exception and
|
|
143
|
-
|
|
144
|
-
|
|
141
|
+
Overrides are shallow-merged, so anything omitted stays English. The maps keyed by an id
|
|
142
|
+
are the exception and merge key by key, so translating one entry keeps the others:
|
|
143
|
+
`toolLabels` (by agent tool), `blockLabels` (by block id, e.g. `mj-2-columns`),
|
|
144
|
+
`elementNames` (by MJML tag) and `inspectorLabels` (the Settings tab's field and option
|
|
145
|
+
names, and help as `<key>.help`). `DEFAULT_LABELS` and the `EditorLabels` type are exported
|
|
146
|
+
if you want to see the full list or build a complete translation; for `inspectorLabels` the
|
|
147
|
+
keys in `DEFAULT_LABELS.inspectorLabels` are the whole set. Font and brand names (Arial,
|
|
148
|
+
Facebook) are shown as they are and have no key.
|
|
145
149
|
|
|
146
150
|
New keys arrive with new features, including in 0.1.x releases. They always have English
|
|
147
151
|
defaults, so a host passing `Partial<EditorLabels>` picks them up untouched; a host that
|