@uniformdev/mesh-sdk 19.3.0 → 19.6.0
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.ts +25 -2
- package/package.json +5 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ApiClient, ClientOptions, ExceptProject } from '@uniformdev/context/api';
|
|
2
2
|
import { DataSource, RootComponentInstance, ComponentInstance, ComponentDefinition, ComponentDefinitionParameter, DataType as DataType$1, DataResourceVariables } from '@uniformdev/canvas';
|
|
3
|
+
import { ProjectMapNode } from '@uniformdev/project-map';
|
|
3
4
|
import { DataType } from '@uniformdev/canvas/.';
|
|
4
5
|
import { Emitter } from 'mitt';
|
|
5
6
|
|
|
@@ -645,10 +646,15 @@ type ParamTypeLocationMetadata<TParamConfiguration = unknown, TIntegrationConfig
|
|
|
645
646
|
settings: TIntegrationConfiguration;
|
|
646
647
|
/** The Uniform project ID */
|
|
647
648
|
projectId: string;
|
|
649
|
+
/** Current dynamic inputs that are configured on the composition (if any). */
|
|
650
|
+
dynamicInputs: DynamicInputs;
|
|
648
651
|
};
|
|
649
652
|
type ParamTypeLocation<TParamValue = unknown, TParamConfiguration = unknown, TParamSetValue = TParamValue, TIntegrationConfiguration = unknown> = MeshLocationCore<TParamValue | undefined, ParamTypeLocationMetadata<TParamConfiguration, TIntegrationConfiguration>, TParamSetValue, 'paramType'>;
|
|
650
653
|
|
|
651
|
-
type
|
|
654
|
+
type SettingsLocationMetadata = {
|
|
655
|
+
projectId: string;
|
|
656
|
+
};
|
|
657
|
+
type SettingsLocation<TSettingsType> = MeshLocationCore<TSettingsType, SettingsLocationMetadata, TSettingsType, 'settings'>;
|
|
652
658
|
|
|
653
659
|
/**
|
|
654
660
|
* Defines methods used for interacting with a Mesh location
|
|
@@ -821,6 +827,21 @@ type SetValueMessage = {
|
|
|
821
827
|
type GetDataResourceLocation = {
|
|
822
828
|
getDataResource: Awaited<ReturnType<typeof connectToParent>>['parent']['getDataResource'];
|
|
823
829
|
};
|
|
830
|
+
/**
|
|
831
|
+
* Dynamic inputs come from project map and represent path or query based dynamic values
|
|
832
|
+
* These can be connected to from within a Mesh location by setting a data resource variable to contain ex:
|
|
833
|
+
* ${inputName} expression(s).
|
|
834
|
+
*
|
|
835
|
+
* Dynamic inputs only work at runtime when using the route endpoint to fetch data.
|
|
836
|
+
*/
|
|
837
|
+
type DynamicInput = {
|
|
838
|
+
value: string;
|
|
839
|
+
defaultValue: string;
|
|
840
|
+
source: ProjectMapNode;
|
|
841
|
+
type: 'query' | 'path';
|
|
842
|
+
};
|
|
843
|
+
/** Record of dynamic inputs keyed by the input name */
|
|
844
|
+
type DynamicInputs = Record<string, DynamicInput>;
|
|
824
845
|
|
|
825
846
|
type DataTypeLocationValue = Pick<DataType$1, 'body' | 'method' | 'path' | 'custom' | 'headers' | 'parameters' | 'variables'>;
|
|
826
847
|
type DataConnectorInfo = {
|
|
@@ -858,6 +879,8 @@ type DataResourceLocationMetadata<TIntegrationConfiguration = unknown> = {
|
|
|
858
879
|
dataConnector: DataConnectorInfo;
|
|
859
880
|
/** The Uniform project ID */
|
|
860
881
|
projectId: string;
|
|
882
|
+
/** Current dynamic inputs that are configured on the composition (if any). */
|
|
883
|
+
dynamicInputs: DynamicInputs;
|
|
861
884
|
};
|
|
862
885
|
type DataResourceLocation = MeshLocationCore<DataResourceVariables, DataResourceLocationMetadata, DataResourceVariables, 'dataResource'> & GetDataResourceLocation;
|
|
863
886
|
|
|
@@ -967,4 +990,4 @@ declare function initializeUniformMeshSDK({ autoResizingDisabled, }?: {
|
|
|
967
990
|
autoResizingDisabled?: boolean;
|
|
968
991
|
}): Promise<UniformMeshSDK | undefined>;
|
|
969
992
|
|
|
970
|
-
export { CSSHeight, CloseDialogMessage, CloseLocationDialogOptions, DataConnectorInfo, DataResourceLocation, DataResourceLocationMetadata, DataSourceLocation, DataSourceLocationMetadata, DataSourceLocationValue, DataTypeLocation, DataTypeLocationMetadata, DataTypeLocationValue, DialogContext, DialogOptions, DialogParamValue, DialogParams, DialogResponseData, DialogResponseHandler, DialogResponseHandlers, DialogType, 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, SdkWindow, SetLocationFunction, SetValueMessage, SetValueOptions, SettingsLocation, UniformMeshSDK, UniformMeshSDKEvents, ValidationResult, initializeUniformMeshSDK };
|
|
993
|
+
export { CSSHeight, CloseDialogMessage, CloseLocationDialogOptions, DataConnectorInfo, DataResourceLocation, DataResourceLocationMetadata, DataSourceLocation, DataSourceLocationMetadata, DataSourceLocationValue, DataTypeLocation, DataTypeLocationMetadata, DataTypeLocationValue, DialogContext, DialogOptions, DialogParamValue, DialogParams, DialogResponseData, DialogResponseHandler, DialogResponseHandlers, DialogType, DynamicInput, DynamicInputs, 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, SdkWindow, SetLocationFunction, SetValueMessage, SetValueOptions, SettingsLocation, SettingsLocationMetadata, UniformMeshSDK, UniformMeshSDKEvents, ValidationResult, initializeUniformMeshSDK };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/mesh-sdk",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.6.0",
|
|
4
4
|
"description": "Uniform Mesh Framework SDK",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -32,9 +32,10 @@
|
|
|
32
32
|
"access": "public"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@uniformdev/canvas": "19.
|
|
36
|
-
"@uniformdev/context": "19.
|
|
35
|
+
"@uniformdev/canvas": "19.6.0",
|
|
36
|
+
"@uniformdev/context": "19.6.0",
|
|
37
|
+
"@uniformdev/project-map": "19.6.0",
|
|
37
38
|
"mitt": "^3.0.0"
|
|
38
39
|
},
|
|
39
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "a14550dd1caa33fa1310ada642d06ce79bbe4eac"
|
|
40
41
|
}
|