@uniformdev/canvas 19.42.1-alpha.7 → 19.45.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 CHANGED
@@ -409,11 +409,13 @@ interface components$4 {
409
409
  headers?: {
410
410
  key: string;
411
411
  value: string;
412
+ omitIfEmpty?: boolean;
412
413
  }[];
413
414
  /** @description Query String parameters to pass with requests to the data type. Merged with parameters from the data source, overriding identical keys. */
414
415
  parameters?: {
415
416
  key: string;
416
417
  value: string;
418
+ omitIfEmpty?: boolean;
417
419
  }[];
418
420
  /** @description Body to pass with requests to the data type (ignored unless method is POST) */
419
421
  body?: string;
@@ -1057,11 +1059,13 @@ interface external$a {
1057
1059
  headers?: {
1058
1060
  key: string;
1059
1061
  value: string;
1062
+ omitIfEmpty?: boolean;
1060
1063
  }[];
1061
1064
  /** @description Query String parameters to pass with requests to the data type. Merged with parameters from the data source, overriding identical keys. */
1062
1065
  parameters?: {
1063
1066
  key: string;
1064
1067
  value: string;
1068
+ omitIfEmpty?: boolean;
1065
1069
  }[];
1066
1070
  /** @description Body to pass with requests to the data type (ignored unless method is POST) */
1067
1071
  body?: string;
@@ -1706,11 +1710,13 @@ interface external$9 {
1706
1710
  headers?: {
1707
1711
  key: string;
1708
1712
  value: string;
1713
+ omitIfEmpty?: boolean;
1709
1714
  }[];
1710
1715
  /** @description Query String parameters to pass with requests to the data type. Merged with parameters from the data source, overriding identical keys. */
1711
1716
  parameters?: {
1712
1717
  key: string;
1713
1718
  value: string;
1719
+ omitIfEmpty?: boolean;
1714
1720
  }[];
1715
1721
  /** @description Body to pass with requests to the data type (ignored unless method is POST) */
1716
1722
  body?: string;
@@ -2351,11 +2357,13 @@ interface external$8 {
2351
2357
  headers?: {
2352
2358
  key: string;
2353
2359
  value: string;
2360
+ omitIfEmpty?: boolean;
2354
2361
  }[];
2355
2362
  /** @description Query String parameters to pass with requests to the data type. Merged with parameters from the data source, overriding identical keys. */
2356
2363
  parameters?: {
2357
2364
  key: string;
2358
2365
  value: string;
2366
+ omitIfEmpty?: boolean;
2359
2367
  }[];
2360
2368
  /** @description Body to pass with requests to the data type (ignored unless method is POST) */
2361
2369
  body?: string;
@@ -2939,11 +2947,13 @@ interface external$7 {
2939
2947
  headers?: {
2940
2948
  key: string;
2941
2949
  value: string;
2950
+ omitIfEmpty?: boolean;
2942
2951
  }[];
2943
2952
  /** @description Query String parameters to pass with requests to the data type. Merged with parameters from the data source, overriding identical keys. */
2944
2953
  parameters?: {
2945
2954
  key: string;
2946
2955
  value: string;
2956
+ omitIfEmpty?: boolean;
2947
2957
  }[];
2948
2958
  /** @description Body to pass with requests to the data type (ignored unless method is POST) */
2949
2959
  body?: string;
@@ -3562,11 +3572,13 @@ interface external$6 {
3562
3572
  headers?: {
3563
3573
  key: string;
3564
3574
  value: string;
3575
+ omitIfEmpty?: boolean;
3565
3576
  }[];
3566
3577
  /** @description Query String parameters to pass with requests to the data type. Merged with parameters from the data source, overriding identical keys. */
3567
3578
  parameters?: {
3568
3579
  key: string;
3569
3580
  value: string;
3581
+ omitIfEmpty?: boolean;
3570
3582
  }[];
3571
3583
  /** @description Body to pass with requests to the data type (ignored unless method is POST) */
3572
3584
  body?: string;
@@ -4610,11 +4622,13 @@ interface external$5 {
4610
4622
  headers?: {
4611
4623
  key: string;
4612
4624
  value: string;
4625
+ omitIfEmpty?: boolean;
4613
4626
  }[];
4614
4627
  /** @description Query String parameters to pass with requests to the data type. Merged with parameters from the data source, overriding identical keys. */
4615
4628
  parameters?: {
4616
4629
  key: string;
4617
4630
  value: string;
4631
+ omitIfEmpty?: boolean;
4618
4632
  }[];
4619
4633
  /** @description Body to pass with requests to the data type (ignored unless method is POST) */
4620
4634
  body?: string;
@@ -5449,11 +5463,13 @@ interface external$3 {
5449
5463
  headers?: {
5450
5464
  key: string;
5451
5465
  value: string;
5466
+ omitIfEmpty?: boolean;
5452
5467
  }[];
5453
5468
  /** @description Query String parameters to pass with requests to the data type. Merged with parameters from the data source, overriding identical keys. */
5454
5469
  parameters?: {
5455
5470
  key: string;
5456
5471
  value: string;
5472
+ omitIfEmpty?: boolean;
5457
5473
  }[];
5458
5474
  /** @description Body to pass with requests to the data type (ignored unless method is POST) */
5459
5475
  body?: string;
@@ -6034,6 +6050,8 @@ interface external$3 {
6034
6050
  ids?: string[];
6035
6051
  /** Source url to attempt to find redirects for */
6036
6052
  sourceUrl?: string;
6053
+ /** Find redirects that could redirect to this url */
6054
+ targetUrl?: string;
6037
6055
  /** Id of the project map the source or target belongs to. */
6038
6056
  projectMapId?: string;
6039
6057
  /** Id of the project map node to find redirects for. */
@@ -6952,11 +6970,13 @@ interface external$2 {
6952
6970
  headers?: {
6953
6971
  key: string;
6954
6972
  value: string;
6973
+ omitIfEmpty?: boolean;
6955
6974
  }[];
6956
6975
  /** @description Query String parameters to pass with requests to the data type. Merged with parameters from the data source, overriding identical keys. */
6957
6976
  parameters?: {
6958
6977
  key: string;
6959
6978
  value: string;
6979
+ omitIfEmpty?: boolean;
6960
6980
  }[];
6961
6981
  /** @description Body to pass with requests to the data type (ignored unless method is POST) */
6962
6982
  body?: string;
@@ -7537,6 +7557,8 @@ interface external$2 {
7537
7557
  ids?: string[];
7538
7558
  /** Source url to attempt to find redirects for */
7539
7559
  sourceUrl?: string;
7560
+ /** Find redirects that could redirect to this url */
7561
+ targetUrl?: string;
7540
7562
  /** Id of the project map the source or target belongs to. */
7541
7563
  projectMapId?: string;
7542
7564
  /** Id of the project map node to find redirects for. */
@@ -8464,7 +8486,7 @@ type ContextualEditingComponentReference = {
8464
8486
  parentId?: string;
8465
8487
  parentType?: string;
8466
8488
  isLocalized?: boolean;
8467
- isEditable?: boolean | undefined;
8489
+ isReadOnly?: boolean | undefined;
8468
8490
  };
8469
8491
 
8470
8492
  type EnhancerContext = {
@@ -8940,7 +8962,10 @@ type ReportRenderedCompositionsMessage = {
8940
8962
  compositionIds: string[];
8941
8963
  url: string;
8942
8964
  };
8943
- type ChannelMessage = SelectComponentMessage | ReadyMessage | UpdateCompositionMessage | UpdateCompositionInternalMessage | AddComponentMessage | MoveComponentMessage | TriggerCompositionActionMessage | UpdatePreviewSettingsMessage | ReportRenderedCompositionsMessage | UpdateComponentParameterMessage | UpdateContextualEditingStateInternalMessage | SelectParameterMessage | DismissPlaceholderMessage;
8965
+ type EditorStateUpdatedMessage = {
8966
+ type: 'editor-state-updated';
8967
+ };
8968
+ type ChannelMessage = SelectComponentMessage | ReadyMessage | UpdateCompositionMessage | UpdateCompositionInternalMessage | AddComponentMessage | MoveComponentMessage | TriggerCompositionActionMessage | UpdatePreviewSettingsMessage | ReportRenderedCompositionsMessage | UpdateComponentParameterMessage | UpdateContextualEditingStateInternalMessage | SelectParameterMessage | DismissPlaceholderMessage | EditorStateUpdatedMessage;
8944
8969
  declare const isSelectComponentMessage: (message: ChannelMessage) => message is SelectComponentMessage;
8945
8970
  declare const isReadyMessage: (message: ChannelMessage) => message is ReadyMessage;
8946
8971
  declare const isUpdateCompositionMessage: (message: ChannelMessage) => message is UpdateCompositionMessage;
@@ -8971,6 +8996,7 @@ type Channel = {
8971
8996
  updatePreviewSettings: (options: Omit<UpdatePreviewSettingsMessage, 'type'>) => void;
8972
8997
  updateContextualEditingStateInternal: (options: Omit<UpdateContextualEditingStateInternalMessage, 'type'>) => void;
8973
8998
  reportRenderedCompositions: (options: Omit<ReportRenderedCompositionsMessage, 'type'>) => void;
8999
+ editorStateUpdated: () => void;
8974
9000
  };
8975
9001
  declare const createCanvasChannel: ({ listenTo, broadcastTo, }: {
8976
9002
  listenTo: Window[];
@@ -9054,6 +9080,8 @@ declare const CANVAS_LOCALIZATION_SLOT = "localized";
9054
9080
  declare const CANVAS_DRAFT_STATE = 0;
9055
9081
  /** Constant for a published composition state. Subject to change. */
9056
9082
  declare const CANVAS_PUBLISHED_STATE = 64;
9083
+ /** Constant for editor composition state. */
9084
+ declare const CANVAS_EDITOR_STATE = 63;
9057
9085
  /** Public ID of the Uniform Context personalization parameter on Canvas components */
9058
9086
  declare const CANVAS_PERSONALIZATION_PARAM = "$pzCrit";
9059
9087
  /** Public ID of the Uniform Context test variant parameter on Canvas components */
@@ -9333,4 +9361,4 @@ declare function parseVariableExpression(serialized: string, onToken?: (token: s
9333
9361
 
9334
9362
  declare const CanvasClientError: typeof ApiClientError;
9335
9363
 
9336
- export { ATTRIBUTE_COMPONENT_ID, ATTRIBUTE_MULTILINE, ATTRIBUTE_PARAMETER_ID, ATTRIBUTE_PARAMETER_TYPE, ATTRIBUTE_PARAMETER_VALUE, ATTRIBUTE_PLACEHOLDER, 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, CategoriesDeleteParameters, CategoriesGetParameters, CategoriesGetResponse, CategoriesPutParameters, Category, CategoryClient, Channel, ChannelMessage, ChannelSubscription, ChildEnhancerBuilder, ComponentDefinition, ComponentDefinitionDeleteParameters, ComponentDefinitionGetParameters, ComponentDefinitionGetResponse, ComponentDefinitionParameter, ComponentDefinitionPermission, ComponentDefinitionPutParameters, ComponentDefinitionSlot, ComponentDefinitionSlugSettings, ComponentDefinitionVariant, ComponentEnhancer, ComponentEnhancerFunction, ComponentEnhancerOptions, ComponentInstance, ComponentInstanceContextualEditing, ComponentInstanceHistoryEntry, ComponentInstanceHistoryGetParameters, ComponentInstanceHistoryGetResponse, ComponentLocationReference, ComponentOverridability, ComponentOverride, ComponentOverrides, ComponentParameter, ComponentParameterContextualEditing, ComponentParameterEnhancer, ComponentParameterEnhancerFunction, ComponentParameterEnhancerOptions, CompositionDataDiagnostic, CompositionDeleteParameters, CompositionDiagnostics, CompositionGetByComponentIdParameters, 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, GetParameterAttributesProps, 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, UncachedCategoryClient, UniqueBatchEntries, UnsubscribeCallback, UpdateComponentParameterMessage, UpdateCompositionInternalMessage, UpdateCompositionMessage, UpdateContextualEditingStateInternalMessage, UpdatePreviewSettingsMessage, UsageTrackingApi, UsageTrackingGetParameters, UsageTrackingGetResponse, UsageTrackingPostParameters, UsageTrackingPostResponse, WalkComponentTreeActions, bindVariables, bindVariablesToObject, compose, createBatchEnhancer, createCanvasChannel, createEventBus, createLimitPolicy, createUniformApiEnhancer, createVariableReference, enhance, extractLocales, generateHash, getChannelName, getComponentJsonPointer, getComponentPath, getParameterAttributes, isAddComponentMessage, isDismissPlaceholderMessage, isMovingComponentMessage, isReadyMessage, isReportRenderedCompositionsMessage, isSelectComponentMessage, isSelectParameterMessage, isSystemComponentDefinition, isTriggerCompositionActionMessage, isUpdateComponentParameterMessage, isUpdateCompositionInternalMessage, isUpdateCompositionMessage, isUpdateContextualEditingStateInternalMessage, isUpdatePreviewSettingsMessage, localize, mapSlotToPersonalizedVariations, mapSlotToTestVariations, nullLimitPolicy, parseVariableExpression, subscribeToComposition, unstable_CompositionRelationshipClient, walkComponentTree };
9364
+ export { ATTRIBUTE_COMPONENT_ID, ATTRIBUTE_MULTILINE, ATTRIBUTE_PARAMETER_ID, ATTRIBUTE_PARAMETER_TYPE, ATTRIBUTE_PARAMETER_VALUE, ATTRIBUTE_PLACEHOLDER, AddComponentMessage, BatchEnhancer, BatchEntry, BatchInvalidationPayload, BindVariablesOptions, BindVariablesResult, BindVariablesToObjectOptions, CANVAS_DRAFT_STATE, CANVAS_EDITOR_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, CategoriesDeleteParameters, CategoriesGetParameters, CategoriesGetResponse, CategoriesPutParameters, Category, CategoryClient, Channel, ChannelMessage, ChannelSubscription, ChildEnhancerBuilder, ComponentDefinition, ComponentDefinitionDeleteParameters, ComponentDefinitionGetParameters, ComponentDefinitionGetResponse, ComponentDefinitionParameter, ComponentDefinitionPermission, ComponentDefinitionPutParameters, ComponentDefinitionSlot, ComponentDefinitionSlugSettings, ComponentDefinitionVariant, ComponentEnhancer, ComponentEnhancerFunction, ComponentEnhancerOptions, ComponentInstance, ComponentInstanceContextualEditing, ComponentInstanceHistoryEntry, ComponentInstanceHistoryGetParameters, ComponentInstanceHistoryGetResponse, ComponentLocationReference, ComponentOverridability, ComponentOverride, ComponentOverrides, ComponentParameter, ComponentParameterContextualEditing, ComponentParameterEnhancer, ComponentParameterEnhancerFunction, ComponentParameterEnhancerOptions, CompositionDataDiagnostic, CompositionDeleteParameters, CompositionDiagnostics, CompositionGetByComponentIdParameters, 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, EditorStateUpdatedMessage, EnhancerBuilder, EnhancerContext, EnhancerError, EventNames, GetParameterAttributesProps, 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, UncachedCategoryClient, UniqueBatchEntries, UnsubscribeCallback, UpdateComponentParameterMessage, UpdateCompositionInternalMessage, UpdateCompositionMessage, UpdateContextualEditingStateInternalMessage, UpdatePreviewSettingsMessage, UsageTrackingApi, UsageTrackingGetParameters, UsageTrackingGetResponse, UsageTrackingPostParameters, UsageTrackingPostResponse, WalkComponentTreeActions, bindVariables, bindVariablesToObject, compose, createBatchEnhancer, createCanvasChannel, createEventBus, createLimitPolicy, createUniformApiEnhancer, createVariableReference, enhance, extractLocales, generateHash, getChannelName, getComponentJsonPointer, getComponentPath, getParameterAttributes, isAddComponentMessage, isDismissPlaceholderMessage, isMovingComponentMessage, isReadyMessage, isReportRenderedCompositionsMessage, isSelectComponentMessage, isSelectParameterMessage, isSystemComponentDefinition, isTriggerCompositionActionMessage, isUpdateComponentParameterMessage, isUpdateCompositionInternalMessage, isUpdateCompositionMessage, isUpdateContextualEditingStateInternalMessage, isUpdatePreviewSettingsMessage, localize, mapSlotToPersonalizedVariations, mapSlotToTestVariations, nullLimitPolicy, parseVariableExpression, subscribeToComposition, unstable_CompositionRelationshipClient, walkComponentTree };
package/dist/index.d.ts CHANGED
@@ -409,11 +409,13 @@ interface components$4 {
409
409
  headers?: {
410
410
  key: string;
411
411
  value: string;
412
+ omitIfEmpty?: boolean;
412
413
  }[];
413
414
  /** @description Query String parameters to pass with requests to the data type. Merged with parameters from the data source, overriding identical keys. */
414
415
  parameters?: {
415
416
  key: string;
416
417
  value: string;
418
+ omitIfEmpty?: boolean;
417
419
  }[];
418
420
  /** @description Body to pass with requests to the data type (ignored unless method is POST) */
419
421
  body?: string;
@@ -1057,11 +1059,13 @@ interface external$a {
1057
1059
  headers?: {
1058
1060
  key: string;
1059
1061
  value: string;
1062
+ omitIfEmpty?: boolean;
1060
1063
  }[];
1061
1064
  /** @description Query String parameters to pass with requests to the data type. Merged with parameters from the data source, overriding identical keys. */
1062
1065
  parameters?: {
1063
1066
  key: string;
1064
1067
  value: string;
1068
+ omitIfEmpty?: boolean;
1065
1069
  }[];
1066
1070
  /** @description Body to pass with requests to the data type (ignored unless method is POST) */
1067
1071
  body?: string;
@@ -1706,11 +1710,13 @@ interface external$9 {
1706
1710
  headers?: {
1707
1711
  key: string;
1708
1712
  value: string;
1713
+ omitIfEmpty?: boolean;
1709
1714
  }[];
1710
1715
  /** @description Query String parameters to pass with requests to the data type. Merged with parameters from the data source, overriding identical keys. */
1711
1716
  parameters?: {
1712
1717
  key: string;
1713
1718
  value: string;
1719
+ omitIfEmpty?: boolean;
1714
1720
  }[];
1715
1721
  /** @description Body to pass with requests to the data type (ignored unless method is POST) */
1716
1722
  body?: string;
@@ -2351,11 +2357,13 @@ interface external$8 {
2351
2357
  headers?: {
2352
2358
  key: string;
2353
2359
  value: string;
2360
+ omitIfEmpty?: boolean;
2354
2361
  }[];
2355
2362
  /** @description Query String parameters to pass with requests to the data type. Merged with parameters from the data source, overriding identical keys. */
2356
2363
  parameters?: {
2357
2364
  key: string;
2358
2365
  value: string;
2366
+ omitIfEmpty?: boolean;
2359
2367
  }[];
2360
2368
  /** @description Body to pass with requests to the data type (ignored unless method is POST) */
2361
2369
  body?: string;
@@ -2939,11 +2947,13 @@ interface external$7 {
2939
2947
  headers?: {
2940
2948
  key: string;
2941
2949
  value: string;
2950
+ omitIfEmpty?: boolean;
2942
2951
  }[];
2943
2952
  /** @description Query String parameters to pass with requests to the data type. Merged with parameters from the data source, overriding identical keys. */
2944
2953
  parameters?: {
2945
2954
  key: string;
2946
2955
  value: string;
2956
+ omitIfEmpty?: boolean;
2947
2957
  }[];
2948
2958
  /** @description Body to pass with requests to the data type (ignored unless method is POST) */
2949
2959
  body?: string;
@@ -3562,11 +3572,13 @@ interface external$6 {
3562
3572
  headers?: {
3563
3573
  key: string;
3564
3574
  value: string;
3575
+ omitIfEmpty?: boolean;
3565
3576
  }[];
3566
3577
  /** @description Query String parameters to pass with requests to the data type. Merged with parameters from the data source, overriding identical keys. */
3567
3578
  parameters?: {
3568
3579
  key: string;
3569
3580
  value: string;
3581
+ omitIfEmpty?: boolean;
3570
3582
  }[];
3571
3583
  /** @description Body to pass with requests to the data type (ignored unless method is POST) */
3572
3584
  body?: string;
@@ -4610,11 +4622,13 @@ interface external$5 {
4610
4622
  headers?: {
4611
4623
  key: string;
4612
4624
  value: string;
4625
+ omitIfEmpty?: boolean;
4613
4626
  }[];
4614
4627
  /** @description Query String parameters to pass with requests to the data type. Merged with parameters from the data source, overriding identical keys. */
4615
4628
  parameters?: {
4616
4629
  key: string;
4617
4630
  value: string;
4631
+ omitIfEmpty?: boolean;
4618
4632
  }[];
4619
4633
  /** @description Body to pass with requests to the data type (ignored unless method is POST) */
4620
4634
  body?: string;
@@ -5449,11 +5463,13 @@ interface external$3 {
5449
5463
  headers?: {
5450
5464
  key: string;
5451
5465
  value: string;
5466
+ omitIfEmpty?: boolean;
5452
5467
  }[];
5453
5468
  /** @description Query String parameters to pass with requests to the data type. Merged with parameters from the data source, overriding identical keys. */
5454
5469
  parameters?: {
5455
5470
  key: string;
5456
5471
  value: string;
5472
+ omitIfEmpty?: boolean;
5457
5473
  }[];
5458
5474
  /** @description Body to pass with requests to the data type (ignored unless method is POST) */
5459
5475
  body?: string;
@@ -6034,6 +6050,8 @@ interface external$3 {
6034
6050
  ids?: string[];
6035
6051
  /** Source url to attempt to find redirects for */
6036
6052
  sourceUrl?: string;
6053
+ /** Find redirects that could redirect to this url */
6054
+ targetUrl?: string;
6037
6055
  /** Id of the project map the source or target belongs to. */
6038
6056
  projectMapId?: string;
6039
6057
  /** Id of the project map node to find redirects for. */
@@ -6952,11 +6970,13 @@ interface external$2 {
6952
6970
  headers?: {
6953
6971
  key: string;
6954
6972
  value: string;
6973
+ omitIfEmpty?: boolean;
6955
6974
  }[];
6956
6975
  /** @description Query String parameters to pass with requests to the data type. Merged with parameters from the data source, overriding identical keys. */
6957
6976
  parameters?: {
6958
6977
  key: string;
6959
6978
  value: string;
6979
+ omitIfEmpty?: boolean;
6960
6980
  }[];
6961
6981
  /** @description Body to pass with requests to the data type (ignored unless method is POST) */
6962
6982
  body?: string;
@@ -7537,6 +7557,8 @@ interface external$2 {
7537
7557
  ids?: string[];
7538
7558
  /** Source url to attempt to find redirects for */
7539
7559
  sourceUrl?: string;
7560
+ /** Find redirects that could redirect to this url */
7561
+ targetUrl?: string;
7540
7562
  /** Id of the project map the source or target belongs to. */
7541
7563
  projectMapId?: string;
7542
7564
  /** Id of the project map node to find redirects for. */
@@ -8464,7 +8486,7 @@ type ContextualEditingComponentReference = {
8464
8486
  parentId?: string;
8465
8487
  parentType?: string;
8466
8488
  isLocalized?: boolean;
8467
- isEditable?: boolean | undefined;
8489
+ isReadOnly?: boolean | undefined;
8468
8490
  };
8469
8491
 
8470
8492
  type EnhancerContext = {
@@ -8940,7 +8962,10 @@ type ReportRenderedCompositionsMessage = {
8940
8962
  compositionIds: string[];
8941
8963
  url: string;
8942
8964
  };
8943
- type ChannelMessage = SelectComponentMessage | ReadyMessage | UpdateCompositionMessage | UpdateCompositionInternalMessage | AddComponentMessage | MoveComponentMessage | TriggerCompositionActionMessage | UpdatePreviewSettingsMessage | ReportRenderedCompositionsMessage | UpdateComponentParameterMessage | UpdateContextualEditingStateInternalMessage | SelectParameterMessage | DismissPlaceholderMessage;
8965
+ type EditorStateUpdatedMessage = {
8966
+ type: 'editor-state-updated';
8967
+ };
8968
+ type ChannelMessage = SelectComponentMessage | ReadyMessage | UpdateCompositionMessage | UpdateCompositionInternalMessage | AddComponentMessage | MoveComponentMessage | TriggerCompositionActionMessage | UpdatePreviewSettingsMessage | ReportRenderedCompositionsMessage | UpdateComponentParameterMessage | UpdateContextualEditingStateInternalMessage | SelectParameterMessage | DismissPlaceholderMessage | EditorStateUpdatedMessage;
8944
8969
  declare const isSelectComponentMessage: (message: ChannelMessage) => message is SelectComponentMessage;
8945
8970
  declare const isReadyMessage: (message: ChannelMessage) => message is ReadyMessage;
8946
8971
  declare const isUpdateCompositionMessage: (message: ChannelMessage) => message is UpdateCompositionMessage;
@@ -8971,6 +8996,7 @@ type Channel = {
8971
8996
  updatePreviewSettings: (options: Omit<UpdatePreviewSettingsMessage, 'type'>) => void;
8972
8997
  updateContextualEditingStateInternal: (options: Omit<UpdateContextualEditingStateInternalMessage, 'type'>) => void;
8973
8998
  reportRenderedCompositions: (options: Omit<ReportRenderedCompositionsMessage, 'type'>) => void;
8999
+ editorStateUpdated: () => void;
8974
9000
  };
8975
9001
  declare const createCanvasChannel: ({ listenTo, broadcastTo, }: {
8976
9002
  listenTo: Window[];
@@ -9054,6 +9080,8 @@ declare const CANVAS_LOCALIZATION_SLOT = "localized";
9054
9080
  declare const CANVAS_DRAFT_STATE = 0;
9055
9081
  /** Constant for a published composition state. Subject to change. */
9056
9082
  declare const CANVAS_PUBLISHED_STATE = 64;
9083
+ /** Constant for editor composition state. */
9084
+ declare const CANVAS_EDITOR_STATE = 63;
9057
9085
  /** Public ID of the Uniform Context personalization parameter on Canvas components */
9058
9086
  declare const CANVAS_PERSONALIZATION_PARAM = "$pzCrit";
9059
9087
  /** Public ID of the Uniform Context test variant parameter on Canvas components */
@@ -9333,4 +9361,4 @@ declare function parseVariableExpression(serialized: string, onToken?: (token: s
9333
9361
 
9334
9362
  declare const CanvasClientError: typeof ApiClientError;
9335
9363
 
9336
- export { ATTRIBUTE_COMPONENT_ID, ATTRIBUTE_MULTILINE, ATTRIBUTE_PARAMETER_ID, ATTRIBUTE_PARAMETER_TYPE, ATTRIBUTE_PARAMETER_VALUE, ATTRIBUTE_PLACEHOLDER, 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, CategoriesDeleteParameters, CategoriesGetParameters, CategoriesGetResponse, CategoriesPutParameters, Category, CategoryClient, Channel, ChannelMessage, ChannelSubscription, ChildEnhancerBuilder, ComponentDefinition, ComponentDefinitionDeleteParameters, ComponentDefinitionGetParameters, ComponentDefinitionGetResponse, ComponentDefinitionParameter, ComponentDefinitionPermission, ComponentDefinitionPutParameters, ComponentDefinitionSlot, ComponentDefinitionSlugSettings, ComponentDefinitionVariant, ComponentEnhancer, ComponentEnhancerFunction, ComponentEnhancerOptions, ComponentInstance, ComponentInstanceContextualEditing, ComponentInstanceHistoryEntry, ComponentInstanceHistoryGetParameters, ComponentInstanceHistoryGetResponse, ComponentLocationReference, ComponentOverridability, ComponentOverride, ComponentOverrides, ComponentParameter, ComponentParameterContextualEditing, ComponentParameterEnhancer, ComponentParameterEnhancerFunction, ComponentParameterEnhancerOptions, CompositionDataDiagnostic, CompositionDeleteParameters, CompositionDiagnostics, CompositionGetByComponentIdParameters, 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, GetParameterAttributesProps, 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, UncachedCategoryClient, UniqueBatchEntries, UnsubscribeCallback, UpdateComponentParameterMessage, UpdateCompositionInternalMessage, UpdateCompositionMessage, UpdateContextualEditingStateInternalMessage, UpdatePreviewSettingsMessage, UsageTrackingApi, UsageTrackingGetParameters, UsageTrackingGetResponse, UsageTrackingPostParameters, UsageTrackingPostResponse, WalkComponentTreeActions, bindVariables, bindVariablesToObject, compose, createBatchEnhancer, createCanvasChannel, createEventBus, createLimitPolicy, createUniformApiEnhancer, createVariableReference, enhance, extractLocales, generateHash, getChannelName, getComponentJsonPointer, getComponentPath, getParameterAttributes, isAddComponentMessage, isDismissPlaceholderMessage, isMovingComponentMessage, isReadyMessage, isReportRenderedCompositionsMessage, isSelectComponentMessage, isSelectParameterMessage, isSystemComponentDefinition, isTriggerCompositionActionMessage, isUpdateComponentParameterMessage, isUpdateCompositionInternalMessage, isUpdateCompositionMessage, isUpdateContextualEditingStateInternalMessage, isUpdatePreviewSettingsMessage, localize, mapSlotToPersonalizedVariations, mapSlotToTestVariations, nullLimitPolicy, parseVariableExpression, subscribeToComposition, unstable_CompositionRelationshipClient, walkComponentTree };
9364
+ export { ATTRIBUTE_COMPONENT_ID, ATTRIBUTE_MULTILINE, ATTRIBUTE_PARAMETER_ID, ATTRIBUTE_PARAMETER_TYPE, ATTRIBUTE_PARAMETER_VALUE, ATTRIBUTE_PLACEHOLDER, AddComponentMessage, BatchEnhancer, BatchEntry, BatchInvalidationPayload, BindVariablesOptions, BindVariablesResult, BindVariablesToObjectOptions, CANVAS_DRAFT_STATE, CANVAS_EDITOR_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, CategoriesDeleteParameters, CategoriesGetParameters, CategoriesGetResponse, CategoriesPutParameters, Category, CategoryClient, Channel, ChannelMessage, ChannelSubscription, ChildEnhancerBuilder, ComponentDefinition, ComponentDefinitionDeleteParameters, ComponentDefinitionGetParameters, ComponentDefinitionGetResponse, ComponentDefinitionParameter, ComponentDefinitionPermission, ComponentDefinitionPutParameters, ComponentDefinitionSlot, ComponentDefinitionSlugSettings, ComponentDefinitionVariant, ComponentEnhancer, ComponentEnhancerFunction, ComponentEnhancerOptions, ComponentInstance, ComponentInstanceContextualEditing, ComponentInstanceHistoryEntry, ComponentInstanceHistoryGetParameters, ComponentInstanceHistoryGetResponse, ComponentLocationReference, ComponentOverridability, ComponentOverride, ComponentOverrides, ComponentParameter, ComponentParameterContextualEditing, ComponentParameterEnhancer, ComponentParameterEnhancerFunction, ComponentParameterEnhancerOptions, CompositionDataDiagnostic, CompositionDeleteParameters, CompositionDiagnostics, CompositionGetByComponentIdParameters, 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, EditorStateUpdatedMessage, EnhancerBuilder, EnhancerContext, EnhancerError, EventNames, GetParameterAttributesProps, 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, UncachedCategoryClient, UniqueBatchEntries, UnsubscribeCallback, UpdateComponentParameterMessage, UpdateCompositionInternalMessage, UpdateCompositionMessage, UpdateContextualEditingStateInternalMessage, UpdatePreviewSettingsMessage, UsageTrackingApi, UsageTrackingGetParameters, UsageTrackingGetResponse, UsageTrackingPostParameters, UsageTrackingPostResponse, WalkComponentTreeActions, bindVariables, bindVariablesToObject, compose, createBatchEnhancer, createCanvasChannel, createEventBus, createLimitPolicy, createUniformApiEnhancer, createVariableReference, enhance, extractLocales, generateHash, getChannelName, getComponentJsonPointer, getComponentPath, getParameterAttributes, isAddComponentMessage, isDismissPlaceholderMessage, isMovingComponentMessage, isReadyMessage, isReportRenderedCompositionsMessage, isSelectComponentMessage, isSelectParameterMessage, isSystemComponentDefinition, isTriggerCompositionActionMessage, isUpdateComponentParameterMessage, isUpdateCompositionInternalMessage, isUpdateCompositionMessage, isUpdateContextualEditingStateInternalMessage, isUpdatePreviewSettingsMessage, localize, mapSlotToPersonalizedVariations, mapSlotToTestVariations, nullLimitPolicy, parseVariableExpression, subscribeToComposition, unstable_CompositionRelationshipClient, walkComponentTree };
package/dist/index.esm.js CHANGED
@@ -1245,6 +1245,7 @@ var CANVAS_TEST_SLOT = "test";
1245
1245
  var CANVAS_LOCALIZATION_SLOT = "localized";
1246
1246
  var CANVAS_DRAFT_STATE = 0;
1247
1247
  var CANVAS_PUBLISHED_STATE = 64;
1248
+ var CANVAS_EDITOR_STATE = 63;
1248
1249
  var CANVAS_PERSONALIZATION_PARAM = "$pzCrit";
1249
1250
  var CANVAS_TEST_VARIANT_PARAM = "$tstVrnt";
1250
1251
  var CANVAS_ENRICHMENT_TAG_PARAM = "$enr";
@@ -1515,6 +1516,12 @@ var createCanvasChannel = ({
1515
1516
  };
1516
1517
  postMessage(message);
1517
1518
  };
1519
+ const editorStateUpdated = () => {
1520
+ const message = {
1521
+ type: "editor-state-updated"
1522
+ };
1523
+ postMessage(message);
1524
+ };
1518
1525
  const messageEventListener = (event) => {
1519
1526
  if (typeof event.data !== "string") {
1520
1527
  return;
@@ -1556,7 +1563,8 @@ var createCanvasChannel = ({
1556
1563
  updatePreviewSettings,
1557
1564
  updateContextualEditingStateInternal,
1558
1565
  selectParameter,
1559
- reportRenderedCompositions
1566
+ reportRenderedCompositions,
1567
+ editorStateUpdated
1560
1568
  };
1561
1569
  };
1562
1570
 
@@ -1934,6 +1942,7 @@ export {
1934
1942
  ApiClientError2 as ApiClientError,
1935
1943
  BatchEntry,
1936
1944
  CANVAS_DRAFT_STATE,
1945
+ CANVAS_EDITOR_STATE,
1937
1946
  CANVAS_ENRICHMENT_TAG_PARAM,
1938
1947
  CANVAS_INTENT_TAG_PARAM,
1939
1948
  CANVAS_LOCALE_TAG_PARAM,
package/dist/index.js CHANGED
@@ -286,6 +286,7 @@ __export(src_exports, {
286
286
  ApiClientError: () => import_api8.ApiClientError,
287
287
  BatchEntry: () => BatchEntry,
288
288
  CANVAS_DRAFT_STATE: () => CANVAS_DRAFT_STATE,
289
+ CANVAS_EDITOR_STATE: () => CANVAS_EDITOR_STATE,
289
290
  CANVAS_ENRICHMENT_TAG_PARAM: () => CANVAS_ENRICHMENT_TAG_PARAM,
290
291
  CANVAS_INTENT_TAG_PARAM: () => CANVAS_INTENT_TAG_PARAM,
291
292
  CANVAS_LOCALE_TAG_PARAM: () => CANVAS_LOCALE_TAG_PARAM,
@@ -1341,6 +1342,7 @@ var CANVAS_TEST_SLOT = "test";
1341
1342
  var CANVAS_LOCALIZATION_SLOT = "localized";
1342
1343
  var CANVAS_DRAFT_STATE = 0;
1343
1344
  var CANVAS_PUBLISHED_STATE = 64;
1345
+ var CANVAS_EDITOR_STATE = 63;
1344
1346
  var CANVAS_PERSONALIZATION_PARAM = "$pzCrit";
1345
1347
  var CANVAS_TEST_VARIANT_PARAM = "$tstVrnt";
1346
1348
  var CANVAS_ENRICHMENT_TAG_PARAM = "$enr";
@@ -1611,6 +1613,12 @@ var createCanvasChannel = ({
1611
1613
  };
1612
1614
  postMessage(message);
1613
1615
  };
1616
+ const editorStateUpdated = () => {
1617
+ const message = {
1618
+ type: "editor-state-updated"
1619
+ };
1620
+ postMessage(message);
1621
+ };
1614
1622
  const messageEventListener = (event) => {
1615
1623
  if (typeof event.data !== "string") {
1616
1624
  return;
@@ -1652,7 +1660,8 @@ var createCanvasChannel = ({
1652
1660
  updatePreviewSettings,
1653
1661
  updateContextualEditingStateInternal,
1654
1662
  selectParameter,
1655
- reportRenderedCompositions
1663
+ reportRenderedCompositions,
1664
+ editorStateUpdated
1656
1665
  };
1657
1666
  };
1658
1667
 
@@ -2031,6 +2040,7 @@ var CanvasClientError = import_api8.ApiClientError;
2031
2040
  ApiClientError,
2032
2041
  BatchEntry,
2033
2042
  CANVAS_DRAFT_STATE,
2043
+ CANVAS_EDITOR_STATE,
2034
2044
  CANVAS_ENRICHMENT_TAG_PARAM,
2035
2045
  CANVAS_INTENT_TAG_PARAM,
2036
2046
  CANVAS_LOCALE_TAG_PARAM,
package/dist/index.mjs CHANGED
@@ -1245,6 +1245,7 @@ var CANVAS_TEST_SLOT = "test";
1245
1245
  var CANVAS_LOCALIZATION_SLOT = "localized";
1246
1246
  var CANVAS_DRAFT_STATE = 0;
1247
1247
  var CANVAS_PUBLISHED_STATE = 64;
1248
+ var CANVAS_EDITOR_STATE = 63;
1248
1249
  var CANVAS_PERSONALIZATION_PARAM = "$pzCrit";
1249
1250
  var CANVAS_TEST_VARIANT_PARAM = "$tstVrnt";
1250
1251
  var CANVAS_ENRICHMENT_TAG_PARAM = "$enr";
@@ -1515,6 +1516,12 @@ var createCanvasChannel = ({
1515
1516
  };
1516
1517
  postMessage(message);
1517
1518
  };
1519
+ const editorStateUpdated = () => {
1520
+ const message = {
1521
+ type: "editor-state-updated"
1522
+ };
1523
+ postMessage(message);
1524
+ };
1518
1525
  const messageEventListener = (event) => {
1519
1526
  if (typeof event.data !== "string") {
1520
1527
  return;
@@ -1556,7 +1563,8 @@ var createCanvasChannel = ({
1556
1563
  updatePreviewSettings,
1557
1564
  updateContextualEditingStateInternal,
1558
1565
  selectParameter,
1559
- reportRenderedCompositions
1566
+ reportRenderedCompositions,
1567
+ editorStateUpdated
1560
1568
  };
1561
1569
  };
1562
1570
 
@@ -1934,6 +1942,7 @@ export {
1934
1942
  ApiClientError2 as ApiClientError,
1935
1943
  BatchEntry,
1936
1944
  CANVAS_DRAFT_STATE,
1945
+ CANVAS_EDITOR_STATE,
1937
1946
  CANVAS_ENRICHMENT_TAG_PARAM,
1938
1947
  CANVAS_INTENT_TAG_PARAM,
1939
1948
  CANVAS_LOCALE_TAG_PARAM,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/canvas",
3
- "version": "19.42.1-alpha.7+1380aadd7",
3
+ "version": "19.45.1",
4
4
  "description": "Common functionality and types for Uniform Canvas",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -32,13 +32,13 @@
32
32
  },
33
33
  "devDependencies": {
34
34
  "@types/retry": "0.12.1",
35
- "lexical": "^0.11.3",
35
+ "lexical": "^0.12.0",
36
36
  "p-retry": "5.1.2",
37
37
  "p-throttle": "5.0.0",
38
38
  "pusher-js": "8.2.0"
39
39
  },
40
40
  "dependencies": {
41
- "@uniformdev/context": "19.42.1-alpha.7+1380aadd7",
41
+ "@uniformdev/context": "19.45.1",
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": "1380aadd7c71f6f120f933a40e73e113518e3716"
50
+ "gitHead": "27d329b913db64152e9d49bcfa7dddf8b3b31bb6"
51
51
  }