Home > @uniformdev/canvas-vue

canvas-vue package

Functions

FunctionDescription
convertComponentToProps(component)Converts a raw Canvas component instance to Vue component props format. This merges each parameter moved to the root object and removes the 'value' node, hugely simplifying rendering code. For example if the raw object has parameters.foo.value, then the final props have props.foo === raw.parameters.foo.value.
renderComponent({ component, resolveRenderer, indexInSlot, slotName, parentComponent, slotChildrenCount, emptyPlaceholder, })
useCompositionEventEffect({ enabled, projectId, compositionIdRef, effect, })A composable to manage a subscription to a realtime event on a composition
useUniformContextualEditing({ initialCompositionValue, enhance, })Adds contextual editing capability to a Uniform app. This hook is already integrated in <code><UniformComposition /></code>, you won't need to use it directly, unless you have a custom setup.
useUniformCurrentComponent()Gets the data of the closest <code><UniformComponent /></code> ancestor.
useUniformCurrentComposition()Gets the data of the closest <code><UniformComposition /></code> ancestor.

Interfaces

InterfaceDescription
PersonalizeComponent
TestComponent

Variables

VariableDescription
DefaultNotImplementedComponent
globalCompositionEnhancerInjectionKey
HeadingRichTextNode
LinkRichTextNode
ListItemRichTextNode
ListRichTextNode
ParagraphRichTextNode
QuoteRichTextNode
RootRichTextNode
TableCellRichTextNode
TableRichTextNode
TableRowRichTextNode
TextRichTextNode
UniformComponentAllows the rendering of a Canvas component instance (root or not), and its children if it has any. Note that the actual rendering happens inside <code><UniformSlot /></code>, this component only provides the services needed to achieve that. This component is used internally by <code><UniformComposition /></code>, which you should use in most cases.
UniformCompositionThe main component to render a Canvas composition. It renders the full tree of components, and provides some services to the children, such as <code>useUniformCurrentComposition</code>. It also takes care of enabling [Contextual Editing](https://docs.uniform.app/capabilities/composition/contextual-editing).
UniformPlaygroundPlayground where you can freely live preview your components and patterns.
UniformRichText
UniformRichTextNode
UniformSlotRenders the content of a Canvas composition's slot
UniformTextRenders text parameters. Offers inline editing capability out of the box.

Type Aliases

Type AliasDescription
ComponentPropsProps passed to a Canvas component implementation. TProps is the Canvas component's parameters object after all enhancers have been applied.
DefaultNotImplementedComponentProps
RenderRichTextComponentResolverFunction that maps a Rich Text node instance to its React component to render it. The resolver would commonly inspect the <code>type</code> of the component to decide.
ResolveRenderer
RichTextComponentProps
RichTextRendererComponent
UniformComponentProps
UniformCompositionProps
UniformPlaygroundProps
UniformRichTextNodeProps
UniformRichTextProps
UniformSlotProps
UniformTextProps
UseCompositionEventEffectOptions
UseUniformContextualEditingProps