@uniformdev/mesh-sdk 19.79.1-alpha.11 → 19.79.1-alpha.13

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
@@ -1,6 +1,7 @@
1
1
  import { ApiClient, ClientOptions, ExceptProject } from '@uniformdev/context/api';
2
2
  import { ProjectMapNode } from '@uniformdev/project-map';
3
- import { ComponentOverride, DataType, DataSource, DataResourceVariables, RootComponentInstance, ComponentInstance, ComponentDefinition, ComponentDefinitionParameter, DataVariableDefinition } from '@uniformdev/canvas';
3
+ import { AssetParamValue, DataType, DataSource, DataResourceVariables, RootComponentInstance, ComponentInstance, ComponentDefinition, ComponentDefinitionParameter, DataVariableDefinition } from '@uniformdev/canvas';
4
+ export { AssetParamValue, AssetParamValueItem } from '@uniformdev/canvas';
4
5
  import { Emitter } from 'mitt';
5
6
 
6
7
  /**
@@ -63,6 +64,8 @@ interface paths$1 {
63
64
  };
64
65
  };
65
66
  renderableInPropertyPanel?: boolean;
67
+ /** @enum {string} */
68
+ localizable?: "default-yes" | "default-no" | "yes" | "no";
66
69
  }[];
67
70
  };
68
71
  dataConnectors?: {
@@ -102,6 +105,14 @@ interface paths$1 {
102
105
  singleAssetArchetypeId: string;
103
106
  };
104
107
  };
108
+ unstable_assetLibrary?: {
109
+ url: string;
110
+ dynamicAssets?: {
111
+ dataConnectorId: string;
112
+ assetsListArchetypeId: string;
113
+ singleAssetArchetypeId: string;
114
+ };
115
+ };
105
116
  ai?: {
106
117
  generateUrl: string;
107
118
  metadataUrl?: string;
@@ -119,7 +130,7 @@ interface paths$1 {
119
130
  default?: string | null;
120
131
  };
121
132
  } | null;
122
- metadata?: unknown;
133
+ metadata?: unknown | null;
123
134
  } | null;
124
135
  parameterTypes: string[];
125
136
  }[];
@@ -143,7 +154,7 @@ interface paths$1 {
143
154
  default?: string | null;
144
155
  };
145
156
  } | null;
146
- metadata?: unknown;
157
+ metadata?: unknown | null;
147
158
  } | null;
148
159
  parameterTypes: string[];
149
160
  }[];
@@ -204,6 +215,8 @@ interface paths$1 {
204
215
  };
205
216
  };
206
217
  renderableInPropertyPanel?: boolean;
218
+ /** @enum {string} */
219
+ localizable?: "default-yes" | "default-no" | "yes" | "no";
207
220
  }[];
208
221
  };
209
222
  dataConnectors?: {
@@ -243,6 +256,14 @@ interface paths$1 {
243
256
  singleAssetArchetypeId: string;
244
257
  };
245
258
  };
259
+ unstable_assetLibrary?: {
260
+ url: string;
261
+ dynamicAssets?: {
262
+ dataConnectorId: string;
263
+ assetsListArchetypeId: string;
264
+ singleAssetArchetypeId: string;
265
+ };
266
+ };
246
267
  ai?: {
247
268
  generateUrl: string;
248
269
  metadataUrl?: string;
@@ -260,7 +281,7 @@ interface paths$1 {
260
281
  default?: string | null;
261
282
  };
262
283
  } | null;
263
- metadata?: unknown;
284
+ metadata?: unknown | null;
264
285
  } | null;
265
286
  parameterTypes: string[];
266
287
  }[];
@@ -284,7 +305,7 @@ interface paths$1 {
284
305
  default?: string | null;
285
306
  };
286
307
  } | null;
287
- metadata?: unknown;
308
+ metadata?: unknown | null;
288
309
  } | null;
289
310
  parameterTypes: string[];
290
311
  }[];
@@ -344,6 +365,8 @@ interface paths$1 {
344
365
  };
345
366
  };
346
367
  renderableInPropertyPanel?: boolean;
368
+ /** @enum {string} */
369
+ localizable?: "default-yes" | "default-no" | "yes" | "no";
347
370
  }[];
348
371
  };
349
372
  dataConnectors?: {
@@ -383,6 +406,14 @@ interface paths$1 {
383
406
  singleAssetArchetypeId: string;
384
407
  };
385
408
  };
409
+ unstable_assetLibrary?: {
410
+ url: string;
411
+ dynamicAssets?: {
412
+ dataConnectorId: string;
413
+ assetsListArchetypeId: string;
414
+ singleAssetArchetypeId: string;
415
+ };
416
+ };
386
417
  ai?: {
387
418
  generateUrl: string;
388
419
  metadataUrl?: string;
@@ -400,7 +431,7 @@ interface paths$1 {
400
431
  default?: string | null;
401
432
  };
402
433
  } | null;
403
- metadata?: unknown;
434
+ metadata?: unknown | null;
404
435
  } | null;
405
436
  parameterTypes: string[];
406
437
  }[];
@@ -424,7 +455,7 @@ interface paths$1 {
424
455
  default?: string | null;
425
456
  };
426
457
  } | null;
427
- metadata?: unknown;
458
+ metadata?: unknown | null;
428
459
  } | null;
429
460
  parameterTypes: string[];
430
461
  }[];
@@ -733,6 +764,7 @@ declare class IntegrationDefinitionClient extends ApiClient<DefClientOptions> {
733
764
  };
734
765
  } | undefined;
735
766
  renderableInPropertyPanel?: boolean | undefined;
767
+ localizable?: "default-yes" | "default-no" | "yes" | "no" | undefined;
736
768
  }[];
737
769
  } | undefined;
738
770
  dataConnectors?: {
@@ -772,6 +804,14 @@ declare class IntegrationDefinitionClient extends ApiClient<DefClientOptions> {
772
804
  singleAssetArchetypeId: string;
773
805
  } | undefined;
774
806
  } | undefined;
807
+ unstable_assetLibrary?: {
808
+ url: string;
809
+ dynamicAssets?: {
810
+ dataConnectorId: string;
811
+ assetsListArchetypeId: string;
812
+ singleAssetArchetypeId: string;
813
+ } | undefined;
814
+ } | undefined;
775
815
  ai?: {
776
816
  generateUrl: string;
777
817
  metadataUrl?: string | undefined;
@@ -860,80 +900,6 @@ type AssetParameterLocationMetadata<TIntegrationConfiguration = unknown> = {
860
900
  */
861
901
  maxAssets?: number;
862
902
  };
863
- type AssetParamValue = AssetParamValueItem[];
864
- type AssetParamValueItem = {
865
- type: string;
866
- _id: string;
867
- /**
868
- * Internal Uniform source ID or
869
- * dataType ID of the global integration library
870
- * which created this asset item
871
- */
872
- _source?: string;
873
- fields: {
874
- url: {
875
- type: 'text';
876
- value: string;
877
- };
878
- id?: {
879
- type: 'text';
880
- value: string | undefined;
881
- };
882
- title?: {
883
- type: 'text';
884
- value: string | undefined;
885
- };
886
- description?: {
887
- type: 'text';
888
- value: string | undefined;
889
- };
890
- mediaType?: {
891
- type: 'text';
892
- value: string | undefined;
893
- };
894
- /**
895
- * The width of the original asset
896
- *
897
- * Should resolve to a number but might
898
- * be a string with a pointer reference
899
- */
900
- width?: {
901
- type: 'number';
902
- value: number | string | undefined;
903
- };
904
- /**
905
- * The height of the original asset
906
- *
907
- * Should resolve to a number but might
908
- * be a string with a pointer reference
909
- */
910
- height?: {
911
- type: 'number';
912
- value: number | string | undefined;
913
- };
914
- /**
915
- * The size in bytes of the original asset
916
- *
917
- * Should resolve to a number but might
918
- * be a string with a pointer reference
919
- */
920
- size?: {
921
- type: 'number';
922
- value: number | string | undefined;
923
- };
924
- /**
925
- * Any key/value properties which the source
926
- * wants to attach to the asset data
927
- */
928
- custom?: {
929
- type: string;
930
- value: Record<string, unknown>;
931
- };
932
- };
933
- _overrides?: {
934
- fields: ComponentOverride['parameters'];
935
- };
936
- };
937
903
  type AssetLibraryLocation = MeshLocationCore<unknown, AssetLibraryLocationMetadata, unknown, 'assetLibrary'> & GetDataResourceLocation;
938
904
  type AssetParameterLocation = MeshLocationCore<AssetParamValue, AssetParameterLocationMetadata, AssetParamValue, 'assetParameter'> & GetDataResourceLocation;
939
905
 
@@ -978,7 +944,7 @@ type DataResourceLocationMetadata<TIntegrationConfiguration = unknown> = {
978
944
  };
979
945
  type DataResourceLocation = MeshLocationCore<DataResourceVariables, DataResourceLocationMetadata, DataResourceVariables, 'dataResource'> & GetDataResourceLocation;
980
946
 
981
- type DataSourceLocationValue = Pick<DataSource, 'baseUrl' | 'custom' | 'headers' | 'parameters' | 'variables'>;
947
+ type DataSourceLocationValue = Pick<DataSource, 'baseUrl' | 'custom' | 'customPublic' | 'headers' | 'parameters' | 'variables'>;
982
948
  type DataSourceLocationMetadata<TIntegrationConfiguration = unknown> = {
983
949
  /** Settings defined at the integration level (arbitrary type used on settings location) */
984
950
  settings: TIntegrationConfiguration;
@@ -1011,6 +977,13 @@ type ParamTypeLocationMetadata<TParamConfiguration = unknown, TIntegrationConfig
1011
977
  * Use the <ParamTypeDynamicDataProvider> to wire up dynamic data in your parameter.
1012
978
  */
1013
979
  connectedData: Record<string, unknown>;
980
+ /**
981
+ * The target locale being edited.
982
+ * If the parameter is not defined as localizable, then this is always undefined.
983
+ * If the parameter is localizable, then this is the current editor language.
984
+ * Note that setValue() always sets the target language automatically.
985
+ */
986
+ targetLocale: string | undefined;
1014
987
  };
1015
988
  type ParamTypeLocation<TParamValue = unknown, TParamConfiguration = unknown, TParamSetValue = TParamValue, TIntegrationConfiguration = unknown> = MeshLocationCore<TParamValue | undefined, ParamTypeLocationMetadata<TParamConfiguration, TIntegrationConfiguration>, TParamSetValue, 'paramType'> & {
1016
989
  /**
@@ -1128,7 +1101,7 @@ type CloseDialogMessage = {
1128
1101
  dialogType: DialogType;
1129
1102
  dialogData?: unknown;
1130
1103
  };
1131
- type GetDataResourceMessage = Pick<DataType, 'path' | 'headers' | 'parameters' | 'body' | 'method'>;
1104
+ type GetDataResourceMessage = Pick<DataType, 'path' | 'archetype' | 'headers' | 'parameters' | 'body' | 'method'>;
1132
1105
  /** Primitive data types that a parameter type accepts to be bound to composition data */
1133
1106
  type BindableTypes = 'string' | 'number' | 'boolean' | 'object' | 'array';
1134
1107
  /** Message to parent to create a data connection expression to insert in a param type */
@@ -1251,9 +1224,13 @@ type AIGenerateLocationMetadata<TIntegrationConfiguration = unknown> = {
1251
1224
  projectId: string;
1252
1225
  prompt: string;
1253
1226
  promptMetadata: Record<string, unknown>;
1227
+ /** Useful to differentiate AI Generate UI between text and image */
1228
+ promptOutputType: 'text' | 'image';
1254
1229
  };
1255
1230
  type PromptSettingsLocationMetadata<TIntegrationConfiguration = unknown> = {
1256
1231
  settings: TIntegrationConfiguration;
1232
+ /** Useful to differentiate metadata settings between text and image generation */
1233
+ promptOutputType: 'text' | 'image';
1257
1234
  };
1258
1235
  type AIGenerateLocation<TType> = MeshLocationCore<TType, AIGenerateLocationMetadata, TType, 'aiGenerate'>;
1259
1236
  type AIPromptMetadataLocation = MeshLocationCore<Record<string, unknown>, PromptSettingsLocationMetadata, Record<string, unknown>, 'aiMetadata'>;
@@ -1364,4 +1341,4 @@ declare function initializeUniformMeshSDK({ autoResizingDisabled, }?: {
1364
1341
  autoResizingDisabled?: boolean;
1365
1342
  }): Promise<UniformMeshSDK | undefined>;
1366
1343
 
1367
- export { AIGenerateLocation, AIGenerateLocationMetadata, AIPromptMetadataLocation, AssetLibraryLocation, AssetLibraryLocationMetadata, AssetParamValue, AssetParamValueItem, AssetParameterLocation, AssetParameterLocationMetadata, BindableTypes, CSSHeight, CloseDialogMessage, CloseLocationDialogOptions, DataConnectorInfo, DataResourceLocation, DataResourceLocationMetadata, DataSourceLocation, DataSourceLocationMetadata, DataSourceLocationValue, DataTypeLocation, DataTypeLocationMetadata, DataTypeLocationValue, DialogContext, DialogOptions, DialogParamValue, DialogParams, DialogResponseData, DialogResponseHandler, DialogResponseHandlers, DialogType, DynamicInput, DynamicInputs, EditConnectedDataMessage, EditConnectedDataResponse, EditConnectedDataResponseCancellationContext, GetDataResourceLocation, GetDataResourceMessage, IntegrationDefinitionClient, IntegrationDefinitionDeleteParameters, IntegrationDefinitionGetParameters, IntegrationDefinitionGetResponse, IntegrationDefinitionPutParameters, IntegrationDefinitionPutResponse, IntegrationInstallationClient, IntegrationInstallationDeleteParameters, IntegrationInstallationGetParameters, IntegrationInstallationGetResponse, IntegrationInstallationPutParameters, LocationDialogResponse, MeshContextData, MeshLocation, MeshLocationCore, MeshLocationTypes, MeshSDKEventInterface, OpenConfirmationDialogOptions, OpenConfirmationDialogResult, OpenDialogMessage, OpenDialogResult, OpenLocationDialogOptions, ParamTypeConfigLocation, ParamTypeConfigLocationMetadata, ParamTypeLocation, ParamTypeLocationMetadata, PromptSettingsLocationMetadata, SdkWindow, SetLocationFunction, SetValueMessage, SetValueOptions, SettingsLocation, SettingsLocationMetadata, UniformMeshSDK, UniformMeshSDKEvents, ValidationResult, initializeUniformMeshSDK };
1344
+ export { type AIGenerateLocation, type AIGenerateLocationMetadata, type AIPromptMetadataLocation, type AssetLibraryLocation, type AssetLibraryLocationMetadata, type AssetParameterLocation, type AssetParameterLocationMetadata, type BindableTypes, type CSSHeight, type CloseDialogMessage, type CloseLocationDialogOptions, 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 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 MeshSDKEventInterface, type OpenConfirmationDialogOptions, type OpenConfirmationDialogResult, type OpenDialogMessage, type OpenDialogResult, type OpenLocationDialogOptions, type ParamTypeConfigLocation, type ParamTypeConfigLocationMetadata, type ParamTypeLocation, type ParamTypeLocationMetadata, type PromptSettingsLocationMetadata, type SdkWindow, type SetLocationFunction, type SetValueMessage, type SetValueOptions, type SettingsLocation, type SettingsLocationMetadata, type UniformMeshSDK, type UniformMeshSDKEvents, type ValidationResult, initializeUniformMeshSDK };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import { ApiClient, ClientOptions, ExceptProject } from '@uniformdev/context/api';
2
2
  import { ProjectMapNode } from '@uniformdev/project-map';
3
- import { ComponentOverride, DataType, DataSource, DataResourceVariables, RootComponentInstance, ComponentInstance, ComponentDefinition, ComponentDefinitionParameter, DataVariableDefinition } from '@uniformdev/canvas';
3
+ import { AssetParamValue, DataType, DataSource, DataResourceVariables, RootComponentInstance, ComponentInstance, ComponentDefinition, ComponentDefinitionParameter, DataVariableDefinition } from '@uniformdev/canvas';
4
+ export { AssetParamValue, AssetParamValueItem } from '@uniformdev/canvas';
4
5
  import { Emitter } from 'mitt';
5
6
 
6
7
  /**
@@ -63,6 +64,8 @@ interface paths$1 {
63
64
  };
64
65
  };
65
66
  renderableInPropertyPanel?: boolean;
67
+ /** @enum {string} */
68
+ localizable?: "default-yes" | "default-no" | "yes" | "no";
66
69
  }[];
67
70
  };
68
71
  dataConnectors?: {
@@ -102,6 +105,14 @@ interface paths$1 {
102
105
  singleAssetArchetypeId: string;
103
106
  };
104
107
  };
108
+ unstable_assetLibrary?: {
109
+ url: string;
110
+ dynamicAssets?: {
111
+ dataConnectorId: string;
112
+ assetsListArchetypeId: string;
113
+ singleAssetArchetypeId: string;
114
+ };
115
+ };
105
116
  ai?: {
106
117
  generateUrl: string;
107
118
  metadataUrl?: string;
@@ -119,7 +130,7 @@ interface paths$1 {
119
130
  default?: string | null;
120
131
  };
121
132
  } | null;
122
- metadata?: unknown;
133
+ metadata?: unknown | null;
123
134
  } | null;
124
135
  parameterTypes: string[];
125
136
  }[];
@@ -143,7 +154,7 @@ interface paths$1 {
143
154
  default?: string | null;
144
155
  };
145
156
  } | null;
146
- metadata?: unknown;
157
+ metadata?: unknown | null;
147
158
  } | null;
148
159
  parameterTypes: string[];
149
160
  }[];
@@ -204,6 +215,8 @@ interface paths$1 {
204
215
  };
205
216
  };
206
217
  renderableInPropertyPanel?: boolean;
218
+ /** @enum {string} */
219
+ localizable?: "default-yes" | "default-no" | "yes" | "no";
207
220
  }[];
208
221
  };
209
222
  dataConnectors?: {
@@ -243,6 +256,14 @@ interface paths$1 {
243
256
  singleAssetArchetypeId: string;
244
257
  };
245
258
  };
259
+ unstable_assetLibrary?: {
260
+ url: string;
261
+ dynamicAssets?: {
262
+ dataConnectorId: string;
263
+ assetsListArchetypeId: string;
264
+ singleAssetArchetypeId: string;
265
+ };
266
+ };
246
267
  ai?: {
247
268
  generateUrl: string;
248
269
  metadataUrl?: string;
@@ -260,7 +281,7 @@ interface paths$1 {
260
281
  default?: string | null;
261
282
  };
262
283
  } | null;
263
- metadata?: unknown;
284
+ metadata?: unknown | null;
264
285
  } | null;
265
286
  parameterTypes: string[];
266
287
  }[];
@@ -284,7 +305,7 @@ interface paths$1 {
284
305
  default?: string | null;
285
306
  };
286
307
  } | null;
287
- metadata?: unknown;
308
+ metadata?: unknown | null;
288
309
  } | null;
289
310
  parameterTypes: string[];
290
311
  }[];
@@ -344,6 +365,8 @@ interface paths$1 {
344
365
  };
345
366
  };
346
367
  renderableInPropertyPanel?: boolean;
368
+ /** @enum {string} */
369
+ localizable?: "default-yes" | "default-no" | "yes" | "no";
347
370
  }[];
348
371
  };
349
372
  dataConnectors?: {
@@ -383,6 +406,14 @@ interface paths$1 {
383
406
  singleAssetArchetypeId: string;
384
407
  };
385
408
  };
409
+ unstable_assetLibrary?: {
410
+ url: string;
411
+ dynamicAssets?: {
412
+ dataConnectorId: string;
413
+ assetsListArchetypeId: string;
414
+ singleAssetArchetypeId: string;
415
+ };
416
+ };
386
417
  ai?: {
387
418
  generateUrl: string;
388
419
  metadataUrl?: string;
@@ -400,7 +431,7 @@ interface paths$1 {
400
431
  default?: string | null;
401
432
  };
402
433
  } | null;
403
- metadata?: unknown;
434
+ metadata?: unknown | null;
404
435
  } | null;
405
436
  parameterTypes: string[];
406
437
  }[];
@@ -424,7 +455,7 @@ interface paths$1 {
424
455
  default?: string | null;
425
456
  };
426
457
  } | null;
427
- metadata?: unknown;
458
+ metadata?: unknown | null;
428
459
  } | null;
429
460
  parameterTypes: string[];
430
461
  }[];
@@ -733,6 +764,7 @@ declare class IntegrationDefinitionClient extends ApiClient<DefClientOptions> {
733
764
  };
734
765
  } | undefined;
735
766
  renderableInPropertyPanel?: boolean | undefined;
767
+ localizable?: "default-yes" | "default-no" | "yes" | "no" | undefined;
736
768
  }[];
737
769
  } | undefined;
738
770
  dataConnectors?: {
@@ -772,6 +804,14 @@ declare class IntegrationDefinitionClient extends ApiClient<DefClientOptions> {
772
804
  singleAssetArchetypeId: string;
773
805
  } | undefined;
774
806
  } | undefined;
807
+ unstable_assetLibrary?: {
808
+ url: string;
809
+ dynamicAssets?: {
810
+ dataConnectorId: string;
811
+ assetsListArchetypeId: string;
812
+ singleAssetArchetypeId: string;
813
+ } | undefined;
814
+ } | undefined;
775
815
  ai?: {
776
816
  generateUrl: string;
777
817
  metadataUrl?: string | undefined;
@@ -860,80 +900,6 @@ type AssetParameterLocationMetadata<TIntegrationConfiguration = unknown> = {
860
900
  */
861
901
  maxAssets?: number;
862
902
  };
863
- type AssetParamValue = AssetParamValueItem[];
864
- type AssetParamValueItem = {
865
- type: string;
866
- _id: string;
867
- /**
868
- * Internal Uniform source ID or
869
- * dataType ID of the global integration library
870
- * which created this asset item
871
- */
872
- _source?: string;
873
- fields: {
874
- url: {
875
- type: 'text';
876
- value: string;
877
- };
878
- id?: {
879
- type: 'text';
880
- value: string | undefined;
881
- };
882
- title?: {
883
- type: 'text';
884
- value: string | undefined;
885
- };
886
- description?: {
887
- type: 'text';
888
- value: string | undefined;
889
- };
890
- mediaType?: {
891
- type: 'text';
892
- value: string | undefined;
893
- };
894
- /**
895
- * The width of the original asset
896
- *
897
- * Should resolve to a number but might
898
- * be a string with a pointer reference
899
- */
900
- width?: {
901
- type: 'number';
902
- value: number | string | undefined;
903
- };
904
- /**
905
- * The height of the original asset
906
- *
907
- * Should resolve to a number but might
908
- * be a string with a pointer reference
909
- */
910
- height?: {
911
- type: 'number';
912
- value: number | string | undefined;
913
- };
914
- /**
915
- * The size in bytes of the original asset
916
- *
917
- * Should resolve to a number but might
918
- * be a string with a pointer reference
919
- */
920
- size?: {
921
- type: 'number';
922
- value: number | string | undefined;
923
- };
924
- /**
925
- * Any key/value properties which the source
926
- * wants to attach to the asset data
927
- */
928
- custom?: {
929
- type: string;
930
- value: Record<string, unknown>;
931
- };
932
- };
933
- _overrides?: {
934
- fields: ComponentOverride['parameters'];
935
- };
936
- };
937
903
  type AssetLibraryLocation = MeshLocationCore<unknown, AssetLibraryLocationMetadata, unknown, 'assetLibrary'> & GetDataResourceLocation;
938
904
  type AssetParameterLocation = MeshLocationCore<AssetParamValue, AssetParameterLocationMetadata, AssetParamValue, 'assetParameter'> & GetDataResourceLocation;
939
905
 
@@ -978,7 +944,7 @@ type DataResourceLocationMetadata<TIntegrationConfiguration = unknown> = {
978
944
  };
979
945
  type DataResourceLocation = MeshLocationCore<DataResourceVariables, DataResourceLocationMetadata, DataResourceVariables, 'dataResource'> & GetDataResourceLocation;
980
946
 
981
- type DataSourceLocationValue = Pick<DataSource, 'baseUrl' | 'custom' | 'headers' | 'parameters' | 'variables'>;
947
+ type DataSourceLocationValue = Pick<DataSource, 'baseUrl' | 'custom' | 'customPublic' | 'headers' | 'parameters' | 'variables'>;
982
948
  type DataSourceLocationMetadata<TIntegrationConfiguration = unknown> = {
983
949
  /** Settings defined at the integration level (arbitrary type used on settings location) */
984
950
  settings: TIntegrationConfiguration;
@@ -1011,6 +977,13 @@ type ParamTypeLocationMetadata<TParamConfiguration = unknown, TIntegrationConfig
1011
977
  * Use the <ParamTypeDynamicDataProvider> to wire up dynamic data in your parameter.
1012
978
  */
1013
979
  connectedData: Record<string, unknown>;
980
+ /**
981
+ * The target locale being edited.
982
+ * If the parameter is not defined as localizable, then this is always undefined.
983
+ * If the parameter is localizable, then this is the current editor language.
984
+ * Note that setValue() always sets the target language automatically.
985
+ */
986
+ targetLocale: string | undefined;
1014
987
  };
1015
988
  type ParamTypeLocation<TParamValue = unknown, TParamConfiguration = unknown, TParamSetValue = TParamValue, TIntegrationConfiguration = unknown> = MeshLocationCore<TParamValue | undefined, ParamTypeLocationMetadata<TParamConfiguration, TIntegrationConfiguration>, TParamSetValue, 'paramType'> & {
1016
989
  /**
@@ -1128,7 +1101,7 @@ type CloseDialogMessage = {
1128
1101
  dialogType: DialogType;
1129
1102
  dialogData?: unknown;
1130
1103
  };
1131
- type GetDataResourceMessage = Pick<DataType, 'path' | 'headers' | 'parameters' | 'body' | 'method'>;
1104
+ type GetDataResourceMessage = Pick<DataType, 'path' | 'archetype' | 'headers' | 'parameters' | 'body' | 'method'>;
1132
1105
  /** Primitive data types that a parameter type accepts to be bound to composition data */
1133
1106
  type BindableTypes = 'string' | 'number' | 'boolean' | 'object' | 'array';
1134
1107
  /** Message to parent to create a data connection expression to insert in a param type */
@@ -1251,9 +1224,13 @@ type AIGenerateLocationMetadata<TIntegrationConfiguration = unknown> = {
1251
1224
  projectId: string;
1252
1225
  prompt: string;
1253
1226
  promptMetadata: Record<string, unknown>;
1227
+ /** Useful to differentiate AI Generate UI between text and image */
1228
+ promptOutputType: 'text' | 'image';
1254
1229
  };
1255
1230
  type PromptSettingsLocationMetadata<TIntegrationConfiguration = unknown> = {
1256
1231
  settings: TIntegrationConfiguration;
1232
+ /** Useful to differentiate metadata settings between text and image generation */
1233
+ promptOutputType: 'text' | 'image';
1257
1234
  };
1258
1235
  type AIGenerateLocation<TType> = MeshLocationCore<TType, AIGenerateLocationMetadata, TType, 'aiGenerate'>;
1259
1236
  type AIPromptMetadataLocation = MeshLocationCore<Record<string, unknown>, PromptSettingsLocationMetadata, Record<string, unknown>, 'aiMetadata'>;
@@ -1364,4 +1341,4 @@ declare function initializeUniformMeshSDK({ autoResizingDisabled, }?: {
1364
1341
  autoResizingDisabled?: boolean;
1365
1342
  }): Promise<UniformMeshSDK | undefined>;
1366
1343
 
1367
- export { AIGenerateLocation, AIGenerateLocationMetadata, AIPromptMetadataLocation, AssetLibraryLocation, AssetLibraryLocationMetadata, AssetParamValue, AssetParamValueItem, AssetParameterLocation, AssetParameterLocationMetadata, BindableTypes, CSSHeight, CloseDialogMessage, CloseLocationDialogOptions, DataConnectorInfo, DataResourceLocation, DataResourceLocationMetadata, DataSourceLocation, DataSourceLocationMetadata, DataSourceLocationValue, DataTypeLocation, DataTypeLocationMetadata, DataTypeLocationValue, DialogContext, DialogOptions, DialogParamValue, DialogParams, DialogResponseData, DialogResponseHandler, DialogResponseHandlers, DialogType, DynamicInput, DynamicInputs, EditConnectedDataMessage, EditConnectedDataResponse, EditConnectedDataResponseCancellationContext, GetDataResourceLocation, GetDataResourceMessage, IntegrationDefinitionClient, IntegrationDefinitionDeleteParameters, IntegrationDefinitionGetParameters, IntegrationDefinitionGetResponse, IntegrationDefinitionPutParameters, IntegrationDefinitionPutResponse, IntegrationInstallationClient, IntegrationInstallationDeleteParameters, IntegrationInstallationGetParameters, IntegrationInstallationGetResponse, IntegrationInstallationPutParameters, LocationDialogResponse, MeshContextData, MeshLocation, MeshLocationCore, MeshLocationTypes, MeshSDKEventInterface, OpenConfirmationDialogOptions, OpenConfirmationDialogResult, OpenDialogMessage, OpenDialogResult, OpenLocationDialogOptions, ParamTypeConfigLocation, ParamTypeConfigLocationMetadata, ParamTypeLocation, ParamTypeLocationMetadata, PromptSettingsLocationMetadata, SdkWindow, SetLocationFunction, SetValueMessage, SetValueOptions, SettingsLocation, SettingsLocationMetadata, UniformMeshSDK, UniformMeshSDKEvents, ValidationResult, initializeUniformMeshSDK };
1344
+ export { type AIGenerateLocation, type AIGenerateLocationMetadata, type AIPromptMetadataLocation, type AssetLibraryLocation, type AssetLibraryLocationMetadata, type AssetParameterLocation, type AssetParameterLocationMetadata, type BindableTypes, type CSSHeight, type CloseDialogMessage, type CloseLocationDialogOptions, 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 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 MeshSDKEventInterface, type OpenConfirmationDialogOptions, type OpenConfirmationDialogResult, type OpenDialogMessage, type OpenDialogResult, type OpenLocationDialogOptions, type ParamTypeConfigLocation, type ParamTypeConfigLocationMetadata, type ParamTypeLocation, type ParamTypeLocationMetadata, type PromptSettingsLocationMetadata, type SdkWindow, type SetLocationFunction, type SetValueMessage, type SetValueOptions, type SettingsLocation, type SettingsLocationMetadata, type UniformMeshSDK, type UniformMeshSDKEvents, type ValidationResult, initializeUniformMeshSDK };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/mesh-sdk",
3
- "version": "19.79.1-alpha.11+4547ef846",
3
+ "version": "19.79.1-alpha.13+608a273da",
4
4
  "description": "Uniform Mesh Framework SDK",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -33,14 +33,14 @@
33
33
  "access": "public"
34
34
  },
35
35
  "dependencies": {
36
- "@uniformdev/canvas": "19.79.1-alpha.11+4547ef846",
37
- "@uniformdev/context": "19.79.1-alpha.11+4547ef846",
38
- "@uniformdev/project-map": "19.79.1-alpha.11+4547ef846",
36
+ "@uniformdev/canvas": "19.79.1-alpha.13+608a273da",
37
+ "@uniformdev/context": "19.79.1-alpha.13+608a273da",
38
+ "@uniformdev/project-map": "19.79.1-alpha.13+608a273da",
39
39
  "imagesloaded": "^5.0.0",
40
40
  "mitt": "^3.0.0"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/imagesloaded": "^4.1.2"
44
44
  },
45
- "gitHead": "4547ef8469f21f7f2341bcd87203372c4646bc08"
45
+ "gitHead": "608a273da87aa432f17b2c8ce15d747dadab0cd1"
46
46
  }