@archilogic/extension-sdk 0.17.1 → 0.17.3

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,19 @@
1
1
  # @archilogic/extension-sdk
2
2
 
3
+ ## 0.17.3
4
+
5
+ ### Patch Changes
6
+
7
+ - a8b0411: feat: expose the organization's shared view styles to extensions
8
+
9
+ `hostApi.getSharedViewStyles()` returns the organization's shared view styles (`SharedViewStyle`: id, name, parameters), which the Space API serves and no layout holds. Hosts without shared views return an empty list.
10
+
11
+ ## 0.17.2
12
+
13
+ ### Patch Changes
14
+
15
+ - 81d691c: Bump spage-graph and fpe version
16
+
3
17
  ## 0.17.1
4
18
 
5
19
  ### Patch Changes
package/dist/actions.d.ts CHANGED
@@ -1045,6 +1045,10 @@ declare type FloorPlanTheme = {
1045
1045
  fontSize?: number;
1046
1046
  };
1047
1047
  byId?: StyleByKey;
1048
+ /**
1049
+ * style by query, applied in order: every matching entry contributes the keys it sets,
1050
+ * so a later match overrides only those keys and keeps the rest from earlier matches
1051
+ */
1048
1052
  byFilter?: ThemeStyles['byFilter'];
1049
1053
  /* Excluded from this release type: byResolvedFilter */
1050
1054
  byType?: ThemeStyles['byType'];
@@ -1398,6 +1402,7 @@ declare type HostApi = {
1398
1402
  nodeIds: string[];
1399
1403
  }) => Promise<NodeResult[]>;
1400
1404
  getSpaceGraphJson: () => Promise<SpaceGraphJson>;
1405
+ getSharedViewStyles: () => Promise<SharedViewStyle[]>;
1401
1406
  exportPdf: (args?: ExportPdfOptions) => Promise<void | ExportPdfResult>;
1402
1407
  exportSvg: (args?: ExportSvgOptions) => Promise<void | ExportSvgResult>;
1403
1408
  getPath: (args: {
@@ -3329,6 +3334,12 @@ declare interface ShapeStyle {
3329
3334
  alignment?: 0 | 0.5 | 1;
3330
3335
  }
3331
3336
 
3337
+ declare type SharedViewStyle = {
3338
+ id: string;
3339
+ name: string;
3340
+ parameters: LayoutViewStyleParametersJson;
3341
+ };
3342
+
3332
3343
  declare type SimpleTransform3d = {
3333
3344
  position: Vector3;
3334
3345
  rotation: number;
package/dist/index.d.ts CHANGED
@@ -952,6 +952,10 @@ export declare type FloorPlanTheme = {
952
952
  fontSize?: number;
953
953
  };
954
954
  byId?: StyleByKey;
955
+ /**
956
+ * style by query, applied in order: every matching entry contributes the keys it sets,
957
+ * so a later match overrides only those keys and keeps the rest from earlier matches
958
+ */
955
959
  byFilter?: ThemeStyles['byFilter'];
956
960
  /* Excluded from this release type: byResolvedFilter */
957
961
  byType?: ThemeStyles['byType'];
@@ -1305,6 +1309,7 @@ export declare type HostApi = {
1305
1309
  nodeIds: string[];
1306
1310
  }) => Promise<NodeResult[]>;
1307
1311
  getSpaceGraphJson: () => Promise<SpaceGraphJson>;
1312
+ getSharedViewStyles: () => Promise<SharedViewStyle[]>;
1308
1313
  exportPdf: (args?: ExportPdfOptions) => Promise<void | ExportPdfResult>;
1309
1314
  exportSvg: (args?: ExportSvgOptions) => Promise<void | ExportSvgResult>;
1310
1315
  getPath: (args: {
@@ -3234,6 +3239,12 @@ declare interface ShapeStyle {
3234
3239
  alignment?: 0 | 0.5 | 1;
3235
3240
  }
3236
3241
 
3242
+ export declare type SharedViewStyle = {
3243
+ id: string;
3244
+ name: string;
3245
+ parameters: LayoutViewStyleParametersJson;
3246
+ };
3247
+
3237
3248
  declare type SimpleTransform3d = {
3238
3249
  position: Vector3;
3239
3250
  rotation: number;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@archilogic/extension-sdk",
3
3
  "description": "",
4
- "version": "0.17.1",
4
+ "version": "0.17.3",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -33,8 +33,8 @@
33
33
  }
34
34
  },
35
35
  "devDependencies": {
36
- "@archilogic/floor-plan-core": "^5.12.1",
37
- "@archilogic/space-graph-core": "^0.34.1",
36
+ "@archilogic/floor-plan-core": "^5.15.0",
37
+ "@archilogic/space-graph-core": "^0.34.2",
38
38
  "@archilogic/space-graph-sdk": "^0.11.4",
39
39
  "vite-plugin-static-copy": "^4.1.1"
40
40
  },