@mathscan/math-exercise-engine 1.0.2 → 1.0.4

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 CHANGED
@@ -137,9 +137,11 @@ Creates an input field for text with up to 5 characters.
137
137
 
138
138
  ```
139
139
  TEXT_HIGHLIGHTER[value="123456", start=2, end=3]
140
+ HIGHLIGHT_TEXT[value="123456", start=2, end=3] // Alias
140
141
  ```
141
142
 
142
143
  Displays text with specific characters highlighted (useful for highlighting digits in numbers).
144
+ Both `TEXT_HIGHLIGHTER` and `HIGHLIGHT_TEXT` are supported (aliases).
143
145
 
144
146
  ### Validators
145
147
 
@@ -242,9 +244,9 @@ All layout items include unique `id` fields for React/JSX rendering:
242
244
  "version": "2.0",
243
245
  "layout": [
244
246
  { "id": "text_1", "type": "text", "value": "25" },
245
- { "id": "operator_2", "type": "operator", "value": "+" },
247
+ { "id": "operator_2", "type": "operator", "operator": "+" },
246
248
  { "id": "widget-ref_3", "type": "widget-ref", "widgetId": "x" },
247
- { "id": "operator_4", "type": "operator", "value": "=" },
249
+ { "id": "operator_4", "type": "operator", "operator": "=" },
248
250
  { "id": "text_5", "type": "text", "value": "30" }
249
251
  ],
250
252
  "widgets": {