@vectoriox/iox-ui 5.90.1 → 5.91.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.
- package/design-core/index.d.ts +50 -3
- package/fesm2022/vectoriox-iox-ui-design-core.mjs +69 -4
- package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs +575 -77
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui.mjs +40 -23
- package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
- package/generation-core/index.d.ts +161 -20
- package/index.d.ts +18 -1
- package/package.json +1 -1
- package/src/design-core/flavor-spec.generated.ts +28 -0
- package/src/design-core/node-classes.ts +28 -1
- package/src/design-core/token-css.ts +18 -3
- package/src/generation-core/check-layout.ts +84 -25
- package/src/generation-core/compose-layout.ts +92 -7
- package/src/generation-core/compose-site.ts +18 -7
- package/src/generation-core/layout-language.ts +19 -1
- package/src/generation-core/layout-section-fallback.ts +18 -4
- package/src/generation-core/layout-space.ts +260 -0
- package/src/generation-core/patterns.ts +2 -0
- package/src/generation-core/pictures.ts +3 -3
- package/src/generation-core/public-api.ts +1 -0
- package/src/generation-core/site-spec.generated.ts +30 -14
- package/src/generation-core/stock-photos.ts +77 -13
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FrameSequence } from '@vectoriox/iox-ui/media-core';
|
|
2
|
-
import { DesignChoices, AnimateId,
|
|
2
|
+
import { DesignChoices, AnimateId, ColorScheme, DesignTokenLike, StylePreset } from '@vectoriox/iox-ui/design-core';
|
|
3
3
|
import { SeoRawDoc } from '@vectoriox/iox-ui/seo-core';
|
|
4
4
|
import { ContentFieldLike } from '@vectoriox/iox-ui/composite-core';
|
|
5
5
|
import { ParallaxDepth } from '@vectoriox/iox-ui/scene-core';
|
|
@@ -423,6 +423,7 @@ declare const SPEC_SITE_PATTERNS: {
|
|
|
423
423
|
readonly prop: "opacity";
|
|
424
424
|
readonly keys: readonly [readonly [0.5, 0], readonly [0.65, 1]];
|
|
425
425
|
}];
|
|
426
|
+
readonly textHe: "צרו קשר";
|
|
426
427
|
}];
|
|
427
428
|
}];
|
|
428
429
|
}];
|
|
@@ -521,6 +522,7 @@ declare const SPEC_SITE_PATTERNS: {
|
|
|
521
522
|
readonly prop: "opacity";
|
|
522
523
|
readonly keys: readonly [readonly [0.35, 0], readonly [0.5, 1]];
|
|
523
524
|
}];
|
|
525
|
+
readonly textHe: "צרו קשר";
|
|
524
526
|
}];
|
|
525
527
|
}];
|
|
526
528
|
}];
|
|
@@ -837,6 +839,7 @@ declare const SPEC_SITE_PATTERNS: {
|
|
|
837
839
|
readonly max: 24;
|
|
838
840
|
readonly text: "Get in touch";
|
|
839
841
|
readonly role: "nav.cta";
|
|
842
|
+
readonly textHe: "צרו קשר";
|
|
840
843
|
}];
|
|
841
844
|
}];
|
|
842
845
|
};
|
|
@@ -908,6 +911,7 @@ declare const SPEC_SITE_PATTERNS: {
|
|
|
908
911
|
readonly max: 24;
|
|
909
912
|
readonly text: "Get in touch";
|
|
910
913
|
readonly role: "nav.cta";
|
|
914
|
+
readonly textHe: "צרו קשר";
|
|
911
915
|
}];
|
|
912
916
|
}];
|
|
913
917
|
};
|
|
@@ -972,6 +976,7 @@ declare const SPEC_SITE_PATTERNS: {
|
|
|
972
976
|
readonly slot: "pagesLabel";
|
|
973
977
|
readonly max: 40;
|
|
974
978
|
readonly text: "Pages";
|
|
979
|
+
readonly textHe: "עמודים";
|
|
975
980
|
}, {
|
|
976
981
|
readonly t: "Link";
|
|
977
982
|
readonly es: "link";
|
|
@@ -994,6 +999,7 @@ declare const SPEC_SITE_PATTERNS: {
|
|
|
994
999
|
readonly slot: "contactLabel";
|
|
995
1000
|
readonly max: 40;
|
|
996
1001
|
readonly text: "Contact";
|
|
1002
|
+
readonly textHe: "יצירת קשר";
|
|
997
1003
|
}, {
|
|
998
1004
|
readonly t: "Text";
|
|
999
1005
|
readonly es: "small";
|
|
@@ -1088,6 +1094,7 @@ declare const SPEC_SITE_PATTERNS: {
|
|
|
1088
1094
|
readonly slot: "pagesLabel";
|
|
1089
1095
|
readonly max: 40;
|
|
1090
1096
|
readonly text: "Pages";
|
|
1097
|
+
readonly textHe: "עמודים";
|
|
1091
1098
|
}, {
|
|
1092
1099
|
readonly t: "Link";
|
|
1093
1100
|
readonly es: "link";
|
|
@@ -1110,6 +1117,7 @@ declare const SPEC_SITE_PATTERNS: {
|
|
|
1110
1117
|
readonly slot: "visitLabel";
|
|
1111
1118
|
readonly max: 40;
|
|
1112
1119
|
readonly text: "Visit";
|
|
1120
|
+
readonly textHe: "ביקור";
|
|
1113
1121
|
}, {
|
|
1114
1122
|
readonly t: "Text";
|
|
1115
1123
|
readonly es: "small";
|
|
@@ -1134,6 +1142,7 @@ declare const SPEC_SITE_PATTERNS: {
|
|
|
1134
1142
|
readonly slot: "contactLabel";
|
|
1135
1143
|
readonly max: 40;
|
|
1136
1144
|
readonly text: "Contact";
|
|
1145
|
+
readonly textHe: "יצירת קשר";
|
|
1137
1146
|
}, {
|
|
1138
1147
|
readonly t: "Text";
|
|
1139
1148
|
readonly es: "small";
|
|
@@ -1292,6 +1301,7 @@ declare const SPEC_SITE_PATTERNS: {
|
|
|
1292
1301
|
readonly slot: "secondary";
|
|
1293
1302
|
readonly max: 24;
|
|
1294
1303
|
readonly text: "Get in touch";
|
|
1304
|
+
readonly textHe: "צרו קשר";
|
|
1295
1305
|
}];
|
|
1296
1306
|
}];
|
|
1297
1307
|
}, {
|
|
@@ -1371,6 +1381,7 @@ declare const SPEC_SITE_PATTERNS: {
|
|
|
1371
1381
|
readonly slot: "primary";
|
|
1372
1382
|
readonly max: 24;
|
|
1373
1383
|
readonly text: "Get in touch";
|
|
1384
|
+
readonly textHe: "צרו קשר";
|
|
1374
1385
|
}, {
|
|
1375
1386
|
readonly t: "ButtonBlock";
|
|
1376
1387
|
readonly es: "button-secondary";
|
|
@@ -2187,6 +2198,7 @@ declare const SPEC_SITE_PATTERNS: {
|
|
|
2187
2198
|
readonly slot: "action";
|
|
2188
2199
|
readonly max: 24;
|
|
2189
2200
|
readonly text: "Get in touch";
|
|
2201
|
+
readonly textHe: "צרו קשר";
|
|
2190
2202
|
}];
|
|
2191
2203
|
}];
|
|
2192
2204
|
};
|
|
@@ -2837,6 +2849,7 @@ declare const SPEC_SITE_PATTERNS: {
|
|
|
2837
2849
|
readonly max: 44;
|
|
2838
2850
|
readonly text: "Get in touch";
|
|
2839
2851
|
readonly enter: "heading";
|
|
2852
|
+
readonly textHe: "צרו קשר";
|
|
2840
2853
|
}, {
|
|
2841
2854
|
readonly t: "Text";
|
|
2842
2855
|
readonly es: "lead";
|
|
@@ -3717,6 +3730,7 @@ declare const SPEC_SITE_PATTERNS: {
|
|
|
3717
3730
|
readonly slot: "cta";
|
|
3718
3731
|
readonly max: 24;
|
|
3719
3732
|
readonly text: "Get in touch";
|
|
3733
|
+
readonly textHe: "צרו קשר";
|
|
3720
3734
|
}];
|
|
3721
3735
|
}];
|
|
3722
3736
|
};
|
|
@@ -4934,6 +4948,8 @@ declare const SPEC_SITE_LAYOUT: {
|
|
|
4934
4948
|
readonly distinct: {
|
|
4935
4949
|
readonly holdsMax: 1;
|
|
4936
4950
|
};
|
|
4951
|
+
readonly voidScreen: 0.6;
|
|
4952
|
+
readonly bandColumns: 10;
|
|
4937
4953
|
readonly composedPages: 2;
|
|
4938
4954
|
readonly repairs: 1;
|
|
4939
4955
|
};
|
|
@@ -5640,7 +5656,21 @@ declare enum LayoutMendKind {
|
|
|
5640
5656
|
/** A gallery naming a list with no pictures (iox-ui#64): it shows a list that has them — the only one, else the one
|
|
5641
5657
|
* the section's words name, else the first in plan order. None, or the section's words name the list it named
|
|
5642
5658
|
* (iox-ui#66): left to the model. */
|
|
5643
|
-
Source = "source"
|
|
5659
|
+
Source = "source",
|
|
5660
|
+
/** A held section where nothing moves by the scroll (the page stops on a still screen, M8 demo): its line — a word,
|
|
5661
|
+
* heading or text of at most the kinetic words — is lit word by word as the hold plays. */
|
|
5662
|
+
Words = "words",
|
|
5663
|
+
/** A held section where nothing moves and no line can be lit: it flows, one screen tall — when the page can spare the hold. */
|
|
5664
|
+
Unpin = "unpin",
|
|
5665
|
+
/** …and when it cannot (a daring page needs its holds): its largest photo drifts — a slow scale as the hold plays. */
|
|
5666
|
+
Drift = "drift",
|
|
5667
|
+
/** A shape with no purpose — not a rule, a band, a frame, a backdrop to words, and it does not move: it is dropped. */
|
|
5668
|
+
Drop = "drop",
|
|
5669
|
+
/** A section that leaves a stretch of the laptop's screen with nothing on it: its height comes down (its rows keep
|
|
5670
|
+
* their share, the words still fit) until the stretch is gone. */
|
|
5671
|
+
Screens = "screens",
|
|
5672
|
+
/** A daring or Expressive page whose opening has no display: the opening's lead line is set as one (a word). */
|
|
5673
|
+
Display = "display"
|
|
5644
5674
|
}
|
|
5645
5675
|
/** Which rule chose a mended gallery's list. */
|
|
5646
5676
|
declare enum LayoutSourceChoice {
|
|
@@ -5678,6 +5708,22 @@ type LayoutMend = {
|
|
|
5678
5708
|
layer: string;
|
|
5679
5709
|
source: string;
|
|
5680
5710
|
by: `${LayoutSourceChoice}`;
|
|
5711
|
+
} | {
|
|
5712
|
+
kind: LayoutMendKind.Words | LayoutMendKind.Drop | LayoutMendKind.Drift;
|
|
5713
|
+
layer: string;
|
|
5714
|
+
} | {
|
|
5715
|
+
kind: LayoutMendKind.Display;
|
|
5716
|
+
layer: string;
|
|
5717
|
+
size?: `${LayoutSize}`;
|
|
5718
|
+
} | {
|
|
5719
|
+
kind: LayoutMendKind.Unpin;
|
|
5720
|
+
section: number;
|
|
5721
|
+
} | {
|
|
5722
|
+
kind: LayoutMendKind.Screens;
|
|
5723
|
+
sections: ReadonlyArray<{
|
|
5724
|
+
section: number;
|
|
5725
|
+
screens: number;
|
|
5726
|
+
}>;
|
|
5681
5727
|
};
|
|
5682
5728
|
interface LayoutIssue {
|
|
5683
5729
|
code: `${LayoutIssueCode}`;
|
|
@@ -6179,6 +6225,8 @@ interface PatternNode {
|
|
|
6179
6225
|
readonly slot?: string;
|
|
6180
6226
|
readonly fromBusiness?: string;
|
|
6181
6227
|
readonly text?: string;
|
|
6228
|
+
/** The pattern's own words on a Hebrew site (the contract's COPY_HE); `text` everywhere else. */
|
|
6229
|
+
readonly textHe?: string;
|
|
6182
6230
|
readonly ph?: string;
|
|
6183
6231
|
readonly bind?: string;
|
|
6184
6232
|
readonly alt?: string;
|
|
@@ -6796,6 +6844,7 @@ interface ComposedPage {
|
|
|
6796
6844
|
pageKey: string;
|
|
6797
6845
|
runId?: string;
|
|
6798
6846
|
};
|
|
6847
|
+
opening?: `${ColorScheme}`;
|
|
6799
6848
|
};
|
|
6800
6849
|
/** M1-6c: the page's search-result words — written (a static page) or bound to the route item (a template page),
|
|
6801
6850
|
* in the seo-core document shape the shared `resolveSeo` reads. */
|
|
@@ -6870,6 +6919,8 @@ interface NavHeaderInput {
|
|
|
6870
6919
|
readonly business: SiteBusiness;
|
|
6871
6920
|
/** Every page of the studio, in the order the navigation should list them. */
|
|
6872
6921
|
readonly pages: ReadonlyArray<SitePageRef>;
|
|
6922
|
+
/** The site's language (`SiteLocale`): the header's own words (its call to action) in it. English when not given. */
|
|
6923
|
+
readonly locale?: string;
|
|
6873
6924
|
}
|
|
6874
6925
|
interface NavHeaderOptions {
|
|
6875
6926
|
/** The header's id; its parts' ids derive from it (`<id>-0-1-…`), so a fresh id gives fresh parts. */
|
|
@@ -8333,6 +8384,8 @@ interface StockItemSlot extends StockNeed {
|
|
|
8333
8384
|
index: number;
|
|
8334
8385
|
/** The field playing the type's `image` role. */
|
|
8335
8386
|
field: string;
|
|
8387
|
+
/** The item's own name, as words (its `title`): an owner's photo stands under it only when it shows that. */
|
|
8388
|
+
subject?: string[];
|
|
8336
8389
|
}
|
|
8337
8390
|
type StockTarget = StockSlot | StockItemSlot;
|
|
8338
8391
|
/** Where the owner's photo goes: a slot of a composed section or the image field of a sample item. */
|
|
@@ -8341,13 +8394,31 @@ type OwnPhotoPlacement = (Pick<StockSlot, 'nodeId' | 'owner'> | {
|
|
|
8341
8394
|
}) & {
|
|
8342
8395
|
url: string;
|
|
8343
8396
|
};
|
|
8344
|
-
/**
|
|
8345
|
-
|
|
8397
|
+
/** One of the owner's photos: its address, and what it shows in words (the owner's description or the picture review's). */
|
|
8398
|
+
interface OwnPhoto {
|
|
8399
|
+
url: string;
|
|
8400
|
+
words?: string;
|
|
8401
|
+
}
|
|
8402
|
+
/**
|
|
8403
|
+
* How well an owner's photo stands under a sample item (M8 demo: the bar's room photos stood under "Martini" and
|
|
8404
|
+
* "Negroni"): its words name the item, or share at least two of the item's words. 0 — it does not; a photo with no words
|
|
8405
|
+
* never does.
|
|
8406
|
+
*/
|
|
8407
|
+
declare function ownPhotoFit(photo: OwnPhoto, subject: ReadonlyArray<string>, words: ReadonlyArray<string>): number;
|
|
8408
|
+
/**
|
|
8409
|
+
* The owner's photos come before any stock or sample picture. A composed section's empty picture takes them in order and
|
|
8410
|
+
* never repeats one. A sample item takes only one that shows it (`ownPhotoFit`), never twice in one type's samples; an
|
|
8411
|
+
* item none fits keeps its sample picture or goes on to the library (`rest`) — never an unrelated photo under its name.
|
|
8412
|
+
*/
|
|
8413
|
+
declare function planOwnPhotos(slots: ReadonlyArray<StockTarget>, photos: ReadonlyArray<string | OwnPhoto>): {
|
|
8346
8414
|
placements: OwnPhotoPlacement[];
|
|
8347
8415
|
rest: StockTarget[];
|
|
8348
8416
|
};
|
|
8349
|
-
/**
|
|
8350
|
-
|
|
8417
|
+
/**
|
|
8418
|
+
* Each marked sample's gallery shows the owner's photos that fit the item (`ownPhotoFit`) instead of bundled samples; an
|
|
8419
|
+
* item none fits keeps its samples.
|
|
8420
|
+
*/
|
|
8421
|
+
declare function applyOwnPhotoGalleries(plan: Pick<SitePlan, 'contentTypes'>, items: Readonly<Record<string, ReadonlyArray<Record<string, unknown>>>>, photos: ReadonlyArray<string | OwnPhoto>): number;
|
|
8351
8422
|
/** Where a photo may not appear twice: one page; one content type's samples (a list shows them together). */
|
|
8352
8423
|
declare function stockGroupOf(target: StockTarget): string;
|
|
8353
8424
|
/**
|
|
@@ -8539,8 +8610,8 @@ interface PicturePlan {
|
|
|
8539
8610
|
}>;
|
|
8540
8611
|
}
|
|
8541
8612
|
interface PicturePlanOptions {
|
|
8542
|
-
/** The owner's own photos (urls), in order. */
|
|
8543
|
-
ownPhotos?: ReadonlyArray<string>;
|
|
8613
|
+
/** The owner's own photos (urls, with what each shows), in order. */
|
|
8614
|
+
ownPhotos?: ReadonlyArray<string | OwnPhoto>;
|
|
8544
8615
|
/** The business type's rule (harness-core `BusinessType.stock`): where stock may not stand in for the work, no made
|
|
8545
8616
|
* picture may either. */
|
|
8546
8617
|
stockAllowed: boolean;
|
|
@@ -8792,8 +8863,11 @@ interface ComposedLayout {
|
|
|
8792
8863
|
* colour the ground's words take; otherwise null (M8 gate 2, fix first part 3).
|
|
8793
8864
|
*/
|
|
8794
8865
|
declare function phoneWordsColour(l: LayoutLayer, li: number, s: Pick<LayoutSection, 'layers' | 'ground'>): string | null;
|
|
8795
|
-
/** The scheme a form or a
|
|
8866
|
+
/** The scheme a form, a gallery, a button or a ready-made section's content on this section ground wears, or null on the page's own ground. */
|
|
8796
8867
|
declare function layoutBandScheme(ground: string | undefined): ColorScheme | null;
|
|
8868
|
+
/** The column a ready-made section's words start on: where its neighbour's words start (their first column), so the two
|
|
8869
|
+
* share an edge; at most READY_MADE_MAX_COLUMN; 1 (the gutter) when the neighbour has no words. */
|
|
8870
|
+
declare function readyMadeColumn(neighbour: LayoutSection | null): number;
|
|
8797
8871
|
/**
|
|
8798
8872
|
* A layout-language page → its layout and header. Deterministic: the same layout composes to byte-identical nodes.
|
|
8799
8873
|
* Refuses (ComposeError) a link to a section the layout does not have; everything the product cannot say comes back in
|
|
@@ -9269,15 +9343,6 @@ interface CheckLayoutContext {
|
|
|
9269
9343
|
type LayoutColours = Readonly<Record<LayoutColour, string>>;
|
|
9270
9344
|
/** A preset's five colours in a mode as `#rrggbb` (the prototype's `presetColours`), or null when it does not wear that mode. */
|
|
9271
9345
|
declare function layoutPresetColours(presetId: string, mode: 'light' | 'dark'): LayoutColours | null;
|
|
9272
|
-
/**
|
|
9273
|
-
* The laptop the estimates are made on (the render check's 1440 × 900). A grid column is taken as 1440 / 12 px and a row
|
|
9274
|
-
* as its section's screens × 900 / rows (a held section's grid is its one-screen stage): the gutter and the column gaps
|
|
9275
|
-
* are left out, so a box reads about a fifth wider than it renders — the render check measures the real one.
|
|
9276
|
-
*/
|
|
9277
|
-
declare const LAYOUT_CHECK_VIEWPORT: {
|
|
9278
|
-
readonly width: 1440;
|
|
9279
|
-
readonly height: 900;
|
|
9280
|
-
};
|
|
9281
9346
|
/** A section of one photo on one side and words on the other: 'start' | 'end' | null (the prototype's `splitSide`). */
|
|
9282
9347
|
declare function splitSide(s: LayoutSection): 'start' | 'end' | null;
|
|
9283
9348
|
/** Every photo id a page names: photo layers, gallery slides, photo grounds. */
|
|
@@ -9322,6 +9387,82 @@ declare function mendLayout(page: LayoutPage, issues: ReadonlyArray<LayoutIssue>
|
|
|
9322
9387
|
mended: LayoutIssue[];
|
|
9323
9388
|
};
|
|
9324
9389
|
|
|
9390
|
+
/**
|
|
9391
|
+
* The laptop the estimates are made on (the render check's 1440 × 900). A grid column is taken as 1440 / 12 px and a row
|
|
9392
|
+
* as its section's screens × 900 / rows (a held section's grid is its one-screen stage): the gutter and the column gaps
|
|
9393
|
+
* are left out, so a box reads about a fifth wider than it renders — the render check measures the real one.
|
|
9394
|
+
*/
|
|
9395
|
+
declare const LAYOUT_CHECK_VIEWPORT: {
|
|
9396
|
+
readonly width: 1440;
|
|
9397
|
+
readonly height: 900;
|
|
9398
|
+
};
|
|
9399
|
+
/** A line of words stands its size × this tall. */
|
|
9400
|
+
declare const LAYOUT_LINE_HEIGHT = 1.2;
|
|
9401
|
+
/** The kinds a held section's line may be lit by the scroll (`kinetic`). */
|
|
9402
|
+
declare const LAYOUT_KINETIC_KINDS: ReadonlySet<string>;
|
|
9403
|
+
/** A grid box's size in px on the laptop. */
|
|
9404
|
+
declare function layoutBoxPx(col: readonly number[], row: readonly number[], s: Pick<LayoutSection, 'pin' | 'screens' | 'rows'>): {
|
|
9405
|
+
w: number;
|
|
9406
|
+
h: number;
|
|
9407
|
+
};
|
|
9408
|
+
/** Whether a sized text layer's words fit its box at its size (the check's estimate; a `screen` word is sized to fit). */
|
|
9409
|
+
declare function layoutTextFits(l: LayoutLayer, s: Pick<LayoutSection, 'pin' | 'screens' | 'rows'>, size?: string | undefined): boolean;
|
|
9410
|
+
/**
|
|
9411
|
+
* A rule: a shape one row high with no words on it — the looks' hairline ("a shape one row high"). The composer draws it
|
|
9412
|
+
* as a line, never as the row's full height (the bar's grey boxes: a 150–180 px block where a hairline was meant).
|
|
9413
|
+
*/
|
|
9414
|
+
declare function isLayoutRule(s: LayoutSection, li: number): boolean;
|
|
9415
|
+
/** Where a rule's line sits in its row: against the words it belongs to (above it → its top, below it → its bottom). */
|
|
9416
|
+
declare function layoutRuleEdge(s: LayoutSection, li: number): 'start' | 'end' | 'center';
|
|
9417
|
+
/**
|
|
9418
|
+
* A shape is there for something: a rule, a band of colour (wide, or off an edge), a backdrop to words, a frame meeting
|
|
9419
|
+
* a picture, or it moves (tracks, a depth). Anything else is an empty box on the page.
|
|
9420
|
+
*/
|
|
9421
|
+
declare function layoutShapeHasPurpose(s: LayoutSection, li: number): boolean;
|
|
9422
|
+
/** A held section where nothing moves by the scroll: no track, no kinetic line, no gallery the scroll turns. */
|
|
9423
|
+
declare function layoutHeldStill(s: LayoutSection): boolean;
|
|
9424
|
+
/**
|
|
9425
|
+
* The line a still hold can light word by word: a word, heading or text of 2 to the kinetic words, never over a picture —
|
|
9426
|
+
* the lead first, then by size. -1: none.
|
|
9427
|
+
*/
|
|
9428
|
+
declare function layoutStillLine(s: LayoutSection): number;
|
|
9429
|
+
/** A held section's largest photo that may move (not decoration — decoration only fades), for a still hold that cannot
|
|
9430
|
+
* let go of the page: -1, none. */
|
|
9431
|
+
declare function layoutDriftPhoto(s: LayoutSection): number;
|
|
9432
|
+
/** The drift a still hold's photo takes: a slow scale over the whole hold — transform only, inside the track's bounds. */
|
|
9433
|
+
declare const LAYOUT_DRIFT: Readonly<LayoutTrack>;
|
|
9434
|
+
/** A stretch of the laptop's page with nothing on it: where it is (px from the page's top) and the sections it lies in. */
|
|
9435
|
+
interface LayoutVoid {
|
|
9436
|
+
from: number;
|
|
9437
|
+
to: number;
|
|
9438
|
+
sections: number[];
|
|
9439
|
+
}
|
|
9440
|
+
/**
|
|
9441
|
+
* Every stretch more than `voidScreen` of a screen tall with nothing on it, top to bottom. A section that holds (or is a
|
|
9442
|
+
* photo, or ready-made) fills its height; one that flows has its layers' ink (`inkOf`). Judged across the sections, as a
|
|
9443
|
+
* visitor scrolls them; the end of the page counts (the footer is not the page's).
|
|
9444
|
+
*/
|
|
9445
|
+
declare function layoutVoids(sections: ReadonlyArray<LayoutSection>): LayoutVoid[];
|
|
9446
|
+
/**
|
|
9447
|
+
* The heights that close every void: the sections a void lies in that flow come down a quarter screen at a time (never
|
|
9448
|
+
* under one screen; their rows keep their share, and each of their words still fits) until no void is left. Null when
|
|
9449
|
+
* that cannot close them — then the model is asked.
|
|
9450
|
+
*/
|
|
9451
|
+
declare function layoutVoidScreens(sections: ReadonlyArray<LayoutSection>): Array<{
|
|
9452
|
+
section: number;
|
|
9453
|
+
screens: number;
|
|
9454
|
+
}> | null;
|
|
9455
|
+
/** The layers that make an opening's display: a word (set in the display face), or words at xxl or screen size. */
|
|
9456
|
+
declare function layoutOpeningDisplays(page: Pick<LayoutPage, 'sections'>): number[];
|
|
9457
|
+
/**
|
|
9458
|
+
* The opening's lead set as its display (a word) where it can be: a heading of at most `xl`'s characters. Its size goes
|
|
9459
|
+
* up to xl where it still fits there. Null: no such lead.
|
|
9460
|
+
*/
|
|
9461
|
+
declare function layoutOpeningDisplayMend(page: Pick<LayoutPage, 'sections'>): {
|
|
9462
|
+
layer: number;
|
|
9463
|
+
size?: `${LayoutSize}`;
|
|
9464
|
+
} | null;
|
|
9465
|
+
|
|
9325
9466
|
/**
|
|
9326
9467
|
* THE CROSS-SITE FINGERPRINT (premium components M8 gate 2, M8-G2-D7; the prototype's `fingerprint` + `sameness`,
|
|
9327
9468
|
* `code/cl2.mjs`): what makes two composed pages read as the same — how the page opens, the sequence of its sections, the
|
|
@@ -9417,5 +9558,5 @@ declare function applyLayoutEdits(page: LayoutPage, edits: ReadonlyArray<LayoutE
|
|
|
9417
9558
|
/** The strict format a repair is asked in: `{ edits: [{ op, path, value }] }`, every key required. */
|
|
9418
9559
|
declare function layoutRepairJsonSchema(): JsonSchema;
|
|
9419
9560
|
|
|
9420
|
-
export { ACTION_START_SCALE, ACTIVE_BUILD_STATUSES, AI_REFUSAL_NEXT, AI_REFUSAL_STATUS, AI_STEPS, AI_STEP_LABELS, AI_STEP_NEEDS, AI_STEP_PART_TOKENS, AI_STEP_TYPICAL_TOKENS, ART_DIRECTION_PARTS, AiCallStatus, AiCapability, AiFeature, AiGenerationStage, AiKeyMode, AiLimit, AiNextKind, AiProviderId, AiRefusalCode, AiStep, BAR_ITEMS_MAX, BAR_ITEMS_MIN, BASELINE_ROLES, BUILD_STEPS, BaselineRole, BindScope, BuildNoticeCode, BuildStep, CONTENT_ROLE_MEANINGS, CREDITS_PER_USD, CardBindTarget, CheckSeverity, ComposeError, ComposeIssueCode, ContentFieldControl, ContentFieldType, ContentRole, ContentTypeAction, CreatedKind, DANGLING_LINK_CODES, DEFAULT_PHONE_MENU_BREAKPOINT, DEFAULT_SITE_LOCALE, ENTRANCE_EASING, ENTRANCE_ORIGIN_LOOK, ENTRANCE_TRIGGER, EntrancePart, EntranceSide, FACT_KEYS, FIELD_TYPE_OF_CONTROL, FILL_ASPECT, FILM_PATTERN, FINAL_GENERATION_STAGES, FINDING_SEVERITY, FilmUnplaced, GRAMMAR_TOO_LARGE_MESSAGE, GlobalSlot, HEBREW_PREFIXES, JSON_SCHEMA_BANNED_KEYWORDS, JsonSchemaShapeError, KeptReason, LAYOUT_ACCENT_TEXT, LAYOUT_BEAT_DELAY, LAYOUT_CHECK_VIEWPORT, LAYOUT_COLOUR_TOKEN, LAYOUT_COLUMN_GAP, LAYOUT_DEPTH_ON_PHONE, LAYOUT_EASING, LAYOUT_ENTRANCE_MAX_MS, LAYOUT_FONT_SIZE, LAYOUT_GUTTER, LAYOUT_HIDDEN_OPACITY, LAYOUT_OPERATED, LAYOUT_PACE, LAYOUT_PHONE_BREAKPOINT, LAYOUT_PHONE_PADDING, LAYOUT_PHOTO_ASPECT, LAYOUT_READY_MADE_TOKEN, LAYOUT_RISE, LAYOUT_SCREEN_PX, LAYOUT_TEXT_KINDS, LAYOUT_TOOLTIP_TRAIT, LAYOUT_VIEWPORTS, LAYOUT_WIRE_AUTOPLAY_MS, LayoutAlign, LayoutBleed, LayoutButtonVariant, LayoutColour, LayoutColourMode, LayoutDepth, LayoutDial, LayoutEase, LayoutEditOp, LayoutEnter, LayoutGalleryEffect, LayoutGapCode, LayoutIssueCode, LayoutLayerKind, LayoutMendKind, LayoutNavKind, LayoutPace, LayoutPhotoShape, LayoutPhotoSource, LayoutRole, LayoutSectionKind, LayoutSequenceToken, LayoutSide, LayoutSignatureId, LayoutSize, LayoutSourceChoice, LayoutTrackProp, LayoutTransition, LayoutViewport, MAX_SITE_PICTURES, NAV_PART_LABELS, NAV_SHAPE_COPY, NEUTRAL_STYLE_PROPS, NODE_BASELINES, NO_TOKENS, NavPagesSource, NavRole, NavShape, NavShapeError, PAGE_ARCHETYPES, PHOTO_ANALYSIS_WIDTH, PHOTO_CALM_DETAIL, PHOTO_GRID, PHOTO_LIGHT_LUMINANCE, PICTURE_ASPECTS, PICTURE_NEVER, PICTURE_REAL_PLACE_FAMILIES, PICTURE_REROLL_EVERY, PICTURE_REVIEW_FORMAT, PICTURE_REVIEW_SHAPE, PICTURE_TEXT_CONTRAST, PICTURE_WORLDS, PICTURE_WORLD_IDS, PLAN_EDITS_ANSWER_SHAPES, PLAN_EDITS_PART_SCHEMA_NAMES, PLAN_EDIT_OP_PART, PLAN_EDIT_SHAPE, PLAN_EDIT_WIRE_KEYS, PLAN_PARTS, PLAN_PART_KEYS, PLAN_WIRE_DERIVED, PLAN_WIRE_PART_SCHEMA_NAMES, PLAN_WIRE_SHAPE, PRICING_PATTERN, PROOF_FINGERPRINTS, PUBLISH_BLOCKING_PLACEHOLDERS, PageDataKind, PathIssueCollector, PatternDirective, PatternGlobalPosition, PatternOpens, PatternPlaceholder, PatternRecipe, PhoneMenuBreakpoint, PhotoTone, PictureRefusal, PictureWorld, PlaceholderKind, PlanChangeAction, PlanChangeKind, PlanDataSourceMode, PlanDataSourceType, PlanEditIssueCode, PlanEditOp, PlanEditsOutcome, PlanPart, PlanWireEntry, PlanWireShapeError, PlanWordIssueCode, PreflightRefusalCode, PublishRefusalCode, RENDER_CHECK, REQUIRED_CONTENT_ROLES, RelativeOp, SAMPLE_IMAGE_REF, SCENE_LEVEL, SCENE_OTHER_PAGES, SCRIM_BACKGROUND, SCRIM_COVER, SCRIM_LEVELS, SHOWCASE_FILM, SITE_CHECKS, SITE_FACT_LABELS, SITE_HEADER_PATTERN, SITE_LIBRARY, SITE_LOCALES, SITE_NEED_IDS, SITE_PATTERNS, SITE_PLAN_VERSION, SITE_TEMPLATES, SPEC_SITE_ARCHETYPES, SPEC_SITE_COPY_LENGTHS, SPEC_SITE_DENSITY_COPY, SPEC_SITE_FACTS, SPEC_SITE_LAYOUT, SPEC_SITE_LIBRARY, SPEC_SITE_LOCALES, SPEC_SITE_NEED_IDS, SPEC_SITE_PATTERNS, SPEC_SITE_PICTURE_NEVER, SPEC_SITE_PICTURE_WORLDS, SPEC_SITE_PLAN_SHAPE, SPEC_SITE_REQUIRED_ROLES, SPEC_SITE_ROLES, SPEC_SITE_TEMPLATES, STOCK_FAMILIES, STOCK_FAMILY_INTENTS, STOCK_INTENT_ORDER, STOCK_INTENT_SUBJECTS, STOCK_ITEM_ASPECT, STOCK_MIN_KEPT, STOCK_PROVIDER_TERMS, STOCK_SEED_MARGIN, STOCK_SUBJECT_WORDS, STRICT_SCHEMA_BUDGET, STRICT_SCHEMA_LIMITS, STUDIO_TEMPLATE, ScrimLevel, SectionFallbackLastResort, SectionSwapAction, SectionSwapRule, SiteBuildKind, SiteBuildStatus, SiteCheckId, SiteFindingCode, SiteLocale, SitePlanError, SitePlanIssueCode, SitePlanSourceKind, SiteTemplateError, SiteTemplateId, StepState, StockIntent, StockOrientation, StockProviderId, StockReviewFlag, StockReviewVerdict, StockSlotKind, StockSubject, WORDS_AREA_DEFAULT_SHARE, WordsEdge, addBarItem, addStockCredits, aiStepParts, applyLayoutEdits, applyOwnPhotoGalleries, applyPictureScrims, applyPlanEdits, applyStockItemPhotos, applyStockPhotos, archetypeIssues, areaLuminance, artDirectionFor, artDirectionIssues, artDirectionPreamble, aspectRatioOf, assertStyleSlots, assertValidSitePlan, auditLayoutMotion, auditSite, barIconForRoute, blocksPublish, brandHueWord, buildKeys, buildStepFacts, builtHomePageId, calmParts, calmUnder, checkLayout, chooseScrim, composeContextOf, composeLayout, composeNavHeader, composePresetForm, composeSection, composeSite, contentTypeOfSource, contentTypePreviewFields, contentTypeToWire, copyLengthOf, costUsd, coverCrop, createSerializedNode, creditsOfUsd, dataSourceToWire, derivedBeats, derivedDataSources, describeInventoryForPrompt, describePlanData, describeShapeKey, driftAt, driftOverlap, emptyAreaPhrase, entranceAction, entranceInteraction, estimatePictures, estimateStepCredits, expandLayoutWire, expandPlanWire, expandWireContentType, expandWireDataSource, expandWireEdit, expandWireField, expandWirePage, expandWireSection, failedBuildStep, fallBackBySection, fieldToWire, filmOfPlan, filmPlacement, findNavRoot, fingerprintOf, frameWords, isActiveBuild, isNonEmptyString, isPictureWorld, isPlainObject, isRtlLocale, jsonAnyOf, jsonBoolean, jsonClosedObject, jsonInteger, jsonListOf, jsonOneOf, jsonSchemaKeywords, jsonSchemaObjects, jsonShapedObject, jsonText, judgeLayoutRender, layerShownSpans, layoutBandScheme, layoutColumnsVw, layoutDesignOf, layoutDialOf, layoutElementStyle, layoutGalleryLists, layoutGallerySources, layoutGlideDepth, layoutLookChanges, layoutLookOf, layoutMotionOf, layoutNodeClass, layoutPathSteps, layoutPhotoIds, layoutPresetColours, layoutPresetOf, layoutRepairJsonSchema, layoutRoomPx, layoutTextWidthEm, layoutToWire, layoutWireJsonSchema, luminanceOf, measureLayout, mendLayout, modelCanDo, moveBarItem, navPages, navShapeBreakpoint, navShapeOf, nextSourceOf, nodeBindPaths, orientationOfRatio, pageToWire, parseLayoutPhotoId, parsePatternPath, parseSampleImageRef, pathAt, patternById, patternHasForm, patternLinkSlots, patternListGap, patternManifest, patternNeedsBinding, patternNodes, patternOptionalParts, patternRoleNeeds, patternScopes, patternSlotBudgets, patternSlots, patternTakesBinding, phoneGapBefore, phoneMenuPages, phoneWordsColour, photoInventory, photoShapeOf, pictureAspect, picturePrompt, pictureRefusalOf, pictureRerolls, pictureReviewIssues, pictureReviewJsonSchema, pictureReviewPasses, pictureSlotKey, pictureTargets, pictureTryFits, pixelsUnder, placeFilm, planEditOps, planEditToWire, planEditWireGaps, planEditWireKeys, planEditWireOps, planEditWireShape, planEditsFromWire, planEditsJsonSchema, planEditsToWire, planEntrances, planFromTemplate, planLayoutPhotos, planNavShape, planOwnPhotos, planPartOfPath, planPartToWire, planPictures, planStockPhotos, planToWire, planWireGaps, planWirePartJsonSchema, planWirePartShape, planWordIssues, publishRefusal, publishVerdict, recipeListBinds, recomposeAsks, releasedLayoutDefaults, removeBarItem, requiredAcknowledgements, requiredShapeKeys, roleField, routeMatches, routeParams, samenessIssues, sampleImageRef, scoreStockPhoto, screenFontSize, screenWordColumns, screenWordMisfit, screenWordOverflowPx, sectionEntrances, sectionPatternIds, sectionToWire, sectionsNamed, sequenceShare, sequenceTokenOf, setStyleProps, shapeKeys, showcaseGlobals, showcasePages, showcasePlans, showcaseScenes, shownTogether, signatureOf, siteNavPages, slotBudget, splitSide, stockCopyKey, stockCreditLine, stockCreditLines, stockCreditNode, stockCreditNodeId, stockFits, stockGroupOf, stockItemSlots, stockKept, stockPhotoRatio, stockPhotoSubject, stockPhotoUsable, stockPhotoWords, stockSlots, stockWord, stockWords, strictSchemaComplexity, strictSchemaRefusal, toneOf, typicalStepTokens, validatePlanEdits, validateSitePlan, walkSerialized, wireContentTypeJsonSchema, wireDataSourceJsonSchema, wireFieldJsonSchema, wirePageJsonSchema, wireSectionJsonSchema, withDerivedSources, wordPattern, wordsOverPhotos, wordsOverPicture, writtenTexts };
|
|
9421
|
-
export type { AddBarItemResult, AiEntitlementsView, AiMeter, AiModelEntry, AiRefusal, AiTokenCounts, AiTokenPrice, AreaLuminance, ArtDirection, AuditPage, AuditPlaceholder, BarItemsEditResult, BuildNotice, BuildStepError, BuildStepFacts, BuildStepRecord, CalmReading, CheckLayoutContext, CmsDataSourcePlan, ComposeContext, ComposeIssue, ComposeLayoutOptions, ComposedDataSource, ComposedItem, ComposedLayout, ComposedNavHeader, ComposedPage, ComposedPlaceholder, ComposedRoute, ComposedSection, ComposedSite, ContentFieldPlan, ContentRoles, ContentSeedPlan, ContentTypePlan, CreateNodeOptions, CreatedRecord, DataSourcePlan, DriftBox, DriftLayer, DriftMeeting, DynamicKeysAsList, EntranceAction, EntranceActionOptions, EntranceInteraction, EntranceMark, EntranceSpec, EntranceStamp, FactKey, FilmPlacement, FilmTarget, FingerprintedPage, FrameRegion, JsonSchema, LayoutBandMove, LayoutColours, LayoutEdit, LayoutFingerprint, LayoutForm, LayoutGallery, LayoutGalleryList, LayoutGap, LayoutGivenAway, LayoutIssue, LayoutLayer, LayoutLook, LayoutMend, LayoutPage, LayoutPhotoAddress, LayoutReadyMade, LayoutRect, LayoutSection, LayoutSite, LayoutTrack, LayoutWire, LayoutWireLayer, LayoutWireSection, LayoutWireSlot, LayoutWireTrack, MeasuredLayer, MeasuredLayout, NavHeaderInput, NavHeaderOptions, NavPage, NavShapeOptions, NavShapeResult, NodeBaseline, OwnPhotoPlacement, PageArchetype, PageArchetypeId, PageArchetypeSlot, PageData, PageDataLine, PagePlan, PageSectionPlan, PageSeoPlan, PathIssue, PatternManifestEntry, PatternManifestOptions, PatternNode, PatternPath, PatternRoleNeed, PatternTrack, PhotoInventory, PhotoWordsArea, PicturePlan, PicturePlanOptions, PicturePromptContext, PictureReview, PictureSlot, PictureTryBudget, PictureWorldSpec, PicturesEstimate, PixelReading, PlacedFilm, PlainObject, PlanChange, PlanDirection, PlanEdit, PlanEditIssue, PlanEditResult, PlanEditsAnswer, PlanEntrancesInput, PlanFilm, PlanWireContext, PlanWireParts, PlanWordContext, PlanWordIssue, PreflightRefusal, PublishRefusal, RecipeListBinds, RelativeDataSourcePlan, ScrimChoice, SectionEntrances, SectionFallback, SectionInput, SectionJudge, SectionOptions, SectionSwap, SerializedBinding, SerializedNode, SerializedResponsive, ShapeEntry, ShapeIssueCodes, ShowcaseInput, SiteAudit, SiteAuditOptions, SiteAuditSnapshot, SiteBuildRun, SiteBusiness, SiteCheck, SiteFinding, SiteNeedId, SitePageRef, SitePattern, SitePlan, SitePlanIssue, SitePlanSource, SitePlanValidation, SiteTemplate, StockCredit, StockItemSlot, StockLink, StockNeed, StockPhoto, StockPhotoTraits, StockPlacement, StockPlanOptions, StockProviderTerms, StockReview, StockSlot, StockTarget, StrictSchemaComplexity, StrictSchemaRefusal, TemplatePlanInput, UndoKept, UndoPreview, UndoRecord, WireOptions, WordsArea, WrittenText };
|
|
9561
|
+
export { ACTION_START_SCALE, ACTIVE_BUILD_STATUSES, AI_REFUSAL_NEXT, AI_REFUSAL_STATUS, AI_STEPS, AI_STEP_LABELS, AI_STEP_NEEDS, AI_STEP_PART_TOKENS, AI_STEP_TYPICAL_TOKENS, ART_DIRECTION_PARTS, AiCallStatus, AiCapability, AiFeature, AiGenerationStage, AiKeyMode, AiLimit, AiNextKind, AiProviderId, AiRefusalCode, AiStep, BAR_ITEMS_MAX, BAR_ITEMS_MIN, BASELINE_ROLES, BUILD_STEPS, BaselineRole, BindScope, BuildNoticeCode, BuildStep, CONTENT_ROLE_MEANINGS, CREDITS_PER_USD, CardBindTarget, CheckSeverity, ComposeError, ComposeIssueCode, ContentFieldControl, ContentFieldType, ContentRole, ContentTypeAction, CreatedKind, DANGLING_LINK_CODES, DEFAULT_PHONE_MENU_BREAKPOINT, DEFAULT_SITE_LOCALE, ENTRANCE_EASING, ENTRANCE_ORIGIN_LOOK, ENTRANCE_TRIGGER, EntrancePart, EntranceSide, FACT_KEYS, FIELD_TYPE_OF_CONTROL, FILL_ASPECT, FILM_PATTERN, FINAL_GENERATION_STAGES, FINDING_SEVERITY, FilmUnplaced, GRAMMAR_TOO_LARGE_MESSAGE, GlobalSlot, HEBREW_PREFIXES, JSON_SCHEMA_BANNED_KEYWORDS, JsonSchemaShapeError, KeptReason, LAYOUT_ACCENT_TEXT, LAYOUT_BEAT_DELAY, LAYOUT_CHECK_VIEWPORT, LAYOUT_COLOUR_TOKEN, LAYOUT_COLUMN_GAP, LAYOUT_DEPTH_ON_PHONE, LAYOUT_DRIFT, LAYOUT_EASING, LAYOUT_ENTRANCE_MAX_MS, LAYOUT_FONT_SIZE, LAYOUT_GUTTER, LAYOUT_HIDDEN_OPACITY, LAYOUT_KINETIC_KINDS, LAYOUT_LINE_HEIGHT, LAYOUT_OPERATED, LAYOUT_PACE, LAYOUT_PHONE_BREAKPOINT, LAYOUT_PHONE_PADDING, LAYOUT_PHOTO_ASPECT, LAYOUT_READY_MADE_TOKEN, LAYOUT_RISE, LAYOUT_SCREEN_PX, LAYOUT_TEXT_KINDS, LAYOUT_TOOLTIP_TRAIT, LAYOUT_VIEWPORTS, LAYOUT_WIRE_AUTOPLAY_MS, LayoutAlign, LayoutBleed, LayoutButtonVariant, LayoutColour, LayoutColourMode, LayoutDepth, LayoutDial, LayoutEase, LayoutEditOp, LayoutEnter, LayoutGalleryEffect, LayoutGapCode, LayoutIssueCode, LayoutLayerKind, LayoutMendKind, LayoutNavKind, LayoutPace, LayoutPhotoShape, LayoutPhotoSource, LayoutRole, LayoutSectionKind, LayoutSequenceToken, LayoutSide, LayoutSignatureId, LayoutSize, LayoutSourceChoice, LayoutTrackProp, LayoutTransition, LayoutViewport, MAX_SITE_PICTURES, NAV_PART_LABELS, NAV_SHAPE_COPY, NEUTRAL_STYLE_PROPS, NODE_BASELINES, NO_TOKENS, NavPagesSource, NavRole, NavShape, NavShapeError, PAGE_ARCHETYPES, PHOTO_ANALYSIS_WIDTH, PHOTO_CALM_DETAIL, PHOTO_GRID, PHOTO_LIGHT_LUMINANCE, PICTURE_ASPECTS, PICTURE_NEVER, PICTURE_REAL_PLACE_FAMILIES, PICTURE_REROLL_EVERY, PICTURE_REVIEW_FORMAT, PICTURE_REVIEW_SHAPE, PICTURE_TEXT_CONTRAST, PICTURE_WORLDS, PICTURE_WORLD_IDS, PLAN_EDITS_ANSWER_SHAPES, PLAN_EDITS_PART_SCHEMA_NAMES, PLAN_EDIT_OP_PART, PLAN_EDIT_SHAPE, PLAN_EDIT_WIRE_KEYS, PLAN_PARTS, PLAN_PART_KEYS, PLAN_WIRE_DERIVED, PLAN_WIRE_PART_SCHEMA_NAMES, PLAN_WIRE_SHAPE, PRICING_PATTERN, PROOF_FINGERPRINTS, PUBLISH_BLOCKING_PLACEHOLDERS, PageDataKind, PathIssueCollector, PatternDirective, PatternGlobalPosition, PatternOpens, PatternPlaceholder, PatternRecipe, PhoneMenuBreakpoint, PhotoTone, PictureRefusal, PictureWorld, PlaceholderKind, PlanChangeAction, PlanChangeKind, PlanDataSourceMode, PlanDataSourceType, PlanEditIssueCode, PlanEditOp, PlanEditsOutcome, PlanPart, PlanWireEntry, PlanWireShapeError, PlanWordIssueCode, PreflightRefusalCode, PublishRefusalCode, RENDER_CHECK, REQUIRED_CONTENT_ROLES, RelativeOp, SAMPLE_IMAGE_REF, SCENE_LEVEL, SCENE_OTHER_PAGES, SCRIM_BACKGROUND, SCRIM_COVER, SCRIM_LEVELS, SHOWCASE_FILM, SITE_CHECKS, SITE_FACT_LABELS, SITE_HEADER_PATTERN, SITE_LIBRARY, SITE_LOCALES, SITE_NEED_IDS, SITE_PATTERNS, SITE_PLAN_VERSION, SITE_TEMPLATES, SPEC_SITE_ARCHETYPES, SPEC_SITE_COPY_LENGTHS, SPEC_SITE_DENSITY_COPY, SPEC_SITE_FACTS, SPEC_SITE_LAYOUT, SPEC_SITE_LIBRARY, SPEC_SITE_LOCALES, SPEC_SITE_NEED_IDS, SPEC_SITE_PATTERNS, SPEC_SITE_PICTURE_NEVER, SPEC_SITE_PICTURE_WORLDS, SPEC_SITE_PLAN_SHAPE, SPEC_SITE_REQUIRED_ROLES, SPEC_SITE_ROLES, SPEC_SITE_TEMPLATES, STOCK_FAMILIES, STOCK_FAMILY_INTENTS, STOCK_INTENT_ORDER, STOCK_INTENT_SUBJECTS, STOCK_ITEM_ASPECT, STOCK_MIN_KEPT, STOCK_PROVIDER_TERMS, STOCK_SEED_MARGIN, STOCK_SUBJECT_WORDS, STRICT_SCHEMA_BUDGET, STRICT_SCHEMA_LIMITS, STUDIO_TEMPLATE, ScrimLevel, SectionFallbackLastResort, SectionSwapAction, SectionSwapRule, SiteBuildKind, SiteBuildStatus, SiteCheckId, SiteFindingCode, SiteLocale, SitePlanError, SitePlanIssueCode, SitePlanSourceKind, SiteTemplateError, SiteTemplateId, StepState, StockIntent, StockOrientation, StockProviderId, StockReviewFlag, StockReviewVerdict, StockSlotKind, StockSubject, WORDS_AREA_DEFAULT_SHARE, WordsEdge, addBarItem, addStockCredits, aiStepParts, applyLayoutEdits, applyOwnPhotoGalleries, applyPictureScrims, applyPlanEdits, applyStockItemPhotos, applyStockPhotos, archetypeIssues, areaLuminance, artDirectionFor, artDirectionIssues, artDirectionPreamble, aspectRatioOf, assertStyleSlots, assertValidSitePlan, auditLayoutMotion, auditSite, barIconForRoute, blocksPublish, brandHueWord, buildKeys, buildStepFacts, builtHomePageId, calmParts, calmUnder, checkLayout, chooseScrim, composeContextOf, composeLayout, composeNavHeader, composePresetForm, composeSection, composeSite, contentTypeOfSource, contentTypePreviewFields, contentTypeToWire, copyLengthOf, costUsd, coverCrop, createSerializedNode, creditsOfUsd, dataSourceToWire, derivedBeats, derivedDataSources, describeInventoryForPrompt, describePlanData, describeShapeKey, driftAt, driftOverlap, emptyAreaPhrase, entranceAction, entranceInteraction, estimatePictures, estimateStepCredits, expandLayoutWire, expandPlanWire, expandWireContentType, expandWireDataSource, expandWireEdit, expandWireField, expandWirePage, expandWireSection, failedBuildStep, fallBackBySection, fieldToWire, filmOfPlan, filmPlacement, findNavRoot, fingerprintOf, frameWords, isActiveBuild, isLayoutRule, isNonEmptyString, isPictureWorld, isPlainObject, isRtlLocale, jsonAnyOf, jsonBoolean, jsonClosedObject, jsonInteger, jsonListOf, jsonOneOf, jsonSchemaKeywords, jsonSchemaObjects, jsonShapedObject, jsonText, judgeLayoutRender, layerShownSpans, layoutBandScheme, layoutBoxPx, layoutColumnsVw, layoutDesignOf, layoutDialOf, layoutDriftPhoto, layoutElementStyle, layoutGalleryLists, layoutGallerySources, layoutGlideDepth, layoutHeldStill, layoutLookChanges, layoutLookOf, layoutMotionOf, layoutNodeClass, layoutOpeningDisplayMend, layoutOpeningDisplays, layoutPathSteps, layoutPhotoIds, layoutPresetColours, layoutPresetOf, layoutRepairJsonSchema, layoutRoomPx, layoutRuleEdge, layoutShapeHasPurpose, layoutStillLine, layoutTextFits, layoutTextWidthEm, layoutToWire, layoutVoidScreens, layoutVoids, layoutWireJsonSchema, luminanceOf, measureLayout, mendLayout, modelCanDo, moveBarItem, navPages, navShapeBreakpoint, navShapeOf, nextSourceOf, nodeBindPaths, orientationOfRatio, ownPhotoFit, pageToWire, parseLayoutPhotoId, parsePatternPath, parseSampleImageRef, pathAt, patternById, patternHasForm, patternLinkSlots, patternListGap, patternManifest, patternNeedsBinding, patternNodes, patternOptionalParts, patternRoleNeeds, patternScopes, patternSlotBudgets, patternSlots, patternTakesBinding, phoneGapBefore, phoneMenuPages, phoneWordsColour, photoInventory, photoShapeOf, pictureAspect, picturePrompt, pictureRefusalOf, pictureRerolls, pictureReviewIssues, pictureReviewJsonSchema, pictureReviewPasses, pictureSlotKey, pictureTargets, pictureTryFits, pixelsUnder, placeFilm, planEditOps, planEditToWire, planEditWireGaps, planEditWireKeys, planEditWireOps, planEditWireShape, planEditsFromWire, planEditsJsonSchema, planEditsToWire, planEntrances, planFromTemplate, planLayoutPhotos, planNavShape, planOwnPhotos, planPartOfPath, planPartToWire, planPictures, planStockPhotos, planToWire, planWireGaps, planWirePartJsonSchema, planWirePartShape, planWordIssues, publishRefusal, publishVerdict, readyMadeColumn, recipeListBinds, recomposeAsks, releasedLayoutDefaults, removeBarItem, requiredAcknowledgements, requiredShapeKeys, roleField, routeMatches, routeParams, samenessIssues, sampleImageRef, scoreStockPhoto, screenFontSize, screenWordColumns, screenWordMisfit, screenWordOverflowPx, sectionEntrances, sectionPatternIds, sectionToWire, sectionsNamed, sequenceShare, sequenceTokenOf, setStyleProps, shapeKeys, showcaseGlobals, showcasePages, showcasePlans, showcaseScenes, shownTogether, signatureOf, siteNavPages, slotBudget, splitSide, stockCopyKey, stockCreditLine, stockCreditLines, stockCreditNode, stockCreditNodeId, stockFits, stockGroupOf, stockItemSlots, stockKept, stockPhotoRatio, stockPhotoSubject, stockPhotoUsable, stockPhotoWords, stockSlots, stockWord, stockWords, strictSchemaComplexity, strictSchemaRefusal, toneOf, typicalStepTokens, validatePlanEdits, validateSitePlan, walkSerialized, wireContentTypeJsonSchema, wireDataSourceJsonSchema, wireFieldJsonSchema, wirePageJsonSchema, wireSectionJsonSchema, withDerivedSources, wordPattern, wordsOverPhotos, wordsOverPicture, writtenTexts };
|
|
9562
|
+
export type { AddBarItemResult, AiEntitlementsView, AiMeter, AiModelEntry, AiRefusal, AiTokenCounts, AiTokenPrice, AreaLuminance, ArtDirection, AuditPage, AuditPlaceholder, BarItemsEditResult, BuildNotice, BuildStepError, BuildStepFacts, BuildStepRecord, CalmReading, CheckLayoutContext, CmsDataSourcePlan, ComposeContext, ComposeIssue, ComposeLayoutOptions, ComposedDataSource, ComposedItem, ComposedLayout, ComposedNavHeader, ComposedPage, ComposedPlaceholder, ComposedRoute, ComposedSection, ComposedSite, ContentFieldPlan, ContentRoles, ContentSeedPlan, ContentTypePlan, CreateNodeOptions, CreatedRecord, DataSourcePlan, DriftBox, DriftLayer, DriftMeeting, DynamicKeysAsList, EntranceAction, EntranceActionOptions, EntranceInteraction, EntranceMark, EntranceSpec, EntranceStamp, FactKey, FilmPlacement, FilmTarget, FingerprintedPage, FrameRegion, JsonSchema, LayoutBandMove, LayoutColours, LayoutEdit, LayoutFingerprint, LayoutForm, LayoutGallery, LayoutGalleryList, LayoutGap, LayoutGivenAway, LayoutIssue, LayoutLayer, LayoutLook, LayoutMend, LayoutPage, LayoutPhotoAddress, LayoutReadyMade, LayoutRect, LayoutSection, LayoutSite, LayoutTrack, LayoutVoid, LayoutWire, LayoutWireLayer, LayoutWireSection, LayoutWireSlot, LayoutWireTrack, MeasuredLayer, MeasuredLayout, NavHeaderInput, NavHeaderOptions, NavPage, NavShapeOptions, NavShapeResult, NodeBaseline, OwnPhoto, OwnPhotoPlacement, PageArchetype, PageArchetypeId, PageArchetypeSlot, PageData, PageDataLine, PagePlan, PageSectionPlan, PageSeoPlan, PathIssue, PatternManifestEntry, PatternManifestOptions, PatternNode, PatternPath, PatternRoleNeed, PatternTrack, PhotoInventory, PhotoWordsArea, PicturePlan, PicturePlanOptions, PicturePromptContext, PictureReview, PictureSlot, PictureTryBudget, PictureWorldSpec, PicturesEstimate, PixelReading, PlacedFilm, PlainObject, PlanChange, PlanDirection, PlanEdit, PlanEditIssue, PlanEditResult, PlanEditsAnswer, PlanEntrancesInput, PlanFilm, PlanWireContext, PlanWireParts, PlanWordContext, PlanWordIssue, PreflightRefusal, PublishRefusal, RecipeListBinds, RelativeDataSourcePlan, ScrimChoice, SectionEntrances, SectionFallback, SectionInput, SectionJudge, SectionOptions, SectionSwap, SerializedBinding, SerializedNode, SerializedResponsive, ShapeEntry, ShapeIssueCodes, ShowcaseInput, SiteAudit, SiteAuditOptions, SiteAuditSnapshot, SiteBuildRun, SiteBusiness, SiteCheck, SiteFinding, SiteNeedId, SitePageRef, SitePattern, SitePlan, SitePlanIssue, SitePlanSource, SitePlanValidation, SiteTemplate, StockCredit, StockItemSlot, StockLink, StockNeed, StockPhoto, StockPhotoTraits, StockPlacement, StockPlanOptions, StockProviderTerms, StockReview, StockSlot, StockTarget, StrictSchemaComplexity, StrictSchemaRefusal, TemplatePlanInput, UndoKept, UndoPreview, UndoRecord, WireOptions, WordsArea, WrittenText };
|
package/index.d.ts
CHANGED
|
@@ -3650,6 +3650,9 @@ interface PageTransitionPreset {
|
|
|
3650
3650
|
outDelayRatio?: number;
|
|
3651
3651
|
/** Delay before the IN animation starts, as a fraction (0..1) of the duration. */
|
|
3652
3652
|
inDelayRatio?: number;
|
|
3653
|
+
/** The OUT animation's length as a fraction (0..1] of the duration: a page that leaves from BEHIND the arriving one is
|
|
3654
|
+
* gone before it lands — an exit is faster than an entrance (Emil). Default 1 (both travel together). */
|
|
3655
|
+
outDurationRatio?: number;
|
|
3653
3656
|
/**
|
|
3654
3657
|
* Optional full-screen overlay panel (curtain / wipe). When present the transition plays as
|
|
3655
3658
|
* COVER → swap → UNCOVER instead of the two page layers animating against each other: the panel
|
|
@@ -3664,6 +3667,12 @@ interface PageTransitionPreset {
|
|
|
3664
3667
|
uncoverKeyframes: Keyframe[];
|
|
3665
3668
|
};
|
|
3666
3669
|
}
|
|
3670
|
+
/**
|
|
3671
|
+
* A page that leaves from BEHIND the arriving one finishes in this share of the duration (M8 demo, the live bar): the
|
|
3672
|
+
* old page fades all the way out and is gone before the new one lands; it never pops out from under it. Exits are
|
|
3673
|
+
* faster than entrances.
|
|
3674
|
+
*/
|
|
3675
|
+
declare const PAGE_LEAVE_RATIO = 0.7;
|
|
3667
3676
|
declare const PAGE_TRANSITION_PRESETS: Record<string, PageTransitionPreset>;
|
|
3668
3677
|
interface TransitionFeel {
|
|
3669
3678
|
value: string;
|
|
@@ -3719,6 +3728,14 @@ interface ResolvedPageTransition {
|
|
|
3719
3728
|
* Returns `null` for unknown / 'none' presets (caller should skip the transition).
|
|
3720
3729
|
*/
|
|
3721
3730
|
declare function resolvePageTransition(name: string | null | undefined, opts?: PageTransitionOptions): ResolvedPageTransition | null;
|
|
3731
|
+
/**
|
|
3732
|
+
* Reduced motion (CC1 R1, Emil: gentler, not zero): no page moves — the leaving page only fades out, briefly, over the
|
|
3733
|
+
* arriving one standing still. The runtime plays it on the snapshot instead of the preset.
|
|
3734
|
+
*/
|
|
3735
|
+
declare const REDUCED_PAGE_LEAVE: Readonly<{
|
|
3736
|
+
frames: Keyframe[];
|
|
3737
|
+
options: KeyframeAnimationOptions;
|
|
3738
|
+
}>;
|
|
3722
3739
|
type TransitionPhase = 'leave' | 'transition' | 'enter';
|
|
3723
3740
|
interface TransitionTimelineInput {
|
|
3724
3741
|
/** At least one element on the outgoing page has a `pageLeave` interaction. */
|
|
@@ -4546,5 +4563,5 @@ declare function formToastsOnSend(form: Element | null | undefined): boolean;
|
|
|
4546
4563
|
/** Raise the form's Sent toast (from the form — its scope and its look). */
|
|
4547
4564
|
declare function raiseFormToast(form: Element): ToastHandle | null;
|
|
4548
4565
|
|
|
4549
|
-
export { A11yAttribute, A11yTrait, ACCESSIBLE_NAME_TYPES, AOSService, ARIA_CURRENT_PAGE, BACKDROP_TWIN_KEY, BACKDROP_WHOLE_KEY, BREAKPOINTS, Breakpoint, BreakpointQueryKind, BuilderButtonComponent, BuilderDividerComponent, BuilderHeadingComponent, BuilderIconComponent, BuilderImageComponent, BuilderLinkComponent, BuilderSpacerComponent, ButtonBlockComponent, CALENDAR_CLOSING_ATTRIBUTE, CALENDAR_DESIGN_ATTRIBUTE, CALENDAR_INSTANT_ATTRIBUTE, CALENDAR_SHEET_QUERY, COMPONENT_STATE_SELECTOR, CONTAINER_HTML_TAGS, CONTEXT_ACTION_TYPES, COUNT_ATTRIBUTE, COUNT_DEFAULT_MS, COUNT_MAX_MS, COUNT_UP_ACTION, CURRENT_LINK_TYPES, CalendarClass, CardComponent, ClientGalleryComponent, ClientListComponent, ClientListItemComponent, ClientRepeaterComponent, ClientSliderContainerComponent, ClientSliderSlideComponent, ComponentInstanceRegistryService, ComponentState, ContainerComponent, ContextStore, DECORATIVE_TYPES, DEFAULT_GALLERY_SCHEDULER, DEFAULT_INTERACTION_EASING, DEFAULT_PAGE_TRANSITION, DEFAULT_PAGE_TRANSITION_DURATION, DEFAULT_PAGE_TRANSITION_EASING, DEFAULT_PAGE_TRANSITION_PERSPECTIVE, DEFAULT_PHOSPHOR_WEIGHT, DEFAULT_WIDTH_BY_TYPE, DEPTH_CLIP_ATTRIBUTE, DIALOG_CLOSE_ABOVE_ATTRIBUTE, DIALOG_NODE_TYPE, DatePickerRuntime, DeclarationContext, EASING_KEYWORDS, EASING_TOKENS, ELEMENT_STYLE_TRANSITION_EXTRAS, ENTRANCE_ACTION_TYPES, ENTRANCE_FALLBACK_CSS, ENTRANCE_NOSCRIPT_CSS, ENTRANCE_PRESTATE_ATTRIBUTE, EXIT_ACTION_TYPES, EasingKeyword, EasingToken, FLOATING_GAP, FLOATING_LAYER_CLASS, FLOATING_MARGIN, FLOATING_SHEET_QUERY, FloatingAlign, FloatingSide, FormRenderState, FormRuntimeService, GALLERY_EFFECTS, GALLERY_EFFECT_DESCRIPTORS, GalleryLoop, HEADER_SCROLL_HYSTERESIS_PX, HOVER_DEFAULT_TRANSITION_TRAITS, HOVER_MEDIA_QUERY, HOVER_STATES, HeaderRuntime, INTERACTION_ANIMATION_ID, INTERACTION_HIDDEN_ATTRIBUTE, INTERACTION_MARKER_ATTRIBUTES, IOX_BUILDER_EVENTS, IOX_FORM_MESSAGES, IOX_FORM_NAVIGATOR, IOX_FORM_TRANSPORT, IS_PREVIEW, IoxAnimateContainer, IoxAosDirective, IoxAosModule, IoxBuilderComponentsModule, IoxComponentRegistryService, IoxDialogComponent, IoxFieldComponent, IoxFormComponent, IoxFormErrorComponent, IoxFormSuccessComponent, IoxPageComponent, IoxPageModule, IoxPopoverComponent, IoxSubmitButtonComponent, IoxUiModule, IoxVideoComponent, LAST_EMITTED_STATES, LEGACY_DIRECTION_KEY, LEGACY_HOVER_TRANSITION_TRAITS, LEGACY_SWIPER_CONTROLS, LinkedContainerComponent, MANAGED_A11Y_ATTRIBUTES, MAX_LINES_KEY, NAMED_GROUP_ROLES, NO_PAGE_TRANSITION, ON_STATE_ROLES, OUTER_STYLE_PROPS, PAGE_STYLE_TOKENS, PAGE_TOKEN_FALLBACKS, PAGE_TRANSITION_CATEGORIES, PAGE_TRANSITION_PRESETS, PART_CLASS_NAMES, PART_PAGINATION_MODIFIER, PHONE_TRANSITION_QUERY, PIPE_DESCRIPTORS, PIPE_REGISTRY, POPOVER_SELECTOR, PROGRESS_ATTRIBUTE, PageScrollProvider, PageStyleField, PageStyleSource, PausableTimer, PauseReason, PointerKind, PopoverAttribute, REDUCED_MOTION_QUERY, RELATIONAL_STATE_PSEUDO, RevealActionType, SCROLLED_ATTRIBUTE, SCROLLED_STATE_ROLE, SCROLLED_THRESHOLD_PX, SCROLL_ANIMATION_ID, SCROLL_EASINGS, SELF_PLAYING_TRIGGERS, SHAKE_DURATION_MS, SHAKE_EASING, SHAKE_KEYFRAMES, SLIDER_FEEL, SLIDER_INPUTS_ATTRIBUTE, SLIDER_INPUT_NAMES, SLIDER_PHONE_BREAKPOINT, SLIDER_RUNWAY_CLASS, SLIDER_STEPS_PROPERTY, SLIDE_CAPTION_ATTRIBUTE, STATE_PSEUDO_CLASS, STRUCTURAL_STATES, SUPPRESSED_STYLE_PROPS_BY_TYPE, SWIPER_A11Y_OPTIONS, SWIPER_RESPONSIVE_TRAITS, SWIPER_TRIGGER_EVENTS, ScrollActionType, ScrollEasing, SectionComponent, SettleMode, StringFormRuntime, SwiperModuleName, TARGETED_STATE_SUFFIX, TEXT_ALIGN_KEY, TEXT_DIRECTION_KEY, TOAST_CLOSE_WORDS, TOAST_DESIGN_ATTRIBUTE, TOAST_EDGE_ATTRIBUTE, TOAST_FIRST_LANDS_MS, TOAST_MAX_MS, TOAST_MAX_VISIBLE, TOAST_MIN_MS, TOAST_MS_PER_CHAR, TOOLTIP_ATTRIBUTE, TOOLTIP_FIRST_DELAY_MS, TOOLTIP_HIDE_GRACE_MS, TOOLTIP_INSTANT_ATTRIBUTE, TOOLTIP_PINNED_ATTRIBUTE, TOOLTIP_PLACEMENT_ATTRIBUTE, TOOLTIP_SIDE_ATTRIBUTE, TOOLTIP_TYPES, TOOLTIP_WARM_MS, TRANSITION_FEELS, TRANSITION_PROPERTY_KEY, TextAlign, TextBlockComponent, ToastClass, ToastEdge, TooltipClass, TooltipRuntime, VALIDATION_STATES, VALIDATION_STATE_CLASS, VIRTUAL_TRAIT_GROUPS, VIRTUAL_TRAIT_KEYS, ViewPositionDirective, ViewPositionModule, VisibilityActionType, activeActions, animateAction, applyBindingPipes, applyFeel, armCountUp, armInteractionCounts, attachDatePicker, attachDatePickers, attachScrollProgress, attachStringForm, attachTooltips, bootSlider, breakpointDef, breakpointForWidth, breakpointQueryFor, buildInteractionKeyframes, buildPartSelector, buildSwiperBreakpoints, buildTargetedStateSelector, buildTargetedSuffixSelector, buildTransitionTimeline, canPopover, cascadeChain, clearInputOverride, clearOverride, clearToasts, closeAboveMediaQuery, closeAllPopovers, closePopover, collectContextSlotKeys, compileDeclarations, compilePageStyle, componentStatesFor, composeVirtualTraits, containerHtmlTag, contextActionEffect, contextSlotKeys, countDuration, countIsReadable, countLocaleOf, countOverrides, countValueAt, datePickerOf, declaredInputNames, decomposeBackdropFilter, defaultHoverTransitionTraits, defaultMessageResolver, deriveSeoFromContent, describePageStyle, describeSeoFields, dialogCloseAboveMinWidth, directionalFrames, domHasSliderParts, durationMs, effectiveActionType, effectiveTransitionId, entrancePreStateStyle, entranceStartsHidden, feelFor, fieldLanguage, finalKeyframe, floatingLayer, floatingScope, formSentWords, formToastsOnSend, formatCount, framesFromLiveValue, gateHoverRule, getSeoValue, hasCounted, hasHoverState, hasOwnPageTransition, hasOwnTransition, headerShouldHide, hideFromTopLayer, hidingHeadersIn, initialSlotValues, interactionMarkerAttributes, isActionEnabled, isContextAction, isCubicBezier, isCurrentLink, isEasingToken, isExternalOrFragment, isGradientPaint, isHoverPointer, isHoverState, isInputOverriddenAt, isInteractionEasing, isLastEmittedStateKey, isOpenPopover, isOperated, isOverriddenAt, isPopoverOpen, isPressFeedback, isScrolled, isStructuralState, isValidSlotKey, isWholeBackdropSet, keyframePropertyName, keyframeStyleEntries, layerFrame, legacyEnterToTransition, mediaQueryFor, mergeSwiperBreakpoints, migrateLegacyDirection, migrateLegacyTextAlign, motionAllowed, nearestCommonAncestorId, needsAccessibleName, needsGroupName, nodeA11yAttributes, nodeCssId, nodeTraitValue, nodeUsesContext, normalizeAppPath, normalizeGalleryImage, normalizeIconClass, openPopover, orderStatesForEmit, pageTransitionOf, parentBreakpoint, parseCount, parseUrlList, partClassName, placeFloating, placePopover, planPartRule, planResponsiveRules, planScroll, planStateRule, planSwiperOptions, playCountUp, playDualLayerTransition, playInteraction, playsOnScroll, popoverPanelAttributes, popoverSide, prefersReducedMotion, raiseFloatingLayer, raiseFormToast, rectInLayer, renderDefaultDeclarations, resetPageStyleField, resetSeoField, resolveBoundValue, resolveContextValue, resolveGalleryEffect, resolveGalleryUrls, resolveInputChain, resolveInputs, resolveInteractionEasing, resolvePageTransition, resolvePath, resolveSeo, resolveStateStyles, resolveStyleProps, resolveToggleVisibility, resolveValueChain, restoreCountUp, rewriteViewportUnits, safeSetInput, scrollActionKind, scrollMotionEnv, serializeA11yAttributes, setDateFieldValue, setInputOverride, setOverride, setSeoAuto, setSeoBinding, setSeoOverride, setSeoValue, settleInteraction, settleModeFor, shakeElement, showCalendarDesign, showInTopLayer, showToast, showToastDesign, sliderControlElements, sliderInputsFromProps, sliderInputsOf, sliderRunwayHtml, splitOuterProps, splitPressFeedback, stateNamesIn, statePseudoClass, stateSelectorSuffix, stateTransitionProperties, stringFormRuntimeOf, stripSuppressedProps, swiperAutoplayAllowed, swiperLoopOptions, swiperModuleNames, syncInteractionMarkers, syncNodeA11yAttributes, syncSubmitButtons, targetedStateSelector, toLayerRect, toastCloseWord, toastDuration, toastEdge, toastsToEvict, togglePopover, tooltipSide, tooltipTiming, tooltipWords, tooltipsOf, transitionPropertyList, viewportTransitionContext, watchHeaders, watchScrolled, withContextSlots, withPhoneDefaults, withStateTransitions, wrapInBreakpointQuery, wrapInMediaQuery };
|
|
4566
|
+
export { A11yAttribute, A11yTrait, ACCESSIBLE_NAME_TYPES, AOSService, ARIA_CURRENT_PAGE, BACKDROP_TWIN_KEY, BACKDROP_WHOLE_KEY, BREAKPOINTS, Breakpoint, BreakpointQueryKind, BuilderButtonComponent, BuilderDividerComponent, BuilderHeadingComponent, BuilderIconComponent, BuilderImageComponent, BuilderLinkComponent, BuilderSpacerComponent, ButtonBlockComponent, CALENDAR_CLOSING_ATTRIBUTE, CALENDAR_DESIGN_ATTRIBUTE, CALENDAR_INSTANT_ATTRIBUTE, CALENDAR_SHEET_QUERY, COMPONENT_STATE_SELECTOR, CONTAINER_HTML_TAGS, CONTEXT_ACTION_TYPES, COUNT_ATTRIBUTE, COUNT_DEFAULT_MS, COUNT_MAX_MS, COUNT_UP_ACTION, CURRENT_LINK_TYPES, CalendarClass, CardComponent, ClientGalleryComponent, ClientListComponent, ClientListItemComponent, ClientRepeaterComponent, ClientSliderContainerComponent, ClientSliderSlideComponent, ComponentInstanceRegistryService, ComponentState, ContainerComponent, ContextStore, DECORATIVE_TYPES, DEFAULT_GALLERY_SCHEDULER, DEFAULT_INTERACTION_EASING, DEFAULT_PAGE_TRANSITION, DEFAULT_PAGE_TRANSITION_DURATION, DEFAULT_PAGE_TRANSITION_EASING, DEFAULT_PAGE_TRANSITION_PERSPECTIVE, DEFAULT_PHOSPHOR_WEIGHT, DEFAULT_WIDTH_BY_TYPE, DEPTH_CLIP_ATTRIBUTE, DIALOG_CLOSE_ABOVE_ATTRIBUTE, DIALOG_NODE_TYPE, DatePickerRuntime, DeclarationContext, EASING_KEYWORDS, EASING_TOKENS, ELEMENT_STYLE_TRANSITION_EXTRAS, ENTRANCE_ACTION_TYPES, ENTRANCE_FALLBACK_CSS, ENTRANCE_NOSCRIPT_CSS, ENTRANCE_PRESTATE_ATTRIBUTE, EXIT_ACTION_TYPES, EasingKeyword, EasingToken, FLOATING_GAP, FLOATING_LAYER_CLASS, FLOATING_MARGIN, FLOATING_SHEET_QUERY, FloatingAlign, FloatingSide, FormRenderState, FormRuntimeService, GALLERY_EFFECTS, GALLERY_EFFECT_DESCRIPTORS, GalleryLoop, HEADER_SCROLL_HYSTERESIS_PX, HOVER_DEFAULT_TRANSITION_TRAITS, HOVER_MEDIA_QUERY, HOVER_STATES, HeaderRuntime, INTERACTION_ANIMATION_ID, INTERACTION_HIDDEN_ATTRIBUTE, INTERACTION_MARKER_ATTRIBUTES, IOX_BUILDER_EVENTS, IOX_FORM_MESSAGES, IOX_FORM_NAVIGATOR, IOX_FORM_TRANSPORT, IS_PREVIEW, IoxAnimateContainer, IoxAosDirective, IoxAosModule, IoxBuilderComponentsModule, IoxComponentRegistryService, IoxDialogComponent, IoxFieldComponent, IoxFormComponent, IoxFormErrorComponent, IoxFormSuccessComponent, IoxPageComponent, IoxPageModule, IoxPopoverComponent, IoxSubmitButtonComponent, IoxUiModule, IoxVideoComponent, LAST_EMITTED_STATES, LEGACY_DIRECTION_KEY, LEGACY_HOVER_TRANSITION_TRAITS, LEGACY_SWIPER_CONTROLS, LinkedContainerComponent, MANAGED_A11Y_ATTRIBUTES, MAX_LINES_KEY, NAMED_GROUP_ROLES, NO_PAGE_TRANSITION, ON_STATE_ROLES, OUTER_STYLE_PROPS, PAGE_LEAVE_RATIO, PAGE_STYLE_TOKENS, PAGE_TOKEN_FALLBACKS, PAGE_TRANSITION_CATEGORIES, PAGE_TRANSITION_PRESETS, PART_CLASS_NAMES, PART_PAGINATION_MODIFIER, PHONE_TRANSITION_QUERY, PIPE_DESCRIPTORS, PIPE_REGISTRY, POPOVER_SELECTOR, PROGRESS_ATTRIBUTE, PageScrollProvider, PageStyleField, PageStyleSource, PausableTimer, PauseReason, PointerKind, PopoverAttribute, REDUCED_MOTION_QUERY, REDUCED_PAGE_LEAVE, RELATIONAL_STATE_PSEUDO, RevealActionType, SCROLLED_ATTRIBUTE, SCROLLED_STATE_ROLE, SCROLLED_THRESHOLD_PX, SCROLL_ANIMATION_ID, SCROLL_EASINGS, SELF_PLAYING_TRIGGERS, SHAKE_DURATION_MS, SHAKE_EASING, SHAKE_KEYFRAMES, SLIDER_FEEL, SLIDER_INPUTS_ATTRIBUTE, SLIDER_INPUT_NAMES, SLIDER_PHONE_BREAKPOINT, SLIDER_RUNWAY_CLASS, SLIDER_STEPS_PROPERTY, SLIDE_CAPTION_ATTRIBUTE, STATE_PSEUDO_CLASS, STRUCTURAL_STATES, SUPPRESSED_STYLE_PROPS_BY_TYPE, SWIPER_A11Y_OPTIONS, SWIPER_RESPONSIVE_TRAITS, SWIPER_TRIGGER_EVENTS, ScrollActionType, ScrollEasing, SectionComponent, SettleMode, StringFormRuntime, SwiperModuleName, TARGETED_STATE_SUFFIX, TEXT_ALIGN_KEY, TEXT_DIRECTION_KEY, TOAST_CLOSE_WORDS, TOAST_DESIGN_ATTRIBUTE, TOAST_EDGE_ATTRIBUTE, TOAST_FIRST_LANDS_MS, TOAST_MAX_MS, TOAST_MAX_VISIBLE, TOAST_MIN_MS, TOAST_MS_PER_CHAR, TOOLTIP_ATTRIBUTE, TOOLTIP_FIRST_DELAY_MS, TOOLTIP_HIDE_GRACE_MS, TOOLTIP_INSTANT_ATTRIBUTE, TOOLTIP_PINNED_ATTRIBUTE, TOOLTIP_PLACEMENT_ATTRIBUTE, TOOLTIP_SIDE_ATTRIBUTE, TOOLTIP_TYPES, TOOLTIP_WARM_MS, TRANSITION_FEELS, TRANSITION_PROPERTY_KEY, TextAlign, TextBlockComponent, ToastClass, ToastEdge, TooltipClass, TooltipRuntime, VALIDATION_STATES, VALIDATION_STATE_CLASS, VIRTUAL_TRAIT_GROUPS, VIRTUAL_TRAIT_KEYS, ViewPositionDirective, ViewPositionModule, VisibilityActionType, activeActions, animateAction, applyBindingPipes, applyFeel, armCountUp, armInteractionCounts, attachDatePicker, attachDatePickers, attachScrollProgress, attachStringForm, attachTooltips, bootSlider, breakpointDef, breakpointForWidth, breakpointQueryFor, buildInteractionKeyframes, buildPartSelector, buildSwiperBreakpoints, buildTargetedStateSelector, buildTargetedSuffixSelector, buildTransitionTimeline, canPopover, cascadeChain, clearInputOverride, clearOverride, clearToasts, closeAboveMediaQuery, closeAllPopovers, closePopover, collectContextSlotKeys, compileDeclarations, compilePageStyle, componentStatesFor, composeVirtualTraits, containerHtmlTag, contextActionEffect, contextSlotKeys, countDuration, countIsReadable, countLocaleOf, countOverrides, countValueAt, datePickerOf, declaredInputNames, decomposeBackdropFilter, defaultHoverTransitionTraits, defaultMessageResolver, deriveSeoFromContent, describePageStyle, describeSeoFields, dialogCloseAboveMinWidth, directionalFrames, domHasSliderParts, durationMs, effectiveActionType, effectiveTransitionId, entrancePreStateStyle, entranceStartsHidden, feelFor, fieldLanguage, finalKeyframe, floatingLayer, floatingScope, formSentWords, formToastsOnSend, formatCount, framesFromLiveValue, gateHoverRule, getSeoValue, hasCounted, hasHoverState, hasOwnPageTransition, hasOwnTransition, headerShouldHide, hideFromTopLayer, hidingHeadersIn, initialSlotValues, interactionMarkerAttributes, isActionEnabled, isContextAction, isCubicBezier, isCurrentLink, isEasingToken, isExternalOrFragment, isGradientPaint, isHoverPointer, isHoverState, isInputOverriddenAt, isInteractionEasing, isLastEmittedStateKey, isOpenPopover, isOperated, isOverriddenAt, isPopoverOpen, isPressFeedback, isScrolled, isStructuralState, isValidSlotKey, isWholeBackdropSet, keyframePropertyName, keyframeStyleEntries, layerFrame, legacyEnterToTransition, mediaQueryFor, mergeSwiperBreakpoints, migrateLegacyDirection, migrateLegacyTextAlign, motionAllowed, nearestCommonAncestorId, needsAccessibleName, needsGroupName, nodeA11yAttributes, nodeCssId, nodeTraitValue, nodeUsesContext, normalizeAppPath, normalizeGalleryImage, normalizeIconClass, openPopover, orderStatesForEmit, pageTransitionOf, parentBreakpoint, parseCount, parseUrlList, partClassName, placeFloating, placePopover, planPartRule, planResponsiveRules, planScroll, planStateRule, planSwiperOptions, playCountUp, playDualLayerTransition, playInteraction, playsOnScroll, popoverPanelAttributes, popoverSide, prefersReducedMotion, raiseFloatingLayer, raiseFormToast, rectInLayer, renderDefaultDeclarations, resetPageStyleField, resetSeoField, resolveBoundValue, resolveContextValue, resolveGalleryEffect, resolveGalleryUrls, resolveInputChain, resolveInputs, resolveInteractionEasing, resolvePageTransition, resolvePath, resolveSeo, resolveStateStyles, resolveStyleProps, resolveToggleVisibility, resolveValueChain, restoreCountUp, rewriteViewportUnits, safeSetInput, scrollActionKind, scrollMotionEnv, serializeA11yAttributes, setDateFieldValue, setInputOverride, setOverride, setSeoAuto, setSeoBinding, setSeoOverride, setSeoValue, settleInteraction, settleModeFor, shakeElement, showCalendarDesign, showInTopLayer, showToast, showToastDesign, sliderControlElements, sliderInputsFromProps, sliderInputsOf, sliderRunwayHtml, splitOuterProps, splitPressFeedback, stateNamesIn, statePseudoClass, stateSelectorSuffix, stateTransitionProperties, stringFormRuntimeOf, stripSuppressedProps, swiperAutoplayAllowed, swiperLoopOptions, swiperModuleNames, syncInteractionMarkers, syncNodeA11yAttributes, syncSubmitButtons, targetedStateSelector, toLayerRect, toastCloseWord, toastDuration, toastEdge, toastsToEvict, togglePopover, tooltipSide, tooltipTiming, tooltipWords, tooltipsOf, transitionPropertyList, viewportTransitionContext, watchHeaders, watchScrolled, withContextSlots, withPhoneDefaults, withStateTransitions, wrapInBreakpointQuery, wrapInMediaQuery };
|
|
4550
4567
|
export type { A11yNodeSource, AnimateActionOptions, BoundValueSpec, BreakpointDef, ContextActionEffect, ContextActionLike, ContextItemRef, ContextSlotDefault, ContextValueSpec, ContextWriteScope, CountTarget, CurrentLinkOptions, DatePickerOptions, FloatingLayerOptions, FloatingOptions, FloatingPlacement, FloatingRect, FloatingSize, FloatingViewport, FormMessageResolver, GalleryBoundSource, GalleryDurations, GalleryEffect, GalleryEffectDescriptor, GalleryImage, GalleryLoopOptions, GalleryLoopScheduler, GalleryLoopState, GallerySlideState, HeaderRuntimeOptions, IBuilderEventEmitter, InputMap, InteractionKeyframe, IoxContextSlot, IoxPipe, LayerFrame, MatchMediaHost, NodeA11yContext, OverrideBreakpoint, PageScrollStart, PageStyleFieldState, PageStyleOptions, PageStyleSettings, PageTransitionCategory, PageTransitionCategoryMeta, PageTransitionContext, PageTransitionOptions, PageTransitionPreset, PipeArgSpec, PipeContext, PipeDescriptor, PlannedPageTransition, PopoverCloseOptions, PopoverOpenOptions, PressAction, RegisteredField, ResolvedPageTransition, ResponsiveLayer, ResponsiveOverrides, ResponsiveRuleSet, RouteAnimationLike, ScrollPlanContext, ScrollProgressAction, ScrollProgressHost, ScrollProgressInteraction, ScrollSource, SeoDerivedContent, SeoFieldSource, SeoFieldState, SeoResolveContext, SetContextParams, SettleOptions, SliderBootOptions, SliderControlElements, SliderInputs, StateRulePlan, StateScope, StateStyleMap, StringFormOptions, StyleMap, StyleTreeNode, SwiperBreakpointMap, SwiperModuleFlags, SwiperPlan, SwiperPlanContext, ToastHandle, ToastOptions, ToggleableAction, TooltipRuntimeOptions, TooltipTimingState, TransitionFeel, TransitionPhase, TransitionPreviewLayers, TransitionTimelineInput, TransitionViewport, ValueSource, VirtualTraitGroup };
|
package/package.json
CHANGED
|
@@ -3397,6 +3397,33 @@ export const SPEC_SCHEMES = {
|
|
|
3397
3397
|
"warning": "{{accent-ink}}",
|
|
3398
3398
|
"warning-bg": "{{accent-hover}}"
|
|
3399
3399
|
}
|
|
3400
|
+
},
|
|
3401
|
+
"muted": {
|
|
3402
|
+
"label": "Muted",
|
|
3403
|
+
"set": {
|
|
3404
|
+
"section-bg": "{{text-muted}}",
|
|
3405
|
+
"bg": "{{text-muted}}",
|
|
3406
|
+
"nav-bg": "{{text-muted}}",
|
|
3407
|
+
"surface": "{{text-muted}}",
|
|
3408
|
+
"surface-2": "{{text-muted}}",
|
|
3409
|
+
"surface-glass": "{{text-muted}}",
|
|
3410
|
+
"surface-glass-strong": "{{text-muted}}",
|
|
3411
|
+
"text": "{{bg}}",
|
|
3412
|
+
"text-muted": "{{bg}}",
|
|
3413
|
+
"line": "color-mix(in srgb, {{bg}} 28%, transparent)",
|
|
3414
|
+
"line-strong": "{{bg}}",
|
|
3415
|
+
"glass-border": "color-mix(in srgb, {{bg}} 28%, transparent)",
|
|
3416
|
+
"accent": "{{bg}}",
|
|
3417
|
+
"accent-ink": "{{text-muted}}",
|
|
3418
|
+
"accent-text": "{{bg}}",
|
|
3419
|
+
"accent-hover": "{{bg}}",
|
|
3420
|
+
"danger": "{{bg}}",
|
|
3421
|
+
"danger-bg": "{{text-muted}}",
|
|
3422
|
+
"success": "{{bg}}",
|
|
3423
|
+
"success-bg": "{{text-muted}}",
|
|
3424
|
+
"warning": "{{bg}}",
|
|
3425
|
+
"warning-bg": "{{text-muted}}"
|
|
3426
|
+
}
|
|
3400
3427
|
}
|
|
3401
3428
|
} as const;
|
|
3402
3429
|
|
|
@@ -3708,6 +3735,7 @@ export const SPEC_ELEMENT_STYLES = [
|
|
|
3708
3735
|
"Link"
|
|
3709
3736
|
],
|
|
3710
3737
|
"base": {
|
|
3738
|
+
"fontFamily": "var(--iox-font-body)",
|
|
3711
3739
|
"color": "var(--iox-link-color)",
|
|
3712
3740
|
"textDecoration": "var(--iox-link-decoration)",
|
|
3713
3741
|
"transitionDuration": "var(--iox-dur-fast)",
|
|
@@ -23,6 +23,8 @@ export enum ColorScheme {
|
|
|
23
23
|
Subtle = 'subtle',
|
|
24
24
|
Inverse = 'inverse',
|
|
25
25
|
Accent = 'accent',
|
|
26
|
+
/** A band painted the page's muted ink (iox-ui#70). */
|
|
27
|
+
Muted = 'muted',
|
|
26
28
|
}
|
|
27
29
|
|
|
28
30
|
/** The content trait (stored in `props`, not a style prop) that picks a node's scheme. */
|
|
@@ -31,7 +33,7 @@ export const COLOR_SCHEME_TRAIT = 'colorScheme';
|
|
|
31
33
|
/** The node types that offer a scheme (spec §3c: Section/Container; LinkedContainer is a Container that links). */
|
|
32
34
|
export const COLOR_SCHEME_TYPES: ReadonlyArray<string> = ['Section', 'Container', 'LinkedContainer'];
|
|
33
35
|
|
|
34
|
-
/** Every scheme in contract order, with the contract's label (Default · Subtle · Inverse · Brand). */
|
|
36
|
+
/** Every scheme in contract order, with the contract's label (Default · Subtle · Inverse · Brand · Muted). */
|
|
35
37
|
export const COLOR_SCHEMES: ReadonlyArray<{ readonly id: ColorScheme; readonly label: string }> =
|
|
36
38
|
(Object.keys(SPEC_SCHEMES) as ColorScheme[]).map(id => ({ id, label: (SPEC_SCHEMES as Record<string, { label: string }>)[id].label }));
|
|
37
39
|
|
|
@@ -47,6 +49,31 @@ export function colorSchemeClass(id: unknown): string | null {
|
|
|
47
49
|
return typeof id === 'string' && id !== ColorScheme.Default && SCHEME_IDS.has(id) ? `${SCHEME_PREFIX}${id}` : null;
|
|
48
50
|
}
|
|
49
51
|
|
|
52
|
+
/**
|
|
53
|
+
* The scheme a page OPENS on, and the site header following it (M8 demo, vectoriox/iox-ui#71): the header is a global —
|
|
54
|
+
* one node for every page — so a dark page under a light header read as a cream strip over the night. A page stores the
|
|
55
|
+
* scheme of its first ground (`pageSettings.opening`); the renderer puts it on the element around the header (the
|
|
56
|
+
* engine's body, the canvas's globals layer) as `data-iox-opening`, and `compileSchemeCss` re-declares that scheme's
|
|
57
|
+
* tokens on a header that names no scheme of its own (`openingFollowerSelector`) — its links, button, logo, menu button
|
|
58
|
+
* and drawer with it. A page with no opening, or the default, leaves the header as it is.
|
|
59
|
+
*/
|
|
60
|
+
export const OPENING_ATTRIBUTE = 'data-iox-opening';
|
|
61
|
+
/** The `pageSettings` key the opening's scheme is stored under. */
|
|
62
|
+
export const OPENING_SETTING = 'opening';
|
|
63
|
+
/** The role whose node follows the page's opening: the site header's root (generation-core `NavRole.Root`). */
|
|
64
|
+
export const OPENING_FOLLOWER_ROLE = 'nav';
|
|
65
|
+
|
|
66
|
+
/** The non-default scheme a page opens on, or null. */
|
|
67
|
+
export function pageOpeningScheme(pageSettings: Readonly<Record<string, unknown>> | null | undefined): ColorScheme | null {
|
|
68
|
+
const id = pageSettings?.[OPENING_SETTING];
|
|
69
|
+
return colorSchemeClass(id) ? (id as ColorScheme) : null;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/** The header that follows an opening of scheme `id` and names none of its own, inside `scope` (the builder's token scope). */
|
|
73
|
+
export function openingFollowerSelector(id: string, scope?: string): string {
|
|
74
|
+
return `${scope ? `${scope} ` : ''}[${OPENING_ATTRIBUTE}="${id}"] .${roleClass(OPENING_FOLLOWER_ROLE)}:not([class*="${SCHEME_PREFIX}"])`;
|
|
75
|
+
}
|
|
76
|
+
|
|
50
77
|
/** `iox-role-<role>` for a well-formed composite role, else null. */
|
|
51
78
|
export function roleClass(role: unknown): string | null {
|
|
52
79
|
return typeof role === 'string' && ROLE_SHAPE.test(role) ? `${ROLE_PREFIX}${role.replace(/\./g, '-')}` : null;
|