@uniformdev/mesh-sdk 20.14.0 → 20.14.2-alpha.35

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
@@ -249,6 +249,12 @@ interface paths$1 {
249
249
  url: string;
250
250
  iconUrl?: string;
251
251
  }[];
252
+ projectTools?: {
253
+ id: string;
254
+ name: string;
255
+ url: string;
256
+ iconUrl?: string;
257
+ }[];
252
258
  };
253
259
  unstable_prompts?: {
254
260
  /** Format: uuid */
@@ -509,6 +515,12 @@ interface paths$1 {
509
515
  url: string;
510
516
  iconUrl?: string;
511
517
  }[];
518
+ projectTools?: {
519
+ id: string;
520
+ name: string;
521
+ url: string;
522
+ iconUrl?: string;
523
+ }[];
512
524
  };
513
525
  unstable_prompts?: {
514
526
  /** Format: uuid */
@@ -754,6 +766,12 @@ interface paths$1 {
754
766
  url: string;
755
767
  iconUrl?: string;
756
768
  }[];
769
+ projectTools?: {
770
+ id: string;
771
+ name: string;
772
+ url: string;
773
+ iconUrl?: string;
774
+ }[];
757
775
  };
758
776
  unstable_prompts?: {
759
777
  /** Format: uuid */
@@ -1348,6 +1366,12 @@ declare class IntegrationDefinitionClient extends ApiClient<DefClientOptions> {
1348
1366
  url: string;
1349
1367
  iconUrl?: string;
1350
1368
  }[];
1369
+ projectTools?: {
1370
+ id: string;
1371
+ name: string;
1372
+ url: string;
1373
+ iconUrl?: string;
1374
+ }[];
1351
1375
  };
1352
1376
  unstable_prompts?: {
1353
1377
  id: string;
@@ -1543,7 +1567,7 @@ type SettingsLocation<TSettingsType> = MeshLocationCore<TSettingsType, SettingsL
1543
1567
  * Defines methods used for interacting with a Mesh location
1544
1568
  * To receive useful typings, check the `type` property of the location to narrow the typing.
1545
1569
  */
1546
- type MeshLocation<TValue = unknown, TSetValue = TValue> = ParamTypeLocation<TValue, unknown, TSetValue> | ParamTypeConfigLocation<TValue> | SettingsLocation<TValue> | AssetLibraryLocation | AssetParameterLocation | DataSourceLocation | DataTypeLocation | DataResourceLocation | CanvasEditorToolsLocation | EmbeddedEditorLocation | AIGenerateLocation<TValue> | AIPromptMetadataLocation | PersonalizationCriteriaLocation<TValue> | ToolLocation<TValue>;
1570
+ type MeshLocation<TValue = unknown, TSetValue = TValue> = ParamTypeLocation<TValue, unknown, TSetValue> | ParamTypeConfigLocation<TValue> | SettingsLocation<TValue> | AssetLibraryLocation | AssetParameterLocation | DataSourceLocation | DataTypeLocation | DataResourceLocation | CanvasEditorToolsLocation | EmbeddedEditorLocation | AIGenerateLocation<TValue> | AIPromptMetadataLocation | PersonalizationCriteriaLocation<TValue> | ProjectToolLocation<TValue>;
1547
1571
  interface MeshContextData {
1548
1572
  locationKey: string;
1549
1573
  locationType: MeshLocationTypes;
@@ -1552,6 +1576,7 @@ interface MeshContextData {
1552
1576
  locationMetadata: any;
1553
1577
  uniformApiVersion: string;
1554
1578
  dialogContext?: DialogContext;
1579
+ fullScreenHeight?: boolean;
1555
1580
  }
1556
1581
  interface DialogContext {
1557
1582
  dialogId: string;
@@ -1653,6 +1678,7 @@ type OpenDialogMessage = {
1653
1678
  type NavigateMessage = {
1654
1679
  path: string;
1655
1680
  options?: {
1681
+ projectId?: string;
1656
1682
  target?: '_blank';
1657
1683
  };
1658
1684
  };
@@ -1758,8 +1784,6 @@ interface MeshLocationCore<TValue = unknown, TMetadata = unknown, TSetValue = TV
1758
1784
  metadata: TMetadata;
1759
1785
  /**
1760
1786
  * A router object that can be used to navigate parent frame (Uniform App) to other page within current project and other methods.
1761
- *
1762
- * @deprecated Is not stable yet so can contain breaking changes in the future
1763
1787
  */
1764
1788
  router: MeshRouter;
1765
1789
  /**
@@ -1786,9 +1810,13 @@ type MeshRouter = {
1786
1810
  * So router.navigate('/canvas/edit/{compositionId}') will navigate will open the composition editor for the given composition ID in the parent frame.
1787
1811
  * Be aware that most of the time it will close your mesh app, so you should use it with caution.
1788
1812
  *
1789
- * @deprecated Is not stable yet so can contain breaking changes in the future
1813
+ * @param path - The path to navigate to. You don't need to specify /projects/${projectId} as it is prepended automatically with the current project ID.
1814
+ * @param options - The options for the navigation.
1815
+ * @param options.projectId - You can specify project ID to navigate to. By default the current project ID is used.
1816
+ * @param options.target - Allows to open a new tab instead of navigating the current one.
1790
1817
  */
1791
1818
  navigatePlatform: (path: string, options?: {
1819
+ projectId?: string;
1792
1820
  target?: '_blank';
1793
1821
  }) => void;
1794
1822
  };
@@ -1872,6 +1900,10 @@ type MeshLocationUserPermissions =
1872
1900
  | 'COMPOSITIONS_READ_DRAFT'
1873
1901
  /** Uniform Canvas:Component Library:Manage|Create, update, and delete component library data */
1874
1902
  | 'COMPOSITIONS_MANAGE_SCHEMA'
1903
+ /** Uniform Canvas:Content Types:Manage|Create, update, and delete content types */
1904
+ | 'ENTRIES_MANAGE_SCHEMA'
1905
+ /** Uniform Canvas:AI Prompts:Manage|Create, update, and delete AI prompts */
1906
+ | 'PROMPTS_MANAGE_SCHEMA'
1875
1907
  /** UTM Mapper:Read|Read UTM mapper configuration */
1876
1908
  | 'UTM_MAPPER_READ'
1877
1909
  /** UTM Mapper:Read|Create, update and delete UTM mapper configuration */
@@ -1887,7 +1919,7 @@ type MeshLocationUserPermissions =
1887
1919
  /**
1888
1920
  * Known location types that can be passed to a mesh location
1889
1921
  */
1890
- type MeshLocationTypes = 'paramType' | 'paramTypeConfig' | 'assetLibrary' | 'assetParameter' | 'settings' | 'dataSource' | 'dataType' | 'dataResource' | 'aiGenerate' | 'embeddedEditor' | 'canvasEditorTools' | 'aiMetadata' | 'personalizationCriteria' | 'tool';
1922
+ type MeshLocationTypes = 'paramType' | 'paramTypeConfig' | 'assetLibrary' | 'assetParameter' | 'settings' | 'dataSource' | 'dataType' | 'dataResource' | 'aiGenerate' | 'embeddedEditor' | 'canvasEditorTools' | 'aiMetadata' | 'personalizationCriteria' | 'projectTool';
1891
1923
  type SetValueOptions = ValidationResult;
1892
1924
  type SetValueMessage = {
1893
1925
  uniformMeshLocationValue: unknown;
@@ -2007,10 +2039,8 @@ type PersonalizationCriteriaLocationMetadata<TIntegrationConfiguration = unknown
2007
2039
  /** @deprecated Experimental functionality is subject to change in minor versions. */
2008
2040
  type PersonalizationCriteriaLocation<TCriteriaValue, TIntegrationConfiguration = unknown> = MeshLocationCore<TCriteriaValue | undefined, PersonalizationCriteriaLocationMetadata<TIntegrationConfiguration>, TCriteriaValue, 'personalizationCriteria'>;
2009
2041
 
2010
- /** @deprecated Experimental functionality is subject to change in minor versions. */
2011
- type ToolLocationMetadata<TIntegrationConfiguration = unknown> = CommonMetadata<unknown, TIntegrationConfiguration>;
2012
- /** @deprecated Experimental functionality is subject to change in minor versions. */
2013
- type ToolLocation<TTool, TIntegrationConfiguration = unknown> = MeshLocationCore<TTool, ToolLocationMetadata<TIntegrationConfiguration>, TTool, 'tool'>;
2042
+ type ProjectToolLocationMetadata<TIntegrationConfiguration = unknown> = CommonMetadata<unknown, TIntegrationConfiguration>;
2043
+ type ProjectToolLocation<TTool, TIntegrationConfiguration = unknown> = MeshLocationCore<TTool, ProjectToolLocationMetadata<TIntegrationConfiguration>, TTool, 'projectTool'>;
2014
2044
 
2015
2045
  interface SdkWindow {
2016
2046
  /** The current window object. */
@@ -2115,4 +2145,4 @@ declare const hasPermissions: (permissions: MeshLocationUserPermissions | MeshLo
2115
2145
  */
2116
2146
  declare const hasRole: (role: string, user: UniformUser) => boolean;
2117
2147
 
2118
- export { type AIGenerateLocation, type AIGenerateLocationMetadata, type AIPromptMetadataLocation, type AssetLibraryLocation, type AssetLibraryLocationMetadata, type AssetParameterLocation, type AssetParameterLocationMetadata, type BindableTypes, type CSSHeight, type CanvasEditorEntityType, type CanvasEditorToolsData, type CanvasEditorToolsLocation, type CanvasEditorToolsLocationMetadata, type CloseDialogMessage, type CloseLocationDialogOptions, type CommonMetadata, type DataConnectorInfo, type DataResourceLocation, type DataResourceLocationMetadata, type DataSourceLocation, type DataSourceLocationMetadata, type DataSourceLocationValue, type DataTypeLocation, type DataTypeLocationMetadata, type DataTypeLocationValue, type DialogContext, type DialogOptions, type DialogParamValue, type DialogParams, type DialogResponseData, type DialogResponseHandler, type DialogResponseHandlers, type DialogType, type DynamicInput, type DynamicInputs, type EditConnectedDataMessage, type EditConnectedDataResponse, type EditConnectedDataResponseCancellationContext, type EmbeddedEditorLocation, type EmbeddedEditorLocationMetadata, type EmbeddedEditorLocationSetValue, type EmbeddedEditorLocationValue, type FunctionCallResponse, type FunctionCallSystemParameter, type GetDataResourceLocation, type GetDataResourceMessage, IntegrationDefinitionClient, type IntegrationDefinitionDeleteParameters, type IntegrationDefinitionGetParameters, type IntegrationDefinitionGetResponse, type IntegrationDefinitionPutParameters, type IntegrationDefinitionPutResponse, IntegrationInstallationClient, type IntegrationInstallationDeleteParameters, type IntegrationInstallationGetParameters, type IntegrationInstallationGetResponse, type IntegrationInstallationPutParameters, type LocationDialogResponse, type MeshContextData, type MeshLocation, type MeshLocationCore, type MeshLocationTypes, type MeshLocationUserPermissions, type MeshRouter, type MeshSDKEventInterface, type NavigateMessage, type OpenConfirmationDialogOptions, type OpenConfirmationDialogResult, type OpenDialogMessage, type OpenDialogResult, type OpenLocationDialogOptions, type ParamTypeConfigLocation, type ParamTypeConfigLocationMetadata, type ParamTypeLocation, type ParamTypeLocationMetadata, type PersonalizationCriteriaLocation, type PersonalizationCriteriaLocationMetadata, type PromptSettingsLocationMetadata, type SdkWindow, type SetLocationFunction, type SetValueMessage, type SetValueOptions, type SettingsLocation, type SettingsLocationMetadata, type ToolLocation, type ToolLocationMetadata, type UniformMeshSDK, type UniformMeshSDKEvents, type UniformUser, type ValidationResult, functionCallSystemParameters, hasPermissions, hasRole, initializeUniformMeshSDK, parseFunctionCall };
2148
+ export { type AIGenerateLocation, type AIGenerateLocationMetadata, type AIPromptMetadataLocation, type AssetLibraryLocation, type AssetLibraryLocationMetadata, type AssetParameterLocation, type AssetParameterLocationMetadata, type BindableTypes, type CSSHeight, type CanvasEditorEntityType, type CanvasEditorToolsData, type CanvasEditorToolsLocation, type CanvasEditorToolsLocationMetadata, type CloseDialogMessage, type CloseLocationDialogOptions, type CommonMetadata, type DataConnectorInfo, type DataResourceLocation, type DataResourceLocationMetadata, type DataSourceLocation, type DataSourceLocationMetadata, type DataSourceLocationValue, type DataTypeLocation, type DataTypeLocationMetadata, type DataTypeLocationValue, type DialogContext, type DialogOptions, type DialogParamValue, type DialogParams, type DialogResponseData, type DialogResponseHandler, type DialogResponseHandlers, type DialogType, type DynamicInput, type DynamicInputs, type EditConnectedDataMessage, type EditConnectedDataResponse, type EditConnectedDataResponseCancellationContext, type EmbeddedEditorLocation, type EmbeddedEditorLocationMetadata, type EmbeddedEditorLocationSetValue, type EmbeddedEditorLocationValue, type FunctionCallResponse, type FunctionCallSystemParameter, type GetDataResourceLocation, type GetDataResourceMessage, IntegrationDefinitionClient, type IntegrationDefinitionDeleteParameters, type IntegrationDefinitionGetParameters, type IntegrationDefinitionGetResponse, type IntegrationDefinitionPutParameters, type IntegrationDefinitionPutResponse, IntegrationInstallationClient, type IntegrationInstallationDeleteParameters, type IntegrationInstallationGetParameters, type IntegrationInstallationGetResponse, type IntegrationInstallationPutParameters, type LocationDialogResponse, type MeshContextData, type MeshLocation, type MeshLocationCore, type MeshLocationTypes, type MeshLocationUserPermissions, type MeshRouter, type MeshSDKEventInterface, type NavigateMessage, type OpenConfirmationDialogOptions, type OpenConfirmationDialogResult, type OpenDialogMessage, type OpenDialogResult, type OpenLocationDialogOptions, type ParamTypeConfigLocation, type ParamTypeConfigLocationMetadata, type ParamTypeLocation, type ParamTypeLocationMetadata, type PersonalizationCriteriaLocation, type PersonalizationCriteriaLocationMetadata, type ProjectToolLocation, type ProjectToolLocationMetadata, type PromptSettingsLocationMetadata, type SdkWindow, type SetLocationFunction, type SetValueMessage, type SetValueOptions, type SettingsLocation, type SettingsLocationMetadata, type UniformMeshSDK, type UniformMeshSDKEvents, type UniformUser, type ValidationResult, functionCallSystemParameters, hasPermissions, hasRole, initializeUniformMeshSDK, parseFunctionCall };
package/dist/index.d.ts CHANGED
@@ -249,6 +249,12 @@ interface paths$1 {
249
249
  url: string;
250
250
  iconUrl?: string;
251
251
  }[];
252
+ projectTools?: {
253
+ id: string;
254
+ name: string;
255
+ url: string;
256
+ iconUrl?: string;
257
+ }[];
252
258
  };
253
259
  unstable_prompts?: {
254
260
  /** Format: uuid */
@@ -509,6 +515,12 @@ interface paths$1 {
509
515
  url: string;
510
516
  iconUrl?: string;
511
517
  }[];
518
+ projectTools?: {
519
+ id: string;
520
+ name: string;
521
+ url: string;
522
+ iconUrl?: string;
523
+ }[];
512
524
  };
513
525
  unstable_prompts?: {
514
526
  /** Format: uuid */
@@ -754,6 +766,12 @@ interface paths$1 {
754
766
  url: string;
755
767
  iconUrl?: string;
756
768
  }[];
769
+ projectTools?: {
770
+ id: string;
771
+ name: string;
772
+ url: string;
773
+ iconUrl?: string;
774
+ }[];
757
775
  };
758
776
  unstable_prompts?: {
759
777
  /** Format: uuid */
@@ -1348,6 +1366,12 @@ declare class IntegrationDefinitionClient extends ApiClient<DefClientOptions> {
1348
1366
  url: string;
1349
1367
  iconUrl?: string;
1350
1368
  }[];
1369
+ projectTools?: {
1370
+ id: string;
1371
+ name: string;
1372
+ url: string;
1373
+ iconUrl?: string;
1374
+ }[];
1351
1375
  };
1352
1376
  unstable_prompts?: {
1353
1377
  id: string;
@@ -1543,7 +1567,7 @@ type SettingsLocation<TSettingsType> = MeshLocationCore<TSettingsType, SettingsL
1543
1567
  * Defines methods used for interacting with a Mesh location
1544
1568
  * To receive useful typings, check the `type` property of the location to narrow the typing.
1545
1569
  */
1546
- type MeshLocation<TValue = unknown, TSetValue = TValue> = ParamTypeLocation<TValue, unknown, TSetValue> | ParamTypeConfigLocation<TValue> | SettingsLocation<TValue> | AssetLibraryLocation | AssetParameterLocation | DataSourceLocation | DataTypeLocation | DataResourceLocation | CanvasEditorToolsLocation | EmbeddedEditorLocation | AIGenerateLocation<TValue> | AIPromptMetadataLocation | PersonalizationCriteriaLocation<TValue> | ToolLocation<TValue>;
1570
+ type MeshLocation<TValue = unknown, TSetValue = TValue> = ParamTypeLocation<TValue, unknown, TSetValue> | ParamTypeConfigLocation<TValue> | SettingsLocation<TValue> | AssetLibraryLocation | AssetParameterLocation | DataSourceLocation | DataTypeLocation | DataResourceLocation | CanvasEditorToolsLocation | EmbeddedEditorLocation | AIGenerateLocation<TValue> | AIPromptMetadataLocation | PersonalizationCriteriaLocation<TValue> | ProjectToolLocation<TValue>;
1547
1571
  interface MeshContextData {
1548
1572
  locationKey: string;
1549
1573
  locationType: MeshLocationTypes;
@@ -1552,6 +1576,7 @@ interface MeshContextData {
1552
1576
  locationMetadata: any;
1553
1577
  uniformApiVersion: string;
1554
1578
  dialogContext?: DialogContext;
1579
+ fullScreenHeight?: boolean;
1555
1580
  }
1556
1581
  interface DialogContext {
1557
1582
  dialogId: string;
@@ -1653,6 +1678,7 @@ type OpenDialogMessage = {
1653
1678
  type NavigateMessage = {
1654
1679
  path: string;
1655
1680
  options?: {
1681
+ projectId?: string;
1656
1682
  target?: '_blank';
1657
1683
  };
1658
1684
  };
@@ -1758,8 +1784,6 @@ interface MeshLocationCore<TValue = unknown, TMetadata = unknown, TSetValue = TV
1758
1784
  metadata: TMetadata;
1759
1785
  /**
1760
1786
  * A router object that can be used to navigate parent frame (Uniform App) to other page within current project and other methods.
1761
- *
1762
- * @deprecated Is not stable yet so can contain breaking changes in the future
1763
1787
  */
1764
1788
  router: MeshRouter;
1765
1789
  /**
@@ -1786,9 +1810,13 @@ type MeshRouter = {
1786
1810
  * So router.navigate('/canvas/edit/{compositionId}') will navigate will open the composition editor for the given composition ID in the parent frame.
1787
1811
  * Be aware that most of the time it will close your mesh app, so you should use it with caution.
1788
1812
  *
1789
- * @deprecated Is not stable yet so can contain breaking changes in the future
1813
+ * @param path - The path to navigate to. You don't need to specify /projects/${projectId} as it is prepended automatically with the current project ID.
1814
+ * @param options - The options for the navigation.
1815
+ * @param options.projectId - You can specify project ID to navigate to. By default the current project ID is used.
1816
+ * @param options.target - Allows to open a new tab instead of navigating the current one.
1790
1817
  */
1791
1818
  navigatePlatform: (path: string, options?: {
1819
+ projectId?: string;
1792
1820
  target?: '_blank';
1793
1821
  }) => void;
1794
1822
  };
@@ -1872,6 +1900,10 @@ type MeshLocationUserPermissions =
1872
1900
  | 'COMPOSITIONS_READ_DRAFT'
1873
1901
  /** Uniform Canvas:Component Library:Manage|Create, update, and delete component library data */
1874
1902
  | 'COMPOSITIONS_MANAGE_SCHEMA'
1903
+ /** Uniform Canvas:Content Types:Manage|Create, update, and delete content types */
1904
+ | 'ENTRIES_MANAGE_SCHEMA'
1905
+ /** Uniform Canvas:AI Prompts:Manage|Create, update, and delete AI prompts */
1906
+ | 'PROMPTS_MANAGE_SCHEMA'
1875
1907
  /** UTM Mapper:Read|Read UTM mapper configuration */
1876
1908
  | 'UTM_MAPPER_READ'
1877
1909
  /** UTM Mapper:Read|Create, update and delete UTM mapper configuration */
@@ -1887,7 +1919,7 @@ type MeshLocationUserPermissions =
1887
1919
  /**
1888
1920
  * Known location types that can be passed to a mesh location
1889
1921
  */
1890
- type MeshLocationTypes = 'paramType' | 'paramTypeConfig' | 'assetLibrary' | 'assetParameter' | 'settings' | 'dataSource' | 'dataType' | 'dataResource' | 'aiGenerate' | 'embeddedEditor' | 'canvasEditorTools' | 'aiMetadata' | 'personalizationCriteria' | 'tool';
1922
+ type MeshLocationTypes = 'paramType' | 'paramTypeConfig' | 'assetLibrary' | 'assetParameter' | 'settings' | 'dataSource' | 'dataType' | 'dataResource' | 'aiGenerate' | 'embeddedEditor' | 'canvasEditorTools' | 'aiMetadata' | 'personalizationCriteria' | 'projectTool';
1891
1923
  type SetValueOptions = ValidationResult;
1892
1924
  type SetValueMessage = {
1893
1925
  uniformMeshLocationValue: unknown;
@@ -2007,10 +2039,8 @@ type PersonalizationCriteriaLocationMetadata<TIntegrationConfiguration = unknown
2007
2039
  /** @deprecated Experimental functionality is subject to change in minor versions. */
2008
2040
  type PersonalizationCriteriaLocation<TCriteriaValue, TIntegrationConfiguration = unknown> = MeshLocationCore<TCriteriaValue | undefined, PersonalizationCriteriaLocationMetadata<TIntegrationConfiguration>, TCriteriaValue, 'personalizationCriteria'>;
2009
2041
 
2010
- /** @deprecated Experimental functionality is subject to change in minor versions. */
2011
- type ToolLocationMetadata<TIntegrationConfiguration = unknown> = CommonMetadata<unknown, TIntegrationConfiguration>;
2012
- /** @deprecated Experimental functionality is subject to change in minor versions. */
2013
- type ToolLocation<TTool, TIntegrationConfiguration = unknown> = MeshLocationCore<TTool, ToolLocationMetadata<TIntegrationConfiguration>, TTool, 'tool'>;
2042
+ type ProjectToolLocationMetadata<TIntegrationConfiguration = unknown> = CommonMetadata<unknown, TIntegrationConfiguration>;
2043
+ type ProjectToolLocation<TTool, TIntegrationConfiguration = unknown> = MeshLocationCore<TTool, ProjectToolLocationMetadata<TIntegrationConfiguration>, TTool, 'projectTool'>;
2014
2044
 
2015
2045
  interface SdkWindow {
2016
2046
  /** The current window object. */
@@ -2115,4 +2145,4 @@ declare const hasPermissions: (permissions: MeshLocationUserPermissions | MeshLo
2115
2145
  */
2116
2146
  declare const hasRole: (role: string, user: UniformUser) => boolean;
2117
2147
 
2118
- export { type AIGenerateLocation, type AIGenerateLocationMetadata, type AIPromptMetadataLocation, type AssetLibraryLocation, type AssetLibraryLocationMetadata, type AssetParameterLocation, type AssetParameterLocationMetadata, type BindableTypes, type CSSHeight, type CanvasEditorEntityType, type CanvasEditorToolsData, type CanvasEditorToolsLocation, type CanvasEditorToolsLocationMetadata, type CloseDialogMessage, type CloseLocationDialogOptions, type CommonMetadata, type DataConnectorInfo, type DataResourceLocation, type DataResourceLocationMetadata, type DataSourceLocation, type DataSourceLocationMetadata, type DataSourceLocationValue, type DataTypeLocation, type DataTypeLocationMetadata, type DataTypeLocationValue, type DialogContext, type DialogOptions, type DialogParamValue, type DialogParams, type DialogResponseData, type DialogResponseHandler, type DialogResponseHandlers, type DialogType, type DynamicInput, type DynamicInputs, type EditConnectedDataMessage, type EditConnectedDataResponse, type EditConnectedDataResponseCancellationContext, type EmbeddedEditorLocation, type EmbeddedEditorLocationMetadata, type EmbeddedEditorLocationSetValue, type EmbeddedEditorLocationValue, type FunctionCallResponse, type FunctionCallSystemParameter, type GetDataResourceLocation, type GetDataResourceMessage, IntegrationDefinitionClient, type IntegrationDefinitionDeleteParameters, type IntegrationDefinitionGetParameters, type IntegrationDefinitionGetResponse, type IntegrationDefinitionPutParameters, type IntegrationDefinitionPutResponse, IntegrationInstallationClient, type IntegrationInstallationDeleteParameters, type IntegrationInstallationGetParameters, type IntegrationInstallationGetResponse, type IntegrationInstallationPutParameters, type LocationDialogResponse, type MeshContextData, type MeshLocation, type MeshLocationCore, type MeshLocationTypes, type MeshLocationUserPermissions, type MeshRouter, type MeshSDKEventInterface, type NavigateMessage, type OpenConfirmationDialogOptions, type OpenConfirmationDialogResult, type OpenDialogMessage, type OpenDialogResult, type OpenLocationDialogOptions, type ParamTypeConfigLocation, type ParamTypeConfigLocationMetadata, type ParamTypeLocation, type ParamTypeLocationMetadata, type PersonalizationCriteriaLocation, type PersonalizationCriteriaLocationMetadata, type PromptSettingsLocationMetadata, type SdkWindow, type SetLocationFunction, type SetValueMessage, type SetValueOptions, type SettingsLocation, type SettingsLocationMetadata, type ToolLocation, type ToolLocationMetadata, type UniformMeshSDK, type UniformMeshSDKEvents, type UniformUser, type ValidationResult, functionCallSystemParameters, hasPermissions, hasRole, initializeUniformMeshSDK, parseFunctionCall };
2148
+ export { type AIGenerateLocation, type AIGenerateLocationMetadata, type AIPromptMetadataLocation, type AssetLibraryLocation, type AssetLibraryLocationMetadata, type AssetParameterLocation, type AssetParameterLocationMetadata, type BindableTypes, type CSSHeight, type CanvasEditorEntityType, type CanvasEditorToolsData, type CanvasEditorToolsLocation, type CanvasEditorToolsLocationMetadata, type CloseDialogMessage, type CloseLocationDialogOptions, type CommonMetadata, type DataConnectorInfo, type DataResourceLocation, type DataResourceLocationMetadata, type DataSourceLocation, type DataSourceLocationMetadata, type DataSourceLocationValue, type DataTypeLocation, type DataTypeLocationMetadata, type DataTypeLocationValue, type DialogContext, type DialogOptions, type DialogParamValue, type DialogParams, type DialogResponseData, type DialogResponseHandler, type DialogResponseHandlers, type DialogType, type DynamicInput, type DynamicInputs, type EditConnectedDataMessage, type EditConnectedDataResponse, type EditConnectedDataResponseCancellationContext, type EmbeddedEditorLocation, type EmbeddedEditorLocationMetadata, type EmbeddedEditorLocationSetValue, type EmbeddedEditorLocationValue, type FunctionCallResponse, type FunctionCallSystemParameter, type GetDataResourceLocation, type GetDataResourceMessage, IntegrationDefinitionClient, type IntegrationDefinitionDeleteParameters, type IntegrationDefinitionGetParameters, type IntegrationDefinitionGetResponse, type IntegrationDefinitionPutParameters, type IntegrationDefinitionPutResponse, IntegrationInstallationClient, type IntegrationInstallationDeleteParameters, type IntegrationInstallationGetParameters, type IntegrationInstallationGetResponse, type IntegrationInstallationPutParameters, type LocationDialogResponse, type MeshContextData, type MeshLocation, type MeshLocationCore, type MeshLocationTypes, type MeshLocationUserPermissions, type MeshRouter, type MeshSDKEventInterface, type NavigateMessage, type OpenConfirmationDialogOptions, type OpenConfirmationDialogResult, type OpenDialogMessage, type OpenDialogResult, type OpenLocationDialogOptions, type ParamTypeConfigLocation, type ParamTypeConfigLocationMetadata, type ParamTypeLocation, type ParamTypeLocationMetadata, type PersonalizationCriteriaLocation, type PersonalizationCriteriaLocationMetadata, type ProjectToolLocation, type ProjectToolLocationMetadata, type PromptSettingsLocationMetadata, type SdkWindow, type SetLocationFunction, type SetValueMessage, type SetValueOptions, type SettingsLocation, type SettingsLocationMetadata, type UniformMeshSDK, type UniformMeshSDKEvents, type UniformUser, type ValidationResult, functionCallSystemParameters, hasPermissions, hasRole, initializeUniformMeshSDK, parseFunctionCall };
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.18.0";
135
135
 
136
136
  // src/framepost/constants.ts
137
137
  var DEFAULT_REQUEST_TIMEOUT = 5e3;
@@ -552,9 +552,11 @@ var createSdkWindow = ({
552
552
  }
553
553
  const windowInstance = window;
554
554
  const updateHeight = (height) => {
555
- if (height && height !== oldHeight) {
556
- oldHeight = height;
557
- onHeightChange == null ? void 0 : onHeightChange(height);
555
+ if (height) {
556
+ if (height !== oldHeight) {
557
+ oldHeight = height;
558
+ onHeightChange == null ? void 0 : onHeightChange(height);
559
+ }
558
560
  return;
559
561
  }
560
562
  let maxBottom = windowInstance.document.documentElement.getBoundingClientRect().height;
@@ -625,6 +627,7 @@ var createSdkWindow = ({
625
627
  childList: true,
626
628
  subtree: true
627
629
  });
630
+ updateHeight();
628
631
  },
629
632
  disableAutoResizing: () => {
630
633
  observer == null ? void 0 : observer.disconnect();
@@ -742,7 +745,10 @@ async function initializeUniformMeshSDK({
742
745
  // then we disable autoResizing for the dialog location.
743
746
  // Otherwise, autoResizing will likely "overwrite" the specified `contentHeight` value, making
744
747
  // 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
748
+ // Another case for explicit autoResizingDisabled flag is Full Screen Height from the parent (e.g. asset library location),
749
+ // so by default it will be stretch to the maximum height of the parent.
750
+ // Can still be manually enabled by calling sdk.currentWindow?.enableAutoResizing() in mesh app.
751
+ autoResizingDisabled: ((_a = contextData.dialogContext) == null ? void 0 : _a.contentHeight) || contextData.fullScreenHeight ? true : autoResizingDisabled
746
752
  }),
747
753
  version: contextData.uniformApiVersion,
748
754
  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.18.0";
176
176
 
177
177
  // src/framepost/constants.ts
178
178
  var DEFAULT_REQUEST_TIMEOUT = 5e3;
@@ -593,9 +593,11 @@ var createSdkWindow = ({
593
593
  }
594
594
  const windowInstance = window;
595
595
  const updateHeight = (height) => {
596
- if (height && height !== oldHeight) {
597
- oldHeight = height;
598
- onHeightChange == null ? void 0 : onHeightChange(height);
596
+ if (height) {
597
+ if (height !== oldHeight) {
598
+ oldHeight = height;
599
+ onHeightChange == null ? void 0 : onHeightChange(height);
600
+ }
599
601
  return;
600
602
  }
601
603
  let maxBottom = windowInstance.document.documentElement.getBoundingClientRect().height;
@@ -666,6 +668,7 @@ var createSdkWindow = ({
666
668
  childList: true,
667
669
  subtree: true
668
670
  });
671
+ updateHeight();
669
672
  },
670
673
  disableAutoResizing: () => {
671
674
  observer == null ? void 0 : observer.disconnect();
@@ -783,7 +786,10 @@ async function initializeUniformMeshSDK({
783
786
  // then we disable autoResizing for the dialog location.
784
787
  // Otherwise, autoResizing will likely "overwrite" the specified `contentHeight` value, making
785
788
  // 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
789
+ // Another case for explicit autoResizingDisabled flag is Full Screen Height from the parent (e.g. asset library location),
790
+ // so by default it will be stretch to the maximum height of the parent.
791
+ // Can still be manually enabled by calling sdk.currentWindow?.enableAutoResizing() in mesh app.
792
+ autoResizingDisabled: ((_a = contextData.dialogContext) == null ? void 0 : _a.contentHeight) || contextData.fullScreenHeight ? true : autoResizingDisabled
787
793
  }),
788
794
  version: contextData.uniformApiVersion,
789
795
  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.18.0";
135
135
 
136
136
  // src/framepost/constants.ts
137
137
  var DEFAULT_REQUEST_TIMEOUT = 5e3;
@@ -552,9 +552,11 @@ var createSdkWindow = ({
552
552
  }
553
553
  const windowInstance = window;
554
554
  const updateHeight = (height) => {
555
- if (height && height !== oldHeight) {
556
- oldHeight = height;
557
- onHeightChange == null ? void 0 : onHeightChange(height);
555
+ if (height) {
556
+ if (height !== oldHeight) {
557
+ oldHeight = height;
558
+ onHeightChange == null ? void 0 : onHeightChange(height);
559
+ }
558
560
  return;
559
561
  }
560
562
  let maxBottom = windowInstance.document.documentElement.getBoundingClientRect().height;
@@ -625,6 +627,7 @@ var createSdkWindow = ({
625
627
  childList: true,
626
628
  subtree: true
627
629
  });
630
+ updateHeight();
628
631
  },
629
632
  disableAutoResizing: () => {
630
633
  observer == null ? void 0 : observer.disconnect();
@@ -742,7 +745,10 @@ async function initializeUniformMeshSDK({
742
745
  // then we disable autoResizing for the dialog location.
743
746
  // Otherwise, autoResizing will likely "overwrite" the specified `contentHeight` value, making
744
747
  // 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
748
+ // Another case for explicit autoResizingDisabled flag is Full Screen Height from the parent (e.g. asset library location),
749
+ // so by default it will be stretch to the maximum height of the parent.
750
+ // Can still be manually enabled by calling sdk.currentWindow?.enableAutoResizing() in mesh app.
751
+ autoResizingDisabled: ((_a = contextData.dialogContext) == null ? void 0 : _a.contentHeight) || contextData.fullScreenHeight ? true : autoResizingDisabled
746
752
  }),
747
753
  version: contextData.uniformApiVersion,
748
754
  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.2-alpha.35+298a00bb0a",
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.2-alpha.35+298a00bb0a",
38
+ "@uniformdev/canvas": "20.14.2-alpha.35+298a00bb0a",
39
+ "@uniformdev/context": "20.14.2-alpha.35+298a00bb0a",
40
+ "@uniformdev/project-map": "20.14.2-alpha.35+298a00bb0a",
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": "298a00bb0a2955cf07d94dd6ef939a64b5bfdcd0"
49
49
  }