canvas-vue package
Functions
|
Function |
Description |
|---|---|
|
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. | |
|
useUniformContextualEditing({ initialCompositionValue, enhance, }, input) |
Adds contextual editing capability to a Uniform app. This hook is already integrated in |
|
useUniformContextualEditingState({ global: isGlobal, }, input) |
Returns the state of contextual editing, when the app is open inside Canvas Editor. This hook can be used to improve the editing experience of your team. For example: You can use |
|
Gets the data of the closest | |
|
Gets the data of the closest |
Interfaces
|
Interface |
Description |
|---|---|
Variables
|
Variable |
Description |
|---|---|
|
Allows the rendering of a Canvas component instance (root or not), and its children if it has any. Note that the actual rendering happens inside | |
|
The main component to render a Canvas composition. It renders the full tree of components, and provides some services to the children, such as | |
|
Playground where you can freely live preview your components and patterns. | |
|
Renders the content of a Canvas composition's slot | |
|
Renders text parameters. Offers inline editing capability out of the box. |
Type Aliases
|
Type Alias |
Description |
|---|---|
|
Props passed to a Canvas component implementation. TProps is the Canvas component's parameters object after all enhancers have been applied. | |
|
Function that maps a Rich Text node instance to its React component to render it. The resolver would commonly inspect the | |