@vectoriox/iox-ui 5.90.2 → 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 +18 -1
- package/fesm2022/vectoriox-iox-ui-design-core.mjs +38 -3
- package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs +439 -50
- 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 +139 -19
- package/index.d.ts +18 -1
- package/package.json +1 -1
- package/src/design-core/node-classes.ts +25 -0
- 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 +7 -0
- package/src/generation-core/compose-site.ts +9 -5
- package/src/generation-core/layout-language.ts +19 -1
- package/src/generation-core/layout-space.ts +260 -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 +2 -0
- 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';
|
|
@@ -4948,6 +4948,8 @@ declare const SPEC_SITE_LAYOUT: {
|
|
|
4948
4948
|
readonly distinct: {
|
|
4949
4949
|
readonly holdsMax: 1;
|
|
4950
4950
|
};
|
|
4951
|
+
readonly voidScreen: 0.6;
|
|
4952
|
+
readonly bandColumns: 10;
|
|
4951
4953
|
readonly composedPages: 2;
|
|
4952
4954
|
readonly repairs: 1;
|
|
4953
4955
|
};
|
|
@@ -5654,7 +5656,21 @@ declare enum LayoutMendKind {
|
|
|
5654
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
|
|
5655
5657
|
* the section's words name, else the first in plan order. None, or the section's words name the list it named
|
|
5656
5658
|
* (iox-ui#66): left to the model. */
|
|
5657
|
-
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"
|
|
5658
5674
|
}
|
|
5659
5675
|
/** Which rule chose a mended gallery's list. */
|
|
5660
5676
|
declare enum LayoutSourceChoice {
|
|
@@ -5692,6 +5708,22 @@ type LayoutMend = {
|
|
|
5692
5708
|
layer: string;
|
|
5693
5709
|
source: string;
|
|
5694
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
|
+
}>;
|
|
5695
5727
|
};
|
|
5696
5728
|
interface LayoutIssue {
|
|
5697
5729
|
code: `${LayoutIssueCode}`;
|
|
@@ -6812,6 +6844,7 @@ interface ComposedPage {
|
|
|
6812
6844
|
pageKey: string;
|
|
6813
6845
|
runId?: string;
|
|
6814
6846
|
};
|
|
6847
|
+
opening?: `${ColorScheme}`;
|
|
6815
6848
|
};
|
|
6816
6849
|
/** M1-6c: the page's search-result words — written (a static page) or bound to the route item (a template page),
|
|
6817
6850
|
* in the seo-core document shape the shared `resolveSeo` reads. */
|
|
@@ -8351,6 +8384,8 @@ interface StockItemSlot extends StockNeed {
|
|
|
8351
8384
|
index: number;
|
|
8352
8385
|
/** The field playing the type's `image` role. */
|
|
8353
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[];
|
|
8354
8389
|
}
|
|
8355
8390
|
type StockTarget = StockSlot | StockItemSlot;
|
|
8356
8391
|
/** Where the owner's photo goes: a slot of a composed section or the image field of a sample item. */
|
|
@@ -8359,13 +8394,31 @@ type OwnPhotoPlacement = (Pick<StockSlot, 'nodeId' | 'owner'> | {
|
|
|
8359
8394
|
}) & {
|
|
8360
8395
|
url: string;
|
|
8361
8396
|
};
|
|
8362
|
-
/**
|
|
8363
|
-
|
|
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>): {
|
|
8364
8414
|
placements: OwnPhotoPlacement[];
|
|
8365
8415
|
rest: StockTarget[];
|
|
8366
8416
|
};
|
|
8367
|
-
/**
|
|
8368
|
-
|
|
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;
|
|
8369
8422
|
/** Where a photo may not appear twice: one page; one content type's samples (a list shows them together). */
|
|
8370
8423
|
declare function stockGroupOf(target: StockTarget): string;
|
|
8371
8424
|
/**
|
|
@@ -8557,8 +8610,8 @@ interface PicturePlan {
|
|
|
8557
8610
|
}>;
|
|
8558
8611
|
}
|
|
8559
8612
|
interface PicturePlanOptions {
|
|
8560
|
-
/** The owner's own photos (urls), in order. */
|
|
8561
|
-
ownPhotos?: ReadonlyArray<string>;
|
|
8613
|
+
/** The owner's own photos (urls, with what each shows), in order. */
|
|
8614
|
+
ownPhotos?: ReadonlyArray<string | OwnPhoto>;
|
|
8562
8615
|
/** The business type's rule (harness-core `BusinessType.stock`): where stock may not stand in for the work, no made
|
|
8563
8616
|
* picture may either. */
|
|
8564
8617
|
stockAllowed: boolean;
|
|
@@ -9290,15 +9343,6 @@ interface CheckLayoutContext {
|
|
|
9290
9343
|
type LayoutColours = Readonly<Record<LayoutColour, string>>;
|
|
9291
9344
|
/** A preset's five colours in a mode as `#rrggbb` (the prototype's `presetColours`), or null when it does not wear that mode. */
|
|
9292
9345
|
declare function layoutPresetColours(presetId: string, mode: 'light' | 'dark'): LayoutColours | null;
|
|
9293
|
-
/**
|
|
9294
|
-
* 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
|
|
9295
|
-
* as its section's screens × 900 / rows (a held section's grid is its one-screen stage): the gutter and the column gaps
|
|
9296
|
-
* are left out, so a box reads about a fifth wider than it renders — the render check measures the real one.
|
|
9297
|
-
*/
|
|
9298
|
-
declare const LAYOUT_CHECK_VIEWPORT: {
|
|
9299
|
-
readonly width: 1440;
|
|
9300
|
-
readonly height: 900;
|
|
9301
|
-
};
|
|
9302
9346
|
/** A section of one photo on one side and words on the other: 'start' | 'end' | null (the prototype's `splitSide`). */
|
|
9303
9347
|
declare function splitSide(s: LayoutSection): 'start' | 'end' | null;
|
|
9304
9348
|
/** Every photo id a page names: photo layers, gallery slides, photo grounds. */
|
|
@@ -9343,6 +9387,82 @@ declare function mendLayout(page: LayoutPage, issues: ReadonlyArray<LayoutIssue>
|
|
|
9343
9387
|
mended: LayoutIssue[];
|
|
9344
9388
|
};
|
|
9345
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
|
+
|
|
9346
9466
|
/**
|
|
9347
9467
|
* THE CROSS-SITE FINGERPRINT (premium components M8 gate 2, M8-G2-D7; the prototype's `fingerprint` + `sameness`,
|
|
9348
9468
|
* `code/cl2.mjs`): what makes two composed pages read as the same — how the page opens, the sequence of its sections, the
|
|
@@ -9438,5 +9558,5 @@ declare function applyLayoutEdits(page: LayoutPage, edits: ReadonlyArray<LayoutE
|
|
|
9438
9558
|
/** The strict format a repair is asked in: `{ edits: [{ op, path, value }] }`, every key required. */
|
|
9439
9559
|
declare function layoutRepairJsonSchema(): JsonSchema;
|
|
9440
9560
|
|
|
9441
|
-
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, 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 };
|
|
9442
|
-
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
|
@@ -49,6 +49,31 @@ export function colorSchemeClass(id: unknown): string | null {
|
|
|
49
49
|
return typeof id === 'string' && id !== ColorScheme.Default && SCHEME_IDS.has(id) ? `${SCHEME_PREFIX}${id}` : null;
|
|
50
50
|
}
|
|
51
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
|
+
|
|
52
77
|
/** `iox-role-<role>` for a well-formed composite role, else null. */
|
|
53
78
|
export function roleClass(role: unknown): string | null {
|
|
54
79
|
return typeof role === 'string' && ROLE_SHAPE.test(role) ? `${ROLE_PREFIX}${role.replace(/\./g, '-')}` : null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DesignMode } from './design-token.model';
|
|
2
2
|
import { SPEC_A11Y, SPEC_SCHEMES } from './flavor-spec.generated';
|
|
3
|
-
import { SCHEME_INK } from './node-classes';
|
|
3
|
+
import { openingFollowerSelector, SCHEME_INK } from './node-classes';
|
|
4
4
|
import { specTokenNames } from './token-names';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -98,7 +98,7 @@ const media = (query: string, rules: ReadonlyArray<string>): string => {
|
|
|
98
98
|
};
|
|
99
99
|
|
|
100
100
|
const schemeSelector = (id: string, scope?: string) =>
|
|
101
|
-
scope ? `${scope} .iox-scheme-${id}` : `.iox-scheme-${id}`;
|
|
101
|
+
`${openingFollowerSelector(id, scope)}, ${scope ? `${scope} .iox-scheme-${id}` : `.iox-scheme-${id}`}`;
|
|
102
102
|
|
|
103
103
|
const nonDefaultSchemes = (): ReadonlyArray<[string, Readonly<Record<string, string>>]> =>
|
|
104
104
|
Object.entries(SPEC_SCHEMES)
|
|
@@ -262,9 +262,23 @@ export function compileSchemeCss(
|
|
|
262
262
|
.map((t): [string, string] => [t.name, t.value]),
|
|
263
263
|
])),
|
|
264
264
|
schemeInkRule(scope),
|
|
265
|
+
rows.some(t => t.name === NAV_BG) ? openingGroundRule(scope) : '',
|
|
265
266
|
].filter(Boolean).join('\n');
|
|
266
267
|
}
|
|
267
268
|
|
|
269
|
+
const NAV_BG = 'nav-bg';
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* The header that follows the opening (vectoriox/iox-ui#71) stands on the scheme's ground, opaque: a glass look's
|
|
273
|
+
* translucent bar (`color-mix(bg 72%, transparent)`) sits over the PAGE's ground, not the band's, and wearing the band's
|
|
274
|
+
* ink on that mix it read at ~1:1. `!important` so the dark and reduced-transparency twins, emitted later, cannot put
|
|
275
|
+
* the mix back.
|
|
276
|
+
*/
|
|
277
|
+
function openingGroundRule(scope?: string): string {
|
|
278
|
+
const selectors = nonDefaultSchemes().map(([id]) => openingFollowerSelector(id, scope));
|
|
279
|
+
return selectors.length ? `${selectors.join(', ')} {\n --iox-${NAV_BG}: var(--iox-bg) !important;\n}` : '';
|
|
280
|
+
}
|
|
281
|
+
|
|
268
282
|
/**
|
|
269
283
|
* Every element wearing a scheme takes the scheme's ink (vectoriox/iox-ui#15): the tokens re-resolve inside
|
|
270
284
|
* it, but `color` is inherited as a COMPUTED value, so without this a scheme'd Container's running text kept
|
|
@@ -274,7 +288,8 @@ export function compileSchemeCss(
|
|
|
274
288
|
*/
|
|
275
289
|
function schemeInkRule(scope?: string): string {
|
|
276
290
|
const where = scope ? `:where(${scope}) ` : '';
|
|
277
|
-
const
|
|
291
|
+
const ids = nonDefaultSchemes().map(([id]) => id);
|
|
292
|
+
const selectors = [...ids.map(id => `:where(${openingFollowerSelector(id, scope)})`), ...ids.map(id => `${where}.iox-scheme-${id}`)];
|
|
278
293
|
return selectors.length ? `${selectors.join(', ')} {\n color: ${SCHEME_INK};\n}` : '';
|
|
279
294
|
}
|
|
280
295
|
|