-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #56 from studiopress/fix/email-same-field
Fix bug with same field name, add more e2e tests
- Loading branch information
Showing
24 changed files
with
467 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,6 +53,7 @@ | |
"plugin:jest/all" | ||
], | ||
"rules": { | ||
"jest/expect-expect": "off", | ||
"jest/lowercase-name": [ | ||
"error", | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,41 @@ | ||
## Changelog ## | ||
|
||
### 1.0.0 - 2020-09-01 ### | ||
### 1.1.0 - 2020-01-27 ### | ||
|
||
Plugin released! | ||
New, more effortless editor, with undo/redo and separate editor/inspector | ||
|
||
* Easily create custom blocks | ||
* 13 fields to add | ||
* Simple templating, with PHP files | ||
* Template and onboarding notices, restore e2e test. [PR 55](https://github.com/studiopress/genesis-custom-blocks/pull/55) | ||
* Add functionality to the duplicate button. [PR 53](https://github.com/studiopress/genesis-custom-blocks/pull/53) | ||
* Auto-slug block and field names, make Repeater work. [PR 51](https://github.com/studiopress/genesis-custom-blocks/pull/51) | ||
* Add fields to the correct location, allow creating new block. [PR 48](https://github.com/studiopress/genesis-custom-blocks/pull/48) | ||
* Add editor field UI component. [PR 44](https://github.com/studiopress/genesis-custom-blocks/pull/44) | ||
* Add the 'Block Settings' panel. [PR 43](https://github.com/studiopress/genesis-custom-blocks/pull/43) | ||
* Edit Block UI: Render block field. [PR 41](https://github.com/studiopress/genesis-custom-blocks/pull/41) | ||
|
||
### 1.0.1 - 2020-09-01 ### | ||
### 1.0.3 - 2020-10-21 ### | ||
|
||
Fix an error if Block Lab 1.5.6 is also active | ||
Allow more text and improve activation experience | ||
|
||
* Fixes an error with Block Lab 1.5.6, where it defines functions twice | ||
* Error does not occur with latest Block Lab | ||
* Allow fields with a huge amount of text. [PR 39](https://github.com/studiopress/genesis-custom-blocks/pull/39) | ||
* Ensure that all submenus appear on first installation. [PR 40](https://github.com/studiopress/genesis-custom-blocks/pull/40) | ||
|
||
### 1.0.2 - 2020-09-16 ### | ||
|
||
Fix a notice from the Textarea field | ||
|
||
* Fixes a notice from the Textarea field having the wrong type. [PR 33](https://github.com/studiopress/genesis-custom-blocks/pull/33) | ||
|
||
### 1.0.3 - 2020-10-21 ### | ||
### 1.0.1 - 2020-09-01 ### | ||
|
||
Allow more text and improve activation experience | ||
Fix an error if Block Lab 1.5.6 is also active | ||
|
||
* Allow fields with a huge amount of text. [PR 39](https://github.com/studiopress/genesis-custom-blocks/pull/39) | ||
* Ensure that all submenus appear on first installation. [PR 40](https://github.com/studiopress/genesis-custom-blocks/pull/40) | ||
* Fixes an error with Block Lab 1.5.6, where it defines functions twice | ||
* Error does not occur with latest Block Lab | ||
|
||
### 1.0.0 - 2020-09-01 ### | ||
|
||
Plugin released! | ||
|
||
* Easily create custom blocks | ||
* 13 fields to add | ||
* Simple templating, with PHP files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
/** | ||
* External dependencies | ||
*/ | ||
import * as React from 'react'; | ||
|
||
/** | ||
* WordPress dependencies | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/** | ||
* External dependencies | ||
*/ | ||
import * as React from 'react'; | ||
|
||
/** | ||
* Internal dependencies | ||
*/ | ||
import { Input } from '../'; | ||
|
||
/** | ||
* @typedef {Object} EmailProps The component props. | ||
* @property {Object} setting This setting. | ||
* @property {string|undefined} value The setting value. | ||
* @property {Function} handleOnChange Handles a change in this setting. | ||
*/ | ||
|
||
/** | ||
* The number component. | ||
* | ||
* @param {EmailProps} props The component props. | ||
* @return {React.ReactElement} The number component. | ||
*/ | ||
const Email = ( props ) => { | ||
return <Input { ...props } type="email" />; | ||
}; | ||
|
||
export default Email; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.