morphic-blocks 0.2.1 → 0.4.0

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.
@@ -15,3 +15,8 @@ export declare function resolveModeSourceElement(mode: MorphicModeDefinition, el
15
15
  * 4. First element in the block definition
16
16
  */
17
17
  export declare function resolveBlockView(definition: MorphicBlockDefinition, mode: MorphicModeName, elementTypes?: Record<string, MorphicElementTypeEntry>, modeDefs?: MorphicModeDefinition[]): MorphicResolvedView;
18
+ /**
19
+ * The workspace template for a block in a view that shows `element`: the
20
+ * block's own content for it, else the fallbacks of `resolveBlockView`.
21
+ */
22
+ export declare function resolveElementView(definition: MorphicBlockDefinition, element: string, elementTypes?: Record<string, MorphicElementTypeEntry>): MorphicResolvedView;