@absolutejs/absolute 0.19.0-beta.920 → 0.19.0-beta.922

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/index.js CHANGED
@@ -20085,7 +20085,9 @@ ${block}
20085
20085
  queries: advancedMetadata.contentQueries,
20086
20086
  viewQueries: advancedMetadata.viewQueries,
20087
20087
  host: advancedMetadata.host,
20088
- lifecycle: { usesOnChanges: false },
20088
+ lifecycle: {
20089
+ usesOnChanges: classNode.members.some((m) => ts7.isMethodDeclaration(m) && m.name !== undefined && ts7.isIdentifier(m.name) && m.name.text === "ngOnChanges")
20090
+ },
20089
20091
  inputs,
20090
20092
  outputs,
20091
20093
  usesInheritance: false,
@@ -22251,6 +22253,27 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, runSequent
22251
22253
  state.rebuildTimeout = setTimeout(() => {
22252
22254
  triggerRebuild(state, config, onRebuildComplete, queuedFiles.length > 0 ? queuedFiles : undefined);
22253
22255
  }, REBUILD_BATCH_DELAY_MS);
22256
+ }, STYLE_FILE_EXT_RE, hasAngularOwnedStyleEdit = async (state, angularDir) => {
22257
+ const edited = state.lastUserEditedFiles;
22258
+ if (!edited || edited.size === 0)
22259
+ return false;
22260
+ const styleEdits = [];
22261
+ for (const file5 of edited) {
22262
+ if (STYLE_FILE_EXT_RE.test(file5))
22263
+ styleEdits.push(file5);
22264
+ }
22265
+ if (styleEdits.length === 0)
22266
+ return false;
22267
+ const { resolveOwningComponents: resolveOwningComponents2 } = await Promise.resolve().then(() => (init_resolveOwningComponents(), exports_resolveOwningComponents));
22268
+ for (const file5 of styleEdits) {
22269
+ const owners = resolveOwningComponents2({
22270
+ changedFilePath: file5,
22271
+ userAngularRoot: angularDir
22272
+ });
22273
+ if (owners.length > 0)
22274
+ return true;
22275
+ }
22276
+ return false;
22254
22277
  }, triggerRebuild = async (state, config, onRebuildComplete, filesToRebuild) => {
22255
22278
  if (state.isRebuilding) {
22256
22279
  return null;
@@ -22258,6 +22281,9 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, runSequent
22258
22281
  state.isRebuilding = true;
22259
22282
  const affectedFrameworks = Array.from(state.rebuildQueue);
22260
22283
  state.rebuildQueue.clear();
22284
+ if (config.angularDirectory !== undefined && !affectedFrameworks.includes("angular") && await hasAngularOwnedStyleEdit(state, config.angularDirectory)) {
22285
+ affectedFrameworks.push("angular");
22286
+ }
22261
22287
  const startTime = Date.now();
22262
22288
  broadcastToClients(state, {
22263
22289
  data: { affectedFrameworks },
@@ -22320,6 +22346,7 @@ var init_rebuildTrigger = __esm(() => {
22320
22346
  getReactModuleUrl = getModuleUrl;
22321
22347
  EMBER_PAGE_EXTENSIONS = [".gts", ".gjs", ".ts", ".js"];
22322
22348
  HMR_SCRIPT_PATTERN = /<script>window\.__HMR_FRAMEWORK__[\s\S]*?<\/script>\s*<script data-hmr-client>[\s\S]*?<\/script>/;
22349
+ STYLE_FILE_EXT_RE = /\.(?:css|scss|sass|less|styl|stylus)$/i;
22323
22350
  });
22324
22351
 
22325
22352
  // src/build/buildDepVendor.ts
@@ -31526,5 +31553,5 @@ export {
31526
31553
  ANGULAR_INIT_TIMEOUT_MS
31527
31554
  };
31528
31555
 
31529
- //# debugId=E82165EB5B2C06C364756E2164756E21
31556
+ //# debugId=FD896F37628C9A1164756E2164756E21
31530
31557
  //# sourceMappingURL=index.js.map