@uniformdev/mesh-sdk 20.69.1-alpha.10 → 20.70.1-alpha.10
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 +53 -75
- package/dist/index.d.ts +53 -75
- package/dist/index.esm.js +1 -1
- package/dist/index.js +4 -4
- package/dist/index.mjs +1 -1
- package/package.json +7 -7
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApiClient, ClientOptions, ExceptProject } from '@uniformdev/context/api';
|
|
2
|
-
import { AssetParamValue, DataType, DataSource, DataResourceVariables, DataSourceVariantsKeys,
|
|
2
|
+
import { AssetParamValue, DataType, DataSource, DataResourceVariables, DataSourceVariantsKeys, RootComponentInstance, ComponentInstance, ComponentDefinitionParameter, DataVariableDefinition, Locale, ComponentDefinition, EntryData, ComponentParameter, VisibilityCriteriaGroup } from '@uniformdev/canvas';
|
|
3
3
|
export { AssetParamValue, AssetParamValueItem } from '@uniformdev/canvas';
|
|
4
4
|
import { ProjectMapNode } from '@uniformdev/project-map';
|
|
5
5
|
import { AssetDefinitionType } from '@uniformdev/assets';
|
|
@@ -1527,6 +1527,7 @@ declare function parseFunctionCall<Parameters extends Record<string, string>, Se
|
|
|
1527
1527
|
name: string;
|
|
1528
1528
|
type: "function_call";
|
|
1529
1529
|
id?: string;
|
|
1530
|
+
namespace?: string;
|
|
1530
1531
|
status?: "in_progress" | "completed" | "incomplete";
|
|
1531
1532
|
};
|
|
1532
1533
|
settings: Settings;
|
|
@@ -1578,17 +1579,7 @@ type DataTypeLocationMetadata<TIntegrationConfiguration = unknown> = CommonMetad
|
|
|
1578
1579
|
}, TIntegrationConfiguration>;
|
|
1579
1580
|
type DataTypeLocation = MeshLocationCore<DataTypeLocationValue, DataTypeLocationMetadata, DataTypeLocationValue, 'dataType'> & GetDataResourceLocation;
|
|
1580
1581
|
|
|
1581
|
-
type DataResourceLocationMetadata<TIntegrationConfiguration = unknown> = CommonMetadata<{
|
|
1582
|
-
/**
|
|
1583
|
-
* The release ID of the currently edited entity.
|
|
1584
|
-
* This can be undefined when a release is active but the entity has not been copied to that release yet.
|
|
1585
|
-
*/
|
|
1586
|
-
releaseId?: string;
|
|
1587
|
-
/**
|
|
1588
|
-
* The currently active release ID from editor context.
|
|
1589
|
-
* This reflects release selection regardless of whether the edited entity exists in that release.
|
|
1590
|
-
*/
|
|
1591
|
-
activeReleaseId?: string;
|
|
1582
|
+
type DataResourceLocationMetadata<TIntegrationConfiguration = unknown> = CommonMetadata<CanvasEditorContextMetadata & {
|
|
1592
1583
|
dataType: DataType;
|
|
1593
1584
|
/** The data type's archetype value. */
|
|
1594
1585
|
archetype: string;
|
|
@@ -1598,12 +1589,10 @@ type DataResourceLocationMetadata<TIntegrationConfiguration = unknown> = CommonM
|
|
|
1598
1589
|
dataSource: DataSource;
|
|
1599
1590
|
/** The data connector type of the current data resource's data source */
|
|
1600
1591
|
dataConnector: DataConnectorInfo;
|
|
1601
|
-
/** Current dynamic inputs that are configured on the composition (if any). */
|
|
1602
|
-
dynamicInputs: DynamicInputs;
|
|
1603
1592
|
/** Which Data Source variant is being resolved and used for getDataResource (unless overriden explicitly via providing "undefined") */
|
|
1604
1593
|
dataSourceVariant?: DataSourceVariantsKeys;
|
|
1605
1594
|
}, TIntegrationConfiguration>;
|
|
1606
|
-
type DataResourceLocation = MeshLocationCore<DataResourceVariables, DataResourceLocationMetadata, DataResourceVariables, 'dataResource'> & GetDataResourceLocation;
|
|
1595
|
+
type DataResourceLocation = MeshLocationCore<DataResourceVariables, DataResourceLocationMetadata, DataResourceVariables, 'dataResource'> & GetDataResourceLocation & GetEditorStateLocationMaybe;
|
|
1607
1596
|
|
|
1608
1597
|
/**
|
|
1609
1598
|
* Metadata for the dataResourceSelector location.
|
|
@@ -1611,7 +1600,7 @@ type DataResourceLocation = MeshLocationCore<DataResourceVariables, DataResource
|
|
|
1611
1600
|
* replacing the default JSON tree viewer in the dynamic token picker.
|
|
1612
1601
|
* @deprecated This is experimental functionality and is subject to change without notice.
|
|
1613
1602
|
*/
|
|
1614
|
-
type DataResourceSelectorLocationMetadata<TIntegrationConfiguration = unknown> = CommonMetadata<{
|
|
1603
|
+
type DataResourceSelectorLocationMetadata<TIntegrationConfiguration = unknown> = CommonMetadata<CanvasEditorContextMetadata & {
|
|
1615
1604
|
/** The resolved data for the currently selected data resource */
|
|
1616
1605
|
dataResourceValue: unknown;
|
|
1617
1606
|
/** The name of the currently selected data resource */
|
|
@@ -1622,8 +1611,6 @@ type DataResourceSelectorLocationMetadata<TIntegrationConfiguration = unknown> =
|
|
|
1622
1611
|
archetype: string;
|
|
1623
1612
|
/** Allowed bindable types for the parameter being connected */
|
|
1624
1613
|
allowedTypes: BindableTypes[];
|
|
1625
|
-
/** Component definitions index, keyed by public id. */
|
|
1626
|
-
componentDefinitions: Record<string, ComponentDefinition | undefined>;
|
|
1627
1614
|
}, TIntegrationConfiguration>;
|
|
1628
1615
|
/**
|
|
1629
1616
|
* Location for custom data resource selector UI.
|
|
@@ -1635,14 +1622,7 @@ type DataResourceSelectorLocationMetadata<TIntegrationConfiguration = unknown> =
|
|
|
1635
1622
|
* editorState: Imperative API for inspecting/mutating the underlying composition / entry tree
|
|
1636
1623
|
* @deprecated This is experimental functionality and is subject to change without notice.
|
|
1637
1624
|
*/
|
|
1638
|
-
type DataResourceSelectorLocation = MeshLocationCore<string, DataResourceSelectorLocationMetadata, string, 'dataResourceSelector'> & GetDataResourceLocation &
|
|
1639
|
-
/**
|
|
1640
|
-
* Imperative API for interacting with the composition/entry editor state.
|
|
1641
|
-
* Provides non-reactive access to read and modify the editor state.
|
|
1642
|
-
* @deprecated This is experimental functionality and is subject to change without notice.
|
|
1643
|
-
*/
|
|
1644
|
-
editorState: EditorStateApi;
|
|
1645
|
-
};
|
|
1625
|
+
type DataResourceSelectorLocation = MeshLocationCore<string, DataResourceSelectorLocationMetadata, string, 'dataResourceSelector'> & GetDataResourceLocation & GetEditorStateLocationMaybe;
|
|
1646
1626
|
|
|
1647
1627
|
type DataSourceLocationValue = Pick<DataSource, 'baseUrl' | 'custom' | 'customPublic' | 'headers' | 'parameters' | 'variables' | 'enableUnpublishedMode' | 'variants'>;
|
|
1648
1628
|
type DataSourceLocationMetadata<TIntegrationConfiguration = unknown> = CommonMetadata<{
|
|
@@ -1654,20 +1634,14 @@ type DataSourceLocationMetadata<TIntegrationConfiguration = unknown> = CommonMet
|
|
|
1654
1634
|
}, TIntegrationConfiguration>;
|
|
1655
1635
|
type DataSourceLocation = MeshLocationCore<DataSourceLocationValue, DataSourceLocationMetadata, DataSourceLocationValue, 'dataSource'>;
|
|
1656
1636
|
|
|
1657
|
-
type ParamTypeLocationMetadata<TParamConfiguration = unknown, TIntegrationConfiguration = unknown> = CommonMetadata<{
|
|
1637
|
+
type ParamTypeLocationMetadata<TParamConfiguration = unknown, TIntegrationConfiguration = unknown> = CommonMetadata<CanvasEditorContextMetadata & {
|
|
1658
1638
|
/** editorState is an experimental replacement for rootNode. This may become deprecated in the future. */
|
|
1659
1639
|
rootNode: Omit<RootComponentInstance, 'slots' | '_data'> & {
|
|
1660
1640
|
_editionId?: string;
|
|
1661
1641
|
};
|
|
1662
1642
|
parameterConfiguration: TParamConfiguration;
|
|
1663
1643
|
component: Omit<ComponentInstance, 'slots'>;
|
|
1664
|
-
componentDefinitions: Record<string, ComponentDefinition | undefined>;
|
|
1665
1644
|
parameterDefinition: ComponentDefinitionParameter;
|
|
1666
|
-
/**
|
|
1667
|
-
* Current dynamic inputs that are configured on the composition (if any).
|
|
1668
|
-
* Use the <ParamTypeDynamicDataProvider> to wire up dynamic data in your parameter.
|
|
1669
|
-
*/
|
|
1670
|
-
dynamicInputs: DynamicInputs;
|
|
1671
1645
|
/**
|
|
1672
1646
|
* The connected data for the current component. Connected data is provided as a map
|
|
1673
1647
|
* of the binding expression text to the value of that binding expression. For example,
|
|
@@ -1684,11 +1658,6 @@ type ParamTypeLocationMetadata<TParamConfiguration = unknown, TIntegrationConfig
|
|
|
1684
1658
|
* Note that setValue() always sets the target language automatically.
|
|
1685
1659
|
*/
|
|
1686
1660
|
targetLocale: string | undefined;
|
|
1687
|
-
/**
|
|
1688
|
-
* The current locale selected in the editor UI.
|
|
1689
|
-
* Unlike targetLocale, this reflects the editor's global locale state.
|
|
1690
|
-
*/
|
|
1691
|
-
currentLocale: string | undefined;
|
|
1692
1661
|
/**
|
|
1693
1662
|
* When editing a conditional value, this is the index in the parent parameter of the conditional value.
|
|
1694
1663
|
* If this is -1, then the editor is not editing a conditional value.
|
|
@@ -1701,13 +1670,7 @@ type ParamTypeLocation<TParamValue = unknown, TParamConfiguration = unknown, TPa
|
|
|
1701
1670
|
* Returns the result of the dialog. Useful to build data-enabled parameter types.
|
|
1702
1671
|
*/
|
|
1703
1672
|
editConnectedData: Awaited<ReturnType<typeof connectToParent>>['parent']['editConnectedData'];
|
|
1704
|
-
|
|
1705
|
-
* Imperative API for interacting with the composition/entry editor state.
|
|
1706
|
-
* Provides non-reactive access to read and modify the editor state.
|
|
1707
|
-
* @deprecated This is experimental functionality and is subject to change without notice.
|
|
1708
|
-
*/
|
|
1709
|
-
editorState: EditorStateApi;
|
|
1710
|
-
};
|
|
1673
|
+
} & GetEditorStateLocation;
|
|
1711
1674
|
|
|
1712
1675
|
type SettingsLocationMetadata = CommonMetadata;
|
|
1713
1676
|
type SettingsLocation<TSettingsType> = MeshLocationCore<TSettingsType, SettingsLocationMetadata, TSettingsType, 'settings'>;
|
|
@@ -1983,6 +1946,28 @@ type CommonMetadata<ExtendedMetadata = unknown, TIntegrationConfiguration = unkn
|
|
|
1983
1946
|
/** List if enabled Uniform Project locales */
|
|
1984
1947
|
locales: Locale[];
|
|
1985
1948
|
} & ExtendedMetadata;
|
|
1949
|
+
/**
|
|
1950
|
+
* Serializable metadata fields available in Canvas/Entry editor context.
|
|
1951
|
+
* {@link EditorStateApi} is not part of metadata; it is provided on the location object via mesh-sdk comms.
|
|
1952
|
+
*/
|
|
1953
|
+
type CanvasEditorContextMetadata = {
|
|
1954
|
+
/** Component definitions index, keyed by public id. */
|
|
1955
|
+
componentDefinitions: Record<string, ComponentDefinition | undefined>;
|
|
1956
|
+
/** Current dynamic inputs configured on the composition (if any). */
|
|
1957
|
+
dynamicInputs: DynamicInputs;
|
|
1958
|
+
/** The current locale selected in the editor UI */
|
|
1959
|
+
currentLocale: string | undefined;
|
|
1960
|
+
/**
|
|
1961
|
+
* The release ID of the currently edited entity.
|
|
1962
|
+
* Can be undefined when a release is active but the entity has not been copied to that release yet.
|
|
1963
|
+
*/
|
|
1964
|
+
releaseId?: string;
|
|
1965
|
+
/**
|
|
1966
|
+
* The currently active release ID from editor context.
|
|
1967
|
+
* This reflects release selection regardless of whether the edited entity exists in that release.
|
|
1968
|
+
*/
|
|
1969
|
+
activeReleaseId?: string;
|
|
1970
|
+
};
|
|
1986
1971
|
type MeshLocationUserPermissions =
|
|
1987
1972
|
/** Uniform Context:Enrichments:Create */
|
|
1988
1973
|
'ENRICHMENTS_CREATE'
|
|
@@ -2085,6 +2070,25 @@ type SetValueMessage = {
|
|
|
2085
2070
|
type GetDataResourceLocation = {
|
|
2086
2071
|
getDataResource: Awaited<ReturnType<typeof connectToParent>>['parent']['getDataResource'];
|
|
2087
2072
|
};
|
|
2073
|
+
type GetEditorStateLocation = {
|
|
2074
|
+
/**
|
|
2075
|
+
* Imperative API for interacting with the composition/entry editor state.
|
|
2076
|
+
* Provides non-reactive access to read and modify the editor state.
|
|
2077
|
+
* @deprecated This is experimental functionality and is subject to change without notice.
|
|
2078
|
+
*/
|
|
2079
|
+
editorState: EditorStateApi;
|
|
2080
|
+
};
|
|
2081
|
+
type GetEditorStateLocationMaybe = {
|
|
2082
|
+
/**
|
|
2083
|
+
* Imperative API for interacting with the composition/entry editor state.
|
|
2084
|
+
* Provides non-reactive access to read and modify the editor state.
|
|
2085
|
+
*
|
|
2086
|
+
* "undefined" means that the location is rendered outside of Canvas Editor context, e.g. Data Type testing.
|
|
2087
|
+
*
|
|
2088
|
+
* @deprecated This is experimental functionality and is subject to change without notice.
|
|
2089
|
+
*/
|
|
2090
|
+
editorState: EditorStateApi | undefined;
|
|
2091
|
+
};
|
|
2088
2092
|
/**
|
|
2089
2093
|
* Dynamic inputs come from project map and represent path or query based dynamic values
|
|
2090
2094
|
* These can be connected to from within a Mesh location by setting a data resource variable to contain ex:
|
|
@@ -2248,7 +2252,7 @@ type UpdateRootNodeOptions = {
|
|
|
2248
2252
|
};
|
|
2249
2253
|
/**
|
|
2250
2254
|
* Imperative API for interacting with the composition/entry editor state.
|
|
2251
|
-
* Available on `canvasEditorTools` and `
|
|
2255
|
+
* Available on `canvasEditorTools`, `paramType`, `dataResource`, and `dataResourceSelector` locations.
|
|
2252
2256
|
*
|
|
2253
2257
|
* All methods use object parameters for consistency across client, wire format, and server.
|
|
2254
2258
|
*/
|
|
@@ -2370,27 +2374,8 @@ type PromptSettingsLocationMetadata<TIntegrationConfiguration = unknown> = Commo
|
|
|
2370
2374
|
type AIGenerateLocation<TType> = MeshLocationCore<TType, AIGenerateLocationMetadata, TType, 'aiGenerate'>;
|
|
2371
2375
|
type AIPromptMetadataLocation = MeshLocationCore<Record<string, unknown>, PromptSettingsLocationMetadata, Record<string, unknown>, 'aiMetadata'>;
|
|
2372
2376
|
|
|
2373
|
-
type CanvasEditorToolsLocationMetadata<TIntegrationConfiguration = unknown> = CommonMetadata<{
|
|
2374
|
-
/**
|
|
2375
|
-
* The release ID of the currently edited entity.
|
|
2376
|
-
* This can be undefined when a release is active but the entity has not been copied to that release yet.
|
|
2377
|
-
*/
|
|
2378
|
-
releaseId?: string;
|
|
2379
|
-
/**
|
|
2380
|
-
* The currently active release ID from editor context.
|
|
2381
|
-
* This reflects release selection regardless of whether the edited entity exists in that release.
|
|
2382
|
-
*/
|
|
2383
|
-
activeReleaseId?: string;
|
|
2377
|
+
type CanvasEditorToolsLocationMetadata<TIntegrationConfiguration = unknown> = CommonMetadata<CanvasEditorContextMetadata & {
|
|
2384
2378
|
state?: number;
|
|
2385
|
-
/** The current locale selected in the editor UI */
|
|
2386
|
-
currentLocale: string | undefined;
|
|
2387
|
-
/**
|
|
2388
|
-
* Current dynamic inputs configured on the composition (if any).
|
|
2389
|
-
* Dynamic inputs come from project map nodes and represent path or query based dynamic values.
|
|
2390
|
-
*/
|
|
2391
|
-
dynamicInputs: DynamicInputs;
|
|
2392
|
-
/** Component definitions index, keyed by public id. */
|
|
2393
|
-
componentDefinitions: Record<string, ComponentDefinition | undefined>;
|
|
2394
2379
|
}, TIntegrationConfiguration>;
|
|
2395
2380
|
type CanvasEditorToolsReferenceData = {
|
|
2396
2381
|
name: string;
|
|
@@ -2409,14 +2394,7 @@ type CanvasEditorToolsData = {
|
|
|
2409
2394
|
rootEntity: EntryData;
|
|
2410
2395
|
entityType: 'entry' | 'entryPattern';
|
|
2411
2396
|
});
|
|
2412
|
-
type CanvasEditorToolsLocation = MeshLocationCore<CanvasEditorToolsData, CanvasEditorToolsLocationMetadata, CanvasEditorToolsData, 'canvasEditorTools'> & GetDataResourceLocation &
|
|
2413
|
-
/**
|
|
2414
|
-
* Imperative API for interacting with the composition/entry editor state.
|
|
2415
|
-
* Provides non-reactive access to read and modify the editor state.
|
|
2416
|
-
* @deprecated This is experimental functionality and is subject to change without notice.
|
|
2417
|
-
*/
|
|
2418
|
-
editorState: EditorStateApi;
|
|
2419
|
-
};
|
|
2397
|
+
type CanvasEditorToolsLocation = MeshLocationCore<CanvasEditorToolsData, CanvasEditorToolsLocationMetadata, CanvasEditorToolsData, 'canvasEditorTools'> & GetDataResourceLocation & GetEditorStateLocation;
|
|
2420
2398
|
|
|
2421
2399
|
/**
|
|
2422
2400
|
* @deprecated Alpha version of the Embedded Editor location. This location is not yet available for use in the Mesh SDK.
|
|
@@ -2584,4 +2562,4 @@ declare const hasPermissions: (permissions: MeshLocationUserPermissions | MeshLo
|
|
|
2584
2562
|
*/
|
|
2585
2563
|
declare const hasRole: (role: string, user: UniformUser) => boolean;
|
|
2586
2564
|
|
|
2587
|
-
export { type AIGenerateLocation, type AIGenerateLocationMetadata, type AIPromptMetadataLocation, type AssetLibraryLocation, type AssetLibraryLocationMetadata, type AssetParameterLocation, type AssetParameterLocationMetadata, type BindableTypes, type CSSHeight, type CanvasEditorEntityType, type CanvasEditorToolsData, type CanvasEditorToolsLocation, type CanvasEditorToolsLocationMetadata, type CloseDialogMessage, type CloseLocationDialogOptions, type CommonMetadata, type DashboardToolLocation, type DashboardToolLocationMetadata, type DataConnectorInfo, type DataResourceLocation, type DataResourceLocationMetadata, type DataResourceSelectorLocation, type DataResourceSelectorLocationMetadata, type DataSourceLocation, type DataSourceLocationMetadata, type DataSourceLocationValue, type DataTypeLocation, type DataTypeLocationMetadata, type DataTypeLocationValue, type DeleteNodeOptions, 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 EditorComponentInstance, type EditorComponentParameter, type EditorExportOptions, type EditorNode, type EditorNodeChildren, type EditorNodeParentInfo, type EditorRootMetadata, type EditorRootNodeMetadata, type EditorStateApi, type EmbeddedEditorLocation, type EmbeddedEditorLocationMetadata, type EmbeddedEditorLocationSetValue, type EmbeddedEditorLocationValue, type FunctionCallResponse, type FunctionCallSystemParameter, type GetDataResourceLocation, type GetDataResourceMessage, type InsertNodeOptions, type InsertPatternOptions, 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 MeshRouter, type MeshSDKEventInterface, type MoveNodeOptions, type NavigateMessage, type OpenConfirmationDialogOptions, type OpenConfirmationDialogResult, type OpenDialogMessage, type OpenDialogResult, type OpenLocationDialogOptions, type ParamTypeConfigLocation, type ParamTypeConfigLocationMetadata, type ParamTypeLocation, type ParamTypeLocationMetadata, type PersonalizationCriteriaLocation, type PersonalizationCriteriaLocationMetadata, type ProjectToolLocation, type ProjectToolLocationMetadata, type PromptSettingsLocationMetadata, type SdkWindow, type SetLocationFunction, type SetPropertyLocalizabilityCommonParams, type SetPropertyLocalizabilityParams, type SetValueMessage, type SetValueOptions, type SettingsLocation, type SettingsLocationMetadata, type UniformMeshSDK, type UniformMeshSDKEvents, type UniformUser, type UpdateNodePropertyOptions, type UpdateRootNodeOptions, type ValidationResult, functionCallSystemParameters, hasPermissions, hasRole, initializeUniformMeshSDK, parseFunctionCall };
|
|
2565
|
+
export { type AIGenerateLocation, type AIGenerateLocationMetadata, type AIPromptMetadataLocation, type AssetLibraryLocation, type AssetLibraryLocationMetadata, type AssetParameterLocation, type AssetParameterLocationMetadata, type BindableTypes, type CSSHeight, type CanvasEditorContextMetadata, type CanvasEditorEntityType, type CanvasEditorToolsData, type CanvasEditorToolsLocation, type CanvasEditorToolsLocationMetadata, type CloseDialogMessage, type CloseLocationDialogOptions, type CommonMetadata, type DashboardToolLocation, type DashboardToolLocationMetadata, type DataConnectorInfo, type DataResourceLocation, type DataResourceLocationMetadata, type DataResourceSelectorLocation, type DataResourceSelectorLocationMetadata, type DataSourceLocation, type DataSourceLocationMetadata, type DataSourceLocationValue, type DataTypeLocation, type DataTypeLocationMetadata, type DataTypeLocationValue, type DeleteNodeOptions, 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 EditorComponentInstance, type EditorComponentParameter, type EditorExportOptions, type EditorNode, type EditorNodeChildren, type EditorNodeParentInfo, type EditorRootMetadata, type EditorRootNodeMetadata, type EditorStateApi, type EmbeddedEditorLocation, type EmbeddedEditorLocationMetadata, type EmbeddedEditorLocationSetValue, type EmbeddedEditorLocationValue, type FunctionCallResponse, type FunctionCallSystemParameter, type GetDataResourceLocation, type GetDataResourceMessage, type GetEditorStateLocation, type GetEditorStateLocationMaybe, type InsertNodeOptions, type InsertPatternOptions, 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 MeshRouter, type MeshSDKEventInterface, type MoveNodeOptions, type NavigateMessage, type OpenConfirmationDialogOptions, type OpenConfirmationDialogResult, type OpenDialogMessage, type OpenDialogResult, type OpenLocationDialogOptions, type ParamTypeConfigLocation, type ParamTypeConfigLocationMetadata, type ParamTypeLocation, type ParamTypeLocationMetadata, type PersonalizationCriteriaLocation, type PersonalizationCriteriaLocationMetadata, type ProjectToolLocation, type ProjectToolLocationMetadata, type PromptSettingsLocationMetadata, type SdkWindow, type SetLocationFunction, type SetPropertyLocalizabilityCommonParams, type SetPropertyLocalizabilityParams, type SetValueMessage, type SetValueOptions, type SettingsLocation, type SettingsLocationMetadata, type UniformMeshSDK, type UniformMeshSDKEvents, type UniformUser, type UpdateNodePropertyOptions, type UpdateRootNodeOptions, type ValidationResult, functionCallSystemParameters, hasPermissions, hasRole, initializeUniformMeshSDK, parseFunctionCall };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApiClient, ClientOptions, ExceptProject } from '@uniformdev/context/api';
|
|
2
|
-
import { AssetParamValue, DataType, DataSource, DataResourceVariables, DataSourceVariantsKeys,
|
|
2
|
+
import { AssetParamValue, DataType, DataSource, DataResourceVariables, DataSourceVariantsKeys, RootComponentInstance, ComponentInstance, ComponentDefinitionParameter, DataVariableDefinition, Locale, ComponentDefinition, EntryData, ComponentParameter, VisibilityCriteriaGroup } from '@uniformdev/canvas';
|
|
3
3
|
export { AssetParamValue, AssetParamValueItem } from '@uniformdev/canvas';
|
|
4
4
|
import { ProjectMapNode } from '@uniformdev/project-map';
|
|
5
5
|
import { AssetDefinitionType } from '@uniformdev/assets';
|
|
@@ -1527,6 +1527,7 @@ declare function parseFunctionCall<Parameters extends Record<string, string>, Se
|
|
|
1527
1527
|
name: string;
|
|
1528
1528
|
type: "function_call";
|
|
1529
1529
|
id?: string;
|
|
1530
|
+
namespace?: string;
|
|
1530
1531
|
status?: "in_progress" | "completed" | "incomplete";
|
|
1531
1532
|
};
|
|
1532
1533
|
settings: Settings;
|
|
@@ -1578,17 +1579,7 @@ type DataTypeLocationMetadata<TIntegrationConfiguration = unknown> = CommonMetad
|
|
|
1578
1579
|
}, TIntegrationConfiguration>;
|
|
1579
1580
|
type DataTypeLocation = MeshLocationCore<DataTypeLocationValue, DataTypeLocationMetadata, DataTypeLocationValue, 'dataType'> & GetDataResourceLocation;
|
|
1580
1581
|
|
|
1581
|
-
type DataResourceLocationMetadata<TIntegrationConfiguration = unknown> = CommonMetadata<{
|
|
1582
|
-
/**
|
|
1583
|
-
* The release ID of the currently edited entity.
|
|
1584
|
-
* This can be undefined when a release is active but the entity has not been copied to that release yet.
|
|
1585
|
-
*/
|
|
1586
|
-
releaseId?: string;
|
|
1587
|
-
/**
|
|
1588
|
-
* The currently active release ID from editor context.
|
|
1589
|
-
* This reflects release selection regardless of whether the edited entity exists in that release.
|
|
1590
|
-
*/
|
|
1591
|
-
activeReleaseId?: string;
|
|
1582
|
+
type DataResourceLocationMetadata<TIntegrationConfiguration = unknown> = CommonMetadata<CanvasEditorContextMetadata & {
|
|
1592
1583
|
dataType: DataType;
|
|
1593
1584
|
/** The data type's archetype value. */
|
|
1594
1585
|
archetype: string;
|
|
@@ -1598,12 +1589,10 @@ type DataResourceLocationMetadata<TIntegrationConfiguration = unknown> = CommonM
|
|
|
1598
1589
|
dataSource: DataSource;
|
|
1599
1590
|
/** The data connector type of the current data resource's data source */
|
|
1600
1591
|
dataConnector: DataConnectorInfo;
|
|
1601
|
-
/** Current dynamic inputs that are configured on the composition (if any). */
|
|
1602
|
-
dynamicInputs: DynamicInputs;
|
|
1603
1592
|
/** Which Data Source variant is being resolved and used for getDataResource (unless overriden explicitly via providing "undefined") */
|
|
1604
1593
|
dataSourceVariant?: DataSourceVariantsKeys;
|
|
1605
1594
|
}, TIntegrationConfiguration>;
|
|
1606
|
-
type DataResourceLocation = MeshLocationCore<DataResourceVariables, DataResourceLocationMetadata, DataResourceVariables, 'dataResource'> & GetDataResourceLocation;
|
|
1595
|
+
type DataResourceLocation = MeshLocationCore<DataResourceVariables, DataResourceLocationMetadata, DataResourceVariables, 'dataResource'> & GetDataResourceLocation & GetEditorStateLocationMaybe;
|
|
1607
1596
|
|
|
1608
1597
|
/**
|
|
1609
1598
|
* Metadata for the dataResourceSelector location.
|
|
@@ -1611,7 +1600,7 @@ type DataResourceLocation = MeshLocationCore<DataResourceVariables, DataResource
|
|
|
1611
1600
|
* replacing the default JSON tree viewer in the dynamic token picker.
|
|
1612
1601
|
* @deprecated This is experimental functionality and is subject to change without notice.
|
|
1613
1602
|
*/
|
|
1614
|
-
type DataResourceSelectorLocationMetadata<TIntegrationConfiguration = unknown> = CommonMetadata<{
|
|
1603
|
+
type DataResourceSelectorLocationMetadata<TIntegrationConfiguration = unknown> = CommonMetadata<CanvasEditorContextMetadata & {
|
|
1615
1604
|
/** The resolved data for the currently selected data resource */
|
|
1616
1605
|
dataResourceValue: unknown;
|
|
1617
1606
|
/** The name of the currently selected data resource */
|
|
@@ -1622,8 +1611,6 @@ type DataResourceSelectorLocationMetadata<TIntegrationConfiguration = unknown> =
|
|
|
1622
1611
|
archetype: string;
|
|
1623
1612
|
/** Allowed bindable types for the parameter being connected */
|
|
1624
1613
|
allowedTypes: BindableTypes[];
|
|
1625
|
-
/** Component definitions index, keyed by public id. */
|
|
1626
|
-
componentDefinitions: Record<string, ComponentDefinition | undefined>;
|
|
1627
1614
|
}, TIntegrationConfiguration>;
|
|
1628
1615
|
/**
|
|
1629
1616
|
* Location for custom data resource selector UI.
|
|
@@ -1635,14 +1622,7 @@ type DataResourceSelectorLocationMetadata<TIntegrationConfiguration = unknown> =
|
|
|
1635
1622
|
* editorState: Imperative API for inspecting/mutating the underlying composition / entry tree
|
|
1636
1623
|
* @deprecated This is experimental functionality and is subject to change without notice.
|
|
1637
1624
|
*/
|
|
1638
|
-
type DataResourceSelectorLocation = MeshLocationCore<string, DataResourceSelectorLocationMetadata, string, 'dataResourceSelector'> & GetDataResourceLocation &
|
|
1639
|
-
/**
|
|
1640
|
-
* Imperative API for interacting with the composition/entry editor state.
|
|
1641
|
-
* Provides non-reactive access to read and modify the editor state.
|
|
1642
|
-
* @deprecated This is experimental functionality and is subject to change without notice.
|
|
1643
|
-
*/
|
|
1644
|
-
editorState: EditorStateApi;
|
|
1645
|
-
};
|
|
1625
|
+
type DataResourceSelectorLocation = MeshLocationCore<string, DataResourceSelectorLocationMetadata, string, 'dataResourceSelector'> & GetDataResourceLocation & GetEditorStateLocationMaybe;
|
|
1646
1626
|
|
|
1647
1627
|
type DataSourceLocationValue = Pick<DataSource, 'baseUrl' | 'custom' | 'customPublic' | 'headers' | 'parameters' | 'variables' | 'enableUnpublishedMode' | 'variants'>;
|
|
1648
1628
|
type DataSourceLocationMetadata<TIntegrationConfiguration = unknown> = CommonMetadata<{
|
|
@@ -1654,20 +1634,14 @@ type DataSourceLocationMetadata<TIntegrationConfiguration = unknown> = CommonMet
|
|
|
1654
1634
|
}, TIntegrationConfiguration>;
|
|
1655
1635
|
type DataSourceLocation = MeshLocationCore<DataSourceLocationValue, DataSourceLocationMetadata, DataSourceLocationValue, 'dataSource'>;
|
|
1656
1636
|
|
|
1657
|
-
type ParamTypeLocationMetadata<TParamConfiguration = unknown, TIntegrationConfiguration = unknown> = CommonMetadata<{
|
|
1637
|
+
type ParamTypeLocationMetadata<TParamConfiguration = unknown, TIntegrationConfiguration = unknown> = CommonMetadata<CanvasEditorContextMetadata & {
|
|
1658
1638
|
/** editorState is an experimental replacement for rootNode. This may become deprecated in the future. */
|
|
1659
1639
|
rootNode: Omit<RootComponentInstance, 'slots' | '_data'> & {
|
|
1660
1640
|
_editionId?: string;
|
|
1661
1641
|
};
|
|
1662
1642
|
parameterConfiguration: TParamConfiguration;
|
|
1663
1643
|
component: Omit<ComponentInstance, 'slots'>;
|
|
1664
|
-
componentDefinitions: Record<string, ComponentDefinition | undefined>;
|
|
1665
1644
|
parameterDefinition: ComponentDefinitionParameter;
|
|
1666
|
-
/**
|
|
1667
|
-
* Current dynamic inputs that are configured on the composition (if any).
|
|
1668
|
-
* Use the <ParamTypeDynamicDataProvider> to wire up dynamic data in your parameter.
|
|
1669
|
-
*/
|
|
1670
|
-
dynamicInputs: DynamicInputs;
|
|
1671
1645
|
/**
|
|
1672
1646
|
* The connected data for the current component. Connected data is provided as a map
|
|
1673
1647
|
* of the binding expression text to the value of that binding expression. For example,
|
|
@@ -1684,11 +1658,6 @@ type ParamTypeLocationMetadata<TParamConfiguration = unknown, TIntegrationConfig
|
|
|
1684
1658
|
* Note that setValue() always sets the target language automatically.
|
|
1685
1659
|
*/
|
|
1686
1660
|
targetLocale: string | undefined;
|
|
1687
|
-
/**
|
|
1688
|
-
* The current locale selected in the editor UI.
|
|
1689
|
-
* Unlike targetLocale, this reflects the editor's global locale state.
|
|
1690
|
-
*/
|
|
1691
|
-
currentLocale: string | undefined;
|
|
1692
1661
|
/**
|
|
1693
1662
|
* When editing a conditional value, this is the index in the parent parameter of the conditional value.
|
|
1694
1663
|
* If this is -1, then the editor is not editing a conditional value.
|
|
@@ -1701,13 +1670,7 @@ type ParamTypeLocation<TParamValue = unknown, TParamConfiguration = unknown, TPa
|
|
|
1701
1670
|
* Returns the result of the dialog. Useful to build data-enabled parameter types.
|
|
1702
1671
|
*/
|
|
1703
1672
|
editConnectedData: Awaited<ReturnType<typeof connectToParent>>['parent']['editConnectedData'];
|
|
1704
|
-
|
|
1705
|
-
* Imperative API for interacting with the composition/entry editor state.
|
|
1706
|
-
* Provides non-reactive access to read and modify the editor state.
|
|
1707
|
-
* @deprecated This is experimental functionality and is subject to change without notice.
|
|
1708
|
-
*/
|
|
1709
|
-
editorState: EditorStateApi;
|
|
1710
|
-
};
|
|
1673
|
+
} & GetEditorStateLocation;
|
|
1711
1674
|
|
|
1712
1675
|
type SettingsLocationMetadata = CommonMetadata;
|
|
1713
1676
|
type SettingsLocation<TSettingsType> = MeshLocationCore<TSettingsType, SettingsLocationMetadata, TSettingsType, 'settings'>;
|
|
@@ -1983,6 +1946,28 @@ type CommonMetadata<ExtendedMetadata = unknown, TIntegrationConfiguration = unkn
|
|
|
1983
1946
|
/** List if enabled Uniform Project locales */
|
|
1984
1947
|
locales: Locale[];
|
|
1985
1948
|
} & ExtendedMetadata;
|
|
1949
|
+
/**
|
|
1950
|
+
* Serializable metadata fields available in Canvas/Entry editor context.
|
|
1951
|
+
* {@link EditorStateApi} is not part of metadata; it is provided on the location object via mesh-sdk comms.
|
|
1952
|
+
*/
|
|
1953
|
+
type CanvasEditorContextMetadata = {
|
|
1954
|
+
/** Component definitions index, keyed by public id. */
|
|
1955
|
+
componentDefinitions: Record<string, ComponentDefinition | undefined>;
|
|
1956
|
+
/** Current dynamic inputs configured on the composition (if any). */
|
|
1957
|
+
dynamicInputs: DynamicInputs;
|
|
1958
|
+
/** The current locale selected in the editor UI */
|
|
1959
|
+
currentLocale: string | undefined;
|
|
1960
|
+
/**
|
|
1961
|
+
* The release ID of the currently edited entity.
|
|
1962
|
+
* Can be undefined when a release is active but the entity has not been copied to that release yet.
|
|
1963
|
+
*/
|
|
1964
|
+
releaseId?: string;
|
|
1965
|
+
/**
|
|
1966
|
+
* The currently active release ID from editor context.
|
|
1967
|
+
* This reflects release selection regardless of whether the edited entity exists in that release.
|
|
1968
|
+
*/
|
|
1969
|
+
activeReleaseId?: string;
|
|
1970
|
+
};
|
|
1986
1971
|
type MeshLocationUserPermissions =
|
|
1987
1972
|
/** Uniform Context:Enrichments:Create */
|
|
1988
1973
|
'ENRICHMENTS_CREATE'
|
|
@@ -2085,6 +2070,25 @@ type SetValueMessage = {
|
|
|
2085
2070
|
type GetDataResourceLocation = {
|
|
2086
2071
|
getDataResource: Awaited<ReturnType<typeof connectToParent>>['parent']['getDataResource'];
|
|
2087
2072
|
};
|
|
2073
|
+
type GetEditorStateLocation = {
|
|
2074
|
+
/**
|
|
2075
|
+
* Imperative API for interacting with the composition/entry editor state.
|
|
2076
|
+
* Provides non-reactive access to read and modify the editor state.
|
|
2077
|
+
* @deprecated This is experimental functionality and is subject to change without notice.
|
|
2078
|
+
*/
|
|
2079
|
+
editorState: EditorStateApi;
|
|
2080
|
+
};
|
|
2081
|
+
type GetEditorStateLocationMaybe = {
|
|
2082
|
+
/**
|
|
2083
|
+
* Imperative API for interacting with the composition/entry editor state.
|
|
2084
|
+
* Provides non-reactive access to read and modify the editor state.
|
|
2085
|
+
*
|
|
2086
|
+
* "undefined" means that the location is rendered outside of Canvas Editor context, e.g. Data Type testing.
|
|
2087
|
+
*
|
|
2088
|
+
* @deprecated This is experimental functionality and is subject to change without notice.
|
|
2089
|
+
*/
|
|
2090
|
+
editorState: EditorStateApi | undefined;
|
|
2091
|
+
};
|
|
2088
2092
|
/**
|
|
2089
2093
|
* Dynamic inputs come from project map and represent path or query based dynamic values
|
|
2090
2094
|
* These can be connected to from within a Mesh location by setting a data resource variable to contain ex:
|
|
@@ -2248,7 +2252,7 @@ type UpdateRootNodeOptions = {
|
|
|
2248
2252
|
};
|
|
2249
2253
|
/**
|
|
2250
2254
|
* Imperative API for interacting with the composition/entry editor state.
|
|
2251
|
-
* Available on `canvasEditorTools` and `
|
|
2255
|
+
* Available on `canvasEditorTools`, `paramType`, `dataResource`, and `dataResourceSelector` locations.
|
|
2252
2256
|
*
|
|
2253
2257
|
* All methods use object parameters for consistency across client, wire format, and server.
|
|
2254
2258
|
*/
|
|
@@ -2370,27 +2374,8 @@ type PromptSettingsLocationMetadata<TIntegrationConfiguration = unknown> = Commo
|
|
|
2370
2374
|
type AIGenerateLocation<TType> = MeshLocationCore<TType, AIGenerateLocationMetadata, TType, 'aiGenerate'>;
|
|
2371
2375
|
type AIPromptMetadataLocation = MeshLocationCore<Record<string, unknown>, PromptSettingsLocationMetadata, Record<string, unknown>, 'aiMetadata'>;
|
|
2372
2376
|
|
|
2373
|
-
type CanvasEditorToolsLocationMetadata<TIntegrationConfiguration = unknown> = CommonMetadata<{
|
|
2374
|
-
/**
|
|
2375
|
-
* The release ID of the currently edited entity.
|
|
2376
|
-
* This can be undefined when a release is active but the entity has not been copied to that release yet.
|
|
2377
|
-
*/
|
|
2378
|
-
releaseId?: string;
|
|
2379
|
-
/**
|
|
2380
|
-
* The currently active release ID from editor context.
|
|
2381
|
-
* This reflects release selection regardless of whether the edited entity exists in that release.
|
|
2382
|
-
*/
|
|
2383
|
-
activeReleaseId?: string;
|
|
2377
|
+
type CanvasEditorToolsLocationMetadata<TIntegrationConfiguration = unknown> = CommonMetadata<CanvasEditorContextMetadata & {
|
|
2384
2378
|
state?: number;
|
|
2385
|
-
/** The current locale selected in the editor UI */
|
|
2386
|
-
currentLocale: string | undefined;
|
|
2387
|
-
/**
|
|
2388
|
-
* Current dynamic inputs configured on the composition (if any).
|
|
2389
|
-
* Dynamic inputs come from project map nodes and represent path or query based dynamic values.
|
|
2390
|
-
*/
|
|
2391
|
-
dynamicInputs: DynamicInputs;
|
|
2392
|
-
/** Component definitions index, keyed by public id. */
|
|
2393
|
-
componentDefinitions: Record<string, ComponentDefinition | undefined>;
|
|
2394
2379
|
}, TIntegrationConfiguration>;
|
|
2395
2380
|
type CanvasEditorToolsReferenceData = {
|
|
2396
2381
|
name: string;
|
|
@@ -2409,14 +2394,7 @@ type CanvasEditorToolsData = {
|
|
|
2409
2394
|
rootEntity: EntryData;
|
|
2410
2395
|
entityType: 'entry' | 'entryPattern';
|
|
2411
2396
|
});
|
|
2412
|
-
type CanvasEditorToolsLocation = MeshLocationCore<CanvasEditorToolsData, CanvasEditorToolsLocationMetadata, CanvasEditorToolsData, 'canvasEditorTools'> & GetDataResourceLocation &
|
|
2413
|
-
/**
|
|
2414
|
-
* Imperative API for interacting with the composition/entry editor state.
|
|
2415
|
-
* Provides non-reactive access to read and modify the editor state.
|
|
2416
|
-
* @deprecated This is experimental functionality and is subject to change without notice.
|
|
2417
|
-
*/
|
|
2418
|
-
editorState: EditorStateApi;
|
|
2419
|
-
};
|
|
2397
|
+
type CanvasEditorToolsLocation = MeshLocationCore<CanvasEditorToolsData, CanvasEditorToolsLocationMetadata, CanvasEditorToolsData, 'canvasEditorTools'> & GetDataResourceLocation & GetEditorStateLocation;
|
|
2420
2398
|
|
|
2421
2399
|
/**
|
|
2422
2400
|
* @deprecated Alpha version of the Embedded Editor location. This location is not yet available for use in the Mesh SDK.
|
|
@@ -2584,4 +2562,4 @@ declare const hasPermissions: (permissions: MeshLocationUserPermissions | MeshLo
|
|
|
2584
2562
|
*/
|
|
2585
2563
|
declare const hasRole: (role: string, user: UniformUser) => boolean;
|
|
2586
2564
|
|
|
2587
|
-
export { type AIGenerateLocation, type AIGenerateLocationMetadata, type AIPromptMetadataLocation, type AssetLibraryLocation, type AssetLibraryLocationMetadata, type AssetParameterLocation, type AssetParameterLocationMetadata, type BindableTypes, type CSSHeight, type CanvasEditorEntityType, type CanvasEditorToolsData, type CanvasEditorToolsLocation, type CanvasEditorToolsLocationMetadata, type CloseDialogMessage, type CloseLocationDialogOptions, type CommonMetadata, type DashboardToolLocation, type DashboardToolLocationMetadata, type DataConnectorInfo, type DataResourceLocation, type DataResourceLocationMetadata, type DataResourceSelectorLocation, type DataResourceSelectorLocationMetadata, type DataSourceLocation, type DataSourceLocationMetadata, type DataSourceLocationValue, type DataTypeLocation, type DataTypeLocationMetadata, type DataTypeLocationValue, type DeleteNodeOptions, 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 EditorComponentInstance, type EditorComponentParameter, type EditorExportOptions, type EditorNode, type EditorNodeChildren, type EditorNodeParentInfo, type EditorRootMetadata, type EditorRootNodeMetadata, type EditorStateApi, type EmbeddedEditorLocation, type EmbeddedEditorLocationMetadata, type EmbeddedEditorLocationSetValue, type EmbeddedEditorLocationValue, type FunctionCallResponse, type FunctionCallSystemParameter, type GetDataResourceLocation, type GetDataResourceMessage, type InsertNodeOptions, type InsertPatternOptions, 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 MeshRouter, type MeshSDKEventInterface, type MoveNodeOptions, type NavigateMessage, type OpenConfirmationDialogOptions, type OpenConfirmationDialogResult, type OpenDialogMessage, type OpenDialogResult, type OpenLocationDialogOptions, type ParamTypeConfigLocation, type ParamTypeConfigLocationMetadata, type ParamTypeLocation, type ParamTypeLocationMetadata, type PersonalizationCriteriaLocation, type PersonalizationCriteriaLocationMetadata, type ProjectToolLocation, type ProjectToolLocationMetadata, type PromptSettingsLocationMetadata, type SdkWindow, type SetLocationFunction, type SetPropertyLocalizabilityCommonParams, type SetPropertyLocalizabilityParams, type SetValueMessage, type SetValueOptions, type SettingsLocation, type SettingsLocationMetadata, type UniformMeshSDK, type UniformMeshSDKEvents, type UniformUser, type UpdateNodePropertyOptions, type UpdateRootNodeOptions, type ValidationResult, functionCallSystemParameters, hasPermissions, hasRole, initializeUniformMeshSDK, parseFunctionCall };
|
|
2565
|
+
export { type AIGenerateLocation, type AIGenerateLocationMetadata, type AIPromptMetadataLocation, type AssetLibraryLocation, type AssetLibraryLocationMetadata, type AssetParameterLocation, type AssetParameterLocationMetadata, type BindableTypes, type CSSHeight, type CanvasEditorContextMetadata, type CanvasEditorEntityType, type CanvasEditorToolsData, type CanvasEditorToolsLocation, type CanvasEditorToolsLocationMetadata, type CloseDialogMessage, type CloseLocationDialogOptions, type CommonMetadata, type DashboardToolLocation, type DashboardToolLocationMetadata, type DataConnectorInfo, type DataResourceLocation, type DataResourceLocationMetadata, type DataResourceSelectorLocation, type DataResourceSelectorLocationMetadata, type DataSourceLocation, type DataSourceLocationMetadata, type DataSourceLocationValue, type DataTypeLocation, type DataTypeLocationMetadata, type DataTypeLocationValue, type DeleteNodeOptions, 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 EditorComponentInstance, type EditorComponentParameter, type EditorExportOptions, type EditorNode, type EditorNodeChildren, type EditorNodeParentInfo, type EditorRootMetadata, type EditorRootNodeMetadata, type EditorStateApi, type EmbeddedEditorLocation, type EmbeddedEditorLocationMetadata, type EmbeddedEditorLocationSetValue, type EmbeddedEditorLocationValue, type FunctionCallResponse, type FunctionCallSystemParameter, type GetDataResourceLocation, type GetDataResourceMessage, type GetEditorStateLocation, type GetEditorStateLocationMaybe, type InsertNodeOptions, type InsertPatternOptions, 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 MeshRouter, type MeshSDKEventInterface, type MoveNodeOptions, type NavigateMessage, type OpenConfirmationDialogOptions, type OpenConfirmationDialogResult, type OpenDialogMessage, type OpenDialogResult, type OpenLocationDialogOptions, type ParamTypeConfigLocation, type ParamTypeConfigLocationMetadata, type ParamTypeLocation, type ParamTypeLocationMetadata, type PersonalizationCriteriaLocation, type PersonalizationCriteriaLocationMetadata, type ProjectToolLocation, type ProjectToolLocationMetadata, type PromptSettingsLocationMetadata, type SdkWindow, type SetLocationFunction, type SetPropertyLocalizabilityCommonParams, type SetPropertyLocalizabilityParams, type SetValueMessage, type SetValueOptions, type SettingsLocation, type SettingsLocationMetadata, type UniformMeshSDK, type UniformMeshSDKEvents, type UniformUser, type UpdateNodePropertyOptions, type UpdateRootNodeOptions, type ValidationResult, functionCallSystemParameters, hasPermissions, hasRole, initializeUniformMeshSDK, parseFunctionCall };
|
package/dist/index.esm.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -34,8 +34,8 @@ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read fr
|
|
|
34
34
|
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
35
35
|
|
|
36
36
|
// src/index.ts
|
|
37
|
-
var
|
|
38
|
-
__export(
|
|
37
|
+
var index_exports = {};
|
|
38
|
+
__export(index_exports, {
|
|
39
39
|
IntegrationDefinitionClient: () => IntegrationDefinitionClient,
|
|
40
40
|
IntegrationInstallationClient: () => IntegrationInstallationClient,
|
|
41
41
|
functionCallSystemParameters: () => functionCallSystemParameters,
|
|
@@ -44,7 +44,7 @@ __export(src_exports, {
|
|
|
44
44
|
initializeUniformMeshSDK: () => initializeUniformMeshSDK,
|
|
45
45
|
parseFunctionCall: () => parseFunctionCall
|
|
46
46
|
});
|
|
47
|
-
module.exports = __toCommonJS(
|
|
47
|
+
module.exports = __toCommonJS(index_exports);
|
|
48
48
|
|
|
49
49
|
// src/clients/IntegrationDefinitionClient.ts
|
|
50
50
|
var import_api = require("@uniformdev/context/api");
|
|
@@ -172,7 +172,7 @@ var getLogger = (prefix, debug) => {
|
|
|
172
172
|
};
|
|
173
173
|
|
|
174
174
|
// src/temp/version.ts
|
|
175
|
-
var UNIFORM_MESH_SDK_VERSION = "20.
|
|
175
|
+
var UNIFORM_MESH_SDK_VERSION = "20.70.0";
|
|
176
176
|
|
|
177
177
|
// src/framepost/constants.ts
|
|
178
178
|
var DEFAULT_REQUEST_TIMEOUT = 5e3;
|
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/mesh-sdk",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.70.1-alpha.10+6e0ecaf156",
|
|
4
4
|
"description": "Uniform Mesh Framework SDK",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -32,16 +32,16 @@
|
|
|
32
32
|
"access": "public"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@uniformdev/assets": "20.
|
|
36
|
-
"@uniformdev/canvas": "20.
|
|
37
|
-
"@uniformdev/context": "20.
|
|
38
|
-
"@uniformdev/project-map": "20.
|
|
35
|
+
"@uniformdev/assets": "20.70.1-alpha.10+6e0ecaf156",
|
|
36
|
+
"@uniformdev/canvas": "20.70.1-alpha.10+6e0ecaf156",
|
|
37
|
+
"@uniformdev/context": "20.70.1-alpha.10+6e0ecaf156",
|
|
38
|
+
"@uniformdev/project-map": "20.70.1-alpha.10+6e0ecaf156",
|
|
39
39
|
"imagesloaded": "^5.0.0",
|
|
40
40
|
"mitt": "^3.0.1"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/imagesloaded": "^4.1.2",
|
|
44
|
-
"openai": "
|
|
44
|
+
"openai": "6.44.0"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "6e0ecaf15691da45ddab84cc3ca11c4d048bbbdd"
|
|
47
47
|
}
|