@stencil/core 5.0.0-alpha.27 → 5.0.0-alpha.29
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/app-data/index.d.ts +1 -1
- package/dist/{client-CvcvHKz4.mjs → client-D1MsT-Rp.mjs} +373 -238
- package/dist/compiler/index.d.mts +2 -3
- package/dist/compiler/index.mjs +3 -3
- package/dist/compiler/utils/index.d.mts +272 -2
- package/dist/compiler/utils/index.mjs +4 -3
- package/dist/{compiler-D43Ied7R.mjs → compiler-BbS9TDF_.mjs} +1845 -1118
- package/dist/declarations/stencil-ext-modules.d.ts +5 -5
- package/dist/declarations/stencil-public-compiler.d.ts +108 -40
- package/dist/declarations/stencil-public-docs.d.ts +9 -0
- package/dist/declarations/stencil-public-runtime.d.ts +81 -6
- package/dist/fragment-Di1hWOC8.mjs +4 -0
- package/dist/{index-F3IidHM1.d.mts → index-BHj3EBl2.d.mts} +395 -312
- package/dist/{index-xAkMgLX_.d.ts → index-D2PAsXxx.d.ts} +133 -9
- package/dist/index-VK8okIiF.d.mts +108 -0
- package/dist/index.d.mts +4 -0
- package/dist/index.mjs +91 -2
- package/dist/jsx-runtime.mjs +2 -1
- package/dist/{node-DKVq_Ud0.mjs → node-BQR4L-TG.mjs} +60 -58
- package/dist/reactive-controller-BdCpSAQP.d.mts +13 -0
- package/dist/{regular-expression-CFVJOTUh.mjs → regular-expression-XqU5zmPp.mjs} +20 -3
- package/dist/{chunk-z9aeyW2b.mjs → rolldown-runtime-BhDjJH2R.mjs} +1 -1
- package/dist/runtime/client/lazy.js +411 -165
- package/dist/runtime/client/runtime.d.ts +136 -9
- package/dist/runtime/client/runtime.js +411 -165
- package/dist/runtime/index.d.ts +5 -3
- package/dist/runtime/index.js +410 -163
- package/dist/runtime/server/index.d.mts +80 -8
- package/dist/runtime/server/index.mjs +333 -158
- package/dist/runtime/server/runner.d.mts +3 -0
- package/dist/runtime/server/runner.mjs +232 -308
- package/dist/signals/index.d.ts +2 -0
- package/dist/sys/node/index.d.mts +1 -2
- package/dist/sys/node/index.mjs +1 -1
- package/dist/sys/node/worker.d.mts +1 -1
- package/dist/sys/node/worker.mjs +6 -3
- package/dist/testing/index.d.mts +4 -9
- package/dist/testing/index.mjs +74 -56
- package/dist/util-BIa-iHnt.mjs +724 -0
- package/dist/validation-Dd3g77T5.mjs +778 -0
- package/package.json +27 -27
- package/dist/index-3fu7WQs4.d.mts +0 -205
- package/dist/validation-ByxKj8bC.mjs +0 -1458
- /package/{LICENSE.md → LICENSE} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { n as __require } from "./
|
|
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 "./rolldown-runtime-BhDjJH2R.mjs";
|
|
2
|
+
import "./client-D1MsT-Rp.mjs";
|
|
3
|
+
import { h as noop, i as flatOne, l as isFunction, p as isString } from "./regular-expression-XqU5zmPp.mjs";
|
|
4
|
+
import { $ as catchError, K as normalizePath, X as buildError, Y as TASK_CANCELED_MSG, nt as shouldIgnoreError, rt as isGlob } from "./util-BIa-iHnt.mjs";
|
|
5
5
|
import fs from "node:fs";
|
|
6
|
-
import
|
|
6
|
+
import nodePath from "node:path";
|
|
7
7
|
import { pathToFileURL } from "node:url";
|
|
8
|
-
import path
|
|
8
|
+
import path from "path";
|
|
9
9
|
import * as cp from "child_process";
|
|
10
10
|
import chalk from "chalk";
|
|
11
11
|
import { createHash } from "node:crypto";
|
|
@@ -650,7 +650,8 @@ const INDENT$1 = " ";
|
|
|
650
650
|
* @returns the created logger
|
|
651
651
|
*/
|
|
652
652
|
const createNodeLogger = () => {
|
|
653
|
-
|
|
653
|
+
const loggerSys = createNodeLoggerSys();
|
|
654
|
+
return createTerminalLogger(loggerSys);
|
|
654
655
|
};
|
|
655
656
|
/**
|
|
656
657
|
* Create a logger sys object for use in a Node.js environment
|
|
@@ -675,7 +676,7 @@ function createNodeLoggerSys() {
|
|
|
675
676
|
return Math.max(Math.min(terminalWidth, max_columns), min_columns);
|
|
676
677
|
};
|
|
677
678
|
const memoryUsage = () => process.memoryUsage().rss;
|
|
678
|
-
const relativePath = (from, to) => path
|
|
679
|
+
const relativePath = (from, to) => path.relative(from, to);
|
|
679
680
|
const writeLogs = (logFilePath, log, append) => {
|
|
680
681
|
if (append) try {
|
|
681
682
|
fs.accessSync(logFilePath);
|
|
@@ -787,15 +788,15 @@ async function nodeCopyTasks(copyTasks, srcDir) {
|
|
|
787
788
|
async function processGlobs(copyTask, srcDir) {
|
|
788
789
|
return isGlob(copyTask.src) ? await processGlobTask(copyTask, srcDir) : [{
|
|
789
790
|
src: getSrcAbsPath(srcDir, copyTask.src),
|
|
790
|
-
dest: copyTask.keepDirStructure ? path
|
|
791
|
+
dest: copyTask.keepDirStructure ? path.join(copyTask.dest, copyTask.src) : copyTask.dest,
|
|
791
792
|
warn: copyTask.warn,
|
|
792
793
|
ignore: copyTask.ignore,
|
|
793
794
|
keepDirStructure: copyTask.keepDirStructure
|
|
794
795
|
}];
|
|
795
796
|
}
|
|
796
797
|
function getSrcAbsPath(srcDir, src) {
|
|
797
|
-
if (path
|
|
798
|
-
return path
|
|
798
|
+
if (path.isAbsolute(src)) return src;
|
|
799
|
+
return path.join(srcDir, src);
|
|
799
800
|
}
|
|
800
801
|
async function processGlobTask(copyTask, srcDir) {
|
|
801
802
|
return (await asyncGlob(copyTask.src, {
|
|
@@ -805,9 +806,9 @@ async function processGlobTask(copyTask, srcDir) {
|
|
|
805
806
|
})).map((globRelPath) => createGlobCopyTask(copyTask, srcDir, globRelPath));
|
|
806
807
|
}
|
|
807
808
|
function createGlobCopyTask(copyTask, srcDir, globRelPath) {
|
|
808
|
-
const dest = path
|
|
809
|
+
const dest = path.join(copyTask.dest, copyTask.keepDirStructure ? globRelPath : path.basename(globRelPath));
|
|
809
810
|
return {
|
|
810
|
-
src: path
|
|
811
|
+
src: path.join(srcDir, globRelPath),
|
|
811
812
|
dest,
|
|
812
813
|
ignore: copyTask.ignore,
|
|
813
814
|
warn: copyTask.warn,
|
|
@@ -837,8 +838,8 @@ async function processCopyTaskDirectory(results, allCopyTasks, copyTask) {
|
|
|
837
838
|
const dirItems = await readdir(copyTask.src);
|
|
838
839
|
await Promise.all(dirItems.map(async (dirItem) => {
|
|
839
840
|
await processCopyTask(results, allCopyTasks, {
|
|
840
|
-
src: path
|
|
841
|
-
dest: path
|
|
841
|
+
src: path.join(copyTask.src, dirItem),
|
|
842
|
+
dest: path.join(copyTask.dest, dirItem),
|
|
842
843
|
warn: copyTask.warn
|
|
843
844
|
});
|
|
844
845
|
}));
|
|
@@ -849,7 +850,7 @@ async function processCopyTaskDirectory(results, allCopyTasks, copyTask) {
|
|
|
849
850
|
function ensureDirs(copyTasks) {
|
|
850
851
|
const mkDirs = [];
|
|
851
852
|
copyTasks.forEach((copyTask) => {
|
|
852
|
-
addMkDir(mkDirs, path
|
|
853
|
+
addMkDir(mkDirs, path.dirname(copyTask.dest));
|
|
853
854
|
});
|
|
854
855
|
mkDirs.sort((a, b) => {
|
|
855
856
|
const partsA = a.split("/").length;
|
|
@@ -867,7 +868,7 @@ function addMkDir(mkDirs, destDir) {
|
|
|
867
868
|
if (destDir === ROOT_DIR || destDir + "/" === ROOT_DIR || destDir === "") return;
|
|
868
869
|
if (!mkDirs.includes(destDir)) mkDirs.push(destDir);
|
|
869
870
|
}
|
|
870
|
-
const ROOT_DIR = normalizePath(path
|
|
871
|
+
const ROOT_DIR = normalizePath(path.resolve("/"));
|
|
871
872
|
function shouldIgnore({ src, ignore = [] }) {
|
|
872
873
|
const filePath = src.trim().toLowerCase();
|
|
873
874
|
return ignore.some((ignoreFile) => filePath.endsWith(ignoreFile));
|
|
@@ -937,11 +938,12 @@ var NodeLazyRequire = class {
|
|
|
937
938
|
return diagnostics;
|
|
938
939
|
}
|
|
939
940
|
require(fromDir, moduleId) {
|
|
940
|
-
|
|
941
|
+
const modulePath = this.getModulePath(fromDir, moduleId);
|
|
942
|
+
return __require(modulePath);
|
|
941
943
|
}
|
|
942
944
|
getModulePath(fromDir, moduleId) {
|
|
943
945
|
const modulePath = this.nodeResolveModule.resolveModule(fromDir, moduleId);
|
|
944
|
-
return path
|
|
946
|
+
return path.dirname(modulePath);
|
|
945
947
|
}
|
|
946
948
|
};
|
|
947
949
|
//#endregion
|
|
@@ -955,18 +957,18 @@ var NodeResolveModule = class {
|
|
|
955
957
|
if (opts && opts.manuallyResolve) return this.resolveModuleManually(fromDir, moduleId, cacheKey);
|
|
956
958
|
if (moduleId.startsWith("@types/")) return this.resolveTypesModule(fromDir, moduleId, cacheKey);
|
|
957
959
|
const Module = __require("module");
|
|
958
|
-
fromDir = path
|
|
959
|
-
const fromFile = path
|
|
960
|
+
fromDir = path.resolve(fromDir);
|
|
961
|
+
const fromFile = path.join(fromDir, "noop.js");
|
|
960
962
|
let dir = normalizePath(Module._resolveFilename(moduleId, {
|
|
961
963
|
id: fromFile,
|
|
962
964
|
filename: fromFile,
|
|
963
965
|
paths: Module._nodeModulePaths(fromDir)
|
|
964
966
|
}));
|
|
965
|
-
const root = normalizePath(path
|
|
967
|
+
const root = normalizePath(path.parse(fromDir).root);
|
|
966
968
|
let packageJsonFilePath;
|
|
967
969
|
while (dir !== root) {
|
|
968
|
-
dir = normalizePath(path
|
|
969
|
-
packageJsonFilePath = path
|
|
970
|
+
dir = normalizePath(path.dirname(dir));
|
|
971
|
+
packageJsonFilePath = path.join(dir, "package.json");
|
|
970
972
|
if (!fs.existsSync(packageJsonFilePath)) continue;
|
|
971
973
|
this.resolveModuleCache.set(cacheKey, packageJsonFilePath);
|
|
972
974
|
return packageJsonFilePath;
|
|
@@ -975,12 +977,12 @@ var NodeResolveModule = class {
|
|
|
975
977
|
}
|
|
976
978
|
resolveTypesModule(fromDir, moduleId, cacheKey) {
|
|
977
979
|
const moduleSplt = moduleId.split("/");
|
|
978
|
-
const root = normalizePath(path
|
|
979
|
-
let dir = normalizePath(path
|
|
980
|
+
const root = normalizePath(path.parse(fromDir).root);
|
|
981
|
+
let dir = normalizePath(path.join(fromDir, "noop.js"));
|
|
980
982
|
let typesPackageJsonFilePath;
|
|
981
983
|
while (dir !== root) {
|
|
982
|
-
dir = normalizePath(path
|
|
983
|
-
typesPackageJsonFilePath = path
|
|
984
|
+
dir = normalizePath(path.dirname(dir));
|
|
985
|
+
typesPackageJsonFilePath = path.join(dir, "node_modules", moduleSplt[0], moduleSplt[1], "package.json");
|
|
984
986
|
if (!fs.existsSync(typesPackageJsonFilePath)) continue;
|
|
985
987
|
this.resolveModuleCache.set(cacheKey, typesPackageJsonFilePath);
|
|
986
988
|
return typesPackageJsonFilePath;
|
|
@@ -988,12 +990,12 @@ var NodeResolveModule = class {
|
|
|
988
990
|
throw new Error(`error loading "${moduleId}" from "${fromDir}"`);
|
|
989
991
|
}
|
|
990
992
|
resolveModuleManually(fromDir, moduleId, cacheKey) {
|
|
991
|
-
const root = normalizePath(path
|
|
992
|
-
let dir = normalizePath(path
|
|
993
|
+
const root = normalizePath(path.parse(fromDir).root);
|
|
994
|
+
let dir = normalizePath(path.join(fromDir, "noop.js"));
|
|
993
995
|
let packageJsonFilePath;
|
|
994
996
|
while (dir !== root) {
|
|
995
|
-
dir = normalizePath(path
|
|
996
|
-
packageJsonFilePath = path
|
|
997
|
+
dir = normalizePath(path.dirname(dir));
|
|
998
|
+
packageJsonFilePath = path.join(dir, "node_modules", moduleId, "package.json");
|
|
997
999
|
if (!fs.existsSync(packageJsonFilePath)) continue;
|
|
998
1000
|
this.resolveModuleCache.set(cacheKey, packageJsonFilePath);
|
|
999
1001
|
return packageJsonFilePath;
|
|
@@ -1004,7 +1006,7 @@ var NodeResolveModule = class {
|
|
|
1004
1006
|
//#endregion
|
|
1005
1007
|
//#region src/sys/node/node-stencil-version-checker.ts
|
|
1006
1008
|
const REGISTRY_URL = `https://registry.npmjs.org/@stencil/core`;
|
|
1007
|
-
const CHECK_INTERVAL =
|
|
1009
|
+
const CHECK_INTERVAL = 6048e5;
|
|
1008
1010
|
const CHANGELOG = `https://github.com/stenciljs/core/blob/main/CHANGELOG.md`;
|
|
1009
1011
|
async function checkVersion(logger, currentVersion) {
|
|
1010
1012
|
try {
|
|
@@ -1079,7 +1081,7 @@ function setLastCheck() {
|
|
|
1079
1081
|
});
|
|
1080
1082
|
}
|
|
1081
1083
|
function getLastCheckStoragePath() {
|
|
1082
|
-
return path
|
|
1084
|
+
return path.join(tmpdir$1(), "stencil_last_version_node.json");
|
|
1083
1085
|
}
|
|
1084
1086
|
function printUpdateMessage(logger, currentVersion, latestVersion) {
|
|
1085
1087
|
const installMessage = `npm install @stencil/core`;
|
|
@@ -1389,7 +1391,7 @@ function createNodeSys(c = {}) {
|
|
|
1389
1391
|
const sysCpus = cpus();
|
|
1390
1392
|
const hardwareConcurrency = sysCpus.length;
|
|
1391
1393
|
const osPlatform = platform();
|
|
1392
|
-
const compilerExecutingPath =
|
|
1394
|
+
const compilerExecutingPath = nodePath.join(__dirname, "compiler", "index.mjs");
|
|
1393
1395
|
const runInterruptsCallbacks = () => {
|
|
1394
1396
|
const returnValues = [];
|
|
1395
1397
|
let cb;
|
|
@@ -1440,8 +1442,8 @@ function createNodeSys(c = {}) {
|
|
|
1440
1442
|
return new Promise((resolve) => {
|
|
1441
1443
|
if (opts) fs.mkdir(p, opts, (err) => {
|
|
1442
1444
|
resolve({
|
|
1443
|
-
basename:
|
|
1444
|
-
dirname:
|
|
1445
|
+
basename: nodePath.basename(p),
|
|
1446
|
+
dirname: nodePath.dirname(p),
|
|
1445
1447
|
path: p,
|
|
1446
1448
|
newDirs: [],
|
|
1447
1449
|
error: err
|
|
@@ -1449,8 +1451,8 @@ function createNodeSys(c = {}) {
|
|
|
1449
1451
|
});
|
|
1450
1452
|
else fs.mkdir(p, (err) => {
|
|
1451
1453
|
resolve({
|
|
1452
|
-
basename:
|
|
1453
|
-
dirname:
|
|
1454
|
+
basename: nodePath.basename(p),
|
|
1455
|
+
dirname: nodePath.dirname(p),
|
|
1454
1456
|
path: p,
|
|
1455
1457
|
newDirs: [],
|
|
1456
1458
|
error: err
|
|
@@ -1460,8 +1462,8 @@ function createNodeSys(c = {}) {
|
|
|
1460
1462
|
},
|
|
1461
1463
|
createDirSync(p, opts) {
|
|
1462
1464
|
const results = {
|
|
1463
|
-
basename:
|
|
1464
|
-
dirname:
|
|
1465
|
+
basename: nodePath.basename(p),
|
|
1466
|
+
dirname: nodePath.dirname(p),
|
|
1465
1467
|
path: p,
|
|
1466
1468
|
newDirs: [],
|
|
1467
1469
|
error: null
|
|
@@ -1474,7 +1476,7 @@ function createNodeSys(c = {}) {
|
|
|
1474
1476
|
return results;
|
|
1475
1477
|
},
|
|
1476
1478
|
createWorkerController(maxConcurrentWorkers) {
|
|
1477
|
-
return new NodeWorkerController(
|
|
1479
|
+
return new NodeWorkerController(nodePath.join(__dirname, "sys", "node", "worker.mjs"), maxConcurrentWorkers);
|
|
1478
1480
|
},
|
|
1479
1481
|
async destroy() {
|
|
1480
1482
|
const waits = [];
|
|
@@ -1533,13 +1535,13 @@ function createNodeSys(c = {}) {
|
|
|
1533
1535
|
onProcessInterrupt: (cb) => {
|
|
1534
1536
|
if (!onInterruptsCallbacks.includes(cb)) onInterruptsCallbacks.push(cb);
|
|
1535
1537
|
},
|
|
1536
|
-
platformPath:
|
|
1538
|
+
platformPath: nodePath,
|
|
1537
1539
|
readDir(p) {
|
|
1538
1540
|
return new Promise((resolve) => {
|
|
1539
1541
|
fs.readdir(p, (err, files) => {
|
|
1540
1542
|
if (err) resolve([]);
|
|
1541
1543
|
else resolve(files.map((f) => {
|
|
1542
|
-
return normalizePath(
|
|
1544
|
+
return normalizePath(nodePath.join(p, f));
|
|
1543
1545
|
}));
|
|
1544
1546
|
});
|
|
1545
1547
|
});
|
|
@@ -1550,7 +1552,7 @@ function createNodeSys(c = {}) {
|
|
|
1550
1552
|
readDirSync(p) {
|
|
1551
1553
|
try {
|
|
1552
1554
|
return fs.readdirSync(p).map((f) => {
|
|
1553
|
-
return normalizePath(
|
|
1555
|
+
return normalizePath(nodePath.join(p, f));
|
|
1554
1556
|
});
|
|
1555
1557
|
} catch {}
|
|
1556
1558
|
return [];
|
|
@@ -1627,8 +1629,8 @@ function createNodeSys(c = {}) {
|
|
|
1627
1629
|
force: true
|
|
1628
1630
|
}, (err) => {
|
|
1629
1631
|
resolve({
|
|
1630
|
-
basename:
|
|
1631
|
-
dirname:
|
|
1632
|
+
basename: nodePath.basename(p),
|
|
1633
|
+
dirname: nodePath.dirname(p),
|
|
1632
1634
|
path: p,
|
|
1633
1635
|
removedDirs: [],
|
|
1634
1636
|
removedFiles: [],
|
|
@@ -1637,8 +1639,8 @@ function createNodeSys(c = {}) {
|
|
|
1637
1639
|
});
|
|
1638
1640
|
else fs.rmdir(p, (err) => {
|
|
1639
1641
|
resolve({
|
|
1640
|
-
basename:
|
|
1641
|
-
dirname:
|
|
1642
|
+
basename: nodePath.basename(p),
|
|
1643
|
+
dirname: nodePath.dirname(p),
|
|
1642
1644
|
path: p,
|
|
1643
1645
|
removedDirs: [],
|
|
1644
1646
|
removedFiles: [],
|
|
@@ -1655,8 +1657,8 @@ function createNodeSys(c = {}) {
|
|
|
1655
1657
|
});
|
|
1656
1658
|
else fs.rmdirSync(p);
|
|
1657
1659
|
return {
|
|
1658
|
-
basename:
|
|
1659
|
-
dirname:
|
|
1660
|
+
basename: nodePath.basename(p),
|
|
1661
|
+
dirname: nodePath.dirname(p),
|
|
1660
1662
|
path: p,
|
|
1661
1663
|
removedDirs: [],
|
|
1662
1664
|
removedFiles: [],
|
|
@@ -1664,8 +1666,8 @@ function createNodeSys(c = {}) {
|
|
|
1664
1666
|
};
|
|
1665
1667
|
} catch (e) {
|
|
1666
1668
|
return {
|
|
1667
|
-
basename:
|
|
1668
|
-
dirname:
|
|
1669
|
+
basename: nodePath.basename(p),
|
|
1670
|
+
dirname: nodePath.dirname(p),
|
|
1669
1671
|
path: p,
|
|
1670
1672
|
removedDirs: [],
|
|
1671
1673
|
removedFiles: [],
|
|
@@ -1677,8 +1679,8 @@ function createNodeSys(c = {}) {
|
|
|
1677
1679
|
return new Promise((resolve) => {
|
|
1678
1680
|
fs.unlink(p, (err) => {
|
|
1679
1681
|
resolve({
|
|
1680
|
-
basename:
|
|
1681
|
-
dirname:
|
|
1682
|
+
basename: nodePath.basename(p),
|
|
1683
|
+
dirname: nodePath.dirname(p),
|
|
1682
1684
|
path: p,
|
|
1683
1685
|
error: err
|
|
1684
1686
|
});
|
|
@@ -1687,8 +1689,8 @@ function createNodeSys(c = {}) {
|
|
|
1687
1689
|
},
|
|
1688
1690
|
removeFileSync(p) {
|
|
1689
1691
|
const results = {
|
|
1690
|
-
basename:
|
|
1691
|
-
dirname:
|
|
1692
|
+
basename: nodePath.basename(p),
|
|
1693
|
+
dirname: nodePath.dirname(p),
|
|
1692
1694
|
path: p,
|
|
1693
1695
|
error: null
|
|
1694
1696
|
};
|
|
@@ -1763,7 +1765,7 @@ function createNodeSys(c = {}) {
|
|
|
1763
1765
|
sys.watchFile = (filePath, callback) => {
|
|
1764
1766
|
logger?.debug(`NODE_SYS_DEBUG::watchFile ${filePath}`);
|
|
1765
1767
|
const normalizedPath = normalizePath(filePath);
|
|
1766
|
-
const dirPath =
|
|
1768
|
+
const dirPath = nodePath.dirname(filePath);
|
|
1767
1769
|
const subscriptionPromise = parcelWatcher.subscribe(dirPath, (err, events) => {
|
|
1768
1770
|
if (err) {
|
|
1769
1771
|
logger?.error(`Watch error for ${filePath}: ${err.message}`);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { _a as MixedInCtor, ma as ComponentInterface, ya as ReactiveControllerHostInterface } from "./index-BHj3EBl2.mjs";
|
|
2
|
+
//#region src/runtime/asset-path.d.ts
|
|
3
|
+
declare const getAssetPath: (path: string) => string;
|
|
4
|
+
declare const setAssetPath: (path: string) => string;
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region src/runtime/mixin.d.ts
|
|
7
|
+
type Ctor<T = {}> = new (...args: any[]) => T;
|
|
8
|
+
declare function Mixin(...mixins: ((base: Ctor) => Ctor)[]): Ctor<{}>;
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region src/runtime/reactive-controller.d.ts
|
|
11
|
+
declare const ReactiveControllerHost: <B extends MixedInCtor<ComponentInterface & HTMLElement>>(Base: B) => B & MixedInCtor<ReactiveControllerHostInterface>;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { setAssetPath as i, Mixin as n, getAssetPath as r, ReactiveControllerHost as t };
|
|
@@ -40,8 +40,20 @@ const HOST_FLAGS = {
|
|
|
40
40
|
isWatchReady: 128,
|
|
41
41
|
isListenReady: 256,
|
|
42
42
|
needsRerender: 512,
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
/**
|
|
44
|
+
* Set once this component's real (lazy-loaded) `connectedCallback` has fired for
|
|
45
|
+
* the first time. Lets a descendant skip creating/awaiting a connect-promise for
|
|
46
|
+
* an ancestor that's already connected. See {@link HostRef.$onFirstConnectResolve$}.
|
|
47
|
+
*/
|
|
48
|
+
hasFiredConnected: 1024,
|
|
49
|
+
/**
|
|
50
|
+
* Set when a lazy component's dynamic `import()` fails to resolve a
|
|
51
|
+
* constructor. Distinct from `hasInitializedComponent` being unset, which
|
|
52
|
+
* is true while an initialization attempt is merely queued/in-flight.
|
|
53
|
+
*/
|
|
54
|
+
hasFailedLoad: 2048,
|
|
55
|
+
devOnRender: 4096,
|
|
56
|
+
devOnDidLoad: 8192
|
|
45
57
|
};
|
|
46
58
|
const CF_scopedCssEncapsulation = 2;
|
|
47
59
|
/**
|
|
@@ -221,6 +233,10 @@ const DOCS_VSCODE = "docs-vscode";
|
|
|
221
233
|
*/
|
|
222
234
|
const DOCS_CUSTOM_ELEMENTS_MANIFEST = "docs-custom-elements-manifest";
|
|
223
235
|
/**
|
|
236
|
+
* Constant for the 'docs-agent-skill' output target
|
|
237
|
+
*/
|
|
238
|
+
const DOCS_AGENT_SKILL = "docs-agent-skill";
|
|
239
|
+
/**
|
|
224
240
|
* Constant for the 'stats' output target
|
|
225
241
|
*/
|
|
226
242
|
const STATS = "stats";
|
|
@@ -256,6 +272,7 @@ const VALID_CONFIG_OUTPUT_TARGETS = [
|
|
|
256
272
|
DOCS_VSCODE,
|
|
257
273
|
DOCS_CUSTOM,
|
|
258
274
|
DOCS_CUSTOM_ELEMENTS_MANIFEST,
|
|
275
|
+
DOCS_AGENT_SKILL,
|
|
259
276
|
COPY,
|
|
260
277
|
CUSTOM,
|
|
261
278
|
STATS
|
|
@@ -505,4 +522,4 @@ const escapeRegExpSpecialCharacters = (text) => {
|
|
|
505
522
|
return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
506
523
|
};
|
|
507
524
|
//#endregion
|
|
508
|
-
export {
|
|
525
|
+
export { TYPES as $, DEFAULT_STYLE_MODE as A, GLOBAL_STYLE as B, ASSETS as C, COLLECTION_MANIFEST_FILE_NAME as D, COLLECTION_APP_DATA_FILE_NAME as E, DOCS_JSON as F, MEMBER_FLAGS as G, HTML_NS as H, DOCS_README as I, SSR_WASM as J, NODE_TYPES as K, DOCS_VSCODE as L, DOCS_AGENT_SKILL as M, DOCS_CUSTOM as N, COPY as O, DOCS_CUSTOM_ELEMENTS_MANIFEST as P, SVG_NS as Q, EVENT_FLAGS as R, queryNonceMetaTagContent as S, COLLECTION as T, LISTENER_FLAGS as U, HOST_FLAGS as V, LOADER_BUNDLE as W, STATS as X, STANDALONE as Y, STYLE_EXT as Z, sortBy as _, fromEntries as a, toTitleCase as b, isDef as c, isNumber as d, VALID_CONFIG_OUTPUT_TARGETS as et, isObject as f, pluck as g, noop as h, flatOne as i, DIST_LAZY as j, CUSTOM as k, isFunction as l, mergeIntoWith as m, dashToPascalCase as n, WWW as nt, isBoolean as o, isString as p, SSR as q, escapeWithPattern as r, XLINK_NS as rt, isComplexType as s, escapeRegExpSpecialCharacters as t, WATCH_FLAGS as tt, isIterable as u, toCamelCase as v, CMP_FLAGS as w, unique as x, toDashCase as y, GENERATED_DTS as z };
|
|
@@ -10,6 +10,6 @@ var __exportAll = (all, no_symbols) => {
|
|
|
10
10
|
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
11
11
|
return target;
|
|
12
12
|
};
|
|
13
|
-
var __require = /*
|
|
13
|
+
var __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
|
|
14
14
|
//#endregion
|
|
15
15
|
export { __require as n, __exportAll as t };
|