@maily-to/core 0.0.25 → 0.0.26

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maily-to/core",
3
- "version": "0.0.25",
3
+ "version": "0.0.26",
4
4
  "description": "Powerful editor for creating beautiful, pre-designed, mobile-ready emails.",
5
5
  "private": false,
6
6
  "main": "./dist/index.js",
package/readme.md CHANGED
@@ -94,10 +94,10 @@ You can pass variables to the editor in two ways:
94
94
  variables={({ query, from, editor }) => {
95
95
  // magic goes here
96
96
  // query: the text after the trigger character
97
- // from: the context from where the variables are requested (for, variable)
97
+ // from: the context from where the variables are requested (repeat, variable)
98
98
  // editor: the editor instance
99
- if (from === 'for') {
100
- // return variables for the For block `each` key
99
+ if (from === 'repeat-variable') {
100
+ // return variables for the Repeat block `each` key
101
101
  return [
102
102
  { name: 'notifications' },
103
103
  { name: 'comments' },