@forge/manifest 13.5.0-next.6-experimental-59dbf08 → 13.5.0-next.7

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/CHANGELOG.md CHANGED
@@ -1,21 +1,10 @@
1
1
  # @forge/manifest
2
2
 
3
- ## 13.5.0-next.6-experimental-59dbf08
3
+ ## 13.5.0-next.7
4
4
 
5
5
  ### Minor Changes
6
6
 
7
- - fe8d182: Add `inline-bodied` as a supported layout for Confluence macro modules.
8
- - 511fabb: Validate display conditions declared on the pages and sections of Jira page modules
9
-
10
- ### Patch Changes
11
-
12
- - 28b74f6: Remove manifest test until app host artifacts deployment
13
- - dea5ecf: Improve manifest unreferenced action validation
14
- - 07cdf11: Fix manifest validation
15
- - eda3a24: Update manifest definitions
16
- - 0a75004: Update manifest definitions
17
- - 150a3c5: Update manifest definitions
18
- - 226567e: Update manifest definitions
7
+ - 8693712: Allow all optional contexts for global apps EAP
19
8
 
20
9
  ## 13.5.0-next.6
21
10
 
@@ -56,7 +56,6 @@
56
56
  "title": "compatibility",
57
57
  "description": "The app compatibility configuration. If not set, app is not a cross-context or global app.",
58
58
  "additionalProperties": false,
59
- "minProperties": 1,
60
59
  "properties": {
61
60
  "confluence": {
62
61
  "type": "object",
@@ -56,7 +56,6 @@
56
56
  "title": "compatibility",
57
57
  "description": "The app compatibility configuration. If not set, app is not a cross-context or global app.",
58
58
  "additionalProperties": false,
59
- "minProperties": 1,
60
59
  "properties": {
61
60
  "confluence": {
62
61
  "type": "object",
@@ -289,7 +289,7 @@ exports.errors = {
289
289
  invalidConfluenceModuleInJira: () => 'Using the module `confluence:fullPage` is invalid when the required product is Jira. Full page modules must match the required product. Use `jira:fullPage` as the module type, or change the required product to Confluence in your manifest.yml compatibility settings.',
290
290
  invalidJiraModuleInConfluence: () => 'Using the module `jira:fullPage` is invalid when the required product is Confluence. Full page modules must match the required product. Use `confluence:fullPage` as the module type, or change the required product to Jira in your manifest.yml compatibility settings.',
291
291
  invalidProduct: (product) => `Invalid product '${product}' in app.compatibility. Only 'jira' and 'confluence' are supported as compatibility products for this module.`,
292
- oneRequiredContext: () => 'One context (Jira, Confluence, or Compass) must have `required:true` in app.compatibility.'
292
+ oneRequiredContext: () => 'Only one context (Jira, Confluence, or Compass) must have `required:true` in app.compatibility.'
293
293
  }
294
294
  },
295
295
  translations: {
@@ -18,7 +18,7 @@ class CompatibilityValidator {
18
18
  const compatibility = app?.compatibility || {};
19
19
  const hasCompatibilityKeys = Object.keys(compatibility).length > 0;
20
20
  const requiredContexts = Object.keys(compatibility).filter((key) => compatibility[key]?.required === true);
21
- if (hasCompatibilityKeys && requiredContexts.length !== 1) {
21
+ if (hasCompatibilityKeys && requiredContexts.length > 1) {
22
22
  validationErrors.push({
23
23
  message: text_1.errors.app.compatibility.oneRequiredContext(),
24
24
  reference: text_2.References.SchemaError,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/manifest",
3
- "version": "13.5.0-next.6-experimental-59dbf08",
3
+ "version": "13.5.0-next.7",
4
4
  "description": "Definitions and validations of the Forge manifest",
5
5
  "main": "out/index.js",
6
6
  "scripts": {