@microsoft/sp-module-interfaces 1.20.1 → 1.21.0-beta.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/dist/index-internal-beta.d.ts +47 -1
- package/dist/index-internal-public.d.ts +8 -1
- package/dist/index-internal.d.ts +748 -15
- package/dist/tsdoc-metadata.json +1 -1
- package/lib-commonjs/index.d.ts +1 -0
- package/lib-commonjs/index.d.ts.map +1 -1
- package/lib-commonjs/index.js +1 -0
- package/lib-commonjs/manifestSchemaValidator.d.ts +3 -0
- package/lib-commonjs/manifestSchemaValidator.d.ts.map +1 -1
- package/lib-commonjs/manifestSchemaValidator.js +52 -1
- package/lib-commonjs/manifestSchemas/IAdaptiveCardExtensionManifest.d.ts +6 -0
- package/lib-commonjs/manifestSchemas/IAdaptiveCardExtensionManifest.d.ts.map +1 -1
- package/lib-commonjs/manifestSchemas/IClientSideComponentLoaderConfiguration.d.ts +1 -1
- package/lib-commonjs/manifestSchemas/IClientSideComponentLoaderConfiguration.d.ts.map +1 -1
- package/lib-commonjs/manifestSchemas/IClientSideComponentManifest.d.ts +1 -1
- package/lib-commonjs/manifestSchemas/IClientSideComponentManifest.d.ts.map +1 -1
- package/lib-commonjs/manifestSchemas/IClientSideExtensionManifest.d.ts +1 -1
- package/lib-commonjs/manifestSchemas/IClientSideExtensionManifest.d.ts.map +1 -1
- package/lib-commonjs/manifestSchemas/IClientSideWebPartManifest.d.ts +35 -0
- package/lib-commonjs/manifestSchemas/IClientSideWebPartManifest.d.ts.map +1 -1
- package/lib-commonjs/manifestSchemas/IClientSideWebPartManifest.js +1 -1
- package/lib-commonjs/manifestSchemas/IPrefabAppManifest.d.ts +76 -0
- package/lib-commonjs/manifestSchemas/IPrefabAppManifest.d.ts.map +1 -0
- package/lib-commonjs/manifestSchemas/IPrefabAppManifest.js +3 -0
- package/lib-commonjs/manifestSchemas/ManifestType.js +1 -1
- package/lib-commonjs/manifestSchemas/examples/prefab_1.manifest.d.ts +4 -0
- package/lib-commonjs/manifestSchemas/examples/prefab_1.manifest.d.ts.map +1 -0
- package/lib-commonjs/manifestSchemas/examples/prefab_1.manifest.js +334 -0
- package/lib-commonjs/manifestSchemas/examples/prefab_2.manifest.d.ts +4 -0
- package/lib-commonjs/manifestSchemas/examples/prefab_2.manifest.d.ts.map +1 -0
- package/lib-commonjs/manifestSchemas/examples/prefab_2.manifest.js +339 -0
- package/lib-commonjs/manifestSchemas/examples/prefabapp.manifest.json +345 -0
- package/lib-commonjs/manifestSchemas/jsonSchemas/adaptive-card-extension-manifest.schema.json +8 -0
- package/lib-commonjs/manifestSchemas/jsonSchemas/client-side-component-manifest.schema.json +5 -2
- package/lib-commonjs/manifestSchemas/jsonSchemas/client-side-web-part-manifest.schema.json +23 -0
- package/lib-commonjs/manifestSchemas/jsonSchemas/localized-string.schema.json +6 -10
- package/lib-commonjs/manifestSchemas/jsonSchemas/prefab-app-manifest.schema.json +72 -0
- package/lib-commonjs/manifestSchemas/remote/draft-04.schema.json +137 -0
- package/lib-commonjs/manifestSchemas/remote/site-design-script-actions.schema.json +1158 -0
- package/package.json +9 -8
|
@@ -0,0 +1,345 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./../jsonSchemas/prefab-app-manifest.schema.json",
|
|
3
|
+
|
|
4
|
+
"manifestVersion": 2,
|
|
5
|
+
"componentType": "Prefab",
|
|
6
|
+
"id": "00000000-0000-0000-0000-000000000000",
|
|
7
|
+
"alias": "Prefab",
|
|
8
|
+
"version": "0.0.1",
|
|
9
|
+
"loaderConfig": {
|
|
10
|
+
"internalModuleBaseUrls": ["https://cdn.net/"],
|
|
11
|
+
"entryModuleId": "main.bundle",
|
|
12
|
+
"scriptResources": {
|
|
13
|
+
"frameworkA": {
|
|
14
|
+
"type": "component",
|
|
15
|
+
"version": "1.2.3",
|
|
16
|
+
"id": "00000000-0000-0000-0000-000000000000"
|
|
17
|
+
},
|
|
18
|
+
"frameworkB": {
|
|
19
|
+
"type": "component",
|
|
20
|
+
"version": "1.2.3",
|
|
21
|
+
"id": "00000000-0000-0000-0000-000000000000",
|
|
22
|
+
"failoverPath": "script.js"
|
|
23
|
+
},
|
|
24
|
+
"frameworkC": {
|
|
25
|
+
"type": "component",
|
|
26
|
+
"version": "latest",
|
|
27
|
+
"id": "00000000-0000-0000-0000-000000000000",
|
|
28
|
+
"failoverPath": {
|
|
29
|
+
"path": "script.js"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"frameworkD": {
|
|
33
|
+
"type": "component",
|
|
34
|
+
"version": "latest",
|
|
35
|
+
"id": "00000000-0000-0000-0000-000000000000",
|
|
36
|
+
"failoverPath": {
|
|
37
|
+
"path": "script.js",
|
|
38
|
+
"integrity": "sha384-oqVuAfXRKap7fdgcCY5uykM6+R9GqQ8K/uxy9rx7HNQlGYl1kPzQho1wx4JwY8wC"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"frameworkE": {
|
|
42
|
+
"type": "component",
|
|
43
|
+
"version": "1.2.3",
|
|
44
|
+
"id": "00000000-0000-0000-0000-000000000000",
|
|
45
|
+
"shouldNotPreload": true
|
|
46
|
+
},
|
|
47
|
+
"frameworkF": {
|
|
48
|
+
"type": "component",
|
|
49
|
+
"version": "1.2.3",
|
|
50
|
+
"id": "00000000-0000-0000-0000-000000000000",
|
|
51
|
+
"failoverPath": "script.js",
|
|
52
|
+
"shouldNotPreload": true
|
|
53
|
+
},
|
|
54
|
+
"frameworkG": {
|
|
55
|
+
"type": "component",
|
|
56
|
+
"version": "latest",
|
|
57
|
+
"id": "00000000-0000-0000-0000-000000000000",
|
|
58
|
+
"failoverPath": {
|
|
59
|
+
"path": "script.js"
|
|
60
|
+
},
|
|
61
|
+
"shouldNotPreload": true
|
|
62
|
+
},
|
|
63
|
+
"frameworkI": {
|
|
64
|
+
"type": "component",
|
|
65
|
+
"version": "latest",
|
|
66
|
+
"id": "00000000-0000-0000-0000-000000000000",
|
|
67
|
+
"failoverPath": {
|
|
68
|
+
"path": "script.js",
|
|
69
|
+
"integrity": "sha384-oqVuAfXRKap7fdgcCY5uykM6+R9GqQ8K/uxy9rx7HNQlGYl1kPzQho1wx4JwY8wC"
|
|
70
|
+
},
|
|
71
|
+
"shouldNotPreload": true
|
|
72
|
+
},
|
|
73
|
+
"frameworkJ": {
|
|
74
|
+
"type": "component",
|
|
75
|
+
"version": "1.2.3",
|
|
76
|
+
"id": "00000000-0000-0000-0000-000000000000",
|
|
77
|
+
"shouldNotPreload": false
|
|
78
|
+
},
|
|
79
|
+
"frameworkK": {
|
|
80
|
+
"type": "component",
|
|
81
|
+
"version": "1.2.3",
|
|
82
|
+
"id": "00000000-0000-0000-0000-000000000000",
|
|
83
|
+
"failoverPath": "script.js",
|
|
84
|
+
"shouldNotPreload": false
|
|
85
|
+
},
|
|
86
|
+
"frameworkL": {
|
|
87
|
+
"type": "component",
|
|
88
|
+
"version": "latest",
|
|
89
|
+
"id": "00000000-0000-0000-0000-000000000000",
|
|
90
|
+
"failoverPath": {
|
|
91
|
+
"path": "script.js"
|
|
92
|
+
},
|
|
93
|
+
"shouldNotPreload": false
|
|
94
|
+
},
|
|
95
|
+
"frameworkM": {
|
|
96
|
+
"type": "component",
|
|
97
|
+
"version": "latest",
|
|
98
|
+
"id": "00000000-0000-0000-0000-000000000000",
|
|
99
|
+
"failoverPath": {
|
|
100
|
+
"path": "script.js",
|
|
101
|
+
"integrity": "sha384-oqVuAfXRKap7fdgcCY5uykM6+R9GqQ8K/uxy9rx7HNQlGYl1kPzQho1wx4JwY8wC"
|
|
102
|
+
},
|
|
103
|
+
"shouldNotPreload": false
|
|
104
|
+
},
|
|
105
|
+
"main.bundle": {
|
|
106
|
+
"type": "path",
|
|
107
|
+
"path": "bundle.script.js"
|
|
108
|
+
},
|
|
109
|
+
"dependencyA": {
|
|
110
|
+
"type": "path",
|
|
111
|
+
"path": {
|
|
112
|
+
"path": "dependencyA.script.js",
|
|
113
|
+
"integrity": "sha384-oqVuAfXRKap7fdgcCY5uykM6+R9GqQ8K/uxy9rx7HNQlGYl1kPzQho1wx4JwY8wC"
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
"dependencyB": {
|
|
117
|
+
"type": "path",
|
|
118
|
+
"path": {
|
|
119
|
+
"path": "dependencyB.script.js"
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
"dependencyC": {
|
|
123
|
+
"type": "path",
|
|
124
|
+
"path": "dependencyC.script.js"
|
|
125
|
+
},
|
|
126
|
+
"dependencyD": {
|
|
127
|
+
"type": "path",
|
|
128
|
+
"path": {
|
|
129
|
+
"path": "dependencyD.script.js",
|
|
130
|
+
"integrity": "sha384-oqVuAfXRKap7fdgcCY5uykM6+R9GqQ8K/uxy9rx7HNQlGYl1kPzQho1wx4JwY8wC"
|
|
131
|
+
},
|
|
132
|
+
"shouldNotPreload": true
|
|
133
|
+
},
|
|
134
|
+
"dependencyE": {
|
|
135
|
+
"type": "path",
|
|
136
|
+
"path": {
|
|
137
|
+
"path": "dependencyE.script.js"
|
|
138
|
+
},
|
|
139
|
+
"shouldNotPreload": true
|
|
140
|
+
},
|
|
141
|
+
"dependencyF": {
|
|
142
|
+
"type": "path",
|
|
143
|
+
"path": "dependencyF.script.js",
|
|
144
|
+
"shouldNotPreload": true
|
|
145
|
+
},
|
|
146
|
+
"dependencyG": {
|
|
147
|
+
"type": "path",
|
|
148
|
+
"path": {
|
|
149
|
+
"path": "dependencyG.script.js",
|
|
150
|
+
"integrity": "sha384-oqVuAfXRKap7fdgcCY5uykM6+R9GqQ8K/uxy9rx7HNQlGYl1kPzQho1wx4JwY8wC"
|
|
151
|
+
},
|
|
152
|
+
"shouldNotPreload": false
|
|
153
|
+
},
|
|
154
|
+
"dependencyH": {
|
|
155
|
+
"type": "path",
|
|
156
|
+
"path": {
|
|
157
|
+
"path": "dependencyH.script.js"
|
|
158
|
+
},
|
|
159
|
+
"shouldNotPreload": false
|
|
160
|
+
},
|
|
161
|
+
"dependencyI": {
|
|
162
|
+
"type": "path",
|
|
163
|
+
"path": "dependencyI.script.js",
|
|
164
|
+
"shouldNotPreload": false
|
|
165
|
+
},
|
|
166
|
+
"stringsA": {
|
|
167
|
+
"type": "localizedPath",
|
|
168
|
+
"defaultPath": "stringsA_default.js"
|
|
169
|
+
},
|
|
170
|
+
"stringsB": {
|
|
171
|
+
"type": "localizedPath",
|
|
172
|
+
"defaultPath": {
|
|
173
|
+
"path": "stringsB_default.js",
|
|
174
|
+
"integrity": "sha384-oqVuAfXRKap7fdgcCY5uykM6+R9GqQ8K/uxy9rx7HNQlGYl1kPzQho1wx4JwY8wC"
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
"stringsC": {
|
|
178
|
+
"type": "localizedPath",
|
|
179
|
+
"defaultPath": {
|
|
180
|
+
"path": "stringsC_default.js"
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
"stringsD": {
|
|
184
|
+
"type": "localizedPath",
|
|
185
|
+
"defaultPath": "stringsD_default.js",
|
|
186
|
+
"paths": {
|
|
187
|
+
"en-us": "stringsD_en-us.js",
|
|
188
|
+
"fr-fr": "stringsD_fr-fr.js"
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
"stringsE": {
|
|
192
|
+
"type": "localizedPath",
|
|
193
|
+
"defaultPath": "stringsE_default.js",
|
|
194
|
+
"paths": {
|
|
195
|
+
"en-us": {
|
|
196
|
+
"path": "stringsE_en-us.js"
|
|
197
|
+
},
|
|
198
|
+
"fr-fr": "stringsE_fr-fr.js"
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
"stringsF": {
|
|
202
|
+
"type": "localizedPath",
|
|
203
|
+
"defaultPath": "stringsF_default.js",
|
|
204
|
+
"paths": {
|
|
205
|
+
"en-us": {
|
|
206
|
+
"path": "stringsF_en-us.js",
|
|
207
|
+
"integrity": "sha384-oqVuAfXRKap7fdgcCY5uykM6+R9GqQ8K/uxy9rx7HNQlGYl1kPzQho1wx4JwY8wC"
|
|
208
|
+
},
|
|
209
|
+
"fr-fr": "stringsF_fr-fr.js"
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
"stringsG": {
|
|
213
|
+
"type": "localizedPath",
|
|
214
|
+
"defaultPath": "stringsG_default.js",
|
|
215
|
+
"shouldNotPreload": true
|
|
216
|
+
},
|
|
217
|
+
"stringsH": {
|
|
218
|
+
"type": "localizedPath",
|
|
219
|
+
"defaultPath": {
|
|
220
|
+
"path": "stringsH_default.js",
|
|
221
|
+
"integrity": "sha384-oqVuAfXRKap7fdgcCY5uykM6+R9GqQ8K/uxy9rx7HNQlGYl1kPzQho1wx4JwY8wC"
|
|
222
|
+
},
|
|
223
|
+
"shouldNotPreload": true
|
|
224
|
+
},
|
|
225
|
+
"stringsI": {
|
|
226
|
+
"type": "localizedPath",
|
|
227
|
+
"defaultPath": {
|
|
228
|
+
"path": "stringsI_default.js"
|
|
229
|
+
},
|
|
230
|
+
"shouldNotPreload": true
|
|
231
|
+
},
|
|
232
|
+
"stringsJ": {
|
|
233
|
+
"type": "localizedPath",
|
|
234
|
+
"defaultPath": "stringsJ_default.js",
|
|
235
|
+
"paths": {
|
|
236
|
+
"en-us": "stringsJ_en-us.js",
|
|
237
|
+
"fr-fr": "stringsJ_fr-fr.js"
|
|
238
|
+
},
|
|
239
|
+
"shouldNotPreload": true
|
|
240
|
+
},
|
|
241
|
+
"stringsK": {
|
|
242
|
+
"type": "localizedPath",
|
|
243
|
+
"defaultPath": "stringsK_default.js",
|
|
244
|
+
"paths": {
|
|
245
|
+
"en-us": {
|
|
246
|
+
"path": "stringsK_en-us.js"
|
|
247
|
+
},
|
|
248
|
+
"fr-fr": "stringsK_fr-fr.js"
|
|
249
|
+
},
|
|
250
|
+
"shouldNotPreload": true
|
|
251
|
+
},
|
|
252
|
+
"stringsL": {
|
|
253
|
+
"type": "localizedPath",
|
|
254
|
+
"defaultPath": "stringsL_default.js",
|
|
255
|
+
"paths": {
|
|
256
|
+
"en-us": {
|
|
257
|
+
"path": "stringsL_en-us.js",
|
|
258
|
+
"integrity": "sha384-oqVuAfXRKap7fdgcCY5uykM6+R9GqQ8K/uxy9rx7HNQlGYl1kPzQho1wx4JwY8wC"
|
|
259
|
+
},
|
|
260
|
+
"fr-fr": "stringsL_fr-fr.js"
|
|
261
|
+
},
|
|
262
|
+
"shouldNotPreload": true
|
|
263
|
+
},
|
|
264
|
+
"stringsM": {
|
|
265
|
+
"type": "localizedPath",
|
|
266
|
+
"defaultPath": "stringsM_default.js",
|
|
267
|
+
"shouldNotPreload": false
|
|
268
|
+
},
|
|
269
|
+
"stringsN": {
|
|
270
|
+
"type": "localizedPath",
|
|
271
|
+
"defaultPath": {
|
|
272
|
+
"path": "stringsN_default.js",
|
|
273
|
+
"integrity": "sha384-oqVuAfXRKap7fdgcCY5uykM6+R9GqQ8K/uxy9rx7HNQlGYl1kPzQho1wx4JwY8wC"
|
|
274
|
+
},
|
|
275
|
+
"shouldNotPreload": false
|
|
276
|
+
},
|
|
277
|
+
"stringsO": {
|
|
278
|
+
"type": "localizedPath",
|
|
279
|
+
"defaultPath": {
|
|
280
|
+
"path": "stringsO_default.js"
|
|
281
|
+
},
|
|
282
|
+
"shouldNotPreload": false
|
|
283
|
+
},
|
|
284
|
+
"stringsP": {
|
|
285
|
+
"type": "localizedPath",
|
|
286
|
+
"defaultPath": "stringsP_default.js",
|
|
287
|
+
"paths": {
|
|
288
|
+
"en-us": "stringsP_en-us.js",
|
|
289
|
+
"fr-fr": "stringsP_fr-fr.js"
|
|
290
|
+
},
|
|
291
|
+
"shouldNotPreload": false
|
|
292
|
+
},
|
|
293
|
+
"stringsQ": {
|
|
294
|
+
"type": "localizedPath",
|
|
295
|
+
"defaultPath": "stringsQ_default.js",
|
|
296
|
+
"paths": {
|
|
297
|
+
"en-us": {
|
|
298
|
+
"path": "stringsQ_en-us.js"
|
|
299
|
+
},
|
|
300
|
+
"fr-fr": "stringsQ_fr-fr.js"
|
|
301
|
+
},
|
|
302
|
+
"shouldNotPreload": false
|
|
303
|
+
},
|
|
304
|
+
"stringsR": {
|
|
305
|
+
"type": "localizedPath",
|
|
306
|
+
"defaultPath": "stringsR_default.js",
|
|
307
|
+
"paths": {
|
|
308
|
+
"en-us": {
|
|
309
|
+
"path": "stringsR_en-us.js",
|
|
310
|
+
"integrity": "sha384-oqVuAfXRKap7fdgcCY5uykM6+R9GqQ8K/uxy9rx7HNQlGYl1kPzQho1wx4JwY8wC"
|
|
311
|
+
},
|
|
312
|
+
"fr-fr": "stringsR_fr-fr.js"
|
|
313
|
+
},
|
|
314
|
+
"shouldNotPreload": false
|
|
315
|
+
},
|
|
316
|
+
"nonAmdA": {
|
|
317
|
+
"type": "path",
|
|
318
|
+
"path": "nonAmdA.js",
|
|
319
|
+
"globalName": "nonAmdA"
|
|
320
|
+
},
|
|
321
|
+
"nonAmdB": {
|
|
322
|
+
"type": "path",
|
|
323
|
+
"path": "nonAmdB.js",
|
|
324
|
+
"globalName": "nonAmdB",
|
|
325
|
+
"globalDependencies": ["nonAmdB"]
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
},
|
|
329
|
+
"title": {
|
|
330
|
+
"default": "Prefab App",
|
|
331
|
+
"en-us": "ABC123",
|
|
332
|
+
"fr-fr": "123ABC"
|
|
333
|
+
},
|
|
334
|
+
"description": {
|
|
335
|
+
"default": "This is a prefab app."
|
|
336
|
+
},
|
|
337
|
+
"isConfigured": true,
|
|
338
|
+
"appInstallationTypes": ["NewSite", "ExistingSite"],
|
|
339
|
+
"actions": [
|
|
340
|
+
{
|
|
341
|
+
"verb": "applyTheme",
|
|
342
|
+
"themeName": "Contoso"
|
|
343
|
+
}
|
|
344
|
+
]
|
|
345
|
+
}
|
package/lib-commonjs/manifestSchemas/jsonSchemas/adaptive-card-extension-manifest.schema.json
CHANGED
|
@@ -98,6 +98,14 @@
|
|
|
98
98
|
"type": "string",
|
|
99
99
|
"enum": ["Dashboard"]
|
|
100
100
|
}
|
|
101
|
+
},
|
|
102
|
+
"personalization": {
|
|
103
|
+
"description": "The scope of the personalization on how an AdaptiveCardExtension can be personalized by an end user.",
|
|
104
|
+
"type": "array",
|
|
105
|
+
"items": {
|
|
106
|
+
"type": "string",
|
|
107
|
+
"enum": ["Disallow", "Allow"]
|
|
108
|
+
}
|
|
101
109
|
}
|
|
102
110
|
},
|
|
103
111
|
"additionalProperties": false
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"componentType": {
|
|
47
47
|
"type": "string",
|
|
48
48
|
"title": "Component Type",
|
|
49
|
-
"description": "Type of client side component (\"Application\", \"Extension\", \"Library\", \"WebPart\", or \"AdaptiveCardExtension\"). Components with the \"Application\" type are defined by the \"IClientSideApplicationManifest\" interface; components with the \"WebPart\" type are defined by the \"IClientSideWebPartManifest\" interface; and so forth.",
|
|
50
|
-
"enum": ["Application", "WebPart", "Library", "Extension", "AdaptiveCardExtension"]
|
|
49
|
+
"description": "Type of client side component (\"Application\", \"Prefab\", \"Extension\", \"Library\", \"WebPart\", or \"AdaptiveCardExtension\"). Components with the \"Application\" type are defined by the \"IClientSideApplicationManifest\" interface; components with the \"WebPart\" type are defined by the \"IClientSideWebPartManifest\" interface; and so forth.",
|
|
50
|
+
"enum": ["Application", "WebPart", "Library", "Extension", "AdaptiveCardExtension", "Prefab"]
|
|
51
51
|
},
|
|
52
52
|
|
|
53
53
|
"loadLegacyFabricCss": {
|
|
@@ -123,6 +123,9 @@
|
|
|
123
123
|
},
|
|
124
124
|
{
|
|
125
125
|
"$ref": "client-side-assembly-manifest.schema.json"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"$ref": "prefab-app-manifest.schema.json"
|
|
126
129
|
}
|
|
127
130
|
]
|
|
128
131
|
}
|
|
@@ -143,6 +143,29 @@
|
|
|
143
143
|
"type": "boolean",
|
|
144
144
|
"title": "Allow to iframe pages from the same SharePoint tenant (domain)",
|
|
145
145
|
"description": "If set to \"true\", this web part can have iframed pages from the same tenant (domain). The flag is only applicable to web parts that are hosted as Teams applications."
|
|
146
|
+
},
|
|
147
|
+
"flexibleLayoutSizing": {
|
|
148
|
+
"type": "object",
|
|
149
|
+
"title": "Flexible Layout Sizing Data",
|
|
150
|
+
"description": "Defines the default column width, row height, and dynamic resize support for the webpart when in a flexible layout.",
|
|
151
|
+
"properties": {
|
|
152
|
+
"supportsDynamicResizing": {
|
|
153
|
+
"type": "boolean",
|
|
154
|
+
"title": "Supports Dynamic Resizing",
|
|
155
|
+
"description": "If set to \"true\", this web part can resize to any width between minimum and total number of columns. Otherwise, it follows slot sizing logic."
|
|
156
|
+
},
|
|
157
|
+
"defaultColumnWidth": {
|
|
158
|
+
"type": "number",
|
|
159
|
+
"title": "Default Column Width",
|
|
160
|
+
"description": "The default width for the web part measured in number of flexible layout columns"
|
|
161
|
+
},
|
|
162
|
+
"defaultRowHeight": {
|
|
163
|
+
"type": "number",
|
|
164
|
+
"title": "Default Row Height",
|
|
165
|
+
"description": "The default height for the web part measured in number of flexible layout rows."
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
"additionalProperties": false
|
|
146
169
|
}
|
|
147
170
|
},
|
|
148
171
|
"additionalProperties": false
|
|
@@ -22,16 +22,12 @@
|
|
|
22
22
|
"description": "Id for the localized string in the form '$<moduleName>:<expression>;'",
|
|
23
23
|
"type": "string",
|
|
24
24
|
"minLength": 1,
|
|
25
|
-
"pattern": "^\\$[^:]
|
|
25
|
+
"pattern": "^\\$[^:]+:.+;$"
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
|
|
36
|
-
"additionalProperties": false
|
|
28
|
+
"additionalProperties": {
|
|
29
|
+
"title": "Localized string",
|
|
30
|
+
"type": "string",
|
|
31
|
+
"minLength": 1
|
|
32
|
+
}
|
|
37
33
|
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "prefab-app-manifest.schema.json",
|
|
3
|
+
"title": "PREFAB application manifest",
|
|
4
|
+
"description": "A PREFAB application is the architectural component that allows developers to declaratively specify behavior of a full page application.",
|
|
5
|
+
|
|
6
|
+
"type": "object",
|
|
7
|
+
"allOf": [
|
|
8
|
+
{
|
|
9
|
+
"type": "object",
|
|
10
|
+
|
|
11
|
+
"properties": {
|
|
12
|
+
"$schema": { "type": "string" },
|
|
13
|
+
|
|
14
|
+
"manifestVersion": { "$ref": "any-value.schema.json" },
|
|
15
|
+
"id": { "$ref": "any-value.schema.json" },
|
|
16
|
+
"alias": { "$ref": "any-value.schema.json" },
|
|
17
|
+
"version": { "$ref": "any-value.schema.json" },
|
|
18
|
+
"loaderConfig": { "$ref": "any-value.schema.json" },
|
|
19
|
+
"componentType": { "$ref": "any-value.schema.json" },
|
|
20
|
+
"preloadComponents": { "$ref": "any-value.schema.json" },
|
|
21
|
+
"title": { "$ref": "any-value.schema.json" },
|
|
22
|
+
"description": { "$ref": "any-value.schema.json" },
|
|
23
|
+
"isConfigured": { "$ref": "any-value.schema.json" },
|
|
24
|
+
"appInstallationTypes": {
|
|
25
|
+
"description": "Describes how the PREFAB app can be installed: NewSite or ExistingSite. If omitted the app supports both.",
|
|
26
|
+
"type": "array",
|
|
27
|
+
"items": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"enum": ["NewSite", "ExistingSite"]
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"actions": {
|
|
33
|
+
"$ref": "https://developer.microsoft.com/json-schemas/sp/site-design-script-actions.schema.json#/properties/actions"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"additionalProperties": false
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"$ref": "client-side-component-manifest.schema.json#/definitions/clientSideComponentManifest"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"type": "object",
|
|
43
|
+
"required": ["componentType", "title", "description", "isConfigured"],
|
|
44
|
+
"properties": {
|
|
45
|
+
"componentType": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"enum": ["Prefab"]
|
|
48
|
+
},
|
|
49
|
+
|
|
50
|
+
"title": {
|
|
51
|
+
"title": "Title",
|
|
52
|
+
"description": "Title of the application as a dictionary of locale keys to title values. This value will be displayed to the user in the (page creation) interface. A dictionary must contain a \"default\" key.",
|
|
53
|
+
"$ref": "localized-string.schema.json"
|
|
54
|
+
},
|
|
55
|
+
|
|
56
|
+
"description": {
|
|
57
|
+
"title": "Description",
|
|
58
|
+
"description": "Description of the application represented as a dictionary of locale keys to description values. This value will be displayed to the user in the (page creation) interface. A dictionary must contain a \"default\" key.",
|
|
59
|
+
"$ref": "localized-string.schema.json"
|
|
60
|
+
},
|
|
61
|
+
|
|
62
|
+
"isConfigured": {
|
|
63
|
+
"title": "Is configured",
|
|
64
|
+
"description": "True if the application is configured and not need a FRC (First Run Configuration) step.",
|
|
65
|
+
"type": "boolean"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
|
|
69
|
+
"additionalProperties": true
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "http://json-schema.org/draft-04/schema#",
|
|
3
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
4
|
+
"description": "Core schema meta-schema",
|
|
5
|
+
"definitions": {
|
|
6
|
+
"schemaArray": {
|
|
7
|
+
"type": "array",
|
|
8
|
+
"minItems": 1,
|
|
9
|
+
"items": { "$ref": "#" }
|
|
10
|
+
},
|
|
11
|
+
"positiveInteger": {
|
|
12
|
+
"type": "integer",
|
|
13
|
+
"minimum": 0
|
|
14
|
+
},
|
|
15
|
+
"positiveIntegerDefault0": {
|
|
16
|
+
"allOf": [{ "$ref": "#/definitions/positiveInteger" }, { "default": 0 }]
|
|
17
|
+
},
|
|
18
|
+
"simpleTypes": {
|
|
19
|
+
"enum": ["array", "boolean", "integer", "null", "number", "object", "string"]
|
|
20
|
+
},
|
|
21
|
+
"stringArray": {
|
|
22
|
+
"type": "array",
|
|
23
|
+
"items": { "type": "string" },
|
|
24
|
+
"minItems": 1,
|
|
25
|
+
"uniqueItems": true
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"type": "object",
|
|
29
|
+
"properties": {
|
|
30
|
+
"id": {
|
|
31
|
+
"type": "string"
|
|
32
|
+
},
|
|
33
|
+
"$schema": {
|
|
34
|
+
"type": "string"
|
|
35
|
+
},
|
|
36
|
+
"title": {
|
|
37
|
+
"type": "string"
|
|
38
|
+
},
|
|
39
|
+
"description": {
|
|
40
|
+
"type": "string"
|
|
41
|
+
},
|
|
42
|
+
"default": {},
|
|
43
|
+
"multipleOf": {
|
|
44
|
+
"type": "number",
|
|
45
|
+
"minimum": 0,
|
|
46
|
+
"exclusiveMinimum": true
|
|
47
|
+
},
|
|
48
|
+
"maximum": {
|
|
49
|
+
"type": "number"
|
|
50
|
+
},
|
|
51
|
+
"exclusiveMaximum": {
|
|
52
|
+
"type": "boolean",
|
|
53
|
+
"default": false
|
|
54
|
+
},
|
|
55
|
+
"minimum": {
|
|
56
|
+
"type": "number"
|
|
57
|
+
},
|
|
58
|
+
"exclusiveMinimum": {
|
|
59
|
+
"type": "boolean",
|
|
60
|
+
"default": false
|
|
61
|
+
},
|
|
62
|
+
"maxLength": { "$ref": "#/definitions/positiveInteger" },
|
|
63
|
+
"minLength": { "$ref": "#/definitions/positiveIntegerDefault0" },
|
|
64
|
+
"pattern": {
|
|
65
|
+
"type": "string",
|
|
66
|
+
"format": "regex"
|
|
67
|
+
},
|
|
68
|
+
"additionalItems": {
|
|
69
|
+
"anyOf": [{ "type": "boolean" }, { "$ref": "#" }],
|
|
70
|
+
"default": {}
|
|
71
|
+
},
|
|
72
|
+
"items": {
|
|
73
|
+
"anyOf": [{ "$ref": "#" }, { "$ref": "#/definitions/schemaArray" }],
|
|
74
|
+
"default": {}
|
|
75
|
+
},
|
|
76
|
+
"maxItems": { "$ref": "#/definitions/positiveInteger" },
|
|
77
|
+
"minItems": { "$ref": "#/definitions/positiveIntegerDefault0" },
|
|
78
|
+
"uniqueItems": {
|
|
79
|
+
"type": "boolean",
|
|
80
|
+
"default": false
|
|
81
|
+
},
|
|
82
|
+
"maxProperties": { "$ref": "#/definitions/positiveInteger" },
|
|
83
|
+
"minProperties": { "$ref": "#/definitions/positiveIntegerDefault0" },
|
|
84
|
+
"required": { "$ref": "#/definitions/stringArray" },
|
|
85
|
+
"additionalProperties": {
|
|
86
|
+
"anyOf": [{ "type": "boolean" }, { "$ref": "#" }],
|
|
87
|
+
"default": {}
|
|
88
|
+
},
|
|
89
|
+
"definitions": {
|
|
90
|
+
"type": "object",
|
|
91
|
+
"additionalProperties": { "$ref": "#" },
|
|
92
|
+
"default": {}
|
|
93
|
+
},
|
|
94
|
+
"properties": {
|
|
95
|
+
"type": "object",
|
|
96
|
+
"additionalProperties": { "$ref": "#" },
|
|
97
|
+
"default": {}
|
|
98
|
+
},
|
|
99
|
+
"patternProperties": {
|
|
100
|
+
"type": "object",
|
|
101
|
+
"additionalProperties": { "$ref": "#" },
|
|
102
|
+
"default": {}
|
|
103
|
+
},
|
|
104
|
+
"dependencies": {
|
|
105
|
+
"type": "object",
|
|
106
|
+
"additionalProperties": {
|
|
107
|
+
"anyOf": [{ "$ref": "#" }, { "$ref": "#/definitions/stringArray" }]
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
"enum": {
|
|
111
|
+
"type": "array",
|
|
112
|
+
"minItems": 1,
|
|
113
|
+
"uniqueItems": true
|
|
114
|
+
},
|
|
115
|
+
"type": {
|
|
116
|
+
"anyOf": [
|
|
117
|
+
{ "$ref": "#/definitions/simpleTypes" },
|
|
118
|
+
{
|
|
119
|
+
"type": "array",
|
|
120
|
+
"items": { "$ref": "#/definitions/simpleTypes" },
|
|
121
|
+
"minItems": 1,
|
|
122
|
+
"uniqueItems": true
|
|
123
|
+
}
|
|
124
|
+
]
|
|
125
|
+
},
|
|
126
|
+
"format": { "type": "string" },
|
|
127
|
+
"allOf": { "$ref": "#/definitions/schemaArray" },
|
|
128
|
+
"anyOf": { "$ref": "#/definitions/schemaArray" },
|
|
129
|
+
"oneOf": { "$ref": "#/definitions/schemaArray" },
|
|
130
|
+
"not": { "$ref": "#" }
|
|
131
|
+
},
|
|
132
|
+
"dependencies": {
|
|
133
|
+
"exclusiveMaximum": ["maximum"],
|
|
134
|
+
"exclusiveMinimum": ["minimum"]
|
|
135
|
+
},
|
|
136
|
+
"default": {}
|
|
137
|
+
}
|