@archilogic/extension-sdk 0.9.1 → 0.10.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,18 @@
1
1
  # @archilogic/extension-sdk
2
2
 
3
+ ## 0.10.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 33a594e: fix(extension-sdk): adding schema for specifying the data response of the extension
8
+ - a9665f8: fix(extension-sdk): change manifest parameters to support json schema
9
+
10
+ ## 0.10.0
11
+
12
+ ### Minor Changes
13
+
14
+ - dd8a02f: feat(extension-sdk): add getSpaceGraphJson method
15
+
3
16
  ## 0.9.1
4
17
 
5
18
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -1130,6 +1130,7 @@ export declare type HostApi = {
1130
1130
  selectNodes: (args: {
1131
1131
  nodeIds: string[];
1132
1132
  }) => Promise<NodeResult[]>;
1133
+ getSpaceGraphJson: () => Promise<SpaceGraphJson>;
1133
1134
  getPath: (args: {
1134
1135
  start: Vector2;
1135
1136
  end: Vector2;
@@ -44,29 +44,16 @@
44
44
  "description": "The UI context of the extension"
45
45
  },
46
46
  "parameters": {
47
- "type": "array",
48
- "items": {
49
- "type": "object",
50
- "properties": {
51
- "label": {
52
- "type": "string"
53
- },
54
- "key": {
55
- "type": "string",
56
- "pattern": "^[a-z-]+$"
57
- },
58
- "description": {
59
- "type": "string"
60
- },
61
- "valueType": {
62
- "type": "string",
63
- "enum": ["string", "boolean", "number"]
64
- }
65
- },
66
- "required": ["label", "key", "valueType"],
67
- "additionalProperties": false
47
+ "$ref": "http://json-schema.org/draft-07/schema#",
48
+ "properties": {
49
+ "type": { "const": "object" }
68
50
  },
69
- "description": "Parameters that the extension exposes"
51
+ "required": ["type"],
52
+ "description": "JSON Schema (object type) defining the parameters the extension exposes"
53
+ },
54
+ "dataResponse": {
55
+ "allOf": [{ "$ref": "http://json-schema.org/draft-07/schema#" }],
56
+ "description": "JSON Schema defining the data response of the extension"
70
57
  },
71
58
  "legacyMode": {
72
59
  "type": "boolean"
package/package.json CHANGED
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "name": "@archilogic/extension-sdk",
3
3
  "description": "",
4
- "version": "0.9.1",
4
+ "version": "0.10.1",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
8
  "files": [
9
9
  "dist",
10
- "CHANGELOG.md"
10
+ "CHANGELOG.md",
11
+ "manifest-schema.json"
11
12
  ],
12
13
  "scripts": {
13
14
  "dev": "vite",
@@ -27,8 +28,7 @@
27
28
  "types": "./dist/index.d.ts",
28
29
  "import": "./dist/extension-sdk.js",
29
30
  "require": "./dist/extension-sdk.cjs"
30
- },
31
- "./manifest-schema.json": "./dist/manifest-schema.json"
31
+ }
32
32
  },
33
33
  "dependencies": {
34
34
  "@archilogic/penpal": "^7.0.5",