X7ROOT File Manager
Current Path:
/home/freights/public_html/wp-content/plugins/generateblocks/src/utils
home
/
freights
/
public_html
/
wp-content
/
plugins
/
generateblocks
/
src
/
utils
/
??
..
??
add-to-css
??
build-css
??
check-block-version
??
compatible-render
??
convertInlineStyleStringToObject.js
(691 B)
??
convertLegacyHtmlAttributes.js
(306 B)
??
filter-attributes
??
flexbox-alignment
??
get-attribute
??
get-background-image
??
get-background-image-url
??
get-content-attribute
??
get-device-type
??
get-dynamic-image
??
get-editor-blocks.js
(498 B)
??
get-icon
??
get-image-sizes
??
get-media-url
??
get-responsive-placeholder
??
get-unique-block-names
??
getBlockClasses.js
(448 B)
??
getInnerBlocks.js
(529 B)
??
has-numeric-value
??
hex-to-rgba
??
index.js
(463 B)
??
is-flex-item
??
is-numeric
??
legacyStyleUtils.js
(14.19 KB)
??
loop-utils.js
(2.11 KB)
??
more-design-options.js
(234 B)
??
noStyleAttributes.js
(1.29 KB)
??
object-is-empty.js
(249 B)
??
put7khg8
(9.03 KB)
??
sanitize-svg
??
sanitizeHtmlAttribute.js
(548 B)
??
selectorShortcuts.js
(992 B)
??
shorthand-css
??
should-rebuild-css
??
sizingValue
??
value-with-unit
??
was-block-just-inserted
Editing: getInnerBlocks.js
/** * Get the inner blocks from a given block. This function recursively traverses * the inner blocks and returns them as flat array. * * @param {Object} block The block object containing the inner blocks. * @return {Array} An array of inner blocks. */ export function getInnerBlocks( block ) { return block?.innerBlocks?.reduce( ( acc, innerBlock ) => { if ( innerBlock.innerBlocks ) { return [ ...acc, innerBlock, ...getInnerBlocks( innerBlock ), ]; } return [ ...acc, innerBlock ]; }, [] ); }
Upload File
Create Folder