@forge/manifest 13.5.0-next.0 → 13.5.0-next.1

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,5 +1,12 @@
1
1
  # @forge/manifest
2
2
 
3
+ ## 13.5.0-next.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 07cdf11: Fix manifest validation
8
+ - 150a3c5: Update manifest definitions
9
+
3
10
  ## 13.5.0-next.0
4
11
 
5
12
  ### Minor Changes
@@ -3003,12 +3003,6 @@
3003
3003
  "minLength": 1,
3004
3004
  "maxLength": 255
3005
3005
  },
3006
- "resource": {
3007
- "type": "string",
3008
- "minLength": 1,
3009
- "maxLength": 23,
3010
- "pattern": "^[a-zA-Z0-9_\\-]+$"
3011
- },
3012
3006
  "render": {
3013
3007
  "default": "default",
3014
3008
  "enum": [
@@ -3039,28 +3033,6 @@
3039
3033
  "resource"
3040
3034
  ]
3041
3035
  },
3042
- "edit.sidePanel": {
3043
- "type": "object",
3044
- "properties": {
3045
- "resource": {
3046
- "type": "string",
3047
- "minLength": 1,
3048
- "maxLength": 23,
3049
- "pattern": "^[a-zA-Z0-9_\\-]+$"
3050
- },
3051
- "render": {
3052
- "default": "default",
3053
- "enum": [
3054
- "default",
3055
- "native"
3056
- ],
3057
- "type": "string"
3058
- }
3059
- },
3060
- "required": [
3061
- "resource"
3062
- ]
3063
- },
3064
3036
  "resolver": {
3065
3037
  "anyOf": [
3066
3038
  {
@@ -3094,24 +3066,61 @@
3094
3066
  ]
3095
3067
  }
3096
3068
  ]
3097
- },
3098
- "key": {
3099
- "$ref": "#/definitions/ModuleKeySchema"
3100
3069
  }
3101
3070
  },
3102
3071
  "required": [
3103
3072
  "title",
3104
3073
  "icon",
3105
- "resource",
3106
- "edit",
3107
- "edit.sidePanel",
3108
- "key"
3074
+ "edit"
3109
3075
  ],
3110
- "not": {
3111
- "required": [
3112
- "unlicensedAccess"
3113
- ]
3114
- }
3076
+ "oneOf": [
3077
+ {
3078
+ "type": "object",
3079
+ "properties": {
3080
+ "function": {
3081
+ "type": "string",
3082
+ "minLength": 1,
3083
+ "maxLength": 255,
3084
+ "pattern": "^[a-zA-Z0-9-_]+$"
3085
+ },
3086
+ "key": {
3087
+ "$ref": "#/definitions/ModuleKeySchema"
3088
+ }
3089
+ },
3090
+ "required": [
3091
+ "function",
3092
+ "key"
3093
+ ],
3094
+ "not": {
3095
+ "required": [
3096
+ "unlicensedAccess"
3097
+ ]
3098
+ }
3099
+ },
3100
+ {
3101
+ "type": "object",
3102
+ "properties": {
3103
+ "resource": {
3104
+ "type": "string",
3105
+ "minLength": 1,
3106
+ "maxLength": 23,
3107
+ "pattern": "^[a-zA-Z0-9_\\-]+$"
3108
+ },
3109
+ "key": {
3110
+ "$ref": "#/definitions/ModuleKeySchema"
3111
+ }
3112
+ },
3113
+ "required": [
3114
+ "resource",
3115
+ "key"
3116
+ ],
3117
+ "not": {
3118
+ "required": [
3119
+ "unlicensedAccess"
3120
+ ]
3121
+ }
3122
+ }
3123
+ ]
3115
3124
  },
3116
3125
  "minItems": 1
3117
3126
  },
@@ -13303,56 +13303,30 @@ export interface Modules {
13303
13303
  }[]
13304
13304
  ];
13305
13305
  'dashboards:filter'?: [
13306
- {
13307
- title: string;
13308
- icon: string;
13309
- resource: string;
13310
- render?: 'default' | 'native';
13311
- edit: {
13312
- resource: string;
13313
- render?: 'default' | 'native';
13314
- [k: string]: unknown;
13315
- };
13316
- 'edit.sidePanel': {
13317
- resource: string;
13318
- render?: 'default' | 'native';
13319
- [k: string]: unknown;
13320
- };
13321
- resolver?:
13322
- | {
13323
- function: string;
13324
- }
13325
- | {
13326
- endpoint: string;
13327
- };
13328
- key: ModuleKeySchema;
13329
- [k: string]: unknown;
13330
- },
13331
- ...{
13332
- title: string;
13333
- icon: string;
13334
- resource: string;
13335
- render?: 'default' | 'native';
13336
- edit: {
13337
- resource: string;
13338
- render?: 'default' | 'native';
13339
- [k: string]: unknown;
13340
- };
13341
- 'edit.sidePanel': {
13342
- resource: string;
13343
- render?: 'default' | 'native';
13344
- [k: string]: unknown;
13345
- };
13346
- resolver?:
13347
- | {
13348
- function: string;
13349
- }
13350
- | {
13351
- endpoint: string;
13352
- };
13353
- key: ModuleKeySchema;
13354
- [k: string]: unknown;
13355
- }[]
13306
+ (
13307
+ | {
13308
+ function: string;
13309
+ key: ModuleKeySchema;
13310
+ [k: string]: unknown;
13311
+ }
13312
+ | {
13313
+ resource: string;
13314
+ key: ModuleKeySchema;
13315
+ [k: string]: unknown;
13316
+ }
13317
+ ),
13318
+ ...(
13319
+ | {
13320
+ function: string;
13321
+ key: ModuleKeySchema;
13322
+ [k: string]: unknown;
13323
+ }
13324
+ | {
13325
+ resource: string;
13326
+ key: ModuleKeySchema;
13327
+ [k: string]: unknown;
13328
+ }
13329
+ )[]
13356
13330
  ];
13357
13331
  'dashboards:backgroundScript'?: [
13358
13332
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/manifest",
3
- "version": "13.5.0-next.0",
3
+ "version": "13.5.0-next.1",
4
4
  "description": "Definitions and validations of the Forge manifest",
5
5
  "main": "out/index.js",
6
6
  "scripts": {