@swissquote/crafty-preset-lightningcss 1.28.1 → 1.29.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -29,7 +29,7 @@ var _semver = __nccwpck_require__(1279);
29
29
  var _options = _interopRequireDefault(__nccwpck_require__(2149));
30
30
  var _plugins = __nccwpck_require__(7753);
31
31
  var _utils = __nccwpck_require__(3579);
32
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
32
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
33
33
  /*
34
34
  MIT License http://www.opensource.org/licenses/mit-license.php
35
35
  Author Tobias Koppers @sokra
@@ -228,7 +228,7 @@ Object.defineProperty(exports, "urlParser", ({
228
228
  var _postcssImportParser = _interopRequireDefault(__nccwpck_require__(386));
229
229
  var _postcssIcssParser = _interopRequireDefault(__nccwpck_require__(571));
230
230
  var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(8046));
231
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
231
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
232
232
 
233
233
  /***/ }),
234
234
 
@@ -364,7 +364,7 @@ Object.defineProperty(exports, "__esModule", ({
364
364
  exports["default"] = void 0;
365
365
  var _postcssValueParser = _interopRequireDefault(__nccwpck_require__(1787));
366
366
  var _utils = __nccwpck_require__(3579);
367
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
367
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
368
368
  function isIgnoredAfterName(atRule) {
369
369
  if (atRule.raws && atRule.raws.afterName && atRule.raws.afterName.trim().length > 0) {
370
370
  const lastCommentIndex = atRule.raws.afterName.lastIndexOf("/*");
@@ -664,7 +664,7 @@ Object.defineProperty(exports, "__esModule", ({
664
664
  exports["default"] = void 0;
665
665
  var _postcssValueParser = _interopRequireDefault(__nccwpck_require__(1787));
666
666
  var _utils = __nccwpck_require__(3579);
667
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
667
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
668
668
  const isUrlFunc = /url/i;
669
669
  const isImageSetFunc = /^(?:-webkit-)?image-set$/i;
670
670
  const needParseDeclaration = /(?:url|(?:-webkit-)?image-set)\(/i;
@@ -1057,7 +1057,7 @@ var _postcssModulesValues = _interopRequireDefault(__nccwpck_require__(731));
1057
1057
  var _postcssModulesLocalByDefault = _interopRequireDefault(__nccwpck_require__(9714));
1058
1058
  var _postcssModulesExtractImports = _interopRequireDefault(__nccwpck_require__(8931));
1059
1059
  var _postcssModulesScope = _interopRequireDefault(__nccwpck_require__(7973));
1060
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
1060
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
1061
1061
  /*
1062
1062
  MIT License http://www.opensource.org/licenses/mit-license.php
1063
1063
  Author Tobias Koppers @sokra
@@ -1304,8 +1304,10 @@ function defaultGetLocalIdent(loaderContext, localIdentName, localName, options)
1304
1304
  }
1305
1305
  let localIdentHash = "";
1306
1306
  for (let tier = 0; localIdentHash.length < hashDigestLength; tier++) {
1307
+ const hash = (loaderContext.utils.createHash ||
1308
+ // TODO remove in the next major release
1307
1309
  // eslint-disable-next-line no-underscore-dangle
1308
- const hash = loaderContext._compiler.webpack.util.createHash(hashFunction);
1310
+ loaderContext._compiler.webpack.util.createHash)(hashFunction);
1309
1311
  if (hashSalt) {
1310
1312
  hash.update(hashSalt);
1311
1313
  }
@@ -1449,11 +1451,6 @@ function getModulesOptions(rawOptions, esModule, exportType, loaderContext) {
1449
1451
  auto
1450
1452
  } = rawModulesOptions);
1451
1453
  }
1452
-
1453
- // eslint-disable-next-line no-underscore-dangle
1454
- const {
1455
- outputOptions
1456
- } = loaderContext._compilation;
1457
1454
  const needNamedExport = exportType === "css-style-sheet" || exportType === "string";
1458
1455
  const namedExport = typeof rawModulesOptions.namedExport !== "undefined" ? rawModulesOptions.namedExport : needNamedExport || esModule;
1459
1456
  const exportLocalsConvention = typeof rawModulesOptions.exportLocalsConvention !== "undefined" ? rawModulesOptions.exportLocalsConvention : namedExport ? "as-is" : "camel-case-only";
@@ -1463,10 +1460,23 @@ function getModulesOptions(rawOptions, esModule, exportType, loaderContext) {
1463
1460
  exportGlobals: false,
1464
1461
  localIdentName: "[hash:base64]",
1465
1462
  localIdentContext: loaderContext.rootContext,
1466
- localIdentHashSalt: outputOptions.hashSalt,
1467
- localIdentHashFunction: outputOptions.hashFunction,
1468
- localIdentHashDigest: outputOptions.hashDigest,
1469
- localIdentHashDigestLength: outputOptions.hashDigestLength,
1463
+ // eslint-disable-next-line no-underscore-dangle
1464
+ localIdentHashSalt: loaderContext.hashSalt ||
1465
+ // TODO remove in the next major release
1466
+ // eslint-disable-next-line no-underscore-dangle
1467
+ loaderContext._compilation.outputOptions.hashSalt,
1468
+ localIdentHashFunction: loaderContext.hashFunction ||
1469
+ // TODO remove in the next major release
1470
+ // eslint-disable-next-line no-underscore-dangle
1471
+ loaderContext._compilation.outputOptions.hashFunction,
1472
+ localIdentHashDigest: loaderContext.hashDigest ||
1473
+ // TODO remove in the next major release
1474
+ // eslint-disable-next-line no-underscore-dangle
1475
+ loaderContext._compilation.outputOptions.hashDigest,
1476
+ localIdentHashDigestLength: loaderContext.hashDigestLength ||
1477
+ // TODO remove in the next major release
1478
+ // eslint-disable-next-line no-underscore-dangle
1479
+ loaderContext._compilation.outputOptions.hashDigestLength,
1470
1480
  // eslint-disable-next-line no-undefined
1471
1481
  localIdentRegExp: undefined,
1472
1482
  // eslint-disable-next-line no-undefined
@@ -1859,7 +1869,7 @@ function dashesCamelCase(str) {
1859
1869
  return str.replace(/-+(\w)/g, (match, firstLetter) => firstLetter.toUpperCase());
1860
1870
  }
1861
1871
  const validIdentifier = /^[a-zA-Z_$][a-zA-Z0-9_$]*$/u;
1862
- const keywords = new Set(["abstract", "boolean", "break", "byte", "case", "catch", "char", "class", "const", "continue", "debugger", "default", "delete", "do", "double", "else", "enum", "export", "extends", "false", "final", "finally", "float", "for", "function", "goto", "if", "implements", "import", "in", "instanceof", "int", "interface", "long", "native", "new", "null", "package", "private", "protected", "public", "return", "short", "static", "super", "switch", "synchronized", "this", "throw", "throws", "transient", "true", "try", "typeof", "var", "void", "volatile", "while", "with"]);
1872
+ const keywords = new Set(["abstract", "boolean", "break", "byte", "case", "catch", "char", "class", "const", "continue", "debugger", "default", "delete", "do", "double", "else", "enum", "export", "extends", "false", "final", "finally", "float", "for", "function", "goto", "if", "implements", "import", "in", "instanceof", "int", "interface", "long", "native", "new", "null", "package", "private", "protected", "public", "return", "short", "static", "super", "switch", "synchronized", "this", "throw", "throws", "transient", "true", "try", "typeof", "var", "void", "volatile", "while", "with", "module"]);
1863
1873
  function getExportCode(exports, replacements, icssPluginUsed, options, isTemplateLiteralSupported) {
1864
1874
  let code = "// Exports\n";
1865
1875
  if (icssPluginUsed) {
@@ -4921,7 +4931,7 @@ var Parser = /*#__PURE__*/function () {
4921
4931
  if (_space2.endsWith(' ') && _rawSpace2.endsWith(' ')) {
4922
4932
  spaces.before = _space2.slice(0, _space2.length - 1);
4923
4933
  raws.spaces.before = _rawSpace2.slice(0, _rawSpace2.length - 1);
4924
- } else if (_space2.startsWith(' ') && _rawSpace2.startsWith(' ')) {
4934
+ } else if (_space2[0] === ' ' && _rawSpace2[0] === ' ') {
4925
4935
  spaces.after = _space2.slice(1);
4926
4936
  raws.spaces.after = _rawSpace2.slice(1);
4927
4937
  } else {
@@ -13345,15 +13355,6 @@ function getSetAttributesCode(esModule, loaderContext, options) {
13345
13355
  module.exports = __nccwpck_require__(9023).deprecate;
13346
13356
 
13347
13357
 
13348
- /***/ }),
13349
-
13350
- /***/ 3707:
13351
- /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
13352
-
13353
- module.exports.cssLoader = function() { return __nccwpck_require__(644); };
13354
- module.exports.styleLoader = function() { return __nccwpck_require__(9318); };
13355
- module.exports.lightningcssLoader = function() { return __nccwpck_require__(4536); };
13356
-
13357
13358
  /***/ }),
13358
13359
 
13359
13360
  /***/ 761:
@@ -13491,13 +13492,22 @@ let nanoid = (size = 21) => {
13491
13492
  module.exports = { nanoid, customAlphabet }
13492
13493
 
13493
13494
 
13495
+ /***/ }),
13496
+
13497
+ /***/ 7590:
13498
+ /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
13499
+
13500
+ module.exports.cssLoader = function() { return __nccwpck_require__(644); };
13501
+ module.exports.styleLoader = function() { return __nccwpck_require__(9318); };
13502
+ module.exports.lightningcssLoader = function() { return __nccwpck_require__(4536); };
13503
+
13494
13504
  /***/ }),
13495
13505
 
13496
13506
  /***/ 2149:
13497
13507
  /***/ ((module) => {
13498
13508
 
13499
13509
  "use strict";
13500
- module.exports = /*#__PURE__*/JSON.parse('{"title":"CSS Loader options","additionalProperties":false,"properties":{"url":{"description":"Allows to enables/disables `url()`/`image-set()` functions handling.","link":"https://github.com/webpack-contrib/css-loader#url","anyOf":[{"type":"boolean"},{"type":"object","properties":{"filter":{"instanceof":"Function"}},"additionalProperties":false}]},"import":{"description":"Allows to enables/disables `@import` at-rules handling.","link":"https://github.com/webpack-contrib/css-loader#import","anyOf":[{"type":"boolean"},{"type":"object","properties":{"filter":{"instanceof":"Function"}},"additionalProperties":false}]},"modules":{"description":"Allows to enable/disable CSS Modules or ICSS and setup configuration.","link":"https://github.com/webpack-contrib/css-loader#modules","anyOf":[{"type":"boolean"},{"enum":["local","global","pure","icss"]},{"type":"object","additionalProperties":false,"properties":{"auto":{"description":"Allows auto enable CSS modules based on filename.","link":"https://github.com/webpack-contrib/css-loader#auto","anyOf":[{"instanceof":"RegExp"},{"instanceof":"Function"},{"type":"boolean"}]},"mode":{"description":"Setup `mode` option.","link":"https://github.com/webpack-contrib/css-loader#mode","anyOf":[{"enum":["local","global","pure","icss"]},{"instanceof":"Function"}]},"localIdentName":{"description":"Allows to configure the generated local ident name.","link":"https://github.com/webpack-contrib/css-loader#localidentname","type":"string","minLength":1},"localIdentContext":{"description":"Allows to redefine basic loader context for local ident name.","link":"https://github.com/webpack-contrib/css-loader#localidentcontext","type":"string","minLength":1},"localIdentHashSalt":{"description":"Allows to add custom hash to generate more unique classes.","link":"https://github.com/webpack-contrib/css-loader#localidenthashsalt","type":"string","minLength":1},"localIdentHashFunction":{"description":"Allows to specify hash function to generate classes.","link":"https://github.com/webpack-contrib/css-loader#localidenthashfunction","type":"string","minLength":1},"localIdentHashDigest":{"description":"Allows to specify hash digest to generate classes.","link":"https://github.com/webpack-contrib/css-loader#localidenthashdigest","type":"string","minLength":1},"localIdentHashDigestLength":{"description":"Allows to specify hash digest length to generate classes.","link":"https://github.com/webpack-contrib/css-loader#localidenthashdigestlength","type":"number"},"hashStrategy":{"description":"Allows to specify should localName be used when computing the hash.","link":"https://github.com/webpack-contrib/css-loader#hashstrategy","enum":["resource-path-and-local-name","minimal-subset"]},"localIdentRegExp":{"description":"Allows to specify custom RegExp for local ident name.","link":"https://github.com/webpack-contrib/css-loader#localidentregexp","anyOf":[{"type":"string","minLength":1},{"instanceof":"RegExp"}]},"getLocalIdent":{"description":"Allows to specify a function to generate the classname.","link":"https://github.com/webpack-contrib/css-loader#getlocalident","instanceof":"Function"},"namedExport":{"description":"Enables/disables ES modules named export for locals.","link":"https://github.com/webpack-contrib/css-loader#namedexport","type":"boolean"},"exportGlobals":{"description":"Allows to export names from global class or id, so you can use that as local name.","link":"https://github.com/webpack-contrib/css-loader#exportglobals","type":"boolean"},"exportLocalsConvention":{"description":"Style of exported classnames.","link":"https://github.com/webpack-contrib/css-loader#localsconvention","anyOf":[{"enum":["asIs","as-is","camelCase","camel-case","camelCaseOnly","camel-case-only","dashes","dashesOnly","dashes-only"]},{"instanceof":"Function"}]},"exportOnlyLocals":{"description":"Export only locals.","link":"https://github.com/webpack-contrib/css-loader#exportonlylocals","type":"boolean"},"getJSON":{"description":"Allows outputting of CSS modules mapping through a callback.","link":"https://github.com/webpack-contrib/css-loader#getJSON","instanceof":"Function"}}}]},"sourceMap":{"description":"Allows to enable/disable source maps.","link":"https://github.com/webpack-contrib/css-loader#sourcemap","type":"boolean"},"importLoaders":{"description":"Allows enables/disables or setups number of loaders applied before CSS loader for `@import`/CSS Modules and ICSS imports.","link":"https://github.com/webpack-contrib/css-loader#importloaders","anyOf":[{"type":"boolean"},{"type":"string"},{"type":"integer"}]},"esModule":{"description":"Use the ES modules syntax.","link":"https://github.com/webpack-contrib/css-loader#esmodule","type":"boolean"},"exportType":{"description":"Allows exporting styles as array with modules, string or constructable stylesheet (i.e. `CSSStyleSheet`).","link":"https://github.com/webpack-contrib/css-loader#exporttype","enum":["array","string","css-style-sheet"]}},"type":"object"}');
13510
+ module.exports = /*#__PURE__*/JSON.parse('{"title":"CSS Loader options","additionalProperties":false,"properties":{"url":{"description":"Allows to enables/disables `url()`/`image-set()` functions handling.","link":"https://github.com/webpack/css-loader#url","anyOf":[{"type":"boolean"},{"type":"object","properties":{"filter":{"instanceof":"Function"}},"additionalProperties":false}]},"import":{"description":"Allows to enables/disables `@import` at-rules handling.","link":"https://github.com/webpack/css-loader#import","anyOf":[{"type":"boolean"},{"type":"object","properties":{"filter":{"instanceof":"Function"}},"additionalProperties":false}]},"modules":{"description":"Allows to enable/disable CSS Modules or ICSS and setup configuration.","link":"https://github.com/webpack/css-loader#modules","anyOf":[{"type":"boolean"},{"enum":["local","global","pure","icss"]},{"type":"object","additionalProperties":false,"properties":{"auto":{"description":"Allows auto enable CSS modules based on filename.","link":"https://github.com/webpack/css-loader#auto","anyOf":[{"instanceof":"RegExp"},{"instanceof":"Function"},{"type":"boolean"}]},"mode":{"description":"Setup `mode` option.","link":"https://github.com/webpack/css-loader#mode","anyOf":[{"enum":["local","global","pure","icss"]},{"instanceof":"Function"}]},"localIdentName":{"description":"Allows to configure the generated local ident name.","link":"https://github.com/webpack/css-loader#localidentname","type":"string","minLength":1},"localIdentContext":{"description":"Allows to redefine basic loader context for local ident name.","link":"https://github.com/webpack/css-loader#localidentcontext","type":"string","minLength":1},"localIdentHashSalt":{"description":"Allows to add custom hash to generate more unique classes.","link":"https://github.com/webpack/css-loader#localidenthashsalt","type":"string","minLength":1},"localIdentHashFunction":{"description":"Allows to specify hash function to generate classes.","link":"https://github.com/webpack/css-loader#localidenthashfunction","type":"string","minLength":1},"localIdentHashDigest":{"description":"Allows to specify hash digest to generate classes.","link":"https://github.com/webpack/css-loader#localidenthashdigest","type":"string","minLength":1},"localIdentHashDigestLength":{"description":"Allows to specify hash digest length to generate classes.","link":"https://github.com/webpack/css-loader#localidenthashdigestlength","type":"number"},"hashStrategy":{"description":"Allows to specify should localName be used when computing the hash.","link":"https://github.com/webpack/css-loader#hashstrategy","enum":["resource-path-and-local-name","minimal-subset"]},"localIdentRegExp":{"description":"Allows to specify custom RegExp for local ident name.","link":"https://github.com/webpack/css-loader#localidentregexp","anyOf":[{"type":"string","minLength":1},{"instanceof":"RegExp"}]},"getLocalIdent":{"description":"Allows to specify a function to generate the classname.","link":"https://github.com/webpack/css-loader#getlocalident","instanceof":"Function"},"namedExport":{"description":"Enables/disables ES modules named export for locals.","link":"https://github.com/webpack/css-loader#namedexport","type":"boolean"},"exportGlobals":{"description":"Allows to export names from global class or id, so you can use that as local name.","link":"https://github.com/webpack/css-loader#exportglobals","type":"boolean"},"exportLocalsConvention":{"description":"Style of exported classnames.","link":"https://github.com/webpack/css-loader#localsconvention","anyOf":[{"enum":["asIs","as-is","camelCase","camel-case","camelCaseOnly","camel-case-only","dashes","dashesOnly","dashes-only"]},{"instanceof":"Function"}]},"exportOnlyLocals":{"description":"Export only locals.","link":"https://github.com/webpack/css-loader#exportonlylocals","type":"boolean"},"getJSON":{"description":"Allows outputting of CSS modules mapping through a callback.","link":"https://github.com/webpack/css-loader#getJSON","instanceof":"Function"}}}]},"sourceMap":{"description":"Allows to enable/disable source maps.","link":"https://github.com/webpack/css-loader#sourcemap","type":"boolean"},"importLoaders":{"description":"Allows enables/disables or setups number of loaders applied before CSS loader for `@import`/CSS Modules and ICSS imports.","link":"https://github.com/webpack/css-loader#importloaders","anyOf":[{"type":"boolean"},{"type":"string"},{"type":"integer"}]},"esModule":{"description":"Use the ES modules syntax.","link":"https://github.com/webpack/css-loader#esmodule","type":"boolean"},"exportType":{"description":"Allows exporting styles as array with modules, string or constructable stylesheet (i.e. `CSSStyleSheet`).","link":"https://github.com/webpack/css-loader#exporttype","enum":["array","string","css-style-sheet"]}},"type":"object"}');
13501
13511
 
13502
13512
  /***/ }),
13503
13513
 
@@ -13559,7 +13569,7 @@ module.exports = /*#__PURE__*/JSON.parse('{"title":"Style Loader options","type"
13559
13569
  /******/ // startup
13560
13570
  /******/ // Load entry module and return exports
13561
13571
  /******/ // This entry module used 'module' so it can't be inlined
13562
- /******/ var __webpack_exports__ = __nccwpck_require__(3707);
13572
+ /******/ var __webpack_exports__ = __nccwpck_require__(7590);
13563
13573
  /******/ module.exports = __webpack_exports__;
13564
13574
  /******/
13565
13575
  /******/ })()