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/google-map/src/attributes.js
import { wrapMarginConst, wrapPaddingConst, WrpBdShadowConst, WrpBgConst } from "./constants";

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

import * as typoPrefixs from "./constants/typographyConstants";

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",
    },
    searchAddress: {
        type: "string",
        default: "New York, NY, USA",
    },
    latitude: {
        type: "string",
        default: "40.7127753",
    },
    longitude: {
        type: "string",
        default: "-74.0059728",
    },
    mapType: {
        type: "string",
        default: "roadmap",
    },
    mapZoom: {
        type: "string",
        default: "13",
    },
    mapHeight: {
        type: "string",
        default: "400",
    },
    marker: {
        type: "array",
        default: [],
    },
    titleColor: {
        type: "string",
        default: "var(--eb-global-heading-color)",
    },
    titleHoverColor: {
        type: "string",
        default: "var(--eb-global-link-color)",
    },
    descColor: {
        type: "string",
        default: "var(--eb-global-text-color)",
    },
    descHoverColor: {
        type: "string",
    },
    imageSize: {
        type: "number",
        default: 32,
    },
    googlemMapStyle: {
        type: "string",
        default: "standard",
    },
    googleMapStyle: {
        type: "string",
        default: "standard",
    },
    snazzyMapStyle: {
        type: "string",
        default: "default",
    },
    themeSource: {
        type: "string",
        default: "google_theme",
    },
    // dimensions Control related Attributes start
    ...generateDimensionsAttributes(wrapMarginConst),
    ...generateDimensionsAttributes(wrapPaddingConst),
    ...generateBackgroundAttributes(WrpBgConst),
    ...generateBorderShadowAttributes(WrpBdShadowConst),
    // typography attributes ⬇
    ...generateTypographyAttributes(Object.values(typoPrefixs)),
    cover: {
        type: "string",
        default: "",
    },
};

export default attributes;