@uniweb/semantic-parser 1.0.11 → 1.0.12

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/AGENTS.md CHANGED
@@ -93,9 +93,9 @@ The `data` object holds all structured content:
93
93
 
94
94
  ```js
95
95
  data: {
96
- "nav-links": [...], // From ```json:nav-links or ```yaml:nav-links
96
+ "nav-links": [...], // From ```yaml:nav-links
97
97
  "config": {...}, // From ```yaml:config
98
- "form": {...}, // From FormBlock editor widget
98
+ "form": {...}, // From FormBlock editor widget or ```yaml:form
99
99
  "person": [...], // From card-group with cardType="person"
100
100
  "event": [...] // From card-group with cardType="event"
101
101
  }
@@ -132,8 +132,11 @@ See `docs/entity-consolidation.md` for complete mapping documentation.
132
132
  Code blocks with tags route parsed data to the `data` object:
133
133
 
134
134
  ```markdown
135
- ```json:nav-links
136
- [{ "label": "Home", "href": "/" }]
135
+ ```yaml:nav-links
136
+ - label: Home
137
+ href: /
138
+ - label: About
139
+ href: /about
137
140
  ```
138
141
 
139
142
  ```yaml:config
@@ -142,6 +145,8 @@ theme: dark
142
145
  ```
143
146
  ```
144
147
 
148
+ JSON is also supported (`json:tag-name`) if you prefer.
149
+
145
150
  Results in:
146
151
  ```js
147
152
  content.data['nav-links'] = [{ label: "Home", href: "/" }]
@@ -154,11 +154,14 @@ fields:
154
154
  submitLabel: Subscribe
155
155
  ```
156
156
 
157
- ```json:nav-links
158
- [{ "label": "Home", "href": "/" }]
157
+ ```yaml:nav-links
158
+ - label: Home
159
+ href: /
159
160
  ```
160
161
  ```
161
162
 
163
+ JSON is also supported (`json:tag-name`) if you prefer.
164
+
162
165
  ---
163
166
 
164
167
  ## Editor Node Mappings
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniweb/semantic-parser",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "description": "Semantic parser for ProseMirror/TipTap content structures",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",