@uniformdev/canvas 19.22.1-alpha.8 → 19.23.1-alpha.12

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 CHANGED
@@ -435,6 +435,11 @@ interface components$4 {
435
435
  default: string;
436
436
  /** @description Sets the order of the variable when displayed in a list with other variables. If not set, the order defaults to alphabetical with any explicitly set orders first in the list. */
437
437
  order?: number;
438
+ /**
439
+ * @description An optional arbitrary human readable source identifier to describe where this variable is from.
440
+ * Some user interfaces may group variables by source value, for example 'From URL' or 'My Integration'.
441
+ */
442
+ source?: string;
438
443
  };
439
444
  /**
440
445
  * @description Data definitions attached to this component. The property name is the key of the data in the data document.
@@ -1049,6 +1054,11 @@ interface external$9 {
1049
1054
  default: string;
1050
1055
  /** @description Sets the order of the variable when displayed in a list with other variables. If not set, the order defaults to alphabetical with any explicitly set orders first in the list. */
1051
1056
  order?: number;
1057
+ /**
1058
+ * @description An optional arbitrary human readable source identifier to describe where this variable is from.
1059
+ * Some user interfaces may group variables by source value, for example 'From URL' or 'My Integration'.
1060
+ */
1061
+ source?: string;
1052
1062
  };
1053
1063
  /**
1054
1064
  * @description Data definitions attached to this component. The property name is the key of the data in the data document.
@@ -1674,6 +1684,11 @@ interface external$8 {
1674
1684
  default: string;
1675
1685
  /** @description Sets the order of the variable when displayed in a list with other variables. If not set, the order defaults to alphabetical with any explicitly set orders first in the list. */
1676
1686
  order?: number;
1687
+ /**
1688
+ * @description An optional arbitrary human readable source identifier to describe where this variable is from.
1689
+ * Some user interfaces may group variables by source value, for example 'From URL' or 'My Integration'.
1690
+ */
1691
+ source?: string;
1677
1692
  };
1678
1693
  /**
1679
1694
  * @description Data definitions attached to this component. The property name is the key of the data in the data document.
@@ -2230,6 +2245,11 @@ interface external$7 {
2230
2245
  default: string;
2231
2246
  /** @description Sets the order of the variable when displayed in a list with other variables. If not set, the order defaults to alphabetical with any explicitly set orders first in the list. */
2232
2247
  order?: number;
2248
+ /**
2249
+ * @description An optional arbitrary human readable source identifier to describe where this variable is from.
2250
+ * Some user interfaces may group variables by source value, for example 'From URL' or 'My Integration'.
2251
+ */
2252
+ source?: string;
2233
2253
  };
2234
2254
  /**
2235
2255
  * @description Data definitions attached to this component. The property name is the key of the data in the data document.
@@ -2821,6 +2841,11 @@ interface external$6 {
2821
2841
  default: string;
2822
2842
  /** @description Sets the order of the variable when displayed in a list with other variables. If not set, the order defaults to alphabetical with any explicitly set orders first in the list. */
2823
2843
  order?: number;
2844
+ /**
2845
+ * @description An optional arbitrary human readable source identifier to describe where this variable is from.
2846
+ * Some user interfaces may group variables by source value, for example 'From URL' or 'My Integration'.
2847
+ */
2848
+ source?: string;
2824
2849
  };
2825
2850
  /**
2826
2851
  * @description Data definitions attached to this component. The property name is the key of the data in the data document.
@@ -3798,6 +3823,11 @@ interface external$5 {
3798
3823
  default: string;
3799
3824
  /** @description Sets the order of the variable when displayed in a list with other variables. If not set, the order defaults to alphabetical with any explicitly set orders first in the list. */
3800
3825
  order?: number;
3826
+ /**
3827
+ * @description An optional arbitrary human readable source identifier to describe where this variable is from.
3828
+ * Some user interfaces may group variables by source value, for example 'From URL' or 'My Integration'.
3829
+ */
3830
+ source?: string;
3801
3831
  };
3802
3832
  /**
3803
3833
  * @description Data definitions attached to this component. The property name is the key of the data in the data document.
@@ -4600,6 +4630,11 @@ interface external$3 {
4600
4630
  default: string;
4601
4631
  /** @description Sets the order of the variable when displayed in a list with other variables. If not set, the order defaults to alphabetical with any explicitly set orders first in the list. */
4602
4632
  order?: number;
4633
+ /**
4634
+ * @description An optional arbitrary human readable source identifier to describe where this variable is from.
4635
+ * Some user interfaces may group variables by source value, for example 'From URL' or 'My Integration'.
4636
+ */
4637
+ source?: string;
4603
4638
  };
4604
4639
  /**
4605
4640
  * @description Data definitions attached to this component. The property name is the key of the data in the data document.
@@ -6018,6 +6053,11 @@ interface external$2 {
6018
6053
  default: string;
6019
6054
  /** @description Sets the order of the variable when displayed in a list with other variables. If not set, the order defaults to alphabetical with any explicitly set orders first in the list. */
6020
6055
  order?: number;
6056
+ /**
6057
+ * @description An optional arbitrary human readable source identifier to describe where this variable is from.
6058
+ * Some user interfaces may group variables by source value, for example 'From URL' or 'My Integration'.
6059
+ */
6060
+ source?: string;
6021
6061
  };
6022
6062
  /**
6023
6063
  * @description Data definitions attached to this component. The property name is the key of the data in the data document.
@@ -7545,6 +7585,7 @@ declare class DataSourceClient extends ApiClient {
7545
7585
  type?: string | undefined;
7546
7586
  default: string;
7547
7587
  order?: number | undefined;
7588
+ source?: string | undefined;
7548
7589
  };
7549
7590
  } | undefined;
7550
7591
  custom?: {
@@ -7574,6 +7615,7 @@ declare class DataSourceClient extends ApiClient {
7574
7615
  type?: string | undefined;
7575
7616
  default: string;
7576
7617
  order?: number | undefined;
7618
+ source?: string | undefined;
7577
7619
  };
7578
7620
  } | undefined;
7579
7621
  custom?: {
@@ -7804,6 +7846,11 @@ type SelectComponentMessage = {
7804
7846
  type: 'select-component';
7805
7847
  id: string;
7806
7848
  };
7849
+ type SelectParameterMessage = {
7850
+ type: 'select-parameter';
7851
+ parameterId: string;
7852
+ componentId: string;
7853
+ };
7807
7854
  type ReadyMessage = {
7808
7855
  type: 'ready';
7809
7856
  framework?: 'React' | 'Vue';
@@ -7863,7 +7910,7 @@ type ReportRenderedCompositionsMessage = {
7863
7910
  compositionIds: string[];
7864
7911
  url: string;
7865
7912
  };
7866
- type ChannelMessage = SelectComponentMessage | ReadyMessage | UpdateCompositionMessage | UpdateCompositionInternalMessage | AddComponentMessage | MoveComponentMessage | DismissPlaceholderMessage | TriggerCompositionActionMessage | UpdatePreviewSettingsMessage | ReportRenderedCompositionsMessage | UpdateComponentParameterMessage | UpdateContextualEditingStateInternalMessage | DismissPlaceholderMessage;
7913
+ type ChannelMessage = SelectComponentMessage | ReadyMessage | UpdateCompositionMessage | UpdateCompositionInternalMessage | AddComponentMessage | MoveComponentMessage | TriggerCompositionActionMessage | UpdatePreviewSettingsMessage | ReportRenderedCompositionsMessage | UpdateComponentParameterMessage | UpdateContextualEditingStateInternalMessage | SelectParameterMessage | DismissPlaceholderMessage;
7867
7914
  declare const isSelectComponentMessage: (message: ChannelMessage) => message is SelectComponentMessage;
7868
7915
  declare const isReadyMessage: (message: ChannelMessage) => message is ReadyMessage;
7869
7916
  declare const isUpdateCompositionMessage: (message: ChannelMessage) => message is UpdateCompositionMessage;
@@ -7876,12 +7923,14 @@ declare const isTriggerCompositionActionMessage: (message: ChannelMessage) => me
7876
7923
  declare const isUpdatePreviewSettingsMessage: (message: ChannelMessage) => message is UpdatePreviewSettingsMessage;
7877
7924
  declare const isUpdateContextualEditingStateInternalMessage: (message: ChannelMessage) => message is UpdateContextualEditingStateInternalMessage;
7878
7925
  declare const isReportRenderedCompositionsMessage: (message: ChannelMessage) => message is ReportRenderedCompositionsMessage;
7926
+ declare const isSelectParameterMessage: (message: ChannelMessage) => message is SelectParameterMessage;
7879
7927
  type MessageHandler = (message: ChannelMessage, originalEvent: MessageEvent) => void;
7880
7928
  type Channel = {
7881
7929
  on: (types: ChannelMessage['type'][] | ChannelMessage['type'], handler: MessageHandler) => () => void;
7882
7930
  ready: () => void;
7883
7931
  destroy: () => void;
7884
7932
  selectComponent: (id: string) => void;
7933
+ selectParameter: (options: Omit<SelectParameterMessage, 'type'>) => void;
7885
7934
  updateComposition: (composition: RootComponentInstance, secret?: string) => void;
7886
7935
  updateCompositionInternal: (composition: RootComponentInstance, hash?: number) => void;
7887
7936
  addComponent: (options: Omit<AddComponentMessage, 'type'>) => void;
@@ -8213,4 +8262,4 @@ declare function mapSlotToTestVariations(slot: ComponentInstance[] | undefined):
8213
8262
 
8214
8263
  declare const CanvasClientError: typeof ApiClientError;
8215
8264
 
8216
- export { AddComponentMessage, BatchEnhancer, BatchEntry, BatchInvalidationPayload, BindVariablesOptions, BindVariablesResult, BindVariablesToObjectOptions, CANVAS_DRAFT_STATE, CANVAS_ENRICHMENT_TAG_PARAM, CANVAS_INTENT_TAG_PARAM, CANVAS_LOCALE_TAG_PARAM, CANVAS_LOCALIZATION_SLOT, CANVAS_LOCALIZATION_TYPE, CANVAS_PERSONALIZATION_PARAM, CANVAS_PERSONALIZE_SLOT, CANVAS_PERSONALIZE_TYPE, CANVAS_PUBLISHED_STATE, CANVAS_TEST_SLOT, CANVAS_TEST_TYPE, CANVAS_TEST_VARIANT_PARAM, CanvasClient, CanvasClientError, CanvasDefinitions, Channel, ChannelMessage, ChannelSubscription, ChildEnhancerBuilder, ComponentDefinition, ComponentDefinitionDeleteParameters, ComponentDefinitionGetParameters, ComponentDefinitionGetResponse, ComponentDefinitionParameter, ComponentDefinitionPermission, ComponentDefinitionPutParameters, ComponentDefinitionSlot, ComponentDefinitionSlugSettings, ComponentDefinitionVariant, ComponentEnhancer, ComponentEnhancerFunction, ComponentEnhancerOptions, ComponentInstance, ComponentInstanceHistoryEntry, ComponentInstanceHistoryGetParameters, ComponentInstanceHistoryGetResponse, ComponentLocationReference, ComponentOverridability, ComponentOverride, ComponentOverrides, ComponentParameter, ComponentParameterContextualEditing, ComponentParameterEnhancer, ComponentParameterEnhancerFunction, ComponentParameterEnhancerOptions, CompositionDataDiagnostic, CompositionDeleteParameters, CompositionDiagnostics, CompositionGetByIdParameters, CompositionGetByNodeIdParameters, CompositionGetByNodePathParameters, CompositionGetBySlugParameters, CompositionGetListResponse, CompositionGetOrderBy, CompositionGetParameters, CompositionGetResponse, CompositionGetValidResponses, CompositionIssue, CompositionPatternIssue, CompositionPutParameters, CompositionRelationshipsClientOptions, CompositionRelationshipsDDefinitionGetResponse, CompositionRelationshipsDefinitionApi, CompositionRelationshipsDefinitionGetParameters, CompositionResolvedGetResponse, CompositionUIStatus, ContextualEditingComponentReference, DataElementBindingIssue, DataElementConnectionDefinition, DataResolutionConfigIssue, DataResolutionOption, DataResolutionOptionNegative, DataResolutionOptionPositive, DataResolutionParameters, DataResourceDefinition, DataResourceDefinitions, DataResourceIssue, DataResourceVariables, DataSource, DataSourceClient, DataSourceDeleteParameters, DataSourceGetParameters, DataSourceGetResponse, DataSourcePutParameters, DataSourcesGetParameters, DataSourcesGetResponse, DataType, DataTypeClient, DataTypeDeleteParameters, DataTypeGetParameters, DataTypeGetResponse, DataTypePutParameters, DataVariableDefinition, DismissPlaceholderMessage, DynamicInputIssue, EDGE_CACHE_DISABLED, EDGE_DEFAULT_CACHE_TTL, EDGE_DEFAULT_L2_CACHE_TTL_IN_HOURS, EDGE_MAX_CACHE_TTL, EDGE_MAX_L2_CACHE_TTL_IN_HOURS, EDGE_MIN_CACHE_TTL, EDGE_MIN_L2_CACHE_TTL_IN_HOURS, EMPTY_COMPOSITION, EnhancerBuilder, EnhancerContext, EnhancerError, EventNames, IN_CONTEXT_EDITOR_COMPONENT_END_ROLE, IN_CONTEXT_EDITOR_COMPONENT_START_ROLE, IN_CONTEXT_EDITOR_EMBED_SCRIPT_ID, IN_CONTEXT_EDITOR_QUERY_STRING_PARAM, IS_RENDERED_BY_UNIFORM_ATTRIBUTE, InvalidationPayload, InvalidationResult, LimitPolicy, LinkComponentParameterValue, LinkParamConfiguration, LinkParamValue, LinkParameterType, LinkTypeConfiguration, MessageHandler, MoveComponentMessage, NonProjectMapLinkParamValue, OverrideOptions, PLACEHOLDER_ID, PreviewEventBus, PreviewPanelSettings, ProjectMapLinkComponentParameterValue, ProjectMapLinkParamValue, ReadyMessage, ReportRenderedCompositionsMessage, ResolvedRouteGetResponse, RichTextBuiltInElement, RichTextBuiltInFormat, RichTextParamConfiguration, RichTextParamValue, RootComponentInstance, RouteClient, RouteDynamicInputs, RouteGetParameters, RouteGetResponse, RouteGetResponseComposition, RouteGetResponseEdgehancedComposition, RouteGetResponseNotFound, RouteGetResponseRedirect, SelectComponentMessage, SpecificProjectMap, SubscribeToCompositionOptions, TriggerCompositionActionMessage, UncachedCanvasClient, UniqueBatchEntries, UnsubscribeCallback, UpdateComponentParameterMessage, UpdateCompositionInternalMessage, UpdateCompositionMessage, UpdateContextualEditingStateInternalMessage, UpdatePreviewSettingsMessage, UsageTrackingApi, UsageTrackingGetParameters, UsageTrackingGetResponse, UsageTrackingPostParameters, UsageTrackingPostResponse, WalkComponentTreeActions, bindVariables, bindVariablesToObject, compose, createBatchEnhancer, createCanvasChannel, createEventBus, createLimitPolicy, createUniformApiEnhancer, enhance, extractLocales, generateHash, getChannelName, getComponentJsonPointer, getComponentPath, isAddComponentMessage, isDismissPlaceholderMessage, isMovingComponentMessage, isReadyMessage, isReportRenderedCompositionsMessage, isSelectComponentMessage, isSystemComponentDefinition, isTriggerCompositionActionMessage, isUpdateComponentParameterMessage, isUpdateCompositionInternalMessage, isUpdateCompositionMessage, isUpdateContextualEditingStateInternalMessage, isUpdatePreviewSettingsMessage, localize, mapSlotToPersonalizedVariations, mapSlotToTestVariations, nullLimitPolicy, subscribeToComposition, unstable_CompositionRelationshipClient, walkComponentTree };
8265
+ export { AddComponentMessage, BatchEnhancer, BatchEntry, BatchInvalidationPayload, BindVariablesOptions, BindVariablesResult, BindVariablesToObjectOptions, CANVAS_DRAFT_STATE, CANVAS_ENRICHMENT_TAG_PARAM, CANVAS_INTENT_TAG_PARAM, CANVAS_LOCALE_TAG_PARAM, CANVAS_LOCALIZATION_SLOT, CANVAS_LOCALIZATION_TYPE, CANVAS_PERSONALIZATION_PARAM, CANVAS_PERSONALIZE_SLOT, CANVAS_PERSONALIZE_TYPE, CANVAS_PUBLISHED_STATE, CANVAS_TEST_SLOT, CANVAS_TEST_TYPE, CANVAS_TEST_VARIANT_PARAM, CanvasClient, CanvasClientError, CanvasDefinitions, Channel, ChannelMessage, ChannelSubscription, ChildEnhancerBuilder, ComponentDefinition, ComponentDefinitionDeleteParameters, ComponentDefinitionGetParameters, ComponentDefinitionGetResponse, ComponentDefinitionParameter, ComponentDefinitionPermission, ComponentDefinitionPutParameters, ComponentDefinitionSlot, ComponentDefinitionSlugSettings, ComponentDefinitionVariant, ComponentEnhancer, ComponentEnhancerFunction, ComponentEnhancerOptions, ComponentInstance, ComponentInstanceHistoryEntry, ComponentInstanceHistoryGetParameters, ComponentInstanceHistoryGetResponse, ComponentLocationReference, ComponentOverridability, ComponentOverride, ComponentOverrides, ComponentParameter, ComponentParameterContextualEditing, ComponentParameterEnhancer, ComponentParameterEnhancerFunction, ComponentParameterEnhancerOptions, CompositionDataDiagnostic, CompositionDeleteParameters, CompositionDiagnostics, CompositionGetByIdParameters, CompositionGetByNodeIdParameters, CompositionGetByNodePathParameters, CompositionGetBySlugParameters, CompositionGetListResponse, CompositionGetOrderBy, CompositionGetParameters, CompositionGetResponse, CompositionGetValidResponses, CompositionIssue, CompositionPatternIssue, CompositionPutParameters, CompositionRelationshipsClientOptions, CompositionRelationshipsDDefinitionGetResponse, CompositionRelationshipsDefinitionApi, CompositionRelationshipsDefinitionGetParameters, CompositionResolvedGetResponse, CompositionUIStatus, ContextualEditingComponentReference, DataElementBindingIssue, DataElementConnectionDefinition, DataResolutionConfigIssue, DataResolutionOption, DataResolutionOptionNegative, DataResolutionOptionPositive, DataResolutionParameters, DataResourceDefinition, DataResourceDefinitions, DataResourceIssue, DataResourceVariables, DataSource, DataSourceClient, DataSourceDeleteParameters, DataSourceGetParameters, DataSourceGetResponse, DataSourcePutParameters, DataSourcesGetParameters, DataSourcesGetResponse, DataType, DataTypeClient, DataTypeDeleteParameters, DataTypeGetParameters, DataTypeGetResponse, DataTypePutParameters, DataVariableDefinition, DismissPlaceholderMessage, DynamicInputIssue, EDGE_CACHE_DISABLED, EDGE_DEFAULT_CACHE_TTL, EDGE_DEFAULT_L2_CACHE_TTL_IN_HOURS, EDGE_MAX_CACHE_TTL, EDGE_MAX_L2_CACHE_TTL_IN_HOURS, EDGE_MIN_CACHE_TTL, EDGE_MIN_L2_CACHE_TTL_IN_HOURS, EMPTY_COMPOSITION, EnhancerBuilder, EnhancerContext, EnhancerError, EventNames, IN_CONTEXT_EDITOR_COMPONENT_END_ROLE, IN_CONTEXT_EDITOR_COMPONENT_START_ROLE, IN_CONTEXT_EDITOR_EMBED_SCRIPT_ID, IN_CONTEXT_EDITOR_QUERY_STRING_PARAM, IS_RENDERED_BY_UNIFORM_ATTRIBUTE, InvalidationPayload, InvalidationResult, LimitPolicy, LinkComponentParameterValue, LinkParamConfiguration, LinkParamValue, LinkParameterType, LinkTypeConfiguration, MessageHandler, MoveComponentMessage, NonProjectMapLinkParamValue, OverrideOptions, PLACEHOLDER_ID, PreviewEventBus, PreviewPanelSettings, ProjectMapLinkComponentParameterValue, ProjectMapLinkParamValue, ReadyMessage, ReportRenderedCompositionsMessage, ResolvedRouteGetResponse, RichTextBuiltInElement, RichTextBuiltInFormat, RichTextParamConfiguration, RichTextParamValue, RootComponentInstance, RouteClient, RouteDynamicInputs, RouteGetParameters, RouteGetResponse, RouteGetResponseComposition, RouteGetResponseEdgehancedComposition, RouteGetResponseNotFound, RouteGetResponseRedirect, SelectComponentMessage, SelectParameterMessage, SpecificProjectMap, SubscribeToCompositionOptions, TriggerCompositionActionMessage, UncachedCanvasClient, UniqueBatchEntries, UnsubscribeCallback, UpdateComponentParameterMessage, UpdateCompositionInternalMessage, UpdateCompositionMessage, UpdateContextualEditingStateInternalMessage, UpdatePreviewSettingsMessage, UsageTrackingApi, UsageTrackingGetParameters, UsageTrackingGetResponse, UsageTrackingPostParameters, UsageTrackingPostResponse, WalkComponentTreeActions, bindVariables, bindVariablesToObject, compose, createBatchEnhancer, createCanvasChannel, createEventBus, createLimitPolicy, createUniformApiEnhancer, enhance, extractLocales, generateHash, getChannelName, getComponentJsonPointer, getComponentPath, isAddComponentMessage, isDismissPlaceholderMessage, isMovingComponentMessage, isReadyMessage, isReportRenderedCompositionsMessage, isSelectComponentMessage, isSelectParameterMessage, isSystemComponentDefinition, isTriggerCompositionActionMessage, isUpdateComponentParameterMessage, isUpdateCompositionInternalMessage, isUpdateCompositionMessage, isUpdateContextualEditingStateInternalMessage, isUpdatePreviewSettingsMessage, localize, mapSlotToPersonalizedVariations, mapSlotToTestVariations, nullLimitPolicy, subscribeToComposition, unstable_CompositionRelationshipClient, walkComponentTree };
package/dist/index.esm.js CHANGED
@@ -1327,6 +1327,9 @@ var isUpdateContextualEditingStateInternalMessage = (message) => {
1327
1327
  var isReportRenderedCompositionsMessage = (message) => {
1328
1328
  return message.type === "report-rendered-compositions";
1329
1329
  };
1330
+ var isSelectParameterMessage = (message) => {
1331
+ return message.type === "select-parameter";
1332
+ };
1330
1333
  var createCanvasChannel = ({
1331
1334
  listenTo,
1332
1335
  broadcastTo
@@ -1443,6 +1446,13 @@ var createCanvasChannel = ({
1443
1446
  };
1444
1447
  postMessage(message);
1445
1448
  };
1449
+ const selectParameter = (options) => {
1450
+ const message = {
1451
+ ...options,
1452
+ type: "select-parameter"
1453
+ };
1454
+ postMessage(message);
1455
+ };
1446
1456
  const messageEventListener = (event) => {
1447
1457
  if (typeof event.data !== "string") {
1448
1458
  return;
@@ -1483,6 +1493,7 @@ var createCanvasChannel = ({
1483
1493
  triggerCompositionAction,
1484
1494
  updatePreviewSettings,
1485
1495
  updateContextualEditingStateInternal,
1496
+ selectParameter,
1486
1497
  reportRenderedCompositions
1487
1498
  };
1488
1499
  };
@@ -1780,6 +1791,7 @@ export {
1780
1791
  isReadyMessage,
1781
1792
  isReportRenderedCompositionsMessage,
1782
1793
  isSelectComponentMessage,
1794
+ isSelectParameterMessage,
1783
1795
  isSystemComponentDefinition,
1784
1796
  isTriggerCompositionActionMessage,
1785
1797
  isUpdateComponentParameterMessage,
package/dist/index.js CHANGED
@@ -332,6 +332,7 @@ __export(src_exports, {
332
332
  isReadyMessage: () => isReadyMessage,
333
333
  isReportRenderedCompositionsMessage: () => isReportRenderedCompositionsMessage,
334
334
  isSelectComponentMessage: () => isSelectComponentMessage,
335
+ isSelectParameterMessage: () => isSelectParameterMessage,
335
336
  isSystemComponentDefinition: () => isSystemComponentDefinition,
336
337
  isTriggerCompositionActionMessage: () => isTriggerCompositionActionMessage,
337
338
  isUpdateComponentParameterMessage: () => isUpdateComponentParameterMessage,
@@ -1411,6 +1412,9 @@ var isUpdateContextualEditingStateInternalMessage = (message) => {
1411
1412
  var isReportRenderedCompositionsMessage = (message) => {
1412
1413
  return message.type === "report-rendered-compositions";
1413
1414
  };
1415
+ var isSelectParameterMessage = (message) => {
1416
+ return message.type === "select-parameter";
1417
+ };
1414
1418
  var createCanvasChannel = ({
1415
1419
  listenTo,
1416
1420
  broadcastTo
@@ -1527,6 +1531,13 @@ var createCanvasChannel = ({
1527
1531
  };
1528
1532
  postMessage(message);
1529
1533
  };
1534
+ const selectParameter = (options) => {
1535
+ const message = {
1536
+ ...options,
1537
+ type: "select-parameter"
1538
+ };
1539
+ postMessage(message);
1540
+ };
1530
1541
  const messageEventListener = (event) => {
1531
1542
  if (typeof event.data !== "string") {
1532
1543
  return;
@@ -1567,6 +1578,7 @@ var createCanvasChannel = ({
1567
1578
  triggerCompositionAction,
1568
1579
  updatePreviewSettings,
1569
1580
  updateContextualEditingStateInternal,
1581
+ selectParameter,
1570
1582
  reportRenderedCompositions
1571
1583
  };
1572
1584
  };
@@ -1865,6 +1877,7 @@ var CanvasClientError = import_api6.ApiClientError;
1865
1877
  isReadyMessage,
1866
1878
  isReportRenderedCompositionsMessage,
1867
1879
  isSelectComponentMessage,
1880
+ isSelectParameterMessage,
1868
1881
  isSystemComponentDefinition,
1869
1882
  isTriggerCompositionActionMessage,
1870
1883
  isUpdateComponentParameterMessage,
package/dist/index.mjs CHANGED
@@ -1327,6 +1327,9 @@ var isUpdateContextualEditingStateInternalMessage = (message) => {
1327
1327
  var isReportRenderedCompositionsMessage = (message) => {
1328
1328
  return message.type === "report-rendered-compositions";
1329
1329
  };
1330
+ var isSelectParameterMessage = (message) => {
1331
+ return message.type === "select-parameter";
1332
+ };
1330
1333
  var createCanvasChannel = ({
1331
1334
  listenTo,
1332
1335
  broadcastTo
@@ -1443,6 +1446,13 @@ var createCanvasChannel = ({
1443
1446
  };
1444
1447
  postMessage(message);
1445
1448
  };
1449
+ const selectParameter = (options) => {
1450
+ const message = {
1451
+ ...options,
1452
+ type: "select-parameter"
1453
+ };
1454
+ postMessage(message);
1455
+ };
1446
1456
  const messageEventListener = (event) => {
1447
1457
  if (typeof event.data !== "string") {
1448
1458
  return;
@@ -1483,6 +1493,7 @@ var createCanvasChannel = ({
1483
1493
  triggerCompositionAction,
1484
1494
  updatePreviewSettings,
1485
1495
  updateContextualEditingStateInternal,
1496
+ selectParameter,
1486
1497
  reportRenderedCompositions
1487
1498
  };
1488
1499
  };
@@ -1780,6 +1791,7 @@ export {
1780
1791
  isReadyMessage,
1781
1792
  isReportRenderedCompositionsMessage,
1782
1793
  isSelectComponentMessage,
1794
+ isSelectParameterMessage,
1783
1795
  isSystemComponentDefinition,
1784
1796
  isTriggerCompositionActionMessage,
1785
1797
  isUpdateComponentParameterMessage,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/canvas",
3
- "version": "19.22.1-alpha.8+a8f730b12",
3
+ "version": "19.23.1-alpha.12+669adf812",
4
4
  "description": "Common functionality and types for Uniform Canvas",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -38,7 +38,7 @@
38
38
  "pusher-js": "8.0.1"
39
39
  },
40
40
  "dependencies": {
41
- "@uniformdev/context": "19.22.1-alpha.8+a8f730b12",
41
+ "@uniformdev/context": "19.23.1-alpha.12+669adf812",
42
42
  "immer": "9.0.21"
43
43
  },
44
44
  "files": [
@@ -47,5 +47,5 @@
47
47
  "publishConfig": {
48
48
  "access": "public"
49
49
  },
50
- "gitHead": "a8f730b12035a4d7c2e6a704d3777ff12df52ffc"
50
+ "gitHead": "669adf812df13a7856fb9bc5c4332c77e0697f3f"
51
51
  }