@uniformdev/mesh-sdk 19.184.3-alpha.32 → 19.185.1-alpha.8
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 +8 -22
- package/dist/index.d.ts +8 -22
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ApiClient, ClientOptions, ExceptProject } from '@uniformdev/context/api';
|
|
2
2
|
import { ProjectMapNode } from '@uniformdev/project-map';
|
|
3
|
-
import { AssetParamValue, DataType, DataSource,
|
|
3
|
+
import { AssetParamValue, DataType, DataSource, DataResourceVariables, RootComponentInstance, ComponentInstance, ComponentDefinition, ComponentDefinitionParameter, Locale, DataVariableDefinition, EntryData } from '@uniformdev/canvas';
|
|
4
4
|
export { AssetParamValue, AssetParamValueItem } from '@uniformdev/canvas';
|
|
5
5
|
import { Emitter } from 'mitt';
|
|
6
6
|
|
|
@@ -67,6 +67,7 @@ interface paths$1 {
|
|
|
67
67
|
renderableInPropertyPanel?: boolean;
|
|
68
68
|
/** @enum {string} */
|
|
69
69
|
localizable?: "default-yes" | "default-no" | "yes" | "no";
|
|
70
|
+
allowedPlacement?: ("parameter" | "field")[];
|
|
70
71
|
}[];
|
|
71
72
|
editorTools?: {
|
|
72
73
|
composition?: {
|
|
@@ -90,7 +91,6 @@ interface paths$1 {
|
|
|
90
91
|
type: string;
|
|
91
92
|
displayName: string;
|
|
92
93
|
dataSourceEditorUrl?: string;
|
|
93
|
-
supportsUnpublishedData?: boolean;
|
|
94
94
|
dataSourceEditorLocations?: {
|
|
95
95
|
[key: string]: {
|
|
96
96
|
url: string;
|
|
@@ -242,6 +242,7 @@ interface paths$1 {
|
|
|
242
242
|
renderableInPropertyPanel?: boolean;
|
|
243
243
|
/** @enum {string} */
|
|
244
244
|
localizable?: "default-yes" | "default-no" | "yes" | "no";
|
|
245
|
+
allowedPlacement?: ("parameter" | "field")[];
|
|
245
246
|
}[];
|
|
246
247
|
editorTools?: {
|
|
247
248
|
composition?: {
|
|
@@ -265,7 +266,6 @@ interface paths$1 {
|
|
|
265
266
|
type: string;
|
|
266
267
|
displayName: string;
|
|
267
268
|
dataSourceEditorUrl?: string;
|
|
268
|
-
supportsUnpublishedData?: boolean;
|
|
269
269
|
dataSourceEditorLocations?: {
|
|
270
270
|
[key: string]: {
|
|
271
271
|
url: string;
|
|
@@ -416,6 +416,7 @@ interface paths$1 {
|
|
|
416
416
|
renderableInPropertyPanel?: boolean;
|
|
417
417
|
/** @enum {string} */
|
|
418
418
|
localizable?: "default-yes" | "default-no" | "yes" | "no";
|
|
419
|
+
allowedPlacement?: ("parameter" | "field")[];
|
|
419
420
|
}[];
|
|
420
421
|
editorTools?: {
|
|
421
422
|
composition?: {
|
|
@@ -439,7 +440,6 @@ interface paths$1 {
|
|
|
439
440
|
type: string;
|
|
440
441
|
displayName: string;
|
|
441
442
|
dataSourceEditorUrl?: string;
|
|
442
|
-
supportsUnpublishedData?: boolean;
|
|
443
443
|
dataSourceEditorLocations?: {
|
|
444
444
|
[key: string]: {
|
|
445
445
|
url: string;
|
|
@@ -838,6 +838,7 @@ declare class IntegrationDefinitionClient extends ApiClient<DefClientOptions> {
|
|
|
838
838
|
};
|
|
839
839
|
renderableInPropertyPanel?: boolean;
|
|
840
840
|
localizable?: "default-yes" | "default-no" | "yes" | "no";
|
|
841
|
+
allowedPlacement?: ("parameter" | "field")[];
|
|
841
842
|
}[];
|
|
842
843
|
editorTools?: {
|
|
843
844
|
composition?: {
|
|
@@ -861,7 +862,6 @@ declare class IntegrationDefinitionClient extends ApiClient<DefClientOptions> {
|
|
|
861
862
|
type: string;
|
|
862
863
|
displayName: string;
|
|
863
864
|
dataSourceEditorUrl?: string;
|
|
864
|
-
supportsUnpublishedData?: boolean;
|
|
865
865
|
dataSourceEditorLocations?: {
|
|
866
866
|
[key: string]: {
|
|
867
867
|
url: string;
|
|
@@ -1020,19 +1020,11 @@ type DataResourceLocationMetadata<TIntegrationConfiguration = unknown> = CommonM
|
|
|
1020
1020
|
dataConnector: DataConnectorInfo;
|
|
1021
1021
|
/** Current dynamic inputs that are configured on the composition (if any). */
|
|
1022
1022
|
dynamicInputs: DynamicInputs;
|
|
1023
|
-
/** Which Data Source variant is being resolved and used for getDataResource (unless overriden explicitly) */
|
|
1024
|
-
dataSourceVariant?: DataSourceVariantsKeys;
|
|
1025
1023
|
}, TIntegrationConfiguration>;
|
|
1026
1024
|
type DataResourceLocation = MeshLocationCore<DataResourceVariables, DataResourceLocationMetadata, DataResourceVariables, 'dataResource'> & GetDataResourceLocation;
|
|
1027
1025
|
|
|
1028
|
-
type DataSourceLocationValue = Pick<DataSource, 'baseUrl' | 'custom' | 'customPublic' | 'headers' | 'parameters' | 'variables'
|
|
1029
|
-
type DataSourceLocationMetadata<TIntegrationConfiguration = unknown> = CommonMetadata<
|
|
1030
|
-
/**
|
|
1031
|
-
* If true, the data source should provide additional configuration to support the unpublished mode and save "unpublish" Data Source variant.
|
|
1032
|
-
* E.g. inputs for Preview API Token + Preview Environment.
|
|
1033
|
-
*/
|
|
1034
|
-
enableUnpublishedMode: DataSourceLocationValue['enableUnpublishedMode'];
|
|
1035
|
-
}, TIntegrationConfiguration>;
|
|
1026
|
+
type DataSourceLocationValue = Pick<DataSource, 'baseUrl' | 'custom' | 'customPublic' | 'headers' | 'parameters' | 'variables'>;
|
|
1027
|
+
type DataSourceLocationMetadata<TIntegrationConfiguration = unknown> = CommonMetadata<unknown, TIntegrationConfiguration>;
|
|
1036
1028
|
type DataSourceLocation = MeshLocationCore<DataSourceLocationValue, DataSourceLocationMetadata, DataSourceLocationValue, 'dataSource'>;
|
|
1037
1029
|
|
|
1038
1030
|
type ParamTypeLocationMetadata<TParamConfiguration = unknown, TIntegrationConfiguration = unknown> = CommonMetadata<{
|
|
@@ -1197,13 +1189,7 @@ type CloseDialogMessage = {
|
|
|
1197
1189
|
dialogType: DialogType;
|
|
1198
1190
|
dialogData?: unknown;
|
|
1199
1191
|
};
|
|
1200
|
-
type GetDataResourceMessage = Pick<DataType, 'path' | 'archetype' | 'headers' | 'parameters' | 'body' | 'method'
|
|
1201
|
-
/**
|
|
1202
|
-
* Ability to override Data Source variant for particular getDataResource request,
|
|
1203
|
-
* because by default it will use Canvas Editor global. But sometimes you don't want to switch to Unpublished Data and stick to standard one.
|
|
1204
|
-
*/
|
|
1205
|
-
dataSourceVariant?: DataSourceVariantsKeys | 'standard';
|
|
1206
|
-
};
|
|
1192
|
+
type GetDataResourceMessage = Pick<DataType, 'path' | 'archetype' | 'headers' | 'parameters' | 'body' | 'method'>;
|
|
1207
1193
|
/** Primitive data types that a parameter type accepts to be bound to composition data */
|
|
1208
1194
|
type BindableTypes = 'string' | 'number' | 'boolean' | 'object' | 'array';
|
|
1209
1195
|
/** Message to parent to create a data connection expression to insert in a param type */
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ApiClient, ClientOptions, ExceptProject } from '@uniformdev/context/api';
|
|
2
2
|
import { ProjectMapNode } from '@uniformdev/project-map';
|
|
3
|
-
import { AssetParamValue, DataType, DataSource,
|
|
3
|
+
import { AssetParamValue, DataType, DataSource, DataResourceVariables, RootComponentInstance, ComponentInstance, ComponentDefinition, ComponentDefinitionParameter, Locale, DataVariableDefinition, EntryData } from '@uniformdev/canvas';
|
|
4
4
|
export { AssetParamValue, AssetParamValueItem } from '@uniformdev/canvas';
|
|
5
5
|
import { Emitter } from 'mitt';
|
|
6
6
|
|
|
@@ -67,6 +67,7 @@ interface paths$1 {
|
|
|
67
67
|
renderableInPropertyPanel?: boolean;
|
|
68
68
|
/** @enum {string} */
|
|
69
69
|
localizable?: "default-yes" | "default-no" | "yes" | "no";
|
|
70
|
+
allowedPlacement?: ("parameter" | "field")[];
|
|
70
71
|
}[];
|
|
71
72
|
editorTools?: {
|
|
72
73
|
composition?: {
|
|
@@ -90,7 +91,6 @@ interface paths$1 {
|
|
|
90
91
|
type: string;
|
|
91
92
|
displayName: string;
|
|
92
93
|
dataSourceEditorUrl?: string;
|
|
93
|
-
supportsUnpublishedData?: boolean;
|
|
94
94
|
dataSourceEditorLocations?: {
|
|
95
95
|
[key: string]: {
|
|
96
96
|
url: string;
|
|
@@ -242,6 +242,7 @@ interface paths$1 {
|
|
|
242
242
|
renderableInPropertyPanel?: boolean;
|
|
243
243
|
/** @enum {string} */
|
|
244
244
|
localizable?: "default-yes" | "default-no" | "yes" | "no";
|
|
245
|
+
allowedPlacement?: ("parameter" | "field")[];
|
|
245
246
|
}[];
|
|
246
247
|
editorTools?: {
|
|
247
248
|
composition?: {
|
|
@@ -265,7 +266,6 @@ interface paths$1 {
|
|
|
265
266
|
type: string;
|
|
266
267
|
displayName: string;
|
|
267
268
|
dataSourceEditorUrl?: string;
|
|
268
|
-
supportsUnpublishedData?: boolean;
|
|
269
269
|
dataSourceEditorLocations?: {
|
|
270
270
|
[key: string]: {
|
|
271
271
|
url: string;
|
|
@@ -416,6 +416,7 @@ interface paths$1 {
|
|
|
416
416
|
renderableInPropertyPanel?: boolean;
|
|
417
417
|
/** @enum {string} */
|
|
418
418
|
localizable?: "default-yes" | "default-no" | "yes" | "no";
|
|
419
|
+
allowedPlacement?: ("parameter" | "field")[];
|
|
419
420
|
}[];
|
|
420
421
|
editorTools?: {
|
|
421
422
|
composition?: {
|
|
@@ -439,7 +440,6 @@ interface paths$1 {
|
|
|
439
440
|
type: string;
|
|
440
441
|
displayName: string;
|
|
441
442
|
dataSourceEditorUrl?: string;
|
|
442
|
-
supportsUnpublishedData?: boolean;
|
|
443
443
|
dataSourceEditorLocations?: {
|
|
444
444
|
[key: string]: {
|
|
445
445
|
url: string;
|
|
@@ -838,6 +838,7 @@ declare class IntegrationDefinitionClient extends ApiClient<DefClientOptions> {
|
|
|
838
838
|
};
|
|
839
839
|
renderableInPropertyPanel?: boolean;
|
|
840
840
|
localizable?: "default-yes" | "default-no" | "yes" | "no";
|
|
841
|
+
allowedPlacement?: ("parameter" | "field")[];
|
|
841
842
|
}[];
|
|
842
843
|
editorTools?: {
|
|
843
844
|
composition?: {
|
|
@@ -861,7 +862,6 @@ declare class IntegrationDefinitionClient extends ApiClient<DefClientOptions> {
|
|
|
861
862
|
type: string;
|
|
862
863
|
displayName: string;
|
|
863
864
|
dataSourceEditorUrl?: string;
|
|
864
|
-
supportsUnpublishedData?: boolean;
|
|
865
865
|
dataSourceEditorLocations?: {
|
|
866
866
|
[key: string]: {
|
|
867
867
|
url: string;
|
|
@@ -1020,19 +1020,11 @@ type DataResourceLocationMetadata<TIntegrationConfiguration = unknown> = CommonM
|
|
|
1020
1020
|
dataConnector: DataConnectorInfo;
|
|
1021
1021
|
/** Current dynamic inputs that are configured on the composition (if any). */
|
|
1022
1022
|
dynamicInputs: DynamicInputs;
|
|
1023
|
-
/** Which Data Source variant is being resolved and used for getDataResource (unless overriden explicitly) */
|
|
1024
|
-
dataSourceVariant?: DataSourceVariantsKeys;
|
|
1025
1023
|
}, TIntegrationConfiguration>;
|
|
1026
1024
|
type DataResourceLocation = MeshLocationCore<DataResourceVariables, DataResourceLocationMetadata, DataResourceVariables, 'dataResource'> & GetDataResourceLocation;
|
|
1027
1025
|
|
|
1028
|
-
type DataSourceLocationValue = Pick<DataSource, 'baseUrl' | 'custom' | 'customPublic' | 'headers' | 'parameters' | 'variables'
|
|
1029
|
-
type DataSourceLocationMetadata<TIntegrationConfiguration = unknown> = CommonMetadata<
|
|
1030
|
-
/**
|
|
1031
|
-
* If true, the data source should provide additional configuration to support the unpublished mode and save "unpublish" Data Source variant.
|
|
1032
|
-
* E.g. inputs for Preview API Token + Preview Environment.
|
|
1033
|
-
*/
|
|
1034
|
-
enableUnpublishedMode: DataSourceLocationValue['enableUnpublishedMode'];
|
|
1035
|
-
}, TIntegrationConfiguration>;
|
|
1026
|
+
type DataSourceLocationValue = Pick<DataSource, 'baseUrl' | 'custom' | 'customPublic' | 'headers' | 'parameters' | 'variables'>;
|
|
1027
|
+
type DataSourceLocationMetadata<TIntegrationConfiguration = unknown> = CommonMetadata<unknown, TIntegrationConfiguration>;
|
|
1036
1028
|
type DataSourceLocation = MeshLocationCore<DataSourceLocationValue, DataSourceLocationMetadata, DataSourceLocationValue, 'dataSource'>;
|
|
1037
1029
|
|
|
1038
1030
|
type ParamTypeLocationMetadata<TParamConfiguration = unknown, TIntegrationConfiguration = unknown> = CommonMetadata<{
|
|
@@ -1197,13 +1189,7 @@ type CloseDialogMessage = {
|
|
|
1197
1189
|
dialogType: DialogType;
|
|
1198
1190
|
dialogData?: unknown;
|
|
1199
1191
|
};
|
|
1200
|
-
type GetDataResourceMessage = Pick<DataType, 'path' | 'archetype' | 'headers' | 'parameters' | 'body' | 'method'
|
|
1201
|
-
/**
|
|
1202
|
-
* Ability to override Data Source variant for particular getDataResource request,
|
|
1203
|
-
* because by default it will use Canvas Editor global. But sometimes you don't want to switch to Unpublished Data and stick to standard one.
|
|
1204
|
-
*/
|
|
1205
|
-
dataSourceVariant?: DataSourceVariantsKeys | 'standard';
|
|
1206
|
-
};
|
|
1192
|
+
type GetDataResourceMessage = Pick<DataType, 'path' | 'archetype' | 'headers' | 'parameters' | 'body' | 'method'>;
|
|
1207
1193
|
/** Primitive data types that a parameter type accepts to be bound to composition data */
|
|
1208
1194
|
type BindableTypes = 'string' | 'number' | 'boolean' | 'object' | 'array';
|
|
1209
1195
|
/** Message to parent to create a data connection expression to insert in a param type */
|
package/dist/index.esm.js
CHANGED
package/dist/index.js
CHANGED
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/mesh-sdk",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.185.1-alpha.8+53f7f96124",
|
|
4
4
|
"description": "Uniform Mesh Framework SDK",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -34,14 +34,14 @@
|
|
|
34
34
|
"access": "public"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@uniformdev/canvas": "19.
|
|
38
|
-
"@uniformdev/context": "19.
|
|
39
|
-
"@uniformdev/project-map": "19.
|
|
37
|
+
"@uniformdev/canvas": "19.185.1-alpha.8+53f7f96124",
|
|
38
|
+
"@uniformdev/context": "19.185.1-alpha.8+53f7f96124",
|
|
39
|
+
"@uniformdev/project-map": "19.185.1-alpha.8+53f7f96124",
|
|
40
40
|
"imagesloaded": "^5.0.0",
|
|
41
41
|
"mitt": "^3.0.1"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@types/imagesloaded": "^4.1.2"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "53f7f961242f3518b103e55337ada7ad91c18dd7"
|
|
47
47
|
}
|