Update and simplify build process
This commit is contained in:
28
src/block.json
Normal file
28
src/block.json
Normal file
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||
"apiVersion": 2,
|
||||
"name": "cognito-forms/cognito-embed",
|
||||
"title": "Cognito Forms",
|
||||
"description": "Easily build powerful forms.",
|
||||
"category": "embed",
|
||||
"supports": {
|
||||
"html": false
|
||||
},
|
||||
"attributes": {
|
||||
"formId": {
|
||||
"type": "string"
|
||||
},
|
||||
"seamlessEmbedCode": {
|
||||
"type": "string"
|
||||
},
|
||||
"iframeEmbedCode": {
|
||||
"type": "string"
|
||||
},
|
||||
"ampEmbedCode": {
|
||||
"type": "string"
|
||||
},
|
||||
"embedMode": {
|
||||
"type": "number"
|
||||
}
|
||||
}
|
||||
}
|
@@ -3,15 +3,20 @@
|
||||
*/
|
||||
|
||||
import { registerBlockType } from '@wordpress/blocks';
|
||||
|
||||
import { IBlockAttributes } from './types';
|
||||
|
||||
/**
|
||||
* Internal dependencies
|
||||
*/
|
||||
* Internal dependencies
|
||||
*/
|
||||
import Edit from './edit';
|
||||
import Save from './save';
|
||||
|
||||
/**
|
||||
* Stylesheets
|
||||
*/
|
||||
import './styles/editor.scss';
|
||||
import './styles/style.scss';
|
||||
|
||||
import { ReactComponent as CogIcon } from './assets/cogicon.svg';
|
||||
|
||||
registerBlockType<IBlockAttributes>( 'cognito-forms/cognito-embed', {
|
||||
|
Reference in New Issue
Block a user