@openplanr/protocol 0.13.0 → 0.14.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 +9 -0
- package/package.json +5 -1
- package/registries/commands.json +9 -9
- package/registries/skills.json +6 -6
- package/schemas/v1.20.0/design-document.schema.json +379 -0
- package/schemas/v1.20.0/design-review-bundle.schema.json +692 -0
- package/schemas/v1.21.0/diagram-authoring-bundle.schema.json +1609 -0
- package/schemas/v1.21.0/diagram-edit-transaction.schema.json +4369 -0
- package/schemas/v1.21.0/diagram-review-bundle.schema.json +4047 -0
- package/schemas/v1.21.0/diagram-shape-definition.schema.json +457 -0
- package/src/browser-contracts.d.mts +5 -1
- package/src/browser-contracts.mjs +27 -0
- package/src/contracts.mjs +24 -6
- package/src/design-contracts.d.mts +25 -1
- package/src/design-contracts.mjs +119 -17
- package/src/design-publication-contracts.mjs +3 -1
- package/src/diagram-authoring-contracts.d.mts +2 -0
- package/src/generated/canonical-registries.mjs +15 -15
- package/src/index.d.mts +7 -0
- package/src/index.mjs +7 -0
- package/src/review-experience-contracts.d.mts +1 -0
- package/src/review-experience-contracts.mjs +35 -5
- package/src/shape-library-contracts.d.mts +57 -0
- package/src/shape-library-contracts.mjs +266 -0
- package/src/studio-presentation-contracts.d.mts +50 -2
- package/src/studio-presentation-contracts.mjs +285 -4
- package/src/workspace-contracts.mjs +3 -3
package/README.md
CHANGED
|
@@ -79,6 +79,15 @@ and validators from `@openplanr/protocol/design-contracts`. Rendering and review
|
|
|
79
79
|
belong to the design and artifact packages. Legacy manifests and frozen schema
|
|
80
80
|
families retain their existing formats.
|
|
81
81
|
|
|
82
|
+
The additive `schemas/v1.20.0/design-document.schema.json` accepts optional
|
|
83
|
+
canvas board positions, section headings and content-sized frame heights. The
|
|
84
|
+
current design validator accepts authored `schemaVersion: "1.0.0"`, including
|
|
85
|
+
`height: "auto"`. Use auto-height frames for pages that scroll; any auto-height
|
|
86
|
+
frame makes `board-root-box-sizing`, `vertical-overflow` and `outside-frame`
|
|
87
|
+
errors throughout the document. Otherwise these checks are warnings and do not
|
|
88
|
+
block verification or handoff readiness. Layout and schema version never change
|
|
89
|
+
severity. The original Protocol 1.9 schema bytes are unchanged.
|
|
90
|
+
|
|
82
91
|
Design comment categories are separate from the frozen artifact pin intent.
|
|
83
92
|
Protocol 1.11 adds metadata payload `schemaVersion: "1.1.0"` for the explicit
|
|
84
93
|
`change-request` category. `assertDesignReviewMetadata()` accepts both 1.0.0 and
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openplanr/protocol",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Canonical OpenPlanr schemas, registries, typed errors, and portable contract validation",
|
|
6
6
|
"license": "MIT",
|
|
@@ -119,6 +119,10 @@
|
|
|
119
119
|
"./enterprise-journey-contracts": {
|
|
120
120
|
"types": "./src/enterprise-journey-contracts.d.mts",
|
|
121
121
|
"import": "./src/enterprise-journey-contracts.mjs"
|
|
122
|
+
},
|
|
123
|
+
"./shape-library-contracts": {
|
|
124
|
+
"types": "./src/shape-library-contracts.d.mts",
|
|
125
|
+
"import": "./src/shape-library-contracts.mjs"
|
|
122
126
|
}
|
|
123
127
|
},
|
|
124
128
|
"files": [
|
package/registries/commands.json
CHANGED
|
@@ -314,7 +314,7 @@
|
|
|
314
314
|
"ownerPackage": "openplanr",
|
|
315
315
|
"source": {
|
|
316
316
|
"path": "packages/cli/src/cli/commands/doctor.ts",
|
|
317
|
-
"digest": "sha256:
|
|
317
|
+
"digest": "sha256:cdb7e033ae890130d47d06936d0e5b10f38a4b803c39f62abef72add38160e1e"
|
|
318
318
|
},
|
|
319
319
|
"authorityClass": "workflow",
|
|
320
320
|
"machineJson": false,
|
|
@@ -356,7 +356,7 @@
|
|
|
356
356
|
"ownerPackage": "openplanr",
|
|
357
357
|
"source": {
|
|
358
358
|
"path": "skills/planr-plan/SKILL.md",
|
|
359
|
-
"digest": "sha256:
|
|
359
|
+
"digest": "sha256:ee27dc8136cada6ffed75baa68ebdfd12c4d6414b069d4c89e627e4ec8beb68e"
|
|
360
360
|
},
|
|
361
361
|
"authorityClass": "workflow",
|
|
362
362
|
"machineJson": false,
|
|
@@ -377,7 +377,7 @@
|
|
|
377
377
|
"ownerPackage": "openplanr",
|
|
378
378
|
"source": {
|
|
379
379
|
"path": "docs/generated/utility-command-catalog.json",
|
|
380
|
-
"digest": "sha256:
|
|
380
|
+
"digest": "sha256:70f33f5d875899bb2c2b861b6c880aebda58c071d9c11abd3712362318974f15"
|
|
381
381
|
},
|
|
382
382
|
"authorityClass": "workflow",
|
|
383
383
|
"machineJson": false,
|
|
@@ -566,7 +566,7 @@
|
|
|
566
566
|
"ownerPackage": "openplanr",
|
|
567
567
|
"source": {
|
|
568
568
|
"path": "docs/generated/utility-command-catalog.json",
|
|
569
|
-
"digest": "sha256:
|
|
569
|
+
"digest": "sha256:70f33f5d875899bb2c2b861b6c880aebda58c071d9c11abd3712362318974f15"
|
|
570
570
|
},
|
|
571
571
|
"authorityClass": "workflow",
|
|
572
572
|
"machineJson": true,
|
|
@@ -587,7 +587,7 @@
|
|
|
587
587
|
"ownerPackage": "openplanr",
|
|
588
588
|
"source": {
|
|
589
589
|
"path": "skills/planr-plan/SKILL.md",
|
|
590
|
-
"digest": "sha256:
|
|
590
|
+
"digest": "sha256:ee27dc8136cada6ffed75baa68ebdfd12c4d6414b069d4c89e627e4ec8beb68e"
|
|
591
591
|
},
|
|
592
592
|
"authorityClass": "workflow",
|
|
593
593
|
"machineJson": false,
|
|
@@ -1028,7 +1028,7 @@
|
|
|
1028
1028
|
"ownerPackage": "planr-pipeline",
|
|
1029
1029
|
"source": {
|
|
1030
1030
|
"path": "skills/planr-design/SKILL.md",
|
|
1031
|
-
"digest": "sha256:
|
|
1031
|
+
"digest": "sha256:d4f027660fe2cc6e2a1bce254916fe65d01d0ad484f96eebb13f4711685143b8"
|
|
1032
1032
|
},
|
|
1033
1033
|
"authorityClass": "compatibility-router",
|
|
1034
1034
|
"machineJson": false,
|
|
@@ -1091,7 +1091,7 @@
|
|
|
1091
1091
|
"ownerPackage": "planr-pipeline",
|
|
1092
1092
|
"source": {
|
|
1093
1093
|
"path": "skills/planr-plan/SKILL.md",
|
|
1094
|
-
"digest": "sha256:
|
|
1094
|
+
"digest": "sha256:ee27dc8136cada6ffed75baa68ebdfd12c4d6414b069d4c89e627e4ec8beb68e"
|
|
1095
1095
|
},
|
|
1096
1096
|
"authorityClass": "compatibility-router",
|
|
1097
1097
|
"machineJson": false,
|
|
@@ -1112,7 +1112,7 @@
|
|
|
1112
1112
|
"ownerPackage": "planr-pipeline",
|
|
1113
1113
|
"source": {
|
|
1114
1114
|
"path": "skills/planr-ship/SKILL.md",
|
|
1115
|
-
"digest": "sha256:
|
|
1115
|
+
"digest": "sha256:a1f65ddec4596070d9627e40d3cb4a1b59470bc1dd97ed68b1962aa30224b6ad"
|
|
1116
1116
|
},
|
|
1117
1117
|
"authorityClass": "compatibility-router",
|
|
1118
1118
|
"machineJson": false,
|
|
@@ -1948,5 +1948,5 @@
|
|
|
1948
1948
|
]
|
|
1949
1949
|
}
|
|
1950
1950
|
],
|
|
1951
|
-
"documentDigest": "sha256:
|
|
1951
|
+
"documentDigest": "sha256:7f82307cddbb39e34a8c2399a6fbb950f0e1a293756201cc46896e7dc59a0edc"
|
|
1952
1952
|
}
|
package/registries/skills.json
CHANGED
|
@@ -755,7 +755,7 @@
|
|
|
755
755
|
"lifecycle": "active",
|
|
756
756
|
"authorityClass": "planning-write",
|
|
757
757
|
"source": "skills/planr-design/openplanr.skill.json",
|
|
758
|
-
"sourceDigest": "sha256:
|
|
758
|
+
"sourceDigest": "sha256:99baa3d561a0e0e603c8617e1ccce8e0cab27c6cd1304e47f6fd57379076bb95",
|
|
759
759
|
"triggerPolicy": {
|
|
760
760
|
"include": [
|
|
761
761
|
"Create an initial product design direction",
|
|
@@ -816,7 +816,7 @@
|
|
|
816
816
|
"lifecycle": "active",
|
|
817
817
|
"authorityClass": "planning-write",
|
|
818
818
|
"source": "skills/planr-design-loop/openplanr.skill.json",
|
|
819
|
-
"sourceDigest": "sha256:
|
|
819
|
+
"sourceDigest": "sha256:a1c876dc9bd9770ea7d5c43c8696f3be2e252dd52d084e9411b1d4842f25e636",
|
|
820
820
|
"triggerPolicy": {
|
|
821
821
|
"include": [
|
|
822
822
|
"Explore multiple design directions or variants",
|
|
@@ -877,7 +877,7 @@
|
|
|
877
877
|
"lifecycle": "active",
|
|
878
878
|
"authorityClass": "review-evidence",
|
|
879
879
|
"source": "skills/planr-design-review/openplanr.skill.json",
|
|
880
|
-
"sourceDigest": "sha256:
|
|
880
|
+
"sourceDigest": "sha256:96d799efff004279b4726b0a285d42b660e3aff5527aa8e2a7ddf8fcee1a67c4",
|
|
881
881
|
"triggerPolicy": {
|
|
882
882
|
"include": [
|
|
883
883
|
"Review or critique an existing OpenPlanr design",
|
|
@@ -1065,7 +1065,7 @@
|
|
|
1065
1065
|
"lifecycle": "active",
|
|
1066
1066
|
"authorityClass": "diagnostic",
|
|
1067
1067
|
"source": "skills/planr-investigate/openplanr.skill.json",
|
|
1068
|
-
"sourceDigest": "sha256:
|
|
1068
|
+
"sourceDigest": "sha256:ad1422ac497f638b739d362a93af8eddc9cd0634c8a737a2c408023bd5cb9797",
|
|
1069
1069
|
"triggerPolicy": {
|
|
1070
1070
|
"include": [
|
|
1071
1071
|
"Investigate a bug, regression, error, or unexplained behavior",
|
|
@@ -1553,7 +1553,7 @@
|
|
|
1553
1553
|
"lifecycle": "active",
|
|
1554
1554
|
"authorityClass": "implementation",
|
|
1555
1555
|
"source": "skills/planr-ship/openplanr.skill.json",
|
|
1556
|
-
"sourceDigest": "sha256:
|
|
1556
|
+
"sourceDigest": "sha256:2fe2353469bb1fbb77029334fcc51b94240bb3baf56c69c5829b47908e2d7d33",
|
|
1557
1557
|
"triggerPolicy": {
|
|
1558
1558
|
"include": [
|
|
1559
1559
|
"Implement a plan, specification, task, fix, or clearly stated local request",
|
|
@@ -1864,5 +1864,5 @@
|
|
|
1864
1864
|
}
|
|
1865
1865
|
],
|
|
1866
1866
|
"compatibilityAliases": [],
|
|
1867
|
-
"documentDigest": "sha256:
|
|
1867
|
+
"documentDigest": "sha256:7201c5ca3f0b6820214e18c4f6a5268e30b9b5be897ff092bb95e196230dbf0b"
|
|
1868
1868
|
}
|
|
@@ -0,0 +1,379 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://openplanr.dev/schemas/v1.20.0/design-document.schema.json",
|
|
4
|
+
"x-openplanr-contract": {
|
|
5
|
+
"id": "design-document",
|
|
6
|
+
"version": "1.20.0"
|
|
7
|
+
},
|
|
8
|
+
"title": "OpenPlanr authored design document",
|
|
9
|
+
"type": "object",
|
|
10
|
+
"additionalProperties": false,
|
|
11
|
+
"required": [
|
|
12
|
+
"kind",
|
|
13
|
+
"schemaVersion",
|
|
14
|
+
"id",
|
|
15
|
+
"title",
|
|
16
|
+
"brief",
|
|
17
|
+
"frames",
|
|
18
|
+
"screens",
|
|
19
|
+
"screenOrder",
|
|
20
|
+
"variants",
|
|
21
|
+
"selectedVariant",
|
|
22
|
+
"defaultView"
|
|
23
|
+
],
|
|
24
|
+
"properties": {
|
|
25
|
+
"kind": {
|
|
26
|
+
"const": "openplanr-design-document"
|
|
27
|
+
},
|
|
28
|
+
"schemaVersion": {
|
|
29
|
+
"const": "1.0.0"
|
|
30
|
+
},
|
|
31
|
+
"id": {
|
|
32
|
+
"$ref": "#/$defs/id"
|
|
33
|
+
},
|
|
34
|
+
"title": {
|
|
35
|
+
"$ref": "#/$defs/text"
|
|
36
|
+
},
|
|
37
|
+
"brief": {
|
|
38
|
+
"type": "object",
|
|
39
|
+
"additionalProperties": false,
|
|
40
|
+
"required": [
|
|
41
|
+
"text",
|
|
42
|
+
"source",
|
|
43
|
+
"provenance"
|
|
44
|
+
],
|
|
45
|
+
"properties": {
|
|
46
|
+
"text": {
|
|
47
|
+
"$ref": "#/$defs/text"
|
|
48
|
+
},
|
|
49
|
+
"source": {
|
|
50
|
+
"enum": [
|
|
51
|
+
"spec",
|
|
52
|
+
"png",
|
|
53
|
+
"describe"
|
|
54
|
+
]
|
|
55
|
+
},
|
|
56
|
+
"provenance": {
|
|
57
|
+
"enum": [
|
|
58
|
+
"spec",
|
|
59
|
+
"inferred"
|
|
60
|
+
]
|
|
61
|
+
},
|
|
62
|
+
"references": {
|
|
63
|
+
"type": "array",
|
|
64
|
+
"items": {
|
|
65
|
+
"$ref": "#/$defs/text"
|
|
66
|
+
},
|
|
67
|
+
"uniqueItems": true
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"designSystem": {
|
|
72
|
+
"type": "object",
|
|
73
|
+
"additionalProperties": false,
|
|
74
|
+
"properties": {
|
|
75
|
+
"path": {
|
|
76
|
+
"$ref": "#/$defs/localPath"
|
|
77
|
+
},
|
|
78
|
+
"tokens": {
|
|
79
|
+
"$ref": "#/$defs/localPath"
|
|
80
|
+
},
|
|
81
|
+
"spacing": {
|
|
82
|
+
"type": "array",
|
|
83
|
+
"minItems": 1,
|
|
84
|
+
"uniqueItems": true,
|
|
85
|
+
"items": {
|
|
86
|
+
"type": "number",
|
|
87
|
+
"minimum": 0,
|
|
88
|
+
"maximum": 16384
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"assets": {
|
|
94
|
+
"$ref": "#/$defs/paths"
|
|
95
|
+
},
|
|
96
|
+
"frames": {
|
|
97
|
+
"type": "array",
|
|
98
|
+
"minItems": 1,
|
|
99
|
+
"items": {
|
|
100
|
+
"type": "object",
|
|
101
|
+
"additionalProperties": false,
|
|
102
|
+
"required": [
|
|
103
|
+
"id",
|
|
104
|
+
"label",
|
|
105
|
+
"width",
|
|
106
|
+
"height"
|
|
107
|
+
],
|
|
108
|
+
"properties": {
|
|
109
|
+
"id": {
|
|
110
|
+
"$ref": "#/$defs/id"
|
|
111
|
+
},
|
|
112
|
+
"label": {
|
|
113
|
+
"$ref": "#/$defs/text"
|
|
114
|
+
},
|
|
115
|
+
"width": {
|
|
116
|
+
"type": "integer",
|
|
117
|
+
"minimum": 1,
|
|
118
|
+
"maximum": 16384
|
|
119
|
+
},
|
|
120
|
+
"height": {
|
|
121
|
+
"anyOf": [
|
|
122
|
+
{
|
|
123
|
+
"type": "integer",
|
|
124
|
+
"minimum": 1,
|
|
125
|
+
"maximum": 16384
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"const": "auto"
|
|
129
|
+
}
|
|
130
|
+
]
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
"screens": {
|
|
136
|
+
"type": "array",
|
|
137
|
+
"minItems": 1,
|
|
138
|
+
"items": {
|
|
139
|
+
"type": "object",
|
|
140
|
+
"additionalProperties": false,
|
|
141
|
+
"required": [
|
|
142
|
+
"id",
|
|
143
|
+
"title",
|
|
144
|
+
"source"
|
|
145
|
+
],
|
|
146
|
+
"properties": {
|
|
147
|
+
"id": {
|
|
148
|
+
"$ref": "#/$defs/id"
|
|
149
|
+
},
|
|
150
|
+
"title": {
|
|
151
|
+
"$ref": "#/$defs/text"
|
|
152
|
+
},
|
|
153
|
+
"description": {
|
|
154
|
+
"$ref": "#/$defs/text"
|
|
155
|
+
},
|
|
156
|
+
"source": {
|
|
157
|
+
"$ref": "#/$defs/source"
|
|
158
|
+
},
|
|
159
|
+
"anchors": {
|
|
160
|
+
"$ref": "#/$defs/ids"
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
"screenOrder": {
|
|
166
|
+
"type": "array",
|
|
167
|
+
"minItems": 1,
|
|
168
|
+
"items": {
|
|
169
|
+
"$ref": "#/$defs/id"
|
|
170
|
+
},
|
|
171
|
+
"uniqueItems": true
|
|
172
|
+
},
|
|
173
|
+
"flows": {
|
|
174
|
+
"type": "array",
|
|
175
|
+
"items": {
|
|
176
|
+
"type": "object",
|
|
177
|
+
"additionalProperties": false,
|
|
178
|
+
"required": [
|
|
179
|
+
"id",
|
|
180
|
+
"title",
|
|
181
|
+
"screens"
|
|
182
|
+
],
|
|
183
|
+
"properties": {
|
|
184
|
+
"id": {
|
|
185
|
+
"$ref": "#/$defs/id"
|
|
186
|
+
},
|
|
187
|
+
"title": {
|
|
188
|
+
"$ref": "#/$defs/text"
|
|
189
|
+
},
|
|
190
|
+
"screens": {
|
|
191
|
+
"type": "array",
|
|
192
|
+
"minItems": 1,
|
|
193
|
+
"items": {
|
|
194
|
+
"$ref": "#/$defs/id"
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
"variants": {
|
|
201
|
+
"type": "array",
|
|
202
|
+
"minItems": 1,
|
|
203
|
+
"items": {
|
|
204
|
+
"type": "object",
|
|
205
|
+
"additionalProperties": false,
|
|
206
|
+
"required": [
|
|
207
|
+
"id",
|
|
208
|
+
"label",
|
|
209
|
+
"status"
|
|
210
|
+
],
|
|
211
|
+
"properties": {
|
|
212
|
+
"id": {
|
|
213
|
+
"$ref": "#/$defs/id"
|
|
214
|
+
},
|
|
215
|
+
"label": {
|
|
216
|
+
"$ref": "#/$defs/text"
|
|
217
|
+
},
|
|
218
|
+
"description": {
|
|
219
|
+
"$ref": "#/$defs/text"
|
|
220
|
+
},
|
|
221
|
+
"status": {
|
|
222
|
+
"enum": [
|
|
223
|
+
"ready",
|
|
224
|
+
"failed"
|
|
225
|
+
]
|
|
226
|
+
},
|
|
227
|
+
"issue": {
|
|
228
|
+
"$ref": "#/$defs/text"
|
|
229
|
+
},
|
|
230
|
+
"sources": {
|
|
231
|
+
"type": "object",
|
|
232
|
+
"additionalProperties": {
|
|
233
|
+
"$ref": "#/$defs/source"
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
"if": {
|
|
238
|
+
"properties": {
|
|
239
|
+
"status": {
|
|
240
|
+
"const": "failed"
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
"then": {
|
|
245
|
+
"required": [
|
|
246
|
+
"issue"
|
|
247
|
+
]
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
"selectedVariant": {
|
|
252
|
+
"$ref": "#/$defs/id"
|
|
253
|
+
},
|
|
254
|
+
"defaultView": {
|
|
255
|
+
"enum": [
|
|
256
|
+
"canvas",
|
|
257
|
+
"prototype",
|
|
258
|
+
"walkthrough"
|
|
259
|
+
]
|
|
260
|
+
},
|
|
261
|
+
"layout": {
|
|
262
|
+
"type": "object",
|
|
263
|
+
"additionalProperties": false,
|
|
264
|
+
"properties": {
|
|
265
|
+
"boards": {
|
|
266
|
+
"type": "object",
|
|
267
|
+
"description": "Keys are screenId, screenId/frameId or screenId/frameId/variantId; each ID must exist in the document.",
|
|
268
|
+
"additionalProperties": {
|
|
269
|
+
"type": "object",
|
|
270
|
+
"additionalProperties": false,
|
|
271
|
+
"required": [
|
|
272
|
+
"x",
|
|
273
|
+
"y"
|
|
274
|
+
],
|
|
275
|
+
"properties": {
|
|
276
|
+
"x": {
|
|
277
|
+
"$ref": "#/$defs/coordinate"
|
|
278
|
+
},
|
|
279
|
+
"y": {
|
|
280
|
+
"$ref": "#/$defs/coordinate"
|
|
281
|
+
},
|
|
282
|
+
"title": {
|
|
283
|
+
"$ref": "#/$defs/text"
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
},
|
|
288
|
+
"sections": {
|
|
289
|
+
"type": "array",
|
|
290
|
+
"items": {
|
|
291
|
+
"type": "object",
|
|
292
|
+
"additionalProperties": false,
|
|
293
|
+
"required": [
|
|
294
|
+
"id",
|
|
295
|
+
"x",
|
|
296
|
+
"y",
|
|
297
|
+
"text"
|
|
298
|
+
],
|
|
299
|
+
"properties": {
|
|
300
|
+
"id": {
|
|
301
|
+
"$ref": "#/$defs/id"
|
|
302
|
+
},
|
|
303
|
+
"x": {
|
|
304
|
+
"$ref": "#/$defs/coordinate"
|
|
305
|
+
},
|
|
306
|
+
"y": {
|
|
307
|
+
"$ref": "#/$defs/coordinate"
|
|
308
|
+
},
|
|
309
|
+
"text": {
|
|
310
|
+
"$ref": "#/$defs/text"
|
|
311
|
+
},
|
|
312
|
+
"maxW": {
|
|
313
|
+
"type": "integer",
|
|
314
|
+
"minimum": 1,
|
|
315
|
+
"maximum": 16384
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
},
|
|
323
|
+
"$defs": {
|
|
324
|
+
"id": {
|
|
325
|
+
"type": "string",
|
|
326
|
+
"minLength": 1,
|
|
327
|
+
"maxLength": 128,
|
|
328
|
+
"pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
|
|
329
|
+
},
|
|
330
|
+
"text": {
|
|
331
|
+
"type": "string",
|
|
332
|
+
"minLength": 1,
|
|
333
|
+
"pattern": "\\S"
|
|
334
|
+
},
|
|
335
|
+
"ids": {
|
|
336
|
+
"type": "array",
|
|
337
|
+
"items": {
|
|
338
|
+
"$ref": "#/$defs/id"
|
|
339
|
+
},
|
|
340
|
+
"uniqueItems": true
|
|
341
|
+
},
|
|
342
|
+
"localPath": {
|
|
343
|
+
"type": "string",
|
|
344
|
+
"minLength": 1,
|
|
345
|
+
"description": "Path relative to the authored document directory. No URL, traversal, encoded path, query or fragment.",
|
|
346
|
+
"pattern": "^(?!/)(?!.*(?:^|/)\\.{1,2}(?:/|$))(?!.*//)(?!.*[/ ]$)[^\\\\:\\u0000-\\u001F%?#]+$"
|
|
347
|
+
},
|
|
348
|
+
"paths": {
|
|
349
|
+
"type": "array",
|
|
350
|
+
"items": {
|
|
351
|
+
"$ref": "#/$defs/localPath"
|
|
352
|
+
},
|
|
353
|
+
"uniqueItems": true
|
|
354
|
+
},
|
|
355
|
+
"source": {
|
|
356
|
+
"type": "object",
|
|
357
|
+
"additionalProperties": false,
|
|
358
|
+
"required": [
|
|
359
|
+
"html"
|
|
360
|
+
],
|
|
361
|
+
"properties": {
|
|
362
|
+
"html": {
|
|
363
|
+
"$ref": "#/$defs/localPath"
|
|
364
|
+
},
|
|
365
|
+
"styles": {
|
|
366
|
+
"$ref": "#/$defs/paths"
|
|
367
|
+
},
|
|
368
|
+
"scripts": {
|
|
369
|
+
"$ref": "#/$defs/paths"
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
},
|
|
373
|
+
"coordinate": {
|
|
374
|
+
"type": "number",
|
|
375
|
+
"minimum": -10000000,
|
|
376
|
+
"maximum": 10000000
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
}
|