@uniformdev/mesh-sdk 19.184.1-alpha.22 → 19.184.1
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 +4 -22
- package/dist/index.d.ts +4 -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
|
|
|
@@ -90,7 +90,6 @@ interface paths$1 {
|
|
|
90
90
|
type: string;
|
|
91
91
|
displayName: string;
|
|
92
92
|
dataSourceEditorUrl?: string;
|
|
93
|
-
supportsUnpublishedData?: boolean;
|
|
94
93
|
dataSourceEditorLocations?: {
|
|
95
94
|
[key: string]: {
|
|
96
95
|
url: string;
|
|
@@ -265,7 +264,6 @@ interface paths$1 {
|
|
|
265
264
|
type: string;
|
|
266
265
|
displayName: string;
|
|
267
266
|
dataSourceEditorUrl?: string;
|
|
268
|
-
supportsUnpublishedData?: boolean;
|
|
269
267
|
dataSourceEditorLocations?: {
|
|
270
268
|
[key: string]: {
|
|
271
269
|
url: string;
|
|
@@ -439,7 +437,6 @@ interface paths$1 {
|
|
|
439
437
|
type: string;
|
|
440
438
|
displayName: string;
|
|
441
439
|
dataSourceEditorUrl?: string;
|
|
442
|
-
supportsUnpublishedData?: boolean;
|
|
443
440
|
dataSourceEditorLocations?: {
|
|
444
441
|
[key: string]: {
|
|
445
442
|
url: string;
|
|
@@ -861,7 +858,6 @@ declare class IntegrationDefinitionClient extends ApiClient<DefClientOptions> {
|
|
|
861
858
|
type: string;
|
|
862
859
|
displayName: string;
|
|
863
860
|
dataSourceEditorUrl?: string;
|
|
864
|
-
supportsUnpublishedData?: boolean;
|
|
865
861
|
dataSourceEditorLocations?: {
|
|
866
862
|
[key: string]: {
|
|
867
863
|
url: string;
|
|
@@ -1020,19 +1016,11 @@ type DataResourceLocationMetadata<TIntegrationConfiguration = unknown> = CommonM
|
|
|
1020
1016
|
dataConnector: DataConnectorInfo;
|
|
1021
1017
|
/** Current dynamic inputs that are configured on the composition (if any). */
|
|
1022
1018
|
dynamicInputs: DynamicInputs;
|
|
1023
|
-
/** Which Data Source variant is being resolved and used for getDataResource (unless overriden explicitly) */
|
|
1024
|
-
dataSourceVariant?: DataSourceVariantsKeys;
|
|
1025
1019
|
}, TIntegrationConfiguration>;
|
|
1026
1020
|
type DataResourceLocation = MeshLocationCore<DataResourceVariables, DataResourceLocationMetadata, DataResourceVariables, 'dataResource'> & GetDataResourceLocation;
|
|
1027
1021
|
|
|
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>;
|
|
1022
|
+
type DataSourceLocationValue = Pick<DataSource, 'baseUrl' | 'custom' | 'customPublic' | 'headers' | 'parameters' | 'variables'>;
|
|
1023
|
+
type DataSourceLocationMetadata<TIntegrationConfiguration = unknown> = CommonMetadata<unknown, TIntegrationConfiguration>;
|
|
1036
1024
|
type DataSourceLocation = MeshLocationCore<DataSourceLocationValue, DataSourceLocationMetadata, DataSourceLocationValue, 'dataSource'>;
|
|
1037
1025
|
|
|
1038
1026
|
type ParamTypeLocationMetadata<TParamConfiguration = unknown, TIntegrationConfiguration = unknown> = CommonMetadata<{
|
|
@@ -1197,13 +1185,7 @@ type CloseDialogMessage = {
|
|
|
1197
1185
|
dialogType: DialogType;
|
|
1198
1186
|
dialogData?: unknown;
|
|
1199
1187
|
};
|
|
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
|
-
};
|
|
1188
|
+
type GetDataResourceMessage = Pick<DataType, 'path' | 'archetype' | 'headers' | 'parameters' | 'body' | 'method'>;
|
|
1207
1189
|
/** Primitive data types that a parameter type accepts to be bound to composition data */
|
|
1208
1190
|
type BindableTypes = 'string' | 'number' | 'boolean' | 'object' | 'array';
|
|
1209
1191
|
/** 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
|
|
|
@@ -90,7 +90,6 @@ interface paths$1 {
|
|
|
90
90
|
type: string;
|
|
91
91
|
displayName: string;
|
|
92
92
|
dataSourceEditorUrl?: string;
|
|
93
|
-
supportsUnpublishedData?: boolean;
|
|
94
93
|
dataSourceEditorLocations?: {
|
|
95
94
|
[key: string]: {
|
|
96
95
|
url: string;
|
|
@@ -265,7 +264,6 @@ interface paths$1 {
|
|
|
265
264
|
type: string;
|
|
266
265
|
displayName: string;
|
|
267
266
|
dataSourceEditorUrl?: string;
|
|
268
|
-
supportsUnpublishedData?: boolean;
|
|
269
267
|
dataSourceEditorLocations?: {
|
|
270
268
|
[key: string]: {
|
|
271
269
|
url: string;
|
|
@@ -439,7 +437,6 @@ interface paths$1 {
|
|
|
439
437
|
type: string;
|
|
440
438
|
displayName: string;
|
|
441
439
|
dataSourceEditorUrl?: string;
|
|
442
|
-
supportsUnpublishedData?: boolean;
|
|
443
440
|
dataSourceEditorLocations?: {
|
|
444
441
|
[key: string]: {
|
|
445
442
|
url: string;
|
|
@@ -861,7 +858,6 @@ declare class IntegrationDefinitionClient extends ApiClient<DefClientOptions> {
|
|
|
861
858
|
type: string;
|
|
862
859
|
displayName: string;
|
|
863
860
|
dataSourceEditorUrl?: string;
|
|
864
|
-
supportsUnpublishedData?: boolean;
|
|
865
861
|
dataSourceEditorLocations?: {
|
|
866
862
|
[key: string]: {
|
|
867
863
|
url: string;
|
|
@@ -1020,19 +1016,11 @@ type DataResourceLocationMetadata<TIntegrationConfiguration = unknown> = CommonM
|
|
|
1020
1016
|
dataConnector: DataConnectorInfo;
|
|
1021
1017
|
/** Current dynamic inputs that are configured on the composition (if any). */
|
|
1022
1018
|
dynamicInputs: DynamicInputs;
|
|
1023
|
-
/** Which Data Source variant is being resolved and used for getDataResource (unless overriden explicitly) */
|
|
1024
|
-
dataSourceVariant?: DataSourceVariantsKeys;
|
|
1025
1019
|
}, TIntegrationConfiguration>;
|
|
1026
1020
|
type DataResourceLocation = MeshLocationCore<DataResourceVariables, DataResourceLocationMetadata, DataResourceVariables, 'dataResource'> & GetDataResourceLocation;
|
|
1027
1021
|
|
|
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>;
|
|
1022
|
+
type DataSourceLocationValue = Pick<DataSource, 'baseUrl' | 'custom' | 'customPublic' | 'headers' | 'parameters' | 'variables'>;
|
|
1023
|
+
type DataSourceLocationMetadata<TIntegrationConfiguration = unknown> = CommonMetadata<unknown, TIntegrationConfiguration>;
|
|
1036
1024
|
type DataSourceLocation = MeshLocationCore<DataSourceLocationValue, DataSourceLocationMetadata, DataSourceLocationValue, 'dataSource'>;
|
|
1037
1025
|
|
|
1038
1026
|
type ParamTypeLocationMetadata<TParamConfiguration = unknown, TIntegrationConfiguration = unknown> = CommonMetadata<{
|
|
@@ -1197,13 +1185,7 @@ type CloseDialogMessage = {
|
|
|
1197
1185
|
dialogType: DialogType;
|
|
1198
1186
|
dialogData?: unknown;
|
|
1199
1187
|
};
|
|
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
|
-
};
|
|
1188
|
+
type GetDataResourceMessage = Pick<DataType, 'path' | 'archetype' | 'headers' | 'parameters' | 'body' | 'method'>;
|
|
1207
1189
|
/** Primitive data types that a parameter type accepts to be bound to composition data */
|
|
1208
1190
|
type BindableTypes = 'string' | 'number' | 'boolean' | 'object' | 'array';
|
|
1209
1191
|
/** 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.184.1
|
|
3
|
+
"version": "19.184.1",
|
|
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.184.1
|
|
38
|
-
"@uniformdev/context": "19.184.1
|
|
39
|
-
"@uniformdev/project-map": "19.184.1
|
|
37
|
+
"@uniformdev/canvas": "19.184.1",
|
|
38
|
+
"@uniformdev/context": "19.184.1",
|
|
39
|
+
"@uniformdev/project-map": "19.184.1",
|
|
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": "c3200578f3bda4f90e4c4b9d7997f698054aead8"
|
|
47
47
|
}
|