@adaas/are-html 0.0.17 → 0.0.18

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.
@@ -2200,12 +2200,13 @@ var AreRoot = class extends Are {
2200
2200
  let renderTarget = signalsContext?.findComponentByVector(rootId, initialVector);
2201
2201
  if (!renderTarget) {
2202
2202
  const signalsMeta = A_Context.meta(AreSignals);
2203
- const metaTarget = signalsMeta?.findComponentByVector(initialVector);
2204
- if (metaTarget) {
2205
- const pool = signalsContext?.getComponentById(rootId);
2206
- if (!pool?.length || pool.includes(metaTarget)) {
2207
- renderTarget = metaTarget;
2208
- }
2203
+ const pool = signalsContext?.getComponentById(rootId);
2204
+ const metaTarget = signalsMeta?.findComponentByVector(
2205
+ initialVector,
2206
+ pool?.length ? pool : void 0
2207
+ );
2208
+ if (metaTarget && (!pool?.length || pool.includes(metaTarget))) {
2209
+ renderTarget = metaTarget;
2209
2210
  }
2210
2211
  }
2211
2212
  if (renderTarget?.name) {
@@ -2241,12 +2242,13 @@ var AreRoot = class extends Are {
2241
2242
  let renderTarget = signalsContext?.findComponentByVector(rootId, vector);
2242
2243
  if (!renderTarget) {
2243
2244
  const signalsMeta = A_Context.meta(AreSignals);
2244
- const metaTarget = signalsMeta?.findComponentByVector(vector);
2245
- if (metaTarget) {
2246
- const pool = signalsContext?.getComponentById(rootId);
2247
- if (!pool?.length || pool.includes(metaTarget)) {
2248
- renderTarget = metaTarget;
2249
- }
2245
+ const pool = signalsContext?.getComponentById(rootId);
2246
+ const metaTarget = signalsMeta?.findComponentByVector(
2247
+ vector,
2248
+ pool?.length ? pool : void 0
2249
+ );
2250
+ if (metaTarget && (!pool?.length || pool.includes(metaTarget))) {
2251
+ renderTarget = metaTarget;
2250
2252
  }
2251
2253
  }
2252
2254
  const def = signalsContext?.getDefault(rootId);