File "index.js"
Full Path: /home/warrior1/public_html/languages/wp-content/plugins/woocommerce/packages/woocommerce-blocks/assets/js/blocks/single-product/index.js
File size: 753 bytes
MIME-type: text/x-java
Charset: utf-8
/**
* External dependencies
*/
import { __ } from '@wordpress/i18n';
import { registerExperimentalBlockType } from '@woocommerce/block-settings';
/**
* Internal dependencies
*/
import edit from './edit';
import save from './save';
import attributes from './attributes';
import {
BLOCK_NAME,
BLOCK_TITLE,
BLOCK_ICON,
BLOCK_DESCRIPTION,
} from './constants';
const settings = {
title: BLOCK_TITLE,
icon: {
src: BLOCK_ICON,
},
category: 'woocommerce',
keywords: [ __( 'WooCommerce', 'woocommerce' ) ],
description: BLOCK_DESCRIPTION,
supports: {
align: [ 'wide', 'full' ],
html: false,
},
example: {
attributes: {
isPreview: true,
},
},
attributes,
edit,
save,
};
registerExperimentalBlockType( BLOCK_NAME, settings );