schlechtenburg/packages/core/lib/block-helpers.ts

16 lines
238 B
TypeScript
Raw Normal View History

2021-03-08 15:29:35 +00:00
import { v4 as uuidv4 } from 'uuid';
export const generateBlockId = uuidv4;
export const model = {
prop: 'block',
event: 'update',
};
export const blockProps = {
blockId: {
type: String,
default: generateBlockId,
},
};