@universityofmaryland/web-model-library 1.0.1 → 1.0.2-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.
- package/README.md +1 -1
- package/dist/_virtual/___vite-browser-external.js +6 -7
- package/dist/_virtual/___vite-browser-external.js.map +1 -1
- package/dist/_virtual/__vite-browser-external.js +3 -2
- package/dist/_virtual/__vite-browser-external.js.map +1 -1
- package/dist/_virtual/_commonjsHelpers.js +4 -4
- package/dist/_virtual/_commonjsHelpers.js.map +1 -1
- package/dist/_virtual/index.js +7 -6
- package/dist/_virtual/index.js.map +1 -1
- package/dist/_virtual/picocolors.browser.js +3 -3
- package/dist/_virtual/picocolors.browser.js.map +1 -1
- package/dist/_virtual/postcss.js +7 -6
- package/dist/_virtual/postcss.js.map +1 -1
- package/dist/_virtual/symbols.js +3 -3
- package/dist/_virtual/symbols.js.map +1 -1
- package/dist/attributes/checks.d.ts +1 -0
- package/dist/attributes/checks.d.ts.map +1 -1
- package/dist/attributes/checks.js +317 -331
- package/dist/attributes/checks.js.map +1 -1
- package/dist/attributes/handler.d.ts +1 -2
- package/dist/attributes/handler.d.ts.map +1 -1
- package/dist/attributes/handler.js +20 -19
- package/dist/attributes/handler.js.map +1 -1
- package/dist/attributes/index.d.ts +3 -3
- package/dist/attributes/index.d.ts.map +1 -1
- package/dist/attributes/names.d.ts +3 -3
- package/dist/attributes/names.d.ts.map +1 -1
- package/dist/attributes/names.js +5 -3
- package/dist/attributes/names.js.map +1 -1
- package/dist/attributes/values.d.ts +10 -11
- package/dist/attributes/values.d.ts.map +1 -1
- package/dist/attributes/values.js +3 -2
- package/dist/attributes/values.js.map +1 -1
- package/dist/attributes.js +21 -21
- package/dist/attributes.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -12
- package/dist/index.js.map +1 -1
- package/dist/model.js +7 -7
- package/dist/model.js.map +1 -1
- package/dist/node_modules/nanoid/non-secure/index.js +3 -3
- package/dist/node_modules/nanoid/non-secure/index.js.map +1 -1
- package/dist/node_modules/picocolors/picocolors.browser.js +8 -8
- package/dist/node_modules/picocolors/picocolors.browser.js.map +1 -1
- package/dist/node_modules/postcss/lib/at-rule.js +5 -5
- package/dist/node_modules/postcss/lib/at-rule.js.map +1 -1
- package/dist/node_modules/postcss/lib/comment.js +5 -5
- package/dist/node_modules/postcss/lib/comment.js.map +1 -1
- package/dist/node_modules/postcss/lib/container.js +69 -62
- package/dist/node_modules/postcss/lib/container.js.map +1 -1
- package/dist/node_modules/postcss/lib/css-syntax-error.js +30 -19
- package/dist/node_modules/postcss/lib/css-syntax-error.js.map +1 -1
- package/dist/node_modules/postcss/lib/declaration.js +8 -8
- package/dist/node_modules/postcss/lib/declaration.js.map +1 -1
- package/dist/node_modules/postcss/lib/document.js +5 -5
- package/dist/node_modules/postcss/lib/document.js.map +1 -1
- package/dist/node_modules/postcss/lib/fromJSON.js +19 -19
- package/dist/node_modules/postcss/lib/fromJSON.js.map +1 -1
- package/dist/node_modules/postcss/lib/input.js +51 -37
- package/dist/node_modules/postcss/lib/input.js.map +1 -1
- package/dist/node_modules/postcss/lib/lazy-result.js +67 -67
- package/dist/node_modules/postcss/lib/lazy-result.js.map +1 -1
- package/dist/node_modules/postcss/lib/list.js +3 -3
- package/dist/node_modules/postcss/lib/list.js.map +1 -1
- package/dist/node_modules/postcss/lib/map-generator.js +27 -18
- package/dist/node_modules/postcss/lib/map-generator.js.map +1 -1
- package/dist/node_modules/postcss/lib/no-work-result.js +54 -51
- package/dist/node_modules/postcss/lib/no-work-result.js.map +1 -1
- package/dist/node_modules/postcss/lib/node.js +91 -38
- package/dist/node_modules/postcss/lib/node.js.map +1 -1
- package/dist/node_modules/postcss/lib/parse.js +13 -13
- package/dist/node_modules/postcss/lib/parse.js.map +1 -1
- package/dist/node_modules/postcss/lib/parser.js +21 -20
- package/dist/node_modules/postcss/lib/parser.js.map +1 -1
- package/dist/node_modules/postcss/lib/postcss.js +4 -3
- package/dist/node_modules/postcss/lib/postcss.js.map +1 -1
- package/dist/node_modules/postcss/lib/postcss2.js +43 -43
- package/dist/node_modules/postcss/lib/postcss2.js.map +1 -1
- package/dist/node_modules/postcss/lib/previous-map.js +14 -12
- package/dist/node_modules/postcss/lib/previous-map.js.map +1 -1
- package/dist/node_modules/postcss/lib/processor.js +13 -13
- package/dist/node_modules/postcss/lib/processor.js.map +1 -1
- package/dist/node_modules/postcss/lib/result.js +12 -12
- package/dist/node_modules/postcss/lib/result.js.map +1 -1
- package/dist/node_modules/postcss/lib/root.js +5 -5
- package/dist/node_modules/postcss/lib/root.js.map +1 -1
- package/dist/node_modules/postcss/lib/rule.js +13 -13
- package/dist/node_modules/postcss/lib/rule.js.map +1 -1
- package/dist/node_modules/postcss/lib/stringifier.js +3 -3
- package/dist/node_modules/postcss/lib/stringifier.js.map +1 -1
- package/dist/node_modules/postcss/lib/stringify.js +5 -5
- package/dist/node_modules/postcss/lib/stringify.js.map +1 -1
- package/dist/node_modules/postcss/lib/symbols.js +8 -8
- package/dist/node_modules/postcss/lib/symbols.js.map +1 -1
- package/dist/node_modules/postcss/lib/tokenize.js +5 -5
- package/dist/node_modules/postcss/lib/tokenize.js.map +1 -1
- package/dist/node_modules/postcss/lib/warning.js +3 -3
- package/dist/node_modules/postcss/lib/warning.js.map +1 -1
- package/dist/packages/model/node_modules/postcss-discard-duplicates/src/index.js +3 -3
- package/dist/packages/model/node_modules/postcss-discard-duplicates/src/index.js.map +1 -1
- package/dist/slots/create.js +3 -3
- package/dist/slots/create.js.map +1 -1
- package/dist/slots/element.js +3 -3
- package/dist/slots/element.js.map +1 -1
- package/dist/slots/index.d.ts +15 -16
- package/dist/slots/index.d.ts.map +1 -1
- package/dist/slots/mapping.js +3 -3
- package/dist/slots/mapping.js.map +1 -1
- package/dist/slots.d.ts +0 -4
- package/dist/slots.js +41 -40
- package/dist/slots.js.map +1 -1
- package/dist/utilities/index.d.ts +1 -1
- package/dist/utilities/index.d.ts.map +1 -1
- package/dist/utilities/lifecycle.js +4 -4
- package/dist/utilities/lifecycle.js.map +1 -1
- package/dist/utilities/register.js +6 -6
- package/dist/utilities/register.js.map +1 -1
- package/dist/utilities/styles.d.ts +1 -2
- package/dist/utilities/styles.d.ts.map +1 -1
- package/dist/utilities/styles.js +15 -10
- package/dist/utilities/styles.js.map +1 -1
- package/dist/utilities.js +10 -10
- package/dist/utilities.js.map +1 -1
- package/package.json +13 -12
- package/dist/_virtual/___vite-browser-external.mjs +0 -7
- package/dist/_virtual/___vite-browser-external.mjs.map +0 -1
- package/dist/_virtual/__vite-browser-external.mjs +0 -5
- package/dist/_virtual/__vite-browser-external.mjs.map +0 -1
- package/dist/_virtual/_commonjsHelpers.mjs +0 -37
- package/dist/_virtual/_commonjsHelpers.mjs.map +0 -1
- package/dist/_virtual/index.mjs +0 -8
- package/dist/_virtual/index.mjs.map +0 -1
- package/dist/_virtual/picocolors.browser.mjs +0 -5
- package/dist/_virtual/picocolors.browser.mjs.map +0 -1
- package/dist/_virtual/postcss.mjs +0 -8
- package/dist/_virtual/postcss.mjs.map +0 -1
- package/dist/_virtual/symbols.mjs +0 -5
- package/dist/_virtual/symbols.mjs.map +0 -1
- package/dist/attributes/checks.mjs +0 -752
- package/dist/attributes/checks.mjs.map +0 -1
- package/dist/attributes/handler.mjs +0 -206
- package/dist/attributes/handler.mjs.map +0 -1
- package/dist/attributes/names.mjs +0 -143
- package/dist/attributes/names.mjs.map +0 -1
- package/dist/attributes/values.mjs +0 -84
- package/dist/attributes/values.mjs.map +0 -1
- package/dist/attributes.mjs +0 -22
- package/dist/attributes.mjs.map +0 -1
- package/dist/index.mjs +0 -13
- package/dist/index.mjs.map +0 -1
- package/dist/model.mjs +0 -259
- package/dist/model.mjs.map +0 -1
- package/dist/node_modules/nanoid/non-secure/index.mjs +0 -31
- package/dist/node_modules/nanoid/non-secure/index.mjs.map +0 -1
- package/dist/node_modules/picocolors/picocolors.browser.mjs +0 -17
- package/dist/node_modules/picocolors/picocolors.browser.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/at-rule.mjs +0 -30
- package/dist/node_modules/postcss/lib/at-rule.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/comment.mjs +0 -21
- package/dist/node_modules/postcss/lib/comment.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/container.mjs +0 -383
- package/dist/node_modules/postcss/lib/container.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/css-syntax-error.mjs +0 -92
- package/dist/node_modules/postcss/lib/css-syntax-error.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/declaration.mjs +0 -27
- package/dist/node_modules/postcss/lib/declaration.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/document.mjs +0 -34
- package/dist/node_modules/postcss/lib/document.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/fromJSON.mjs +0 -67
- package/dist/node_modules/postcss/lib/fromJSON.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/input.mjs +0 -216
- package/dist/node_modules/postcss/lib/input.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/lazy-result.mjs +0 -467
- package/dist/node_modules/postcss/lib/lazy-result.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/list.mjs +0 -60
- package/dist/node_modules/postcss/lib/list.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/map-generator.mjs +0 -314
- package/dist/node_modules/postcss/lib/map-generator.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/no-work-result.mjs +0 -113
- package/dist/node_modules/postcss/lib/no-work-result.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/node.mjs +0 -335
- package/dist/node_modules/postcss/lib/node.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/parse.mjs +0 -30
- package/dist/node_modules/postcss/lib/parse.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/parser.mjs +0 -543
- package/dist/node_modules/postcss/lib/parser.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/postcss.mjs +0 -29
- package/dist/node_modules/postcss/lib/postcss.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/postcss2.mjs +0 -110
- package/dist/node_modules/postcss/lib/postcss2.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/previous-map.mjs +0 -123
- package/dist/node_modules/postcss/lib/previous-map.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/processor.mjs +0 -61
- package/dist/node_modules/postcss/lib/processor.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/result.mjs +0 -44
- package/dist/node_modules/postcss/lib/result.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/root.mjs +0 -58
- package/dist/node_modules/postcss/lib/root.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/rule.mjs +0 -33
- package/dist/node_modules/postcss/lib/rule.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/stringifier.mjs +0 -308
- package/dist/node_modules/postcss/lib/stringifier.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/stringify.mjs +0 -19
- package/dist/node_modules/postcss/lib/stringify.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/symbols.mjs +0 -13
- package/dist/node_modules/postcss/lib/symbols.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/tokenize.mjs +0 -219
- package/dist/node_modules/postcss/lib/tokenize.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/warning.mjs +0 -40
- package/dist/node_modules/postcss/lib/warning.mjs.map +0 -1
- package/dist/packages/model/node_modules/postcss-discard-duplicates/src/index.mjs +0 -130
- package/dist/packages/model/node_modules/postcss-discard-duplicates/src/index.mjs.map +0 -1
- package/dist/slots/create.mjs +0 -50
- package/dist/slots/create.mjs.map +0 -1
- package/dist/slots/element.mjs +0 -42
- package/dist/slots/element.mjs.map +0 -1
- package/dist/slots/mapping.mjs +0 -101
- package/dist/slots/mapping.mjs.map +0 -1
- package/dist/slots.mjs +0 -78
- package/dist/slots.mjs.map +0 -1
- package/dist/utilities/lifecycle.mjs +0 -21
- package/dist/utilities/lifecycle.mjs.map +0 -1
- package/dist/utilities/register.mjs +0 -32
- package/dist/utilities/register.mjs.map +0 -1
- package/dist/utilities/styles.mjs +0 -80
- package/dist/utilities/styles.mjs.map +0 -1
- package/dist/utilities.mjs +0 -11
- package/dist/utilities.mjs.map +0 -1
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const container = require("./container.js");
|
|
4
|
-
const list = require("./list.js");
|
|
1
|
+
import { __require as requireContainer } from "./container.js";
|
|
2
|
+
import { __require as requireList } from "./list.js";
|
|
5
3
|
var rule;
|
|
6
4
|
var hasRequiredRule;
|
|
7
5
|
function requireRule() {
|
|
8
6
|
if (hasRequiredRule) return rule;
|
|
9
7
|
hasRequiredRule = 1;
|
|
10
|
-
let Container =
|
|
11
|
-
let list
|
|
8
|
+
let Container = requireContainer();
|
|
9
|
+
let list = requireList();
|
|
12
10
|
class Rule extends Container {
|
|
13
|
-
constructor(defaults) {
|
|
14
|
-
super(defaults);
|
|
15
|
-
this.type = "rule";
|
|
16
|
-
if (!this.nodes) this.nodes = [];
|
|
17
|
-
}
|
|
18
11
|
get selectors() {
|
|
19
|
-
return list
|
|
12
|
+
return list.comma(this.selector);
|
|
20
13
|
}
|
|
21
14
|
set selectors(values) {
|
|
22
15
|
let match = this.selector ? this.selector.match(/,\s*/) : null;
|
|
23
16
|
let sep = match ? match[0] : "," + this.raw("between", "beforeOpen");
|
|
24
17
|
this.selector = values.join(sep);
|
|
25
18
|
}
|
|
19
|
+
constructor(defaults) {
|
|
20
|
+
super(defaults);
|
|
21
|
+
this.type = "rule";
|
|
22
|
+
if (!this.nodes) this.nodes = [];
|
|
23
|
+
}
|
|
26
24
|
}
|
|
27
25
|
rule = Rule;
|
|
28
26
|
Rule.default = Rule;
|
|
29
27
|
Container.registerRule(Rule);
|
|
30
28
|
return rule;
|
|
31
29
|
}
|
|
32
|
-
|
|
30
|
+
export {
|
|
31
|
+
requireRule as __require
|
|
32
|
+
};
|
|
33
33
|
//# sourceMappingURL=rule.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rule.js","sources":["../../../../../../node_modules/postcss/lib/rule.js"],"sourcesContent":["'use strict'\n\nlet Container = require('./container')\nlet list = require('./list')\n\nclass Rule extends Container {\n
|
|
1
|
+
{"version":3,"file":"rule.js","sources":["../../../../../../node_modules/postcss/lib/rule.js"],"sourcesContent":["'use strict'\n\nlet Container = require('./container')\nlet list = require('./list')\n\nclass Rule extends Container {\n get selectors() {\n return list.comma(this.selector)\n }\n\n set selectors(values) {\n let match = this.selector ? this.selector.match(/,\\s*/) : null\n let sep = match ? match[0] : ',' + this.raw('between', 'beforeOpen')\n this.selector = values.join(sep)\n }\n\n constructor(defaults) {\n super(defaults)\n this.type = 'rule'\n if (!this.nodes) this.nodes = []\n }\n}\n\nmodule.exports = Rule\nRule.default = Rule\n\nContainer.registerRule(Rule)\n"],"names":["require$$0","require$$1"],"mappings":";;;;;;;AAEA,MAAI,YAAYA,iBAAA;AAChB,MAAI,OAAOC,YAAA;AAAA,EAEX,MAAM,aAAa,UAAU;AAAA,IAC3B,IAAI,YAAY;AACd,aAAO,KAAK,MAAM,KAAK,QAAQ;AAAA,IACnC;AAAA,IAEE,IAAI,UAAU,QAAQ;AACpB,UAAI,QAAQ,KAAK,WAAW,KAAK,SAAS,MAAM,MAAM,IAAI;AAC1D,UAAI,MAAM,QAAQ,MAAM,CAAC,IAAI,MAAM,KAAK,IAAI,WAAW,YAAY;AACnE,WAAK,WAAW,OAAO,KAAK,GAAG;AAAA,IACnC;AAAA,IAEE,YAAY,UAAU;AACpB,YAAM,QAAQ;AACd,WAAK,OAAO;AACZ,UAAI,CAAC,KAAK,MAAO,MAAK,QAAQ,CAAA;AAAA,IAClC;AAAA,EACA;AAEA,SAAiB;AACjB,OAAK,UAAU;AAEf,YAAU,aAAa,IAAI;;;","x_google_ignoreList":[0]}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
1
|
var stringifier;
|
|
4
2
|
var hasRequiredStringifier;
|
|
5
3
|
function requireStringifier() {
|
|
@@ -304,5 +302,7 @@ function requireStringifier() {
|
|
|
304
302
|
Stringifier.default = Stringifier;
|
|
305
303
|
return stringifier;
|
|
306
304
|
}
|
|
307
|
-
|
|
305
|
+
export {
|
|
306
|
+
requireStringifier as __require
|
|
307
|
+
};
|
|
308
308
|
//# sourceMappingURL=stringifier.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stringifier.js","sources":["../../../../../../node_modules/postcss/lib/stringifier.js"],"sourcesContent":["'use strict'\n\nconst DEFAULT_RAW = {\n after: '\\n',\n beforeClose: '\\n',\n beforeComment: '\\n',\n beforeDecl: '\\n',\n beforeOpen: ' ',\n beforeRule: '\\n',\n colon: ': ',\n commentLeft: ' ',\n commentRight: ' ',\n emptyBody: '',\n indent: ' ',\n semicolon: false\n}\n\nfunction capitalize(str) {\n return str[0].toUpperCase() + str.slice(1)\n}\n\nclass Stringifier {\n constructor(builder) {\n this.builder = builder\n }\n\n atrule(node, semicolon) {\n let name = '@' + node.name\n let params = node.params ? this.rawValue(node, 'params') : ''\n\n if (typeof node.raws.afterName !== 'undefined') {\n name += node.raws.afterName\n } else if (params) {\n name += ' '\n }\n\n if (node.nodes) {\n this.block(node, name + params)\n } else {\n let end = (node.raws.between || '') + (semicolon ? ';' : '')\n this.builder(name + params + end, node)\n }\n }\n\n beforeAfter(node, detect) {\n let value\n if (node.type === 'decl') {\n value = this.raw(node, null, 'beforeDecl')\n } else if (node.type === 'comment') {\n value = this.raw(node, null, 'beforeComment')\n } else if (detect === 'before') {\n value = this.raw(node, null, 'beforeRule')\n } else {\n value = this.raw(node, null, 'beforeClose')\n }\n\n let buf = node.parent\n let depth = 0\n while (buf && buf.type !== 'root') {\n depth += 1\n buf = buf.parent\n }\n\n if (value.includes('\\n')) {\n let indent = this.raw(node, null, 'indent')\n if (indent.length) {\n for (let step = 0; step < depth; step++) value += indent\n }\n }\n\n return value\n }\n\n block(node, start) {\n let between = this.raw(node, 'between', 'beforeOpen')\n this.builder(start + between + '{', node, 'start')\n\n let after\n if (node.nodes && node.nodes.length) {\n this.body(node)\n after = this.raw(node, 'after')\n } else {\n after = this.raw(node, 'after', 'emptyBody')\n }\n\n if (after) this.builder(after)\n this.builder('}', node, 'end')\n }\n\n body(node) {\n let last = node.nodes.length - 1\n while (last > 0) {\n if (node.nodes[last].type !== 'comment') break\n last -= 1\n }\n\n let semicolon = this.raw(node, 'semicolon')\n for (let i = 0; i < node.nodes.length; i++) {\n let child = node.nodes[i]\n let before = this.raw(child, 'before')\n if (before) this.builder(before)\n this.stringify(child, last !== i || semicolon)\n }\n }\n\n comment(node) {\n let left = this.raw(node, 'left', 'commentLeft')\n let right = this.raw(node, 'right', 'commentRight')\n this.builder('/*' + left + node.text + right + '*/', node)\n }\n\n decl(node, semicolon) {\n let between = this.raw(node, 'between', 'colon')\n let string = node.prop + between + this.rawValue(node, 'value')\n\n if (node.important) {\n string += node.raws.important || ' !important'\n }\n\n if (semicolon) string += ';'\n this.builder(string, node)\n }\n\n document(node) {\n this.body(node)\n }\n\n raw(node, own, detect) {\n let value\n if (!detect) detect = own\n\n // Already had\n if (own) {\n value = node.raws[own]\n if (typeof value !== 'undefined') return value\n }\n\n let parent = node.parent\n\n if (detect === 'before') {\n // Hack for first rule in CSS\n if (!parent || (parent.type === 'root' && parent.first === node)) {\n return ''\n }\n\n // `root` nodes in `document` should use only their own raws\n if (parent && parent.type === 'document') {\n return ''\n }\n }\n\n // Floating child without parent\n if (!parent) return DEFAULT_RAW[detect]\n\n // Detect style by other nodes\n let root = node.root()\n if (!root.rawCache) root.rawCache = {}\n if (typeof root.rawCache[detect] !== 'undefined') {\n return root.rawCache[detect]\n }\n\n if (detect === 'before' || detect === 'after') {\n return this.beforeAfter(node, detect)\n } else {\n let method = 'raw' + capitalize(detect)\n if (this[method]) {\n value = this[method](root, node)\n } else {\n root.walk(i => {\n value = i.raws[own]\n if (typeof value !== 'undefined') return false\n })\n }\n }\n\n if (typeof value === 'undefined') value = DEFAULT_RAW[detect]\n\n root.rawCache[detect] = value\n return value\n }\n\n rawBeforeClose(root) {\n let value\n root.walk(i => {\n if (i.nodes && i.nodes.length > 0) {\n if (typeof i.raws.after !== 'undefined') {\n value = i.raws.after\n if (value.includes('\\n')) {\n value = value.replace(/[^\\n]+$/, '')\n }\n return false\n }\n }\n })\n if (value) value = value.replace(/\\S/g, '')\n return value\n }\n\n rawBeforeComment(root, node) {\n let value\n root.walkComments(i => {\n if (typeof i.raws.before !== 'undefined') {\n value = i.raws.before\n if (value.includes('\\n')) {\n value = value.replace(/[^\\n]+$/, '')\n }\n return false\n }\n })\n if (typeof value === 'undefined') {\n value = this.raw(node, null, 'beforeDecl')\n } else if (value) {\n value = value.replace(/\\S/g, '')\n }\n return value\n }\n\n rawBeforeDecl(root, node) {\n let value\n root.walkDecls(i => {\n if (typeof i.raws.before !== 'undefined') {\n value = i.raws.before\n if (value.includes('\\n')) {\n value = value.replace(/[^\\n]+$/, '')\n }\n return false\n }\n })\n if (typeof value === 'undefined') {\n value = this.raw(node, null, 'beforeRule')\n } else if (value) {\n value = value.replace(/\\S/g, '')\n }\n return value\n }\n\n rawBeforeOpen(root) {\n let value\n root.walk(i => {\n if (i.type !== 'decl') {\n value = i.raws.between\n if (typeof value !== 'undefined') return false\n }\n })\n return value\n }\n\n rawBeforeRule(root) {\n let value\n root.walk(i => {\n if (i.nodes && (i.parent !== root || root.first !== i)) {\n if (typeof i.raws.before !== 'undefined') {\n value = i.raws.before\n if (value.includes('\\n')) {\n value = value.replace(/[^\\n]+$/, '')\n }\n return false\n }\n }\n })\n if (value) value = value.replace(/\\S/g, '')\n return value\n }\n\n rawColon(root) {\n let value\n root.walkDecls(i => {\n if (typeof i.raws.between !== 'undefined') {\n value = i.raws.between.replace(/[^\\s:]/g, '')\n return false\n }\n })\n return value\n }\n\n rawEmptyBody(root) {\n let value\n root.walk(i => {\n if (i.nodes && i.nodes.length === 0) {\n value = i.raws.after\n if (typeof value !== 'undefined') return false\n }\n })\n return value\n }\n\n rawIndent(root) {\n if (root.raws.indent) return root.raws.indent\n let value\n root.walk(i => {\n let p = i.parent\n if (p && p !== root && p.parent && p.parent === root) {\n if (typeof i.raws.before !== 'undefined') {\n let parts = i.raws.before.split('\\n')\n value = parts[parts.length - 1]\n value = value.replace(/\\S/g, '')\n return false\n }\n }\n })\n return value\n }\n\n rawSemicolon(root) {\n let value\n root.walk(i => {\n if (i.nodes && i.nodes.length && i.last.type === 'decl') {\n value = i.raws.semicolon\n if (typeof value !== 'undefined') return false\n }\n })\n return value\n }\n\n rawValue(node, prop) {\n let value = node[prop]\n let raw = node.raws[prop]\n if (raw && raw.value === value) {\n return raw.raw\n }\n\n return value\n }\n\n root(node) {\n this.body(node)\n if (node.raws.after) this.builder(node.raws.after)\n }\n\n rule(node) {\n this.block(node, this.rawValue(node, 'selector'))\n if (node.raws.ownSemicolon) {\n this.builder(node.raws.ownSemicolon, node, 'end')\n }\n }\n\n stringify(node, semicolon) {\n /* c8 ignore start */\n if (!this[node.type]) {\n throw new Error(\n 'Unknown AST node type ' +\n node.type +\n '. ' +\n 'Maybe you need to change PostCSS stringifier.'\n )\n }\n /* c8 ignore stop */\n this[node.type](node, semicolon)\n }\n}\n\nmodule.exports = Stringifier\nStringifier.default = Stringifier\n"],"names":[],"mappings":";;;;;;;AAEA,QAAM,cAAc;AAAA,IAClB,OAAO;AAAA,IACP,aAAa;AAAA,IACb,eAAe;AAAA,IACf,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,OAAO;AAAA,IACP,aAAa;AAAA,IACb,cAAc;AAAA,IACd,WAAW;AAAA,IACX,QAAQ;AAAA,IACR,WAAW;AAAA,EACb;AAEA,WAAS,WAAW,KAAK;AACvB,WAAO,IAAI,CAAC,EAAE,YAAW,IAAK,IAAI,MAAM,CAAC;AAAA,EA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{"version":3,"file":"stringifier.js","sources":["../../../../../../node_modules/postcss/lib/stringifier.js"],"sourcesContent":["'use strict'\n\nconst DEFAULT_RAW = {\n after: '\\n',\n beforeClose: '\\n',\n beforeComment: '\\n',\n beforeDecl: '\\n',\n beforeOpen: ' ',\n beforeRule: '\\n',\n colon: ': ',\n commentLeft: ' ',\n commentRight: ' ',\n emptyBody: '',\n indent: ' ',\n semicolon: false\n}\n\nfunction capitalize(str) {\n return str[0].toUpperCase() + str.slice(1)\n}\n\nclass Stringifier {\n constructor(builder) {\n this.builder = builder\n }\n\n atrule(node, semicolon) {\n let name = '@' + node.name\n let params = node.params ? this.rawValue(node, 'params') : ''\n\n if (typeof node.raws.afterName !== 'undefined') {\n name += node.raws.afterName\n } else if (params) {\n name += ' '\n }\n\n if (node.nodes) {\n this.block(node, name + params)\n } else {\n let end = (node.raws.between || '') + (semicolon ? ';' : '')\n this.builder(name + params + end, node)\n }\n }\n\n beforeAfter(node, detect) {\n let value\n if (node.type === 'decl') {\n value = this.raw(node, null, 'beforeDecl')\n } else if (node.type === 'comment') {\n value = this.raw(node, null, 'beforeComment')\n } else if (detect === 'before') {\n value = this.raw(node, null, 'beforeRule')\n } else {\n value = this.raw(node, null, 'beforeClose')\n }\n\n let buf = node.parent\n let depth = 0\n while (buf && buf.type !== 'root') {\n depth += 1\n buf = buf.parent\n }\n\n if (value.includes('\\n')) {\n let indent = this.raw(node, null, 'indent')\n if (indent.length) {\n for (let step = 0; step < depth; step++) value += indent\n }\n }\n\n return value\n }\n\n block(node, start) {\n let between = this.raw(node, 'between', 'beforeOpen')\n this.builder(start + between + '{', node, 'start')\n\n let after\n if (node.nodes && node.nodes.length) {\n this.body(node)\n after = this.raw(node, 'after')\n } else {\n after = this.raw(node, 'after', 'emptyBody')\n }\n\n if (after) this.builder(after)\n this.builder('}', node, 'end')\n }\n\n body(node) {\n let last = node.nodes.length - 1\n while (last > 0) {\n if (node.nodes[last].type !== 'comment') break\n last -= 1\n }\n\n let semicolon = this.raw(node, 'semicolon')\n for (let i = 0; i < node.nodes.length; i++) {\n let child = node.nodes[i]\n let before = this.raw(child, 'before')\n if (before) this.builder(before)\n this.stringify(child, last !== i || semicolon)\n }\n }\n\n comment(node) {\n let left = this.raw(node, 'left', 'commentLeft')\n let right = this.raw(node, 'right', 'commentRight')\n this.builder('/*' + left + node.text + right + '*/', node)\n }\n\n decl(node, semicolon) {\n let between = this.raw(node, 'between', 'colon')\n let string = node.prop + between + this.rawValue(node, 'value')\n\n if (node.important) {\n string += node.raws.important || ' !important'\n }\n\n if (semicolon) string += ';'\n this.builder(string, node)\n }\n\n document(node) {\n this.body(node)\n }\n\n raw(node, own, detect) {\n let value\n if (!detect) detect = own\n\n // Already had\n if (own) {\n value = node.raws[own]\n if (typeof value !== 'undefined') return value\n }\n\n let parent = node.parent\n\n if (detect === 'before') {\n // Hack for first rule in CSS\n if (!parent || (parent.type === 'root' && parent.first === node)) {\n return ''\n }\n\n // `root` nodes in `document` should use only their own raws\n if (parent && parent.type === 'document') {\n return ''\n }\n }\n\n // Floating child without parent\n if (!parent) return DEFAULT_RAW[detect]\n\n // Detect style by other nodes\n let root = node.root()\n if (!root.rawCache) root.rawCache = {}\n if (typeof root.rawCache[detect] !== 'undefined') {\n return root.rawCache[detect]\n }\n\n if (detect === 'before' || detect === 'after') {\n return this.beforeAfter(node, detect)\n } else {\n let method = 'raw' + capitalize(detect)\n if (this[method]) {\n value = this[method](root, node)\n } else {\n root.walk(i => {\n value = i.raws[own]\n if (typeof value !== 'undefined') return false\n })\n }\n }\n\n if (typeof value === 'undefined') value = DEFAULT_RAW[detect]\n\n root.rawCache[detect] = value\n return value\n }\n\n rawBeforeClose(root) {\n let value\n root.walk(i => {\n if (i.nodes && i.nodes.length > 0) {\n if (typeof i.raws.after !== 'undefined') {\n value = i.raws.after\n if (value.includes('\\n')) {\n value = value.replace(/[^\\n]+$/, '')\n }\n return false\n }\n }\n })\n if (value) value = value.replace(/\\S/g, '')\n return value\n }\n\n rawBeforeComment(root, node) {\n let value\n root.walkComments(i => {\n if (typeof i.raws.before !== 'undefined') {\n value = i.raws.before\n if (value.includes('\\n')) {\n value = value.replace(/[^\\n]+$/, '')\n }\n return false\n }\n })\n if (typeof value === 'undefined') {\n value = this.raw(node, null, 'beforeDecl')\n } else if (value) {\n value = value.replace(/\\S/g, '')\n }\n return value\n }\n\n rawBeforeDecl(root, node) {\n let value\n root.walkDecls(i => {\n if (typeof i.raws.before !== 'undefined') {\n value = i.raws.before\n if (value.includes('\\n')) {\n value = value.replace(/[^\\n]+$/, '')\n }\n return false\n }\n })\n if (typeof value === 'undefined') {\n value = this.raw(node, null, 'beforeRule')\n } else if (value) {\n value = value.replace(/\\S/g, '')\n }\n return value\n }\n\n rawBeforeOpen(root) {\n let value\n root.walk(i => {\n if (i.type !== 'decl') {\n value = i.raws.between\n if (typeof value !== 'undefined') return false\n }\n })\n return value\n }\n\n rawBeforeRule(root) {\n let value\n root.walk(i => {\n if (i.nodes && (i.parent !== root || root.first !== i)) {\n if (typeof i.raws.before !== 'undefined') {\n value = i.raws.before\n if (value.includes('\\n')) {\n value = value.replace(/[^\\n]+$/, '')\n }\n return false\n }\n }\n })\n if (value) value = value.replace(/\\S/g, '')\n return value\n }\n\n rawColon(root) {\n let value\n root.walkDecls(i => {\n if (typeof i.raws.between !== 'undefined') {\n value = i.raws.between.replace(/[^\\s:]/g, '')\n return false\n }\n })\n return value\n }\n\n rawEmptyBody(root) {\n let value\n root.walk(i => {\n if (i.nodes && i.nodes.length === 0) {\n value = i.raws.after\n if (typeof value !== 'undefined') return false\n }\n })\n return value\n }\n\n rawIndent(root) {\n if (root.raws.indent) return root.raws.indent\n let value\n root.walk(i => {\n let p = i.parent\n if (p && p !== root && p.parent && p.parent === root) {\n if (typeof i.raws.before !== 'undefined') {\n let parts = i.raws.before.split('\\n')\n value = parts[parts.length - 1]\n value = value.replace(/\\S/g, '')\n return false\n }\n }\n })\n return value\n }\n\n rawSemicolon(root) {\n let value\n root.walk(i => {\n if (i.nodes && i.nodes.length && i.last.type === 'decl') {\n value = i.raws.semicolon\n if (typeof value !== 'undefined') return false\n }\n })\n return value\n }\n\n rawValue(node, prop) {\n let value = node[prop]\n let raw = node.raws[prop]\n if (raw && raw.value === value) {\n return raw.raw\n }\n\n return value\n }\n\n root(node) {\n this.body(node)\n if (node.raws.after) this.builder(node.raws.after)\n }\n\n rule(node) {\n this.block(node, this.rawValue(node, 'selector'))\n if (node.raws.ownSemicolon) {\n this.builder(node.raws.ownSemicolon, node, 'end')\n }\n }\n\n stringify(node, semicolon) {\n /* c8 ignore start */\n if (!this[node.type]) {\n throw new Error(\n 'Unknown AST node type ' +\n node.type +\n '. ' +\n 'Maybe you need to change PostCSS stringifier.'\n )\n }\n /* c8 ignore stop */\n this[node.type](node, semicolon)\n }\n}\n\nmodule.exports = Stringifier\nStringifier.default = Stringifier\n"],"names":[],"mappings":";;;;;AAEA,QAAM,cAAc;AAAA,IAClB,OAAO;AAAA,IACP,aAAa;AAAA,IACb,eAAe;AAAA,IACf,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,OAAO;AAAA,IACP,aAAa;AAAA,IACb,cAAc;AAAA,IACd,WAAW;AAAA,IACX,QAAQ;AAAA,IACR,WAAW;AAAA,EACb;AAEA,WAAS,WAAW,KAAK;AACvB,WAAO,IAAI,CAAC,EAAE,YAAW,IAAK,IAAI,MAAM,CAAC;AAAA,EAC3C;AAAA,EAEA,MAAM,YAAY;AAAA,IAChB,YAAY,SAAS;AACnB,WAAK,UAAU;AAAA,IACnB;AAAA,IAEE,OAAO,MAAM,WAAW;AACtB,UAAI,OAAO,MAAM,KAAK;AACtB,UAAI,SAAS,KAAK,SAAS,KAAK,SAAS,MAAM,QAAQ,IAAI;AAE3D,UAAI,OAAO,KAAK,KAAK,cAAc,aAAa;AAC9C,gBAAQ,KAAK,KAAK;AAAA,MACxB,WAAe,QAAQ;AACjB,gBAAQ;AAAA,MACd;AAEI,UAAI,KAAK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K,SAAS,QAAQ;AACvD,kBAAQ,EAAE,KAAK;AACf,cAAI,OAAO,UAAU,YAAa,QAAO;AAAA,QACjD;AAAA,MACA,CAAK;AACD,aAAO;AAAA,IACX;AAAA,IAEE,SAAS,MAAM,MAAM;AACnB,UAAI,QAAQ,KAAK,IAAI;AACrB,UAAI,MAAM,KAAK,KAAK,IAAI;AACxB,UAAI,OAAO,IAAI,UAAU,OAAO;AAC9B,eAAO,IAAI;AAAA,MACjB;AAEI,aAAO;AAAA,IACX;AAAA,IAEE,KAAK,MAAM;AACT,WAAK,KAAK,IAAI;AACd,UAAI,KAAK,KAAK,MAAO,MAAK,QAAQ,KAAK,KAAK,KAAK;AAAA,IACrD;AAAA,IAEE,KAAK,MAAM;AACT,WAAK,MAAM,MAAM,KAAK,SAAS,MAAM,UAAU,CAAC;AAChD,UAAI,KAAK,KAAK,cAAc;AAC1B,aAAK,QAAQ,KAAK,KAAK,cAAc,MAAM,KAAK;AAAA,MACtD;AAAA,IACA;AAAA,IAEE,UAAU,MAAM,WAAW;AAEzB,UAAI,CAAC,KAAK,KAAK,IAAI,GAAG;AACpB,cAAM,IAAI;AAAA,UACR,2BACE,KAAK,OACL;AAAA,QAEV;AAAA,MACA;AAEI,WAAK,KAAK,IAAI,EAAE,MAAM,SAAS;AAAA,IACnC;AAAA,EACA;AAEA,gBAAiB;AACjB,cAAY,UAAU;;;","x_google_ignoreList":[0]}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const stringifier = require("./stringifier.js");
|
|
1
|
+
import { __require as requireStringifier } from "./stringifier.js";
|
|
4
2
|
var stringify_1;
|
|
5
3
|
var hasRequiredStringify;
|
|
6
4
|
function requireStringify() {
|
|
7
5
|
if (hasRequiredStringify) return stringify_1;
|
|
8
6
|
hasRequiredStringify = 1;
|
|
9
|
-
let Stringifier =
|
|
7
|
+
let Stringifier = requireStringifier();
|
|
10
8
|
function stringify(node, builder) {
|
|
11
9
|
let str = new Stringifier(builder);
|
|
12
10
|
str.stringify(node);
|
|
@@ -15,5 +13,7 @@ function requireStringify() {
|
|
|
15
13
|
stringify.default = stringify;
|
|
16
14
|
return stringify_1;
|
|
17
15
|
}
|
|
18
|
-
|
|
16
|
+
export {
|
|
17
|
+
requireStringify as __require
|
|
18
|
+
};
|
|
19
19
|
//# sourceMappingURL=stringify.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stringify.js","sources":["../../../../../../node_modules/postcss/lib/stringify.js"],"sourcesContent":["'use strict'\n\nlet Stringifier = require('./stringifier')\n\nfunction stringify(node, builder) {\n let str = new Stringifier(builder)\n str.stringify(node)\n}\n\nmodule.exports = stringify\nstringify.default = stringify\n"],"names":["require$$0"],"mappings":"
|
|
1
|
+
{"version":3,"file":"stringify.js","sources":["../../../../../../node_modules/postcss/lib/stringify.js"],"sourcesContent":["'use strict'\n\nlet Stringifier = require('./stringifier')\n\nfunction stringify(node, builder) {\n let str = new Stringifier(builder)\n str.stringify(node)\n}\n\nmodule.exports = stringify\nstringify.default = stringify\n"],"names":["require$$0"],"mappings":";;;;;;AAEA,MAAI,cAAcA,mBAAA;AAElB,WAAS,UAAU,MAAM,SAAS;AAChC,QAAI,MAAM,IAAI,YAAY,OAAO;AACjC,QAAI,UAAU,IAAI;AAAA,EACpB;AAEA,gBAAiB;AACjB,YAAU,UAAU;;;","x_google_ignoreList":[0]}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const symbols = require("../../../_virtual/symbols.js");
|
|
1
|
+
import { __exports as symbols } from "../../../_virtual/symbols.js";
|
|
4
2
|
var hasRequiredSymbols;
|
|
5
3
|
function requireSymbols() {
|
|
6
|
-
if (hasRequiredSymbols) return symbols
|
|
4
|
+
if (hasRequiredSymbols) return symbols;
|
|
7
5
|
hasRequiredSymbols = 1;
|
|
8
|
-
symbols.
|
|
9
|
-
symbols.
|
|
10
|
-
return symbols
|
|
6
|
+
symbols.isClean = /* @__PURE__ */ Symbol("isClean");
|
|
7
|
+
symbols.my = /* @__PURE__ */ Symbol("my");
|
|
8
|
+
return symbols;
|
|
11
9
|
}
|
|
12
|
-
|
|
10
|
+
export {
|
|
11
|
+
requireSymbols as __require
|
|
12
|
+
};
|
|
13
13
|
//# sourceMappingURL=symbols.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"symbols.js","sources":["../../../../../../node_modules/postcss/lib/symbols.js"],"sourcesContent":["'use strict'\n\nmodule.exports.isClean = Symbol('isClean')\n\nmodule.exports.my = Symbol('my')\n"],"names":[
|
|
1
|
+
{"version":3,"file":"symbols.js","sources":["../../../../../../node_modules/postcss/lib/symbols.js"],"sourcesContent":["'use strict'\n\nmodule.exports.isClean = Symbol('isClean')\n\nmodule.exports.my = Symbol('my')\n"],"names":[],"mappings":";;;;;AAEA,UAAA,UAAyB,uBAAO,SAAS;AAEzC,UAAA,KAAoB,uBAAO,IAAI;;;","x_google_ignoreList":[0]}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
1
|
var tokenize;
|
|
4
2
|
var hasRequiredTokenize;
|
|
5
3
|
function requireTokenize() {
|
|
@@ -31,8 +29,8 @@ function requireTokenize() {
|
|
|
31
29
|
tokenize = function tokenizer(input, options = {}) {
|
|
32
30
|
let css = input.css.valueOf();
|
|
33
31
|
let ignore = options.ignoreErrors;
|
|
34
|
-
let code,
|
|
35
|
-
let escaped, escapePos,
|
|
32
|
+
let code, content, escape, next, quote;
|
|
33
|
+
let currentToken, escaped, escapePos, n, prev;
|
|
36
34
|
let length = css.length;
|
|
37
35
|
let pos = 0;
|
|
38
36
|
let buffer = [];
|
|
@@ -215,5 +213,7 @@ function requireTokenize() {
|
|
|
215
213
|
};
|
|
216
214
|
return tokenize;
|
|
217
215
|
}
|
|
218
|
-
|
|
216
|
+
export {
|
|
217
|
+
requireTokenize as __require
|
|
218
|
+
};
|
|
219
219
|
//# sourceMappingURL=tokenize.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokenize.js","sources":["../../../../../../node_modules/postcss/lib/tokenize.js"],"sourcesContent":["'use strict'\n\nconst SINGLE_QUOTE = \"'\".charCodeAt(0)\nconst DOUBLE_QUOTE = '\"'.charCodeAt(0)\nconst BACKSLASH = '\\\\'.charCodeAt(0)\nconst SLASH = '/'.charCodeAt(0)\nconst NEWLINE = '\\n'.charCodeAt(0)\nconst SPACE = ' '.charCodeAt(0)\nconst FEED = '\\f'.charCodeAt(0)\nconst TAB = '\\t'.charCodeAt(0)\nconst CR = '\\r'.charCodeAt(0)\nconst OPEN_SQUARE = '['.charCodeAt(0)\nconst CLOSE_SQUARE = ']'.charCodeAt(0)\nconst OPEN_PARENTHESES = '('.charCodeAt(0)\nconst CLOSE_PARENTHESES = ')'.charCodeAt(0)\nconst OPEN_CURLY = '{'.charCodeAt(0)\nconst CLOSE_CURLY = '}'.charCodeAt(0)\nconst SEMICOLON = ';'.charCodeAt(0)\nconst ASTERISK = '*'.charCodeAt(0)\nconst COLON = ':'.charCodeAt(0)\nconst AT = '@'.charCodeAt(0)\n\nconst RE_AT_END = /[\\t\\n\\f\\r \"#'()/;[\\\\\\]{}]/g\nconst RE_WORD_END = /[\\t\\n\\f\\r !\"#'():;@[\\\\\\]{}]|\\/(?=\\*)/g\nconst RE_BAD_BRACKET = /.[\\r\\n\"'(/\\\\]/\nconst RE_HEX_ESCAPE = /[\\da-f]/i\n\nmodule.exports = function tokenizer(input, options = {}) {\n let css = input.css.valueOf()\n let ignore = options.ignoreErrors\n\n let code, next, quote, content, escape\n let escaped, escapePos, prev, n, currentToken\n\n let length = css.length\n let pos = 0\n let buffer = []\n let returned = []\n\n function position() {\n return pos\n }\n\n function unclosed(what) {\n throw input.error('Unclosed ' + what, pos)\n }\n\n function endOfFile() {\n return returned.length === 0 && pos >= length\n }\n\n function nextToken(opts) {\n if (returned.length) return returned.pop()\n if (pos >= length) return\n\n let ignoreUnclosed = opts ? opts.ignoreUnclosed : false\n\n code = css.charCodeAt(pos)\n\n switch (code) {\n case NEWLINE:\n case SPACE:\n case TAB:\n case CR:\n case FEED: {\n next = pos\n do {\n next += 1\n code = css.charCodeAt(next)\n } while (\n code === SPACE ||\n code === NEWLINE ||\n code === TAB ||\n code === CR ||\n code === FEED\n )\n\n currentToken = ['space', css.slice(pos, next)]\n pos = next - 1\n break\n }\n\n case OPEN_SQUARE:\n case CLOSE_SQUARE:\n case OPEN_CURLY:\n case CLOSE_CURLY:\n case COLON:\n case SEMICOLON:\n case CLOSE_PARENTHESES: {\n let controlChar = String.fromCharCode(code)\n currentToken = [controlChar, controlChar, pos]\n break\n }\n\n case OPEN_PARENTHESES: {\n prev = buffer.length ? buffer.pop()[1] : ''\n n = css.charCodeAt(pos + 1)\n if (\n prev === 'url' &&\n n !== SINGLE_QUOTE &&\n n !== DOUBLE_QUOTE &&\n n !== SPACE &&\n n !== NEWLINE &&\n n !== TAB &&\n n !== FEED &&\n n !== CR\n ) {\n next = pos\n do {\n escaped = false\n next = css.indexOf(')', next + 1)\n if (next === -1) {\n if (ignore || ignoreUnclosed) {\n next = pos\n break\n } else {\n unclosed('bracket')\n }\n }\n escapePos = next\n while (css.charCodeAt(escapePos - 1) === BACKSLASH) {\n escapePos -= 1\n escaped = !escaped\n }\n } while (escaped)\n\n currentToken = ['brackets', css.slice(pos, next + 1), pos, next]\n\n pos = next\n } else {\n next = css.indexOf(')', pos + 1)\n content = css.slice(pos, next + 1)\n\n if (next === -1 || RE_BAD_BRACKET.test(content)) {\n currentToken = ['(', '(', pos]\n } else {\n currentToken = ['brackets', content, pos, next]\n pos = next\n }\n }\n\n break\n }\n\n case SINGLE_QUOTE:\n case DOUBLE_QUOTE: {\n quote = code === SINGLE_QUOTE ? \"'\" : '\"'\n next = pos\n do {\n escaped = false\n next = css.indexOf(quote, next + 1)\n if (next === -1) {\n if (ignore || ignoreUnclosed) {\n next = pos + 1\n break\n } else {\n unclosed('string')\n }\n }\n escapePos = next\n while (css.charCodeAt(escapePos - 1) === BACKSLASH) {\n escapePos -= 1\n escaped = !escaped\n }\n } while (escaped)\n\n currentToken = ['string', css.slice(pos, next + 1), pos, next]\n pos = next\n break\n }\n\n case AT: {\n RE_AT_END.lastIndex = pos + 1\n RE_AT_END.test(css)\n if (RE_AT_END.lastIndex === 0) {\n next = css.length - 1\n } else {\n next = RE_AT_END.lastIndex - 2\n }\n\n currentToken = ['at-word', css.slice(pos, next + 1), pos, next]\n\n pos = next\n break\n }\n\n case BACKSLASH: {\n next = pos\n escape = true\n while (css.charCodeAt(next + 1) === BACKSLASH) {\n next += 1\n escape = !escape\n }\n code = css.charCodeAt(next + 1)\n if (\n escape &&\n code !== SLASH &&\n code !== SPACE &&\n code !== NEWLINE &&\n code !== TAB &&\n code !== CR &&\n code !== FEED\n ) {\n next += 1\n if (RE_HEX_ESCAPE.test(css.charAt(next))) {\n while (RE_HEX_ESCAPE.test(css.charAt(next + 1))) {\n next += 1\n }\n if (css.charCodeAt(next + 1) === SPACE) {\n next += 1\n }\n }\n }\n\n currentToken = ['word', css.slice(pos, next + 1), pos, next]\n\n pos = next\n break\n }\n\n default: {\n if (code === SLASH && css.charCodeAt(pos + 1) === ASTERISK) {\n next = css.indexOf('*/', pos + 2) + 1\n if (next === 0) {\n if (ignore || ignoreUnclosed) {\n next = css.length\n } else {\n unclosed('comment')\n }\n }\n\n currentToken = ['comment', css.slice(pos, next + 1), pos, next]\n pos = next\n } else {\n RE_WORD_END.lastIndex = pos + 1\n RE_WORD_END.test(css)\n if (RE_WORD_END.lastIndex === 0) {\n next = css.length - 1\n } else {\n next = RE_WORD_END.lastIndex - 2\n }\n\n currentToken = ['word', css.slice(pos, next + 1), pos, next]\n buffer.push(currentToken)\n pos = next\n }\n\n break\n }\n }\n\n pos++\n return currentToken\n }\n\n function back(token) {\n returned.push(token)\n }\n\n return {\n back,\n endOfFile,\n nextToken,\n position\n }\n}\n"],"names":[],"mappings":";;;;;;;AAEA,QAAM,eAAe,IAAI,WAAW,CAAC;AACrC,QAAM,eAAe,IAAI,WAAW,CAAC;AACrC,QAAM,YAAY,KAAK,WAAW,CAAC;AACnC,QAAM,QAAQ,IAAI,WAAW,CAAC;AAC9B,QAAM,UAAU,KAAK,WAAW,CAAC;AACjC,QAAM,QAAQ,IAAI,WAAW,CAAC;AAC9B,QAAM,OAAO,KAAK,WAAW,CAAC;AAC9B,QAAM,MAAM,IAAK,WAAW,CAAC;AAC7B,QAAM,KAAK,KAAK,WAAW,CAAC;AAC5B,QAAM,cAAc,IAAI,WAAW,CAAC;AACpC,QAAM,eAAe,IAAI,WAAW,CAAC;AACrC,QAAM,mBAAmB,IAAI,WAAW,CAAC;AACzC,QAAM,oBAAoB,IAAI,WAAW,CAAC;AAC1C,QAAM,aAAa,IAAI,WAAW,CAAC;AACnC,QAAM,cAAc,IAAI,WAAW,CAAC;AACpC,QAAM,YAAY,IAAI,WAAW,CAAC;AAClC,QAAM,WAAW,IAAI,WAAW,CAAC;AACjC,QAAM,QAAQ,IAAI,WAAW,CAAC;AAC9B,QAAM,KAAK,IAAI,WAAW,CAAC;AAE3B,QAAM,YAAY;AAClB,QAAM,cAAc;AACpB,QAAM,iBAAiB;AACvB,QAAM,gBAAgB;AAEtB,aAAiB,SAAS,UAAU,OAAO,UAAU,CAAA,GAAI;AACvD,QAAI,MAAM,MAAM,IAAI,QAAO;AAC3B,QAAI,SAAS,QAAQ;AAErB,QAAI,MAAM,MAAM,OAAO,SAAS;AAChC,QAAI,SAAS,WAAW,MAAM,GAAG;AAEjC,QAAI,SAAS,IAAI;AACjB,QAAI,MAAM;AACV,QAAI,SAAS,CAAA;AACb,QAAI,WAAW,CAAA;AAEf,aAAS,WAAW;AAClB,aAAO;AAAA,IACX;AAEE,aAAS,SAAS,MAAM;A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AAA,YAChC,OAAiB;AACL,qBAAO,YAAY,YAAY;AAAA,YAC3C;AAEU,2BAAe,CAAC,QAAQ,IAAI,MAAM,KAAK,OAAO,CAAC,GAAG,KAAK,IAAI;AAC3D,mBAAO,KAAK,YAAY;AACxB,kBAAM;AAAA,UAChB;AAEQ;AAAA,QACR;AAAA,MACA;AAEI;AACA,aAAO;AAAA,IACX;AAEE,aAAS,KAAK,OAAO;AACnB,eAAS,KAAK,KAAK;AAAA,IACvB;AAEE,WAAO;AAAA,MACL;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACJ;AAAA,EACA;;;;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"tokenize.js","sources":["../../../../../../node_modules/postcss/lib/tokenize.js"],"sourcesContent":["'use strict'\n\nconst SINGLE_QUOTE = \"'\".charCodeAt(0)\nconst DOUBLE_QUOTE = '\"'.charCodeAt(0)\nconst BACKSLASH = '\\\\'.charCodeAt(0)\nconst SLASH = '/'.charCodeAt(0)\nconst NEWLINE = '\\n'.charCodeAt(0)\nconst SPACE = ' '.charCodeAt(0)\nconst FEED = '\\f'.charCodeAt(0)\nconst TAB = '\\t'.charCodeAt(0)\nconst CR = '\\r'.charCodeAt(0)\nconst OPEN_SQUARE = '['.charCodeAt(0)\nconst CLOSE_SQUARE = ']'.charCodeAt(0)\nconst OPEN_PARENTHESES = '('.charCodeAt(0)\nconst CLOSE_PARENTHESES = ')'.charCodeAt(0)\nconst OPEN_CURLY = '{'.charCodeAt(0)\nconst CLOSE_CURLY = '}'.charCodeAt(0)\nconst SEMICOLON = ';'.charCodeAt(0)\nconst ASTERISK = '*'.charCodeAt(0)\nconst COLON = ':'.charCodeAt(0)\nconst AT = '@'.charCodeAt(0)\n\nconst RE_AT_END = /[\\t\\n\\f\\r \"#'()/;[\\\\\\]{}]/g\nconst RE_WORD_END = /[\\t\\n\\f\\r !\"#'():;@[\\\\\\]{}]|\\/(?=\\*)/g\nconst RE_BAD_BRACKET = /.[\\r\\n\"'(/\\\\]/\nconst RE_HEX_ESCAPE = /[\\da-f]/i\n\nmodule.exports = function tokenizer(input, options = {}) {\n let css = input.css.valueOf()\n let ignore = options.ignoreErrors\n\n let code, content, escape, next, quote\n let currentToken, escaped, escapePos, n, prev\n\n let length = css.length\n let pos = 0\n let buffer = []\n let returned = []\n\n function position() {\n return pos\n }\n\n function unclosed(what) {\n throw input.error('Unclosed ' + what, pos)\n }\n\n function endOfFile() {\n return returned.length === 0 && pos >= length\n }\n\n function nextToken(opts) {\n if (returned.length) return returned.pop()\n if (pos >= length) return\n\n let ignoreUnclosed = opts ? opts.ignoreUnclosed : false\n\n code = css.charCodeAt(pos)\n\n switch (code) {\n case NEWLINE:\n case SPACE:\n case TAB:\n case CR:\n case FEED: {\n next = pos\n do {\n next += 1\n code = css.charCodeAt(next)\n } while (\n code === SPACE ||\n code === NEWLINE ||\n code === TAB ||\n code === CR ||\n code === FEED\n )\n\n currentToken = ['space', css.slice(pos, next)]\n pos = next - 1\n break\n }\n\n case OPEN_SQUARE:\n case CLOSE_SQUARE:\n case OPEN_CURLY:\n case CLOSE_CURLY:\n case COLON:\n case SEMICOLON:\n case CLOSE_PARENTHESES: {\n let controlChar = String.fromCharCode(code)\n currentToken = [controlChar, controlChar, pos]\n break\n }\n\n case OPEN_PARENTHESES: {\n prev = buffer.length ? buffer.pop()[1] : ''\n n = css.charCodeAt(pos + 1)\n if (\n prev === 'url' &&\n n !== SINGLE_QUOTE &&\n n !== DOUBLE_QUOTE &&\n n !== SPACE &&\n n !== NEWLINE &&\n n !== TAB &&\n n !== FEED &&\n n !== CR\n ) {\n next = pos\n do {\n escaped = false\n next = css.indexOf(')', next + 1)\n if (next === -1) {\n if (ignore || ignoreUnclosed) {\n next = pos\n break\n } else {\n unclosed('bracket')\n }\n }\n escapePos = next\n while (css.charCodeAt(escapePos - 1) === BACKSLASH) {\n escapePos -= 1\n escaped = !escaped\n }\n } while (escaped)\n\n currentToken = ['brackets', css.slice(pos, next + 1), pos, next]\n\n pos = next\n } else {\n next = css.indexOf(')', pos + 1)\n content = css.slice(pos, next + 1)\n\n if (next === -1 || RE_BAD_BRACKET.test(content)) {\n currentToken = ['(', '(', pos]\n } else {\n currentToken = ['brackets', content, pos, next]\n pos = next\n }\n }\n\n break\n }\n\n case SINGLE_QUOTE:\n case DOUBLE_QUOTE: {\n quote = code === SINGLE_QUOTE ? \"'\" : '\"'\n next = pos\n do {\n escaped = false\n next = css.indexOf(quote, next + 1)\n if (next === -1) {\n if (ignore || ignoreUnclosed) {\n next = pos + 1\n break\n } else {\n unclosed('string')\n }\n }\n escapePos = next\n while (css.charCodeAt(escapePos - 1) === BACKSLASH) {\n escapePos -= 1\n escaped = !escaped\n }\n } while (escaped)\n\n currentToken = ['string', css.slice(pos, next + 1), pos, next]\n pos = next\n break\n }\n\n case AT: {\n RE_AT_END.lastIndex = pos + 1\n RE_AT_END.test(css)\n if (RE_AT_END.lastIndex === 0) {\n next = css.length - 1\n } else {\n next = RE_AT_END.lastIndex - 2\n }\n\n currentToken = ['at-word', css.slice(pos, next + 1), pos, next]\n\n pos = next\n break\n }\n\n case BACKSLASH: {\n next = pos\n escape = true\n while (css.charCodeAt(next + 1) === BACKSLASH) {\n next += 1\n escape = !escape\n }\n code = css.charCodeAt(next + 1)\n if (\n escape &&\n code !== SLASH &&\n code !== SPACE &&\n code !== NEWLINE &&\n code !== TAB &&\n code !== CR &&\n code !== FEED\n ) {\n next += 1\n if (RE_HEX_ESCAPE.test(css.charAt(next))) {\n while (RE_HEX_ESCAPE.test(css.charAt(next + 1))) {\n next += 1\n }\n if (css.charCodeAt(next + 1) === SPACE) {\n next += 1\n }\n }\n }\n\n currentToken = ['word', css.slice(pos, next + 1), pos, next]\n\n pos = next\n break\n }\n\n default: {\n if (code === SLASH && css.charCodeAt(pos + 1) === ASTERISK) {\n next = css.indexOf('*/', pos + 2) + 1\n if (next === 0) {\n if (ignore || ignoreUnclosed) {\n next = css.length\n } else {\n unclosed('comment')\n }\n }\n\n currentToken = ['comment', css.slice(pos, next + 1), pos, next]\n pos = next\n } else {\n RE_WORD_END.lastIndex = pos + 1\n RE_WORD_END.test(css)\n if (RE_WORD_END.lastIndex === 0) {\n next = css.length - 1\n } else {\n next = RE_WORD_END.lastIndex - 2\n }\n\n currentToken = ['word', css.slice(pos, next + 1), pos, next]\n buffer.push(currentToken)\n pos = next\n }\n\n break\n }\n }\n\n pos++\n return currentToken\n }\n\n function back(token) {\n returned.push(token)\n }\n\n return {\n back,\n endOfFile,\n nextToken,\n position\n }\n}\n"],"names":[],"mappings":";;;;;AAEA,QAAM,eAAe,IAAI,WAAW,CAAC;AACrC,QAAM,eAAe,IAAI,WAAW,CAAC;AACrC,QAAM,YAAY,KAAK,WAAW,CAAC;AACnC,QAAM,QAAQ,IAAI,WAAW,CAAC;AAC9B,QAAM,UAAU,KAAK,WAAW,CAAC;AACjC,QAAM,QAAQ,IAAI,WAAW,CAAC;AAC9B,QAAM,OAAO,KAAK,WAAW,CAAC;AAC9B,QAAM,MAAM,IAAK,WAAW,CAAC;AAC7B,QAAM,KAAK,KAAK,WAAW,CAAC;AAC5B,QAAM,cAAc,IAAI,WAAW,CAAC;AACpC,QAAM,eAAe,IAAI,WAAW,CAAC;AACrC,QAAM,mBAAmB,IAAI,WAAW,CAAC;AACzC,QAAM,oBAAoB,IAAI,WAAW,CAAC;AAC1C,QAAM,aAAa,IAAI,WAAW,CAAC;AACnC,QAAM,cAAc,IAAI,WAAW,CAAC;AACpC,QAAM,YAAY,IAAI,WAAW,CAAC;AAClC,QAAM,WAAW,IAAI,WAAW,CAAC;AACjC,QAAM,QAAQ,IAAI,WAAW,CAAC;AAC9B,QAAM,KAAK,IAAI,WAAW,CAAC;AAE3B,QAAM,YAAY;AAClB,QAAM,cAAc;AACpB,QAAM,iBAAiB;AACvB,QAAM,gBAAgB;AAEtB,aAAiB,SAAS,UAAU,OAAO,UAAU,CAAA,GAAI;AACvD,QAAI,MAAM,MAAM,IAAI,QAAO;AAC3B,Q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S,SAAS;AAAA,cAChC;AAAA,YACA;AAEU,2BAAe,CAAC,WAAW,IAAI,MAAM,KAAK,OAAO,CAAC,GAAG,KAAK,IAAI;AAC9D,kBAAM;AAAA,UAChB,OAAe;AACL,wBAAY,YAAY,MAAM;AAC9B,wBAAY,KAAK,GAAG;AACpB,gBAAI,YAAY,cAAc,GAAG;AAC/B,qBAAO,IAAI,SAAS;AAAA,YAChC,OAAiB;AACL,qBAAO,YAAY,YAAY;AAAA,YAC3C;AAEU,2BAAe,CAAC,QAAQ,IAAI,MAAM,KAAK,OAAO,CAAC,GAAG,KAAK,IAAI;AAC3D,mBAAO,KAAK,YAAY;AACxB,kBAAM;AAAA,UAChB;AAEQ;AAAA,QACR;AAAA,MACA;AAEI;AACA,aAAO;AAAA,IACX;AAEE,aAAS,KAAK,OAAO;AACnB,eAAS,KAAK,KAAK;AAAA,IACvB;AAEE,WAAO;AAAA,MACL;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACJ;AAAA,EACA;;;","x_google_ignoreList":[0]}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
1
|
var warning;
|
|
4
2
|
var hasRequiredWarning;
|
|
5
3
|
function requireWarning() {
|
|
@@ -36,5 +34,7 @@ function requireWarning() {
|
|
|
36
34
|
Warning.default = Warning;
|
|
37
35
|
return warning;
|
|
38
36
|
}
|
|
39
|
-
|
|
37
|
+
export {
|
|
38
|
+
requireWarning as __require
|
|
39
|
+
};
|
|
40
40
|
//# sourceMappingURL=warning.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"warning.js","sources":["../../../../../../node_modules/postcss/lib/warning.js"],"sourcesContent":["'use strict'\n\nclass Warning {\n constructor(text, opts = {}) {\n this.type = 'warning'\n this.text = text\n\n if (opts.node && opts.node.source) {\n let range = opts.node.rangeBy(opts)\n this.line = range.start.line\n this.column = range.start.column\n this.endLine = range.end.line\n this.endColumn = range.end.column\n }\n\n for (let opt in opts) this[opt] = opts[opt]\n }\n\n toString() {\n if (this.node) {\n return this.node.error(this.text, {\n index: this.index,\n plugin: this.plugin,\n word: this.word\n }).message\n }\n\n if (this.plugin) {\n return this.plugin + ': ' + this.text\n }\n\n return this.text\n }\n}\n\nmodule.exports = Warning\nWarning.default = Warning\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"warning.js","sources":["../../../../../../node_modules/postcss/lib/warning.js"],"sourcesContent":["'use strict'\n\nclass Warning {\n constructor(text, opts = {}) {\n this.type = 'warning'\n this.text = text\n\n if (opts.node && opts.node.source) {\n let range = opts.node.rangeBy(opts)\n this.line = range.start.line\n this.column = range.start.column\n this.endLine = range.end.line\n this.endColumn = range.end.column\n }\n\n for (let opt in opts) this[opt] = opts[opt]\n }\n\n toString() {\n if (this.node) {\n return this.node.error(this.text, {\n index: this.index,\n plugin: this.plugin,\n word: this.word\n }).message\n }\n\n if (this.plugin) {\n return this.plugin + ': ' + this.text\n }\n\n return this.text\n }\n}\n\nmodule.exports = Warning\nWarning.default = Warning\n"],"names":[],"mappings":";;;;;EAEA,MAAM,QAAQ;AAAA,IACZ,YAAY,MAAM,OAAO,IAAI;AAC3B,WAAK,OAAO;AACZ,WAAK,OAAO;AAEZ,UAAI,KAAK,QAAQ,KAAK,KAAK,QAAQ;AACjC,YAAI,QAAQ,KAAK,KAAK,QAAQ,IAAI;AAClC,aAAK,OAAO,MAAM,MAAM;AACxB,aAAK,SAAS,MAAM,MAAM;AAC1B,aAAK,UAAU,MAAM,IAAI;AACzB,aAAK,YAAY,MAAM,IAAI;AAAA,MACjC;AAEI,eAAS,OAAO,KAAM,MAAK,GAAG,IAAI,KAAK,GAAG;AAAA,IAC9C;AAAA,IAEE,WAAW;AACT,UAAI,KAAK,MAAM;AACb,eAAO,KAAK,KAAK,MAAM,KAAK,MAAM;AAAA,UAChC,OAAO,KAAK;AAAA,UACZ,QAAQ,KAAK;AAAA,UACb,MAAM,KAAK;AAAA,QACnB,CAAO,EAAE;AAAA,MACT;AAEI,UAAI,KAAK,QAAQ;AACf,eAAO,KAAK,SAAS,OAAO,KAAK;AAAA,MACvC;AAEI,aAAO,KAAK;AAAA,IAChB;AAAA,EACA;AAEA,YAAiB;AACjB,UAAQ,UAAU;;;","x_google_ignoreList":[0]}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
1
|
var src;
|
|
4
2
|
var hasRequiredSrc;
|
|
5
3
|
function requireSrc() {
|
|
@@ -126,5 +124,7 @@ function requireSrc() {
|
|
|
126
124
|
src = pluginCreator;
|
|
127
125
|
return src;
|
|
128
126
|
}
|
|
129
|
-
|
|
127
|
+
export {
|
|
128
|
+
requireSrc as __require
|
|
129
|
+
};
|
|
130
130
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../node_modules/postcss-discard-duplicates/src/index.js"],"sourcesContent":["'use strict';\n/**\n * @param {string | undefined} value\n * @return {string | undefined}\n */\nfunction trimValue(value) {\n return value ? value.trim() : value;\n}\n\n/**\n * @param {{nodes: import('postcss').Node[]}} node\n * @return {boolean}\n */\nfunction empty(node) {\n return !node.nodes.filter((child) => child.type !== 'comment').length;\n}\n\n/**\n * @param {import('postcss').AnyNode} nodeA\n * @param {import('postcss').AnyNode} nodeB\n * @return {boolean}\n */\nfunction equals(nodeA, nodeB) {\n const a = /** @type {any} */ (nodeA);\n const b = /** @type {any} */ (nodeB);\n if (a.type !== b.type) {\n return false;\n }\n\n if (a.important !== b.important) {\n return false;\n }\n\n if ((a.raws && !b.raws) || (!a.raws && b.raws)) {\n return false;\n }\n\n switch (a.type) {\n case 'rule':\n if (a.selector !== b.selector) {\n return false;\n }\n break;\n case 'atrule':\n if (a.name !== b.name || a.params !== b.params) {\n return false;\n }\n\n if (a.raws && trimValue(a.raws.before) !== trimValue(b.raws.before)) {\n return false;\n }\n\n if (\n a.raws &&\n trimValue(a.raws.afterName) !== trimValue(b.raws.afterName)\n ) {\n return false;\n }\n break;\n case 'decl':\n if (a.prop !== b.prop || a.value !== b.value) {\n return false;\n }\n\n if (a.raws && trimValue(a.raws.before) !== trimValue(b.raws.before)) {\n return false;\n }\n break;\n }\n\n if (a.nodes) {\n if (a.nodes.length !== b.nodes.length) {\n return false;\n }\n\n for (let i = 0; i < a.nodes.length; i++) {\n if (!equals(a.nodes[i], b.nodes[i])) {\n return false;\n }\n }\n }\n return true;\n}\n\n/**\n * @param {import('postcss').Rule} last\n * @param {import('postcss').AnyNode[]} nodes\n * @return {void}\n */\nfunction dedupeRule(last, nodes) {\n let index = nodes.indexOf(last) - 1;\n while (index >= 0) {\n const node = nodes[index--];\n if (node && node.type === 'rule' && node.selector === last.selector) {\n last.each((child) => {\n if (child.type === 'decl') {\n dedupeNode(child, node.nodes);\n }\n });\n\n if (empty(node)) {\n node.remove();\n }\n }\n }\n}\n\n/**\n * @param {import('postcss').AtRule | import('postcss').Declaration} last\n * @param {import('postcss').AnyNode[]} nodes\n * @return {void}\n */\nfunction dedupeNode(last, nodes) {\n let index = nodes.includes(last) ? nodes.indexOf(last) - 1 : nodes.length - 1;\n\n while (index >= 0) {\n const node = nodes[index--];\n if (node && equals(node, last)) {\n node.remove();\n }\n }\n}\n\n/**\n * @param {import('postcss').AnyNode} root\n * @return {void}\n */\nfunction dedupe(root) {\n const { nodes } =\n /** @type {import('postcss').Container<import('postcss').ChildNode>} */ (\n root\n );\n\n if (!nodes) {\n return;\n }\n\n let index = nodes.length - 1;\n while (index >= 0) {\n let last = nodes[index--];\n if (!last || !last.parent) {\n continue;\n }\n dedupe(last);\n if (last.type === 'rule') {\n dedupeRule(last, nodes);\n } else if (last.type === 'atrule' || last.type === 'decl') {\n dedupeNode(last, nodes);\n }\n }\n}\n\n/**\n * @type {import('postcss').PluginCreator<void>}\n * @return {import('postcss').Plugin}\n */\nfunction pluginCreator() {\n return {\n postcssPlugin: 'postcss-discard-duplicates',\n OnceExit(css) {\n dedupe(css);\n },\n };\n}\n\npluginCreator.postcss = true;\nmodule.exports = pluginCreator;\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../node_modules/postcss-discard-duplicates/src/index.js"],"sourcesContent":["'use strict';\n/**\n * @param {string | undefined} value\n * @return {string | undefined}\n */\nfunction trimValue(value) {\n return value ? value.trim() : value;\n}\n\n/**\n * @param {{nodes: import('postcss').Node[]}} node\n * @return {boolean}\n */\nfunction empty(node) {\n return !node.nodes.filter((child) => child.type !== 'comment').length;\n}\n\n/**\n * @param {import('postcss').AnyNode} nodeA\n * @param {import('postcss').AnyNode} nodeB\n * @return {boolean}\n */\nfunction equals(nodeA, nodeB) {\n const a = /** @type {any} */ (nodeA);\n const b = /** @type {any} */ (nodeB);\n if (a.type !== b.type) {\n return false;\n }\n\n if (a.important !== b.important) {\n return false;\n }\n\n if ((a.raws && !b.raws) || (!a.raws && b.raws)) {\n return false;\n }\n\n switch (a.type) {\n case 'rule':\n if (a.selector !== b.selector) {\n return false;\n }\n break;\n case 'atrule':\n if (a.name !== b.name || a.params !== b.params) {\n return false;\n }\n\n if (a.raws && trimValue(a.raws.before) !== trimValue(b.raws.before)) {\n return false;\n }\n\n if (\n a.raws &&\n trimValue(a.raws.afterName) !== trimValue(b.raws.afterName)\n ) {\n return false;\n }\n break;\n case 'decl':\n if (a.prop !== b.prop || a.value !== b.value) {\n return false;\n }\n\n if (a.raws && trimValue(a.raws.before) !== trimValue(b.raws.before)) {\n return false;\n }\n break;\n }\n\n if (a.nodes) {\n if (a.nodes.length !== b.nodes.length) {\n return false;\n }\n\n for (let i = 0; i < a.nodes.length; i++) {\n if (!equals(a.nodes[i], b.nodes[i])) {\n return false;\n }\n }\n }\n return true;\n}\n\n/**\n * @param {import('postcss').Rule} last\n * @param {import('postcss').AnyNode[]} nodes\n * @return {void}\n */\nfunction dedupeRule(last, nodes) {\n let index = nodes.indexOf(last) - 1;\n while (index >= 0) {\n const node = nodes[index--];\n if (node && node.type === 'rule' && node.selector === last.selector) {\n last.each((child) => {\n if (child.type === 'decl') {\n dedupeNode(child, node.nodes);\n }\n });\n\n if (empty(node)) {\n node.remove();\n }\n }\n }\n}\n\n/**\n * @param {import('postcss').AtRule | import('postcss').Declaration} last\n * @param {import('postcss').AnyNode[]} nodes\n * @return {void}\n */\nfunction dedupeNode(last, nodes) {\n let index = nodes.includes(last) ? nodes.indexOf(last) - 1 : nodes.length - 1;\n\n while (index >= 0) {\n const node = nodes[index--];\n if (node && equals(node, last)) {\n node.remove();\n }\n }\n}\n\n/**\n * @param {import('postcss').AnyNode} root\n * @return {void}\n */\nfunction dedupe(root) {\n const { nodes } =\n /** @type {import('postcss').Container<import('postcss').ChildNode>} */ (\n root\n );\n\n if (!nodes) {\n return;\n }\n\n let index = nodes.length - 1;\n while (index >= 0) {\n let last = nodes[index--];\n if (!last || !last.parent) {\n continue;\n }\n dedupe(last);\n if (last.type === 'rule') {\n dedupeRule(last, nodes);\n } else if (last.type === 'atrule' || last.type === 'decl') {\n dedupeNode(last, nodes);\n }\n }\n}\n\n/**\n * @type {import('postcss').PluginCreator<void>}\n * @return {import('postcss').Plugin}\n */\nfunction pluginCreator() {\n return {\n postcssPlugin: 'postcss-discard-duplicates',\n OnceExit(css) {\n dedupe(css);\n },\n };\n}\n\npluginCreator.postcss = true;\nmodule.exports = pluginCreator;\n"],"names":[],"mappings":";;;;;AAKA,WAAS,UAAU,OAAO;AACxB,WAAO,QAAQ,MAAM,KAAI,IAAK;AAAA,EAChC;AAMA,WAAS,MAAM,MAAM;AACnB,WAAO,CAAC,KAAK,MAAM,OAAO,CAAC,UAAU,MAAM,SAAS,SAAS,EAAE;AAAA,EACjE;AAOA,WAAS,OAAO,OAAO,OAAO;AAC5B,UAAM;AAAA;AAAA,MAAwB;AAAA;AAC9B,UAAM;AAAA;AAAA,MAAwB;AAAA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0]}
|
package/dist/slots/create.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
1
|
const createEmptySlot = (type) => {
|
|
4
2
|
const slot = document.createElement("slot");
|
|
5
3
|
slot.setAttribute("name", type);
|
|
@@ -46,5 +44,7 @@ const createSlot = ({
|
|
|
46
44
|
}
|
|
47
45
|
return isDefaultStyling ? processDefaultStyling(element, type) : createEmptySlot(type);
|
|
48
46
|
};
|
|
49
|
-
|
|
47
|
+
export {
|
|
48
|
+
createSlot
|
|
49
|
+
};
|
|
50
50
|
//# sourceMappingURL=create.js.map
|
package/dist/slots/create.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.js","sources":["../../source/slots/create.ts"],"sourcesContent":["/**\n * Base properties required for slot creation\n */\nexport interface BaseProps {\n /** The HTML element to extract slot content from */\n element: HTMLElement;\n}\n\ninterface BaseConfig extends BaseProps {\n type: string;\n}\n\n/**\n * Optional properties for slot configuration\n */\nexport interface OptionalProps {\n /** Whether to apply default styling to the slot content */\n isDefaultStyling: boolean;\n /** Whether this slot is required */\n isRequired: boolean;\n}\n\ninterface ValidatonErrors {\n errors: string[];\n}\n\ninterface SlotValidation extends ValidatonErrors {\n isValid: boolean;\n}\n\ntype SlotConfig = BaseConfig & Partial<OptionalProps>;\n\n/**\n * Result type for slot creation operations\n * Returns either the processed slot element or null if not found\n */\nexport type SlotResult = HTMLElement | null;\n\nconst createEmptySlot = (type: string): HTMLSlotElement => {\n const slot = document.createElement('slot');\n slot.setAttribute('name', type);\n return slot;\n};\n\nconst validateSlotRequirements = (\n element: HTMLElement,\n type: string,\n isRequired: boolean,\n): SlotValidation => {\n const errors: string[] = [];\n const slottedContent = element.querySelector(`[slot=\"${type}\"]`);\n\n if (isRequired && !slottedContent) {\n errors.push(`Required slot \"${type}\" is missing in ${element.tagName}`);\n }\n\n return {\n isValid: errors.length === 0,\n errors,\n };\n};\n\nconst cloneWithoutSlotAttribute = (element: HTMLElement): HTMLElement => {\n const clone = element.cloneNode(true) as HTMLElement;\n clone.removeAttribute('slot');\n return clone;\n};\n\nconst processDefaultStyling = (\n element: HTMLElement,\n slotRef: string,\n): SlotResult => {\n const elementRef = element.querySelector(\n `:scope > [slot=${slotRef}]`,\n ) as HTMLElement;\n\n if (!elementRef) {\n return null;\n }\n\n return elementRef.hasAttribute('styled')\n ? createEmptySlot(slotRef)\n : cloneWithoutSlotAttribute(elementRef);\n};\n\nconst createSlot = ({\n element,\n type,\n isDefaultStyling = true,\n isRequired = false,\n}: SlotConfig): SlotResult => {\n const validation = validateSlotRequirements(element, type, isRequired);\n if (!validation.isValid) {\n return null;\n }\n\n const slottedContent = element.querySelector(`[slot=\"${type}\"]`);\n if (!slottedContent) {\n return null;\n }\n\n return isDefaultStyling\n ? processDefaultStyling(element, type)\n : createEmptySlot(type);\n};\n\nexport { createSlot };\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"create.js","sources":["../../source/slots/create.ts"],"sourcesContent":["/**\n * Base properties required for slot creation\n */\nexport interface BaseProps {\n /** The HTML element to extract slot content from */\n element: HTMLElement;\n}\n\ninterface BaseConfig extends BaseProps {\n type: string;\n}\n\n/**\n * Optional properties for slot configuration\n */\nexport interface OptionalProps {\n /** Whether to apply default styling to the slot content */\n isDefaultStyling: boolean;\n /** Whether this slot is required */\n isRequired: boolean;\n}\n\ninterface ValidatonErrors {\n errors: string[];\n}\n\ninterface SlotValidation extends ValidatonErrors {\n isValid: boolean;\n}\n\ntype SlotConfig = BaseConfig & Partial<OptionalProps>;\n\n/**\n * Result type for slot creation operations\n * Returns either the processed slot element or null if not found\n */\nexport type SlotResult = HTMLElement | null;\n\nconst createEmptySlot = (type: string): HTMLSlotElement => {\n const slot = document.createElement('slot');\n slot.setAttribute('name', type);\n return slot;\n};\n\nconst validateSlotRequirements = (\n element: HTMLElement,\n type: string,\n isRequired: boolean,\n): SlotValidation => {\n const errors: string[] = [];\n const slottedContent = element.querySelector(`[slot=\"${type}\"]`);\n\n if (isRequired && !slottedContent) {\n errors.push(`Required slot \"${type}\" is missing in ${element.tagName}`);\n }\n\n return {\n isValid: errors.length === 0,\n errors,\n };\n};\n\nconst cloneWithoutSlotAttribute = (element: HTMLElement): HTMLElement => {\n const clone = element.cloneNode(true) as HTMLElement;\n clone.removeAttribute('slot');\n return clone;\n};\n\nconst processDefaultStyling = (\n element: HTMLElement,\n slotRef: string,\n): SlotResult => {\n const elementRef = element.querySelector(\n `:scope > [slot=${slotRef}]`,\n ) as HTMLElement;\n\n if (!elementRef) {\n return null;\n }\n\n return elementRef.hasAttribute('styled')\n ? createEmptySlot(slotRef)\n : cloneWithoutSlotAttribute(elementRef);\n};\n\nconst createSlot = ({\n element,\n type,\n isDefaultStyling = true,\n isRequired = false,\n}: SlotConfig): SlotResult => {\n const validation = validateSlotRequirements(element, type, isRequired);\n if (!validation.isValid) {\n return null;\n }\n\n const slottedContent = element.querySelector(`[slot=\"${type}\"]`);\n if (!slottedContent) {\n return null;\n }\n\n return isDefaultStyling\n ? processDefaultStyling(element, type)\n : createEmptySlot(type);\n};\n\nexport { createSlot };\n"],"names":[],"mappings":"AAsCA,MAAM,kBAAkB,CAAC,SAAkC;AACzD,QAAM,OAAO,SAAS,cAAc,MAAM;AAC1C,OAAK,aAAa,QAAQ,IAAI;AAC9B,SAAO;AACT;AAEA,MAAM,2BAA2B,CAC/B,SACA,MACA,eACmB;AACnB,QAAM,SAAmB,CAAA;AACzB,QAAM,iBAAiB,QAAQ,cAAc,UAAU,IAAI,IAAI;AAE/D,MAAI,cAAc,CAAC,gBAAgB;AACjC,WAAO,KAAK,kBAAkB,IAAI,mBAAmB,QAAQ,OAAO,EAAE;AAAA,EACxE;AAEA,SAAO;AAAA,IACL,SAAS,OAAO,WAAW;AAAA,IAC3B;AAAA,EAAA;AAEJ;AAEA,MAAM,4BAA4B,CAAC,YAAsC;AACvE,QAAM,QAAQ,QAAQ,UAAU,IAAI;AACpC,QAAM,gBAAgB,MAAM;AAC5B,SAAO;AACT;AAEA,MAAM,wBAAwB,CAC5B,SACA,YACe;AACf,QAAM,aAAa,QAAQ;AAAA,IACzB,kBAAkB,OAAO;AAAA,EAAA;AAG3B,MAAI,CAAC,YAAY;AACf,WAAO;AAAA,EACT;AAEA,SAAO,WAAW,aAAa,QAAQ,IACnC,gBAAgB,OAAO,IACvB,0BAA0B,UAAU;AAC1C;AAEA,MAAM,aAAa,CAAC;AAAA,EAClB;AAAA,EACA;AAAA,EACA,mBAAmB;AAAA,EACnB,aAAa;AACf,MAA8B;AAC5B,QAAM,aAAa,yBAAyB,SAAS,MAAM,UAAU;AACrE,MAAI,CAAC,WAAW,SAAS;AACvB,WAAO;AAAA,EACT;AAEA,QAAM,iBAAiB,QAAQ,cAAc,UAAU,IAAI,IAAI;AAC/D,MAAI,CAAC,gBAAgB;AACnB,WAAO;AAAA,EACT;AAEA,SAAO,mBACH,sBAAsB,SAAS,IAAI,IACnC,gBAAgB,IAAI;AAC1B;"}
|
package/dist/slots/element.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
1
|
const subHeadlineElements = ["h2", "h3", "h4", "h5", "h6", "p", "a", "span"];
|
|
4
2
|
const textElements = ["div", "p", "span", "strong"];
|
|
5
3
|
const allowed = {
|
|
@@ -38,5 +36,7 @@ const allowed = {
|
|
|
38
36
|
allowedElements: ["time"]
|
|
39
37
|
}
|
|
40
38
|
};
|
|
41
|
-
|
|
39
|
+
export {
|
|
40
|
+
allowed
|
|
41
|
+
};
|
|
42
42
|
//# sourceMappingURL=element.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"element.js","sources":["../../source/slots/element.ts"],"sourcesContent":["/**\n * Common Slot Configurations\n *\n * This module provides pre-defined slot configurations that are commonly used\n * across multiple components. These configurations ensure consistency in how\n * components accept and validate slotted content.\n */\n\nimport type { SlotConfig } from '../_types';\n\nconst subHeadlineElements = ['h2', 'h3', 'h4', 'h5', 'h6', 'p', 'a', 'span'];\nconst textElements = ['div', 'p', 'span', 'strong'];\n\n/**\n * Common slot configurations used across multiple components\n *\n * These pre-defined configurations promote consistency and reduce duplication\n * when defining component slots.\n */\nexport const allowed: Record<string, SlotConfig> = {\n actions: {\n allowedElements: ['div', 'a', 'button', 'umd-element-call-to-action'],\n },\n body: {\n deprecated:\n 'Use \"text\" instead. This attribute will be removed in version 2.0.',\n allowedElements: [...textElements],\n },\n content: {\n allowedElements: ['div'],\n },\n eyebrow: {\n allowedElements: ['span', 'p'],\n },\n headline: {\n allowedElements: ['h1', ...subHeadlineElements],\n },\n image: {\n allowedElements: ['img'],\n },\n images: {\n allowedElements: ['div'],\n },\n imageLink: {\n allowedElements: ['img', 'a'],\n },\n subHeadline: {\n allowedElements: subHeadlineElements,\n },\n text: {\n allowedElements: [...textElements],\n },\n time: {\n allowedElements: ['time'],\n },\n};\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"element.js","sources":["../../source/slots/element.ts"],"sourcesContent":["/**\n * Common Slot Configurations\n *\n * This module provides pre-defined slot configurations that are commonly used\n * across multiple components. These configurations ensure consistency in how\n * components accept and validate slotted content.\n */\n\nimport type { SlotConfig } from '../_types';\n\nconst subHeadlineElements = ['h2', 'h3', 'h4', 'h5', 'h6', 'p', 'a', 'span'];\nconst textElements = ['div', 'p', 'span', 'strong'];\n\n/**\n * Common slot configurations used across multiple components\n *\n * These pre-defined configurations promote consistency and reduce duplication\n * when defining component slots.\n */\nexport const allowed: Record<string, SlotConfig> = {\n actions: {\n allowedElements: ['div', 'a', 'button', 'umd-element-call-to-action'],\n },\n body: {\n deprecated:\n 'Use \"text\" instead. This attribute will be removed in version 2.0.',\n allowedElements: [...textElements],\n },\n content: {\n allowedElements: ['div'],\n },\n eyebrow: {\n allowedElements: ['span', 'p'],\n },\n headline: {\n allowedElements: ['h1', ...subHeadlineElements],\n },\n image: {\n allowedElements: ['img'],\n },\n images: {\n allowedElements: ['div'],\n },\n imageLink: {\n allowedElements: ['img', 'a'],\n },\n subHeadline: {\n allowedElements: subHeadlineElements,\n },\n text: {\n allowedElements: [...textElements],\n },\n time: {\n allowedElements: ['time'],\n },\n};\n"],"names":[],"mappings":"AAUA,MAAM,sBAAsB,CAAC,MAAM,MAAM,MAAM,MAAM,MAAM,KAAK,KAAK,MAAM;AAC3E,MAAM,eAAe,CAAC,OAAO,KAAK,QAAQ,QAAQ;AAQ3C,MAAM,UAAsC;AAAA,EACjD,SAAS;AAAA,IACP,iBAAiB,CAAC,OAAO,KAAK,UAAU,4BAA4B;AAAA,EAAA;AAAA,EAEtE,MAAM;AAAA,IACJ,YACE;AAAA,IACF,iBAAiB,CAAC,GAAG,YAAY;AAAA,EAAA;AAAA,EAEnC,SAAS;AAAA,IACP,iBAAiB,CAAC,KAAK;AAAA,EAAA;AAAA,EAEzB,SAAS;AAAA,IACP,iBAAiB,CAAC,QAAQ,GAAG;AAAA,EAAA;AAAA,EAE/B,UAAU;AAAA,IACR,iBAAiB,CAAC,MAAM,GAAG,mBAAmB;AAAA,EAAA;AAAA,EAEhD,OAAO;AAAA,IACL,iBAAiB,CAAC,KAAK;AAAA,EAAA;AAAA,EAEzB,QAAQ;AAAA,IACN,iBAAiB,CAAC,KAAK;AAAA,EAAA;AAAA,EAEzB,WAAW;AAAA,IACT,iBAAiB,CAAC,OAAO,GAAG;AAAA,EAAA;AAAA,EAE9B,aAAa;AAAA,IACX,iBAAiB;AAAA,EAAA;AAAA,EAEnB,MAAM;AAAA,IACJ,iBAAiB,CAAC,GAAG,YAAY;AAAA,EAAA;AAAA,EAEnC,MAAM;AAAA,IACJ,iBAAiB,CAAC,MAAM;AAAA,EAAA;AAE5B;"}
|
package/dist/slots/index.d.ts
CHANGED
|
@@ -2,30 +2,30 @@ import { SlotName } from './mapping';
|
|
|
2
2
|
import { BaseProps, OptionalProps } from './create';
|
|
3
3
|
import * as element from './element';
|
|
4
4
|
export type SlotProps = BaseProps & Partial<OptionalProps>;
|
|
5
|
-
declare const
|
|
6
|
-
allowed: Record<string, import('..').SlotConfig>;
|
|
7
|
-
actions: {
|
|
5
|
+
export declare const Slots: {
|
|
6
|
+
readonly allowed: Record<string, import('..').SlotConfig>;
|
|
7
|
+
readonly actions: {
|
|
8
8
|
readonly default: (props: SlotProps) => import('./create').SlotResult;
|
|
9
9
|
};
|
|
10
|
-
assets: {
|
|
10
|
+
readonly assets: {
|
|
11
11
|
readonly image: (props: SlotProps) => import('./create').SlotResult;
|
|
12
12
|
readonly images: (props: SlotProps) => import('./create').SlotResult;
|
|
13
13
|
readonly video: (props: SlotProps) => import('./create').SlotResult;
|
|
14
14
|
};
|
|
15
|
-
contact: {
|
|
15
|
+
readonly contact: {
|
|
16
16
|
readonly additional: (props: SlotProps) => import('./create').SlotResult;
|
|
17
17
|
readonly address: (props: SlotProps) => import('./create').SlotResult;
|
|
18
18
|
readonly email: (props: SlotProps) => import('./create').SlotResult;
|
|
19
19
|
readonly location: (props: SlotProps) => import('./create').SlotResult;
|
|
20
20
|
readonly phone: (props: SlotProps) => import('./create').SlotResult;
|
|
21
21
|
};
|
|
22
|
-
content: {
|
|
22
|
+
readonly content: {
|
|
23
23
|
readonly default: (props: SlotProps) => import('./create').SlotResult;
|
|
24
24
|
};
|
|
25
|
-
date: {
|
|
25
|
+
readonly date: {
|
|
26
26
|
readonly default: (props: SlotProps) => import('./create').SlotResult;
|
|
27
27
|
};
|
|
28
|
-
deprecated: {
|
|
28
|
+
readonly deprecated: {
|
|
29
29
|
readonly ADDITIONAL: (props: SlotProps) => import('./create').SlotResult;
|
|
30
30
|
readonly body: (props: SlotProps) => import('./create').SlotResult;
|
|
31
31
|
readonly wrappingText: (props: SlotProps) => import('./create').SlotResult;
|
|
@@ -36,17 +36,17 @@ declare const _default: {
|
|
|
36
36
|
readonly contactAddress: (props: SlotProps) => import('./create').SlotResult;
|
|
37
37
|
readonly callToAction: (props: SlotProps) => import('./create').SlotResult;
|
|
38
38
|
};
|
|
39
|
-
element: typeof element;
|
|
40
|
-
eyebrow: {
|
|
39
|
+
readonly element: typeof element;
|
|
40
|
+
readonly eyebrow: {
|
|
41
41
|
readonly default: (props: SlotProps) => import('./create').SlotResult;
|
|
42
42
|
};
|
|
43
|
-
person: {
|
|
43
|
+
readonly person: {
|
|
44
44
|
readonly association: (props: SlotProps) => import('./create').SlotResult;
|
|
45
45
|
readonly name: (props: SlotProps) => import('./create').SlotResult;
|
|
46
46
|
readonly jobTitle: (props: SlotProps) => import('./create').SlotResult;
|
|
47
47
|
readonly pronouns: (props: SlotProps) => import('./create').SlotResult;
|
|
48
48
|
};
|
|
49
|
-
name: {
|
|
49
|
+
readonly name: {
|
|
50
50
|
readonly ADDITIONAL: string;
|
|
51
51
|
readonly ATTRIBUTION_SUB_TEXT: string;
|
|
52
52
|
readonly ATTRIBUTION: string;
|
|
@@ -129,13 +129,13 @@ declare const _default: {
|
|
|
129
129
|
pronouns: string;
|
|
130
130
|
};
|
|
131
131
|
};
|
|
132
|
-
headline: {
|
|
132
|
+
readonly headline: {
|
|
133
133
|
readonly default: (props: SlotProps) => import('./create').SlotResult;
|
|
134
134
|
};
|
|
135
|
-
social: {
|
|
135
|
+
readonly social: {
|
|
136
136
|
readonly linkedin: (props: SlotProps) => import('./create').SlotResult;
|
|
137
137
|
};
|
|
138
|
-
text: {
|
|
138
|
+
readonly text: {
|
|
139
139
|
readonly caption: (props: SlotProps) => import('./create').SlotResult;
|
|
140
140
|
readonly default: (props: SlotProps) => import('./create').SlotResult;
|
|
141
141
|
readonly stat: (props: SlotProps) => import('./create').SlotResult;
|
|
@@ -143,6 +143,5 @@ declare const _default: {
|
|
|
143
143
|
readonly subText: (props: SlotProps) => import('./create').SlotResult;
|
|
144
144
|
};
|
|
145
145
|
};
|
|
146
|
-
export default _default;
|
|
147
146
|
export type { SlotName };
|
|
148
147
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../source/slots/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrD,OAAO,EAAc,KAAK,SAAS,EAAE,KAAK,aAAa,EAAE,MAAM,UAAU,CAAC;AAC1E,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AAMrC,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../source/slots/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrD,OAAO,EAAc,KAAK,SAAS,EAAE,KAAK,aAAa,EAAE,MAAM,UAAU,CAAC;AAC1E,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AAMrC,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;AA4E3D,eAAO,MAAM,KAAK;;;kCAxER,SAAS;;;gCAAT,SAAS;iCAAT,SAAS;gCAAT,SAAS;;;qCAAT,SAAS;kCAAT,SAAS;gCAAT,SAAS;mCAAT,SAAS;gCAAT,SAAS;;;kCAAT,SAAS;;;kCAAT,SAAS;;;qCAAT,SAAS;+BAAT,SAAS;uCAAT,SAAS;oCAAT,SAAS;+BAAT,SAAS;0CAAT,SAAS;0CAAT,SAAS;yCAAT,SAAS;uCAAT,SAAS;;;;kCAAT,SAAS;;;sCAAT,SAAS;+BAAT,SAAS;mCAAT,SAAS;mCAAT,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAAT,SAAS;;;mCAAT,SAAS;;;kCAAT,SAAS;kCAAT,SAAS;+BAAT,SAAS;gCAAT,SAAS;kCAAT,SAAS;;CAuFT,CAAC;AAEX,YAAY,EAAE,QAAQ,EAAE,CAAC"}
|
package/dist/slots/mapping.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
1
|
const actions = {
|
|
4
2
|
default: "actions"
|
|
5
3
|
};
|
|
@@ -97,5 +95,7 @@ const SlotNames = {
|
|
|
97
95
|
person,
|
|
98
96
|
...NEEDS_CLEANUP
|
|
99
97
|
};
|
|
100
|
-
|
|
98
|
+
export {
|
|
99
|
+
SlotNames
|
|
100
|
+
};
|
|
101
101
|
//# sourceMappingURL=mapping.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mapping.js","sources":["../../source/slots/mapping.ts"],"sourcesContent":["type SlotName = string;\n\n// Slot Names\n\nconst actions = {\n default: 'actions',\n};\n\nconst assets = {\n image: 'image',\n images: 'images',\n video: 'video',\n featured: 'featured',\n};\n\nconst date = {\n default: 'date',\n};\n\nconst contact = {\n additional: 'additional-contact',\n address: 'address',\n email: 'email',\n location: 'location',\n phone: 'phone',\n};\n\nconst content = {\n default: 'content',\n};\n\nconst deprecated = {\n body: 'body',\n plainText: 'plain-text',\n stat: 'stat',\n wrappingText: 'wrapping-text',\n backgroundImage: 'background-image',\n contactHeadline: 'contact-headline',\n contactAddress: 'contact-address',\n callToAction: 'call-to-action',\n};\n\nconst eyebrows = {\n default: 'eyebrow',\n};\n\nconst headline = {\n default: 'headline',\n};\n\nconst person = {\n association: 'association',\n jobTitle: 'job-title',\n name: 'name',\n pronouns: 'pronouns',\n};\n\nconst text = {\n caption: 'caption',\n default: 'text',\n stat: 'stat',\n stats: 'stats',\n sub: 'sub-text',\n};\n\nconst social = {\n linkedin: 'linkedin',\n};\n\nconst NEEDS_CLEANUP = {\n ADDITIONAL: 'additional',\n ATTRIBUTION_SUB_TEXT: 'attribution-sub-text',\n ATTRIBUTION: 'attribution',\n BLOCKS: 'blocks',\n BREADCRUMB_COPY: 'breadcrumb-copy',\n BREADCRUMB: 'breadcrumb',\n CARDS: 'cards',\n CHILDREN_SLIDES: 'children-slides',\n\n CTA_ICON: 'cta-icon',\n DATE_END_ISO: 'end-date-iso',\n DATE_START_ISO: 'start-date-iso',\n DESCRIPTION: 'description',\n EVENT_LIST: 'event-list',\n HEADLINES: 'headlines',\n HIGHLIGHT_ATTRIBUTION: 'highlight-attribution',\n HIGHLIGHT: 'highlight',\n IMAGES: 'images',\n PATHS: 'paths',\n\n PRIMARY_SLIDE_CONTENT: 'primary-slide-content',\n PRIMARY_SLIDE_LINKS: 'primary-slide-links',\n PRIMARY_SLIDE_SECONDARY_LINKS: 'primary-slide-secondary-links',\n QUOTE: 'quote',\n\n STATIC_COLUMN: 'static-column',\n STATS: 'stats',\n STICKY_COLUMN: 'sticky-column',\n TABS: 'tabs',\n TEXTS: 'texts',\n};\n\nconst SlotNames = {\n actions,\n assets,\n content,\n contact,\n eyebrows,\n date,\n deprecated,\n headline,\n text,\n social,\n person,\n ...NEEDS_CLEANUP,\n} as const;\n\nexport { SlotNames, type SlotName };\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mapping.js","sources":["../../source/slots/mapping.ts"],"sourcesContent":["type SlotName = string;\n\n// Slot Names\n\nconst actions = {\n default: 'actions',\n};\n\nconst assets = {\n image: 'image',\n images: 'images',\n video: 'video',\n featured: 'featured',\n};\n\nconst date = {\n default: 'date',\n};\n\nconst contact = {\n additional: 'additional-contact',\n address: 'address',\n email: 'email',\n location: 'location',\n phone: 'phone',\n};\n\nconst content = {\n default: 'content',\n};\n\nconst deprecated = {\n body: 'body',\n plainText: 'plain-text',\n stat: 'stat',\n wrappingText: 'wrapping-text',\n backgroundImage: 'background-image',\n contactHeadline: 'contact-headline',\n contactAddress: 'contact-address',\n callToAction: 'call-to-action',\n};\n\nconst eyebrows = {\n default: 'eyebrow',\n};\n\nconst headline = {\n default: 'headline',\n};\n\nconst person = {\n association: 'association',\n jobTitle: 'job-title',\n name: 'name',\n pronouns: 'pronouns',\n};\n\nconst text = {\n caption: 'caption',\n default: 'text',\n stat: 'stat',\n stats: 'stats',\n sub: 'sub-text',\n};\n\nconst social = {\n linkedin: 'linkedin',\n};\n\nconst NEEDS_CLEANUP = {\n ADDITIONAL: 'additional',\n ATTRIBUTION_SUB_TEXT: 'attribution-sub-text',\n ATTRIBUTION: 'attribution',\n BLOCKS: 'blocks',\n BREADCRUMB_COPY: 'breadcrumb-copy',\n BREADCRUMB: 'breadcrumb',\n CARDS: 'cards',\n CHILDREN_SLIDES: 'children-slides',\n\n CTA_ICON: 'cta-icon',\n DATE_END_ISO: 'end-date-iso',\n DATE_START_ISO: 'start-date-iso',\n DESCRIPTION: 'description',\n EVENT_LIST: 'event-list',\n HEADLINES: 'headlines',\n HIGHLIGHT_ATTRIBUTION: 'highlight-attribution',\n HIGHLIGHT: 'highlight',\n IMAGES: 'images',\n PATHS: 'paths',\n\n PRIMARY_SLIDE_CONTENT: 'primary-slide-content',\n PRIMARY_SLIDE_LINKS: 'primary-slide-links',\n PRIMARY_SLIDE_SECONDARY_LINKS: 'primary-slide-secondary-links',\n QUOTE: 'quote',\n\n STATIC_COLUMN: 'static-column',\n STATS: 'stats',\n STICKY_COLUMN: 'sticky-column',\n TABS: 'tabs',\n TEXTS: 'texts',\n};\n\nconst SlotNames = {\n actions,\n assets,\n content,\n contact,\n eyebrows,\n date,\n deprecated,\n headline,\n text,\n social,\n person,\n ...NEEDS_CLEANUP,\n} as const;\n\nexport { SlotNames, type SlotName };\n"],"names":[],"mappings":"AAIA,MAAM,UAAU;AAAA,EACd,SAAS;AACX;AAEA,MAAM,SAAS;AAAA,EACb,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,UAAU;AACZ;AAEA,MAAM,OAAO;AAAA,EACX,SAAS;AACX;AAEA,MAAM,UAAU;AAAA,EACd,YAAY;AAAA,EACZ,SAAS;AA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