HEX
Server: Apache
System: Linux www 5.10.0-10-amd64 #1 SMP Debian 5.10.84-1 (2021-12-08) x86_64
User: root (0)
PHP: 8.2.1
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals
Upload Files
File: /mnt/drbd/www/edenhouse/wp-content/plugins/essential-blocks/blocks/wrapper/src/attributes.js
import {
    WRAPPER_BACKGROUND,
    WRAPPER_WIDTH,
    WRAPPER_BORDER,
    WRAPPER_MARGIN,
    WRAPPER_PADDING,
    SHAPE_DIVIDER,
    SHAPE_DIVIDER_TOP,
    SHAPE_DIVIDER_BOTTOM,
    HEIGHT_UNIT_TYPES,
    WRAPPER_HEIGHT,
} from "./constants";

// import {
// 	generateResponsiveRangeAttributes,
// 	generateBackgroundAttributes,
// 	generateBorderShadowAttributes,
// 	generateDimensionsAttributes,
// } from "../../../util/helpers";

const {
    generateResponsiveRangeAttributes,
    generateBackgroundAttributes,
    generateBorderShadowAttributes,
    generateDimensionsAttributes,
    generateShapeDividerAttributes,
} = window.EBControls;

const attributes = {
    // responsive control attributes ⬇
    resOption: {
        type: "string",
        default: "Desktop",
    },
    // uniqueIdNumber attribute for making unique className
    uniqueIdNumber: {
        type: "number",
    },
    blockId: {
        type: "string",
    },
    blockRoot: {
        type: "string",
        default: "essential_block",
    },
    blockMeta: {
        type: "object",
    },
    wrapperAlign: {
        type: "string",
        default: "center",
    },
    isWrapperWidth: {
        type: "boolean",
        default: false,
    },
    useCustomHeight: {
        type: "boolean",
        default: false,
    },
    contentAlign: {
        type: "string",
        default: "flex-start",
    },
    // responsive range controller
    ...generateResponsiveRangeAttributes(WRAPPER_WIDTH),
    ...generateResponsiveRangeAttributes(WRAPPER_HEIGHT),
    // background control
    ...generateBackgroundAttributes(WRAPPER_BACKGROUND),
    // border shadow control
    ...generateBorderShadowAttributes(WRAPPER_BORDER),
    // dimension control
    ...generateDimensionsAttributes(WRAPPER_MARGIN, {
        top: 28,
        right: 0,
        bottom: 28,
        left: 0,
        isLinked: false,
    }),
    ...generateDimensionsAttributes(WRAPPER_PADDING, {
        top: 20,
        right: 20,
        bottom: 20,
        left: 20,
        isLinked: false,
    }),

    // shape divider
    ...generateShapeDividerAttributes(SHAPE_DIVIDER_TOP),
    ...generateShapeDividerAttributes(SHAPE_DIVIDER_BOTTOM),
    shapeDividerPosition: {
        type: "string",
        default: "top",
    },
};

export default attributes;