@forge/manifest 2.6.0-next.17 → 2.6.0-next.18

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,15 @@
1
1
  # @forge/manifest
2
2
 
3
+ ## 2.6.0-next.18
4
+
5
+ ### Minor Changes
6
+
7
+ - 1c196ff: Add support for external fetch client to reference remote
8
+
9
+ ### Patch Changes
10
+
11
+ - e7ee3a7: Update manifest definitions
12
+
3
13
  ## 2.6.0-next.17
4
14
 
5
15
  ### Patch Changes
package/out/index.d.ts CHANGED
@@ -7,6 +7,6 @@ export * from './text';
7
7
  export * from './types';
8
8
  export * from './utils';
9
9
  export * from './validators';
10
- export { Modules, ManifestSchema, App, Resources, Permissions, Remotes } from './schema/manifest';
10
+ export { Modules, ManifestSchema, App, Resources, Permissions, Remotes, Fetch } from './schema/manifest';
11
11
  export declare const validate: (basic?: boolean, manifest?: string | undefined) => ManifestValidationResult<ManifestSchema | BasicManifestSchema>;
12
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAmB,MAAM,SAAS,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAG9D,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,GAAG,EAAE,SAAS,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAElG,eAAO,MAAM,QAAQ,+BAET,MAAM,GAAG,SAAS,KAC3B,wBAAwB,CAAC,cAAc,GAAG,mBAAmB,CAK/D,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAmB,MAAM,SAAS,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAG9D,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,GAAG,EAAE,SAAS,EAAE,WAAW,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAEzG,eAAO,MAAM,QAAQ,+BAET,MAAM,GAAG,SAAS,KAC3B,wBAAwB,CAAC,cAAc,GAAG,mBAAmB,CAK/D,CAAC"}
@@ -6312,10 +6312,10 @@
6312
6312
  "type": "object",
6313
6313
  "anyOf": [
6314
6314
  {
6315
- "$ref": "#/definitions/singleCondition"
6315
+ "$ref": "#/definitions/compositeCondition"
6316
6316
  },
6317
6317
  {
6318
- "$ref": "#/definitions/compositeCondition"
6318
+ "$ref": "#/definitions/singleCondition"
6319
6319
  }
6320
6320
  ]
6321
6321
  },
@@ -6438,10 +6438,10 @@
6438
6438
  "type": "object",
6439
6439
  "anyOf": [
6440
6440
  {
6441
- "$ref": "#/definitions/compositeCondition"
6441
+ "$ref": "#/definitions/singleCondition"
6442
6442
  },
6443
6443
  {
6444
- "$ref": "#/definitions/singleCondition"
6444
+ "$ref": "#/definitions/compositeCondition"
6445
6445
  }
6446
6446
  ]
6447
6447
  },
@@ -6560,10 +6560,10 @@
6560
6560
  "type": "object",
6561
6561
  "anyOf": [
6562
6562
  {
6563
- "$ref": "#/definitions/compositeCondition"
6563
+ "$ref": "#/definitions/singleCondition"
6564
6564
  },
6565
6565
  {
6566
- "$ref": "#/definitions/singleCondition"
6566
+ "$ref": "#/definitions/compositeCondition"
6567
6567
  }
6568
6568
  ]
6569
6569
  },
@@ -6888,10 +6888,10 @@
6888
6888
  "type": "object",
6889
6889
  "anyOf": [
6890
6890
  {
6891
- "$ref": "#"
6891
+ "$ref": "#/definitions/singleCondition"
6892
6892
  },
6893
6893
  {
6894
- "$ref": "#/definitions/singleCondition"
6894
+ "$ref": "#"
6895
6895
  }
6896
6896
  ]
6897
6897
  },
@@ -6966,10 +6966,10 @@
6966
6966
  "type": "object",
6967
6967
  "anyOf": [
6968
6968
  {
6969
- "$ref": "#/definitions/singleCondition"
6969
+ "$ref": "#/definitions/compositeCondition"
6970
6970
  },
6971
6971
  {
6972
- "$ref": "#/definitions/compositeCondition"
6972
+ "$ref": "#/definitions/singleCondition"
6973
6973
  }
6974
6974
  ]
6975
6975
  },
@@ -7520,59 +7520,35 @@
7520
7520
  },
7521
7521
  {
7522
7522
  "properties": {
7523
- "controls": {
7524
- "items": {
7525
- "properties": {
7526
- "label": {
7527
- "$ref": "#/definitions/i18nProperty",
7528
- "fieldDescription": "\n\nText which will appear inside the button\n\n"
7529
- },
7530
- "type": {
7531
- "enum": [
7532
- "button",
7533
- "BUTTON"
7534
- ],
7535
- "type": "string",
7536
- "fieldDescription": "\n\nThe type field must be set to 'button'\n\n"
7537
- },
7538
- "key": {
7539
- "pattern": "^[a-zA-Z0-9-]+$",
7540
- "maxLength": 100,
7541
- "type": "string",
7542
- "fieldDescription": "\n\nA key to identify the control. Keys must only contain alphanumeric characters and dashes, and must be unique\n\n"
7543
- }
7544
- },
7545
- "required": [
7546
- "label",
7547
- "type",
7548
- "key"
7549
- ],
7550
- "additionalProperties": true,
7551
- "shortClassName": "buttonControlBean",
7552
- "type": "object",
7553
- "title": "ButtonControl",
7554
- "description": "\n\nDefines a button which may appear in control extension points such as the property panel\n\n <p><b>Example</b></p>\n\n\n\n\n\n {\n \"type\": \"button\",\n \"label\": {\n \"value\": \"My Custom Control 0\"\n },\n \"key\": \"my-custom-control-0\"\n }\n\n\n"
7555
- },
7556
- "type": "array",
7557
- "fieldDescription": "\n\nControls which will appear in the control group\n\n"
7523
+ "label": {
7524
+ "$ref": "#/definitions/i18nProperty",
7525
+ "fieldDescription": "\n\nText which will appear inside the button\n\n"
7558
7526
  },
7559
7527
  "type": {
7560
7528
  "enum": [
7561
- "group",
7562
- "GROUP"
7529
+ "button",
7530
+ "BUTTON"
7563
7531
  ],
7564
7532
  "type": "string",
7565
- "fieldDescription": "\n\nThe type field must be set to 'group'\n\n"
7533
+ "fieldDescription": "\n\nThe type field must be set to 'button'\n\n"
7534
+ },
7535
+ "key": {
7536
+ "pattern": "^[a-zA-Z0-9-]+$",
7537
+ "maxLength": 100,
7538
+ "type": "string",
7539
+ "fieldDescription": "\n\nA key to identify the control. Keys must only contain alphanumeric characters and dashes, and must be unique\n\n"
7566
7540
  }
7567
7541
  },
7568
7542
  "required": [
7569
- "controls",
7570
- "type"
7543
+ "label",
7544
+ "type",
7545
+ "key"
7571
7546
  ],
7572
- "shortClassName": "controlGroupBean",
7547
+ "additionalProperties": true,
7548
+ "shortClassName": "buttonControlBean",
7573
7549
  "type": "object",
7574
- "title": "ControlGroup",
7575
- "description": "\n\nDefines a ControlGroup which may appear in control extension points such as the property panel\n\n <p><b>Example</b></p>\n\n\n\n\n\n [\n {\n \"type\": \"group\",\n \"controls\": [\n {\n \"type\": \"button\",\n \"label\": {\n \"value\": \"My Custom Control 0\"\n },\n \"key\": \"my-custom-control-0\"\n },\n {\n \"type\": \"button\",\n \"label\": {\n \"value\": \"My Custom Control 1\"\n },\n \"key\": \"my-custom-control-1\"\n }\n ]\n }\n ]\n\n\n"
7550
+ "title": "ButtonControl",
7551
+ "description": "\n\nDefines a button which may appear in control extension points such as the property panel\n\n <p><b>Example</b></p>\n\n\n\n\n\n {\n \"type\": \"button\",\n \"label\": {\n \"value\": \"My Custom Control 0\"\n },\n \"key\": \"my-custom-control-0\"\n }\n\n\n"
7576
7552
  },
7577
7553
  {
7578
7554
  "properties": {
@@ -7608,35 +7584,59 @@
7608
7584
  },
7609
7585
  {
7610
7586
  "properties": {
7611
- "label": {
7612
- "$ref": "#/definitions/i18nProperty",
7613
- "fieldDescription": "\n\nText which will appear inside the button\n\n"
7587
+ "controls": {
7588
+ "items": {
7589
+ "properties": {
7590
+ "label": {
7591
+ "$ref": "#/definitions/i18nProperty",
7592
+ "fieldDescription": "\n\nText which will appear inside the button\n\n"
7593
+ },
7594
+ "type": {
7595
+ "enum": [
7596
+ "button",
7597
+ "BUTTON"
7598
+ ],
7599
+ "type": "string",
7600
+ "fieldDescription": "\n\nThe type field must be set to 'button'\n\n"
7601
+ },
7602
+ "key": {
7603
+ "pattern": "^[a-zA-Z0-9-]+$",
7604
+ "maxLength": 100,
7605
+ "type": "string",
7606
+ "fieldDescription": "\n\nA key to identify the control. Keys must only contain alphanumeric characters and dashes, and must be unique\n\n"
7607
+ }
7608
+ },
7609
+ "required": [
7610
+ "label",
7611
+ "type",
7612
+ "key"
7613
+ ],
7614
+ "additionalProperties": true,
7615
+ "shortClassName": "buttonControlBean",
7616
+ "type": "object",
7617
+ "title": "ButtonControl",
7618
+ "description": "\n\nDefines a button which may appear in control extension points such as the property panel\n\n <p><b>Example</b></p>\n\n\n\n\n\n {\n \"type\": \"button\",\n \"label\": {\n \"value\": \"My Custom Control 0\"\n },\n \"key\": \"my-custom-control-0\"\n }\n\n\n"
7619
+ },
7620
+ "type": "array",
7621
+ "fieldDescription": "\n\nControls which will appear in the control group\n\n"
7614
7622
  },
7615
7623
  "type": {
7616
7624
  "enum": [
7617
- "button",
7618
- "BUTTON"
7625
+ "group",
7626
+ "GROUP"
7619
7627
  ],
7620
7628
  "type": "string",
7621
- "fieldDescription": "\n\nThe type field must be set to 'button'\n\n"
7622
- },
7623
- "key": {
7624
- "pattern": "^[a-zA-Z0-9-]+$",
7625
- "maxLength": 100,
7626
- "type": "string",
7627
- "fieldDescription": "\n\nA key to identify the control. Keys must only contain alphanumeric characters and dashes, and must be unique\n\n"
7629
+ "fieldDescription": "\n\nThe type field must be set to 'group'\n\n"
7628
7630
  }
7629
7631
  },
7630
7632
  "required": [
7631
- "label",
7632
- "type",
7633
- "key"
7633
+ "controls",
7634
+ "type"
7634
7635
  ],
7635
- "additionalProperties": true,
7636
- "shortClassName": "buttonControlBean",
7636
+ "shortClassName": "controlGroupBean",
7637
7637
  "type": "object",
7638
- "title": "ButtonControl",
7639
- "description": "\n\nDefines a button which may appear in control extension points such as the property panel\n\n <p><b>Example</b></p>\n\n\n\n\n\n {\n \"type\": \"button\",\n \"label\": {\n \"value\": \"My Custom Control 0\"\n },\n \"key\": \"my-custom-control-0\"\n }\n\n\n"
7638
+ "title": "ControlGroup",
7639
+ "description": "\n\nDefines a ControlGroup which may appear in control extension points such as the property panel\n\n <p><b>Example</b></p>\n\n\n\n\n\n [\n {\n \"type\": \"group\",\n \"controls\": [\n {\n \"type\": \"button\",\n \"label\": {\n \"value\": \"My Custom Control 0\"\n },\n \"key\": \"my-custom-control-0\"\n },\n {\n \"type\": \"button\",\n \"label\": {\n \"value\": \"My Custom Control 1\"\n },\n \"key\": \"my-custom-control-1\"\n }\n ]\n }\n ]\n\n\n"
7640
7640
  }
7641
7641
  ]
7642
7642
  },
@@ -7936,22 +7936,17 @@
7936
7936
  "controls": {
7937
7937
  "items": {
7938
7938
  "properties": {
7939
- "macroParameterValue": {
7940
- "maxLength": 10000,
7941
- "type": "string",
7942
- "fieldDescription": "\n\nThe value that will be assigned to a macro parameter when this toggle is clicked\n\n"
7943
- },
7944
7939
  "label": {
7945
7940
  "$ref": "#/definitions/i18nProperty",
7946
7941
  "fieldDescription": "\n\nText which will appear inside the button\n\n"
7947
7942
  },
7948
7943
  "type": {
7949
7944
  "enum": [
7950
- "togglebutton",
7951
- "TOGGLEBUTTON"
7945
+ "button",
7946
+ "BUTTON"
7952
7947
  ],
7953
7948
  "type": "string",
7954
- "fieldDescription": "\n\nThe type field must be set to 'togglebutton'\n\n"
7949
+ "fieldDescription": "\n\nThe type field must be set to 'button'\n\n"
7955
7950
  },
7956
7951
  "key": {
7957
7952
  "pattern": "^[a-zA-Z0-9-]+$",
@@ -7961,61 +7956,58 @@
7961
7956
  }
7962
7957
  },
7963
7958
  "required": [
7964
- "macroParameterValue",
7965
7959
  "label",
7966
7960
  "type",
7967
7961
  "key"
7968
7962
  ],
7969
7963
  "additionalProperties": true,
7970
- "shortClassName": "macroToggleButtonControlBean",
7964
+ "shortClassName": "buttonControlBean",
7971
7965
  "type": "object",
7972
- "title": "ToggleButtonControl",
7973
- "description": "\n\nDefines a toggle button which appears inside a ToggleGroup\n\n <p><b>Example</b></p>\n\n\n\n\n\n {\n \"type\": \"togglebutton\",\n \"macroParameterValue\": \"macroParameterValue 0\",\n \"label\": {\n \"value\": \"My Custom Control 0\"\n },\n \"key\": \"my-custom-toggle-button-0\"\n }\n\n\n"
7966
+ "title": "ButtonControl",
7967
+ "description": "\n\nDefines a button which may appear in control extension points such as the property panel\n\n <p><b>Example</b></p>\n\n\n\n\n\n {\n \"type\": \"button\",\n \"label\": {\n \"value\": \"My Custom Control 0\"\n },\n \"key\": \"my-custom-control-0\"\n }\n\n\n"
7974
7968
  },
7975
7969
  "type": "array",
7976
- "fieldDescription": "\n\nToggle buttons which will appear in the toggle group\n\n"
7977
- },
7978
- "macroParameter": {
7979
- "pattern": "[-_a-z0-9\\.]+",
7980
- "maxLength": 100,
7981
- "type": "string",
7982
- "fieldDescription": "\n\nThe macro parameter identifier used to store the toggle state.\n It must only contain lowercase alphanumeric characters, dashes, underscores, dots and must not contain any spaces.\n\n"
7970
+ "fieldDescription": "\n\nControls which will appear in the control group\n\n"
7983
7971
  },
7984
7972
  "type": {
7985
7973
  "enum": [
7986
- "togglegroup",
7987
- "TOGGLEGROUP"
7974
+ "group",
7975
+ "GROUP"
7988
7976
  ],
7989
7977
  "type": "string",
7990
- "fieldDescription": "\n\nThe type field must be set to 'togglegroup'\n\n"
7978
+ "fieldDescription": "\n\nThe type field must be set to 'group'\n\n"
7991
7979
  }
7992
7980
  },
7993
7981
  "required": [
7994
7982
  "controls",
7995
- "macroParameter",
7996
7983
  "type"
7997
7984
  ],
7998
- "shortClassName": "macroToggleGroupBean",
7985
+ "shortClassName": "controlGroupBean",
7999
7986
  "type": "object",
8000
- "title": "ToggleGroup",
8001
- "description": "\n\nDefines a ToggleGroup which may appear in control extension points such as the property panel\n\n <p><b>Example</b></p>\n\n\n\n\n\n [\n {\n \"type\": \"togglegroup\",\n \"macroParameter\": \"toggleGroupMacroParameter\",\n \"controls\": [\n {\n \"type\": \"togglebutton\",\n \"macroParameterValue\": \"macroParameterValue 0\",\n \"label\": {\n \"value\": \"My Custom Control 0\"\n },\n \"key\": \"my-custom-toggle-button-0\"\n },\n {\n \"type\": \"togglebutton\",\n \"macroParameterValue\": \"macroParameterValue 1\",\n \"label\": {\n \"value\": \"My Custom Control 1\"\n },\n \"key\": \"my-custom-toggle-button-1\"\n }\n ]\n }\n ]\n\n\n"
7987
+ "title": "ControlGroup",
7988
+ "description": "\n\nDefines a ControlGroup which may appear in control extension points such as the property panel\n\n <p><b>Example</b></p>\n\n\n\n\n\n [\n {\n \"type\": \"group\",\n \"controls\": [\n {\n \"type\": \"button\",\n \"label\": {\n \"value\": \"My Custom Control 0\"\n },\n \"key\": \"my-custom-control-0\"\n },\n {\n \"type\": \"button\",\n \"label\": {\n \"value\": \"My Custom Control 1\"\n },\n \"key\": \"my-custom-control-1\"\n }\n ]\n }\n ]\n\n\n"
8002
7989
  },
8003
7990
  {
8004
7991
  "properties": {
8005
7992
  "controls": {
8006
7993
  "items": {
8007
7994
  "properties": {
7995
+ "macroParameterValue": {
7996
+ "maxLength": 10000,
7997
+ "type": "string",
7998
+ "fieldDescription": "\n\nThe value that will be assigned to a macro parameter when this toggle is clicked\n\n"
7999
+ },
8008
8000
  "label": {
8009
8001
  "$ref": "#/definitions/i18nProperty",
8010
8002
  "fieldDescription": "\n\nText which will appear inside the button\n\n"
8011
8003
  },
8012
8004
  "type": {
8013
8005
  "enum": [
8014
- "button",
8015
- "BUTTON"
8006
+ "togglebutton",
8007
+ "TOGGLEBUTTON"
8016
8008
  ],
8017
8009
  "type": "string",
8018
- "fieldDescription": "\n\nThe type field must be set to 'button'\n\n"
8010
+ "fieldDescription": "\n\nThe type field must be set to 'togglebutton'\n\n"
8019
8011
  },
8020
8012
  "key": {
8021
8013
  "pattern": "^[a-zA-Z0-9-]+$",
@@ -8025,36 +8017,44 @@
8025
8017
  }
8026
8018
  },
8027
8019
  "required": [
8020
+ "macroParameterValue",
8028
8021
  "label",
8029
8022
  "type",
8030
8023
  "key"
8031
8024
  ],
8032
8025
  "additionalProperties": true,
8033
- "shortClassName": "buttonControlBean",
8026
+ "shortClassName": "macroToggleButtonControlBean",
8034
8027
  "type": "object",
8035
- "title": "ButtonControl",
8036
- "description": "\n\nDefines a button which may appear in control extension points such as the property panel\n\n <p><b>Example</b></p>\n\n\n\n\n\n {\n \"type\": \"button\",\n \"label\": {\n \"value\": \"My Custom Control 0\"\n },\n \"key\": \"my-custom-control-0\"\n }\n\n\n"
8028
+ "title": "ToggleButtonControl",
8029
+ "description": "\n\nDefines a toggle button which appears inside a ToggleGroup\n\n <p><b>Example</b></p>\n\n\n\n\n\n {\n \"type\": \"togglebutton\",\n \"macroParameterValue\": \"macroParameterValue 0\",\n \"label\": {\n \"value\": \"My Custom Control 0\"\n },\n \"key\": \"my-custom-toggle-button-0\"\n }\n\n\n"
8037
8030
  },
8038
8031
  "type": "array",
8039
- "fieldDescription": "\n\nControls which will appear in the control group\n\n"
8032
+ "fieldDescription": "\n\nToggle buttons which will appear in the toggle group\n\n"
8033
+ },
8034
+ "macroParameter": {
8035
+ "pattern": "[-_a-z0-9\\.]+",
8036
+ "maxLength": 100,
8037
+ "type": "string",
8038
+ "fieldDescription": "\n\nThe macro parameter identifier used to store the toggle state.\n It must only contain lowercase alphanumeric characters, dashes, underscores, dots and must not contain any spaces.\n\n"
8040
8039
  },
8041
8040
  "type": {
8042
8041
  "enum": [
8043
- "group",
8044
- "GROUP"
8042
+ "togglegroup",
8043
+ "TOGGLEGROUP"
8045
8044
  ],
8046
8045
  "type": "string",
8047
- "fieldDescription": "\n\nThe type field must be set to 'group'\n\n"
8046
+ "fieldDescription": "\n\nThe type field must be set to 'togglegroup'\n\n"
8048
8047
  }
8049
8048
  },
8050
8049
  "required": [
8051
8050
  "controls",
8051
+ "macroParameter",
8052
8052
  "type"
8053
8053
  ],
8054
- "shortClassName": "controlGroupBean",
8054
+ "shortClassName": "macroToggleGroupBean",
8055
8055
  "type": "object",
8056
- "title": "ControlGroup",
8057
- "description": "\n\nDefines a ControlGroup which may appear in control extension points such as the property panel\n\n <p><b>Example</b></p>\n\n\n\n\n\n [\n {\n \"type\": \"group\",\n \"controls\": [\n {\n \"type\": \"button\",\n \"label\": {\n \"value\": \"My Custom Control 0\"\n },\n \"key\": \"my-custom-control-0\"\n },\n {\n \"type\": \"button\",\n \"label\": {\n \"value\": \"My Custom Control 1\"\n },\n \"key\": \"my-custom-control-1\"\n }\n ]\n }\n ]\n\n\n"
8056
+ "title": "ToggleGroup",
8057
+ "description": "\n\nDefines a ToggleGroup which may appear in control extension points such as the property panel\n\n <p><b>Example</b></p>\n\n\n\n\n\n [\n {\n \"type\": \"togglegroup\",\n \"macroParameter\": \"toggleGroupMacroParameter\",\n \"controls\": [\n {\n \"type\": \"togglebutton\",\n \"macroParameterValue\": \"macroParameterValue 0\",\n \"label\": {\n \"value\": \"My Custom Control 0\"\n },\n \"key\": \"my-custom-toggle-button-0\"\n },\n {\n \"type\": \"togglebutton\",\n \"macroParameterValue\": \"macroParameterValue 1\",\n \"label\": {\n \"value\": \"My Custom Control 1\"\n },\n \"key\": \"my-custom-toggle-button-1\"\n }\n ]\n }\n ]\n\n\n"
8058
8058
  },
8059
8059
  {
8060
8060
  "properties": {
@@ -8321,10 +8321,10 @@
8321
8321
  "type": "object",
8322
8322
  "anyOf": [
8323
8323
  {
8324
- "$ref": "#/definitions/singleCondition"
8324
+ "$ref": "#/definitions/compositeCondition"
8325
8325
  },
8326
8326
  {
8327
- "$ref": "#/definitions/compositeCondition"
8327
+ "$ref": "#/definitions/singleCondition"
8328
8328
  }
8329
8329
  ]
8330
8330
  },
@@ -8354,6 +8354,51 @@
8354
8354
  "type": "object",
8355
8355
  "fieldDescription": "\n\n<p>An object containing options which vary based on the type of web item target you are implementing.</p>\n\n <p>Currently-allowed options are:</p>\n <ul>\n <li><a href=\"../inline-dialog-options/\">Inline Dialog Options</a> when type is \"inlinedialog\", and</li>\n <li><a href=\"../dialog-options/\">Dialog Options</a> when type is \"dialog\"</li>\n <li><a href=\"../dialog-module-options/\">Dialog Module Options</a> when type is \"dialogmodule\"</li>\n </ul>\n\n",
8356
8356
  "anyOf": [
8357
+ {
8358
+ "properties": {
8359
+ "size": {
8360
+ "enum": [
8361
+ "small",
8362
+ "SMALL",
8363
+ "medium",
8364
+ "MEDIUM",
8365
+ "large",
8366
+ "LARGE",
8367
+ "x-large",
8368
+ "X-LARGE",
8369
+ "fullscreen",
8370
+ "FULLSCREEN",
8371
+ "maximum",
8372
+ "MAXIMUM"
8373
+ ],
8374
+ "type": "string",
8375
+ "fieldDescription": "\n\nSets the size of the dialog.\n\n <p>\n This option is used instead of the 'height' and 'width' options.\n </p>\n\n"
8376
+ },
8377
+ "chrome": {
8378
+ "type": "boolean",
8379
+ "fieldDescription": "\n\nWhether the dialog should contain the AUI header and buttons.\n\n",
8380
+ "defaultValue": "true"
8381
+ },
8382
+ "width": {
8383
+ "maxLength": 10,
8384
+ "type": "string",
8385
+ "fieldDescription": "\n\nSets how wide the dialog is in pixels.\n\n"
8386
+ },
8387
+ "header": {
8388
+ "$ref": "#/definitions/i18nProperty",
8389
+ "fieldDescription": "\n\nThe header text for the dialog, if chrome is enabled.\n\n"
8390
+ },
8391
+ "height": {
8392
+ "maxLength": 10,
8393
+ "type": "string",
8394
+ "fieldDescription": "\n\nSets how high the dialog is in pixels\n\n"
8395
+ }
8396
+ },
8397
+ "shortClassName": "dialogOptions",
8398
+ "type": "object",
8399
+ "title": "Dialog Options",
8400
+ "description": "\n\nOptions for a modal dialog <a href=\"../web-item-target/\">web item target</a> or <a href=\"../dialog/\">common module</a>.\n\n <p>\n These options are a subset of those available via the <a href=\"../../jsapi/dialog/\">JavaScript API</a>.\n </p>\n\n <h2>Web Item Example</h2>\n\n\n\n\n\n {\n \"target\": {\n \"type\": \"dialog\",\n \"options\": {\n \"height\": \"100px\",\n \"width\": \"200px\"\n }\n }\n }\n\n\n\n\n <h2>Dialog Example</h2>\n\n\n\n\n\n {\n \"modules\": {\n \"dialogs\": [\n {\n \"url\": \"/my-dialog-content\",\n \"options\": {\n \"size\": \"fullscreen\",\n \"header\": {\n \"value\": \"Example Dialog\"\n }\n },\n \"key\": \"dialog-module-key\"\n }\n ]\n }\n }\n\n\n"
8401
+ },
8357
8402
  {
8358
8403
  "properties": {
8359
8404
  "offsetX": {
@@ -8416,51 +8461,6 @@
8416
8461
  "type": "object",
8417
8462
  "title": "Dialog Module Options",
8418
8463
  "description": "\n\nOptions for a web-item targeting a common <a href=\"../dialog/\">dialog module</a>.\n\n <h3>Example</h3>\n\n\n\n\n\n {\n \"target\": {\n \"type\": \"dialogmodule\",\n \"options\": {\n \"key\": \"dialog-module-key\"\n }\n }\n }\n\n\n"
8419
- },
8420
- {
8421
- "properties": {
8422
- "size": {
8423
- "enum": [
8424
- "small",
8425
- "SMALL",
8426
- "medium",
8427
- "MEDIUM",
8428
- "large",
8429
- "LARGE",
8430
- "x-large",
8431
- "X-LARGE",
8432
- "fullscreen",
8433
- "FULLSCREEN",
8434
- "maximum",
8435
- "MAXIMUM"
8436
- ],
8437
- "type": "string",
8438
- "fieldDescription": "\n\nSets the size of the dialog.\n\n <p>\n This option is used instead of the 'height' and 'width' options.\n </p>\n\n"
8439
- },
8440
- "chrome": {
8441
- "type": "boolean",
8442
- "fieldDescription": "\n\nWhether the dialog should contain the AUI header and buttons.\n\n",
8443
- "defaultValue": "true"
8444
- },
8445
- "width": {
8446
- "maxLength": 10,
8447
- "type": "string",
8448
- "fieldDescription": "\n\nSets how wide the dialog is in pixels.\n\n"
8449
- },
8450
- "header": {
8451
- "$ref": "#/definitions/i18nProperty",
8452
- "fieldDescription": "\n\nThe header text for the dialog, if chrome is enabled.\n\n"
8453
- },
8454
- "height": {
8455
- "maxLength": 10,
8456
- "type": "string",
8457
- "fieldDescription": "\n\nSets how high the dialog is in pixels\n\n"
8458
- }
8459
- },
8460
- "shortClassName": "dialogOptions",
8461
- "type": "object",
8462
- "title": "Dialog Options",
8463
- "description": "\n\nOptions for a modal dialog <a href=\"../web-item-target/\">web item target</a> or <a href=\"../dialog/\">common module</a>.\n\n <p>\n These options are a subset of those available via the <a href=\"../../jsapi/dialog/\">JavaScript API</a>.\n </p>\n\n <h2>Web Item Example</h2>\n\n\n\n\n\n {\n \"target\": {\n \"type\": \"dialog\",\n \"options\": {\n \"height\": \"100px\",\n \"width\": \"200px\"\n }\n }\n }\n\n\n\n\n <h2>Dialog Example</h2>\n\n\n\n\n\n {\n \"modules\": {\n \"dialogs\": [\n {\n \"url\": \"/my-dialog-content\",\n \"options\": {\n \"size\": \"fullscreen\",\n \"header\": {\n \"value\": \"Example Dialog\"\n }\n },\n \"key\": \"dialog-module-key\"\n }\n ]\n }\n }\n\n\n"
8464
8464
  }
8465
8465
  ]
8466
8466
  },
@@ -8687,8 +8687,25 @@
8687
8687
  },
8688
8688
  "client": {
8689
8689
  "items": {
8690
- "type": "string",
8691
- "maxLength": 1000
8690
+ "oneOf": [
8691
+ {
8692
+ "type": "string",
8693
+ "maxLength": 1000
8694
+ },
8695
+ {
8696
+ "type": "object",
8697
+ "description": "References a Remote",
8698
+ "title": "remote",
8699
+ "properties": {
8700
+ "remote": {
8701
+ "type": "string",
8702
+ "maxLength": 1000
8703
+ }
8704
+ },
8705
+ "required": ["remote"],
8706
+ "additionalProperties": false
8707
+ }
8708
+ ]
8692
8709
  },
8693
8710
  "title": "client",
8694
8711
  "type": "array",
@@ -72,7 +72,7 @@ export type Scopes = string[];
72
72
  export type Scripts = string[];
73
73
  export type Styles = 'unsafe-inline'[];
74
74
  export type Backend = (string | Remote)[];
75
- export type Client = string[];
75
+ export type Client = (string | Remote1)[];
76
76
  export type Fonts = string[];
77
77
  export type Frames = string[];
78
78
  export type Navigation = string[];
@@ -2967,7 +2967,7 @@ export interface Modules {
2967
2967
  fullPage?: boolean;
2968
2968
  cacheable?: boolean;
2969
2969
  location?: string;
2970
- conditions?: (SingleCondition | CompositeCondition)[];
2970
+ conditions?: (CompositeCondition | SingleCondition)[];
2971
2971
  params?: {
2972
2972
  [k: string]: unknown;
2973
2973
  };
@@ -2982,7 +2982,7 @@ export interface Modules {
2982
2982
  fullPage?: boolean;
2983
2983
  cacheable?: boolean;
2984
2984
  location?: string;
2985
- conditions?: (SingleCondition | CompositeCondition)[];
2985
+ conditions?: (CompositeCondition | SingleCondition)[];
2986
2986
  params?: {
2987
2987
  [k: string]: unknown;
2988
2988
  };
@@ -3030,7 +3030,7 @@ export interface Modules {
3030
3030
  filter?: string;
3031
3031
  excludeBody?: boolean;
3032
3032
  event?: string;
3033
- conditions?: (CompositeCondition | SingleCondition)[];
3033
+ conditions?: (SingleCondition | CompositeCondition)[];
3034
3034
  propertyKeys?: string[];
3035
3035
  url?: string;
3036
3036
  key: ModuleKeySchema;
@@ -3040,7 +3040,7 @@ export interface Modules {
3040
3040
  filter?: string;
3041
3041
  excludeBody?: boolean;
3042
3042
  event?: string;
3043
- conditions?: (CompositeCondition | SingleCondition)[];
3043
+ conditions?: (SingleCondition | CompositeCondition)[];
3044
3044
  propertyKeys?: string[];
3045
3045
  url?: string;
3046
3046
  key: ModuleKeySchema;
@@ -3083,7 +3083,7 @@ export interface Modules {
3083
3083
  name?: I18NProperty55;
3084
3084
  weight?: number;
3085
3085
  location?: string;
3086
- conditions?: (CompositeCondition | SingleCondition)[];
3086
+ conditions?: (SingleCondition | CompositeCondition)[];
3087
3087
  params?: {
3088
3088
  [k: string]: unknown;
3089
3089
  };
@@ -3095,7 +3095,7 @@ export interface Modules {
3095
3095
  name?: I18NProperty55;
3096
3096
  weight?: number;
3097
3097
  location?: string;
3098
- conditions?: (CompositeCondition | SingleCondition)[];
3098
+ conditions?: (SingleCondition | CompositeCondition)[];
3099
3099
  params?: {
3100
3100
  [k: string]: unknown;
3101
3101
  };
@@ -3179,7 +3179,7 @@ export interface Modules {
3179
3179
  fullPage?: boolean;
3180
3180
  cacheable?: boolean;
3181
3181
  location?: string;
3182
- conditions?: (SingleCondition | CompositeCondition)[];
3182
+ conditions?: (CompositeCondition | SingleCondition)[];
3183
3183
  params?: {
3184
3184
  [k: string]: unknown;
3185
3185
  };
@@ -3194,7 +3194,7 @@ export interface Modules {
3194
3194
  fullPage?: boolean;
3195
3195
  cacheable?: boolean;
3196
3196
  location?: string;
3197
- conditions?: (SingleCondition | CompositeCondition)[];
3197
+ conditions?: (CompositeCondition | SingleCondition)[];
3198
3198
  params?: {
3199
3199
  [k: string]: unknown;
3200
3200
  };
@@ -3452,7 +3452,7 @@ export interface Modules {
3452
3452
  icon?: Icon18;
3453
3453
  name?: I18NProperty91;
3454
3454
  cacheable?: boolean;
3455
- conditions?: (SingleCondition | CompositeCondition)[];
3455
+ conditions?: (CompositeCondition | SingleCondition)[];
3456
3456
  params?: {
3457
3457
  [k: string]: unknown;
3458
3458
  };
@@ -3468,7 +3468,7 @@ export interface Modules {
3468
3468
  icon?: Icon18;
3469
3469
  name?: I18NProperty91;
3470
3470
  cacheable?: boolean;
3471
- conditions?: (SingleCondition | CompositeCondition)[];
3471
+ conditions?: (CompositeCondition | SingleCondition)[];
3472
3472
  params?: {
3473
3473
  [k: string]: unknown;
3474
3474
  };
@@ -6653,7 +6653,7 @@ export interface SingleCondition4 {
6653
6653
  *
6654
6654
  */
6655
6655
  export interface CompositeCondition6 {
6656
- conditions?: (ManifestSchema | SingleCondition)[];
6656
+ conditions?: (SingleCondition | ManifestSchema)[];
6657
6657
  type?: 'and' | 'AND' | 'or' | 'OR';
6658
6658
  [k: string]: unknown;
6659
6659
  }
@@ -8502,7 +8502,7 @@ export interface I18NProperty74 {
8502
8502
  *
8503
8503
  */
8504
8504
  export interface MacroPropertyPanel {
8505
- controls?: (ToggleGroup | ControlGroup | TextControl | ButtonControl1)[];
8505
+ controls?: (ToggleGroup | ButtonControl | TextControl | ControlGroup)[];
8506
8506
  cacheable?: boolean;
8507
8507
  url: string;
8508
8508
  [k: string]: unknown;
@@ -8606,47 +8606,6 @@ export interface I18NProperty75 {
8606
8606
  i18n?: string;
8607
8607
  [k: string]: unknown;
8608
8608
  }
8609
- /**
8610
- *
8611
- *
8612
- * Defines a ControlGroup which may appear in control extension points such as the property panel
8613
- *
8614
- * <p><b>Example</b></p>
8615
- *
8616
- *
8617
- *
8618
- *
8619
- *
8620
- * [
8621
- * {
8622
- * "type": "group",
8623
- * "controls": [
8624
- * {
8625
- * "type": "button",
8626
- * "label": {
8627
- * "value": "My Custom Control 0"
8628
- * },
8629
- * "key": "my-custom-control-0"
8630
- * },
8631
- * {
8632
- * "type": "button",
8633
- * "label": {
8634
- * "value": "My Custom Control 1"
8635
- * },
8636
- * "key": "my-custom-control-1"
8637
- * }
8638
- * ]
8639
- * }
8640
- * ]
8641
- *
8642
- *
8643
- *
8644
- */
8645
- export interface ControlGroup {
8646
- controls: ButtonControl[];
8647
- type: 'group' | 'GROUP';
8648
- [k: string]: unknown;
8649
- }
8650
8609
  /**
8651
8610
  *
8652
8611
  *
@@ -8727,6 +8686,47 @@ export interface TextControl {
8727
8686
  key: string;
8728
8687
  [k: string]: unknown;
8729
8688
  }
8689
+ /**
8690
+ *
8691
+ *
8692
+ * Defines a ControlGroup which may appear in control extension points such as the property panel
8693
+ *
8694
+ * <p><b>Example</b></p>
8695
+ *
8696
+ *
8697
+ *
8698
+ *
8699
+ *
8700
+ * [
8701
+ * {
8702
+ * "type": "group",
8703
+ * "controls": [
8704
+ * {
8705
+ * "type": "button",
8706
+ * "label": {
8707
+ * "value": "My Custom Control 0"
8708
+ * },
8709
+ * "key": "my-custom-control-0"
8710
+ * },
8711
+ * {
8712
+ * "type": "button",
8713
+ * "label": {
8714
+ * "value": "My Custom Control 1"
8715
+ * },
8716
+ * "key": "my-custom-control-1"
8717
+ * }
8718
+ * ]
8719
+ * }
8720
+ * ]
8721
+ *
8722
+ *
8723
+ *
8724
+ */
8725
+ export interface ControlGroup {
8726
+ controls: ButtonControl1[];
8727
+ type: 'group' | 'GROUP';
8728
+ [k: string]: unknown;
8729
+ }
8730
8730
  /**
8731
8731
  *
8732
8732
  *
@@ -29747,7 +29747,7 @@ export interface I18NProperty83 {
29747
29747
  *
29748
29748
  */
29749
29749
  export interface MacroPropertyPanel1 {
29750
- controls?: (ToggleGroup1 | ControlGroup1 | TextControl1 | ButtonControl3)[];
29750
+ controls?: (ControlGroup1 | ToggleGroup1 | TextControl1 | ButtonControl3)[];
29751
29751
  cacheable?: boolean;
29752
29752
  url: string;
29753
29753
  [k: string]: unknown;
@@ -29755,7 +29755,7 @@ export interface MacroPropertyPanel1 {
29755
29755
  /**
29756
29756
  *
29757
29757
  *
29758
- * Defines a ToggleGroup which may appear in control extension points such as the property panel
29758
+ * Defines a ControlGroup which may appear in control extension points such as the property panel
29759
29759
  *
29760
29760
  * <p><b>Example</b></p>
29761
29761
  *
@@ -29765,24 +29765,21 @@ export interface MacroPropertyPanel1 {
29765
29765
  *
29766
29766
  * [
29767
29767
  * {
29768
- * "type": "togglegroup",
29769
- * "macroParameter": "toggleGroupMacroParameter",
29768
+ * "type": "group",
29770
29769
  * "controls": [
29771
29770
  * {
29772
- * "type": "togglebutton",
29773
- * "macroParameterValue": "macroParameterValue 0",
29771
+ * "type": "button",
29774
29772
  * "label": {
29775
29773
  * "value": "My Custom Control 0"
29776
29774
  * },
29777
- * "key": "my-custom-toggle-button-0"
29775
+ * "key": "my-custom-control-0"
29778
29776
  * },
29779
29777
  * {
29780
- * "type": "togglebutton",
29781
- * "macroParameterValue": "macroParameterValue 1",
29778
+ * "type": "button",
29782
29779
  * "label": {
29783
29780
  * "value": "My Custom Control 1"
29784
29781
  * },
29785
- * "key": "my-custom-toggle-button-1"
29782
+ * "key": "my-custom-control-1"
29786
29783
  * }
29787
29784
  * ]
29788
29785
  * }
@@ -29791,16 +29788,15 @@ export interface MacroPropertyPanel1 {
29791
29788
  *
29792
29789
  *
29793
29790
  */
29794
- export interface ToggleGroup1 {
29795
- controls: ToggleButtonControl1[];
29796
- macroParameter: string;
29797
- type: 'togglegroup' | 'TOGGLEGROUP';
29791
+ export interface ControlGroup1 {
29792
+ controls: ButtonControl2[];
29793
+ type: 'group' | 'GROUP';
29798
29794
  [k: string]: unknown;
29799
29795
  }
29800
29796
  /**
29801
29797
  *
29802
29798
  *
29803
- * Defines a toggle button which appears inside a ToggleGroup
29799
+ * Defines a button which may appear in control extension points such as the property panel
29804
29800
  *
29805
29801
  * <p><b>Example</b></p>
29806
29802
  *
@@ -29809,21 +29805,19 @@ export interface ToggleGroup1 {
29809
29805
  *
29810
29806
  *
29811
29807
  * {
29812
- * "type": "togglebutton",
29813
- * "macroParameterValue": "macroParameterValue 0",
29808
+ * "type": "button",
29814
29809
  * "label": {
29815
29810
  * "value": "My Custom Control 0"
29816
29811
  * },
29817
- * "key": "my-custom-toggle-button-0"
29812
+ * "key": "my-custom-control-0"
29818
29813
  * }
29819
29814
  *
29820
29815
  *
29821
29816
  *
29822
29817
  */
29823
- export interface ToggleButtonControl1 {
29824
- macroParameterValue: string;
29818
+ export interface ButtonControl2 {
29825
29819
  label: I18NProperty84;
29826
- type: 'togglebutton' | 'TOGGLEBUTTON';
29820
+ type: 'button' | 'BUTTON';
29827
29821
  key: string;
29828
29822
  [k: string]: unknown;
29829
29823
  }
@@ -29854,7 +29848,7 @@ export interface I18NProperty84 {
29854
29848
  /**
29855
29849
  *
29856
29850
  *
29857
- * Defines a ControlGroup which may appear in control extension points such as the property panel
29851
+ * Defines a ToggleGroup which may appear in control extension points such as the property panel
29858
29852
  *
29859
29853
  * <p><b>Example</b></p>
29860
29854
  *
@@ -29864,21 +29858,24 @@ export interface I18NProperty84 {
29864
29858
  *
29865
29859
  * [
29866
29860
  * {
29867
- * "type": "group",
29861
+ * "type": "togglegroup",
29862
+ * "macroParameter": "toggleGroupMacroParameter",
29868
29863
  * "controls": [
29869
29864
  * {
29870
- * "type": "button",
29865
+ * "type": "togglebutton",
29866
+ * "macroParameterValue": "macroParameterValue 0",
29871
29867
  * "label": {
29872
29868
  * "value": "My Custom Control 0"
29873
29869
  * },
29874
- * "key": "my-custom-control-0"
29870
+ * "key": "my-custom-toggle-button-0"
29875
29871
  * },
29876
29872
  * {
29877
- * "type": "button",
29873
+ * "type": "togglebutton",
29874
+ * "macroParameterValue": "macroParameterValue 1",
29878
29875
  * "label": {
29879
29876
  * "value": "My Custom Control 1"
29880
29877
  * },
29881
- * "key": "my-custom-control-1"
29878
+ * "key": "my-custom-toggle-button-1"
29882
29879
  * }
29883
29880
  * ]
29884
29881
  * }
@@ -29887,15 +29884,16 @@ export interface I18NProperty84 {
29887
29884
  *
29888
29885
  *
29889
29886
  */
29890
- export interface ControlGroup1 {
29891
- controls: ButtonControl2[];
29892
- type: 'group' | 'GROUP';
29887
+ export interface ToggleGroup1 {
29888
+ controls: ToggleButtonControl1[];
29889
+ macroParameter: string;
29890
+ type: 'togglegroup' | 'TOGGLEGROUP';
29893
29891
  [k: string]: unknown;
29894
29892
  }
29895
29893
  /**
29896
29894
  *
29897
29895
  *
29898
- * Defines a button which may appear in control extension points such as the property panel
29896
+ * Defines a toggle button which appears inside a ToggleGroup
29899
29897
  *
29900
29898
  * <p><b>Example</b></p>
29901
29899
  *
@@ -29904,19 +29902,21 @@ export interface ControlGroup1 {
29904
29902
  *
29905
29903
  *
29906
29904
  * {
29907
- * "type": "button",
29905
+ * "type": "togglebutton",
29906
+ * "macroParameterValue": "macroParameterValue 0",
29908
29907
  * "label": {
29909
29908
  * "value": "My Custom Control 0"
29910
29909
  * },
29911
- * "key": "my-custom-control-0"
29910
+ * "key": "my-custom-toggle-button-0"
29912
29911
  * }
29913
29912
  *
29914
29913
  *
29915
29914
  *
29916
29915
  */
29917
- export interface ButtonControl2 {
29916
+ export interface ToggleButtonControl1 {
29917
+ macroParameterValue: string;
29918
29918
  label: I18NProperty85;
29919
- type: 'button' | 'BUTTON';
29919
+ type: 'togglebutton' | 'TOGGLEBUTTON';
29920
29920
  key: string;
29921
29921
  [k: string]: unknown;
29922
29922
  }
@@ -50873,74 +50873,10 @@ export interface I18NProperty91 {
50873
50873
  *
50874
50874
  */
50875
50875
  export interface WebItemTarget2 {
50876
- options?: InlineDialogOptions2 | DialogModuleOptions2 | DialogOptions4;
50876
+ options?: DialogOptions4 | InlineDialogOptions2 | DialogModuleOptions2;
50877
50877
  type?: 'page' | 'PAGE' | 'dialog' | 'DIALOG' | 'inlinedialog' | 'INLINEDIALOG' | 'dialogmodule' | 'DIALOGMODULE';
50878
50878
  [k: string]: unknown;
50879
50879
  }
50880
- /**
50881
- *
50882
- *
50883
- * Options for an inline dialog target
50884
- *
50885
- * <h3>Example</h3>
50886
- *
50887
- *
50888
- *
50889
- *
50890
- *
50891
- * {
50892
- * "target": {
50893
- * "type": "inlinedialog",
50894
- * "options": {
50895
- * "onHover": true,
50896
- * "offsetX": "30px",
50897
- * "offsetY": "20px"
50898
- * }
50899
- * }
50900
- * }
50901
- *
50902
- *
50903
- *
50904
- */
50905
- export interface InlineDialogOptions2 {
50906
- offsetX?: string;
50907
- offsetY?: string;
50908
- width?: string;
50909
- onTop?: boolean;
50910
- showDelay?: number;
50911
- closeOthers?: boolean;
50912
- persistent?: boolean;
50913
- onHover?: boolean;
50914
- isRelativeToMouse?: boolean;
50915
- [k: string]: unknown;
50916
- }
50917
- /**
50918
- *
50919
- *
50920
- * Options for a web-item targeting a common <a href="../dialog/">dialog module</a>.
50921
- *
50922
- * <h3>Example</h3>
50923
- *
50924
- *
50925
- *
50926
- *
50927
- *
50928
- * {
50929
- * "target": {
50930
- * "type": "dialogmodule",
50931
- * "options": {
50932
- * "key": "dialog-module-key"
50933
- * }
50934
- * }
50935
- * }
50936
- *
50937
- *
50938
- *
50939
- */
50940
- export interface DialogModuleOptions2 {
50941
- key: string;
50942
- [k: string]: unknown;
50943
- }
50944
50880
  /**
50945
50881
  *
50946
50882
  *
@@ -51039,6 +50975,70 @@ export interface I18NProperty92 {
51039
50975
  i18n?: string;
51040
50976
  [k: string]: unknown;
51041
50977
  }
50978
+ /**
50979
+ *
50980
+ *
50981
+ * Options for an inline dialog target
50982
+ *
50983
+ * <h3>Example</h3>
50984
+ *
50985
+ *
50986
+ *
50987
+ *
50988
+ *
50989
+ * {
50990
+ * "target": {
50991
+ * "type": "inlinedialog",
50992
+ * "options": {
50993
+ * "onHover": true,
50994
+ * "offsetX": "30px",
50995
+ * "offsetY": "20px"
50996
+ * }
50997
+ * }
50998
+ * }
50999
+ *
51000
+ *
51001
+ *
51002
+ */
51003
+ export interface InlineDialogOptions2 {
51004
+ offsetX?: string;
51005
+ offsetY?: string;
51006
+ width?: string;
51007
+ onTop?: boolean;
51008
+ showDelay?: number;
51009
+ closeOthers?: boolean;
51010
+ persistent?: boolean;
51011
+ onHover?: boolean;
51012
+ isRelativeToMouse?: boolean;
51013
+ [k: string]: unknown;
51014
+ }
51015
+ /**
51016
+ *
51017
+ *
51018
+ * Options for a web-item targeting a common <a href="../dialog/">dialog module</a>.
51019
+ *
51020
+ * <h3>Example</h3>
51021
+ *
51022
+ *
51023
+ *
51024
+ *
51025
+ *
51026
+ * {
51027
+ * "target": {
51028
+ * "type": "dialogmodule",
51029
+ * "options": {
51030
+ * "key": "dialog-module-key"
51031
+ * }
51032
+ * }
51033
+ * }
51034
+ *
51035
+ *
51036
+ *
51037
+ */
51038
+ export interface DialogModuleOptions2 {
51039
+ key: string;
51040
+ [k: string]: unknown;
51041
+ }
51042
51042
  /**
51043
51043
  *
51044
51044
  *
@@ -51825,6 +51825,12 @@ export interface Fetch {
51825
51825
  export interface Remote {
51826
51826
  remote: string;
51827
51827
  }
51828
+ /**
51829
+ * References a Remote
51830
+ */
51831
+ export interface Remote1 {
51832
+ remote: string;
51833
+ }
51828
51834
  export interface HostedResourcesSchema {
51829
51835
  /**
51830
51836
  * A key for the resource, which other modules can refer to. Must be unique within the manifest and have a maximum of 23 characters.
@@ -1 +1 @@
1
- {"version":3,"file":"permissions-validator.d.ts","sourceRoot":"","sources":["../../src/validators/permissions-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAmB,MAAM,UAAU,CAAC;AAGrF,OAAO,EAAE,cAAc,EAAU,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAK3D,qBAAa,oBACX,YAAW,kBAAkB,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,EAAE,cAAc,CAAC;IACzF,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,GAAG,wBAAwB,CAAC,cAAc,CAAC;CAwHzG"}
1
+ {"version":3,"file":"permissions-validator.d.ts","sourceRoot":"","sources":["../../src/validators/permissions-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAmB,MAAM,UAAU,CAAC;AAGrF,OAAO,EAAE,cAAc,EAAU,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAK3D,qBAAa,oBACX,YAAW,kBAAkB,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,EAAE,cAAc,CAAC;IACzF,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,GAAG,wBAAwB,CAAC,cAAc,CAAC;CAiIzG"}
@@ -9,7 +9,7 @@ const url_1 = require("url");
9
9
  const shipyard_scopes_json_1 = tslib_1.__importDefault(require("../scopes/shipyard-scopes.json"));
10
10
  class PermissionsValidator {
11
11
  validate(manifest) {
12
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
12
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
13
13
  if (!manifest || !manifest.typedContent || !manifest.typedContent.permissions) {
14
14
  return {
15
15
  success: false,
@@ -71,23 +71,27 @@ class PermissionsValidator {
71
71
  if (invalidBackendRemote) {
72
72
  addValidationError('external.fetch.backend', invalidBackendRemote.remote, manifest);
73
73
  }
74
- const invalidClient = (_o = (_m = (_l = manifest.typedContent.permissions.external) === null || _l === void 0 ? void 0 : _l.fetch) === null || _m === void 0 ? void 0 : _m.client) === null || _o === void 0 ? void 0 : _o.find((key) => !isValidURL(key));
74
+ const invalidClientString = (_o = (_m = (_l = manifest.typedContent.permissions.external) === null || _l === void 0 ? void 0 : _l.fetch) === null || _m === void 0 ? void 0 : _m.client) === null || _o === void 0 ? void 0 : _o.filter((item) => typeof item === 'string').find((key) => !isValidURL(key));
75
+ if (invalidClientString) {
76
+ addValidationError('external.fetch.client', invalidClientString, manifest);
77
+ }
78
+ const invalidClient = (_r = (_q = (_p = manifest.typedContent.permissions.external) === null || _p === void 0 ? void 0 : _p.fetch) === null || _q === void 0 ? void 0 : _q.client) === null || _r === void 0 ? void 0 : _r.filter((item) => typeof item === 'object').find((item) => !remoteMap || !remoteMap.has(item.remote) || !isValidURL(remoteMap.get(item.remote)));
75
79
  if (invalidClient) {
76
- addValidationError('external.fetch.client', invalidClient, manifest);
80
+ addValidationError('external.fetch.client', invalidClient.remote, manifest);
77
81
  }
78
- const invalidNavigation = (_q = (_p = manifest.typedContent.permissions.external) === null || _p === void 0 ? void 0 : _p.navigation) === null || _q === void 0 ? void 0 : _q.find((key) => !isValidURL(key));
82
+ const invalidNavigation = (_t = (_s = manifest.typedContent.permissions.external) === null || _s === void 0 ? void 0 : _s.navigation) === null || _t === void 0 ? void 0 : _t.find((key) => !isValidURL(key));
79
83
  if (invalidNavigation) {
80
84
  addValidationError('external.navigation', invalidNavigation, manifest);
81
85
  }
82
- const invalidImages = (_s = (_r = manifest.typedContent.permissions.external) === null || _r === void 0 ? void 0 : _r.images) === null || _s === void 0 ? void 0 : _s.find((key) => !isValidURL(key));
86
+ const invalidImages = (_v = (_u = manifest.typedContent.permissions.external) === null || _u === void 0 ? void 0 : _u.images) === null || _v === void 0 ? void 0 : _v.find((key) => !isValidURL(key));
83
87
  if (invalidImages) {
84
88
  addValidationError('external.images', invalidImages, manifest);
85
89
  }
86
- const invalidMedia = (_u = (_t = manifest.typedContent.permissions.external) === null || _t === void 0 ? void 0 : _t.media) === null || _u === void 0 ? void 0 : _u.find((key) => !isValidURL(key));
90
+ const invalidMedia = (_x = (_w = manifest.typedContent.permissions.external) === null || _w === void 0 ? void 0 : _w.media) === null || _x === void 0 ? void 0 : _x.find((key) => !isValidURL(key));
87
91
  if (invalidMedia) {
88
92
  addValidationError('external.media', invalidMedia, manifest);
89
93
  }
90
- const invalidExternalScripts = (_w = (_v = manifest.typedContent.permissions.external) === null || _v === void 0 ? void 0 : _v.scripts) === null || _w === void 0 ? void 0 : _w.find((key) => !isValidURL(key));
94
+ const invalidExternalScripts = (_z = (_y = manifest.typedContent.permissions.external) === null || _y === void 0 ? void 0 : _y.scripts) === null || _z === void 0 ? void 0 : _z.find((key) => !isValidURL(key));
91
95
  if (invalidExternalScripts) {
92
96
  addValidationError('external.scripts', invalidExternalScripts, manifest);
93
97
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/manifest",
3
- "version": "2.6.0-next.17",
3
+ "version": "2.6.0-next.18",
4
4
  "description": "Definitions and validations of the Forge manifest",
5
5
  "main": "out/index.js",
6
6
  "scripts": {