@smplrspace/smplr-loader 2.62.1-beta.4 → 2.62.1-beta.6

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.
@@ -2774,6 +2774,27 @@ export declare class QueryClient {
2774
2774
  }): Promise<{
2775
2775
  status: string;
2776
2776
  }>;
2777
+ /**
2778
+ * Sets the definition of a space, and optionally publishes it.
2779
+ *
2780
+ * @beta The definition is not validated against a schema yet, only its floor area is checked. The
2781
+ * definition format may change before this method is considered stable.
2782
+ */
2783
+ setSpaceDefinition({ spaceId, definition, publish, user, }: {
2784
+ spaceId: string;
2785
+ definition: Record<string, unknown>;
2786
+ publish?: boolean;
2787
+ user: EmbeddedEditorUser;
2788
+ }): Promise<{
2789
+ sid: string;
2790
+ published: boolean;
2791
+ }>;
2792
+ publishSpace({ spaceId, user }: {
2793
+ spaceId: string;
2794
+ user: EmbeddedEditorUser;
2795
+ }): Promise<{
2796
+ sid: string;
2797
+ }>;
2777
2798
  deleteSpace(spaceId: string): Promise<void>;
2778
2799
  listSpaces(options?: {
2779
2800
  organizationId?: string;
@@ -4685,7 +4706,7 @@ declare interface Vector3Coord extends Vector2Coord {
4685
4706
  z: number;
4686
4707
  }
4687
4708
 
4688
- export declare const version = "2.62.1-beta.4";
4709
+ export declare const version = "2.62.1-beta.6";
4689
4710
 
4690
4711
  declare interface ViewerDataLayerRenderState<Definition = DataLayer<UnknownData>> {
4691
4712
  definition: Definition;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smplrspace/smplr-loader",
3
- "version": "2.62.1-beta.4",
3
+ "version": "2.62.1-beta.6",
4
4
  "description": "NPM package to load a typed Smplr.js from CDN easily",
5
5
  "type": "module",
6
6
  "files": [