UNPKG

@ima/plugin-atoms

Version:
159 lines (158 loc) 3.18 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { enumerable: true, get: all[name] }); } _export(exports, { DIV_ATTRIBUTES: function() { return DIV_ATTRIBUTES; }, HEADLINE_ATTRIBUTES: function() { return HEADLINE_ATTRIBUTES; }, IFRAME_ATTRIBUTES: function() { return IFRAME_ATTRIBUTES; }, IMAGE_ATTRIBUTES: function() { return IMAGE_ATTRIBUTES; }, LAYOUT: function() { return LAYOUT; }, LINK_ATTRIBUTES: function() { return LINK_ATTRIBUTES; }, LIST_ATTRIBUTES: function() { return LIST_ATTRIBUTES; }, LIST_ITEM_ATTRIBUTES: function() { return LIST_ITEM_ATTRIBUTES; }, LOADING: function() { return LOADING; }, PARAGRAPH_ATTRIBUTES: function() { return PARAGRAPH_ATTRIBUTES; } }); const LAYOUT = { RESPONSIVE: 'responsive', FILL: 'fill' }; const LOADING = { LAZY: 'lazy', EAGER: 'eager' }; // https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement const GLOBAL_ATTRIBUTES = [ 'accesskey', 'autocapitalize', 'autofocus', //'class', react className 'contenteditable', 'dir', 'draggable', 'enterkeyhint', 'hidden', 'id', 'inert', 'inputmode', 'is', 'itemid', 'itemprop', 'itemref', 'itemscope', 'itemtype', 'lang', 'nonce', 'popover', 'slot', 'spellcheck', 'style', 'tabindex', 'title', 'translate' ]; const LINK_ATTRIBUTES = [ ...GLOBAL_ATTRIBUTES, //'charset', deprectecated //'coords', deprectecated 'download', 'href', 'hreflang', //'name', deprectecated 'ping', 'referrerpolicy', 'rel', //'rev', deprectecated 'shape', 'target', 'type' ]; const IFRAME_ATTRIBUTES = [ ...GLOBAL_ATTRIBUTES, //'align', deprectecated 'allow', 'allowfullscreen', //'allowpaymentrequest', deprectecated //'frameborder', deprectecated 'height', 'loading', //'longdesc', deprectecated //'marginheight', deprectecated //'marginwidth', deprectecated 'name', 'referrerpolicy', 'sandbox', //'scrolling', deprectecated 'src', 'srcdoc', 'width' ]; const IMAGE_ATTRIBUTES = [ ...GLOBAL_ATTRIBUTES, //'align', deprectecated 'alt', //'border', deprectecated 'crossorigin', 'decoding', 'fetchpriority', 'height', //'hspace', deprectecated 'ismap', 'loading', //'longdesc', deprectecated //'name', deprectecated 'referrerpolicy', 'sizes', 'src', 'srcset', 'usemap', //'vspace', deprectecated 'width' ]; const LIST_ATTRIBUTES = [ ...GLOBAL_ATTRIBUTES, 'compact', 'type' ]; const LIST_ITEM_ATTRIBUTES = [ ...GLOBAL_ATTRIBUTES, 'type', 'value' ]; const HEADLINE_ATTRIBUTES = [ ...GLOBAL_ATTRIBUTES ]; const DIV_ATTRIBUTES = [ ...GLOBAL_ATTRIBUTES ]; const PARAGRAPH_ATTRIBUTES = [ ...GLOBAL_ATTRIBUTES ]; //# sourceMappingURL=constants.js.map