@absolutejs/absolute 0.19.0-beta.921 → 0.19.0-beta.923
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 +43 -1
- package/dist/build.js.map +4 -4
- package/dist/index.js +43 -1
- package/dist/index.js.map +4 -4
- package/dist/src/dev/angular/fastHmrCompiler.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -18691,6 +18691,8 @@ var fail = (reason, detail, location) => ({
|
|
|
18691
18691
|
return false;
|
|
18692
18692
|
if (!arraysEqual(a.topLevelImports, b2.topLevelImports))
|
|
18693
18693
|
return false;
|
|
18694
|
+
if (!arraysEqual(a.propertyFieldNames, b2.propertyFieldNames))
|
|
18695
|
+
return false;
|
|
18694
18696
|
if (a.encapsulation !== b2.encapsulation)
|
|
18695
18697
|
return false;
|
|
18696
18698
|
if (a.changeDetection !== b2.changeDetection)
|
|
@@ -19772,6 +19774,19 @@ var fail = (reason, detail, location) => ({
|
|
|
19772
19774
|
}
|
|
19773
19775
|
}
|
|
19774
19776
|
return sig.sort();
|
|
19777
|
+
}, extractPropertyFieldNames = (cls) => {
|
|
19778
|
+
const names = [];
|
|
19779
|
+
for (const member of cls.members) {
|
|
19780
|
+
if (!ts7.isPropertyDeclaration(member))
|
|
19781
|
+
continue;
|
|
19782
|
+
const name = member.name;
|
|
19783
|
+
if (name === undefined)
|
|
19784
|
+
continue;
|
|
19785
|
+
const text = ts7.isIdentifier(name) ? name.text : ts7.isStringLiteral(name) || ts7.isNoSubstitutionTemplateLiteral(name) ? name.text : name.getText();
|
|
19786
|
+
if (text.length > 0)
|
|
19787
|
+
names.push(text);
|
|
19788
|
+
}
|
|
19789
|
+
return names.sort();
|
|
19775
19790
|
}, extractTopLevelImports = (sourceFile) => {
|
|
19776
19791
|
const names = new Set;
|
|
19777
19792
|
for (const stmt of sourceFile.statements) {
|
|
@@ -19814,6 +19829,7 @@ var fail = (reason, detail, location) => ({
|
|
|
19814
19829
|
const memberDecoratorSig = extractMemberDecoratorSig(cls);
|
|
19815
19830
|
const providerImportSig = extractProviderImportSig(decoratorMeta.importsExpr, sourceFile, componentDir);
|
|
19816
19831
|
const topLevelImports = extractTopLevelImports(sourceFile);
|
|
19832
|
+
const propertyFieldNames = extractPropertyFieldNames(cls);
|
|
19817
19833
|
return {
|
|
19818
19834
|
arrowFieldSig,
|
|
19819
19835
|
changeDetection: decoratorMeta.changeDetection,
|
|
@@ -19825,6 +19841,7 @@ var fail = (reason, detail, location) => ({
|
|
|
19825
19841
|
inputs: inputNames,
|
|
19826
19842
|
memberDecoratorSig,
|
|
19827
19843
|
outputs: outputNames,
|
|
19844
|
+
propertyFieldNames,
|
|
19828
19845
|
providerImportSig,
|
|
19829
19846
|
selector: decoratorMeta.selector,
|
|
19830
19847
|
standalone: decoratorMeta.standalone,
|
|
@@ -22253,6 +22270,27 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, runSequent
|
|
|
22253
22270
|
state.rebuildTimeout = setTimeout(() => {
|
|
22254
22271
|
triggerRebuild(state, config, onRebuildComplete, queuedFiles.length > 0 ? queuedFiles : undefined);
|
|
22255
22272
|
}, REBUILD_BATCH_DELAY_MS);
|
|
22273
|
+
}, STYLE_FILE_EXT_RE, hasAngularOwnedStyleEdit = async (state, angularDir) => {
|
|
22274
|
+
const edited = state.lastUserEditedFiles;
|
|
22275
|
+
if (!edited || edited.size === 0)
|
|
22276
|
+
return false;
|
|
22277
|
+
const styleEdits = [];
|
|
22278
|
+
for (const file5 of edited) {
|
|
22279
|
+
if (STYLE_FILE_EXT_RE.test(file5))
|
|
22280
|
+
styleEdits.push(file5);
|
|
22281
|
+
}
|
|
22282
|
+
if (styleEdits.length === 0)
|
|
22283
|
+
return false;
|
|
22284
|
+
const { resolveOwningComponents: resolveOwningComponents2 } = await Promise.resolve().then(() => (init_resolveOwningComponents(), exports_resolveOwningComponents));
|
|
22285
|
+
for (const file5 of styleEdits) {
|
|
22286
|
+
const owners = resolveOwningComponents2({
|
|
22287
|
+
changedFilePath: file5,
|
|
22288
|
+
userAngularRoot: angularDir
|
|
22289
|
+
});
|
|
22290
|
+
if (owners.length > 0)
|
|
22291
|
+
return true;
|
|
22292
|
+
}
|
|
22293
|
+
return false;
|
|
22256
22294
|
}, triggerRebuild = async (state, config, onRebuildComplete, filesToRebuild) => {
|
|
22257
22295
|
if (state.isRebuilding) {
|
|
22258
22296
|
return null;
|
|
@@ -22260,6 +22298,9 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, runSequent
|
|
|
22260
22298
|
state.isRebuilding = true;
|
|
22261
22299
|
const affectedFrameworks = Array.from(state.rebuildQueue);
|
|
22262
22300
|
state.rebuildQueue.clear();
|
|
22301
|
+
if (config.angularDirectory !== undefined && !affectedFrameworks.includes("angular") && await hasAngularOwnedStyleEdit(state, config.angularDirectory)) {
|
|
22302
|
+
affectedFrameworks.push("angular");
|
|
22303
|
+
}
|
|
22263
22304
|
const startTime = Date.now();
|
|
22264
22305
|
broadcastToClients(state, {
|
|
22265
22306
|
data: { affectedFrameworks },
|
|
@@ -22322,6 +22363,7 @@ var init_rebuildTrigger = __esm(() => {
|
|
|
22322
22363
|
getReactModuleUrl = getModuleUrl;
|
|
22323
22364
|
EMBER_PAGE_EXTENSIONS = [".gts", ".gjs", ".ts", ".js"];
|
|
22324
22365
|
HMR_SCRIPT_PATTERN = /<script>window\.__HMR_FRAMEWORK__[\s\S]*?<\/script>\s*<script data-hmr-client>[\s\S]*?<\/script>/;
|
|
22366
|
+
STYLE_FILE_EXT_RE = /\.(?:css|scss|sass|less|styl|stylus)$/i;
|
|
22325
22367
|
});
|
|
22326
22368
|
|
|
22327
22369
|
// src/build/buildDepVendor.ts
|
|
@@ -31528,5 +31570,5 @@ export {
|
|
|
31528
31570
|
ANGULAR_INIT_TIMEOUT_MS
|
|
31529
31571
|
};
|
|
31530
31572
|
|
|
31531
|
-
//# debugId=
|
|
31573
|
+
//# debugId=E285A7F5DAE8CFFA64756E2164756E21
|
|
31532
31574
|
//# sourceMappingURL=index.js.map
|