@weaverse/core 0.7.0 → 0.7.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/dist/index.d.ts CHANGED
@@ -56,6 +56,7 @@ interface InitializeData {
56
56
  data: ProjectDataType;
57
57
  published: boolean;
58
58
  projectKey?: string;
59
+ studioUrl?: string;
59
60
  }
60
61
  interface WeaverseType {
61
62
  mediaBreakPoints?: any;
package/dist/index.js CHANGED
@@ -152,8 +152,9 @@ var Weaverse = class {
152
152
  this.initialized = false;
153
153
  this.initializeData = (data) => {
154
154
  if (!this.initialized) {
155
- let { data: pageData, published, id, projectKey } = data;
155
+ let { data: pageData, published, id, projectKey, studioUrl } = data;
156
156
  this.projectKey = projectKey || this.projectKey;
157
+ this.appUrl = studioUrl || this.appUrl;
157
158
  this.projectData = { ...pageData, pageId: id };
158
159
  this.isDesignMode = !published;
159
160
  this.initProjectItemData();
package/dist/index.mjs CHANGED
@@ -116,8 +116,9 @@ var Weaverse = class {
116
116
  this.initialized = false;
117
117
  this.initializeData = (data) => {
118
118
  if (!this.initialized) {
119
- let { data: pageData, published, id, projectKey } = data;
119
+ let { data: pageData, published, id, projectKey, studioUrl } = data;
120
120
  this.projectKey = projectKey || this.projectKey;
121
+ this.appUrl = studioUrl || this.appUrl;
121
122
  this.projectData = { ...pageData, pageId: id };
122
123
  this.isDesignMode = !published;
123
124
  this.initProjectItemData();
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.7.0",
2
+ "version": "0.7.1",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",