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.
- package/README.md +93 -53
- package/definitions.schema.json +112 -26
- package/dist/cli.js +25 -0
- package/dist/copy-media-CllRyMqQ.js +21 -0
- package/dist/copy-media.d.ts +8 -0
- package/dist/esbuild.d.ts +3 -0
- package/dist/esbuild.js +10 -0
- package/dist/index.d.ts +2 -1
- package/dist/morphic/MorphicBlocks.d.ts +180 -59
- package/dist/morphic/block-view.d.ts +36 -0
- package/dist/morphic/code-editor.d.ts +30 -4
- package/dist/morphic/constants.d.ts +6 -0
- package/dist/morphic/element-types.d.ts +11 -3
- package/dist/morphic/resize.d.ts +7 -2
- package/dist/morphic/styles.d.ts +26 -3
- package/dist/morphic/syntax-highlight.d.ts +13 -0
- package/dist/morphic/template-codegen.d.ts +5 -1
- package/dist/morphic/template.d.ts +11 -1
- package/dist/morphic/toolbar.d.ts +13 -11
- package/dist/morphic/toolbox-canvas.d.ts +75 -5
- package/dist/morphic/types.d.ts +351 -74
- package/dist/morphic/validate-definitions.d.ts +5 -3
- package/dist/morphic/value-format.d.ts +8 -0
- package/dist/morphic/value-type.d.ts +13 -0
- package/dist/morphic/view-resolver.d.ts +5 -0
- package/dist/morphic-blocks.js +3671 -2420
- package/dist/morphic-blocks.umd.cjs +39 -30
- package/dist/plugin-h3QH8ods.js +19 -0
- package/dist/plugin.d.ts +9 -0
- package/dist/rollup.d.ts +3 -0
- package/dist/rollup.js +10 -0
- package/dist/rspack.d.ts +3 -0
- package/dist/rspack.js +10 -0
- package/dist/vite.d.ts +3 -0
- package/dist/vite.js +10 -0
- package/dist/webpack.d.ts +3 -0
- package/dist/webpack.js +10 -0
- package/package.json +42 -8
|
@@ -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;
|