@stencil/core 5.0.0-alpha.5 → 5.0.0-alpha.6
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/dist/{client-Dnio47yQ.mjs → client-fWOou5EW.mjs} +2324 -2125
- package/dist/compiler/index.d.mts +5 -5
- package/dist/compiler/index.mjs +2 -2
- package/dist/compiler/utils/index.d.mts +2 -2
- package/dist/compiler/utils/index.mjs +3 -3
- package/dist/{compiler-Dxri2g8Z.mjs → compiler-CdUbDTbV.mjs} +13329 -12670
- package/dist/declarations/stencil-public-compiler.d.ts +254 -121
- package/dist/declarations/stencil-public-docs.d.ts +10 -0
- package/dist/declarations/stencil-public-runtime.d.ts +49 -12
- package/dist/{index-D5zaocDq.d.mts → index-D8vvsppY.d.mts} +228 -180
- package/dist/{index-D61XZw0f.d.ts → index-Dap2E02-.d.ts} +82 -31
- package/dist/{index-Dat4djoo.d.mts → index-UUlemGuu.d.mts} +13 -2
- package/dist/index.d.mts +0 -1
- package/dist/index.mjs +1 -1
- package/dist/jsx-runtime.d.mts +18 -0
- package/dist/jsx-runtime.mjs +2 -0
- package/dist/{node-pj6rF4Wt.mjs → node-klLZLdDe.mjs} +59 -55
- package/dist/{regular-expression-D0_N0PGa.mjs → regular-expression-DUdhF3Ei.mjs} +72 -6
- package/dist/runtime/app-data/index.d.ts +1 -1
- package/dist/runtime/app-data/index.js +15 -9
- package/dist/{runtime-CKyUrF4i.js → runtime/client/lazy.js} +2539 -2199
- package/dist/runtime/client/{index.d.ts → runtime.d.ts} +49 -40
- package/dist/runtime/client/{index.js → runtime.js} +2401 -2185
- package/dist/runtime/index.d.ts +20 -3
- package/dist/runtime/index.js +4956 -2
- package/dist/runtime/server/index.d.mts +30 -39
- package/dist/runtime/server/index.mjs +2369 -2185
- package/dist/runtime/server/runner.d.mts +4 -6
- package/dist/runtime/server/runner.mjs +307 -361
- package/dist/signals/index.d.ts +47 -0
- package/dist/signals/index.js +199 -0
- package/dist/sys/node/index.d.mts +1 -1
- package/dist/sys/node/index.mjs +1 -1
- package/dist/sys/node/worker.mjs +2 -2
- package/dist/testing/index.d.mts +97 -3
- package/dist/testing/index.mjs +199 -47
- package/dist/{validation-BA8nzXu_.mjs → validation-2QipI30K.mjs} +21 -32
- package/package.json +41 -27
- package/dist/index-D-XN9HW_.d.ts +0 -30
- package/dist/jsx-runtime-B3vQbWIW.d.ts +0 -28
- package/dist/jsx-runtime.d.ts +0 -2
- package/dist/jsx-runtime.js +0 -2
- /package/dist/{chunk-CjcI7cDX.mjs → chunk-z9aeyW2b.mjs} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { n as __require } from "./chunk-
|
|
2
|
-
import "./client-
|
|
3
|
-
import { h as noop, i as flatOne, l as isFunction, p as isString } from "./regular-expression-
|
|
4
|
-
import {
|
|
1
|
+
import { n as __require } from "./chunk-z9aeyW2b.mjs";
|
|
2
|
+
import "./client-fWOou5EW.mjs";
|
|
3
|
+
import { h as noop, i as flatOne, l as isFunction, p as isString } from "./regular-expression-DUdhF3Ei.mjs";
|
|
4
|
+
import { St as isGlob, _t as catchError, bt as shouldIgnoreError, it as normalizePath, mt as buildError, pt as TASK_CANCELED_MSG } from "./validation-2QipI30K.mjs";
|
|
5
5
|
import fs from "node:fs";
|
|
6
|
-
import
|
|
6
|
+
import path from "node:path";
|
|
7
7
|
import { pathToFileURL } from "node:url";
|
|
8
|
-
import path from "path";
|
|
8
|
+
import path$1 from "path";
|
|
9
9
|
import * as cp from "child_process";
|
|
10
10
|
import chalk from "chalk";
|
|
11
11
|
import { createHash } from "node:crypto";
|
|
@@ -675,7 +675,7 @@ function createNodeLoggerSys() {
|
|
|
675
675
|
return Math.max(Math.min(terminalWidth, max_columns), min_columns);
|
|
676
676
|
};
|
|
677
677
|
const memoryUsage = () => process.memoryUsage().rss;
|
|
678
|
-
const relativePath = (from, to) => path.relative(from, to);
|
|
678
|
+
const relativePath = (from, to) => path$1.relative(from, to);
|
|
679
679
|
const writeLogs = (logFilePath, log, append) => {
|
|
680
680
|
if (append) try {
|
|
681
681
|
fs.accessSync(logFilePath);
|
|
@@ -787,15 +787,15 @@ async function nodeCopyTasks(copyTasks, srcDir) {
|
|
|
787
787
|
async function processGlobs(copyTask, srcDir) {
|
|
788
788
|
return isGlob(copyTask.src) ? await processGlobTask(copyTask, srcDir) : [{
|
|
789
789
|
src: getSrcAbsPath(srcDir, copyTask.src),
|
|
790
|
-
dest: copyTask.keepDirStructure ? path.join(copyTask.dest, copyTask.src) : copyTask.dest,
|
|
790
|
+
dest: copyTask.keepDirStructure ? path$1.join(copyTask.dest, copyTask.src) : copyTask.dest,
|
|
791
791
|
warn: copyTask.warn,
|
|
792
792
|
ignore: copyTask.ignore,
|
|
793
793
|
keepDirStructure: copyTask.keepDirStructure
|
|
794
794
|
}];
|
|
795
795
|
}
|
|
796
796
|
function getSrcAbsPath(srcDir, src) {
|
|
797
|
-
if (path.isAbsolute(src)) return src;
|
|
798
|
-
return path.join(srcDir, src);
|
|
797
|
+
if (path$1.isAbsolute(src)) return src;
|
|
798
|
+
return path$1.join(srcDir, src);
|
|
799
799
|
}
|
|
800
800
|
async function processGlobTask(copyTask, srcDir) {
|
|
801
801
|
return (await asyncGlob(copyTask.src, {
|
|
@@ -805,9 +805,9 @@ async function processGlobTask(copyTask, srcDir) {
|
|
|
805
805
|
})).map((globRelPath) => createGlobCopyTask(copyTask, srcDir, globRelPath));
|
|
806
806
|
}
|
|
807
807
|
function createGlobCopyTask(copyTask, srcDir, globRelPath) {
|
|
808
|
-
const dest = path.join(copyTask.dest, copyTask.keepDirStructure ? globRelPath : path.basename(globRelPath));
|
|
808
|
+
const dest = path$1.join(copyTask.dest, copyTask.keepDirStructure ? globRelPath : path$1.basename(globRelPath));
|
|
809
809
|
return {
|
|
810
|
-
src: path.join(srcDir, globRelPath),
|
|
810
|
+
src: path$1.join(srcDir, globRelPath),
|
|
811
811
|
dest,
|
|
812
812
|
ignore: copyTask.ignore,
|
|
813
813
|
warn: copyTask.warn,
|
|
@@ -837,8 +837,8 @@ async function processCopyTaskDirectory(results, allCopyTasks, copyTask) {
|
|
|
837
837
|
const dirItems = await readdir(copyTask.src);
|
|
838
838
|
await Promise.all(dirItems.map(async (dirItem) => {
|
|
839
839
|
await processCopyTask(results, allCopyTasks, {
|
|
840
|
-
src: path.join(copyTask.src, dirItem),
|
|
841
|
-
dest: path.join(copyTask.dest, dirItem),
|
|
840
|
+
src: path$1.join(copyTask.src, dirItem),
|
|
841
|
+
dest: path$1.join(copyTask.dest, dirItem),
|
|
842
842
|
warn: copyTask.warn
|
|
843
843
|
});
|
|
844
844
|
}));
|
|
@@ -849,7 +849,7 @@ async function processCopyTaskDirectory(results, allCopyTasks, copyTask) {
|
|
|
849
849
|
function ensureDirs(copyTasks) {
|
|
850
850
|
const mkDirs = [];
|
|
851
851
|
copyTasks.forEach((copyTask) => {
|
|
852
|
-
addMkDir(mkDirs, path.dirname(copyTask.dest));
|
|
852
|
+
addMkDir(mkDirs, path$1.dirname(copyTask.dest));
|
|
853
853
|
});
|
|
854
854
|
mkDirs.sort((a, b) => {
|
|
855
855
|
const partsA = a.split("/").length;
|
|
@@ -867,7 +867,7 @@ function addMkDir(mkDirs, destDir) {
|
|
|
867
867
|
if (destDir === ROOT_DIR || destDir + "/" === ROOT_DIR || destDir === "") return;
|
|
868
868
|
if (!mkDirs.includes(destDir)) mkDirs.push(destDir);
|
|
869
869
|
}
|
|
870
|
-
const ROOT_DIR = normalizePath(path.resolve("/"));
|
|
870
|
+
const ROOT_DIR = normalizePath(path$1.resolve("/"));
|
|
871
871
|
function shouldIgnore({ src, ignore = [] }) {
|
|
872
872
|
const filePath = src.trim().toLowerCase();
|
|
873
873
|
return ignore.some((ignoreFile) => filePath.endsWith(ignoreFile));
|
|
@@ -886,6 +886,8 @@ function asyncGlob(pattern, opts = {}) {
|
|
|
886
886
|
* returning diagnostic errors if requirements aren't met.
|
|
887
887
|
*/
|
|
888
888
|
var NodeLazyRequire = class {
|
|
889
|
+
nodeResolveModule;
|
|
890
|
+
lazyDependencies;
|
|
889
891
|
ensured = /* @__PURE__ */ new Set();
|
|
890
892
|
/**
|
|
891
893
|
* Create a NodeLazyRequire instance
|
|
@@ -939,7 +941,7 @@ var NodeLazyRequire = class {
|
|
|
939
941
|
}
|
|
940
942
|
getModulePath(fromDir, moduleId) {
|
|
941
943
|
const modulePath = this.nodeResolveModule.resolveModule(fromDir, moduleId);
|
|
942
|
-
return path.dirname(modulePath);
|
|
944
|
+
return path$1.dirname(modulePath);
|
|
943
945
|
}
|
|
944
946
|
};
|
|
945
947
|
//#endregion
|
|
@@ -953,18 +955,18 @@ var NodeResolveModule = class {
|
|
|
953
955
|
if (opts && opts.manuallyResolve) return this.resolveModuleManually(fromDir, moduleId, cacheKey);
|
|
954
956
|
if (moduleId.startsWith("@types/")) return this.resolveTypesModule(fromDir, moduleId, cacheKey);
|
|
955
957
|
const Module = __require("module");
|
|
956
|
-
fromDir = path.resolve(fromDir);
|
|
957
|
-
const fromFile = path.join(fromDir, "noop.js");
|
|
958
|
+
fromDir = path$1.resolve(fromDir);
|
|
959
|
+
const fromFile = path$1.join(fromDir, "noop.js");
|
|
958
960
|
let dir = normalizePath(Module._resolveFilename(moduleId, {
|
|
959
961
|
id: fromFile,
|
|
960
962
|
filename: fromFile,
|
|
961
963
|
paths: Module._nodeModulePaths(fromDir)
|
|
962
964
|
}));
|
|
963
|
-
const root = normalizePath(path.parse(fromDir).root);
|
|
965
|
+
const root = normalizePath(path$1.parse(fromDir).root);
|
|
964
966
|
let packageJsonFilePath;
|
|
965
967
|
while (dir !== root) {
|
|
966
|
-
dir = normalizePath(path.dirname(dir));
|
|
967
|
-
packageJsonFilePath = path.join(dir, "package.json");
|
|
968
|
+
dir = normalizePath(path$1.dirname(dir));
|
|
969
|
+
packageJsonFilePath = path$1.join(dir, "package.json");
|
|
968
970
|
if (!fs.existsSync(packageJsonFilePath)) continue;
|
|
969
971
|
this.resolveModuleCache.set(cacheKey, packageJsonFilePath);
|
|
970
972
|
return packageJsonFilePath;
|
|
@@ -973,12 +975,12 @@ var NodeResolveModule = class {
|
|
|
973
975
|
}
|
|
974
976
|
resolveTypesModule(fromDir, moduleId, cacheKey) {
|
|
975
977
|
const moduleSplt = moduleId.split("/");
|
|
976
|
-
const root = normalizePath(path.parse(fromDir).root);
|
|
977
|
-
let dir = normalizePath(path.join(fromDir, "noop.js"));
|
|
978
|
+
const root = normalizePath(path$1.parse(fromDir).root);
|
|
979
|
+
let dir = normalizePath(path$1.join(fromDir, "noop.js"));
|
|
978
980
|
let typesPackageJsonFilePath;
|
|
979
981
|
while (dir !== root) {
|
|
980
|
-
dir = normalizePath(path.dirname(dir));
|
|
981
|
-
typesPackageJsonFilePath = path.join(dir, "node_modules", moduleSplt[0], moduleSplt[1], "package.json");
|
|
982
|
+
dir = normalizePath(path$1.dirname(dir));
|
|
983
|
+
typesPackageJsonFilePath = path$1.join(dir, "node_modules", moduleSplt[0], moduleSplt[1], "package.json");
|
|
982
984
|
if (!fs.existsSync(typesPackageJsonFilePath)) continue;
|
|
983
985
|
this.resolveModuleCache.set(cacheKey, typesPackageJsonFilePath);
|
|
984
986
|
return typesPackageJsonFilePath;
|
|
@@ -986,12 +988,12 @@ var NodeResolveModule = class {
|
|
|
986
988
|
throw new Error(`error loading "${moduleId}" from "${fromDir}"`);
|
|
987
989
|
}
|
|
988
990
|
resolveModuleManually(fromDir, moduleId, cacheKey) {
|
|
989
|
-
const root = normalizePath(path.parse(fromDir).root);
|
|
990
|
-
let dir = normalizePath(path.join(fromDir, "noop.js"));
|
|
991
|
+
const root = normalizePath(path$1.parse(fromDir).root);
|
|
992
|
+
let dir = normalizePath(path$1.join(fromDir, "noop.js"));
|
|
991
993
|
let packageJsonFilePath;
|
|
992
994
|
while (dir !== root) {
|
|
993
|
-
dir = normalizePath(path.dirname(dir));
|
|
994
|
-
packageJsonFilePath = path.join(dir, "node_modules", moduleId, "package.json");
|
|
995
|
+
dir = normalizePath(path$1.dirname(dir));
|
|
996
|
+
packageJsonFilePath = path$1.join(dir, "node_modules", moduleId, "package.json");
|
|
995
997
|
if (!fs.existsSync(packageJsonFilePath)) continue;
|
|
996
998
|
this.resolveModuleCache.set(cacheKey, packageJsonFilePath);
|
|
997
999
|
return packageJsonFilePath;
|
|
@@ -1077,7 +1079,7 @@ function setLastCheck() {
|
|
|
1077
1079
|
});
|
|
1078
1080
|
}
|
|
1079
1081
|
function getLastCheckStoragePath() {
|
|
1080
|
-
return path.join(tmpdir$1(), "stencil_last_version_node.json");
|
|
1082
|
+
return path$1.join(tmpdir$1(), "stencil_last_version_node.json");
|
|
1081
1083
|
}
|
|
1082
1084
|
function printUpdateMessage(logger, currentVersion, latestVersion) {
|
|
1083
1085
|
const installMessage = `npm install @stencil/core`;
|
|
@@ -1128,6 +1130,7 @@ const INDENT = ` `;
|
|
|
1128
1130
|
* thread so that messages may be passed to it.
|
|
1129
1131
|
*/
|
|
1130
1132
|
var NodeWorkerMain = class extends EventEmitter {
|
|
1133
|
+
id;
|
|
1131
1134
|
/**
|
|
1132
1135
|
* A handle for the OS process that is running our worker code
|
|
1133
1136
|
*/
|
|
@@ -1234,6 +1237,7 @@ var NodeWorkerMain = class extends EventEmitter {
|
|
|
1234
1237
|
* node.js workers ({@link NodeWorkerMain} instances)
|
|
1235
1238
|
*/
|
|
1236
1239
|
var NodeWorkerController = class extends EventEmitter {
|
|
1240
|
+
forkModulePath;
|
|
1237
1241
|
workerIds = 0;
|
|
1238
1242
|
stencilId = 0;
|
|
1239
1243
|
isEnding = false;
|
|
@@ -1385,7 +1389,7 @@ function createNodeSys(c = {}) {
|
|
|
1385
1389
|
const sysCpus = cpus();
|
|
1386
1390
|
const hardwareConcurrency = sysCpus.length;
|
|
1387
1391
|
const osPlatform = platform();
|
|
1388
|
-
const compilerExecutingPath =
|
|
1392
|
+
const compilerExecutingPath = path.join(__dirname, "compiler", "index.mjs");
|
|
1389
1393
|
const runInterruptsCallbacks = () => {
|
|
1390
1394
|
const returnValues = [];
|
|
1391
1395
|
let cb;
|
|
@@ -1436,8 +1440,8 @@ function createNodeSys(c = {}) {
|
|
|
1436
1440
|
return new Promise((resolve) => {
|
|
1437
1441
|
if (opts) fs.mkdir(p, opts, (err) => {
|
|
1438
1442
|
resolve({
|
|
1439
|
-
basename:
|
|
1440
|
-
dirname:
|
|
1443
|
+
basename: path.basename(p),
|
|
1444
|
+
dirname: path.dirname(p),
|
|
1441
1445
|
path: p,
|
|
1442
1446
|
newDirs: [],
|
|
1443
1447
|
error: err
|
|
@@ -1445,8 +1449,8 @@ function createNodeSys(c = {}) {
|
|
|
1445
1449
|
});
|
|
1446
1450
|
else fs.mkdir(p, (err) => {
|
|
1447
1451
|
resolve({
|
|
1448
|
-
basename:
|
|
1449
|
-
dirname:
|
|
1452
|
+
basename: path.basename(p),
|
|
1453
|
+
dirname: path.dirname(p),
|
|
1450
1454
|
path: p,
|
|
1451
1455
|
newDirs: [],
|
|
1452
1456
|
error: err
|
|
@@ -1456,8 +1460,8 @@ function createNodeSys(c = {}) {
|
|
|
1456
1460
|
},
|
|
1457
1461
|
createDirSync(p, opts) {
|
|
1458
1462
|
const results = {
|
|
1459
|
-
basename:
|
|
1460
|
-
dirname:
|
|
1463
|
+
basename: path.basename(p),
|
|
1464
|
+
dirname: path.dirname(p),
|
|
1461
1465
|
path: p,
|
|
1462
1466
|
newDirs: [],
|
|
1463
1467
|
error: null
|
|
@@ -1470,7 +1474,7 @@ function createNodeSys(c = {}) {
|
|
|
1470
1474
|
return results;
|
|
1471
1475
|
},
|
|
1472
1476
|
createWorkerController(maxConcurrentWorkers) {
|
|
1473
|
-
return new NodeWorkerController(
|
|
1477
|
+
return new NodeWorkerController(path.join(__dirname, "sys", "node", "worker.mjs"), maxConcurrentWorkers);
|
|
1474
1478
|
},
|
|
1475
1479
|
async destroy() {
|
|
1476
1480
|
const waits = [];
|
|
@@ -1529,13 +1533,13 @@ function createNodeSys(c = {}) {
|
|
|
1529
1533
|
onProcessInterrupt: (cb) => {
|
|
1530
1534
|
if (!onInterruptsCallbacks.includes(cb)) onInterruptsCallbacks.push(cb);
|
|
1531
1535
|
},
|
|
1532
|
-
platformPath:
|
|
1536
|
+
platformPath: path,
|
|
1533
1537
|
readDir(p) {
|
|
1534
1538
|
return new Promise((resolve) => {
|
|
1535
1539
|
fs.readdir(p, (err, files) => {
|
|
1536
1540
|
if (err) resolve([]);
|
|
1537
1541
|
else resolve(files.map((f) => {
|
|
1538
|
-
return normalizePath(
|
|
1542
|
+
return normalizePath(path.join(p, f));
|
|
1539
1543
|
}));
|
|
1540
1544
|
});
|
|
1541
1545
|
});
|
|
@@ -1546,7 +1550,7 @@ function createNodeSys(c = {}) {
|
|
|
1546
1550
|
readDirSync(p) {
|
|
1547
1551
|
try {
|
|
1548
1552
|
return fs.readdirSync(p).map((f) => {
|
|
1549
|
-
return normalizePath(
|
|
1553
|
+
return normalizePath(path.join(p, f));
|
|
1550
1554
|
});
|
|
1551
1555
|
} catch {}
|
|
1552
1556
|
return [];
|
|
@@ -1623,8 +1627,8 @@ function createNodeSys(c = {}) {
|
|
|
1623
1627
|
force: true
|
|
1624
1628
|
}, (err) => {
|
|
1625
1629
|
resolve({
|
|
1626
|
-
basename:
|
|
1627
|
-
dirname:
|
|
1630
|
+
basename: path.basename(p),
|
|
1631
|
+
dirname: path.dirname(p),
|
|
1628
1632
|
path: p,
|
|
1629
1633
|
removedDirs: [],
|
|
1630
1634
|
removedFiles: [],
|
|
@@ -1633,8 +1637,8 @@ function createNodeSys(c = {}) {
|
|
|
1633
1637
|
});
|
|
1634
1638
|
else fs.rmdir(p, (err) => {
|
|
1635
1639
|
resolve({
|
|
1636
|
-
basename:
|
|
1637
|
-
dirname:
|
|
1640
|
+
basename: path.basename(p),
|
|
1641
|
+
dirname: path.dirname(p),
|
|
1638
1642
|
path: p,
|
|
1639
1643
|
removedDirs: [],
|
|
1640
1644
|
removedFiles: [],
|
|
@@ -1651,8 +1655,8 @@ function createNodeSys(c = {}) {
|
|
|
1651
1655
|
});
|
|
1652
1656
|
else fs.rmdirSync(p);
|
|
1653
1657
|
return {
|
|
1654
|
-
basename:
|
|
1655
|
-
dirname:
|
|
1658
|
+
basename: path.basename(p),
|
|
1659
|
+
dirname: path.dirname(p),
|
|
1656
1660
|
path: p,
|
|
1657
1661
|
removedDirs: [],
|
|
1658
1662
|
removedFiles: [],
|
|
@@ -1660,8 +1664,8 @@ function createNodeSys(c = {}) {
|
|
|
1660
1664
|
};
|
|
1661
1665
|
} catch (e) {
|
|
1662
1666
|
return {
|
|
1663
|
-
basename:
|
|
1664
|
-
dirname:
|
|
1667
|
+
basename: path.basename(p),
|
|
1668
|
+
dirname: path.dirname(p),
|
|
1665
1669
|
path: p,
|
|
1666
1670
|
removedDirs: [],
|
|
1667
1671
|
removedFiles: [],
|
|
@@ -1673,8 +1677,8 @@ function createNodeSys(c = {}) {
|
|
|
1673
1677
|
return new Promise((resolve) => {
|
|
1674
1678
|
fs.unlink(p, (err) => {
|
|
1675
1679
|
resolve({
|
|
1676
|
-
basename:
|
|
1677
|
-
dirname:
|
|
1680
|
+
basename: path.basename(p),
|
|
1681
|
+
dirname: path.dirname(p),
|
|
1678
1682
|
path: p,
|
|
1679
1683
|
error: err
|
|
1680
1684
|
});
|
|
@@ -1683,8 +1687,8 @@ function createNodeSys(c = {}) {
|
|
|
1683
1687
|
},
|
|
1684
1688
|
removeFileSync(p) {
|
|
1685
1689
|
const results = {
|
|
1686
|
-
basename:
|
|
1687
|
-
dirname:
|
|
1690
|
+
basename: path.basename(p),
|
|
1691
|
+
dirname: path.dirname(p),
|
|
1688
1692
|
path: p,
|
|
1689
1693
|
error: null
|
|
1690
1694
|
};
|
|
@@ -1759,7 +1763,7 @@ function createNodeSys(c = {}) {
|
|
|
1759
1763
|
sys.watchFile = (filePath, callback) => {
|
|
1760
1764
|
logger?.debug(`NODE_SYS_DEBUG::watchFile ${filePath}`);
|
|
1761
1765
|
const normalizedPath = normalizePath(filePath);
|
|
1762
|
-
const dirPath =
|
|
1766
|
+
const dirPath = path.dirname(filePath);
|
|
1763
1767
|
const subscriptionPromise = parcelWatcher.subscribe(dirPath, (err, events) => {
|
|
1764
1768
|
if (err) {
|
|
1765
1769
|
logger?.error(`Watch error for ${filePath}: ${err.message}`);
|
|
@@ -44,7 +44,6 @@ const HOST_FLAGS = {
|
|
|
44
44
|
devOnDidLoad: 2048
|
|
45
45
|
};
|
|
46
46
|
const CF_scopedCssEncapsulation = 2;
|
|
47
|
-
const CF_needsShadowDomShim = 8;
|
|
48
47
|
/**
|
|
49
48
|
* A set of flags used for bitwise calculations against {@link ComponentRuntimeMeta#$flags$}.
|
|
50
49
|
*
|
|
@@ -52,22 +51,81 @@ const CF_needsShadowDomShim = 8;
|
|
|
52
51
|
* They should _not_ be used for calculations against other fields/numbers
|
|
53
52
|
*/
|
|
54
53
|
const CMP_FLAGS = {
|
|
54
|
+
/**
|
|
55
|
+
* Used to determine if a component is using the shadow DOM.
|
|
56
|
+
* e.g. `shadow: true | {}` is set on the `@Component()` decorator
|
|
57
|
+
*/
|
|
55
58
|
shadowDomEncapsulation: 1,
|
|
59
|
+
/**
|
|
60
|
+
* Used to determine if a component is using scoped stylesheets
|
|
61
|
+
* e.g. `scoped: true` is set on the `@Component()` decorator
|
|
62
|
+
*/
|
|
56
63
|
scopedCssEncapsulation: CF_scopedCssEncapsulation,
|
|
64
|
+
/**
|
|
65
|
+
* Used to determine if a component does not use the shadow DOM _and_ has `<slot/>` tags in its markup.
|
|
66
|
+
*/
|
|
57
67
|
hasSlotRelocation: 4,
|
|
58
|
-
|
|
68
|
+
/**
|
|
69
|
+
* Determines if `delegatesFocus` is enabled for a component that uses the shadow DOM.
|
|
70
|
+
* e.g. `shadow: { delegatesFocus: true }` is set on the `@Component()` decorator
|
|
71
|
+
*/
|
|
59
72
|
shadowDelegatesFocus: 16,
|
|
73
|
+
/**
|
|
74
|
+
* Determines if `mode` is set on the `@Component()` decorator
|
|
75
|
+
*/
|
|
60
76
|
hasMode: 32,
|
|
61
|
-
|
|
77
|
+
/**
|
|
78
|
+
* Determines if styles must be scoped - i.e. the component uses scoped stylesheets.
|
|
79
|
+
*/
|
|
80
|
+
needsScopedEncapsulation: CF_scopedCssEncapsulation,
|
|
81
|
+
/**
|
|
82
|
+
* Determines if a component is form-associated or not. This is set based on
|
|
83
|
+
* options passed to the `@Component` decorator.
|
|
84
|
+
*/
|
|
62
85
|
formAssociated: 64,
|
|
86
|
+
/**
|
|
87
|
+
* Determines if a `shadow: true` component needs
|
|
88
|
+
* to have its styles scoped during SSR as opposed to using DSD.
|
|
89
|
+
*/
|
|
63
90
|
shadowNeedsScopedCss: 128,
|
|
91
|
+
/**
|
|
92
|
+
* Determines if a component has a `<slot>` in its template.
|
|
93
|
+
*/
|
|
64
94
|
hasSlot: 256,
|
|
95
|
+
/**
|
|
96
|
+
* Determines if a component uses modern class property declarations.
|
|
97
|
+
*/
|
|
65
98
|
hasModernPropertyDecls: 512,
|
|
99
|
+
/**
|
|
100
|
+
* Determines if `slotAssignment` is set to `'manual'` for a component that uses the shadow DOM.
|
|
101
|
+
* e.g. `shadow: { slotAssignment: 'manual' }` is set on the `@Component()` decorator
|
|
102
|
+
*/
|
|
66
103
|
shadowSlotAssignmentManual: 1024,
|
|
104
|
+
/**
|
|
105
|
+
* Determines if the shadow DOM mode is 'closed'.
|
|
106
|
+
* e.g. `encapsulation: { type: 'shadow', mode: 'closed' }` is set on the `@Component()` decorator
|
|
107
|
+
*/
|
|
67
108
|
shadowModeClosed: 2048,
|
|
109
|
+
/**
|
|
110
|
+
* Determines if the component should patch child node accessors for slot handling.
|
|
111
|
+
* e.g. `encapsulation: { type: 'none', patches: ['children'] }`
|
|
112
|
+
*/
|
|
68
113
|
patchChildren: 4096,
|
|
114
|
+
/**
|
|
115
|
+
* Determines if the component should patch cloneNode() for slot handling.
|
|
116
|
+
* e.g. `encapsulation: { type: 'none', patches: ['clone'] }`
|
|
117
|
+
*/
|
|
69
118
|
patchClone: 8192,
|
|
119
|
+
/**
|
|
120
|
+
* Determines if the component should patch appendChild/insertBefore for slot handling.
|
|
121
|
+
* e.g. `encapsulation: { type: 'none', patches: ['insert'] }`
|
|
122
|
+
*/
|
|
70
123
|
patchInsert: 16384,
|
|
124
|
+
/**
|
|
125
|
+
* Determines if the component should apply all slot patches.
|
|
126
|
+
* e.g. `encapsulation: { type: 'none', patches: ['all'] }`
|
|
127
|
+
* Equivalent to the global `experimentalSlotFixes` config option.
|
|
128
|
+
*/
|
|
71
129
|
patchAll: 32768
|
|
72
130
|
};
|
|
73
131
|
/**
|
|
@@ -84,6 +142,7 @@ const XLINK_NS = "http://www.w3.org/1999/xlink";
|
|
|
84
142
|
* File names and value
|
|
85
143
|
*/
|
|
86
144
|
const COLLECTION_MANIFEST_FILE_NAME = "collection-manifest.json";
|
|
145
|
+
const COLLECTION_APP_DATA_FILE_NAME = "app-data.js";
|
|
87
146
|
/**
|
|
88
147
|
* Constant for the 'copy' output target
|
|
89
148
|
*/
|
|
@@ -108,13 +167,19 @@ const STANDALONE = "standalone";
|
|
|
108
167
|
*/
|
|
109
168
|
const SSR = "ssr";
|
|
110
169
|
/**
|
|
111
|
-
* Constant for the '
|
|
170
|
+
* Constant for the 'ssr-wasm' output target.
|
|
171
|
+
* Compiles the SSR script to a WASM binary via javy for use in any WASM-capable host
|
|
172
|
+
* (PHP, Java, Ruby, Go, etc.) without requiring a JavaScript runtime.
|
|
173
|
+
*/
|
|
174
|
+
const SSR_WASM = "ssr-wasm";
|
|
175
|
+
/**
|
|
176
|
+
* Constant for the 'collection' output target
|
|
112
177
|
* (formerly 'dist-collection' sub-output in v4)
|
|
113
178
|
*
|
|
114
179
|
* Contains transpiled source + metadata for downstream Stencil projects
|
|
115
180
|
* to re-compile/bundle.
|
|
116
181
|
*/
|
|
117
|
-
const STENCIL_REBUNDLE = "
|
|
182
|
+
const STENCIL_REBUNDLE = "collection";
|
|
118
183
|
/**
|
|
119
184
|
* Constant for the 'types' output target
|
|
120
185
|
* (formerly 'dist-types' sub-output in v4)
|
|
@@ -176,6 +241,7 @@ const VALID_CONFIG_OUTPUT_TARGETS = [
|
|
|
176
241
|
LOADER_BUNDLE,
|
|
177
242
|
STANDALONE,
|
|
178
243
|
"ssr",
|
|
244
|
+
SSR_WASM,
|
|
179
245
|
STENCIL_REBUNDLE,
|
|
180
246
|
TYPES,
|
|
181
247
|
GLOBAL_STYLE,
|
|
@@ -430,4 +496,4 @@ const escapeRegExpSpecialCharacters = (text) => {
|
|
|
430
496
|
return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
431
497
|
};
|
|
432
498
|
//#endregion
|
|
433
|
-
export {
|
|
499
|
+
export { WATCH_FLAGS as $, DIST_LAZY as A, HTML_NS as B, ASSETS as C, COPY as D, COLLECTION_MANIFEST_FILE_NAME as E, DOCS_VSCODE as F, SSR as G, LOADER_BUNDLE as H, EVENT_FLAGS as I, STATS as J, SSR_WASM as K, GENERATED_DTS as L, DOCS_CUSTOM_ELEMENTS_MANIFEST as M, DOCS_JSON as N, CUSTOM as O, DOCS_README as P, VALID_CONFIG_OUTPUT_TARGETS as Q, GLOBAL_STYLE as R, queryNonceMetaTagContent as S, COLLECTION_APP_DATA_FILE_NAME as T, MEMBER_FLAGS as U, LISTENER_FLAGS as V, NODE_TYPES as W, SVG_NS as X, STENCIL_REBUNDLE as Y, TYPES as Z, sortBy as _, fromEntries as a, toTitleCase as b, isDef as c, isNumber as d, WWW as et, isObject as f, pluck as g, noop as h, flatOne as i, DOCS_CUSTOM as j, DEFAULT_STYLE_MODE as k, isFunction as l, mergeIntoWith as m, dashToPascalCase as n, isBoolean as o, isString as p, STANDALONE as q, escapeWithPattern as r, isComplexType as s, escapeRegExpSpecialCharacters as t, XLINK_NS as tt, isIterable as u, toCamelCase as v, CMP_FLAGS as w, unique as x, toDashCase as y, HOST_FLAGS as z };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as Env, r as NAMESPACE, t as BUILD } from "../../index-
|
|
1
|
+
import { n as Env, r as NAMESPACE, t as BUILD } from "../../index-Dap2E02-.js";
|
|
2
2
|
export { BUILD, Env, NAMESPACE };
|
|
@@ -45,7 +45,7 @@ const BUILD = {
|
|
|
45
45
|
cssAnnotations: true,
|
|
46
46
|
state: true,
|
|
47
47
|
style: true,
|
|
48
|
-
formAssociated:
|
|
48
|
+
formAssociated: true,
|
|
49
49
|
svg: true,
|
|
50
50
|
updatable: true,
|
|
51
51
|
vdomAttribute: true,
|
|
@@ -61,6 +61,13 @@ const BUILD = {
|
|
|
61
61
|
vdomText: true,
|
|
62
62
|
propChangeCallback: true,
|
|
63
63
|
taskQueue: true,
|
|
64
|
+
lifecycle: true,
|
|
65
|
+
serializer: true,
|
|
66
|
+
deserializer: true,
|
|
67
|
+
patchAll: true,
|
|
68
|
+
patchChildren: true,
|
|
69
|
+
patchClone: true,
|
|
70
|
+
patchInsert: true,
|
|
64
71
|
hotModuleReplacement: false,
|
|
65
72
|
isDebug: false,
|
|
66
73
|
isDev: false,
|
|
@@ -71,14 +78,15 @@ const BUILD = {
|
|
|
71
78
|
lazyLoad: false,
|
|
72
79
|
profile: false,
|
|
73
80
|
slotRelocation: true,
|
|
74
|
-
|
|
75
|
-
|
|
81
|
+
lightDomPatches: true,
|
|
82
|
+
slotChildNodes: true,
|
|
83
|
+
slotCloneNode: true,
|
|
84
|
+
slotDomMutations: true,
|
|
85
|
+
slotTextContent: true,
|
|
76
86
|
hydratedAttribute: false,
|
|
77
87
|
hydratedClass: true,
|
|
78
|
-
scopedSlotTextContentFix: false,
|
|
79
|
-
shadowDomShim: false,
|
|
80
|
-
slotChildNodesFix: false,
|
|
81
88
|
invisiblePrehydration: true,
|
|
89
|
+
staticHydrationStyles: false,
|
|
82
90
|
propBoolean: true,
|
|
83
91
|
propNumber: true,
|
|
84
92
|
propString: true,
|
|
@@ -88,9 +96,7 @@ const BUILD = {
|
|
|
88
96
|
shadowSlotAssignmentManual: false,
|
|
89
97
|
initializeNextTick: false,
|
|
90
98
|
asyncLoading: true,
|
|
91
|
-
asyncQueue: false
|
|
92
|
-
attachStyles: true,
|
|
93
|
-
experimentalSlotFixes: false
|
|
99
|
+
asyncQueue: false
|
|
94
100
|
};
|
|
95
101
|
const Env = {};
|
|
96
102
|
const NAMESPACE = "app";
|