@markuplint/ml-spec 2.0.0-dev.26 → 2.0.0-rc.5
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/lib/attributes.d.ts +77 -11
- package/lib/get-attr-specs.d.ts +7 -0
- package/lib/get-attr-specs.js +95 -0
- package/lib/get-spec-by-tag-name.js +11 -3
- package/lib/get-spec.js +22 -5
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/lib/permitted-structres.d.ts +12 -0
- package/lib/types.d.ts +25 -13
- package/package.json +6 -4
- package/schemas/attributes.schema.json +168 -181
- package/schemas/global-attributes.schema.json +749 -6
- package/schemas/permitted-structures.schema.json +19 -7
- package/src/attributes.ts +1393 -108
- package/src/get-attr-specs.spec.ts +44 -0
- package/src/get-attr-specs.ts +111 -0
- package/src/get-spec-by-tag-name.ts +14 -6
- package/src/get-spec.spec.ts +10 -17
- package/src/get-spec.ts +27 -6
- package/src/index.ts +1 -0
- package/src/permitted-structres.ts +12 -0
- package/src/types.ts +30 -13
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -98,7 +98,8 @@
|
|
|
98
98
|
"uniqueItems": true
|
|
99
99
|
},
|
|
100
100
|
"max": { "type": "number" },
|
|
101
|
-
"min": { "type": "number" }
|
|
101
|
+
"min": { "type": "number" },
|
|
102
|
+
"_TODO_": { "type": "string" }
|
|
102
103
|
}
|
|
103
104
|
},
|
|
104
105
|
"PermittedContentOptional": {
|
|
@@ -113,7 +114,8 @@
|
|
|
113
114
|
"items": { "$ref": "#/definitions/Node" },
|
|
114
115
|
"uniqueItems": true
|
|
115
116
|
},
|
|
116
|
-
"max": { "type": "number" }
|
|
117
|
+
"max": { "type": "number" },
|
|
118
|
+
"_TODO_": { "type": "string" }
|
|
117
119
|
}
|
|
118
120
|
},
|
|
119
121
|
"PermittedContentOneOrMore": {
|
|
@@ -130,7 +132,8 @@
|
|
|
130
132
|
"items": { "$ref": "#/definitions/Node" },
|
|
131
133
|
"uniqueItems": true
|
|
132
134
|
},
|
|
133
|
-
"max": { "type": "number" }
|
|
135
|
+
"max": { "type": "number" },
|
|
136
|
+
"_TODO_": { "type": "string" }
|
|
134
137
|
}
|
|
135
138
|
},
|
|
136
139
|
"PermittedContentZeroOrMore": {
|
|
@@ -147,7 +150,8 @@
|
|
|
147
150
|
"items": { "$ref": "#/definitions/Node" },
|
|
148
151
|
"uniqueItems": true
|
|
149
152
|
},
|
|
150
|
-
"max": { "type": "number" }
|
|
153
|
+
"max": { "type": "number" },
|
|
154
|
+
"_TODO_": { "type": "string" }
|
|
151
155
|
}
|
|
152
156
|
},
|
|
153
157
|
"PermittedContentChoice": {
|
|
@@ -160,7 +164,8 @@
|
|
|
160
164
|
"items": { "$ref": "#/definitions/PermittedContentSpec" },
|
|
161
165
|
"minItems": 2,
|
|
162
166
|
"maxItems": 5
|
|
163
|
-
}
|
|
167
|
+
},
|
|
168
|
+
"_TODO_": { "type": "string" }
|
|
164
169
|
}
|
|
165
170
|
},
|
|
166
171
|
"PermittedContentInterleave": {
|
|
@@ -172,7 +177,8 @@
|
|
|
172
177
|
"type": "array",
|
|
173
178
|
"items": { "$ref": "#/definitions/PermittedContentSpec" },
|
|
174
179
|
"minItems": 2
|
|
175
|
-
}
|
|
180
|
+
},
|
|
181
|
+
"_TODO_": { "type": "string" }
|
|
176
182
|
}
|
|
177
183
|
}
|
|
178
184
|
},
|
|
@@ -203,7 +209,13 @@
|
|
|
203
209
|
"additionalProperties": false,
|
|
204
210
|
"required": ["parent"],
|
|
205
211
|
"properties": {
|
|
206
|
-
"parent": { "type": "string" }
|
|
212
|
+
"parent": { "type": "string" },
|
|
213
|
+
"hasNotAttr": {
|
|
214
|
+
"type": "string",
|
|
215
|
+
"description": "Not support yet"
|
|
216
|
+
},
|
|
217
|
+
"_TODO_": { "type": "string" },
|
|
218
|
+
"_parent": { "type": "string" }
|
|
207
219
|
}
|
|
208
220
|
}
|
|
209
221
|
]
|