ocrmnav
Version:
DevStack - The Complete Developer Toolkit - Virtual file system, workflow automation, and more than 65+ other development tools / features in one seamless extension. Cutting down dev times never before seen.
618 lines (551 loc) • 15.2 kB
JavaScript
;
exports.id = 97;
exports.ids = [97];
exports.modules = {
/***/ 1524:
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "default": () => (/* binding */ hasInterpolation)
/* harmony export */ });
/* harmony import */ var _hasLessInterpolation_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1525);
/* harmony import */ var _hasPsvInterpolation_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1526);
/* harmony import */ var _hasScssInterpolation_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1527);
/* harmony import */ var _hasTplInterpolation_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1528);
/**
* Check whether a string has interpolation
*
* @param {string} string
* @returns {boolean} If `true`, a string has interpolation
*/
function hasInterpolation(string) {
// SCSS or Less interpolation
if (
(0,_hasLessInterpolation_mjs__WEBPACK_IMPORTED_MODULE_0__["default"])(string) ||
(0,_hasScssInterpolation_mjs__WEBPACK_IMPORTED_MODULE_2__["default"])(string) ||
(0,_hasTplInterpolation_mjs__WEBPACK_IMPORTED_MODULE_3__["default"])(string) ||
(0,_hasPsvInterpolation_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])(string)
) {
return true;
}
return false;
}
/***/ }),
/***/ 1525:
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "default": () => (/* binding */ hasLessInterpolation)
/* harmony export */ });
const HAS_LESS_INTERPOLATION = /@\{.+?\}/;
/**
* Check whether a string has less interpolation
*
* @param {string} string
* @returns {boolean} If `true`, a string has less interpolation
*/
function hasLessInterpolation(string) {
return HAS_LESS_INTERPOLATION.test(string);
}
/***/ }),
/***/ 1526:
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "default": () => (/* binding */ hasPsvInterpolation)
/* harmony export */ });
const HAS_PSV_INTERPOLATION = /\$\(.+?\)/;
/**
* Check whether a string has postcss-simple-vars interpolation
*
* @param {string} string
* @returns {boolean}
*/
function hasPsvInterpolation(string) {
return HAS_PSV_INTERPOLATION.test(string);
}
/***/ }),
/***/ 1527:
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "default": () => (/* binding */ hasScssInterpolation)
/* harmony export */ });
const HAS_SCSS_INTERPOLATION = /#\{.+?\}/s;
/**
* Check whether a string has scss interpolation
*
* @param {string} string
* @returns {boolean}
*/
function hasScssInterpolation(string) {
return HAS_SCSS_INTERPOLATION.test(string);
}
/***/ }),
/***/ 1528:
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "default": () => (/* binding */ hasTplInterpolation)
/* harmony export */ });
const HAS_TPL_INTERPOLATION = /\{.+?\}/s;
/**
* Check whether a string has JS template literal interpolation or HTML-like template
*
* @param {string} string
* @returns {boolean} If `true`, a string has template literal interpolation
*/
function hasTplInterpolation(string) {
return HAS_TPL_INTERPOLATION.test(string);
}
/***/ }),
/***/ 1533:
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/**
* Contains helpers for working with vendor prefixes.
*
* Copied from https://github.com/postcss/postcss/commit/777c55b5d2a10605313a4972888f4f32005f5ac2
*
* @namespace vendor
*/
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
/**
* Returns the vendor prefix extracted from an input string.
*
* @param {string} prop String with or without vendor prefix.
*
* @returns {string} vendor prefix or empty string
*
* @example
* vendor.prefix('-moz-tab-size') //=> '-moz-'
* vendor.prefix('tab-size') //=> ''
*/
prefix(prop) {
const match = prop.match(/^(-\w+-)/);
if (match) {
return match[0] || '';
}
return '';
},
/**
* Returns the input string stripped of its vendor prefix.
*
* @param {string} prop String with or without vendor prefix.
*
* @returns {string} String name without vendor prefixes.
*
* @example
* vendor.unprefixed('-moz-tab-size') //=> 'tab-size'
*/
unprefixed(prop) {
return prop.replace(/^-\w+-/, '');
},
});
/***/ }),
/***/ 1560:
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _vendor_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1533);
/**
* Extract each list using the internal API of Autoprefixer 10.2.5.
*
* @see https://github.com/postcss/autoprefixer/tree/10.2.5
*
* @example
* const autoprefixer = require('autoprefixer');
* const Browsers = require('autoprefixer/lib/browsers');
* const Prefixes = require('autoprefixer/lib/prefixes');
* const utils = require('autoprefixer/lib/utils');
*
* const prefixes = new Prefixes(autoprefixer.data.prefixes, new Browsers(autoprefixer.data.browsers, []));
*/
/**
* @example
* Object.keys(prefixes.remove).filter((s) => s.startsWith('@'));
*/
const AT_RULES = new Set([
'@-moz-keyframes',
'@-moz-document',
'@-ms-keyframes',
'@-ms-viewport',
'@-o-keyframes',
'@-o-viewport',
'@-webkit-keyframes',
'@-webkit-viewport',
]);
/**
* @example
* prefixes.remove.selectors.map((s) => s.prefixed);
*/
const SELECTORS = new Set([
':-moz-any-link',
':-moz-full-screen',
':-moz-placeholder',
':-moz-placeholder-shown',
':-moz-read-only',
':-moz-read-write',
':-ms-fullscreen',
':-ms-input-placeholder',
':-webkit-any-link',
':-webkit-full-screen',
'::-moz-placeholder',
'::-moz-selection',
'::-ms-input-placeholder',
'::-webkit-backdrop',
'::-webkit-input-placeholder',
]);
/**
* @example
* Object.entries(autoprefixer.data.prefixes)
* .filter(([key, value]) => !value.selector && !value.props && !key.startsWith('@'))
* .map(([key, value]) => key);
*/
const PROPERTIES = new Set([
'align-content',
'align-items',
'align-self',
'animation',
'animation-delay',
'animation-direction',
'animation-duration',
'animation-fill-mode',
'animation-iteration-count',
'animation-name',
'animation-play-state',
'animation-timing-function',
'appearance',
'backdrop-filter',
'backface-visibility',
'background-clip',
'background-origin',
'background-size',
'border-block-end',
'border-block-start',
'border-bottom-left-radius',
'border-bottom-right-radius',
'border-image',
'border-inline-end',
'border-inline-start',
'border-radius',
'border-top-left-radius',
'border-top-right-radius',
'box-decoration-break',
'box-shadow',
'box-sizing',
'break-after',
'break-before',
'break-inside',
'clip-path',
'color-adjust',
'column-count',
'column-fill',
'column-gap',
'column-rule',
'column-rule-color',
'column-rule-style',
'column-rule-width',
'column-span',
'column-width',
'columns',
'filter',
'flex',
'flex-basis',
'flex-direction',
'flex-flow',
'flex-grow',
'flex-shrink',
'flex-wrap',
'flow-from',
'flow-into',
'font-feature-settings',
'font-kerning',
'font-language-override',
'font-variant-ligatures',
'grid-area',
'grid-column',
'grid-column-align',
'grid-column-end',
'grid-column-start',
'grid-row',
'grid-row-align',
'grid-row-end',
'grid-row-start',
'grid-template',
'grid-template-areas',
'grid-template-columns',
'grid-template-rows',
'hyphens',
'image-rendering',
'justify-content',
'margin-block-end',
'margin-block-start',
'margin-inline-end',
'margin-inline-start',
'mask',
'mask-border',
'mask-border-outset',
'mask-border-repeat',
'mask-border-slice',
'mask-border-source',
'mask-border-width',
'mask-clip',
'mask-composite',
'mask-image',
'mask-origin',
'mask-position',
'mask-repeat',
'mask-size',
'object-fit',
'object-position',
'order',
'overscroll-behavior',
'padding-block-end',
'padding-block-start',
'padding-inline-end',
'padding-inline-start',
'perspective',
'perspective-origin',
'place-self',
'region-fragment',
'scroll-snap-coordinate',
'scroll-snap-destination',
'scroll-snap-points-x',
'scroll-snap-points-y',
'scroll-snap-type',
'shape-image-threshold',
'shape-margin',
'shape-outside',
'tab-size',
'text-align-last',
'text-decoration',
'text-decoration-color',
'text-decoration-line',
'text-decoration-skip',
'text-decoration-skip-ink',
'text-decoration-style',
'text-emphasis',
'text-emphasis-color',
'text-emphasis-position',
'text-emphasis-style',
'text-orientation',
'text-overflow',
'text-size-adjust',
'text-spacing',
'touch-action',
'transform',
'transform-origin',
'transform-style',
'transition',
'transition-delay',
'transition-duration',
'transition-property',
'transition-timing-function',
'user-select',
'writing-mode',
]);
/**
* This list is currently being used to compile all the prefixed values that can safely be unprefixed.
* i.e. value-no-vendor-prefix autofix ought to be able to handle it appropriately
* It was initially populated using the following example:
* @example
* Object.values(prefixes.remove)
* .filter((p) => Array.isArray(p.values))
* .flatMap((p) => p.values)
* .map((p) => utils.removeNote(p.prefixed)) // normalize '-webkit- old'
* .filter((p) => !p.endsWith('-')); // remove '-webkit-' only
*
* @see https://github.com/stylelint/stylelint/pull/5312/files#r636018013
*/
const PROPERTY_VALUES = new Set([
'-moz-all',
'-moz-calc',
'-moz-crisp-edges',
'-moz-element',
'-moz-fit-content',
'-moz-grab',
'-moz-grabbing',
'-moz-initial',
'-moz-isolate',
'-moz-isolate-override',
'-moz-linear-gradient',
'-moz-max-content',
'-moz-min-content',
'-moz-pre-wrap',
'-moz-plaintext',
'-moz-radial-gradient',
'-moz-repeating-linear-gradient',
'-moz-repeating-radial-gradient',
'-moz-zoom-in',
'-moz-zoom-out',
'-ms-flexbox',
'-ms-grid',
'-ms-inline-grid',
'-ms-linear-gradient',
'-ms-radial-gradient',
'-ms-repeating-linear-gradient',
'-ms-repeating-radial-gradient',
'-o-crisp-edges',
'-o-linear-gradient',
'-o-pre-wrap',
'-o-radial-gradient',
'-o-repeating-linear-gradient',
'-o-repeating-radial-gradient',
'-webkit-calc',
'-webkit-cross-fade',
'-webkit-filter',
'-webkit-fit-content',
'-webkit-flex',
'-webkit-grab',
'-webkit-grabbing',
'-webkit-image-set',
'-webkit-inline-flex',
'-webkit-isolate',
'-webkit-linear-gradient',
'-webkit-max-content',
'-webkit-min-content',
'-webkit-plaintext',
'-webkit-radial-gradient',
'-webkit-repeating-linear-gradient',
'-webkit-repeating-radial-gradient',
'-webkit-sticky',
'-webkit-zoom-in',
'-webkit-zoom-out',
'-xv-digits',
'-xv-literal-punctuation',
'-xv-no-punctuation',
// Firefox does not support
// ethiopic-halehame, ethiopic-halehame-am, ethiopic-halehame-ti-er and ethiopic-halehame-ti-et
// without a -moz- prefix
// see https://developer.mozilla.org/en-US/docs/Web/CSS/list-style-type
'-moz-arabic-indic',
'-moz-bengali',
'-moz-cjk-earthly-branch',
'-moz-cjk-heavenly-stem',
'-moz-devanagari',
'-moz-ethiopic-numeric',
'-moz-gujarati',
'-moz-gurmukhi',
'-moz-hangul',
'-moz-hangul-consonant',
'-moz-japanese-formal',
'-moz-japanese-informal',
'-moz-kannada',
'-moz-khmer',
'-moz-lao',
'-moz-malayalam',
'-moz-myanmar',
'-moz-oriya',
'-moz-persian',
'-moz-simp-chinese-formal',
'-moz-simp-chinese-informal',
'-moz-tamil',
'-moz-telugu',
'-moz-thai',
'-moz-trad-chinese-formal',
'-moz-trad-chinese-informal',
]);
/**
* Most identifier types have to be looked up in a unique way,
* so we're exposing special functions for each.
*/
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
/**
* @param {string} identifier
* @returns {boolean}
*/
atRuleName(identifier) {
return AT_RULES.has(`@${identifier.toLowerCase()}`);
},
/**
* @param {string} identifier
* @returns {boolean}
*/
selector(identifier) {
return SELECTORS.has(identifier.toLowerCase());
},
/**
* @param {string} identifier
* @returns {boolean}
*/
mediaFeatureName(identifier) {
return identifier.toLowerCase().includes('device-pixel-ratio');
},
/**
* @param {string} identifier
* @returns {boolean}
*/
property(identifier) {
const ident = identifier.toLowerCase();
if (_vendor_mjs__WEBPACK_IMPORTED_MODULE_0__["default"].prefix(ident).length === 0) {
return false;
}
return PROPERTIES.has(_vendor_mjs__WEBPACK_IMPORTED_MODULE_0__["default"].unprefixed(ident));
},
/**
* @param {string} value
* @returns {boolean}
*/
propertyValue(value) {
return PROPERTY_VALUES.has(value.toLowerCase());
},
/**
* @param {string} value
* @returns {string}
*/
unprefix(value) {
return value.replace(/-\w+-/, '');
},
});
/***/ }),
/***/ 1796:
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "default": () => (/* binding */ hasPrefix)
/* harmony export */ });
/* harmony import */ var _reference_prefixes_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1797);
const HAS_PREFIX_REGEX = new RegExp(`(?:${[..._reference_prefixes_mjs__WEBPACK_IMPORTED_MODULE_0__.prefixes].join('|')})`, 'i');
/**
* Check if a string contains any prefix
*
* @param {string} string
* @returns {boolean}
*/
function hasPrefix(string) {
return HAS_PREFIX_REGEX.test(string);
}
/***/ }),
/***/ 1797:
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ prefixes: () => (/* binding */ prefixes)
/* harmony export */ });
/**
* used by value-no-vendor-prefix and selector-no-vendor-prefix
* i.e. this list is deliberately not exhaustive
*
* @see https://www.w3.org/TR/CSS22/syndata.html#vendor-keyword-history
* @type {ReadonlySet<string>}
*/
const prefixes = new Set([
'-webkit-',
'-moz-',
'-ms-',
'-o-',
'-xv-',
'-apple-',
'-wap-',
'-khtml-',
]);
/***/ })
};
;
//# sourceMappingURL=97.extension.js.map