@uniformdev/mesh-sdk 19.151.1-alpha.3 → 19.151.2-alpha.16
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 +17 -12
- package/dist/index.d.ts +17 -12
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -68,7 +68,7 @@ interface paths$1 {
|
|
|
68
68
|
/** @enum {string} */
|
|
69
69
|
localizable?: "default-yes" | "default-no" | "yes" | "no";
|
|
70
70
|
}[];
|
|
71
|
-
|
|
71
|
+
editorTools?: {
|
|
72
72
|
url: string;
|
|
73
73
|
};
|
|
74
74
|
};
|
|
@@ -223,7 +223,7 @@ interface paths$1 {
|
|
|
223
223
|
/** @enum {string} */
|
|
224
224
|
localizable?: "default-yes" | "default-no" | "yes" | "no";
|
|
225
225
|
}[];
|
|
226
|
-
|
|
226
|
+
editorTools?: {
|
|
227
227
|
url: string;
|
|
228
228
|
};
|
|
229
229
|
};
|
|
@@ -331,7 +331,7 @@ interface paths$1 {
|
|
|
331
331
|
"application/json": {
|
|
332
332
|
/**
|
|
333
333
|
* Format: uuid
|
|
334
|
-
* @description The team ID
|
|
334
|
+
* @description The team ID.
|
|
335
335
|
*/
|
|
336
336
|
teamId: string;
|
|
337
337
|
data: {
|
|
@@ -377,7 +377,7 @@ interface paths$1 {
|
|
|
377
377
|
/** @enum {string} */
|
|
378
378
|
localizable?: "default-yes" | "default-no" | "yes" | "no";
|
|
379
379
|
}[];
|
|
380
|
-
|
|
380
|
+
editorTools?: {
|
|
381
381
|
url: string;
|
|
382
382
|
};
|
|
383
383
|
};
|
|
@@ -779,7 +779,7 @@ declare class IntegrationDefinitionClient extends ApiClient<DefClientOptions> {
|
|
|
779
779
|
renderableInPropertyPanel?: boolean | undefined;
|
|
780
780
|
localizable?: "default-yes" | "default-no" | "yes" | "no" | undefined;
|
|
781
781
|
}[];
|
|
782
|
-
|
|
782
|
+
editorTools?: {
|
|
783
783
|
url: string;
|
|
784
784
|
} | undefined;
|
|
785
785
|
} | undefined;
|
|
@@ -996,7 +996,7 @@ type SettingsLocation<TSettingsType> = MeshLocationCore<TSettingsType, SettingsL
|
|
|
996
996
|
* Defines methods used for interacting with a Mesh location
|
|
997
997
|
* To receive useful typings, check the `type` property of the location to narrow the typing.
|
|
998
998
|
*/
|
|
999
|
-
type MeshLocation<TValue = unknown, TSetValue = TValue> = ParamTypeLocation<TValue, unknown, TSetValue> | ParamTypeConfigLocation<TValue> | SettingsLocation<TValue> | AssetLibraryLocation | AssetParameterLocation | DataSourceLocation | DataTypeLocation | DataResourceLocation |
|
|
999
|
+
type MeshLocation<TValue = unknown, TSetValue = TValue> = ParamTypeLocation<TValue, unknown, TSetValue> | ParamTypeConfigLocation<TValue> | SettingsLocation<TValue> | AssetLibraryLocation | AssetParameterLocation | DataSourceLocation | DataTypeLocation | DataResourceLocation | CanvasEditorToolsLocation | AIGenerateLocation<TValue> | AIPromptMetadataLocation;
|
|
1000
1000
|
interface MeshContextData {
|
|
1001
1001
|
locationKey: string;
|
|
1002
1002
|
locationType: MeshLocationTypes;
|
|
@@ -1217,6 +1217,8 @@ type CommonMetadata<ExtendedMetadata = unknown, TIntegrationConfiguration = unkn
|
|
|
1217
1217
|
user: UniformUser;
|
|
1218
1218
|
/** Current Uniform Project ID */
|
|
1219
1219
|
projectId: string;
|
|
1220
|
+
/** Current Uniform Dashboard URL origin. Can be useful to build links to the Uniform app */
|
|
1221
|
+
dashboardOrigin: string;
|
|
1220
1222
|
/** Settings defined at the integration level (arbitrary type used on settings location) */
|
|
1221
1223
|
settings: TIntegrationConfiguration;
|
|
1222
1224
|
} & ExtendedMetadata;
|
|
@@ -1300,7 +1302,7 @@ type MeshLocationUserPermissions =
|
|
|
1300
1302
|
/**
|
|
1301
1303
|
* Known location types that can be passed to a mesh location
|
|
1302
1304
|
*/
|
|
1303
|
-
type MeshLocationTypes = 'paramType' | 'paramTypeConfig' | 'assetLibrary' | 'assetParameter' | 'settings' | 'dataSource' | 'dataType' | 'dataResource' | 'aiGenerate' | '
|
|
1305
|
+
type MeshLocationTypes = 'paramType' | 'paramTypeConfig' | 'assetLibrary' | 'assetParameter' | 'settings' | 'dataSource' | 'dataType' | 'dataResource' | 'aiGenerate' | 'canvasEditorTools' | 'aiMetadata';
|
|
1304
1306
|
type SetValueOptions = ValidationResult;
|
|
1305
1307
|
type SetValueMessage = {
|
|
1306
1308
|
uniformMeshLocationValue: unknown;
|
|
@@ -1339,7 +1341,7 @@ type PromptSettingsLocationMetadata<TIntegrationConfiguration = unknown> = Commo
|
|
|
1339
1341
|
type AIGenerateLocation<TType> = MeshLocationCore<TType, AIGenerateLocationMetadata, TType, 'aiGenerate'>;
|
|
1340
1342
|
type AIPromptMetadataLocation = MeshLocationCore<Record<string, unknown>, PromptSettingsLocationMetadata, Record<string, unknown>, 'aiMetadata'>;
|
|
1341
1343
|
|
|
1342
|
-
type
|
|
1344
|
+
type CanvasEditorToolsLocationMetadata<TIntegrationConfiguration = unknown> = CommonMetadata<{
|
|
1343
1345
|
releaseId?: string;
|
|
1344
1346
|
state?: number;
|
|
1345
1347
|
locales: {
|
|
@@ -1348,14 +1350,17 @@ type CanvasEditorSideRailLocationMetadata<TIntegrationConfiguration = unknown> =
|
|
|
1348
1350
|
isDefault: boolean;
|
|
1349
1351
|
}[];
|
|
1350
1352
|
}, TIntegrationConfiguration>;
|
|
1351
|
-
type
|
|
1353
|
+
type CanvasEditorToolsData = {
|
|
1354
|
+
patternNamesIndex?: Record<string, string>;
|
|
1355
|
+
entryNamesIndex?: Record<string, string>;
|
|
1356
|
+
} & ({
|
|
1352
1357
|
rootEntity: RootComponentInstance;
|
|
1353
1358
|
type: 'composition';
|
|
1354
1359
|
} | {
|
|
1355
1360
|
rootEntity: EntryData;
|
|
1356
1361
|
type: 'entry';
|
|
1357
|
-
};
|
|
1358
|
-
type
|
|
1362
|
+
});
|
|
1363
|
+
type CanvasEditorToolsLocation = MeshLocationCore<CanvasEditorToolsData, CanvasEditorToolsLocationMetadata, CanvasEditorToolsData, 'canvasEditorTools'> & GetDataResourceLocation;
|
|
1359
1364
|
|
|
1360
1365
|
type ParamTypeConfigLocationMetadata<TIntegrationConfiguration = unknown> = CommonMetadata<{
|
|
1361
1366
|
/** The Uniform project ID */
|
|
@@ -1466,4 +1471,4 @@ declare const hasPermissions: (permissions: MeshLocationUserPermissions | MeshLo
|
|
|
1466
1471
|
*/
|
|
1467
1472
|
declare const hasRole: (role: string, user: UniformUser) => boolean;
|
|
1468
1473
|
|
|
1469
|
-
export { type AIGenerateLocation, type AIGenerateLocationMetadata, type AIPromptMetadataLocation, type AssetLibraryLocation, type AssetLibraryLocationMetadata, type AssetParameterLocation, type AssetParameterLocationMetadata, type BindableTypes, type CSSHeight, type
|
|
1474
|
+
export { type AIGenerateLocation, type AIGenerateLocationMetadata, type AIPromptMetadataLocation, type AssetLibraryLocation, type AssetLibraryLocationMetadata, type AssetParameterLocation, type AssetParameterLocationMetadata, type BindableTypes, type CSSHeight, 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 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 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 UniformUser, type ValidationResult, hasPermissions, hasRole, initializeUniformMeshSDK };
|
package/dist/index.d.ts
CHANGED
|
@@ -68,7 +68,7 @@ interface paths$1 {
|
|
|
68
68
|
/** @enum {string} */
|
|
69
69
|
localizable?: "default-yes" | "default-no" | "yes" | "no";
|
|
70
70
|
}[];
|
|
71
|
-
|
|
71
|
+
editorTools?: {
|
|
72
72
|
url: string;
|
|
73
73
|
};
|
|
74
74
|
};
|
|
@@ -223,7 +223,7 @@ interface paths$1 {
|
|
|
223
223
|
/** @enum {string} */
|
|
224
224
|
localizable?: "default-yes" | "default-no" | "yes" | "no";
|
|
225
225
|
}[];
|
|
226
|
-
|
|
226
|
+
editorTools?: {
|
|
227
227
|
url: string;
|
|
228
228
|
};
|
|
229
229
|
};
|
|
@@ -331,7 +331,7 @@ interface paths$1 {
|
|
|
331
331
|
"application/json": {
|
|
332
332
|
/**
|
|
333
333
|
* Format: uuid
|
|
334
|
-
* @description The team ID
|
|
334
|
+
* @description The team ID.
|
|
335
335
|
*/
|
|
336
336
|
teamId: string;
|
|
337
337
|
data: {
|
|
@@ -377,7 +377,7 @@ interface paths$1 {
|
|
|
377
377
|
/** @enum {string} */
|
|
378
378
|
localizable?: "default-yes" | "default-no" | "yes" | "no";
|
|
379
379
|
}[];
|
|
380
|
-
|
|
380
|
+
editorTools?: {
|
|
381
381
|
url: string;
|
|
382
382
|
};
|
|
383
383
|
};
|
|
@@ -779,7 +779,7 @@ declare class IntegrationDefinitionClient extends ApiClient<DefClientOptions> {
|
|
|
779
779
|
renderableInPropertyPanel?: boolean | undefined;
|
|
780
780
|
localizable?: "default-yes" | "default-no" | "yes" | "no" | undefined;
|
|
781
781
|
}[];
|
|
782
|
-
|
|
782
|
+
editorTools?: {
|
|
783
783
|
url: string;
|
|
784
784
|
} | undefined;
|
|
785
785
|
} | undefined;
|
|
@@ -996,7 +996,7 @@ type SettingsLocation<TSettingsType> = MeshLocationCore<TSettingsType, SettingsL
|
|
|
996
996
|
* Defines methods used for interacting with a Mesh location
|
|
997
997
|
* To receive useful typings, check the `type` property of the location to narrow the typing.
|
|
998
998
|
*/
|
|
999
|
-
type MeshLocation<TValue = unknown, TSetValue = TValue> = ParamTypeLocation<TValue, unknown, TSetValue> | ParamTypeConfigLocation<TValue> | SettingsLocation<TValue> | AssetLibraryLocation | AssetParameterLocation | DataSourceLocation | DataTypeLocation | DataResourceLocation |
|
|
999
|
+
type MeshLocation<TValue = unknown, TSetValue = TValue> = ParamTypeLocation<TValue, unknown, TSetValue> | ParamTypeConfigLocation<TValue> | SettingsLocation<TValue> | AssetLibraryLocation | AssetParameterLocation | DataSourceLocation | DataTypeLocation | DataResourceLocation | CanvasEditorToolsLocation | AIGenerateLocation<TValue> | AIPromptMetadataLocation;
|
|
1000
1000
|
interface MeshContextData {
|
|
1001
1001
|
locationKey: string;
|
|
1002
1002
|
locationType: MeshLocationTypes;
|
|
@@ -1217,6 +1217,8 @@ type CommonMetadata<ExtendedMetadata = unknown, TIntegrationConfiguration = unkn
|
|
|
1217
1217
|
user: UniformUser;
|
|
1218
1218
|
/** Current Uniform Project ID */
|
|
1219
1219
|
projectId: string;
|
|
1220
|
+
/** Current Uniform Dashboard URL origin. Can be useful to build links to the Uniform app */
|
|
1221
|
+
dashboardOrigin: string;
|
|
1220
1222
|
/** Settings defined at the integration level (arbitrary type used on settings location) */
|
|
1221
1223
|
settings: TIntegrationConfiguration;
|
|
1222
1224
|
} & ExtendedMetadata;
|
|
@@ -1300,7 +1302,7 @@ type MeshLocationUserPermissions =
|
|
|
1300
1302
|
/**
|
|
1301
1303
|
* Known location types that can be passed to a mesh location
|
|
1302
1304
|
*/
|
|
1303
|
-
type MeshLocationTypes = 'paramType' | 'paramTypeConfig' | 'assetLibrary' | 'assetParameter' | 'settings' | 'dataSource' | 'dataType' | 'dataResource' | 'aiGenerate' | '
|
|
1305
|
+
type MeshLocationTypes = 'paramType' | 'paramTypeConfig' | 'assetLibrary' | 'assetParameter' | 'settings' | 'dataSource' | 'dataType' | 'dataResource' | 'aiGenerate' | 'canvasEditorTools' | 'aiMetadata';
|
|
1304
1306
|
type SetValueOptions = ValidationResult;
|
|
1305
1307
|
type SetValueMessage = {
|
|
1306
1308
|
uniformMeshLocationValue: unknown;
|
|
@@ -1339,7 +1341,7 @@ type PromptSettingsLocationMetadata<TIntegrationConfiguration = unknown> = Commo
|
|
|
1339
1341
|
type AIGenerateLocation<TType> = MeshLocationCore<TType, AIGenerateLocationMetadata, TType, 'aiGenerate'>;
|
|
1340
1342
|
type AIPromptMetadataLocation = MeshLocationCore<Record<string, unknown>, PromptSettingsLocationMetadata, Record<string, unknown>, 'aiMetadata'>;
|
|
1341
1343
|
|
|
1342
|
-
type
|
|
1344
|
+
type CanvasEditorToolsLocationMetadata<TIntegrationConfiguration = unknown> = CommonMetadata<{
|
|
1343
1345
|
releaseId?: string;
|
|
1344
1346
|
state?: number;
|
|
1345
1347
|
locales: {
|
|
@@ -1348,14 +1350,17 @@ type CanvasEditorSideRailLocationMetadata<TIntegrationConfiguration = unknown> =
|
|
|
1348
1350
|
isDefault: boolean;
|
|
1349
1351
|
}[];
|
|
1350
1352
|
}, TIntegrationConfiguration>;
|
|
1351
|
-
type
|
|
1353
|
+
type CanvasEditorToolsData = {
|
|
1354
|
+
patternNamesIndex?: Record<string, string>;
|
|
1355
|
+
entryNamesIndex?: Record<string, string>;
|
|
1356
|
+
} & ({
|
|
1352
1357
|
rootEntity: RootComponentInstance;
|
|
1353
1358
|
type: 'composition';
|
|
1354
1359
|
} | {
|
|
1355
1360
|
rootEntity: EntryData;
|
|
1356
1361
|
type: 'entry';
|
|
1357
|
-
};
|
|
1358
|
-
type
|
|
1362
|
+
});
|
|
1363
|
+
type CanvasEditorToolsLocation = MeshLocationCore<CanvasEditorToolsData, CanvasEditorToolsLocationMetadata, CanvasEditorToolsData, 'canvasEditorTools'> & GetDataResourceLocation;
|
|
1359
1364
|
|
|
1360
1365
|
type ParamTypeConfigLocationMetadata<TIntegrationConfiguration = unknown> = CommonMetadata<{
|
|
1361
1366
|
/** The Uniform project ID */
|
|
@@ -1466,4 +1471,4 @@ declare const hasPermissions: (permissions: MeshLocationUserPermissions | MeshLo
|
|
|
1466
1471
|
*/
|
|
1467
1472
|
declare const hasRole: (role: string, user: UniformUser) => boolean;
|
|
1468
1473
|
|
|
1469
|
-
export { type AIGenerateLocation, type AIGenerateLocationMetadata, type AIPromptMetadataLocation, type AssetLibraryLocation, type AssetLibraryLocationMetadata, type AssetParameterLocation, type AssetParameterLocationMetadata, type BindableTypes, type CSSHeight, type
|
|
1474
|
+
export { type AIGenerateLocation, type AIGenerateLocationMetadata, type AIPromptMetadataLocation, type AssetLibraryLocation, type AssetLibraryLocationMetadata, type AssetParameterLocation, type AssetParameterLocationMetadata, type BindableTypes, type CSSHeight, 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 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 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 UniformUser, type ValidationResult, hasPermissions, hasRole, initializeUniformMeshSDK };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/mesh-sdk",
|
|
3
|
-
"version": "19.151.
|
|
3
|
+
"version": "19.151.2-alpha.16+eb158bfedd",
|
|
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.151.
|
|
37
|
-
"@uniformdev/context": "19.151.
|
|
38
|
-
"@uniformdev/project-map": "19.151.
|
|
36
|
+
"@uniformdev/canvas": "19.151.2-alpha.16+eb158bfedd",
|
|
37
|
+
"@uniformdev/context": "19.151.2-alpha.16+eb158bfedd",
|
|
38
|
+
"@uniformdev/project-map": "19.151.2-alpha.16+eb158bfedd",
|
|
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": "
|
|
45
|
+
"gitHead": "eb158bfeddbe40a7d4aa98b489345e76aaf2930b"
|
|
46
46
|
}
|