This repository was archived by the owner on Feb 27, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 8 files changed +27
-42
lines changed
components/blocks/Gutenberg Expand file tree Collapse file tree 8 files changed +27
-42
lines changed Original file line number Diff line number Diff line change @@ -6,9 +6,9 @@ import PropTypes from 'prop-types'
6
6
* A custom ACF Block for displaying accordions.
7
7
*
8
8
* @author WebDevStudios
9
- * @param props. props.props
10
- * @param props.props. props.props
11
- * @param { object } props.props The component attributes as props .
9
+ * @param { object } props The component props.
10
+ * @param { object } props.props The component attributes as props.
11
+ * @return { Element } The Accordion component .
12
12
*/
13
13
export default function BlockAccordions ( { props} ) {
14
14
const {
Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ import PropTypes from 'prop-types'
13
13
* @param {string } props.linkTarget The target for the link.
14
14
* @param {string } props.rel The rel attribute for the link.
15
15
* @param {string } props.text The link label.
16
- * @param {string } props.title The target for the link.
17
16
* @param {string } props.url The link for the button.
18
17
* @return {Element } The Button component.
19
18
*/
@@ -46,6 +45,5 @@ BlockButton.propTypes = {
46
45
linkTarget : PropTypes . string ,
47
46
rel : PropTypes . string ,
48
47
text : PropTypes . string ,
49
- title : PropTypes . string ,
50
48
url : PropTypes . string
51
49
}
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import PropTypes from 'prop-types'
7
7
* @author WebDevStudios
8
8
* @param {object } props The component props.
9
9
* @param {object } props.attributes Component attributes.
10
+ * @return {Element } The GravityForm component.
10
11
*/
11
12
export default function BlockGravityForm ( { attributes} ) {
12
13
return < GravityForm { ...attributes } />
Original file line number Diff line number Diff line change @@ -10,22 +10,10 @@ import PropTypes from 'prop-types'
10
10
* The core Code block from Gutenberg.
11
11
*
12
12
* @author WebDevStudios
13
- * @param media.media
14
- * @param {object } media Media props.
15
- * @param {string } media.anchor The anchor/id of the block.
16
- * @param {string } media.mediaAlt The image alt text.
17
- * @param {string } media.caption The image caption.
18
- * @param {string } media.className The image class.
19
- * @param {string } media.mediaId The image ID.
20
- * @param {string } media.href The URL of the link.
21
- * @param {string } media.linkTarget Target for the link.
22
- * @param {string } media.linkClass Class for the link.
23
- * @param {string } media.rel The rel attribute for the link.
24
- * @param {string } media.sizeSlug The WP image size.
25
- * @param {string } media.mediaUrl The full URL path of the image.
26
- * @param {string } media.mediaPosition The position of the image, left or right.
27
- * @param {Array } media.innerBlocks The array of inner blocks to display.
28
- * @return {Element } The Code component.
13
+ * @param {object } props The component properties.
14
+ * @param {object } props.media Media props.
15
+ * @param {Array } props.innerBlocks The array of inner blocks to display.
16
+ * @return {Element } The Code component.
29
17
*/
30
18
export default function BlockMediaText ( { media, innerBlocks} ) {
31
19
return (
Original file line number Diff line number Diff line change @@ -6,9 +6,9 @@ import PropTypes from 'prop-types'
6
6
* A custom ACF Block for displaying a carousel of cards.
7
7
*
8
8
* @author WebDevStudios
9
- * @param props.props.props
10
- * @param props.props. props.props
11
- * @param { object } props.props The component attributes as props .
9
+ * @param { object } props The component properties.
10
+ * @param { object } props.props The component attributes as props.
11
+ * @return { Element } The NetflixCarousel component .
12
12
*/
13
13
export default function BlockNetflixCarousel ( { props} ) {
14
14
const {
Original file line number Diff line number Diff line change @@ -6,9 +6,9 @@ import PropTypes from 'prop-types'
6
6
* The core Shortcode block from Gutenberg.
7
7
*
8
8
* @author WebDevStudios
9
- * @param props. props
10
- * @param {object } props The component attributes as props.
11
- * @return {Element } The Shortcode component.
9
+ * @param { object } props The component attributes as props.
10
+ * @param {object } props.props The component props.
11
+ * @return {Element } The Shortcode component.
12
12
*/
13
13
export default function BlockShortcode ( { props} ) {
14
14
const { content} = props
Original file line number Diff line number Diff line change @@ -7,24 +7,22 @@ import PropTypes from 'prop-types'
7
7
* The core Paragraph block from Gutenberg.
8
8
*
9
9
* @author WebDevStudios
10
- * @param {object } props The component props.
11
- * @param {string } props.className Optional classnames.
12
- * @param {string } props.align Optional alignment style.
13
- * @param {string } props.anchor Optional anchor/id.
14
- * @param props.head
15
- * @param props.body
16
- * @param props.foot
17
- * @param props.caption
18
- * @param {string } props.content The content of the block.
10
+ * @param {object } props The component props.
11
+ * @param {string } props.anchor Optional anchor/id.
12
+ * @param {Array } props.body The body blocks.
13
+ * @param {string } props.caption The caption.
14
+ * @param {string } props.className Optional classnames.
15
+ * @param {Array } props.foot The foot blocks
16
+ * @param {Array } props.head The head blocks.
19
17
* @return {Element } The RichText component.
20
18
*/
21
19
export default function BlockTable ( {
22
20
anchor,
23
- head,
24
21
body,
25
- foot,
26
22
caption,
27
- className
23
+ className,
24
+ foot,
25
+ head
28
26
} ) {
29
27
return (
30
28
< Table
Original file line number Diff line number Diff line change @@ -5,9 +5,9 @@ import PropTypes from 'prop-types'
5
5
* The core YouTube embed block from Gutenberg.
6
6
*
7
7
* @author WebDevStudios
8
- * @param props. props
9
- * @param {object } props The component attributes as props.
10
- * @return {Element } The YouTube component.
8
+ * @param { object } props The component attributes as props.
9
+ * @param {object } props.props The props object .
10
+ * @return {Element } The YouTube component.
11
11
*/
12
12
export default function BlockVideoEmbed ( { props} ) {
13
13
const {
You can’t perform that action at this time.
0 commit comments