Update and simplify build process

This commit is contained in:
2022-02-10 18:01:32 -05:00
parent 748af6a14f
commit d7ee54fcec
9 changed files with 1247 additions and 133 deletions

28
src/block.json Normal file
View 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"
}
}
}

View File

@@ -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', {