@rindo/core 2.16.0-beta.0
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/LICENSE.md +27 -0
- package/bin/rindo +57 -0
- package/cli/index.cjs +1784 -0
- package/cli/index.d.ts +15 -0
- package/cli/index.js +1758 -0
- package/cli/package.json +14 -0
- package/compiler/lib.d.ts +24 -0
- package/compiler/lib.dom.d.ts +17791 -0
- package/compiler/lib.dom.iterable.d.ts +323 -0
- package/compiler/lib.es2015.collection.d.ts +89 -0
- package/compiler/lib.es2015.core.d.ts +559 -0
- package/compiler/lib.es2015.d.ts +30 -0
- package/compiler/lib.es2015.generator.d.ts +79 -0
- package/compiler/lib.es2015.iterable.d.ts +497 -0
- package/compiler/lib.es2015.promise.d.ts +78 -0
- package/compiler/lib.es2015.proxy.d.ts +41 -0
- package/compiler/lib.es2015.reflect.d.ts +123 -0
- package/compiler/lib.es2015.symbol.d.ts +48 -0
- package/compiler/lib.es2015.symbol.wellknown.d.ts +324 -0
- package/compiler/lib.es2016.array.include.d.ts +118 -0
- package/compiler/lib.es2016.d.ts +22 -0
- package/compiler/lib.es2016.full.d.ts +25 -0
- package/compiler/lib.es2017.d.ts +26 -0
- package/compiler/lib.es2017.full.d.ts +25 -0
- package/compiler/lib.es2017.intl.d.ts +32 -0
- package/compiler/lib.es2017.object.d.ts +51 -0
- package/compiler/lib.es2017.sharedmemory.d.ts +137 -0
- package/compiler/lib.es2017.string.d.ts +47 -0
- package/compiler/lib.es2017.typedarrays.d.ts +55 -0
- package/compiler/lib.es2018.asyncgenerator.d.ts +79 -0
- package/compiler/lib.es2018.asynciterable.d.ts +45 -0
- package/compiler/lib.es2018.d.ts +26 -0
- package/compiler/lib.es2018.full.d.ts +25 -0
- package/compiler/lib.es2018.intl.d.ts +73 -0
- package/compiler/lib.es2018.promise.d.ts +32 -0
- package/compiler/lib.es2018.regexp.d.ts +39 -0
- package/compiler/lib.es2019.array.d.ts +85 -0
- package/compiler/lib.es2019.d.ts +25 -0
- package/compiler/lib.es2019.full.d.ts +25 -0
- package/compiler/lib.es2019.object.d.ts +35 -0
- package/compiler/lib.es2019.string.d.ts +39 -0
- package/compiler/lib.es2019.symbol.d.ts +26 -0
- package/compiler/lib.es2020.bigint.d.ts +728 -0
- package/compiler/lib.es2020.d.ts +27 -0
- package/compiler/lib.es2020.full.d.ts +25 -0
- package/compiler/lib.es2020.intl.d.ts +368 -0
- package/compiler/lib.es2020.promise.d.ts +49 -0
- package/compiler/lib.es2020.sharedmemory.d.ts +99 -0
- package/compiler/lib.es2020.string.d.ts +30 -0
- package/compiler/lib.es2020.symbol.wellknown.d.ts +39 -0
- package/compiler/lib.es2021.d.ts +25 -0
- package/compiler/lib.es2021.full.d.ts +25 -0
- package/compiler/lib.es2021.intl.d.ts +44 -0
- package/compiler/lib.es2021.promise.d.ts +50 -0
- package/compiler/lib.es2021.string.d.ts +35 -0
- package/compiler/lib.es2021.weakref.d.ts +75 -0
- package/compiler/lib.es5.d.ts +4495 -0
- package/compiler/lib.es6.d.ts +25 -0
- package/compiler/lib.esnext.d.ts +22 -0
- package/compiler/lib.esnext.full.d.ts +25 -0
- package/compiler/lib.esnext.intl.d.ts +23 -0
- package/compiler/lib.esnext.promise.d.ts +43 -0
- package/compiler/lib.esnext.string.d.ts +35 -0
- package/compiler/lib.esnext.weakref.d.ts +75 -0
- package/compiler/lib.scripthost.d.ts +327 -0
- package/compiler/lib.webworker.d.ts +5733 -0
- package/compiler/lib.webworker.importscripts.d.ts +26 -0
- package/compiler/lib.webworker.iterable.d.ts +160 -0
- package/compiler/package.json +8 -0
- package/compiler/rindo.d.ts +95 -0
- package/compiler/rindo.js +67222 -0
- package/compiler/rindo.min.js +4 -0
- package/dependencies.json +109 -0
- package/dev-server/client/app-error.d.ts +18 -0
- package/dev-server/client/events.d.ts +6 -0
- package/dev-server/client/hmr-components.d.ts +1 -0
- package/dev-server/client/hmr-external-styles.d.ts +1 -0
- package/dev-server/client/hmr-images.d.ts +1 -0
- package/dev-server/client/hmr-inline-styles.d.ts +1 -0
- package/dev-server/client/hmr-util.d.ts +9 -0
- package/dev-server/client/hmr-window.d.ts +10 -0
- package/dev-server/client/index.d.ts +6 -0
- package/dev-server/client/index.js +808 -0
- package/dev-server/client/logger.d.ts +5 -0
- package/dev-server/client/package.json +8 -0
- package/dev-server/client/progress.d.ts +3 -0
- package/dev-server/client/status.d.ts +4 -0
- package/dev-server/connector.html +6 -0
- package/dev-server/index.d.ts +3 -0
- package/dev-server/index.js +264 -0
- package/dev-server/open-in-editor-api.js +1 -0
- package/dev-server/package.json +8 -0
- package/dev-server/server-process.js +1763 -0
- package/dev-server/server-worker-thread.js +39 -0
- package/dev-server/static/favicon.ico +0 -0
- package/dev-server/templates/directory-index.html +132 -0
- package/dev-server/templates/initial-load.html +160 -0
- package/dev-server/visualstudio.vbs +82 -0
- package/dev-server/ws.js +1 -0
- package/dev-server/xdg-open +1066 -0
- package/internal/app-data/index.cjs +92 -0
- package/internal/app-data/index.d.ts +4 -0
- package/internal/app-data/index.js +88 -0
- package/internal/app-data/package.json +15 -0
- package/internal/client/css-shim.js +4 -0
- package/internal/client/dom.js +73 -0
- package/internal/client/index.js +3059 -0
- package/internal/client/package.json +8 -0
- package/internal/client/patch-browser.js +124 -0
- package/internal/client/patch-esm.js +23 -0
- package/internal/client/polyfills/core-js.js +11 -0
- package/internal/client/polyfills/css-shim.js +1 -0
- package/internal/client/polyfills/dom.js +79 -0
- package/internal/client/polyfills/es5-html-element.js +1 -0
- package/internal/client/polyfills/index.js +34 -0
- package/internal/client/polyfills/system.js +6 -0
- package/internal/client/shadow-css.js +387 -0
- package/internal/hydrate/index.js +1132 -0
- package/internal/hydrate/package.json +7 -0
- package/internal/hydrate/runner.d.ts +217 -0
- package/internal/hydrate/runner.js +777 -0
- package/internal/hydrate/shadow-css.js +143 -0
- package/internal/index.d.ts +4 -0
- package/internal/index.js +2 -0
- package/internal/package.json +9 -0
- package/internal/rindo-core/index.cjs +1 -0
- package/internal/rindo-core/index.d.ts +52 -0
- package/internal/rindo-core/index.js +16 -0
- package/internal/rindo-ext-modules.d.ts +41 -0
- package/internal/rindo-private.d.ts +2289 -0
- package/internal/rindo-public-compiler.d.ts +2273 -0
- package/internal/rindo-public-docs.d.ts +116 -0
- package/internal/rindo-public-runtime.d.ts +1565 -0
- package/internal/testing/index.js +1093 -0
- package/internal/testing/package.json +7 -0
- package/internal/testing/shadow-css.js +143 -0
- package/mock-doc/index.cjs +4658 -0
- package/mock-doc/index.d.ts +928 -0
- package/mock-doc/index.js +4622 -0
- package/mock-doc/package.json +15 -0
- package/package.json +151 -0
- package/readme.md +74 -0
- package/screenshot/compare/assets/favicon.ico +0 -0
- package/screenshot/compare/assets/logo.png +0 -0
- package/screenshot/compare/build/app.css +1 -0
- package/screenshot/compare/build/app.esm.js +1 -0
- package/screenshot/compare/build/app.js +33 -0
- package/screenshot/compare/build/index.esm.js +0 -0
- package/screenshot/compare/build/p-081b0641.js +1 -0
- package/screenshot/compare/build/p-227a1e18.entry.js +1 -0
- package/screenshot/compare/build/p-2c298727.entry.js +1 -0
- package/screenshot/compare/build/p-5479268c.entry.js +1 -0
- package/screenshot/compare/build/p-573ec8a4.entry.js +1 -0
- package/screenshot/compare/build/p-6ba08604.entry.js +1 -0
- package/screenshot/compare/build/p-6bc63295.entry.js +1 -0
- package/screenshot/compare/build/p-7a3759fd.entry.js +1 -0
- package/screenshot/compare/build/p-7b4e3ba7.js +1 -0
- package/screenshot/compare/build/p-988eb362.css +1 -0
- package/screenshot/compare/build/p-9b6a9315.js +1 -0
- package/screenshot/compare/build/p-b4cc611c.entry.js +1 -0
- package/screenshot/compare/build/p-d1bf53f5.entry.js +1 -0
- package/screenshot/compare/build/p-e2efe0df.js +1 -0
- package/screenshot/compare/build/p-e8ca6d97.entry.js +1 -0
- package/screenshot/compare/build/p-ec2f13e0.entry.js +1 -0
- package/screenshot/compare/build/p-f0b99977.entry.js +1 -0
- package/screenshot/compare/build/p-f4745c2f.entry.js +1 -0
- package/screenshot/compare/build/p-fbbae598.js +1 -0
- package/screenshot/compare/host.config.json +15 -0
- package/screenshot/compare/index.html +1 -0
- package/screenshot/compare/manifest.json +13 -0
- package/screenshot/connector-base.d.ts +42 -0
- package/screenshot/connector-local.d.ts +7 -0
- package/screenshot/connector.js +2 -0
- package/screenshot/index.d.ts +3 -0
- package/screenshot/index.js +659 -0
- package/screenshot/local-connector.js +2 -0
- package/screenshot/package.json +15 -0
- package/screenshot/pixel-match.d.ts +1 -0
- package/screenshot/pixel-match.js +2673 -0
- package/screenshot/screenshot-compare.d.ts +3 -0
- package/screenshot/screenshot-fs.d.ts +15 -0
- package/sys/node/autoprefixer.js +8 -0
- package/sys/node/glob.js +1 -0
- package/sys/node/graceful-fs.js +1 -0
- package/sys/node/index.d.ts +18 -0
- package/sys/node/index.js +6124 -0
- package/sys/node/node-fetch.js +1 -0
- package/sys/node/package.json +8 -0
- package/sys/node/prompts.js +1 -0
- package/sys/node/worker.js +52 -0
- package/testing/index.d.ts +12 -0
- package/testing/index.js +4232 -0
- package/testing/jest/jest-config.d.ts +16 -0
- package/testing/jest/jest-environment.d.ts +15 -0
- package/testing/jest/jest-preprocessor.d.ts +59 -0
- package/testing/jest/jest-runner.d.ts +9 -0
- package/testing/jest/jest-screenshot.d.ts +2 -0
- package/testing/jest/jest-serializer.d.ts +5 -0
- package/testing/jest/jest-setup-test-framework.d.ts +1 -0
- package/testing/jest-environment.js +3 -0
- package/testing/jest-preprocessor.js +3 -0
- package/testing/jest-preset.js +37 -0
- package/testing/jest-runner.js +3 -0
- package/testing/jest-setuptestframework.js +3 -0
- package/testing/matchers/attributes.d.ts +14 -0
- package/testing/matchers/class-list.d.ts +12 -0
- package/testing/matchers/events.d.ts +21 -0
- package/testing/matchers/html.d.ts +12 -0
- package/testing/matchers/index.d.ts +23 -0
- package/testing/matchers/screenshot.d.ts +5 -0
- package/testing/matchers/text.d.ts +4 -0
- package/testing/mock-fetch.d.ts +11 -0
- package/testing/mocks.d.ts +10 -0
- package/testing/package.json +8 -0
- package/testing/puppeteer/index.d.ts +2 -0
- package/testing/puppeteer/puppeteer-browser.d.ts +6 -0
- package/testing/puppeteer/puppeteer-declarations.d.ts +429 -0
- package/testing/puppeteer/puppeteer-element.d.ts +67 -0
- package/testing/puppeteer/puppeteer-emulate.d.ts +2 -0
- package/testing/puppeteer/puppeteer-events.d.ts +21 -0
- package/testing/puppeteer/puppeteer-page.d.ts +2 -0
- package/testing/puppeteer/puppeteer-screenshot.d.ts +4 -0
- package/testing/reset-build-conditionals.d.ts +2 -0
- package/testing/spec-page.d.ts +2 -0
- package/testing/test-transpile.d.ts +2 -0
- package/testing/testing-logger.d.ts +25 -0
- package/testing/testing-sys.d.ts +6 -0
- package/testing/testing-utils.d.ts +6 -0
- package/testing/testing.d.ts +2 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@rindo/core/internal/testing",
|
|
3
|
+
"version": "0.0.0-dev.20220810110141",
|
|
4
|
+
"description": "Rindo internal testing platform to be imported by the Rindo Compiler. Breaking changes can and will happen at any time.",
|
|
5
|
+
"main": "./index.js",
|
|
6
|
+
"private": true
|
|
7
|
+
}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
const _parenSuffix = ")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)", _cssColonHostRe = new RegExp("(-shadowcsshost" + _parenSuffix, "gim"), _cssColonHostContextRe = new RegExp("(-shadowcsscontext" + _parenSuffix, "gim"), _cssColonSlottedRe = new RegExp("(-shadowcssslotted" + _parenSuffix, "gim"), _polyfillHostNoCombinatorRe = /-shadowcsshost-no-combinator([^\s]*)/, _shadowDOMSelectorsRe = [ /::shadow/g, /::content/g ], _polyfillHostRe = /-shadowcsshost/gim, _colonHostRe = /:host/gim, _colonSlottedRe = /::slotted/gim, _colonHostContextRe = /:host-context/gim, _commentRe = /\/\*\s*[\s\S]*?\*\//g, _commentWithHashRe = /\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g, _ruleRe = /(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g, _curlyRe = /([{}])/g, _selectorPartsRe = /(^.*?[^\\])??((:+)(.*)|$)/, processRules = (e, t) => {
|
|
2
|
+
const o = escapeBlocks(e);
|
|
3
|
+
let s = 0;
|
|
4
|
+
return o.escapedString.replace(_ruleRe, ((...e) => {
|
|
5
|
+
const c = e[2];
|
|
6
|
+
let r = "", n = e[4], l = "";
|
|
7
|
+
n && n.startsWith("{%BLOCK%") && (r = o.blocks[s++], n = n.substring("%BLOCK%".length + 1),
|
|
8
|
+
l = "{");
|
|
9
|
+
const a = t({
|
|
10
|
+
selector: c,
|
|
11
|
+
content: r
|
|
12
|
+
});
|
|
13
|
+
return `${e[1]}${a.selector}${e[3]}${l}${a.content}${n}`;
|
|
14
|
+
}));
|
|
15
|
+
}, escapeBlocks = e => {
|
|
16
|
+
const t = e.split(_curlyRe), o = [], s = [];
|
|
17
|
+
let c = 0, r = [];
|
|
18
|
+
for (let e = 0; e < t.length; e++) {
|
|
19
|
+
const n = t[e];
|
|
20
|
+
"}" === n && c--, c > 0 ? r.push(n) : (r.length > 0 && (s.push(r.join("")), o.push("%BLOCK%"),
|
|
21
|
+
r = []), o.push(n)), "{" === n && c++;
|
|
22
|
+
}
|
|
23
|
+
return r.length > 0 && (s.push(r.join("")), o.push("%BLOCK%")), {
|
|
24
|
+
escapedString: o.join(""),
|
|
25
|
+
blocks: s
|
|
26
|
+
};
|
|
27
|
+
}, convertColonRule = (e, t, o) => e.replace(t, ((...e) => {
|
|
28
|
+
if (e[2]) {
|
|
29
|
+
const t = e[2].split(","), s = [];
|
|
30
|
+
for (let c = 0; c < t.length; c++) {
|
|
31
|
+
const r = t[c].trim();
|
|
32
|
+
if (!r) break;
|
|
33
|
+
s.push(o("-shadowcsshost-no-combinator", r, e[3]));
|
|
34
|
+
}
|
|
35
|
+
return s.join(",");
|
|
36
|
+
}
|
|
37
|
+
return "-shadowcsshost-no-combinator" + e[3];
|
|
38
|
+
})), colonHostPartReplacer = (e, t, o) => e + t.replace("-shadowcsshost", "") + o, colonHostContextPartReplacer = (e, t, o) => t.indexOf("-shadowcsshost") > -1 ? colonHostPartReplacer(e, t, o) : e + t + o + ", " + t + " " + e + o, injectScopingSelector = (e, t) => e.replace(_selectorPartsRe, ((e, o = "", s, c = "", r = "") => o + t + c + r)), scopeSelectors = (e, t, o, s, c) => processRules(e, (e => {
|
|
39
|
+
let c = e.selector, r = e.content;
|
|
40
|
+
return "@" !== e.selector[0] ? c = ((e, t, o, s) => e.split(",").map((e => s && e.indexOf("." + s) > -1 ? e.trim() : ((e, t) => !(e => (e = e.replace(/\[/g, "\\[").replace(/\]/g, "\\]"),
|
|
41
|
+
new RegExp("^(" + e + ")([>\\s~+[.,{:][\\s\\S]*)?$", "m")))(t).test(e))(e, t) ? ((e, t, o) => {
|
|
42
|
+
const s = "." + (t = t.replace(/\[is=([^\]]*)\]/g, ((e, ...t) => t[0]))), c = e => {
|
|
43
|
+
let c = e.trim();
|
|
44
|
+
if (!c) return "";
|
|
45
|
+
if (e.indexOf("-shadowcsshost-no-combinator") > -1) c = ((e, t, o) => {
|
|
46
|
+
if (_polyfillHostRe.lastIndex = 0, _polyfillHostRe.test(e)) {
|
|
47
|
+
const t = `.${o}`;
|
|
48
|
+
return e.replace(_polyfillHostNoCombinatorRe, ((e, o) => injectScopingSelector(o, t))).replace(_polyfillHostRe, t + " ");
|
|
49
|
+
}
|
|
50
|
+
return t + " " + e;
|
|
51
|
+
})(e, t, o); else {
|
|
52
|
+
const t = e.replace(_polyfillHostRe, "");
|
|
53
|
+
t.length > 0 && (c = injectScopingSelector(t, s));
|
|
54
|
+
}
|
|
55
|
+
return c;
|
|
56
|
+
}, r = (e => {
|
|
57
|
+
const t = [];
|
|
58
|
+
let o = 0;
|
|
59
|
+
return {
|
|
60
|
+
content: (e = e.replace(/(\[[^\]]*\])/g, ((e, s) => {
|
|
61
|
+
const c = `__ph-${o}__`;
|
|
62
|
+
return t.push(s), o++, c;
|
|
63
|
+
}))).replace(/(:nth-[-\w]+)(\([^)]+\))/g, ((e, s, c) => {
|
|
64
|
+
const r = `__ph-${o}__`;
|
|
65
|
+
return t.push(c), o++, s + r;
|
|
66
|
+
})),
|
|
67
|
+
placeholders: t
|
|
68
|
+
};
|
|
69
|
+
})(e);
|
|
70
|
+
let n, l = "", a = 0;
|
|
71
|
+
const i = /( |>|\+|~(?!=))\s*/g;
|
|
72
|
+
let p = !((e = r.content).indexOf("-shadowcsshost-no-combinator") > -1);
|
|
73
|
+
for (;null !== (n = i.exec(e)); ) {
|
|
74
|
+
const t = n[1], o = e.slice(a, n.index).trim();
|
|
75
|
+
p = p || o.indexOf("-shadowcsshost-no-combinator") > -1, l += `${p ? c(o) : o} ${t} `,
|
|
76
|
+
a = i.lastIndex;
|
|
77
|
+
}
|
|
78
|
+
const h = e.substring(a);
|
|
79
|
+
return p = p || h.indexOf("-shadowcsshost-no-combinator") > -1, l += p ? c(h) : h,
|
|
80
|
+
u = r.placeholders, l.replace(/__ph-(\d+)__/g, ((e, t) => u[+t]));
|
|
81
|
+
var u;
|
|
82
|
+
})(e, t, o).trim() : e.trim())).join(", "))(e.selector, t, o, s) : (e.selector.startsWith("@media") || e.selector.startsWith("@supports") || e.selector.startsWith("@page") || e.selector.startsWith("@document")) && (r = scopeSelectors(e.content, t, o, s)),
|
|
83
|
+
{
|
|
84
|
+
selector: c.replace(/\s{2,}/g, " ").trim(),
|
|
85
|
+
content: r
|
|
86
|
+
};
|
|
87
|
+
}));
|
|
88
|
+
|
|
89
|
+
exports.scopeCss = (e, t, o) => {
|
|
90
|
+
const s = t + "-h", c = t + "-s", r = e.match(_commentWithHashRe) || [];
|
|
91
|
+
e = e.replace(_commentRe, "");
|
|
92
|
+
const n = [];
|
|
93
|
+
if (o) {
|
|
94
|
+
const t = e => {
|
|
95
|
+
const t = `/*!@___${n.length}___*/`, o = `/*!@${e.selector}*/`;
|
|
96
|
+
return n.push({
|
|
97
|
+
placeholder: t,
|
|
98
|
+
comment: o
|
|
99
|
+
}), e.selector = t + e.selector, e;
|
|
100
|
+
};
|
|
101
|
+
e = processRules(e, (e => "@" !== e.selector[0] ? t(e) : e.selector.startsWith("@media") || e.selector.startsWith("@supports") || e.selector.startsWith("@page") || e.selector.startsWith("@document") ? (e.content = processRules(e.content, t),
|
|
102
|
+
e) : e));
|
|
103
|
+
}
|
|
104
|
+
const l = ((e, t, o, s, c) => {
|
|
105
|
+
const r = ((e, t) => {
|
|
106
|
+
const o = "." + t + " > ", s = [];
|
|
107
|
+
return e = e.replace(_cssColonSlottedRe, ((...e) => {
|
|
108
|
+
if (e[2]) {
|
|
109
|
+
const t = e[2].trim(), c = e[3], r = o + t + c;
|
|
110
|
+
let n = "";
|
|
111
|
+
for (let t = e[4] - 1; t >= 0; t--) {
|
|
112
|
+
const o = e[5][t];
|
|
113
|
+
if ("}" === o || "," === o) break;
|
|
114
|
+
n = o + n;
|
|
115
|
+
}
|
|
116
|
+
const l = n + r, a = `${n.trimRight()}${r.trim()}`;
|
|
117
|
+
if (l.trim() !== a.trim()) {
|
|
118
|
+
const e = `${a}, ${l}`;
|
|
119
|
+
s.push({
|
|
120
|
+
orgSelector: l,
|
|
121
|
+
updatedSelector: e
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
return r;
|
|
125
|
+
}
|
|
126
|
+
return "-shadowcsshost-no-combinator" + e[3];
|
|
127
|
+
})), {
|
|
128
|
+
selectors: s,
|
|
129
|
+
cssText: e
|
|
130
|
+
};
|
|
131
|
+
})(e = (e => convertColonRule(e, _cssColonHostContextRe, colonHostContextPartReplacer))(e = (e => convertColonRule(e, _cssColonHostRe, colonHostPartReplacer))(e = e.replace(_colonHostContextRe, "-shadowcsscontext").replace(_colonHostRe, "-shadowcsshost").replace(_colonSlottedRe, "-shadowcssslotted"))), s);
|
|
132
|
+
return e = (e => _shadowDOMSelectorsRe.reduce(((e, t) => e.replace(t, " ")), e))(e = r.cssText),
|
|
133
|
+
t && (e = scopeSelectors(e, t, o, s)), {
|
|
134
|
+
cssText: (e = (e = e.replace(/-shadowcsshost-no-combinator/g, `.${o}`)).replace(/>\s*\*\s+([^{, ]+)/gm, " $1 ")).trim(),
|
|
135
|
+
slottedSelectors: r.selectors
|
|
136
|
+
};
|
|
137
|
+
})(e, t, s, c);
|
|
138
|
+
return e = [ l.cssText, ...r ].join("\n"), o && n.forEach((({placeholder: t, comment: o}) => {
|
|
139
|
+
e = e.replace(t, o);
|
|
140
|
+
})), l.slottedSelectors.forEach((t => {
|
|
141
|
+
e = e.replace(t.orgSelector, t.updatedSelector);
|
|
142
|
+
})), e;
|
|
143
|
+
};
|