UNPKG

@plattar/plattar-web

Version:

Module for interfacing with the Plattar Embeds and Web Viewers (https://www.plattar.com)

37 lines (31 loc) 699 B
const BaseElement = require("./base/base-element.js"); class ProductElement extends BaseElement { constructor() { super(); } get permissions() { return ["autoplay"]; } get elementType() { return "product"; } get coreAttributes() { return [{ key: "product-id", map: "product_id" }]; } get optionalAttributes() { return [{ key: "variation-id", map: "variation_id" }, { key: "variation-sku", map: "variationSku" }, { key: "show-ar", map: "show_ar" }]; } } module.exports = ProductElement;