@absolutejs/absolute 0.19.0-beta.1049 → 0.19.0-beta.1050
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/angular/components/core/streamingSlotRegistrar.js +1 -1
- package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
- package/dist/build.js +105 -2
- package/dist/build.js.map +5 -4
- package/dist/cli/config/client.js +12 -9
- package/dist/cli/config/server.js +393 -213
- package/dist/cli/index.js +456 -106
- package/dist/index.js +105 -2
- package/dist/index.js.map +5 -4
- package/dist/src/cli/add/dependencies.d.ts +1 -0
- package/dist/src/cli/config/absolute/resolveAbsoluteConfig.d.ts +5 -0
- package/dist/src/cli/config/integrations/IntegrationsPanel.d.ts +2 -2
- package/dist/src/cli/config/page/configStyles.d.ts +1 -1
- package/dist/src/cli/config/server.d.ts +31 -0
- package/dist/src/cli/integrations/addPlugin.d.ts +8 -0
- package/dist/src/cli/integrations/catalog.d.ts +20 -0
- package/dist/src/utils/stripStringsAndComments.d.ts +18 -0
- package/dist/types/config.d.ts +2 -0
- package/dist/types/integrationsPanel.d.ts +29 -0
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var __require = import.meta.require;
|
|
3
3
|
|
|
4
|
-
// .angular-partial-tmp-
|
|
4
|
+
// .angular-partial-tmp-pqulLy/src/core/streamingSlotRegistrar.ts
|
|
5
5
|
var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
|
|
6
6
|
var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
|
|
7
7
|
var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var __require = import.meta.require;
|
|
3
3
|
|
|
4
|
-
// .angular-partial-tmp-
|
|
4
|
+
// .angular-partial-tmp-pqulLy/src/core/streamingSlotRegistrar.ts
|
|
5
5
|
var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
|
|
6
6
|
var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
|
|
7
7
|
var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
|
|
@@ -48,7 +48,7 @@ var warnMissingStreamingSlotCollector = (primitiveName) => {
|
|
|
48
48
|
getWarningController()?.maybeWarn(primitiveName);
|
|
49
49
|
};
|
|
50
50
|
|
|
51
|
-
// .angular-partial-tmp-
|
|
51
|
+
// .angular-partial-tmp-pqulLy/src/core/streamingSlotRegistry.ts
|
|
52
52
|
var STREAMING_SLOT_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotAsyncLocalStorage");
|
|
53
53
|
var isObjectRecord2 = (value) => Boolean(value) && typeof value === "object";
|
|
54
54
|
var isAsyncLocalStorage = (value) => isObjectRecord2(value) && ("getStore" in value) && typeof value.getStore === "function" && ("run" in value) && typeof value.run === "function";
|
package/dist/build.js
CHANGED
|
@@ -21560,6 +21560,109 @@ var init_buildEmberVendor = __esm(() => {
|
|
|
21560
21560
|
]);
|
|
21561
21561
|
});
|
|
21562
21562
|
|
|
21563
|
+
// src/utils/stripStringsAndComments.ts
|
|
21564
|
+
var stripStringsAndComments = (source) => {
|
|
21565
|
+
const { length } = source;
|
|
21566
|
+
const stack = [];
|
|
21567
|
+
let result = "";
|
|
21568
|
+
let index = 0;
|
|
21569
|
+
const top = () => stack[stack.length - 1];
|
|
21570
|
+
const skipLineComment = () => {
|
|
21571
|
+
index += 2;
|
|
21572
|
+
while (index < length && source.charAt(index) !== `
|
|
21573
|
+
`)
|
|
21574
|
+
index += 1;
|
|
21575
|
+
};
|
|
21576
|
+
const skipBlockComment = () => {
|
|
21577
|
+
index += 2;
|
|
21578
|
+
while (index < length && !(source.charAt(index) === "*" && source.charAt(index + 1) === "/"))
|
|
21579
|
+
index += 1;
|
|
21580
|
+
index += 2;
|
|
21581
|
+
};
|
|
21582
|
+
const skipQuoted = (quote) => {
|
|
21583
|
+
index += 1;
|
|
21584
|
+
while (index < length && source.charAt(index) !== quote)
|
|
21585
|
+
index += source.charAt(index) === "\\" ? 2 : 1;
|
|
21586
|
+
index += 1;
|
|
21587
|
+
};
|
|
21588
|
+
const startCommentOrString = () => {
|
|
21589
|
+
const char = source.charAt(index);
|
|
21590
|
+
const next = source.charAt(index + 1);
|
|
21591
|
+
const isLine = char === "/" && next === "/";
|
|
21592
|
+
const isBlock = char === "/" && next === "*";
|
|
21593
|
+
const isQuote = char === "'" || char === '"';
|
|
21594
|
+
if (isLine)
|
|
21595
|
+
skipLineComment();
|
|
21596
|
+
else if (isBlock)
|
|
21597
|
+
skipBlockComment();
|
|
21598
|
+
else if (isQuote)
|
|
21599
|
+
skipQuoted(char);
|
|
21600
|
+
return isLine || isBlock || isQuote;
|
|
21601
|
+
};
|
|
21602
|
+
const pushTemplate = () => {
|
|
21603
|
+
stack.push(0);
|
|
21604
|
+
index += 1;
|
|
21605
|
+
};
|
|
21606
|
+
const openBrace = () => {
|
|
21607
|
+
stack.push((stack.pop() ?? 0) + 1);
|
|
21608
|
+
index += 1;
|
|
21609
|
+
};
|
|
21610
|
+
const closeBrace = () => {
|
|
21611
|
+
const depth = (stack.pop() ?? 0) - 1;
|
|
21612
|
+
index += 1;
|
|
21613
|
+
if (depth > 0)
|
|
21614
|
+
stack.push(depth);
|
|
21615
|
+
};
|
|
21616
|
+
const handleTopLevel = () => {
|
|
21617
|
+
if (startCommentOrString())
|
|
21618
|
+
return;
|
|
21619
|
+
if (source.charAt(index) === "`")
|
|
21620
|
+
pushTemplate();
|
|
21621
|
+
else {
|
|
21622
|
+
result += source.charAt(index);
|
|
21623
|
+
index += 1;
|
|
21624
|
+
}
|
|
21625
|
+
};
|
|
21626
|
+
const handleTemplateText = () => {
|
|
21627
|
+
const char = source.charAt(index);
|
|
21628
|
+
if (char === "\\")
|
|
21629
|
+
index += 2;
|
|
21630
|
+
else if (char === "`") {
|
|
21631
|
+
stack.pop();
|
|
21632
|
+
index += 1;
|
|
21633
|
+
} else if (char === "$" && source.charAt(index + 1) === "{") {
|
|
21634
|
+
stack.push(1);
|
|
21635
|
+
index += 2;
|
|
21636
|
+
} else
|
|
21637
|
+
index += 1;
|
|
21638
|
+
};
|
|
21639
|
+
const handleInterp = () => {
|
|
21640
|
+
if (startCommentOrString())
|
|
21641
|
+
return;
|
|
21642
|
+
const char = source.charAt(index);
|
|
21643
|
+
if (char === "`")
|
|
21644
|
+
pushTemplate();
|
|
21645
|
+
else if (char === "{")
|
|
21646
|
+
openBrace();
|
|
21647
|
+
else if (char === "}")
|
|
21648
|
+
closeBrace();
|
|
21649
|
+
else
|
|
21650
|
+
index += 1;
|
|
21651
|
+
};
|
|
21652
|
+
const step = () => {
|
|
21653
|
+
const frame = top();
|
|
21654
|
+
if (frame === undefined)
|
|
21655
|
+
handleTopLevel();
|
|
21656
|
+
else if (frame === 0)
|
|
21657
|
+
handleTemplateText();
|
|
21658
|
+
else
|
|
21659
|
+
handleInterp();
|
|
21660
|
+
};
|
|
21661
|
+
while (index < length)
|
|
21662
|
+
step();
|
|
21663
|
+
return result;
|
|
21664
|
+
};
|
|
21665
|
+
|
|
21563
21666
|
// src/dev/dependencyGraph.ts
|
|
21564
21667
|
var exports_dependencyGraph = {};
|
|
21565
21668
|
__export(exports_dependencyGraph, {
|
|
@@ -21710,7 +21813,7 @@ var emptyDependencyGraph, tsTranspiler, jsTranspiler, loaderForFile = (filePath)
|
|
|
21710
21813
|
if (resolved)
|
|
21711
21814
|
dependencies.push(resolved);
|
|
21712
21815
|
}
|
|
21713
|
-
if (content.includes("@Component")) {
|
|
21816
|
+
if (content.includes("@Component") && stripStringsAndComments(content).includes("@Component")) {
|
|
21714
21817
|
extractAngularDependencies(content, filePath, dependencies);
|
|
21715
21818
|
}
|
|
21716
21819
|
return dependencies;
|
|
@@ -27480,5 +27583,5 @@ export {
|
|
|
27480
27583
|
build
|
|
27481
27584
|
};
|
|
27482
27585
|
|
|
27483
|
-
//# debugId=
|
|
27586
|
+
//# debugId=A99D5B2901DA380D64756E2164756E21
|
|
27484
27587
|
//# sourceMappingURL=build.js.map
|