1.3.1 • Published 3 years ago

@sedona-cms/blocks-meta-loader v1.3.1

Weekly downloads
21
License
MIT
Repository
github
Last release
3 years ago

Blocks Meta Loader

NPM publish

Loads meta information from Vue components for Sedona CMS block editor.

May be used for component libraries that may be used in admin UI Sedona CMS.

General

The meta information of the block is not necessary to specifically describe. It will be automatically received when parsing the component file. But it can be supplemented in a custom section in the Vue file or in a separate JSON file.

Example

will be soon

Install

npm i -D @sedona-cms/blocks-meta-loader

Usage

import { BlocksMetaLoader, BlockMeta } from '@sedona-cms/blocks-meta-loader'

const loader = new BlocksMetaLoader()
const blocksMeta: BlockMeta[] = loader.getMetaFromFile('<path-to-vue-component>')

/// blocksMeta may be looks like this

`Array [
  Object {
     "group": "general",
     "name": "<Block Name>",
     "props": Object {
       "color": Object {
         "default": "",
         "required": true,
         "title": "Color",
         "type": "string",
       },
     },
     "title": "Pretty Block Name",
   },]`
1.3.1

3 years ago

1.3.0

3 years ago

1.2.9

3 years ago

1.2.8

4 years ago

1.2.7

4 years ago

1.2.6

4 years ago

1.2.5

4 years ago

1.2.4

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.0

4 years ago

1.2.1

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago