initiative-plugin-sdk 4.1.1 → 5.0.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 +71 -17
- package/dist/contract.d.ts +27 -17
- package/dist/contract.js +7 -7
- package/dist/contract.js.map +1 -1
- package/dist/define.d.ts +18 -10
- package/dist/define.js +5 -4
- package/dist/define.js.map +1 -1
- package/dist/manifest.d.ts +4 -2
- package/dist/manifest.js +3 -1
- package/dist/manifest.js.map +1 -1
- package/dist/plugin-api.d.ts +20 -0
- package/dist/plugin-api.generated.d.ts +2 -2
- package/dist/plugin-api.generated.js +2 -2
- package/dist/plugin-api.js +35 -0
- package/dist/plugin-api.js.map +1 -0
- package/dist/server.d.ts +2 -2
- package/dist/server.js +6 -6
- package/dist/server.js.map +1 -1
- package/dist/tokens.d.ts +3 -3
- package/dist/tokens.js +3 -3
- package/dist/tokens.js.map +1 -1
- package/dist/validate.js +4 -4
- package/dist/validate.js.map +1 -1
- package/manifest.contract.json +20 -15
- package/package.json +3 -2
- package/schemas/plugin-api.json +20925 -0
- package/schemas/plugin-manifest.json +12 -7
|
@@ -89,8 +89,8 @@
|
|
|
89
89
|
"items": {
|
|
90
90
|
"enum": [
|
|
91
91
|
"dashboards",
|
|
92
|
-
"embeds",
|
|
93
92
|
"endpoints",
|
|
93
|
+
"pages",
|
|
94
94
|
"widgets"
|
|
95
95
|
]
|
|
96
96
|
},
|
|
@@ -115,6 +115,11 @@
|
|
|
115
115
|
},
|
|
116
116
|
"description": "How old somebody must be to use this plug-in, by where they are. Keys are ISO 3166-1 alpha-2 country codes, upper case, and 'default' for every country not listed: {\"default\": 16, \"US\": 13}. The age of digital consent differs by country, inside the EU as well as outside it, which is why a region is a country rather than a regime. Absent, or a country with no entry and no 'default': the deployment's own minimum applies. A declaration, not a gate: whether a deployment enforces it, and how it learns somebody's age and country, are its decisions. At most 64 entries, each from 13 to 21."
|
|
117
117
|
},
|
|
118
|
+
"min_plugin_api": {
|
|
119
|
+
"type": "string",
|
|
120
|
+
"pattern": "^[0-9]+\\.[0-9]+$",
|
|
121
|
+
"description": "The oldest plug-in API contract this plug-in needs, as 'MAJOR.MINOR': '4.1'. The contract is the plug-in API published with initiative-plugin-sdk, versioned as that package is. A deployment serving contract S can run it when S has the same major version and a minor version at least this one's. Absent: any contract; the plug-in makes no claim. Beside a listing's min_app_version, the oldest Initiative release it runs on, this says what the plug-in calls rather than which release serves it."
|
|
122
|
+
},
|
|
118
123
|
"hosts": {
|
|
119
124
|
"type": "array",
|
|
120
125
|
"minItems": 1,
|
|
@@ -168,11 +173,11 @@
|
|
|
168
173
|
"$ref": "#/$defs/widget"
|
|
169
174
|
}
|
|
170
175
|
},
|
|
171
|
-
"
|
|
176
|
+
"pages": {
|
|
172
177
|
"type": "array",
|
|
173
178
|
"maxItems": 12,
|
|
174
179
|
"items": {
|
|
175
|
-
"$ref": "#/$defs/
|
|
180
|
+
"$ref": "#/$defs/page"
|
|
176
181
|
}
|
|
177
182
|
},
|
|
178
183
|
"dashboards": {
|
|
@@ -1090,7 +1095,7 @@
|
|
|
1090
1095
|
}
|
|
1091
1096
|
}
|
|
1092
1097
|
},
|
|
1093
|
-
"
|
|
1098
|
+
"page": {
|
|
1094
1099
|
"type": "object",
|
|
1095
1100
|
"required": [
|
|
1096
1101
|
"id",
|
|
@@ -1119,12 +1124,12 @@
|
|
|
1119
1124
|
"default": [
|
|
1120
1125
|
"community"
|
|
1121
1126
|
],
|
|
1122
|
-
"description": "Where the
|
|
1127
|
+
"description": "Where the page renders. Declaring both gives it a community-wide entry and an entry inside each initiative."
|
|
1123
1128
|
},
|
|
1124
1129
|
"admin_only": {
|
|
1125
1130
|
"type": "boolean",
|
|
1126
1131
|
"default": false,
|
|
1127
|
-
"description": "Only the community's admins open this
|
|
1132
|
+
"description": "Only the community's admins open this page, whatever roles a placement allows — a settings page, say. Who else may open a page is chosen in the community, per initiative and per role, not declared here."
|
|
1128
1133
|
},
|
|
1129
1134
|
"capabilities": {
|
|
1130
1135
|
"type": "array",
|
|
@@ -1140,7 +1145,7 @@
|
|
|
1140
1145
|
"microphone"
|
|
1141
1146
|
]
|
|
1142
1147
|
},
|
|
1143
|
-
"description": "Browser features the frame is granted. A
|
|
1148
|
+
"description": "Browser features the frame is granted. A page that names nothing is framed with all of them denied."
|
|
1144
1149
|
},
|
|
1145
1150
|
"requires": {
|
|
1146
1151
|
"$ref": "#/$defs/requires"
|