Skip to content

Commit

Permalink
v1.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
ZafarKamal123 committed Feb 25, 2020
1 parent c84e4d9 commit 18b73dc
Show file tree
Hide file tree
Showing 9 changed files with 2,931 additions and 16 deletions.
811 changes: 810 additions & 1 deletion dist/blocks.build.js

Large diffs are not rendered by default.

1,283 changes: 1,282 additions & 1 deletion dist/blocks.editor.build.css

Large diffs are not rendered by default.

803 changes: 802 additions & 1 deletion dist/blocks.style.build.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Description: The Next Generation WordPress Form Builder. Build forms directly within Gutenberg editor live. Add & arrange form fields like blocks.
* Author: munirkamal
* Author URI: https://cakewp.com/
* Version: 1.0.6
* Version: 1.0.7
* License: GPLv2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.txt
*
Expand Down
7 changes: 7 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,13 @@ We appreciate all contributions and don't want a wall of rules to get in the way

For more information, visit [Gutenberg Forms](https://gutenbergforms.com).

= 1.0.7 =

- Added: Form Theme Options
- Improved: form columns can now be changed after selection
- Improved: Better organized options for form
- Improved: Number field

= 1.0.6 (22 Feb 2020) =

- Added: Custom Pattern Option for Messages,Text,Phone,Name fields
Expand Down
9 changes: 8 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: munirkamal
Tags: wordpress form, gutenberg form, contact form, gutenberg block, contact form plugin, forms, form builder, custom form, contact button, contact me, custom contact form, form manager, form, forms builder, forms creator, captcha, recaptcha, Akismet, email form, web form, feedback form, email submit form, message form, contact form block, wordpress form plugin
Requires at least: 4.8
Tested up to: 5.3
Stable tag: 1.0.6
Stable tag: 1.0.7
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -58,6 +58,13 @@ For basic usage, you can also have a look at the plugin website [Gutenberg Forms
For more information, visit [Gutenberg Forms](https://gutenbergforms.com).


= 1.0.7 =

- Added: Form Theme Options
- Improved: form columns can now be changed after selection
- Improved: Better organized options for form
- Improved: Number field

= 1.0.6 (22 Feb 2020) =

- Added: Custom Pattern Option for Messages,Text,Phone,Name fields
Expand Down
24 changes: 17 additions & 7 deletions src/Form Childs/form-column/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ import Introduction from "./components/introduction";
import { createBlock } from "@wordpress/blocks";
import { map } from "lodash";

const { replaceInnerBlocks } = wp.data.dispatch("core/block-editor");
const { replaceInnerBlocks, selectBlock } = wp.data.dispatch(
"core/block-editor"
);
const { getBlock } = wp.data.select("core/block-editor");

function edit(props) {
Expand Down Expand Up @@ -59,13 +61,21 @@ function edit(props) {

const currentInnerBlocks = getBlock(props.clientId).innerBlocks;

for (let i = columns; i < c; ++i) {
currentInnerBlocks.push(
...createBlocksFromInnerBlocksTemplate([["cwp/column", {}]])
);
if (c > currentInnerBlocks.length - 1) {
for (let i = columns; i < c; ++i) {
currentInnerBlocks.push(
...createBlocksFromInnerBlocksTemplate([
["cwp/column", {}]
])
);
}
replaceInnerBlocks(props.clientId, currentInnerBlocks);
selectBlock(props.clientId);
} else {
currentInnerBlocks.pop();
replaceInnerBlocks(props.clientId, currentInnerBlocks);
selectBlock(props.clientId);
}

replaceInnerBlocks(props.clientId, currentInnerBlocks);
}}
value={columns}
/>
Expand Down
2 changes: 1 addition & 1 deletion src/block/Inspector.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ function Inspector(prop) {
/>
</div>
</PanelBody>
<PanelBody initialOpen={false} icon="admin-settings" title="General">
<PanelBody initialOpen={true} icon="admin-settings" title="General">
<div className="cwp-option">
<PanelRow>
<h3>Disable Submit Button</h3>
Expand Down
6 changes: 3 additions & 3 deletions src/block/block.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,9 @@ registerBlockType("cwp/block-gutenberg-forms", {
theme: {
type: "object",
default: {
accentColor: "rgb(49, 49, 49)",
textColor: "rgb(49, 49, 49)",
fieldBackgroundColor: "rgb(238, 238, 238)"
accentColor: "",
textColor: "",
fieldBackgroundColor: ""
}
}
},
Expand Down

0 comments on commit 18b73dc

Please sign in to comment.