@vectoriox/iox-ui 5.131.0 → 5.132.0

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.
@@ -11679,6 +11679,9 @@ interface SiteBuildRun {
11679
11679
  source: SitePlanSource;
11680
11680
  plan: SitePlan;
11681
11681
  year: number;
11682
+ /** AW-D23: the tier its generation was made at; absent = Basic (`tierOf`). Every later compose of `plan` in the browser
11683
+ * (Design ▸ Look's Re-fit) is given it — an award plan composed as Basic is refused (iox-cms-client#66). */
11684
+ tier?: `${GenerationTier}`;
11682
11685
  status: SiteBuildStatus;
11683
11686
  active?: boolean;
11684
11687
  steps: BuildStepRecord[];
@@ -14588,6 +14591,10 @@ interface FingerprintedPage {
14588
14591
  businessType?: string;
14589
14592
  /** A demo (the proof sites): its opening and signature are not to be repeated, its order of sections may be. */
14590
14593
  demo?: boolean;
14594
+ /** This site's own page (a sibling): judged by its opening AND signature together and by its order of sections, never
14595
+ * by the "same kind of business" clauses — every page of a site is the same kind of business (m8-gate2 §16;
14596
+ * vectoriox/iox-ui#96: an award site's pages fell back, each refused against the site's own Workshops page). */
14597
+ sameSite?: boolean;
14591
14598
  }
14592
14599
  /** A section's token in the page's sequence. */
14593
14600
  declare function sequenceTokenOf(s: LayoutSection): LayoutSequenceToken;
@@ -14618,7 +14625,7 @@ declare const listWords: (token: string) => string;
14618
14625
  /**
14619
14626
  * Refuses a page that repeats one already made (M8-G2-D7): most of the same sequence (`SPEC_SITE_LAYOUT.sameness.sequence`,
14620
14627
  * 6 of 7), or the same opening AND signature; against a page of the same business type, the same opening or the same
14621
- * signature alone. The sequence is compared with real pages only — this studio's, other studios', this site's — never a
14628
+ * signature alone — never a page of THIS site (`sameSite`), which is always the same kind. The sequence is compared with real pages only — this studio's, other studios', this site's — never a
14622
14629
  * demo's (Doron, 2026-11-09: the proof sites' order is the product's grammar, not someone's site). The look is the
14623
14630
  * owner's pick and is never a reason.
14624
14631
  */
@@ -1,5 +1,5 @@
1
1
  import { MotionId, MoodId, TintId, DensityId, DesignMotion, DesignChoices, DesignMode, StylePreset, ShapeId, AnimateId } from '@vectoriox/iox-ui/design-core';
2
- import { FactKey, PictureWorld, PathIssue, PlainObject, JsonSchema, SiteTemplate, ShapeEntry, AiGenerationStage, AiStep, SitePlan, PlanEdit, PlanChange, PictureRefusal, AiRefusalCode, LayoutIssue, LayoutFingerprint, LayoutPhotoAddress, MeasuredLayout, SiteAudit } from '@vectoriox/iox-ui/generation-core';
2
+ import { FactKey, PictureWorld, PathIssue, PlainObject, JsonSchema, SiteTemplate, ShapeEntry, AiGenerationStage, AiStep, SitePlan, PlanEdit, PlanChange, GenerationTier, PictureRefusal, AiRefusalCode, LayoutIssue, LayoutFingerprint, LayoutPhotoAddress, MeasuredLayout, SiteAudit } from '@vectoriox/iox-ui/generation-core';
3
3
  export { JsonSchema } from '@vectoriox/iox-ui/generation-core';
4
4
  import { FrameSequence } from '@vectoriox/iox-ui/media-core';
5
5
 
@@ -3578,6 +3578,10 @@ interface AiGenerationView {
3578
3578
  };
3579
3579
  };
3580
3580
  siteBuildId?: string;
3581
+ /** AW-D23: the tier the generation was made at (the studio's plan when it started) — what every compose of its plan
3582
+ * in the browser (the render check, the map) is given. The server's stored value; a client never chooses it. Absent
3583
+ * (a generation from before AW-P): Basic — `tierOf`. */
3584
+ tier?: `${GenerationTier}`;
3581
3585
  models: Partial<Record<`${AiStep}`, string>>;
3582
3586
  estimate: number;
3583
3587
  /** The plan's `aiCreditsPerGeneration` for the whole build, or null when it sets none (a step's own ceiling is
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vectoriox/iox-ui",
3
- "version": "5.131.0",
3
+ "version": "5.132.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=20.0.0",
6
6
  "@angular/core": ">=20.0.0",
@@ -65,6 +65,10 @@ export interface FingerprintedPage {
65
65
  businessType?: string;
66
66
  /** A demo (the proof sites): its opening and signature are not to be repeated, its order of sections may be. */
67
67
  demo?: boolean;
68
+ /** This site's own page (a sibling): judged by its opening AND signature together and by its order of sections, never
69
+ * by the "same kind of business" clauses — every page of a site is the same kind of business (m8-gate2 §16;
70
+ * vectoriox/iox-ui#96: an award site's pages fell back, each refused against the site's own Workshops page). */
71
+ sameSite?: boolean;
68
72
  }
69
73
 
70
74
  const OPENING_SCREEN_WORD = 'screen-word';
@@ -189,7 +193,7 @@ const signatureWords = (id: string) => SPEC_SITE_LAYOUT.signatures.find(s => s.i
189
193
  /**
190
194
  * Refuses a page that repeats one already made (M8-G2-D7): most of the same sequence (`SPEC_SITE_LAYOUT.sameness.sequence`,
191
195
  * 6 of 7), or the same opening AND signature; against a page of the same business type, the same opening or the same
192
- * signature alone. The sequence is compared with real pages only — this studio's, other studios', this site's — never a
196
+ * signature alone — never a page of THIS site (`sameSite`), which is always the same kind. The sequence is compared with real pages only — this studio's, other studios', this site's — never a
193
197
  * demo's (Doron, 2026-11-09: the proof sites' order is the product's grammar, not someone's site). The look is the
194
198
  * owner's pick and is never a reason.
195
199
  */
@@ -200,7 +204,7 @@ export function samenessIssues(me: LayoutFingerprint, others: ReadonlyArray<Fing
200
204
  };
201
205
  for (const o of others) {
202
206
  const them = o.fingerprint;
203
- const sameType = !!businessType && o.businessType === businessType;
207
+ const sameType = !o.sameSite && !!businessType && o.businessType === businessType;
204
208
  const opening = me.opening === them.opening;
205
209
  const signature = me.signature === them.signature;
206
210
  if (opening && (signature || sameType)) add('sections[0]', `"${o.name}" already opens on ${openingWords(them.opening)}${sameType ? ', and it is the same kind of business' : ` with ${signatureWords(them.signature)}`} — open another way`);
@@ -1,5 +1,5 @@
1
1
  import { ComposedPlaceholder, ComposeIssue } from './compose-site';
2
- import { SitePlan, SitePlanSource } from './site-plan.model';
2
+ import { GenerationTier, SitePlan, SitePlanSource } from './site-plan.model';
3
3
  import { SitePlanIssueCode } from './validate-site-plan';
4
4
  import { planSells } from './shop-plan';
5
5
 
@@ -168,6 +168,9 @@ export interface SiteBuildRun {
168
168
  source: SitePlanSource;
169
169
  plan: SitePlan;
170
170
  year: number;
171
+ /** AW-D23: the tier its generation was made at; absent = Basic (`tierOf`). Every later compose of `plan` in the browser
172
+ * (Design ▸ Look's Re-fit) is given it — an award plan composed as Basic is refused (iox-cms-client#66). */
173
+ tier?: `${GenerationTier}`;
171
174
  status: SiteBuildStatus;
172
175
  active?: boolean;
173
176
  steps: BuildStepRecord[];
@@ -1,7 +1,8 @@
1
1
  import type { DesignChoices } from '@vectoriox/iox-ui/design-core';
2
2
  import type { FrameSequence } from '@vectoriox/iox-ui/media-core';
3
3
  import type {
4
- AiGenerationStage, AiRefusalCode, AiStep, LayoutFingerprint, LayoutIssue, LayoutPhotoAddress, MeasuredLayout, PictureRefusal, PlanChange, PlanEdit, SitePlan,
4
+ AiGenerationStage, AiRefusalCode, AiStep, GenerationTier, LayoutFingerprint, LayoutIssue, LayoutPhotoAddress, MeasuredLayout, PictureRefusal, PlanChange, PlanEdit,
5
+ SitePlan,
5
6
  } from '@vectoriox/iox-ui/generation-core';
6
7
 
7
8
  import type { StyleRead } from './rank';
@@ -167,6 +168,10 @@ export interface AiGenerationView {
167
168
  lastChange?: { sentence: string; outcome: `${PlanChangeOutcome}`; message?: string; at: string };
168
169
  };
169
170
  siteBuildId?: string;
171
+ /** AW-D23: the tier the generation was made at (the studio's plan when it started) — what every compose of its plan
172
+ * in the browser (the render check, the map) is given. The server's stored value; a client never chooses it. Absent
173
+ * (a generation from before AW-P): Basic — `tierOf`. */
174
+ tier?: `${GenerationTier}`;
170
175
  models: Partial<Record<`${AiStep}`, string>>;
171
176
  estimate: number;
172
177
  /** The plan's `aiCreditsPerGeneration` for the whole build, or null when it sets none (a step's own ceiling is