@uniformdev/mesh-sdk 20.13.2 → 20.13.3-alpha.12

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
@@ -1544,6 +1544,7 @@ interface MeshContextData {
1544
1544
  locationMetadata: any;
1545
1545
  uniformApiVersion: string;
1546
1546
  dialogContext?: DialogContext;
1547
+ fullScreenHeight?: boolean;
1547
1548
  }
1548
1549
  interface DialogContext {
1549
1550
  dialogId: string;
package/dist/index.d.ts CHANGED
@@ -1544,6 +1544,7 @@ interface MeshContextData {
1544
1544
  locationMetadata: any;
1545
1545
  uniformApiVersion: string;
1546
1546
  dialogContext?: DialogContext;
1547
+ fullScreenHeight?: boolean;
1547
1548
  }
1548
1549
  interface DialogContext {
1549
1550
  dialogId: string;
package/dist/index.esm.js CHANGED
@@ -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
@@ -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
@@ -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.13.2",
3
+ "version": "20.13.3-alpha.12+21928e999b",
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.13.2",
38
- "@uniformdev/canvas": "20.13.2",
39
- "@uniformdev/context": "20.13.2",
40
- "@uniformdev/project-map": "20.13.2",
37
+ "@uniformdev/assets": "20.13.3-alpha.12+21928e999b",
38
+ "@uniformdev/canvas": "20.13.3-alpha.12+21928e999b",
39
+ "@uniformdev/context": "20.13.3-alpha.12+21928e999b",
40
+ "@uniformdev/project-map": "20.13.3-alpha.12+21928e999b",
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.58.2"
47
47
  },
48
- "gitHead": "a9f1943df4e10e77972224d0e2d679e4fcda25c6"
48
+ "gitHead": "21928e999b3570c04b285c4e9793a34ad6c43b5e"
49
49
  }