@uniformdev/mesh-sdk 20.14.0 → 20.14.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.mts CHANGED
@@ -1552,6 +1552,7 @@ interface MeshContextData {
1552
1552
  locationMetadata: any;
1553
1553
  uniformApiVersion: string;
1554
1554
  dialogContext?: DialogContext;
1555
+ fullScreenHeight?: boolean;
1555
1556
  }
1556
1557
  interface DialogContext {
1557
1558
  dialogId: string;
package/dist/index.d.ts CHANGED
@@ -1552,6 +1552,7 @@ interface MeshContextData {
1552
1552
  locationMetadata: any;
1553
1553
  uniformApiVersion: string;
1554
1554
  dialogContext?: DialogContext;
1555
+ fullScreenHeight?: boolean;
1555
1556
  }
1556
1557
  interface DialogContext {
1557
1558
  dialogId: string;
package/dist/index.esm.js CHANGED
@@ -131,7 +131,7 @@ var getLogger = (prefix, debug) => {
131
131
  };
132
132
 
133
133
  // src/temp/version.ts
134
- var UNIFORM_MESH_SDK_VERSION = "20.14.0";
134
+ var UNIFORM_MESH_SDK_VERSION = "20.14.1";
135
135
 
136
136
  // src/framepost/constants.ts
137
137
  var DEFAULT_REQUEST_TIMEOUT = 5e3;
@@ -742,7 +742,10 @@ async function initializeUniformMeshSDK({
742
742
  // then we disable autoResizing for the dialog location.
743
743
  // Otherwise, autoResizing will likely "overwrite" the specified `contentHeight` value, making
744
744
  // developers very sad and confused. No one wants a sad and confused developer.
745
- autoResizingDisabled: ((_a = contextData.dialogContext) == null ? void 0 : _a.contentHeight) ? true : autoResizingDisabled
745
+ // Another case for explicit autoResizingDisabled flag is Full Screen Height from the parent (e.g. asset library location),
746
+ // so by default it will be stretch to the maximum height of the parent.
747
+ // Can still be manually enabled by calling sdk.currentWindow?.enableAutoResizing() in mesh app.
748
+ autoResizingDisabled: ((_a = contextData.dialogContext) == null ? void 0 : _a.contentHeight) || contextData.fullScreenHeight ? true : autoResizingDisabled
746
749
  }),
747
750
  version: contextData.uniformApiVersion,
748
751
  openLocationDialog: async ({
package/dist/index.js CHANGED
@@ -172,7 +172,7 @@ var getLogger = (prefix, debug) => {
172
172
  };
173
173
 
174
174
  // src/temp/version.ts
175
- var UNIFORM_MESH_SDK_VERSION = "20.14.0";
175
+ var UNIFORM_MESH_SDK_VERSION = "20.14.1";
176
176
 
177
177
  // src/framepost/constants.ts
178
178
  var DEFAULT_REQUEST_TIMEOUT = 5e3;
@@ -783,7 +783,10 @@ async function initializeUniformMeshSDK({
783
783
  // then we disable autoResizing for the dialog location.
784
784
  // Otherwise, autoResizing will likely "overwrite" the specified `contentHeight` value, making
785
785
  // developers very sad and confused. No one wants a sad and confused developer.
786
- autoResizingDisabled: ((_a = contextData.dialogContext) == null ? void 0 : _a.contentHeight) ? true : autoResizingDisabled
786
+ // Another case for explicit autoResizingDisabled flag is Full Screen Height from the parent (e.g. asset library location),
787
+ // so by default it will be stretch to the maximum height of the parent.
788
+ // Can still be manually enabled by calling sdk.currentWindow?.enableAutoResizing() in mesh app.
789
+ autoResizingDisabled: ((_a = contextData.dialogContext) == null ? void 0 : _a.contentHeight) || contextData.fullScreenHeight ? true : autoResizingDisabled
787
790
  }),
788
791
  version: contextData.uniformApiVersion,
789
792
  openLocationDialog: async ({
package/dist/index.mjs CHANGED
@@ -131,7 +131,7 @@ var getLogger = (prefix, debug) => {
131
131
  };
132
132
 
133
133
  // src/temp/version.ts
134
- var UNIFORM_MESH_SDK_VERSION = "20.14.0";
134
+ var UNIFORM_MESH_SDK_VERSION = "20.14.1";
135
135
 
136
136
  // src/framepost/constants.ts
137
137
  var DEFAULT_REQUEST_TIMEOUT = 5e3;
@@ -742,7 +742,10 @@ async function initializeUniformMeshSDK({
742
742
  // then we disable autoResizing for the dialog location.
743
743
  // Otherwise, autoResizing will likely "overwrite" the specified `contentHeight` value, making
744
744
  // developers very sad and confused. No one wants a sad and confused developer.
745
- autoResizingDisabled: ((_a = contextData.dialogContext) == null ? void 0 : _a.contentHeight) ? true : autoResizingDisabled
745
+ // Another case for explicit autoResizingDisabled flag is Full Screen Height from the parent (e.g. asset library location),
746
+ // so by default it will be stretch to the maximum height of the parent.
747
+ // Can still be manually enabled by calling sdk.currentWindow?.enableAutoResizing() in mesh app.
748
+ autoResizingDisabled: ((_a = contextData.dialogContext) == null ? void 0 : _a.contentHeight) || contextData.fullScreenHeight ? true : autoResizingDisabled
746
749
  }),
747
750
  version: contextData.uniformApiVersion,
748
751
  openLocationDialog: async ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/mesh-sdk",
3
- "version": "20.14.0",
3
+ "version": "20.14.1",
4
4
  "description": "Uniform Mesh Framework SDK",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -34,10 +34,10 @@
34
34
  "access": "public"
35
35
  },
36
36
  "dependencies": {
37
- "@uniformdev/assets": "20.14.0",
38
- "@uniformdev/canvas": "20.14.0",
39
- "@uniformdev/context": "20.14.0",
40
- "@uniformdev/project-map": "20.14.0",
37
+ "@uniformdev/assets": "20.14.1",
38
+ "@uniformdev/canvas": "20.14.1",
39
+ "@uniformdev/context": "20.14.1",
40
+ "@uniformdev/project-map": "20.14.1",
41
41
  "imagesloaded": "^5.0.0",
42
42
  "mitt": "^3.0.1"
43
43
  },
@@ -45,5 +45,5 @@
45
45
  "@types/imagesloaded": "^4.1.2",
46
46
  "openai": "4.94.0"
47
47
  },
48
- "gitHead": "958a8fe27da8ec9191a1a09f289f6f7418dd16d6"
48
+ "gitHead": "1cf777c56f2e7f08514fd44b40700579c48a9c71"
49
49
  }