@uniformdev/canvas 19.80.0 → 19.80.1-alpha.149
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 +207 -39
- package/dist/index.d.ts +207 -39
- package/dist/index.esm.js +109 -22
- package/dist/index.js +120 -22
- package/dist/index.mjs +109 -22
- package/package.json +6 -6
package/dist/index.d.ts
CHANGED
@@ -1372,6 +1372,12 @@ declare const EDGE_MAX_CACHE_TTL: number;
|
|
1372
1372
|
declare const EDGE_DEFAULT_CACHE_TTL = 30;
|
1373
1373
|
/** A value that indicates that Edgehancers caching is disabled */
|
1374
1374
|
declare const EDGE_CACHE_DISABLED = -1;
|
1375
|
+
/** This is the type value for the asset parameter or field */
|
1376
|
+
declare const ASSET_PARAMETER_TYPE = "asset";
|
1377
|
+
/** The _source for any assets coming from the Uniform Asset Library */
|
1378
|
+
declare const ASSETS_SOURCE_UNIFORM = "uniform-assets";
|
1379
|
+
/** The _source for any assets which have manually set fields */
|
1380
|
+
declare const ASSETS_SOURCE_CUSTOM_URL = "custom-url";
|
1375
1381
|
|
1376
1382
|
/**
|
1377
1383
|
* This file was auto-generated by openapi-typescript.
|
@@ -4327,6 +4333,7 @@ type DeleteContentTypeOptions = paths$b['/api/v1/content-types']['delete']['requ
|
|
4327
4333
|
type PutContentTypeBody = paths$b['/api/v1/content-types']['put']['requestBody']['content']['application/json'];
|
4328
4334
|
type GetContentTypesResponse = paths$b['/api/v1/content-types']['get']['responses']['200']['content']['application/json'];
|
4329
4335
|
type Entry = components$3['schemas']['EntryApiResponse'];
|
4336
|
+
type EntryList = components$3['schemas']['EntryListResponse'];
|
4330
4337
|
type EntryData = Entry['entry'];
|
4331
4338
|
type GetEntriesOptions = paths$a['/api/v1/entries']['get']['parameters']['query'];
|
4332
4339
|
type GetEntriesResponse = paths$a['/api/v1/entries']['get']['responses']['200']['content']['application/json'];
|
@@ -12489,8 +12496,9 @@ interface paths$1 {
|
|
12489
12496
|
parameters: {
|
12490
12497
|
query: {
|
12491
12498
|
projectId: string;
|
12492
|
-
type: "definition";
|
12499
|
+
type: "definition" | "instance";
|
12493
12500
|
definitionIds?: string;
|
12501
|
+
instanceIds?: string;
|
12494
12502
|
withCompositions?: boolean | null;
|
12495
12503
|
};
|
12496
12504
|
};
|
@@ -12850,6 +12858,81 @@ type schemas = components$1['schemas'];
|
|
12850
12858
|
type InvalidationPayload = schemas['InvalidationPayload'];
|
12851
12859
|
type BatchInvalidationPayload = schemas['BatchInvalidationPayload'];
|
12852
12860
|
|
12861
|
+
type AssetParamValue = AssetParamValueItem[];
|
12862
|
+
type AssetParamValueItem = {
|
12863
|
+
type: string;
|
12864
|
+
_id: string;
|
12865
|
+
/**
|
12866
|
+
* Internal Uniform source ID or
|
12867
|
+
* dataType ID of the global integration library
|
12868
|
+
* which created this asset item
|
12869
|
+
*/
|
12870
|
+
_source?: string;
|
12871
|
+
fields: {
|
12872
|
+
url: {
|
12873
|
+
type: 'text';
|
12874
|
+
value: string;
|
12875
|
+
};
|
12876
|
+
id?: {
|
12877
|
+
type: 'text';
|
12878
|
+
value: string | undefined;
|
12879
|
+
};
|
12880
|
+
title?: {
|
12881
|
+
type: 'text';
|
12882
|
+
value: string | undefined;
|
12883
|
+
};
|
12884
|
+
description?: {
|
12885
|
+
type: 'text';
|
12886
|
+
value: string | undefined;
|
12887
|
+
};
|
12888
|
+
mediaType?: {
|
12889
|
+
type: 'text';
|
12890
|
+
value: string | undefined;
|
12891
|
+
};
|
12892
|
+
/**
|
12893
|
+
* The width of the original asset
|
12894
|
+
*
|
12895
|
+
* Should resolve to a number but might
|
12896
|
+
* be a string with a pointer reference
|
12897
|
+
*/
|
12898
|
+
width?: {
|
12899
|
+
type: 'number';
|
12900
|
+
value: number | string | undefined;
|
12901
|
+
};
|
12902
|
+
/**
|
12903
|
+
* The height of the original asset
|
12904
|
+
*
|
12905
|
+
* Should resolve to a number but might
|
12906
|
+
* be a string with a pointer reference
|
12907
|
+
*/
|
12908
|
+
height?: {
|
12909
|
+
type: 'number';
|
12910
|
+
value: number | string | undefined;
|
12911
|
+
};
|
12912
|
+
/**
|
12913
|
+
* The size in bytes of the original asset
|
12914
|
+
*
|
12915
|
+
* Should resolve to a number but might
|
12916
|
+
* be a string with a pointer reference
|
12917
|
+
*/
|
12918
|
+
size?: {
|
12919
|
+
type: 'number';
|
12920
|
+
value: number | string | undefined;
|
12921
|
+
};
|
12922
|
+
/**
|
12923
|
+
* Any key/value properties which the source
|
12924
|
+
* wants to attach to the asset data
|
12925
|
+
*/
|
12926
|
+
custom?: {
|
12927
|
+
type: string;
|
12928
|
+
value: Record<string, unknown>;
|
12929
|
+
};
|
12930
|
+
};
|
12931
|
+
_overrides?: {
|
12932
|
+
fields: ComponentOverride['parameters'];
|
12933
|
+
};
|
12934
|
+
};
|
12935
|
+
|
12853
12936
|
type LinkParameterType = 'projectMapNode' | 'url' | 'tel' | 'email';
|
12854
12937
|
type LinkTypeConfiguration = Partial<Record<LinkParameterType, boolean>>;
|
12855
12938
|
type LinkParamConfiguration = {
|
@@ -13137,37 +13220,6 @@ declare function enhance<TContext extends EnhancerContext = EnhancerContext>({ c
|
|
13137
13220
|
onErrors?: (errors: EnhancerError[]) => void;
|
13138
13221
|
}): Promise<void>;
|
13139
13222
|
|
13140
|
-
/** @deprecated use walkNodeTree */
|
13141
|
-
type ComponentLocationReference = {
|
13142
|
-
component: ComponentInstance;
|
13143
|
-
parentSlot?: string;
|
13144
|
-
parentSlotIndex?: number;
|
13145
|
-
};
|
13146
|
-
/** @deprecated use walkNodeTree and check for type = slot */
|
13147
|
-
type WalkComponentTreeActions<TContext> = {
|
13148
|
-
/** Replaces the component being visited with a new object */
|
13149
|
-
replaceComponent: (replacementComponent: ComponentInstance) => void;
|
13150
|
-
/** Removes the component being visited from the composition */
|
13151
|
-
removeComponent: () => void;
|
13152
|
-
/** Inserts a new component immediately after the current component in its parent slot */
|
13153
|
-
insertAfter: (components: ComponentInstance | ComponentInstance[]) => void;
|
13154
|
-
/** Aborts visitation of components that are in child slots of the current component */
|
13155
|
-
stopProcessingDescendants: () => void;
|
13156
|
-
/**
|
13157
|
-
* Set a new traversal context for descendants of this node.
|
13158
|
-
* If this is not called, `context` will automatically pass through.
|
13159
|
-
*/
|
13160
|
-
setDescendantsContext: (context: TContext) => void;
|
13161
|
-
setChildContext: (child: ComponentInstance, context: TContext) => void;
|
13162
|
-
};
|
13163
|
-
/**
|
13164
|
-
* Walks a composition's component tree, visiting each component instance depth-first, in order.
|
13165
|
-
* @deprecated use walkNodeTree
|
13166
|
-
*/
|
13167
|
-
declare function walkComponentTree<TContext = unknown>(component: ComponentInstance, visitor: (component: ComponentInstance, ancestorsAndSelf: Array<ComponentLocationReference>, actions: WalkComponentTreeActions<TContext>,
|
13168
|
-
/** Traversal context for this node */
|
13169
|
-
currentContext: TContext | undefined) => void, initialContext?: TContext): void;
|
13170
|
-
|
13171
13223
|
/** Ancestor location that is in a slot on a component */
|
13172
13224
|
type ComponentLocationReferenceV2 = {
|
13173
13225
|
type: 'slot';
|
@@ -13232,11 +13284,71 @@ type WalkNodeTreeOptions<TContext> = {
|
|
13232
13284
|
};
|
13233
13285
|
/** Walks a composition's content tree, visiting each component in a slot or block parameter/field depth-first, in order. */
|
13234
13286
|
declare function walkNodeTree<TContext = unknown>(node: ComponentInstance | EntryData | Array<NodeLocationReference>, visitor: (info: TreeNodeInfoTypes<TContext>) => void, options?: WalkNodeTreeOptions<TContext>): void;
|
13287
|
+
/**
|
13288
|
+
* Any types which hold an array of nodes and
|
13289
|
+
* therefore should be iterated over as child nodes
|
13290
|
+
*/
|
13291
|
+
declare function isNestedNodeType(type: string): boolean;
|
13235
13292
|
/** Gets the typed value of a block parameter or block field */
|
13236
13293
|
declare function getBlockValue(component: ComponentInstance | EntryData, parameterName: string): BlockValue;
|
13237
13294
|
|
13295
|
+
interface FindInNodeTreeReference {
|
13296
|
+
key: string;
|
13297
|
+
pointer: string;
|
13298
|
+
/** This might be the composition parameter, or entry field */
|
13299
|
+
parameter: ComponentParameter;
|
13300
|
+
}
|
13301
|
+
/**
|
13302
|
+
* Walk a Composition or Entry tree to find parameters or fields
|
13303
|
+
* based on the predicate returning true
|
13304
|
+
*
|
13305
|
+
* @example
|
13306
|
+
*
|
13307
|
+
* const textReferences = findParameterInNodeTree(
|
13308
|
+
* composition,
|
13309
|
+
* (parameter) => parameter.type === 'text'
|
13310
|
+
* )
|
13311
|
+
*
|
13312
|
+
* @param data The composition or entry data
|
13313
|
+
* @param predicate Return true from this function to include the parameter in the results
|
13314
|
+
*/
|
13315
|
+
declare function findParameterInNodeTree(data: ComponentInstance | EntryData | Array<NodeLocationReference>, predicate: (parameter: ComponentParameter, parameterKey: string, node: ComponentInstance | EntryData | Array<NodeLocationReference>) => boolean): FindInNodeTreeReference[];
|
13316
|
+
|
13317
|
+
/** @deprecated use walkNodeTree */
|
13318
|
+
type ComponentLocationReference = {
|
13319
|
+
component: ComponentInstance;
|
13320
|
+
parentSlot?: string;
|
13321
|
+
parentSlotIndex?: number;
|
13322
|
+
};
|
13323
|
+
/** @deprecated use walkNodeTree and check for type = slot */
|
13324
|
+
type WalkComponentTreeActions<TContext> = {
|
13325
|
+
/** Replaces the component being visited with a new object */
|
13326
|
+
replaceComponent: (replacementComponent: ComponentInstance) => void;
|
13327
|
+
/** Removes the component being visited from the composition */
|
13328
|
+
removeComponent: () => void;
|
13329
|
+
/** Inserts a new component immediately after the current component in its parent slot */
|
13330
|
+
insertAfter: (components: ComponentInstance | ComponentInstance[]) => void;
|
13331
|
+
/** Aborts visitation of components that are in child slots of the current component */
|
13332
|
+
stopProcessingDescendants: () => void;
|
13333
|
+
/**
|
13334
|
+
* Set a new traversal context for descendants of this node.
|
13335
|
+
* If this is not called, `context` will automatically pass through.
|
13336
|
+
*/
|
13337
|
+
setDescendantsContext: (context: TContext) => void;
|
13338
|
+
setChildContext: (child: ComponentInstance, context: TContext) => void;
|
13339
|
+
};
|
13340
|
+
/**
|
13341
|
+
* Walks a composition's component tree, visiting each component instance depth-first, in order.
|
13342
|
+
* @deprecated use walkNodeTree
|
13343
|
+
*/
|
13344
|
+
declare function walkComponentTree<TContext = unknown>(component: ComponentInstance, visitor: (component: ComponentInstance, ancestorsAndSelf: Array<ComponentLocationReference>, actions: WalkComponentTreeActions<TContext>,
|
13345
|
+
/** Traversal context for this node */
|
13346
|
+
currentContext: TContext | undefined) => void, initialContext?: TContext): void;
|
13347
|
+
|
13238
13348
|
/** Returns the JSON pointer of a component based on its location */
|
13239
13349
|
declare function getComponentJsonPointer(ancestorsAndSelf: Array<NodeLocationReference | ComponentLocationReference>): string;
|
13350
|
+
declare function getNounForLocation(parentLocation: NodeLocationReference | ComponentLocationReference | undefined): "parameters" | "fields";
|
13351
|
+
declare function getNounForNode(node: ComponentInstance | EntryData | Array<NodeLocationReference>): "parameters" | "fields";
|
13240
13352
|
|
13241
13353
|
declare function getComponentPath(ancestorsAndSelf: Array<ComponentLocationReference | NodeLocationReference>): string;
|
13242
13354
|
|
@@ -13651,11 +13763,6 @@ declare const createUniformApiEnhancer: ({ apiUrl }: {
|
|
13651
13763
|
* Removes things like author, stats, etc.
|
13652
13764
|
*/
|
13653
13765
|
declare function convertEntryToPutEntry(entry: Entry): PutEntryBody;
|
13654
|
-
/**
|
13655
|
-
* Gets the object holding the properties (fields or parameters) of an entry or component instance
|
13656
|
-
* If no properties are defined, returns undefined.
|
13657
|
-
*/
|
13658
|
-
declare function getPropertiesValue(entity: Pick<ComponentInstance, 'parameters'> | Pick<EntryData, 'fields'>): ComponentInstance['parameters'];
|
13659
13766
|
|
13660
13767
|
declare const ATTRIBUTE_COMPONENT_ID = "data-uniform-component-id";
|
13661
13768
|
declare const ATTRIBUTE_PARAMETER_ID = "data-uniform-parameter-id";
|
@@ -13694,7 +13801,17 @@ declare function isRootEntryReference(root: NodeLocationReference): root is Root
|
|
13694
13801
|
* Check to see if some generic composition data structure
|
13695
13802
|
* looks like Entry data
|
13696
13803
|
*/
|
13697
|
-
declare function isEntryData(entryData: ComponentInstance | EntryData | null | undefined): entryData is EntryData;
|
13804
|
+
declare function isEntryData(entryData: ComponentInstance | EntryData | null | undefined | unknown): entryData is EntryData;
|
13805
|
+
/**
|
13806
|
+
* A fast, non-exhaustive guard which checks that the value is an array
|
13807
|
+
* as well as the first item, if there is one, looks like an asset item
|
13808
|
+
*/
|
13809
|
+
declare function isAssetParamValue(value: unknown): value is AssetParamValue;
|
13810
|
+
/**
|
13811
|
+
* A fast, non-exhaustive guard which checks the
|
13812
|
+
* required structure of an asset item
|
13813
|
+
*/
|
13814
|
+
declare function isAssetParamValueItem(item: unknown): item is AssetParamValueItem;
|
13698
13815
|
|
13699
13816
|
declare const generateHash: ({ composition, secret, }: {
|
13700
13817
|
composition: RootComponentInstance;
|
@@ -13725,6 +13842,57 @@ declare function mapSlotToTestVariations(slot: ComponentInstance[] | undefined):
|
|
13725
13842
|
declare const isComponentPlaceholderId: (id: string | undefined) => boolean;
|
13726
13843
|
declare const generateComponentPlaceholderId: (randomId: string, sdkVersion: number | undefined) => string;
|
13727
13844
|
|
13845
|
+
type FlattenProperty<P> = P extends {
|
13846
|
+
value: unknown;
|
13847
|
+
} ? P['value'] : P;
|
13848
|
+
type FlattenValues<T extends DataWithProperties> = T extends Pick<ComponentInstance, 'parameters'> ? Record<string, unknown> & {
|
13849
|
+
[Property in keyof T['parameters']]: FlattenProperty<T['parameters'][Property]>;
|
13850
|
+
} : T extends Pick<EntryData, 'fields'> ? Record<string, unknown> & {
|
13851
|
+
[Property in keyof T['fields']]: FlattenProperty<T['fields'][Property]>;
|
13852
|
+
} : unknown;
|
13853
|
+
/**
|
13854
|
+
* Gets the object holding the properties (fields or parameters) of an entry or component instance
|
13855
|
+
* If no properties are defined, returns undefined.
|
13856
|
+
*/
|
13857
|
+
declare function getPropertiesValue(entity: Pick<ComponentInstance, 'parameters'> | Pick<EntryData, 'fields'>): ComponentInstance['parameters'];
|
13858
|
+
interface FlattenValuesOptions {
|
13859
|
+
/**
|
13860
|
+
* Take only the first item from an array
|
13861
|
+
* of values, flatten it and return it as a single object
|
13862
|
+
*/
|
13863
|
+
toSingle?: boolean;
|
13864
|
+
/**
|
13865
|
+
* If the property has nested properties, like Blocks or Assets
|
13866
|
+
* can, then how many levels should we traverse.
|
13867
|
+
*
|
13868
|
+
* You can set this to `Infinity` although it would be more
|
13869
|
+
* advisable, for performance, to use the number you need in your code.
|
13870
|
+
*
|
13871
|
+
* Where:
|
13872
|
+
* levels=0 will only extract the properties of the current object
|
13873
|
+
* levels=1 will include any child blocks or assets on the current object
|
13874
|
+
* but not any grandchildren
|
13875
|
+
*
|
13876
|
+
* @default 1
|
13877
|
+
*/
|
13878
|
+
levels?: number;
|
13879
|
+
}
|
13880
|
+
/**
|
13881
|
+
* Get the data stored in the value of a component parameter
|
13882
|
+
* or a field attached to an Entry, Block or Asset
|
13883
|
+
*/
|
13884
|
+
declare function getPropertyValue<TValue, T extends ComponentParameter<TValue>>(parameter: T): TValue;
|
13885
|
+
declare function getPropertyValue(parameter: null): null;
|
13886
|
+
declare function getPropertyValue(parameter: undefined): undefined;
|
13887
|
+
type DataWithProperties = Pick<ComponentInstance, 'parameters'> | Pick<EntryData, 'fields'>;
|
13888
|
+
declare function flattenValues(data: null, options?: FlattenValuesOptions): null;
|
13889
|
+
declare function flattenValues(data: undefined, options?: FlattenValuesOptions): undefined;
|
13890
|
+
declare function flattenValues<Data extends DataWithProperties>(data: Data | null | undefined, options?: FlattenValuesOptions): FlattenValues<Data> | null | undefined;
|
13891
|
+
declare function flattenValues<Data extends DataWithProperties>(data: Array<Data> | null | undefined, options: {
|
13892
|
+
toSingle: true;
|
13893
|
+
} & Omit<FlattenValuesOptions, 'toSingle'>): FlattenValues<Data> | null | undefined;
|
13894
|
+
declare function flattenValues<Data extends DataWithProperties>(data: Array<Data> | null | undefined, options?: FlattenValuesOptions): Array<FlattenValues<Data>> | null | undefined;
|
13895
|
+
|
13728
13896
|
type BindVariablesResult<TValue> = {
|
13729
13897
|
/** Number of dynamic expressions that attempted to be bound (regardless of the success of the binding) */
|
13730
13898
|
boundCount: number;
|
@@ -13784,4 +13952,4 @@ declare function parseVariableExpression(serialized: string, onToken?: (token: s
|
|
13784
13952
|
|
13785
13953
|
declare const CanvasClientError: typeof ApiClientError;
|
13786
13954
|
|
13787
|
-
export { ATTRIBUTE_COMPONENT_ID, ATTRIBUTE_MULTILINE, ATTRIBUTE_PARAMETER_ID, ATTRIBUTE_PARAMETER_TYPE, ATTRIBUTE_PARAMETER_VALUE, ATTRIBUTE_PLACEHOLDER, AddComponentMessage, BatchEnhancer, BatchEntry, BatchInvalidationPayload, BindVariablesOptions, BindVariablesResult, BindVariablesToObjectOptions, BlockLocationReference, BlockValue, CANVAS_BLOCK_PARAM_TYPE, 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, ComponentLocationReferenceV2, ComponentOverridability, ComponentOverride, ComponentOverrides, ComponentParameter, ComponentParameterBlock, 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, CompositionResolvedListResponse, CompositionUIStatus, ContentClient, ContentType, ContentTypeField, ContextualEditingComponentReference, DataDiagnostic, DataElementBindingIssue, DataElementConnectionDefinition, DataResolutionConfigIssue, DataResolutionIssue, DataResolutionOption, DataResolutionOptionNegative, DataResolutionOptionPositive, DataResolutionParameters, DataResourceDefinition, DataResourceDefinitions, DataResourceIssue, DataResourceVariables, DataSource, DataSourceClient, DataSourceDeleteParameters, DataSourceGetParameters, DataSourceGetResponse, DataSourcePutParameters, DataSourcesGetParameters, DataSourcesGetResponse, DataType, DataTypeClient, DataTypeDeleteParameters, DataTypeGetParameters, DataTypeGetResponse, DataTypePutParameters, DataVariableDefinition, DeleteContentTypeOptions, DeleteEntryOptions, DismissPlaceholderMessage, DynamicInputIssue, EDGE_CACHE_DISABLED, EDGE_DEFAULT_CACHE_TTL, EDGE_MAX_CACHE_TTL, EDGE_MIN_CACHE_TTL, EMPTY_COMPOSITION, EdgehancersDiagnostics, EditorStateUpdatedMessage, EnhancerBuilder, EnhancerContext, EnhancerError, EntriesGetParameters, EntriesGetResponse, EntriesHistoryGetParameters, EntriesHistoryGetResponse, EntriesResolvedListResponse, Entry, EntryData, EventNames, GetContentTypesOptions, GetContentTypesResponse, GetEntriesOptions, GetEntriesResponse, GetParameterAttributesProps, IN_CONTEXT_EDITOR_COMPONENT_END_ROLE, IN_CONTEXT_EDITOR_COMPONENT_START_ROLE, IN_CONTEXT_EDITOR_CONFIG_CHECK_QUERY_STRING_PARAM, IN_CONTEXT_EDITOR_EMBED_SCRIPT_ID, IN_CONTEXT_EDITOR_PLAYGROUND_QUERY_STRING_PARAM, IN_CONTEXT_EDITOR_QUERY_STRING_PARAM, IS_RENDERED_BY_UNIFORM_ATTRIBUTE, InvalidationPayload, LimitPolicy, LinkComponentParameterValue, LinkParamConfiguration, LinkParamValue, LinkParameterType, LinkTypeConfiguration, MessageHandler, MoveComponentMessage, NodeLocationReference, NonProjectMapLinkParamValue, OpenParameterEditorMessage, OverrideOptions, PLACEHOLDER_ID, PatternIssue, PreviewEventBus, PreviewPanelSettings, ProjectMapLinkComponentParameterValue, ProjectMapLinkParamValue, Prompt, PromptClient, PromptsDeleteParameters, PromptsGetParameters, PromptsGetResponse, PromptsPutParameters, PutContentTypeBody, PutEntryBody, ReadyMessage, ReportRenderedCompositionsMessage, ResolvedRouteGetResponse, RichTextBuiltInElement, RichTextBuiltInFormat, RichTextParamConfiguration, RichTextParamValue, RootComponentInstance, RootEntryReference, RootLocationReference, RouteClient, RouteDynamicInputs, RouteGetParameters, RouteGetResponse, RouteGetResponseComposition, RouteGetResponseEdgehancedComposition, RouteGetResponseNotFound, RouteGetResponseRedirect, SECRET_QUERY_STRING_PARAM, SelectComponentMessage, SelectParameterMessage, SpecificProjectMap, SubscribeToCompositionOptions, TreeNodeInfoTypes, TriggerComponentActionMessage, TriggerCompositionActionMessage, UncachedCanvasClient, UncachedCategoryClient, UncachedContentClient, UniqueBatchEntries, UnsubscribeCallback, UpdateComponentParameterMessage, UpdateComponentReferencesMessage, UpdateCompositionInternalMessage, UpdateCompositionMessage, UpdateContextualEditingStateInternalMessage, UpdateFeatureFlagsMessage, UpdatePreviewSettingsMessage, UsageTrackingApi, UsageTrackingGetParameters, UsageTrackingGetResponse, UsageTrackingPostParameters, UsageTrackingPostResponse, WalkComponentTreeActions, WalkNodeTreeActions, WalkNodeTreeOptions, bindVariables, bindVariablesToObject, compose, convertEntryToPutEntry, createBatchEnhancer, createCanvasChannel, createEventBus, createLimitPolicy, createUniformApiEnhancer, createVariableReference, enhance, extractLocales, generateComponentPlaceholderId, generateHash, getBlockValue, getChannelName, getComponentJsonPointer, getComponentPath, getParameterAttributes, getPropertiesValue, isAddComponentMessage, isAllowedReferrer, isComponentActionMessage, isComponentPlaceholderId, isDismissPlaceholderMessage, isEntryData, isMovingComponentMessage, isOpenParameterEditorMessage, isReadyMessage, isReportRenderedCompositionsMessage, isRootEntryReference, isSelectComponentMessage, isSelectParameterMessage, isSystemComponentDefinition, isTriggerCompositionActionMessage, isUpdateComponentParameterMessage, isUpdateComponentReferencesMessage, isUpdateCompositionInternalMessage, isUpdateCompositionMessage, isUpdateContextualEditingStateInternalMessage, isUpdateFeatureFlagsMessage, isUpdatePreviewSettingsMessage, localize, mapSlotToPersonalizedVariations, mapSlotToTestVariations, nullLimitPolicy, parseVariableExpression, subscribeToComposition, unstable_CompositionRelationshipClient, walkComponentTree, walkNodeTree };
|
13955
|
+
export { ASSETS_SOURCE_CUSTOM_URL, ASSETS_SOURCE_UNIFORM, ASSET_PARAMETER_TYPE, ATTRIBUTE_COMPONENT_ID, ATTRIBUTE_MULTILINE, ATTRIBUTE_PARAMETER_ID, ATTRIBUTE_PARAMETER_TYPE, ATTRIBUTE_PARAMETER_VALUE, ATTRIBUTE_PLACEHOLDER, type AddComponentMessage, type AssetParamValue, type AssetParamValueItem, type BatchEnhancer, BatchEntry, type BatchInvalidationPayload, type BindVariablesOptions, type BindVariablesResult, type BindVariablesToObjectOptions, type BlockLocationReference, type BlockValue, CANVAS_BLOCK_PARAM_TYPE, 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, type CanvasDefinitions, type CategoriesDeleteParameters, type CategoriesGetParameters, type CategoriesGetResponse, type CategoriesPutParameters, type Category, CategoryClient, type Channel, type ChannelMessage, type ChannelSubscription, ChildEnhancerBuilder, type ComponentDefinition, type ComponentDefinitionDeleteParameters, type ComponentDefinitionGetParameters, type ComponentDefinitionGetResponse, type ComponentDefinitionParameter, type ComponentDefinitionPermission, type ComponentDefinitionPutParameters, type ComponentDefinitionSlot, type ComponentDefinitionSlugSettings, type ComponentDefinitionVariant, type ComponentEnhancer, type ComponentEnhancerFunction, type ComponentEnhancerOptions, type ComponentInstance, type ComponentInstanceContextualEditing, type ComponentInstanceHistoryEntry, type ComponentInstanceHistoryGetParameters, type ComponentInstanceHistoryGetResponse, type ComponentLocationReference, type ComponentLocationReferenceV2, type ComponentOverridability, type ComponentOverride, type ComponentOverrides, type ComponentParameter, type ComponentParameterBlock, type ComponentParameterContextualEditing, type ComponentParameterEnhancer, type ComponentParameterEnhancerFunction, type ComponentParameterEnhancerOptions, type CompositionDataDiagnostic, type CompositionDeleteParameters, type CompositionDiagnostics, type CompositionGetByComponentIdParameters, type CompositionGetByIdParameters, type CompositionGetByNodeIdParameters, type CompositionGetByNodePathParameters, type CompositionGetBySlugParameters, type CompositionGetListResponse, type CompositionGetOrderBy, type CompositionGetParameters, type CompositionGetResponse, type CompositionGetValidResponses, type CompositionIssue, type CompositionPatternIssue, type CompositionPutParameters, type CompositionRelationshipsClientOptions, type CompositionRelationshipsDDefinitionGetResponse, type CompositionRelationshipsDefinitionApi, type CompositionRelationshipsDefinitionGetParameters, type CompositionResolvedGetResponse, type CompositionResolvedListResponse, type CompositionUIStatus, ContentClient, type ContentType, type ContentTypeField, type ContextualEditingComponentReference, type DataDiagnostic, type DataElementBindingIssue, type DataElementConnectionDefinition, type DataResolutionConfigIssue, type DataResolutionIssue, type DataResolutionOption, type DataResolutionOptionNegative, type DataResolutionOptionPositive, type DataResolutionParameters, type DataResourceDefinition, type DataResourceDefinitions, type DataResourceIssue, type DataResourceVariables, type DataSource, DataSourceClient, type DataSourceDeleteParameters, type DataSourceGetParameters, type DataSourceGetResponse, type DataSourcePutParameters, type DataSourcesGetParameters, type DataSourcesGetResponse, type DataType, DataTypeClient, type DataTypeDeleteParameters, type DataTypeGetParameters, type DataTypeGetResponse, type DataTypePutParameters, type DataVariableDefinition, type DataWithProperties, type DeleteContentTypeOptions, type DeleteEntryOptions, type DismissPlaceholderMessage, type DynamicInputIssue, EDGE_CACHE_DISABLED, EDGE_DEFAULT_CACHE_TTL, EDGE_MAX_CACHE_TTL, EDGE_MIN_CACHE_TTL, EMPTY_COMPOSITION, type EdgehancersDiagnostics, type EditorStateUpdatedMessage, EnhancerBuilder, type EnhancerContext, type EnhancerError, type EntriesGetParameters, type EntriesGetResponse, type EntriesHistoryGetParameters, type EntriesHistoryGetResponse, type EntriesResolvedListResponse, type Entry, type EntryData, type EntryList, type EventNames, type FindInNodeTreeReference, type FlattenProperty, type FlattenValues, type FlattenValuesOptions, type GetContentTypesOptions, type GetContentTypesResponse, type GetEntriesOptions, type GetEntriesResponse, type GetParameterAttributesProps, IN_CONTEXT_EDITOR_COMPONENT_END_ROLE, IN_CONTEXT_EDITOR_COMPONENT_START_ROLE, IN_CONTEXT_EDITOR_CONFIG_CHECK_QUERY_STRING_PARAM, IN_CONTEXT_EDITOR_EMBED_SCRIPT_ID, IN_CONTEXT_EDITOR_PLAYGROUND_QUERY_STRING_PARAM, IN_CONTEXT_EDITOR_QUERY_STRING_PARAM, IS_RENDERED_BY_UNIFORM_ATTRIBUTE, type InvalidationPayload, type LimitPolicy, type LinkComponentParameterValue, type LinkParamConfiguration, type LinkParamValue, type LinkParameterType, type LinkTypeConfiguration, type MessageHandler, type MoveComponentMessage, type NodeLocationReference, type NonProjectMapLinkParamValue, type OpenParameterEditorMessage, type OverrideOptions, PLACEHOLDER_ID, type PatternIssue, type PreviewEventBus, type PreviewPanelSettings, type ProjectMapLinkComponentParameterValue, type ProjectMapLinkParamValue, type Prompt, PromptClient, type PromptsDeleteParameters, type PromptsGetParameters, type PromptsGetResponse, type PromptsPutParameters, type PutContentTypeBody, type PutEntryBody, type ReadyMessage, type ReportRenderedCompositionsMessage, type ResolvedRouteGetResponse, type RichTextBuiltInElement, type RichTextBuiltInFormat, type RichTextParamConfiguration, type RichTextParamValue, type RootComponentInstance, type RootEntryReference, type RootLocationReference, RouteClient, type RouteDynamicInputs, type RouteGetParameters, type RouteGetResponse, type RouteGetResponseComposition, type RouteGetResponseEdgehancedComposition, type RouteGetResponseNotFound, type RouteGetResponseRedirect, SECRET_QUERY_STRING_PARAM, type SelectComponentMessage, type SelectParameterMessage, type SpecificProjectMap, type SubscribeToCompositionOptions, type TreeNodeInfoTypes, type TriggerComponentActionMessage, type TriggerCompositionActionMessage, UncachedCanvasClient, UncachedCategoryClient, UncachedContentClient, UniqueBatchEntries, type UnsubscribeCallback, type UpdateComponentParameterMessage, type UpdateComponentReferencesMessage, type UpdateCompositionInternalMessage, type UpdateCompositionMessage, type UpdateContextualEditingStateInternalMessage, type UpdateFeatureFlagsMessage, type UpdatePreviewSettingsMessage, type UsageTrackingApi, type UsageTrackingGetParameters, type UsageTrackingGetResponse, type UsageTrackingPostParameters, type UsageTrackingPostResponse, type WalkComponentTreeActions, type WalkNodeTreeActions, type WalkNodeTreeOptions, bindVariables, bindVariablesToObject, compose, convertEntryToPutEntry, createBatchEnhancer, createCanvasChannel, createEventBus, createLimitPolicy, createUniformApiEnhancer, createVariableReference, enhance, extractLocales, findParameterInNodeTree, flattenValues, generateComponentPlaceholderId, generateHash, getBlockValue, getChannelName, getComponentJsonPointer, getComponentPath, getNounForLocation, getNounForNode, getParameterAttributes, getPropertiesValue, getPropertyValue, isAddComponentMessage, isAllowedReferrer, isAssetParamValue, isAssetParamValueItem, isComponentActionMessage, isComponentPlaceholderId, isDismissPlaceholderMessage, isEntryData, isMovingComponentMessage, isNestedNodeType, isOpenParameterEditorMessage, isReadyMessage, isReportRenderedCompositionsMessage, isRootEntryReference, isSelectComponentMessage, isSelectParameterMessage, isSystemComponentDefinition, isTriggerCompositionActionMessage, isUpdateComponentParameterMessage, isUpdateComponentReferencesMessage, isUpdateCompositionInternalMessage, isUpdateCompositionMessage, isUpdateContextualEditingStateInternalMessage, isUpdateFeatureFlagsMessage, isUpdatePreviewSettingsMessage, localize, mapSlotToPersonalizedVariations, mapSlotToTestVariations, nullLimitPolicy, parseVariableExpression, subscribeToComposition, unstable_CompositionRelationshipClient, walkComponentTree, walkNodeTree };
|
package/dist/index.esm.js
CHANGED
@@ -1000,25 +1000,9 @@ var EDGE_MIN_CACHE_TTL = 10;
|
|
1000
1000
|
var EDGE_MAX_CACHE_TTL = 24 * 60 * 60;
|
1001
1001
|
var EDGE_DEFAULT_CACHE_TTL = 30;
|
1002
1002
|
var EDGE_CACHE_DISABLED = -1;
|
1003
|
-
|
1004
|
-
|
1005
|
-
|
1006
|
-
return {
|
1007
|
-
entry: {
|
1008
|
-
type: entry.entry.type,
|
1009
|
-
_dataResources: entry.entry._dataResources,
|
1010
|
-
_id: entry.entry._id,
|
1011
|
-
_name: entry.entry._name,
|
1012
|
-
_slug: entry.entry._slug,
|
1013
|
-
fields: entry.entry.fields
|
1014
|
-
},
|
1015
|
-
state: entry.state,
|
1016
|
-
projectId: entry.projectId
|
1017
|
-
};
|
1018
|
-
}
|
1019
|
-
function getPropertiesValue(entity) {
|
1020
|
-
return "parameters" in entity && entity.parameters ? entity.parameters : "fields" in entity && entity.fields ? entity.fields : void 0;
|
1021
|
-
}
|
1003
|
+
var ASSET_PARAMETER_TYPE = "asset";
|
1004
|
+
var ASSETS_SOURCE_UNIFORM = "uniform-assets";
|
1005
|
+
var ASSETS_SOURCE_CUSTOM_URL = "custom-url";
|
1022
1006
|
|
1023
1007
|
// src/utils/guards.ts
|
1024
1008
|
function isRootEntryReference(root) {
|
@@ -1027,6 +1011,49 @@ function isRootEntryReference(root) {
|
|
1027
1011
|
function isEntryData(entryData) {
|
1028
1012
|
return Boolean(entryData && typeof entryData === "object" && "fields" in entryData);
|
1029
1013
|
}
|
1014
|
+
function isAssetParamValue(value) {
|
1015
|
+
return Array.isArray(value) && (value.length > 0 ? isAssetParamValueItem(value[0]) : true);
|
1016
|
+
}
|
1017
|
+
function isAssetParamValueItem(item) {
|
1018
|
+
return Boolean(
|
1019
|
+
item instanceof Object && "_source" in item && "fields" in item && item.fields instanceof Object && "url" in item.fields && item.fields.url instanceof Object
|
1020
|
+
);
|
1021
|
+
}
|
1022
|
+
|
1023
|
+
// src/utils/properties.ts
|
1024
|
+
function getPropertiesValue(entity) {
|
1025
|
+
return "parameters" in entity && entity.parameters ? entity.parameters : "fields" in entity && entity.fields ? entity.fields : void 0;
|
1026
|
+
}
|
1027
|
+
function getPropertyValue(parameter) {
|
1028
|
+
return parameter ? parameter.value : parameter;
|
1029
|
+
}
|
1030
|
+
function flattenValues(data, options = {}) {
|
1031
|
+
if (!data) {
|
1032
|
+
return data;
|
1033
|
+
} else if (Array.isArray(data) && options.toSingle) {
|
1034
|
+
return data.length > 0 ? flattenSingleNodeValues(data[0]) : void 0;
|
1035
|
+
} else if (Array.isArray(data)) {
|
1036
|
+
return data.map((node) => flattenSingleNodeValues(node, options));
|
1037
|
+
} else {
|
1038
|
+
return flattenSingleNodeValues(data, options);
|
1039
|
+
}
|
1040
|
+
}
|
1041
|
+
function flattenSingleNodeValues(data, options = {}) {
|
1042
|
+
const { levels = 1 } = options;
|
1043
|
+
const properties = getPropertiesValue(data);
|
1044
|
+
return properties ? Object.fromEntries(
|
1045
|
+
Object.entries(properties).map(([id, parameter]) => {
|
1046
|
+
const value = getPropertyValue(parameter);
|
1047
|
+
if (levels > 0 && Array.isArray(value) && // In the future ASSET_PARAMETER_TYPE will be a nested data type
|
1048
|
+
(isNestedNodeType(parameter.type) || parameter.type === ASSET_PARAMETER_TYPE)) {
|
1049
|
+
const nestedOptions = { ...options, levels: levels - 1 };
|
1050
|
+
return [id, value.map((item) => flattenValues(item, nestedOptions))];
|
1051
|
+
} else {
|
1052
|
+
return [id, value];
|
1053
|
+
}
|
1054
|
+
})
|
1055
|
+
) : properties;
|
1056
|
+
}
|
1030
1057
|
|
1031
1058
|
// src/enhancement/walkNodeTree.ts
|
1032
1059
|
function walkNodeTree(node, visitor, options) {
|
@@ -1250,7 +1277,7 @@ function walkNodeTree(node, visitor, options) {
|
|
1250
1277
|
const propertyEntries = Object.entries(properties);
|
1251
1278
|
for (let propIndex = propertyEntries.length - 1; propIndex >= 0; propIndex--) {
|
1252
1279
|
const [propKey, propObject] = propertyEntries[propIndex];
|
1253
|
-
if (propObject.type
|
1280
|
+
if (!isNestedNodeType(propObject.type))
|
1254
1281
|
continue;
|
1255
1282
|
const blocks = (_b = propObject.value) != null ? _b : [];
|
1256
1283
|
for (let blockIndex = blocks.length - 1; blockIndex >= 0; blockIndex--) {
|
@@ -1276,6 +1303,9 @@ function walkNodeTree(node, visitor, options) {
|
|
1276
1303
|
}
|
1277
1304
|
} while (componentQueue.length > 0);
|
1278
1305
|
}
|
1306
|
+
function isNestedNodeType(type) {
|
1307
|
+
return type === CANVAS_BLOCK_PARAM_TYPE;
|
1308
|
+
}
|
1279
1309
|
function getBlockValue(component, parameterName) {
|
1280
1310
|
var _a;
|
1281
1311
|
const parameter = (_a = getPropertiesValue(component)) == null ? void 0 : _a[parameterName];
|
@@ -1567,6 +1597,31 @@ function getNounForLocation(parentLocation) {
|
|
1567
1597
|
}
|
1568
1598
|
return noun;
|
1569
1599
|
}
|
1600
|
+
function getNounForNode(node) {
|
1601
|
+
let noun = "parameters";
|
1602
|
+
if (isEntryData(node)) {
|
1603
|
+
noun = "fields";
|
1604
|
+
}
|
1605
|
+
return noun;
|
1606
|
+
}
|
1607
|
+
|
1608
|
+
// src/enhancement/findInNodeTree.ts
|
1609
|
+
function findParameterInNodeTree(data, predicate) {
|
1610
|
+
const results = [];
|
1611
|
+
walkNodeTree(data, ({ node, ancestorsAndSelf }) => {
|
1612
|
+
const parameters = getPropertiesValue(node);
|
1613
|
+
if (parameters) {
|
1614
|
+
Object.entries(parameters).filter(([key, field]) => predicate(field, key, node)).forEach(([key, field]) => {
|
1615
|
+
results.push({
|
1616
|
+
key,
|
1617
|
+
pointer: (ancestorsAndSelf.length === 1 ? "" : getComponentJsonPointer(ancestorsAndSelf)) + `/${getNounForNode(node)}/${key}`,
|
1618
|
+
parameter: field
|
1619
|
+
});
|
1620
|
+
});
|
1621
|
+
}
|
1622
|
+
});
|
1623
|
+
return results;
|
1624
|
+
}
|
1570
1625
|
|
1571
1626
|
// src/enhancement/localize.ts
|
1572
1627
|
function extractLocales({ component }) {
|
@@ -2188,6 +2243,22 @@ var createUniformApiEnhancer = ({ apiUrl }) => {
|
|
2188
2243
|
};
|
2189
2244
|
};
|
2190
2245
|
|
2246
|
+
// src/utils/entryConverter.ts
|
2247
|
+
function convertEntryToPutEntry(entry) {
|
2248
|
+
return {
|
2249
|
+
entry: {
|
2250
|
+
type: entry.entry.type,
|
2251
|
+
_dataResources: entry.entry._dataResources,
|
2252
|
+
_id: entry.entry._id,
|
2253
|
+
_name: entry.entry._name,
|
2254
|
+
_slug: entry.entry._slug,
|
2255
|
+
fields: entry.entry.fields
|
2256
|
+
},
|
2257
|
+
state: entry.state,
|
2258
|
+
projectId: entry.projectId
|
2259
|
+
};
|
2260
|
+
}
|
2261
|
+
|
2191
2262
|
// src/utils/getParameterAttributes.ts
|
2192
2263
|
var ATTRIBUTE_COMPONENT_ID = "data-uniform-component-id";
|
2193
2264
|
var ATTRIBUTE_PARAMETER_ID = "data-uniform-parameter-id";
|
@@ -2317,9 +2388,14 @@ function parseVariableExpression(serialized, onToken) {
|
|
2317
2388
|
continue;
|
2318
2389
|
}
|
2319
2390
|
if (char === variableSuffix && state === "variable") {
|
2391
|
+
if (serialized[index - 1] === escapeCharacter) {
|
2392
|
+
bufferEndIndex++;
|
2393
|
+
continue;
|
2394
|
+
}
|
2320
2395
|
state = "text";
|
2321
2396
|
if (bufferEndIndex > bufferStartIndex) {
|
2322
|
-
|
2397
|
+
const unescapedVariableName = serialized.substring(bufferStartIndex, bufferEndIndex).replace(/\\([${}])/g, "$1");
|
2398
|
+
if (handleToken(unescapedVariableName, "variable") === false) {
|
2323
2399
|
return tokenCount;
|
2324
2400
|
}
|
2325
2401
|
bufferStartIndex = bufferEndIndex + variableSuffix.length;
|
@@ -2379,7 +2455,7 @@ import { produce } from "immer";
|
|
2379
2455
|
|
2380
2456
|
// src/utils/variables/createVariableReference.ts
|
2381
2457
|
function createVariableReference(variableName) {
|
2382
|
-
return `\${${variableName}}`;
|
2458
|
+
return `\${${variableName.replace(/([${}])/g, "\\$1")}}`;
|
2383
2459
|
}
|
2384
2460
|
|
2385
2461
|
// src/utils/variables/bindVariablesToObject.ts
|
@@ -2463,6 +2539,9 @@ function handleRichTextNodeBinding(object, options) {
|
|
2463
2539
|
import { ApiClientError as ApiClientError2 } from "@uniformdev/context/api";
|
2464
2540
|
var CanvasClientError = ApiClientError2;
|
2465
2541
|
export {
|
2542
|
+
ASSETS_SOURCE_CUSTOM_URL,
|
2543
|
+
ASSETS_SOURCE_UNIFORM,
|
2544
|
+
ASSET_PARAMETER_TYPE,
|
2466
2545
|
ATTRIBUTE_COMPONENT_ID,
|
2467
2546
|
ATTRIBUTE_MULTILINE,
|
2468
2547
|
ATTRIBUTE_PARAMETER_ID,
|
@@ -2526,21 +2605,29 @@ export {
|
|
2526
2605
|
createVariableReference,
|
2527
2606
|
enhance,
|
2528
2607
|
extractLocales,
|
2608
|
+
findParameterInNodeTree,
|
2609
|
+
flattenValues,
|
2529
2610
|
generateComponentPlaceholderId,
|
2530
2611
|
generateHash,
|
2531
2612
|
getBlockValue,
|
2532
2613
|
getChannelName,
|
2533
2614
|
getComponentJsonPointer,
|
2534
2615
|
getComponentPath,
|
2616
|
+
getNounForLocation,
|
2617
|
+
getNounForNode,
|
2535
2618
|
getParameterAttributes,
|
2536
2619
|
getPropertiesValue,
|
2620
|
+
getPropertyValue,
|
2537
2621
|
isAddComponentMessage,
|
2538
2622
|
isAllowedReferrer,
|
2623
|
+
isAssetParamValue,
|
2624
|
+
isAssetParamValueItem,
|
2539
2625
|
isComponentActionMessage,
|
2540
2626
|
isComponentPlaceholderId,
|
2541
2627
|
isDismissPlaceholderMessage,
|
2542
2628
|
isEntryData,
|
2543
2629
|
isMovingComponentMessage,
|
2630
|
+
isNestedNodeType,
|
2544
2631
|
isOpenParameterEditorMessage,
|
2545
2632
|
isReadyMessage,
|
2546
2633
|
isReportRenderedCompositionsMessage,
|