@uniformdev/canvas 19.36.1-alpha.7 → 19.37.1-alpha.4

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
@@ -3732,6 +3732,11 @@ interface paths$4 {
3732
3732
  * This is a primary query parameter, and cannot be used with any other primary query parameters.
3733
3733
  */
3734
3734
  compositionId?: components$3["parameters"]["compositionId"];
3735
+ /**
3736
+ * Specify a single component ID to fetch the component's composition defaults. Response will be a single composition.
3737
+ * This is a primary query parameter, and cannot be used with any other primary query parameters.
3738
+ */
3739
+ componentId?: components$3["parameters"]["componentId"];
3735
3740
  /**
3736
3741
  * Specify a historical composition version ID to fetch (retrieved from the canvas-history API).
3737
3742
  * Must be used with the `compositionId` parameter.
@@ -4032,6 +4037,11 @@ interface components$3 {
4032
4037
  * This is a primary query parameter, and cannot be used with any other primary query parameters.
4033
4038
  */
4034
4039
  compositionId: string;
4040
+ /**
4041
+ * @description Specify a single component ID to fetch the component's composition defaults. Response will be a single composition.
4042
+ * This is a primary query parameter, and cannot be used with any other primary query parameters.
4043
+ */
4044
+ componentId: string;
4035
4045
  /**
4036
4046
  * @description Specify multiple composition IDs to fetch. Response type will be a list.
4037
4047
  * This is a primary query parameter, and cannot be used with any other primary query parameters.
@@ -5585,6 +5595,11 @@ interface external$3 {
5585
5595
  * This is a primary query parameter, and cannot be used with any other primary query parameters.
5586
5596
  */
5587
5597
  compositionId?: external$3["../../../lambda/functions/v1-canvas.swagger.yml"]["components"]["parameters"]["compositionId"];
5598
+ /**
5599
+ * Specify a single component ID to fetch the component's composition defaults. Response will be a single composition.
5600
+ * This is a primary query parameter, and cannot be used with any other primary query parameters.
5601
+ */
5602
+ componentId?: external$3["../../../lambda/functions/v1-canvas.swagger.yml"]["components"]["parameters"]["componentId"];
5588
5603
  /**
5589
5604
  * Specify a historical composition version ID to fetch (retrieved from the canvas-history API).
5590
5605
  * Must be used with the `compositionId` parameter.
@@ -5885,6 +5900,11 @@ interface external$3 {
5885
5900
  * This is a primary query parameter, and cannot be used with any other primary query parameters.
5886
5901
  */
5887
5902
  compositionId: string;
5903
+ /**
5904
+ * @description Specify a single component ID to fetch the component's composition defaults. Response will be a single composition.
5905
+ * This is a primary query parameter, and cannot be used with any other primary query parameters.
5906
+ */
5907
+ componentId: string;
5888
5908
  /**
5889
5909
  * @description Specify multiple composition IDs to fetch. Response type will be a list.
5890
5910
  * This is a primary query parameter, and cannot be used with any other primary query parameters.
@@ -6218,8 +6238,6 @@ interface external$3 {
6218
6238
  targetPreserveIncomingProtocol?: boolean;
6219
6239
  /** @description Rewritten url should match the domain of the incoming request regardless of what is defined in the redirection target. */
6220
6240
  targetPreserveIncomingDomain?: boolean;
6221
- /** @description Stop running rules after this redirect rule gets executed. */
6222
- stopExecutingAfter?: boolean;
6223
6241
  /** @description Merge incoming querystring with the querystring defined on the redirection target, taking the incoming querystring parameter where a merge is not possible. */
6224
6242
  targetMergeQuerystring?: boolean;
6225
6243
  /** @description Label as system generated or user generated. */
@@ -7084,6 +7102,11 @@ interface external$2 {
7084
7102
  * This is a primary query parameter, and cannot be used with any other primary query parameters.
7085
7103
  */
7086
7104
  compositionId?: external$2["v1-canvas.swagger.yml"]["components"]["parameters"]["compositionId"];
7105
+ /**
7106
+ * Specify a single component ID to fetch the component's composition defaults. Response will be a single composition.
7107
+ * This is a primary query parameter, and cannot be used with any other primary query parameters.
7108
+ */
7109
+ componentId?: external$2["v1-canvas.swagger.yml"]["components"]["parameters"]["componentId"];
7087
7110
  /**
7088
7111
  * Specify a historical composition version ID to fetch (retrieved from the canvas-history API).
7089
7112
  * Must be used with the `compositionId` parameter.
@@ -7384,6 +7407,11 @@ interface external$2 {
7384
7407
  * This is a primary query parameter, and cannot be used with any other primary query parameters.
7385
7408
  */
7386
7409
  compositionId: string;
7410
+ /**
7411
+ * @description Specify a single component ID to fetch the component's composition defaults. Response will be a single composition.
7412
+ * This is a primary query parameter, and cannot be used with any other primary query parameters.
7413
+ */
7414
+ componentId: string;
7387
7415
  /**
7388
7416
  * @description Specify multiple composition IDs to fetch. Response type will be a list.
7389
7417
  * This is a primary query parameter, and cannot be used with any other primary query parameters.
@@ -7717,8 +7745,6 @@ interface external$2 {
7717
7745
  targetPreserveIncomingProtocol?: boolean;
7718
7746
  /** @description Rewritten url should match the domain of the incoming request regardless of what is defined in the redirection target. */
7719
7747
  targetPreserveIncomingDomain?: boolean;
7720
- /** @description Stop running rules after this redirect rule gets executed. */
7721
- stopExecutingAfter?: boolean;
7722
7748
  /** @description Merge incoming querystring with the querystring defined on the redirection target, taking the incoming querystring parameter where a merge is not possible. */
7723
7749
  targetMergeQuerystring?: boolean;
7724
7750
  /** @description Label as system generated or user generated. */
@@ -7820,6 +7846,7 @@ type CompositionGetByNodePathParameters = CompositionGetBy<'projectMapNodePath'>
7820
7846
  type CompositionGetByNodeIdParameters = CompositionGetBy<'projectMapNodeId'> & SpecificProjectMap;
7821
7847
  type CompositionGetBySlugParameters = CompositionGetBy<'slug'>;
7822
7848
  type CompositionGetByIdParameters = CompositionGetBy<'compositionId'>;
7849
+ type CompositionGetByComponentIdParameters = CompositionGetBy<'componentId'>;
7823
7850
  /** Switches for data resolution */
7824
7851
  type DataResolutionOption = {
7825
7852
  skipDataResolution?: boolean;
@@ -7896,7 +7923,7 @@ declare class CanvasClient extends ApiClient<CanvasClientOptions> {
7896
7923
  private edgeApiHost;
7897
7924
  constructor(options: CanvasClientOptions);
7898
7925
  /** Fetches lists of Canvas compositions, optionally by type */
7899
- getCompositionList(options?: Omit<CompositionGetParameters, 'projectId' | 'compositionId' | 'slug'>): Promise<{
7926
+ getCompositionList(options?: Omit<CompositionGetParameters, 'projectId' | 'componentId' | 'compositionId' | 'slug'>): Promise<{
7900
7927
  compositions: {
7901
7928
  state: number;
7902
7929
  uiStatus?: "Draft" | "Modified" | "Published" | "Orphan" | "Previous" | undefined;
@@ -8042,6 +8069,10 @@ declare class CanvasClient extends ApiClient<CanvasClientOptions> {
8042
8069
  getCompositionById(options: CompositionGetByIdParameters & DataResolutionOptionNegative): Promise<CompositionGetResponse>;
8043
8070
  getCompositionById(options: CompositionGetByIdParameters & DataResolutionOptionPositive & DataResolutionParameters): Promise<CompositionResolvedGetResponse>;
8044
8071
  getCompositionById<T extends CompositionGetResponse = CompositionGetValidResponses>(options: CompositionGetByIdParameters & DataResolutionOption & DataResolutionParameters): Promise<T>;
8072
+ /** Fetches a component definition's composition defaults */
8073
+ getCompositionDefaults(options: CompositionGetByComponentIdParameters & DataResolutionOptionNegative): Promise<CompositionGetResponse>;
8074
+ getCompositionDefaults(options: CompositionGetByComponentIdParameters & DataResolutionOptionPositive & DataResolutionParameters): Promise<CompositionResolvedGetResponse>;
8075
+ getCompositionDefaults<T extends CompositionGetResponse = CompositionGetValidResponses>(options: CompositionGetByComponentIdParameters & DataResolutionOption & DataResolutionParameters): Promise<T>;
8045
8076
  /** Fetches historical versions of a composition or pattern */
8046
8077
  unstable_getCompositionHistory(options: ExceptProject<ComponentInstanceHistoryGetParameters>): Promise<{
8047
8078
  cursor?: string | undefined;
@@ -9317,4 +9348,4 @@ declare function mapSlotToTestVariations(slot: ComponentInstance[] | undefined):
9317
9348
 
9318
9349
  declare const CanvasClientError: typeof ApiClientError;
9319
9350
 
9320
- 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, 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, 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, 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, subscribeToComposition, unstable_CompositionRelationshipClient, walkComponentTree };
9351
+ 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, 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, 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, subscribeToComposition, unstable_CompositionRelationshipClient, walkComponentTree };
package/dist/index.d.ts CHANGED
@@ -3732,6 +3732,11 @@ interface paths$4 {
3732
3732
  * This is a primary query parameter, and cannot be used with any other primary query parameters.
3733
3733
  */
3734
3734
  compositionId?: components$3["parameters"]["compositionId"];
3735
+ /**
3736
+ * Specify a single component ID to fetch the component's composition defaults. Response will be a single composition.
3737
+ * This is a primary query parameter, and cannot be used with any other primary query parameters.
3738
+ */
3739
+ componentId?: components$3["parameters"]["componentId"];
3735
3740
  /**
3736
3741
  * Specify a historical composition version ID to fetch (retrieved from the canvas-history API).
3737
3742
  * Must be used with the `compositionId` parameter.
@@ -4032,6 +4037,11 @@ interface components$3 {
4032
4037
  * This is a primary query parameter, and cannot be used with any other primary query parameters.
4033
4038
  */
4034
4039
  compositionId: string;
4040
+ /**
4041
+ * @description Specify a single component ID to fetch the component's composition defaults. Response will be a single composition.
4042
+ * This is a primary query parameter, and cannot be used with any other primary query parameters.
4043
+ */
4044
+ componentId: string;
4035
4045
  /**
4036
4046
  * @description Specify multiple composition IDs to fetch. Response type will be a list.
4037
4047
  * This is a primary query parameter, and cannot be used with any other primary query parameters.
@@ -5585,6 +5595,11 @@ interface external$3 {
5585
5595
  * This is a primary query parameter, and cannot be used with any other primary query parameters.
5586
5596
  */
5587
5597
  compositionId?: external$3["../../../lambda/functions/v1-canvas.swagger.yml"]["components"]["parameters"]["compositionId"];
5598
+ /**
5599
+ * Specify a single component ID to fetch the component's composition defaults. Response will be a single composition.
5600
+ * This is a primary query parameter, and cannot be used with any other primary query parameters.
5601
+ */
5602
+ componentId?: external$3["../../../lambda/functions/v1-canvas.swagger.yml"]["components"]["parameters"]["componentId"];
5588
5603
  /**
5589
5604
  * Specify a historical composition version ID to fetch (retrieved from the canvas-history API).
5590
5605
  * Must be used with the `compositionId` parameter.
@@ -5885,6 +5900,11 @@ interface external$3 {
5885
5900
  * This is a primary query parameter, and cannot be used with any other primary query parameters.
5886
5901
  */
5887
5902
  compositionId: string;
5903
+ /**
5904
+ * @description Specify a single component ID to fetch the component's composition defaults. Response will be a single composition.
5905
+ * This is a primary query parameter, and cannot be used with any other primary query parameters.
5906
+ */
5907
+ componentId: string;
5888
5908
  /**
5889
5909
  * @description Specify multiple composition IDs to fetch. Response type will be a list.
5890
5910
  * This is a primary query parameter, and cannot be used with any other primary query parameters.
@@ -6218,8 +6238,6 @@ interface external$3 {
6218
6238
  targetPreserveIncomingProtocol?: boolean;
6219
6239
  /** @description Rewritten url should match the domain of the incoming request regardless of what is defined in the redirection target. */
6220
6240
  targetPreserveIncomingDomain?: boolean;
6221
- /** @description Stop running rules after this redirect rule gets executed. */
6222
- stopExecutingAfter?: boolean;
6223
6241
  /** @description Merge incoming querystring with the querystring defined on the redirection target, taking the incoming querystring parameter where a merge is not possible. */
6224
6242
  targetMergeQuerystring?: boolean;
6225
6243
  /** @description Label as system generated or user generated. */
@@ -7084,6 +7102,11 @@ interface external$2 {
7084
7102
  * This is a primary query parameter, and cannot be used with any other primary query parameters.
7085
7103
  */
7086
7104
  compositionId?: external$2["v1-canvas.swagger.yml"]["components"]["parameters"]["compositionId"];
7105
+ /**
7106
+ * Specify a single component ID to fetch the component's composition defaults. Response will be a single composition.
7107
+ * This is a primary query parameter, and cannot be used with any other primary query parameters.
7108
+ */
7109
+ componentId?: external$2["v1-canvas.swagger.yml"]["components"]["parameters"]["componentId"];
7087
7110
  /**
7088
7111
  * Specify a historical composition version ID to fetch (retrieved from the canvas-history API).
7089
7112
  * Must be used with the `compositionId` parameter.
@@ -7384,6 +7407,11 @@ interface external$2 {
7384
7407
  * This is a primary query parameter, and cannot be used with any other primary query parameters.
7385
7408
  */
7386
7409
  compositionId: string;
7410
+ /**
7411
+ * @description Specify a single component ID to fetch the component's composition defaults. Response will be a single composition.
7412
+ * This is a primary query parameter, and cannot be used with any other primary query parameters.
7413
+ */
7414
+ componentId: string;
7387
7415
  /**
7388
7416
  * @description Specify multiple composition IDs to fetch. Response type will be a list.
7389
7417
  * This is a primary query parameter, and cannot be used with any other primary query parameters.
@@ -7717,8 +7745,6 @@ interface external$2 {
7717
7745
  targetPreserveIncomingProtocol?: boolean;
7718
7746
  /** @description Rewritten url should match the domain of the incoming request regardless of what is defined in the redirection target. */
7719
7747
  targetPreserveIncomingDomain?: boolean;
7720
- /** @description Stop running rules after this redirect rule gets executed. */
7721
- stopExecutingAfter?: boolean;
7722
7748
  /** @description Merge incoming querystring with the querystring defined on the redirection target, taking the incoming querystring parameter where a merge is not possible. */
7723
7749
  targetMergeQuerystring?: boolean;
7724
7750
  /** @description Label as system generated or user generated. */
@@ -7820,6 +7846,7 @@ type CompositionGetByNodePathParameters = CompositionGetBy<'projectMapNodePath'>
7820
7846
  type CompositionGetByNodeIdParameters = CompositionGetBy<'projectMapNodeId'> & SpecificProjectMap;
7821
7847
  type CompositionGetBySlugParameters = CompositionGetBy<'slug'>;
7822
7848
  type CompositionGetByIdParameters = CompositionGetBy<'compositionId'>;
7849
+ type CompositionGetByComponentIdParameters = CompositionGetBy<'componentId'>;
7823
7850
  /** Switches for data resolution */
7824
7851
  type DataResolutionOption = {
7825
7852
  skipDataResolution?: boolean;
@@ -7896,7 +7923,7 @@ declare class CanvasClient extends ApiClient<CanvasClientOptions> {
7896
7923
  private edgeApiHost;
7897
7924
  constructor(options: CanvasClientOptions);
7898
7925
  /** Fetches lists of Canvas compositions, optionally by type */
7899
- getCompositionList(options?: Omit<CompositionGetParameters, 'projectId' | 'compositionId' | 'slug'>): Promise<{
7926
+ getCompositionList(options?: Omit<CompositionGetParameters, 'projectId' | 'componentId' | 'compositionId' | 'slug'>): Promise<{
7900
7927
  compositions: {
7901
7928
  state: number;
7902
7929
  uiStatus?: "Draft" | "Modified" | "Published" | "Orphan" | "Previous" | undefined;
@@ -8042,6 +8069,10 @@ declare class CanvasClient extends ApiClient<CanvasClientOptions> {
8042
8069
  getCompositionById(options: CompositionGetByIdParameters & DataResolutionOptionNegative): Promise<CompositionGetResponse>;
8043
8070
  getCompositionById(options: CompositionGetByIdParameters & DataResolutionOptionPositive & DataResolutionParameters): Promise<CompositionResolvedGetResponse>;
8044
8071
  getCompositionById<T extends CompositionGetResponse = CompositionGetValidResponses>(options: CompositionGetByIdParameters & DataResolutionOption & DataResolutionParameters): Promise<T>;
8072
+ /** Fetches a component definition's composition defaults */
8073
+ getCompositionDefaults(options: CompositionGetByComponentIdParameters & DataResolutionOptionNegative): Promise<CompositionGetResponse>;
8074
+ getCompositionDefaults(options: CompositionGetByComponentIdParameters & DataResolutionOptionPositive & DataResolutionParameters): Promise<CompositionResolvedGetResponse>;
8075
+ getCompositionDefaults<T extends CompositionGetResponse = CompositionGetValidResponses>(options: CompositionGetByComponentIdParameters & DataResolutionOption & DataResolutionParameters): Promise<T>;
8045
8076
  /** Fetches historical versions of a composition or pattern */
8046
8077
  unstable_getCompositionHistory(options: ExceptProject<ComponentInstanceHistoryGetParameters>): Promise<{
8047
8078
  cursor?: string | undefined;
@@ -9317,4 +9348,4 @@ declare function mapSlotToTestVariations(slot: ComponentInstance[] | undefined):
9317
9348
 
9318
9349
  declare const CanvasClientError: typeof ApiClientError;
9319
9350
 
9320
- 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, 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, 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, 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, subscribeToComposition, unstable_CompositionRelationshipClient, walkComponentTree };
9351
+ 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, 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, 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, subscribeToComposition, unstable_CompositionRelationshipClient, walkComponentTree };
package/dist/index.esm.js CHANGED
@@ -495,6 +495,9 @@ var CanvasClient = class extends ApiClient {
495
495
  getCompositionById(options) {
496
496
  return this.getOneComposition(options);
497
497
  }
498
+ getCompositionDefaults(options) {
499
+ return this.getOneComposition(options);
500
+ }
498
501
  /** Fetches historical versions of a composition or pattern */
499
502
  async unstable_getCompositionHistory(options) {
500
503
  const edgeUrl = this.createUrl("/api/v1/canvas-history", {
package/dist/index.js CHANGED
@@ -589,6 +589,9 @@ var CanvasClient = class extends import_api2.ApiClient {
589
589
  getCompositionById(options) {
590
590
  return this.getOneComposition(options);
591
591
  }
592
+ getCompositionDefaults(options) {
593
+ return this.getOneComposition(options);
594
+ }
592
595
  /** Fetches historical versions of a composition or pattern */
593
596
  async unstable_getCompositionHistory(options) {
594
597
  const edgeUrl = this.createUrl("/api/v1/canvas-history", {
package/dist/index.mjs CHANGED
@@ -495,6 +495,9 @@ var CanvasClient = class extends ApiClient {
495
495
  getCompositionById(options) {
496
496
  return this.getOneComposition(options);
497
497
  }
498
+ getCompositionDefaults(options) {
499
+ return this.getOneComposition(options);
500
+ }
498
501
  /** Fetches historical versions of a composition or pattern */
499
502
  async unstable_getCompositionHistory(options) {
500
503
  const edgeUrl = this.createUrl("/api/v1/canvas-history", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/canvas",
3
- "version": "19.36.1-alpha.7+859ce3f29",
3
+ "version": "19.37.1-alpha.4+d2fd8a8f3",
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.2.0"
39
39
  },
40
40
  "dependencies": {
41
- "@uniformdev/context": "19.36.1-alpha.7+859ce3f29",
41
+ "@uniformdev/context": "19.37.1-alpha.4+d2fd8a8f3",
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": "859ce3f295642c78d0308620f988a51ce933bd64"
50
+ "gitHead": "d2fd8a8f3cd9348ecdd87bdd821e1ab89a7b8054"
51
51
  }