@microsoft/sp-module-interfaces 1.22.2 → 1.23.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.
Files changed (59) hide show
  1. package/dist/index-internal-beta.d.ts +20 -2
  2. package/dist/index-internal-public.d.ts +20 -2
  3. package/dist/index-internal.d.ts +728 -16
  4. package/lib-commonjs/manifestSchemaValidator.js +125 -25
  5. package/lib-commonjs/manifestSchemas/examples/commandSet_2.manifest.js +59 -0
  6. package/lib-commonjs/manifestSchemas/examples/commandSet_3.manifest.js +66 -0
  7. package/lib-commonjs/manifestSchemas/examples/commandSet_4.manifest.js +73 -0
  8. package/lib-commonjs/manifestSchemas/examples/commandSet_5.manifest.js +51 -0
  9. package/lib-commonjs/manifestSchemas/jsonSchemas/adaptive-card-extension-manifest.schema.json +1 -1
  10. package/lib-commonjs/manifestSchemas/jsonSchemas/any-value.schema.json +1 -1
  11. package/lib-commonjs/manifestSchemas/jsonSchemas/client-side-application-manifest.schema.json +1 -1
  12. package/lib-commonjs/manifestSchemas/jsonSchemas/client-side-assembly-manifest.schema.json +1 -1
  13. package/lib-commonjs/manifestSchemas/jsonSchemas/client-side-component-loader-configuration.schema.json +1 -2
  14. package/lib-commonjs/manifestSchemas/jsonSchemas/client-side-component-manifest.schema.json +1 -1
  15. package/lib-commonjs/manifestSchemas/jsonSchemas/client-side-extension-manifest.schema.json +1 -1
  16. package/lib-commonjs/manifestSchemas/jsonSchemas/client-side-library-manifest.schema.json +1 -1
  17. package/lib-commonjs/manifestSchemas/jsonSchemas/client-side-manifest-base.schema.json +1 -1
  18. package/lib-commonjs/manifestSchemas/jsonSchemas/client-side-multi-version-manifest.schema.json +1 -1
  19. package/lib-commonjs/manifestSchemas/jsonSchemas/client-side-web-part-manifest.schema.json +1 -1
  20. package/lib-commonjs/manifestSchemas/jsonSchemas/command-set-extension-manifest.schema.json +9 -3
  21. package/lib-commonjs/manifestSchemas/jsonSchemas/component-fallback-version.schema.json +1 -1
  22. package/lib-commonjs/manifestSchemas/jsonSchemas/guid.schema.json +1 -1
  23. package/lib-commonjs/manifestSchemas/jsonSchemas/localized-string.schema.json +1 -1
  24. package/lib-commonjs/manifestSchemas/jsonSchemas/prefab-app-manifest.schema.json +2 -2
  25. package/lib-commonjs/manifestSchemas/jsonSchemas/semver.schema.json +1 -1
  26. package/lib-commonjs/manifestSchemas/remote/site-design-script-actions.schema.json +4 -6
  27. package/lib-dts/manifestSchemaValidator.d.ts +16 -4
  28. package/lib-dts/manifestSchemas/ICommandSetExtensionManifest.d.ts +20 -2
  29. package/lib-dts/manifestSchemas/examples/commandSet_2.manifest.d.ts +8 -0
  30. package/lib-dts/manifestSchemas/examples/commandSet_3.manifest.d.ts +8 -0
  31. package/lib-dts/manifestSchemas/examples/commandSet_4.manifest.d.ts +8 -0
  32. package/lib-dts/manifestSchemas/examples/commandSet_5.manifest.d.ts +8 -0
  33. package/lib-dts/tsdoc-metadata.json +1 -1
  34. package/lib-esm/manifestSchemaValidator.js +126 -27
  35. package/lib-esm/manifestSchemas/examples/commandSet_2.manifest.js +49 -0
  36. package/lib-esm/manifestSchemas/examples/commandSet_3.manifest.js +56 -0
  37. package/lib-esm/manifestSchemas/examples/commandSet_4.manifest.js +63 -0
  38. package/lib-esm/manifestSchemas/examples/commandSet_5.manifest.js +41 -0
  39. package/lib-esm/manifestSchemas/jsonSchemas/adaptive-card-extension-manifest.schema.json +1 -1
  40. package/lib-esm/manifestSchemas/jsonSchemas/any-value.schema.json +1 -1
  41. package/lib-esm/manifestSchemas/jsonSchemas/client-side-application-manifest.schema.json +1 -1
  42. package/lib-esm/manifestSchemas/jsonSchemas/client-side-assembly-manifest.schema.json +1 -1
  43. package/lib-esm/manifestSchemas/jsonSchemas/client-side-component-loader-configuration.schema.json +1 -2
  44. package/lib-esm/manifestSchemas/jsonSchemas/client-side-component-manifest.schema.json +1 -1
  45. package/lib-esm/manifestSchemas/jsonSchemas/client-side-extension-manifest.schema.json +1 -1
  46. package/lib-esm/manifestSchemas/jsonSchemas/client-side-library-manifest.schema.json +1 -1
  47. package/lib-esm/manifestSchemas/jsonSchemas/client-side-manifest-base.schema.json +1 -1
  48. package/lib-esm/manifestSchemas/jsonSchemas/client-side-multi-version-manifest.schema.json +1 -1
  49. package/lib-esm/manifestSchemas/jsonSchemas/client-side-web-part-manifest.schema.json +1 -1
  50. package/lib-esm/manifestSchemas/jsonSchemas/command-set-extension-manifest.schema.json +9 -3
  51. package/lib-esm/manifestSchemas/jsonSchemas/component-fallback-version.schema.json +1 -1
  52. package/lib-esm/manifestSchemas/jsonSchemas/guid.schema.json +1 -1
  53. package/lib-esm/manifestSchemas/jsonSchemas/localized-string.schema.json +1 -1
  54. package/lib-esm/manifestSchemas/jsonSchemas/prefab-app-manifest.schema.json +2 -2
  55. package/lib-esm/manifestSchemas/jsonSchemas/semver.schema.json +1 -1
  56. package/lib-esm/manifestSchemas/remote/site-design-script-actions.schema.json +4 -6
  57. package/package.json +12 -14
  58. package/lib-commonjs/manifestSchemas/remote/draft-04.schema.json +0 -137
  59. package/lib-esm/manifestSchemas/remote/draft-04.schema.json +0 -137
@@ -1,5 +1,5 @@
1
1
  {
2
- "id": "component-fallback-version.schema.json",
2
+ "$id": "component-fallback-version.schema.json",
3
3
  "title": "Component Fallback Version",
4
4
  "description": "Represents a fallback version of a component that can be used under certain logical conditions, including flight and killswitch checks.",
5
5
  "type": "object",
@@ -1,5 +1,5 @@
1
1
  {
2
- "id": "guid.schema.json",
2
+ "$id": "guid.schema.json",
3
3
 
4
4
  "type": "string",
5
5
  "minLength": 1,
@@ -1,5 +1,5 @@
1
1
  {
2
- "id": "localized-string.schema.json",
2
+ "$id": "localized-string.schema.json",
3
3
 
4
4
  "type": "object",
5
5
  "oneOf": [
@@ -1,5 +1,5 @@
1
1
  {
2
- "id": "prefab-app-manifest.schema.json",
2
+ "$id": "prefab-app-manifest.schema.json",
3
3
  "title": "PREFAB application manifest",
4
4
  "description": "A PREFAB application is the architectural component that allows developers to declaratively specify behavior of a full page application.",
5
5
 
@@ -17,7 +17,7 @@
17
17
  "enum": ["onInstall", "onDemand"]
18
18
  },
19
19
  "actions": {
20
- "$ref": "https://developer.microsoft.com/json-schemas/sp/site-design-script-actions.schema.json#/properties/actions"
20
+ "$ref": "remote/site-design-script-actions.schema.json#/properties/actions"
21
21
  }
22
22
  },
23
23
  "required": ["type", "actions"],
@@ -1,5 +1,5 @@
1
1
  {
2
- "id": "semver.schema.json",
2
+ "$id": "semver.schema.json",
3
3
 
4
4
  "type": "string",
5
5
  "minLength": 5,
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "remote/site-design-script-actions.schema.json",
3
4
  "title": "JSON Schema for SiteScript Extensions",
4
5
  "definitions": {
5
6
  "activateSPFeature": {
@@ -197,8 +198,7 @@
197
198
  "$ref": "#/definitions/SPListSubactions/associateListViewCommandSet"
198
199
  }
199
200
  ]
200
- },
201
- "additionalItems": false
201
+ }
202
202
  }
203
203
  },
204
204
  "required": ["listName", "templateType", "verb"],
@@ -884,8 +884,7 @@
884
884
  "$ref": "#/definitions/SPContentTypeSubactions/removeSiteColumn"
885
885
  }
886
886
  ]
887
- },
888
- "additionalItems": false
887
+ }
889
888
  }
890
889
  },
891
890
  "required": ["verb", "name", "hidden"],
@@ -1147,8 +1146,7 @@
1147
1146
  "$ref": "#/definitions/setFooterLogo"
1148
1147
  }
1149
1148
  ]
1150
- },
1151
- "additionalItems": false
1149
+ }
1152
1150
  },
1153
1151
  "$schema": {
1154
1152
  "type": "string"
package/package.json CHANGED
@@ -1,9 +1,12 @@
1
1
  {
2
2
  "name": "@microsoft/sp-module-interfaces",
3
- "version": "1.22.2",
3
+ "version": "1.23.0-beta.0",
4
4
  "description": "SharePoint Framework module interfaces",
5
- "license": "https://aka.ms/spfx/license",
6
5
  "homepage": "http://aka.ms/spfx",
6
+ "license": "https://aka.ms/spfx/license",
7
+ "tsdoc": {
8
+ "tsdocFlavor": "AEDoc"
9
+ },
7
10
  "engines": {
8
11
  "node": ">=18.17.1 <19.0.0 || >=22.14.0 < 23.0.0"
9
12
  },
@@ -30,25 +33,20 @@
30
33
  ]
31
34
  }
32
35
  },
33
- "tsdoc": {
34
- "tsdocFlavor": "AEDoc"
35
- },
36
36
  "dependencies": {
37
- "@rushstack/node-core-library": "5.17.1",
38
- "ajv": "^6.12.5"
37
+ "@rushstack/node-core-library": "5.20.3",
38
+ "ajv": "8.18.0"
39
39
  },
40
40
  "devDependencies": {
41
- "@rushstack/heft": "1.1.2",
42
- "eslint": "8.57.1",
41
+ "@rushstack/heft": "1.2.7",
42
+ "eslint": "9.37.0",
43
+ "@msinternal/fix-stub-param-heft-plugin": "0.1.0",
44
+ "@msinternal/spfx-component-interfaces": "0.0.0",
43
45
  "@msinternal/internal-no-asset-postprocess-node-rig": "0.1.0"
44
46
  },
45
47
  "scripts": {
46
- "build": "heft test --clean",
47
- "test": "heft run --only test",
48
- "test-watch": "heft test-watch",
48
+ "build": "heft build --clean",
49
49
  "_phase:depscan": "heft depscan",
50
- "_phase:test": "heft run --only test -- --clean",
51
- "_phase:test:incremental": "heft run --only test --",
52
50
  "_phase:tool-build": "heft run --only build -- --clean",
53
51
  "_phase:tool-build:incremental": "heft run --only build --"
54
52
  }
@@ -1,137 +0,0 @@
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
- }
@@ -1,137 +0,0 @@
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
- }