@uniformdev/canvas 19.19.0 → 19.20.1-alpha.32
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 +57 -20
- package/dist/index.esm.js +15 -3
- package/dist/index.js +17 -4
- package/dist/index.mjs +15 -3
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
@@ -112,6 +112,8 @@ interface components$4 {
|
|
112
112
|
/**
|
113
113
|
* @description The public ID of the parameter whose value should be used to create a display title for this component in the UI.
|
114
114
|
* The parameter type must support being used as a title parameter for this to work.
|
115
|
+
*
|
116
|
+
* @default null
|
115
117
|
*/
|
116
118
|
titleParameter?: string | null;
|
117
119
|
/**
|
@@ -197,7 +199,8 @@ interface components$4 {
|
|
197
199
|
/**
|
198
200
|
* @description Unique identifier of the component within the composition.
|
199
201
|
* No assumptions should be made about the format of this value other than "it will be unique."
|
200
|
-
* This is not
|
202
|
+
* This is not returned in GET replies unless specifically requested via `withComponentIDs` API parameter.
|
203
|
+
* When updating or creating a composition, if you do not specify an _id for each component, one will be created and stored for you.
|
201
204
|
*/
|
202
205
|
_id?: string;
|
203
206
|
/** @description Indicates this component instance should be sourced from a pattern library pattern. */
|
@@ -723,6 +726,8 @@ interface external$9 {
|
|
723
726
|
/**
|
724
727
|
* @description The public ID of the parameter whose value should be used to create a display title for this component in the UI.
|
725
728
|
* The parameter type must support being used as a title parameter for this to work.
|
729
|
+
*
|
730
|
+
* @default null
|
726
731
|
*/
|
727
732
|
titleParameter?: string | null;
|
728
733
|
/**
|
@@ -808,7 +813,8 @@ interface external$9 {
|
|
808
813
|
/**
|
809
814
|
* @description Unique identifier of the component within the composition.
|
810
815
|
* No assumptions should be made about the format of this value other than "it will be unique."
|
811
|
-
* This is not
|
816
|
+
* This is not returned in GET replies unless specifically requested via `withComponentIDs` API parameter.
|
817
|
+
* When updating or creating a composition, if you do not specify an _id for each component, one will be created and stored for you.
|
812
818
|
*/
|
813
819
|
_id?: string;
|
814
820
|
/** @description Indicates this component instance should be sourced from a pattern library pattern. */
|
@@ -1345,6 +1351,8 @@ interface external$8 {
|
|
1345
1351
|
/**
|
1346
1352
|
* @description The public ID of the parameter whose value should be used to create a display title for this component in the UI.
|
1347
1353
|
* The parameter type must support being used as a title parameter for this to work.
|
1354
|
+
*
|
1355
|
+
* @default null
|
1348
1356
|
*/
|
1349
1357
|
titleParameter?: string | null;
|
1350
1358
|
/**
|
@@ -1430,7 +1438,8 @@ interface external$8 {
|
|
1430
1438
|
/**
|
1431
1439
|
* @description Unique identifier of the component within the composition.
|
1432
1440
|
* No assumptions should be made about the format of this value other than "it will be unique."
|
1433
|
-
* This is not
|
1441
|
+
* This is not returned in GET replies unless specifically requested via `withComponentIDs` API parameter.
|
1442
|
+
* When updating or creating a composition, if you do not specify an _id for each component, one will be created and stored for you.
|
1434
1443
|
*/
|
1435
1444
|
_id?: string;
|
1436
1445
|
/** @description Indicates this component instance should be sourced from a pattern library pattern. */
|
@@ -1898,6 +1907,8 @@ interface external$7 {
|
|
1898
1907
|
/**
|
1899
1908
|
* @description The public ID of the parameter whose value should be used to create a display title for this component in the UI.
|
1900
1909
|
* The parameter type must support being used as a title parameter for this to work.
|
1910
|
+
*
|
1911
|
+
* @default null
|
1901
1912
|
*/
|
1902
1913
|
titleParameter?: string | null;
|
1903
1914
|
/**
|
@@ -1983,7 +1994,8 @@ interface external$7 {
|
|
1983
1994
|
/**
|
1984
1995
|
* @description Unique identifier of the component within the composition.
|
1985
1996
|
* No assumptions should be made about the format of this value other than "it will be unique."
|
1986
|
-
* This is not
|
1997
|
+
* This is not returned in GET replies unless specifically requested via `withComponentIDs` API parameter.
|
1998
|
+
* When updating or creating a composition, if you do not specify an _id for each component, one will be created and stored for you.
|
1987
1999
|
*/
|
1988
2000
|
_id?: string;
|
1989
2001
|
/** @description Indicates this component instance should be sourced from a pattern library pattern. */
|
@@ -2486,6 +2498,8 @@ interface external$6 {
|
|
2486
2498
|
/**
|
2487
2499
|
* @description The public ID of the parameter whose value should be used to create a display title for this component in the UI.
|
2488
2500
|
* The parameter type must support being used as a title parameter for this to work.
|
2501
|
+
*
|
2502
|
+
* @default null
|
2489
2503
|
*/
|
2490
2504
|
titleParameter?: string | null;
|
2491
2505
|
/**
|
@@ -2571,7 +2585,8 @@ interface external$6 {
|
|
2571
2585
|
/**
|
2572
2586
|
* @description Unique identifier of the component within the composition.
|
2573
2587
|
* No assumptions should be made about the format of this value other than "it will be unique."
|
2574
|
-
* This is not
|
2588
|
+
* This is not returned in GET replies unless specifically requested via `withComponentIDs` API parameter.
|
2589
|
+
* When updating or creating a composition, if you do not specify an _id for each component, one will be created and stored for you.
|
2575
2590
|
*/
|
2576
2591
|
_id?: string;
|
2577
2592
|
/** @description Indicates this component instance should be sourced from a pattern library pattern. */
|
@@ -3460,6 +3475,8 @@ interface external$5 {
|
|
3460
3475
|
/**
|
3461
3476
|
* @description The public ID of the parameter whose value should be used to create a display title for this component in the UI.
|
3462
3477
|
* The parameter type must support being used as a title parameter for this to work.
|
3478
|
+
*
|
3479
|
+
* @default null
|
3463
3480
|
*/
|
3464
3481
|
titleParameter?: string | null;
|
3465
3482
|
/**
|
@@ -3545,7 +3562,8 @@ interface external$5 {
|
|
3545
3562
|
/**
|
3546
3563
|
* @description Unique identifier of the component within the composition.
|
3547
3564
|
* No assumptions should be made about the format of this value other than "it will be unique."
|
3548
|
-
* This is not
|
3565
|
+
* This is not returned in GET replies unless specifically requested via `withComponentIDs` API parameter.
|
3566
|
+
* When updating or creating a composition, if you do not specify an _id for each component, one will be created and stored for you.
|
3549
3567
|
*/
|
3550
3568
|
_id?: string;
|
3551
3569
|
/** @description Indicates this component instance should be sourced from a pattern library pattern. */
|
@@ -4259,6 +4277,8 @@ interface external$3 {
|
|
4259
4277
|
/**
|
4260
4278
|
* @description The public ID of the parameter whose value should be used to create a display title for this component in the UI.
|
4261
4279
|
* The parameter type must support being used as a title parameter for this to work.
|
4280
|
+
*
|
4281
|
+
* @default null
|
4262
4282
|
*/
|
4263
4283
|
titleParameter?: string | null;
|
4264
4284
|
/**
|
@@ -4344,7 +4364,8 @@ interface external$3 {
|
|
4344
4364
|
/**
|
4345
4365
|
* @description Unique identifier of the component within the composition.
|
4346
4366
|
* No assumptions should be made about the format of this value other than "it will be unique."
|
4347
|
-
* This is not
|
4367
|
+
* This is not returned in GET replies unless specifically requested via `withComponentIDs` API parameter.
|
4368
|
+
* When updating or creating a composition, if you do not specify an _id for each component, one will be created and stored for you.
|
4348
4369
|
*/
|
4349
4370
|
_id?: string;
|
4350
4371
|
/** @description Indicates this component instance should be sourced from a pattern library pattern. */
|
@@ -5674,6 +5695,8 @@ interface external$2 {
|
|
5674
5695
|
/**
|
5675
5696
|
* @description The public ID of the parameter whose value should be used to create a display title for this component in the UI.
|
5676
5697
|
* The parameter type must support being used as a title parameter for this to work.
|
5698
|
+
*
|
5699
|
+
* @default null
|
5677
5700
|
*/
|
5678
5701
|
titleParameter?: string | null;
|
5679
5702
|
/**
|
@@ -5759,7 +5782,8 @@ interface external$2 {
|
|
5759
5782
|
/**
|
5760
5783
|
* @description Unique identifier of the component within the composition.
|
5761
5784
|
* No assumptions should be made about the format of this value other than "it will be unique."
|
5762
|
-
* This is not
|
5785
|
+
* This is not returned in GET replies unless specifically requested via `withComponentIDs` API parameter.
|
5786
|
+
* When updating or creating a composition, if you do not specify an _id for each component, one will be created and stored for you.
|
5763
5787
|
*/
|
5764
5788
|
_id?: string;
|
5765
5789
|
/** @description Indicates this component instance should be sourced from a pattern library pattern. */
|
@@ -6772,7 +6796,7 @@ type DataResolutionParameters = {
|
|
6772
6796
|
diagnostics?: boolean;
|
6773
6797
|
};
|
6774
6798
|
/** Types of issue that can occur when fetching composition data */
|
6775
|
-
type CompositionIssue = CompositionPatternIssue | DataResourceIssue | DataElementBindingIssue |
|
6799
|
+
type CompositionIssue = CompositionPatternIssue | DataResourceIssue | DataElementBindingIssue | DynamicInputIssue | DataResolutionConfigIssue;
|
6776
6800
|
type CompositionIssueCore = components$1['schemas']['CompositionIssue'];
|
6777
6801
|
/** An error that occured resolving a pattern that is referenced on the composition */
|
6778
6802
|
type CompositionPatternIssue = CompositionIssueCore & {
|
@@ -6795,20 +6819,14 @@ type DataResourceIssue = CompositionIssueCore & {
|
|
6795
6819
|
* An issue that occurred while binding dynamic inputs to composition data resources,
|
6796
6820
|
* specifically when an expected dynamic input did not have a value.
|
6797
6821
|
*/
|
6798
|
-
type
|
6822
|
+
type DynamicInputIssue = CompositionIssueCore & {
|
6799
6823
|
type: 'input';
|
6800
|
-
inputName: string;
|
6801
6824
|
};
|
6802
6825
|
/** Error in data resolution configuration (internal error) */
|
6803
6826
|
type DataResolutionConfigIssue = {
|
6804
6827
|
message: string;
|
6805
6828
|
type: 'config';
|
6806
6829
|
};
|
6807
|
-
/** Error in applying component overrides */
|
6808
|
-
type OverrideIssue = CompositionIssueCore & {
|
6809
|
-
message: string;
|
6810
|
-
type: 'override';
|
6811
|
-
};
|
6812
6830
|
/** Diagnostics about edge request processing */
|
6813
6831
|
type CompositionDiagnostics = components$1['schemas']['CompositionDiagnostics'];
|
6814
6832
|
/** Diagnostic data about the load performance of attached composition datas */
|
@@ -7366,6 +7384,18 @@ declare class unstable_CompositionRelationshipClient extends ApiClient<Compositi
|
|
7366
7384
|
type PreviewPanelSettings = {
|
7367
7385
|
isInteractive: boolean;
|
7368
7386
|
};
|
7387
|
+
type ContextualEditingComponentReference = {
|
7388
|
+
elements: HTMLElement[];
|
7389
|
+
id: string;
|
7390
|
+
slotName?: string;
|
7391
|
+
componentIndex?: number;
|
7392
|
+
totalComponents?: number;
|
7393
|
+
componentName?: string;
|
7394
|
+
componentTitle?: string;
|
7395
|
+
parentId?: string;
|
7396
|
+
parentType?: string;
|
7397
|
+
isLocalized?: boolean;
|
7398
|
+
};
|
7369
7399
|
|
7370
7400
|
type EnhancerContext = {
|
7371
7401
|
preview?: boolean;
|
@@ -7822,12 +7852,18 @@ type UpdatePreviewSettingsMessage = {
|
|
7822
7852
|
type: 'update-preview-settings';
|
7823
7853
|
settings: PreviewPanelSettings;
|
7824
7854
|
};
|
7855
|
+
type UpdateContextualEditingStateInternalMessage = {
|
7856
|
+
type: 'update-contextual-editing-state-internal';
|
7857
|
+
state: {
|
7858
|
+
selectedComponentReference?: Omit<ContextualEditingComponentReference, 'elements'>;
|
7859
|
+
};
|
7860
|
+
};
|
7825
7861
|
type ReportRenderedCompositionsMessage = {
|
7826
7862
|
type: 'report-rendered-compositions';
|
7827
7863
|
compositionIds: string[];
|
7828
7864
|
url: string;
|
7829
7865
|
};
|
7830
|
-
type ChannelMessage = SelectComponentMessage | ReadyMessage | UpdateCompositionMessage | UpdateCompositionInternalMessage | AddComponentMessage | MoveComponentMessage | DismissPlaceholderMessage | TriggerCompositionActionMessage | UpdatePreviewSettingsMessage | ReportRenderedCompositionsMessage | UpdateComponentParameterMessage | DismissPlaceholderMessage;
|
7866
|
+
type ChannelMessage = SelectComponentMessage | ReadyMessage | UpdateCompositionMessage | UpdateCompositionInternalMessage | AddComponentMessage | MoveComponentMessage | DismissPlaceholderMessage | TriggerCompositionActionMessage | UpdatePreviewSettingsMessage | ReportRenderedCompositionsMessage | UpdateComponentParameterMessage | UpdateContextualEditingStateInternalMessage | DismissPlaceholderMessage;
|
7831
7867
|
declare const isSelectComponentMessage: (message: ChannelMessage) => message is SelectComponentMessage;
|
7832
7868
|
declare const isReadyMessage: (message: ChannelMessage) => message is ReadyMessage;
|
7833
7869
|
declare const isUpdateCompositionMessage: (message: ChannelMessage) => message is UpdateCompositionMessage;
|
@@ -7838,6 +7874,7 @@ declare const isUpdateComponentParameterMessage: (message: ChannelMessage) => me
|
|
7838
7874
|
declare const isDismissPlaceholderMessage: (message: ChannelMessage) => message is DismissPlaceholderMessage;
|
7839
7875
|
declare const isTriggerCompositionActionMessage: (message: ChannelMessage) => message is TriggerCompositionActionMessage;
|
7840
7876
|
declare const isUpdatePreviewSettingsMessage: (message: ChannelMessage) => message is UpdatePreviewSettingsMessage;
|
7877
|
+
declare const isUpdateContextualEditingStateInternalMessage: (message: ChannelMessage) => message is UpdateContextualEditingStateInternalMessage;
|
7841
7878
|
declare const isReportRenderedCompositionsMessage: (message: ChannelMessage) => message is ReportRenderedCompositionsMessage;
|
7842
7879
|
type MessageHandler = (message: ChannelMessage, originalEvent: MessageEvent) => void;
|
7843
7880
|
type Channel = {
|
@@ -7853,6 +7890,7 @@ type Channel = {
|
|
7853
7890
|
dismissPlaceholder: (options: Omit<DismissPlaceholderMessage, 'type'>) => void;
|
7854
7891
|
triggerCompositionAction: (options: Omit<TriggerCompositionActionMessage, 'type'>) => void;
|
7855
7892
|
updatePreviewSettings: (options: Omit<UpdatePreviewSettingsMessage, 'type'>) => void;
|
7893
|
+
updateContextualEditingStateInternal: (options: Omit<UpdateContextualEditingStateInternalMessage, 'type'>) => void;
|
7856
7894
|
reportRenderedCompositions: (options: Omit<ReportRenderedCompositionsMessage, 'type'>) => void;
|
7857
7895
|
};
|
7858
7896
|
declare const createCanvasChannel: ({ listenTo, broadcastTo, }: {
|
@@ -7910,7 +7948,7 @@ type ResolvedRouteGetResponse = RouteGetResponseNotFound | RouteGetResponseRedir
|
|
7910
7948
|
* Resolves a route using Uniform Project Map and Uniform Redirects,
|
7911
7949
|
* returning a composition, redirection, or not found result.
|
7912
7950
|
*/
|
7913
|
-
declare class
|
7951
|
+
declare class RouteClient extends ApiClient<RouteClientOptions> {
|
7914
7952
|
private edgeApiHost;
|
7915
7953
|
constructor(options: RouteClientOptions);
|
7916
7954
|
/** Fetches lists of Canvas compositions, optionally by type */
|
@@ -7925,7 +7963,6 @@ type BindVariablesResult<TValue> = {
|
|
7925
7963
|
type BindVariablesToObjectOptions<T> = {
|
7926
7964
|
/** The object to bind variables to. Only strings or objects are bound. */
|
7927
7965
|
value: T;
|
7928
|
-
recursivePath?: string;
|
7929
7966
|
} & Omit<BindVariablesOptions, 'value'>;
|
7930
7967
|
/**
|
7931
7968
|
* Binds composition variables to an object whose string keys may have variable expressions in them.
|
@@ -8176,4 +8213,4 @@ declare function mapSlotToTestVariations(slot: ComponentInstance[] | undefined):
|
|
8176
8213
|
|
8177
8214
|
declare const CanvasClientError: typeof ApiClientError;
|
8178
8215
|
|
8179
|
-
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, DataElementBindingIssue, DataElementConnectionDefinition, DataResolutionConfigIssue, DataResolutionOption, DataResolutionOptionNegative, DataResolutionOptionPositive, DataResolutionParameters, DataResourceDefinition, DataResourceDefinitions,
|
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 };
|
package/dist/index.esm.js
CHANGED
@@ -1321,6 +1321,9 @@ var isTriggerCompositionActionMessage = (message) => {
|
|
1321
1321
|
var isUpdatePreviewSettingsMessage = (message) => {
|
1322
1322
|
return message.type === "update-preview-settings";
|
1323
1323
|
};
|
1324
|
+
var isUpdateContextualEditingStateInternalMessage = (message) => {
|
1325
|
+
return message.type === "update-contextual-editing-state-internal";
|
1326
|
+
};
|
1324
1327
|
var isReportRenderedCompositionsMessage = (message) => {
|
1325
1328
|
return message.type === "report-rendered-compositions";
|
1326
1329
|
};
|
@@ -1426,6 +1429,13 @@ var createCanvasChannel = ({
|
|
1426
1429
|
};
|
1427
1430
|
postMessage(message);
|
1428
1431
|
};
|
1432
|
+
const updateContextualEditingStateInternal = (options) => {
|
1433
|
+
const message = {
|
1434
|
+
...options,
|
1435
|
+
type: "update-contextual-editing-state-internal"
|
1436
|
+
};
|
1437
|
+
postMessage(message);
|
1438
|
+
};
|
1429
1439
|
const reportRenderedCompositions = (options) => {
|
1430
1440
|
const message = {
|
1431
1441
|
...options,
|
@@ -1472,6 +1482,7 @@ var createCanvasChannel = ({
|
|
1472
1482
|
dismissPlaceholder,
|
1473
1483
|
triggerCompositionAction,
|
1474
1484
|
updatePreviewSettings,
|
1485
|
+
updateContextualEditingStateInternal,
|
1475
1486
|
reportRenderedCompositions
|
1476
1487
|
};
|
1477
1488
|
};
|
@@ -1557,7 +1568,7 @@ function subscribeToComposition({
|
|
1557
1568
|
// src/RouteClient.ts
|
1558
1569
|
import { ApiClient as ApiClient5 } from "@uniformdev/context/api";
|
1559
1570
|
var ROUTE_URL = "/api/v1/route";
|
1560
|
-
var
|
1571
|
+
var RouteClient = class extends ApiClient5 {
|
1561
1572
|
constructor(options) {
|
1562
1573
|
var _a;
|
1563
1574
|
if (!options.limitPolicy) {
|
@@ -1631,7 +1642,7 @@ function bindVariablesToObjectRecursive({
|
|
1631
1642
|
}
|
1632
1643
|
return;
|
1633
1644
|
}
|
1634
|
-
const childBind =
|
1645
|
+
const childBind = bindVariablesToObjectRecursive({
|
1635
1646
|
...bindVariablesOptions,
|
1636
1647
|
value: oldValue,
|
1637
1648
|
recursivePath: currentObjectPath
|
@@ -1746,6 +1757,7 @@ export {
|
|
1746
1757
|
IN_CONTEXT_EDITOR_QUERY_STRING_PARAM,
|
1747
1758
|
IS_RENDERED_BY_UNIFORM_ATTRIBUTE,
|
1748
1759
|
PLACEHOLDER_ID,
|
1760
|
+
RouteClient,
|
1749
1761
|
UncachedCanvasClient,
|
1750
1762
|
UniqueBatchEntries,
|
1751
1763
|
bindVariables,
|
@@ -1773,6 +1785,7 @@ export {
|
|
1773
1785
|
isUpdateComponentParameterMessage,
|
1774
1786
|
isUpdateCompositionInternalMessage,
|
1775
1787
|
isUpdateCompositionMessage,
|
1788
|
+
isUpdateContextualEditingStateInternalMessage,
|
1776
1789
|
isUpdatePreviewSettingsMessage,
|
1777
1790
|
localize,
|
1778
1791
|
mapSlotToPersonalizedVariations,
|
@@ -1780,6 +1793,5 @@ export {
|
|
1780
1793
|
nullLimitPolicy,
|
1781
1794
|
subscribeToComposition,
|
1782
1795
|
unstable_CompositionRelationshipClient,
|
1783
|
-
unstable_RouteClient,
|
1784
1796
|
walkComponentTree
|
1785
1797
|
};
|
package/dist/index.js
CHANGED
@@ -309,6 +309,7 @@ __export(src_exports, {
|
|
309
309
|
IN_CONTEXT_EDITOR_QUERY_STRING_PARAM: () => IN_CONTEXT_EDITOR_QUERY_STRING_PARAM,
|
310
310
|
IS_RENDERED_BY_UNIFORM_ATTRIBUTE: () => IS_RENDERED_BY_UNIFORM_ATTRIBUTE,
|
311
311
|
PLACEHOLDER_ID: () => PLACEHOLDER_ID,
|
312
|
+
RouteClient: () => RouteClient,
|
312
313
|
UncachedCanvasClient: () => UncachedCanvasClient,
|
313
314
|
UniqueBatchEntries: () => UniqueBatchEntries,
|
314
315
|
bindVariables: () => bindVariables,
|
@@ -336,6 +337,7 @@ __export(src_exports, {
|
|
336
337
|
isUpdateComponentParameterMessage: () => isUpdateComponentParameterMessage,
|
337
338
|
isUpdateCompositionInternalMessage: () => isUpdateCompositionInternalMessage,
|
338
339
|
isUpdateCompositionMessage: () => isUpdateCompositionMessage,
|
340
|
+
isUpdateContextualEditingStateInternalMessage: () => isUpdateContextualEditingStateInternalMessage,
|
339
341
|
isUpdatePreviewSettingsMessage: () => isUpdatePreviewSettingsMessage,
|
340
342
|
localize: () => localize,
|
341
343
|
mapSlotToPersonalizedVariations: () => mapSlotToPersonalizedVariations,
|
@@ -343,7 +345,6 @@ __export(src_exports, {
|
|
343
345
|
nullLimitPolicy: () => nullLimitPolicy,
|
344
346
|
subscribeToComposition: () => subscribeToComposition,
|
345
347
|
unstable_CompositionRelationshipClient: () => unstable_CompositionRelationshipClient,
|
346
|
-
unstable_RouteClient: () => unstable_RouteClient,
|
347
348
|
walkComponentTree: () => walkComponentTree
|
348
349
|
});
|
349
350
|
module.exports = __toCommonJS(src_exports);
|
@@ -1404,6 +1405,9 @@ var isTriggerCompositionActionMessage = (message) => {
|
|
1404
1405
|
var isUpdatePreviewSettingsMessage = (message) => {
|
1405
1406
|
return message.type === "update-preview-settings";
|
1406
1407
|
};
|
1408
|
+
var isUpdateContextualEditingStateInternalMessage = (message) => {
|
1409
|
+
return message.type === "update-contextual-editing-state-internal";
|
1410
|
+
};
|
1407
1411
|
var isReportRenderedCompositionsMessage = (message) => {
|
1408
1412
|
return message.type === "report-rendered-compositions";
|
1409
1413
|
};
|
@@ -1509,6 +1513,13 @@ var createCanvasChannel = ({
|
|
1509
1513
|
};
|
1510
1514
|
postMessage(message);
|
1511
1515
|
};
|
1516
|
+
const updateContextualEditingStateInternal = (options) => {
|
1517
|
+
const message = {
|
1518
|
+
...options,
|
1519
|
+
type: "update-contextual-editing-state-internal"
|
1520
|
+
};
|
1521
|
+
postMessage(message);
|
1522
|
+
};
|
1512
1523
|
const reportRenderedCompositions = (options) => {
|
1513
1524
|
const message = {
|
1514
1525
|
...options,
|
@@ -1555,6 +1566,7 @@ var createCanvasChannel = ({
|
|
1555
1566
|
dismissPlaceholder,
|
1556
1567
|
triggerCompositionAction,
|
1557
1568
|
updatePreviewSettings,
|
1569
|
+
updateContextualEditingStateInternal,
|
1558
1570
|
reportRenderedCompositions
|
1559
1571
|
};
|
1560
1572
|
};
|
@@ -1640,7 +1652,7 @@ function subscribeToComposition({
|
|
1640
1652
|
// src/RouteClient.ts
|
1641
1653
|
var import_api5 = require("@uniformdev/context/api");
|
1642
1654
|
var ROUTE_URL = "/api/v1/route";
|
1643
|
-
var
|
1655
|
+
var RouteClient = class extends import_api5.ApiClient {
|
1644
1656
|
constructor(options) {
|
1645
1657
|
var _a;
|
1646
1658
|
if (!options.limitPolicy) {
|
@@ -1714,7 +1726,7 @@ function bindVariablesToObjectRecursive({
|
|
1714
1726
|
}
|
1715
1727
|
return;
|
1716
1728
|
}
|
1717
|
-
const childBind =
|
1729
|
+
const childBind = bindVariablesToObjectRecursive({
|
1718
1730
|
...bindVariablesOptions,
|
1719
1731
|
value: oldValue,
|
1720
1732
|
recursivePath: currentObjectPath
|
@@ -1830,6 +1842,7 @@ var CanvasClientError = import_api6.ApiClientError;
|
|
1830
1842
|
IN_CONTEXT_EDITOR_QUERY_STRING_PARAM,
|
1831
1843
|
IS_RENDERED_BY_UNIFORM_ATTRIBUTE,
|
1832
1844
|
PLACEHOLDER_ID,
|
1845
|
+
RouteClient,
|
1833
1846
|
UncachedCanvasClient,
|
1834
1847
|
UniqueBatchEntries,
|
1835
1848
|
bindVariables,
|
@@ -1857,6 +1870,7 @@ var CanvasClientError = import_api6.ApiClientError;
|
|
1857
1870
|
isUpdateComponentParameterMessage,
|
1858
1871
|
isUpdateCompositionInternalMessage,
|
1859
1872
|
isUpdateCompositionMessage,
|
1873
|
+
isUpdateContextualEditingStateInternalMessage,
|
1860
1874
|
isUpdatePreviewSettingsMessage,
|
1861
1875
|
localize,
|
1862
1876
|
mapSlotToPersonalizedVariations,
|
@@ -1864,6 +1878,5 @@ var CanvasClientError = import_api6.ApiClientError;
|
|
1864
1878
|
nullLimitPolicy,
|
1865
1879
|
subscribeToComposition,
|
1866
1880
|
unstable_CompositionRelationshipClient,
|
1867
|
-
unstable_RouteClient,
|
1868
1881
|
walkComponentTree
|
1869
1882
|
});
|
package/dist/index.mjs
CHANGED
@@ -1321,6 +1321,9 @@ var isTriggerCompositionActionMessage = (message) => {
|
|
1321
1321
|
var isUpdatePreviewSettingsMessage = (message) => {
|
1322
1322
|
return message.type === "update-preview-settings";
|
1323
1323
|
};
|
1324
|
+
var isUpdateContextualEditingStateInternalMessage = (message) => {
|
1325
|
+
return message.type === "update-contextual-editing-state-internal";
|
1326
|
+
};
|
1324
1327
|
var isReportRenderedCompositionsMessage = (message) => {
|
1325
1328
|
return message.type === "report-rendered-compositions";
|
1326
1329
|
};
|
@@ -1426,6 +1429,13 @@ var createCanvasChannel = ({
|
|
1426
1429
|
};
|
1427
1430
|
postMessage(message);
|
1428
1431
|
};
|
1432
|
+
const updateContextualEditingStateInternal = (options) => {
|
1433
|
+
const message = {
|
1434
|
+
...options,
|
1435
|
+
type: "update-contextual-editing-state-internal"
|
1436
|
+
};
|
1437
|
+
postMessage(message);
|
1438
|
+
};
|
1429
1439
|
const reportRenderedCompositions = (options) => {
|
1430
1440
|
const message = {
|
1431
1441
|
...options,
|
@@ -1472,6 +1482,7 @@ var createCanvasChannel = ({
|
|
1472
1482
|
dismissPlaceholder,
|
1473
1483
|
triggerCompositionAction,
|
1474
1484
|
updatePreviewSettings,
|
1485
|
+
updateContextualEditingStateInternal,
|
1475
1486
|
reportRenderedCompositions
|
1476
1487
|
};
|
1477
1488
|
};
|
@@ -1557,7 +1568,7 @@ function subscribeToComposition({
|
|
1557
1568
|
// src/RouteClient.ts
|
1558
1569
|
import { ApiClient as ApiClient5 } from "@uniformdev/context/api";
|
1559
1570
|
var ROUTE_URL = "/api/v1/route";
|
1560
|
-
var
|
1571
|
+
var RouteClient = class extends ApiClient5 {
|
1561
1572
|
constructor(options) {
|
1562
1573
|
var _a;
|
1563
1574
|
if (!options.limitPolicy) {
|
@@ -1631,7 +1642,7 @@ function bindVariablesToObjectRecursive({
|
|
1631
1642
|
}
|
1632
1643
|
return;
|
1633
1644
|
}
|
1634
|
-
const childBind =
|
1645
|
+
const childBind = bindVariablesToObjectRecursive({
|
1635
1646
|
...bindVariablesOptions,
|
1636
1647
|
value: oldValue,
|
1637
1648
|
recursivePath: currentObjectPath
|
@@ -1746,6 +1757,7 @@ export {
|
|
1746
1757
|
IN_CONTEXT_EDITOR_QUERY_STRING_PARAM,
|
1747
1758
|
IS_RENDERED_BY_UNIFORM_ATTRIBUTE,
|
1748
1759
|
PLACEHOLDER_ID,
|
1760
|
+
RouteClient,
|
1749
1761
|
UncachedCanvasClient,
|
1750
1762
|
UniqueBatchEntries,
|
1751
1763
|
bindVariables,
|
@@ -1773,6 +1785,7 @@ export {
|
|
1773
1785
|
isUpdateComponentParameterMessage,
|
1774
1786
|
isUpdateCompositionInternalMessage,
|
1775
1787
|
isUpdateCompositionMessage,
|
1788
|
+
isUpdateContextualEditingStateInternalMessage,
|
1776
1789
|
isUpdatePreviewSettingsMessage,
|
1777
1790
|
localize,
|
1778
1791
|
mapSlotToPersonalizedVariations,
|
@@ -1780,6 +1793,5 @@ export {
|
|
1780
1793
|
nullLimitPolicy,
|
1781
1794
|
subscribeToComposition,
|
1782
1795
|
unstable_CompositionRelationshipClient,
|
1783
|
-
unstable_RouteClient,
|
1784
1796
|
walkComponentTree
|
1785
1797
|
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@uniformdev/canvas",
|
3
|
-
"version": "19.
|
3
|
+
"version": "19.20.1-alpha.32+9ad53dedb",
|
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.
|
41
|
+
"@uniformdev/context": "19.20.1-alpha.32+9ad53dedb",
|
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": "
|
50
|
+
"gitHead": "9ad53dedb0a0c580abc314fe1422f48a09efd0aa"
|
51
51
|
}
|