@uniformdev/mesh-sdk 17.3.0 → 17.3.1-alpha.117

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +9 -9
  2. package/package.json +3 -3
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Emitter } from 'mitt';
2
- import { RootComponentInstance, ComponentInstance, ComponentDefinition, ComponentDefinitionParameter, DataConnection, DataConnectionInfo, DataType, CompositionDataVariables } from '@uniformdev/canvas';
2
+ import { RootComponentInstance, ComponentInstance, ComponentDefinition, ComponentDefinitionParameter, DataSource, DataSourceInfo, DataType, DataResourceVariables } from '@uniformdev/canvas';
3
3
 
4
4
  /** Core shared generic for a mesh location context */
5
5
  interface MeshLocationCore<TValue = unknown, TMetadata = unknown, TSetValue = TValue, TType extends MeshLocationTypes = MeshLocationTypes> {
@@ -44,7 +44,7 @@ interface MeshLocationCore<TValue = unknown, TMetadata = unknown, TSetValue = TV
44
44
  /**
45
45
  * Known location types that can be passed to a mesh location
46
46
  */
47
- declare type MeshLocationTypes = 'paramType' | 'paramTypeConfig' | 'settings' | 'dataConnection' | 'dataType' | 'dataTypeInstance';
47
+ declare type MeshLocationTypes = 'paramType' | 'paramTypeConfig' | 'settings' | 'dataSource' | 'dataType' | 'dataTypeInstance';
48
48
  declare type SetValueOptions = ValidationResult;
49
49
 
50
50
  declare type ParamTypeLocationMetadata<TParamConfiguration = unknown, TIntegrationConfiguration = unknown> = {
@@ -66,12 +66,12 @@ declare type ParamTypeConfigLocation<TParamValue = unknown, TIntegrationConfigur
66
66
 
67
67
  declare type SettingsLocation<TSettingsType> = MeshLocationCore<TSettingsType, undefined, TSettingsType, 'settings'>;
68
68
 
69
- declare type DataConnectionLocationValue = Pick<DataConnection, 'baseUrl' | 'custom' | 'headers' | 'parameters' | 'variables'>;
70
- declare type DataConnectionLocationMetadata<TIntegrationConfiguration = unknown> = {
69
+ declare type DataSourceLocationValue = Pick<DataSource, 'baseUrl' | 'custom' | 'headers' | 'parameters' | 'variables'>;
70
+ declare type DataSourceLocationMetadata<TIntegrationConfiguration = unknown> = {
71
71
  settings: TIntegrationConfiguration;
72
72
  projectId: string;
73
73
  };
74
- declare type DataConnectionLocation = MeshLocationCore<DataConnectionLocationValue, DataConnectionLocationMetadata, DataConnectionLocationValue, 'dataConnection'>;
74
+ declare type DataSourceLocation = MeshLocationCore<DataSourceLocationValue, DataSourceLocationMetadata, DataSourceLocationValue, 'dataSource'>;
75
75
 
76
76
  declare type DataTypeValue = Pick<DataType, 'body' | 'method' | 'path' | 'custom' | 'headers' | 'parameters' | 'variables'>;
77
77
  declare type DataConnectorInfo = {
@@ -82,7 +82,7 @@ declare type DataConnectorInfo = {
82
82
  declare type DataTypeLocationMetadata<TIntegrationConfiguration = unknown> = {
83
83
  settings: TIntegrationConfiguration;
84
84
  projectId: string;
85
- dataConnection: DataConnectionInfo;
85
+ dataSource: DataSourceInfo;
86
86
  dataConnector: DataConnectorInfo;
87
87
  };
88
88
  declare type DataTypeLocation = MeshLocationCore<DataTypeValue, DataTypeLocationMetadata, DataTypeValue, 'dataType'>;
@@ -93,13 +93,13 @@ declare type DataTypeInstanceLocationMetadata<TIntegrationConfiguration = unknow
93
93
  dataConnector: DataConnectorInfo;
94
94
  projectId: string;
95
95
  };
96
- declare type DataTypeInstanceLocation = MeshLocationCore<CompositionDataVariables, DataTypeInstanceLocationMetadata, CompositionDataVariables, 'dataTypeInstance'>;
96
+ declare type DataTypeInstanceLocation = MeshLocationCore<DataResourceVariables, DataTypeInstanceLocationMetadata, DataResourceVariables, 'dataTypeInstance'>;
97
97
 
98
98
  /**
99
99
  * Defines methods used for interacting with a Mesh location
100
100
  * To receive useful typings, check the `type` property of the location to narrow the typing.
101
101
  */
102
- declare type MeshLocation<TValue = unknown, TSetValue = TValue> = ParamTypeLocation<TValue, unknown, TSetValue> | ParamTypeConfigLocation<TValue> | SettingsLocation<TValue> | DataConnectionLocation | DataTypeLocation | DataTypeInstanceLocation;
102
+ declare type MeshLocation<TValue = unknown, TSetValue = TValue> = ParamTypeLocation<TValue, unknown, TSetValue> | ParamTypeConfigLocation<TValue> | SettingsLocation<TValue> | DataSourceLocation | DataTypeLocation | DataTypeInstanceLocation;
103
103
  interface MeshContextData {
104
104
  locationKey: string;
105
105
  locationType: MeshLocationTypes;
@@ -276,4 +276,4 @@ declare function initializeUniformMeshSDK({ autoResizingDisabled, }?: {
276
276
  autoResizingDisabled?: boolean;
277
277
  }): Promise<UniformMeshSDK | undefined>;
278
278
 
279
- export { CSSHeight, CloseLocationDialogOptions, DataConnectionLocation, DataConnectionLocationMetadata, DataConnectionLocationValue, DataConnectorInfo, DataTypeInstanceLocation, DataTypeInstanceLocationMetadata, DataTypeLocation, DataTypeLocationMetadata, DialogContext, DialogOptions, DialogParamValue, DialogParams, DialogResponseData, DialogResponseHandler, DialogResponseHandlers, DialogType, LocationDialogResponse, MeshContextData, MeshLocation, MeshLocationCore, MeshLocationTypes, OpenConfirmationDialogOptions, OpenConfirmationDialogResult, OpenDialogResult, OpenLocationDialogOptions, ParamTypeConfigLocation, ParamTypeConfigLocationMetadata, ParamTypeLocation, ParamTypeLocationMetadata, SdkWindow, SetValueOptions, SettingsLocation, UniformMeshSDK, UniformMeshSDKEvents, ValidationResult, initializeUniformMeshSDK };
279
+ export { CSSHeight, CloseLocationDialogOptions, DataConnectorInfo, DataSourceLocation, DataSourceLocationMetadata, DataSourceLocationValue, DataTypeInstanceLocation, DataTypeInstanceLocationMetadata, DataTypeLocation, DataTypeLocationMetadata, DialogContext, DialogOptions, DialogParamValue, DialogParams, DialogResponseData, DialogResponseHandler, DialogResponseHandlers, DialogType, LocationDialogResponse, MeshContextData, MeshLocation, MeshLocationCore, MeshLocationTypes, OpenConfirmationDialogOptions, OpenConfirmationDialogResult, OpenDialogResult, OpenLocationDialogOptions, ParamTypeConfigLocation, ParamTypeConfigLocationMetadata, ParamTypeLocation, ParamTypeLocationMetadata, SdkWindow, SetValueOptions, SettingsLocation, UniformMeshSDK, UniformMeshSDKEvents, ValidationResult, initializeUniformMeshSDK };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/mesh-sdk",
3
- "version": "17.3.0",
3
+ "version": "17.3.1-alpha.117+8812fbe6b",
4
4
  "description": "Uniform Mesh Framework SDK",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -29,8 +29,8 @@
29
29
  "access": "public"
30
30
  },
31
31
  "dependencies": {
32
- "@uniformdev/canvas": "^17.3.0",
32
+ "@uniformdev/canvas": "^17.3.1-alpha.117+8812fbe6b",
33
33
  "mitt": "^3.0.0"
34
34
  },
35
- "gitHead": "4b7411414239d033ceea81c61360995e4920a3f3"
35
+ "gitHead": "8812fbe6b2d14f5b53cd9163b163fdd18bb76799"
36
36
  }