@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.
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  var __require = import.meta.require;
3
3
 
4
- // .angular-partial-tmp-kYZ0hu/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-1StGYU/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-kYZ0hu/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-1StGYU/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-kYZ0hu/src/core/streamingSlotRegistry.ts
51
+ // .angular-partial-tmp-1StGYU/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
@@ -18594,6 +18594,8 @@ var fail = (reason, detail, location) => ({
18594
18594
  return false;
18595
18595
  if (!arraysEqual(a.topLevelImports, b2.topLevelImports))
18596
18596
  return false;
18597
+ if (!arraysEqual(a.propertyFieldNames, b2.propertyFieldNames))
18598
+ return false;
18597
18599
  if (a.encapsulation !== b2.encapsulation)
18598
18600
  return false;
18599
18601
  if (a.changeDetection !== b2.changeDetection)
@@ -19675,6 +19677,19 @@ var fail = (reason, detail, location) => ({
19675
19677
  }
19676
19678
  }
19677
19679
  return sig.sort();
19680
+ }, extractPropertyFieldNames = (cls) => {
19681
+ const names = [];
19682
+ for (const member of cls.members) {
19683
+ if (!ts7.isPropertyDeclaration(member))
19684
+ continue;
19685
+ const name = member.name;
19686
+ if (name === undefined)
19687
+ continue;
19688
+ const text = ts7.isIdentifier(name) ? name.text : ts7.isStringLiteral(name) || ts7.isNoSubstitutionTemplateLiteral(name) ? name.text : name.getText();
19689
+ if (text.length > 0)
19690
+ names.push(text);
19691
+ }
19692
+ return names.sort();
19678
19693
  }, extractTopLevelImports = (sourceFile) => {
19679
19694
  const names = new Set;
19680
19695
  for (const stmt of sourceFile.statements) {
@@ -19717,6 +19732,7 @@ var fail = (reason, detail, location) => ({
19717
19732
  const memberDecoratorSig = extractMemberDecoratorSig(cls);
19718
19733
  const providerImportSig = extractProviderImportSig(decoratorMeta.importsExpr, sourceFile, componentDir);
19719
19734
  const topLevelImports = extractTopLevelImports(sourceFile);
19735
+ const propertyFieldNames = extractPropertyFieldNames(cls);
19720
19736
  return {
19721
19737
  arrowFieldSig,
19722
19738
  changeDetection: decoratorMeta.changeDetection,
@@ -19728,6 +19744,7 @@ var fail = (reason, detail, location) => ({
19728
19744
  inputs: inputNames,
19729
19745
  memberDecoratorSig,
19730
19746
  outputs: outputNames,
19747
+ propertyFieldNames,
19731
19748
  providerImportSig,
19732
19749
  selector: decoratorMeta.selector,
19733
19750
  standalone: decoratorMeta.standalone,
@@ -22156,6 +22173,27 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, runSequent
22156
22173
  state.rebuildTimeout = setTimeout(() => {
22157
22174
  triggerRebuild(state, config, onRebuildComplete, queuedFiles.length > 0 ? queuedFiles : undefined);
22158
22175
  }, REBUILD_BATCH_DELAY_MS);
22176
+ }, STYLE_FILE_EXT_RE, hasAngularOwnedStyleEdit = async (state, angularDir) => {
22177
+ const edited = state.lastUserEditedFiles;
22178
+ if (!edited || edited.size === 0)
22179
+ return false;
22180
+ const styleEdits = [];
22181
+ for (const file4 of edited) {
22182
+ if (STYLE_FILE_EXT_RE.test(file4))
22183
+ styleEdits.push(file4);
22184
+ }
22185
+ if (styleEdits.length === 0)
22186
+ return false;
22187
+ const { resolveOwningComponents: resolveOwningComponents2 } = await Promise.resolve().then(() => (init_resolveOwningComponents(), exports_resolveOwningComponents));
22188
+ for (const file4 of styleEdits) {
22189
+ const owners = resolveOwningComponents2({
22190
+ changedFilePath: file4,
22191
+ userAngularRoot: angularDir
22192
+ });
22193
+ if (owners.length > 0)
22194
+ return true;
22195
+ }
22196
+ return false;
22159
22197
  }, triggerRebuild = async (state, config, onRebuildComplete, filesToRebuild) => {
22160
22198
  if (state.isRebuilding) {
22161
22199
  return null;
@@ -22163,6 +22201,9 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, runSequent
22163
22201
  state.isRebuilding = true;
22164
22202
  const affectedFrameworks = Array.from(state.rebuildQueue);
22165
22203
  state.rebuildQueue.clear();
22204
+ if (config.angularDirectory !== undefined && !affectedFrameworks.includes("angular") && await hasAngularOwnedStyleEdit(state, config.angularDirectory)) {
22205
+ affectedFrameworks.push("angular");
22206
+ }
22166
22207
  const startTime = Date.now();
22167
22208
  broadcastToClients(state, {
22168
22209
  data: { affectedFrameworks },
@@ -22225,6 +22266,7 @@ var init_rebuildTrigger = __esm(() => {
22225
22266
  getReactModuleUrl = getModuleUrl;
22226
22267
  EMBER_PAGE_EXTENSIONS = [".gts", ".gjs", ".ts", ".js"];
22227
22268
  HMR_SCRIPT_PATTERN = /<script>window\.__HMR_FRAMEWORK__[\s\S]*?<\/script>\s*<script data-hmr-client>[\s\S]*?<\/script>/;
22269
+ STYLE_FILE_EXT_RE = /\.(?:css|scss|sass|less|styl|stylus)$/i;
22228
22270
  });
22229
22271
 
22230
22272
  // src/utils/startupTimings.ts
@@ -22870,5 +22912,5 @@ export {
22870
22912
  build
22871
22913
  };
22872
22914
 
22873
- //# debugId=7033EC7B9DB6187F64756E2164756E21
22915
+ //# debugId=E7526B27E09085A964756E2164756E21
22874
22916
  //# sourceMappingURL=build.js.map