@vectoriox/iox-ui 5.126.0 → 5.127.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/actions-core/index.d.ts +74 -2
- package/design-core/index.d.ts +148 -2
- package/fesm2022/vectoriox-iox-ui-actions-core.mjs +64 -1
- package/fesm2022/vectoriox-iox-ui-actions-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-design-core.mjs +191 -1
- package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs +217 -24
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui.mjs +8 -2
- package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
- package/generation-core/index.d.ts +98 -16
- package/package.json +1 -1
- package/src/actions-core/public-api.ts +1 -0
- package/src/actions-core/reveal-origin.ts +102 -0
- package/src/design-core/flavor-spec.generated.ts +47 -0
- package/src/design-core/menu-look.ts +157 -0
- package/src/design-core/public-api.ts +1 -0
- package/src/generation-core/compose-site.ts +10 -5
- package/src/generation-core/header-mix.ts +38 -4
- package/src/generation-core/nav-shape.ts +80 -1
- package/src/generation-core/site-spec.generated.ts +101 -15
- package/styles/iox-design.css +374 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FrameSequence } from '@vectoriox/iox-ui/media-core';
|
|
2
|
-
import { DesignChoices, AnimateId, ColorScheme, DesignTokenLike, StylePreset } from '@vectoriox/iox-ui/design-core';
|
|
2
|
+
import { DesignChoices, AnimateId, MenuLook, ColorScheme, DesignTokenLike, StylePreset } from '@vectoriox/iox-ui/design-core';
|
|
3
3
|
import { SeoRawDoc } from '@vectoriox/iox-ui/seo-core';
|
|
4
4
|
import { CardPart, ContentFieldLike } from '@vectoriox/iox-ui/composite-core';
|
|
5
5
|
import { CheckoutGateRefusal } from '@vectoriox/iox-ui/commerce-core';
|
|
@@ -6154,15 +6154,20 @@ declare const SPEC_SITE_LAYOUT: {
|
|
|
6154
6154
|
readonly arrange: readonly ["split", "centred", "between", "name-only"];
|
|
6155
6155
|
readonly menuSide: readonly ["end", "start"];
|
|
6156
6156
|
readonly pages: readonly ["inline", "menu", "menu-pinned"];
|
|
6157
|
-
readonly menu: readonly ["drawer", "full", "panel"];
|
|
6158
|
-
readonly menuShows: readonly ["links", "pictures"];
|
|
6157
|
+
readonly menu: readonly ["drawer", "full", "panel", "card", "mega"];
|
|
6158
|
+
readonly menuShows: readonly ["links", "pictures", "big", "two-levels", "words-card"];
|
|
6159
6159
|
readonly action: readonly ["none", "button", "link", "two"];
|
|
6160
|
-
readonly ground: readonly ["solid", "over", "glass"];
|
|
6160
|
+
readonly ground: readonly ["solid", "over", "glass", "blend"];
|
|
6161
6161
|
readonly shape: readonly ["bar", "pill", "islands"];
|
|
6162
6162
|
readonly brand: readonly ["fits", "hangs", "later"];
|
|
6163
6163
|
readonly scroll: readonly ["stays", "hides", "away"];
|
|
6164
6164
|
readonly edge: readonly ["fade", "line", "none"];
|
|
6165
6165
|
readonly phone: readonly ["drawer", "bar", "both", "full"];
|
|
6166
|
+
readonly reveal: readonly ["slide", "fade", "zoom", "circle", "torn"];
|
|
6167
|
+
readonly button: readonly ["lines", "word", "dots"];
|
|
6168
|
+
readonly menuHover: readonly ["line", "dim", "row", "none"];
|
|
6169
|
+
readonly above: readonly ["none", "announcement", "marquee"];
|
|
6170
|
+
readonly inBar: readonly ["none", "icons", "search"];
|
|
6166
6171
|
};
|
|
6167
6172
|
readonly meanings: {
|
|
6168
6173
|
readonly "arrange.split": "the name at the start, the pages at the end";
|
|
@@ -6174,11 +6179,16 @@ declare const SPEC_SITE_LAYOUT: {
|
|
|
6174
6179
|
readonly "pages.inline": "every page in the bar";
|
|
6175
6180
|
readonly "pages.menu": "the pages behind the menu";
|
|
6176
6181
|
readonly "pages.menu-pinned": "the pages behind the menu, one or two key pages kept in the bar";
|
|
6177
|
-
readonly "menu.drawer": "a sheet from the
|
|
6182
|
+
readonly "menu.drawer": "a sheet from the menu button's edge";
|
|
6178
6183
|
readonly "menu.full": "a full-screen index of the page names, large";
|
|
6179
6184
|
readonly "menu.panel": "a panel that drops from the top, as tall as its content";
|
|
6185
|
+
readonly "menu.card": "a card that opens from the menu button's corner";
|
|
6186
|
+
readonly "menu.mega": "a wide panel under the bar, its pages in columns";
|
|
6180
6187
|
readonly "menuShows.links": "the page names";
|
|
6181
6188
|
readonly "menuShows.pictures": "pictured cards for the main collections beside the page names";
|
|
6189
|
+
readonly "menuShows.big": "the page names, large";
|
|
6190
|
+
readonly "menuShows.two-levels": "sections, and the items of the one under the mouse with their counts";
|
|
6191
|
+
readonly "menuShows.words-card": "the page names large, with a card (a picture or a reel) beside them";
|
|
6182
6192
|
readonly "action.none": "no call to action";
|
|
6183
6193
|
readonly "action.button": "one button";
|
|
6184
6194
|
readonly "action.link": "one quiet link";
|
|
@@ -6186,6 +6196,7 @@ declare const SPEC_SITE_LAYOUT: {
|
|
|
6186
6196
|
readonly "ground.solid": "its own ground";
|
|
6187
6197
|
readonly "ground.over": "over the opening, transparent until the page moves";
|
|
6188
6198
|
readonly "ground.glass": "frosted glass (a look with a blur)";
|
|
6199
|
+
readonly "ground.blend": "blends with what is under it, readable over any picture";
|
|
6189
6200
|
readonly "shape.bar": "a full-width bar";
|
|
6190
6201
|
readonly "shape.pill": "one floating rounded bar";
|
|
6191
6202
|
readonly "shape.islands": "separate floating pills";
|
|
@@ -6202,23 +6213,41 @@ declare const SPEC_SITE_LAYOUT: {
|
|
|
6202
6213
|
readonly "phone.bar": "a bottom bar on a phone";
|
|
6203
6214
|
readonly "phone.both": "a bottom bar and a drawer on a phone";
|
|
6204
6215
|
readonly "phone.full": "a full-screen index on a phone";
|
|
6216
|
+
readonly "reveal.slide": "slides in: a drawer from its edge, any other menu a short drop";
|
|
6217
|
+
readonly "reveal.fade": "fades in";
|
|
6218
|
+
readonly "reveal.zoom": "grows from the menu button's corner";
|
|
6219
|
+
readonly "reveal.circle": "a circle that opens from the menu button";
|
|
6220
|
+
readonly "reveal.torn": "a torn edge that opens from the menu button, rimmed in the accent";
|
|
6221
|
+
readonly "button.lines": "three lines that become a cross";
|
|
6222
|
+
readonly "button.word": "the word Menu, which becomes Close";
|
|
6223
|
+
readonly "button.dots": "nine dots that spread under the mouse and become a cross";
|
|
6224
|
+
readonly "menuHover.line": "a line draws under the page name";
|
|
6225
|
+
readonly "menuHover.dim": "the other page names dim";
|
|
6226
|
+
readonly "menuHover.row": "the row under the mouse lights up";
|
|
6227
|
+
readonly "menuHover.none": "nothing moves under the mouse";
|
|
6228
|
+
readonly "above.none": "nothing above the bar";
|
|
6229
|
+
readonly "above.announcement": "one line of the owner's news above the bar";
|
|
6230
|
+
readonly "above.marquee": "a moving band of the owner's words above the bar";
|
|
6231
|
+
readonly "inBar.none": "nothing more in the bar";
|
|
6232
|
+
readonly "inBar.icons": "small icons (sound, theme, chat) in the bar";
|
|
6233
|
+
readonly "inBar.search": "a search field in the bar";
|
|
6205
6234
|
};
|
|
6206
6235
|
readonly waits: {
|
|
6207
|
-
readonly "
|
|
6236
|
+
readonly "menuShows.pictures": {
|
|
6208
6237
|
readonly phase: "HI2";
|
|
6209
|
-
readonly drawnAs: "
|
|
6238
|
+
readonly drawnAs: "links";
|
|
6210
6239
|
};
|
|
6211
|
-
readonly "
|
|
6240
|
+
readonly "menuShows.big": {
|
|
6212
6241
|
readonly phase: "HI2";
|
|
6213
|
-
readonly drawnAs: "
|
|
6242
|
+
readonly drawnAs: "links";
|
|
6214
6243
|
};
|
|
6215
|
-
readonly "menuShows.
|
|
6244
|
+
readonly "menuShows.words-card": {
|
|
6216
6245
|
readonly phase: "HI2";
|
|
6217
6246
|
readonly drawnAs: "links";
|
|
6218
6247
|
};
|
|
6219
|
-
readonly "
|
|
6220
|
-
readonly phase: "
|
|
6221
|
-
readonly drawnAs: "
|
|
6248
|
+
readonly "menuShows.two-levels": {
|
|
6249
|
+
readonly phase: "HI6";
|
|
6250
|
+
readonly drawnAs: "links";
|
|
6222
6251
|
};
|
|
6223
6252
|
readonly "ground.over": {
|
|
6224
6253
|
readonly phase: "HI3";
|
|
@@ -6228,6 +6257,26 @@ declare const SPEC_SITE_LAYOUT: {
|
|
|
6228
6257
|
readonly phase: "HI3";
|
|
6229
6258
|
readonly drawnAs: "solid";
|
|
6230
6259
|
};
|
|
6260
|
+
readonly "ground.blend": {
|
|
6261
|
+
readonly phase: "HI3";
|
|
6262
|
+
readonly drawnAs: "solid";
|
|
6263
|
+
};
|
|
6264
|
+
readonly "above.announcement": {
|
|
6265
|
+
readonly phase: "HI3";
|
|
6266
|
+
readonly drawnAs: "none";
|
|
6267
|
+
};
|
|
6268
|
+
readonly "above.marquee": {
|
|
6269
|
+
readonly phase: "HI3";
|
|
6270
|
+
readonly drawnAs: "none";
|
|
6271
|
+
};
|
|
6272
|
+
readonly "inBar.icons": {
|
|
6273
|
+
readonly phase: "HI3";
|
|
6274
|
+
readonly drawnAs: "none";
|
|
6275
|
+
};
|
|
6276
|
+
readonly "inBar.search": {
|
|
6277
|
+
readonly phase: "HI6";
|
|
6278
|
+
readonly drawnAs: "none";
|
|
6279
|
+
};
|
|
6231
6280
|
readonly "shape.pill": {
|
|
6232
6281
|
readonly phase: "HI3";
|
|
6233
6282
|
readonly drawnAs: "bar";
|
|
@@ -6258,6 +6307,11 @@ declare const SPEC_SITE_LAYOUT: {
|
|
|
6258
6307
|
readonly scroll: "hides";
|
|
6259
6308
|
readonly edge: "fade";
|
|
6260
6309
|
readonly phone: "drawer";
|
|
6310
|
+
readonly reveal: "slide";
|
|
6311
|
+
readonly button: "lines";
|
|
6312
|
+
readonly menuHover: "line";
|
|
6313
|
+
readonly above: "none";
|
|
6314
|
+
readonly inBar: "none";
|
|
6261
6315
|
};
|
|
6262
6316
|
readonly named: {
|
|
6263
6317
|
readonly "nav.inline-cta": {};
|
|
@@ -6287,7 +6341,7 @@ declare const SPEC_SITE_LAYOUT: {
|
|
|
6287
6341
|
readonly phone: "full";
|
|
6288
6342
|
};
|
|
6289
6343
|
};
|
|
6290
|
-
readonly fingerprint: readonly ["arrange", "pages", "menu", "ground", "shape"];
|
|
6344
|
+
readonly fingerprint: readonly ["arrange", "pages", "menu", "ground", "shape", "reveal", "button", "above"];
|
|
6291
6345
|
readonly rules: {
|
|
6292
6346
|
readonly menuMinLinks: 3;
|
|
6293
6347
|
readonly pinnedMax: 1;
|
|
@@ -10390,6 +10444,12 @@ interface NavShapeOptions {
|
|
|
10390
10444
|
/** HI-D15: the menu button at the start or the end of the bar (or of the side cell there). Default: where it already
|
|
10391
10445
|
* is, else the end. */
|
|
10392
10446
|
menuSide?: MenuSide | `${MenuSide}`;
|
|
10447
|
+
/** HI2a: the menu's look — its form, how it opens, its button, what the mouse does in it, its phone form. Written as
|
|
10448
|
+
* traits on the drawer, the menu button and the drawer's Close; a default writes nothing (R-H4). Absent: the parts
|
|
10449
|
+
* keep what they have. */
|
|
10450
|
+
look?: Partial<MenuLook>;
|
|
10451
|
+
/** The site's language, for the words a menu button shows (`word`: Menu ⇄ Close). Default English. */
|
|
10452
|
+
locale?: string;
|
|
10393
10453
|
}
|
|
10394
10454
|
interface NavShapeResult {
|
|
10395
10455
|
/** The globals after the edit (the Navigation bar edited in place, the drawer/bar added or removed). */
|
|
@@ -10405,9 +10465,15 @@ declare class NavShapeError extends Error {
|
|
|
10405
10465
|
declare const NAV_SHAPE_COPY: {
|
|
10406
10466
|
readonly menu: "Menu";
|
|
10407
10467
|
readonly closeMenu: "Close menu";
|
|
10468
|
+
/** HI2a: the word a `word` menu button turns into while its menu is open. */
|
|
10469
|
+
readonly close: "Close";
|
|
10408
10470
|
readonly more: "More";
|
|
10409
10471
|
readonly home: "Home";
|
|
10410
10472
|
};
|
|
10473
|
+
declare function menuWords(locale: string | undefined): {
|
|
10474
|
+
menu: string;
|
|
10475
|
+
close: string;
|
|
10476
|
+
};
|
|
10411
10477
|
/** The layer names of the parts (R2: the tree, the breadcrumb and the toolbar read them). */
|
|
10412
10478
|
declare const NAV_PART_LABELS: Readonly<Record<string, string>>;
|
|
10413
10479
|
declare function barIconForRoute(route: string): string;
|
|
@@ -10481,7 +10547,17 @@ declare enum HeaderIngredient {
|
|
|
10481
10547
|
Brand = "brand",
|
|
10482
10548
|
Scroll = "scroll",
|
|
10483
10549
|
Edge = "edge",
|
|
10484
|
-
Phone = "phone"
|
|
10550
|
+
Phone = "phone",
|
|
10551
|
+
/** HB-D1 (HI2a): how the menu opens. */
|
|
10552
|
+
Reveal = "reveal",
|
|
10553
|
+
/** HB-D1 (HI2a): the button that opens it. */
|
|
10554
|
+
Button = "button",
|
|
10555
|
+
/** HB-D1 (HI2a): what the mouse does in it. */
|
|
10556
|
+
MenuHover = "menuHover",
|
|
10557
|
+
/** HB-D1 (HI3): what sits above the bar. */
|
|
10558
|
+
Above = "above",
|
|
10559
|
+
/** HB-D1 (HI3 / HI6): what more sits in the bar. */
|
|
10560
|
+
InBar = "inBar"
|
|
10485
10561
|
}
|
|
10486
10562
|
declare enum HeaderArrange {
|
|
10487
10563
|
Split = "split",
|
|
@@ -10614,7 +10690,13 @@ interface HeaderRecipe {
|
|
|
10614
10690
|
/** The pages are behind a menu at every width (HI-D8). */
|
|
10615
10691
|
everyWidth: boolean;
|
|
10616
10692
|
menuSide: MenuSide;
|
|
10693
|
+
/** HI2a: the menu's look — what `planNavShape` writes on the drawer, the menu button and its Close. */
|
|
10694
|
+
menu: MenuLook;
|
|
10617
10695
|
}
|
|
10696
|
+
/** The menu's look for a mix (HI2a): with its pages behind the menu, the `menu` form at every width and the `phone`
|
|
10697
|
+
* ingredient's form on a phone; with its pages in the bar, the menu exists on a phone only, so its form IS the phone's
|
|
10698
|
+
* (the drawer, or the full screen). How it opens, its button and its hover come from their own ingredients. */
|
|
10699
|
+
declare function menuLookOf(mix: HeaderMix): MenuLook;
|
|
10618
10700
|
/** A header mix as a pattern: what the composer stamps as the site's header (global, before the page). A mix that IS a
|
|
10619
10701
|
* stored header (`nav.inline-cta`, `nav.centered-logo`) composes byte-identical to it (R-H4). Pure. */
|
|
10620
10702
|
declare function headerRecipe(mix: HeaderMix, ctx: HeaderContext): HeaderRecipe;
|
|
@@ -14389,5 +14471,5 @@ declare function adjustStepLabel(axis: AdjustAxis, step: string): string;
|
|
|
14389
14471
|
/** Every step id of every axis — the strict format's enum (which axis takes which step is the check's). */
|
|
14390
14472
|
declare const ADJUST_STEP_IDS: ReadonlyArray<string>;
|
|
14391
14473
|
|
|
14392
|
-
export { ACCOUNT_ENTRY_ID, ACTION_START_SCALE, ACTIVE_BUILD_STATUSES, ADJUSTMENTS, ADJUST_AXIS_LABELS, ADJUST_OWN, ADJUST_STEPS, ADJUST_STEP_IDS, AI_COMPOSED_PAGES_BY_TIER, AI_COMPOSED_PAGES_ESTIMATED, AI_PLAN_REASKED_PART, AI_REFUSAL_NEXT, AI_REFUSAL_STATUS, AI_STEPS, AI_STEP_FEATURE, AI_STEP_LABELS, AI_STEP_NEEDS, AI_STEP_PART_TOKENS, AI_STEP_TYPICAL_TOKENS, ART_DIRECTION_PARTS, AWARD_COMPOSED_PAGES_ESTIMATED, AdjustAxis, AdjustKind, 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_FOOTER_PATTERN, DEFAULT_GENERATION_TIER, DEFAULT_HEADER_PATTERN, 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, FOOTER_TOKEN, FilmUnplaced, FooterArrange, FooterClosing, FooterGround, FooterHold, FooterIngredient, FooterMixError, FooterRepairCode, GRAMMAR_TOO_LARGE_MESSAGE, GenerationTier, GlobalSlot, HEADER_TOKEN, HEBREW_PREFIXES, HeaderAction, HeaderArrange, HeaderIngredient, HeaderMixError, HeaderPages, HeaderRepairCode, 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_LIST_TOKEN, LAYOUT_MIX_OFFERED, LAYOUT_MIX_WORDS, 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, LIST_CARD_PART, LIST_INGREDIENTS, LIST_LONG_WORDS, LIST_ROLE_WORDS, LIST_TABLE, LayoutAlign, LayoutBleed, LayoutButtonVariant, LayoutColour, LayoutColourMode, LayoutDepth, LayoutDial, LayoutEase, LayoutEditOp, LayoutEnter, LayoutGalleryEffect, LayoutGapCode, LayoutIssueCode, LayoutLayerKind, LayoutListArrange, LayoutListArrive, LayoutListHover, LayoutListHow, LayoutListItem, LayoutListMove, LayoutListPhone, LayoutListRole, LayoutListWho, LayoutMendKind, LayoutMixIngredient, LayoutNavKind, LayoutPace, LayoutPhotoShape, LayoutPhotoSource, LayoutRole, LayoutSectionKind, LayoutSequenceToken, LayoutSide, LayoutSignatureId, LayoutSize, LayoutSourceChoice, LayoutTrackProp, LayoutTransition, LayoutViewport, MAX_SITE_PICTURES, MenuSide, 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, PriceBindTarget, PublishRefusalCode, PublishScope, RENDER_CHECK, REQUIRED_CONTENT_ROLES, RelativeOp, SAMPLE_IMAGE_REF, SCENE_LEVEL, SCENE_OTHER_PAGES, SCRIM_BACKGROUND, SCRIM_COVER, SCRIM_LEVELS, SHOP_CART_BUTTON_ID, SHOP_CART_DRAWER_ID, SHOP_FIELDS, SHOP_LATEST_LIMIT, SHOP_LIST_LIMIT, SHOP_NEED, SHOP_ONLY_CONTENT_ROLES, SHOP_PRODUCTS_MAX, SHOP_ROLES, SHOP_SLUG_FIELD, SHOWCASE_FILM, SHOWCASE_SHOP, SIGN_IN_DIALOG_ID, 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_FOOTER_PARTS, SPEC_SITE_HEADER_PARTS, 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, STAMPED_PAGE_ARCHETYPES, 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, STORE_CONTACT_CODES, STRICT_SCHEMA_BUDGET, STRICT_SCHEMA_LIMITS, STUDIO_TEMPLATE, ScrimLevel, SectionFallbackLastResort, SectionSwapAction, SectionSwapRule, ShopResource, ShopSourceRole, 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, adjustStepLabel, adjustStepOf, adjustStyleProps, aiRefusalNext, aiStepParts, applyLayoutEdits, applyOwnPhotoGalleries, applyPictureScrims, applyPlanEdits, applyStockItemPhotos, applyStockPhotos, archetypeIssues, areaLuminance, artDirectionFor, artDirectionIssues, artDirectionPreamble, aspectRatioOf, assertStyleSlots, assertValidSitePlan, auditLayoutMotion, auditSite, barIconForRoute, blocksPublish, brandHueWord, buildKeys, buildStepFacts, buildStepsOf, builtHomePageId, calmParts, calmUnder, checkFooter, checkHeader, checkLayout, checkList, chooseScrim, composablePage, composeContextOf, composeLayout, composeNavHeader, composePresetForm, composeSection, composeSite, composedPagesMax, composedPagesShare, composingShare, contentTypeOfSource, contentTypePreviewFields, contentTypeToWire, copyLengthOf, costUsd, coverCrop, createSerializedNode, creditsOfUsd, dataSourceToWire, derivedBeats, derivedDataSources, derivedShopSources, describeInventoryForPrompt, describeListShape, describePlanData, describeShapeKey, distinctFooter, distinctHeader, drawnFooterMix, drawnHeaderMix, driftAt, driftOverlap, emptyAreaPhrase, entranceAction, entranceInteraction, estimatePictures, estimateStepCredits, expandLayoutWire, expandPlanWire, expandWireContentType, expandWireDataSource, expandWireEdit, expandWireField, expandWirePage, expandWireSection, expandWireShop, factIssues, failedBuildStep, fallBackBySection, fieldToWire, filmOfPlan, filmPlacement, findNavRoot, fingerprintOf, fingerprintOfPlanPage, footerMeaning, footerMix, footerMixFromWords, footerMixOfPlan, footerMixWords, footerPattern, footerPatternIdOf, footerReferences, footerTableWords, footerTokenOf, footerTokenWords, footerWait, footerWireWords, footerWords, frameWords, generationTierOf, headerContextOfPlan, headerMeaning, headerMix, headerMixFromWords, headerMixOfNavKind, headerMixOfPlan, headerMixWords, headerPatternIdOf, headerRecipe, headerReferences, headerTokenOf, headerTokenWords, headerWireWords, headerWords, isActiveBuild, isLayoutRule, isNonEmptyString, isPerItemPage, isPictureWorld, isPlainObject, isRtlLocale, isShopResource, jsonAnyOf, jsonBoolean, jsonClosedObject, jsonInteger, jsonListOf, jsonOneOf, jsonSchemaKeywords, jsonSchemaObjects, jsonShapedObject, jsonText, judgeLayoutRender, layerShownSpans, layoutBandScheme, layoutBoxPx, layoutColumnsVw, layoutDesignOf, layoutDialOf, layoutDriftPhoto, layoutElementStyle, layoutGalleryLists, layoutGallerySources, layoutGlideDepth, layoutHeldStill, layoutListBinding, layoutListShapes, layoutLookChanges, layoutLookOf, layoutMixOffered, layoutMotionOf, layoutNodeClass, layoutOpeningDisplayMend, layoutOpeningDisplays, layoutPathSteps, layoutPhotoIds, layoutPresetColours, layoutPresetOf, layoutRepairJsonSchema, layoutRoomPx, layoutRuleEdge, layoutShapeHasPurpose, layoutStillLine, layoutTextFits, layoutTextWidthEm, layoutToWire, layoutVoidScreens, layoutVoids, layoutWireJsonSchema, layoutWirePartWords, listBuiltWords, listIngredientWords, listMeaning, listNeverIsEmpty, listTokenOf, listTokensOf, listWait, listWords, luminanceOf, measureLayout, mendLayout, menuAtEveryWidth, modelCanDo, moveBarItem, namedFooterMix, namedHeaderMix, navPages, navShapeBreakpoint, navShapeOf, nextSourceOf, nodeBindPaths, offeredForTier, orientationOfRatio, ownPhotoFit, pageListIssues, pageToWire, parseLayoutPhotoId, parsePatternPath, parseSampleImageRef, pathAt, patternById, patternHasForm, patternLinkSlots, patternListGap, patternManifest, patternNeedsBinding, patternNodes, patternOptionalParts, patternRoleNeeds, patternScopes, patternSlotBudgets, patternSlots, patternTakesBinding, phoneGapBefore, phoneMenuPages, phoneWordsColour, photoInventory, photoShapeOf, pictureAspect, pictureItemsOf, picturePrompt, pictureRefusalOf, pictureRerolls, pictureReviewIssues, pictureReviewJsonSchema, pictureReviewPasses, pictureSlotKey, pictureTargets, pictureTryFits, pinnedPagesOf, pixelsUnder, placeFilm, planEditOps, planEditToWire, planEditWireGaps, planEditWireKeys, planEditWireOps, planEditWireShape, planEditsFromWire, planEditsJsonSchema, planEditsToWire, planEntrances, planFromTemplate, planHasShopSource, planHeader, planLayoutPhotos, planNavShape, planOwnPhotos, planPartOfPath, planPartToWire, planPictures, planSells, planStockPhotos, planToWire, planWireGaps, planWirePartJsonSchema, planWirePartShape, planWordIssues, pricesIn, publishRefusal, publishVerdict, readyMadeColumn, recipeListBinds, recomposeAsks, releasedLayoutDefaults, removeBarItem, requiredAcknowledgements, requiredShapeKeys, roleField, routeMatches, routeParams, samenessIssues, sampleImageRef, scoreStockPhoto, screenFontSize, screenWordColumns, screenWordMisfit, screenWordOverflowPx, sectionEntrances, sectionPatternIds, sectionToWire, sectionTokenOf, sectionsNamed, sequenceShare, sequenceTokenOf, setStyleProps, shapeKeys, shopCategoriesOf, shopContentType, shopPageOfPlan, shopSourceAliases, showcaseGlobals, showcasePages, showcasePlans, showcaseScenes, showcaseStorePages, shownTogether, signatureOf, siteNavPages, siteSells, slotBudget, splitCssValue, splitSide, startComposingShare, stockCopyKey, stockCreditLine, stockCreditLines, stockCreditNode, stockCreditNodeId, stockFits, stockGroupOf, stockItemSlots, stockKept, stockPhotoRatio, stockPhotoSubject, stockPhotoUsable, stockPhotoWords, stockSlots, stockWord, stockWords, strictSchemaComplexity, strictSchemaRefusal, tierOf, tierOffers, toneOf, typicalStepTokens, validatePlanEdits, validateSitePlan, variantNamesOf, walkSerialized, wireContentTypeJsonSchema, wireDataSourceJsonSchema, wireFieldJsonSchema, wirePageJsonSchema, wireSectionJsonSchema, wireShopProductJsonSchema, withComposedPages, withDerivedSources, withDistinctFooter, withDistinctHeader, wordPattern, wordsOverPhotos, wordsOverPicture, wornHeaderOfPlan, writtenTexts };
|
|
14474
|
+
export { ACCOUNT_ENTRY_ID, ACTION_START_SCALE, ACTIVE_BUILD_STATUSES, ADJUSTMENTS, ADJUST_AXIS_LABELS, ADJUST_OWN, ADJUST_STEPS, ADJUST_STEP_IDS, AI_COMPOSED_PAGES_BY_TIER, AI_COMPOSED_PAGES_ESTIMATED, AI_PLAN_REASKED_PART, AI_REFUSAL_NEXT, AI_REFUSAL_STATUS, AI_STEPS, AI_STEP_FEATURE, AI_STEP_LABELS, AI_STEP_NEEDS, AI_STEP_PART_TOKENS, AI_STEP_TYPICAL_TOKENS, ART_DIRECTION_PARTS, AWARD_COMPOSED_PAGES_ESTIMATED, AdjustAxis, AdjustKind, 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_FOOTER_PATTERN, DEFAULT_GENERATION_TIER, DEFAULT_HEADER_PATTERN, 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, FOOTER_TOKEN, FilmUnplaced, FooterArrange, FooterClosing, FooterGround, FooterHold, FooterIngredient, FooterMixError, FooterRepairCode, GRAMMAR_TOO_LARGE_MESSAGE, GenerationTier, GlobalSlot, HEADER_TOKEN, HEBREW_PREFIXES, HeaderAction, HeaderArrange, HeaderIngredient, HeaderMixError, HeaderPages, HeaderRepairCode, 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_LIST_TOKEN, LAYOUT_MIX_OFFERED, LAYOUT_MIX_WORDS, 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, LIST_CARD_PART, LIST_INGREDIENTS, LIST_LONG_WORDS, LIST_ROLE_WORDS, LIST_TABLE, LayoutAlign, LayoutBleed, LayoutButtonVariant, LayoutColour, LayoutColourMode, LayoutDepth, LayoutDial, LayoutEase, LayoutEditOp, LayoutEnter, LayoutGalleryEffect, LayoutGapCode, LayoutIssueCode, LayoutLayerKind, LayoutListArrange, LayoutListArrive, LayoutListHover, LayoutListHow, LayoutListItem, LayoutListMove, LayoutListPhone, LayoutListRole, LayoutListWho, LayoutMendKind, LayoutMixIngredient, LayoutNavKind, LayoutPace, LayoutPhotoShape, LayoutPhotoSource, LayoutRole, LayoutSectionKind, LayoutSequenceToken, LayoutSide, LayoutSignatureId, LayoutSize, LayoutSourceChoice, LayoutTrackProp, LayoutTransition, LayoutViewport, MAX_SITE_PICTURES, MenuSide, 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, PriceBindTarget, PublishRefusalCode, PublishScope, RENDER_CHECK, REQUIRED_CONTENT_ROLES, RelativeOp, SAMPLE_IMAGE_REF, SCENE_LEVEL, SCENE_OTHER_PAGES, SCRIM_BACKGROUND, SCRIM_COVER, SCRIM_LEVELS, SHOP_CART_BUTTON_ID, SHOP_CART_DRAWER_ID, SHOP_FIELDS, SHOP_LATEST_LIMIT, SHOP_LIST_LIMIT, SHOP_NEED, SHOP_ONLY_CONTENT_ROLES, SHOP_PRODUCTS_MAX, SHOP_ROLES, SHOP_SLUG_FIELD, SHOWCASE_FILM, SHOWCASE_SHOP, SIGN_IN_DIALOG_ID, 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_FOOTER_PARTS, SPEC_SITE_HEADER_PARTS, 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, STAMPED_PAGE_ARCHETYPES, 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, STORE_CONTACT_CODES, STRICT_SCHEMA_BUDGET, STRICT_SCHEMA_LIMITS, STUDIO_TEMPLATE, ScrimLevel, SectionFallbackLastResort, SectionSwapAction, SectionSwapRule, ShopResource, ShopSourceRole, 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, adjustStepLabel, adjustStepOf, adjustStyleProps, aiRefusalNext, aiStepParts, applyLayoutEdits, applyOwnPhotoGalleries, applyPictureScrims, applyPlanEdits, applyStockItemPhotos, applyStockPhotos, archetypeIssues, areaLuminance, artDirectionFor, artDirectionIssues, artDirectionPreamble, aspectRatioOf, assertStyleSlots, assertValidSitePlan, auditLayoutMotion, auditSite, barIconForRoute, blocksPublish, brandHueWord, buildKeys, buildStepFacts, buildStepsOf, builtHomePageId, calmParts, calmUnder, checkFooter, checkHeader, checkLayout, checkList, chooseScrim, composablePage, composeContextOf, composeLayout, composeNavHeader, composePresetForm, composeSection, composeSite, composedPagesMax, composedPagesShare, composingShare, contentTypeOfSource, contentTypePreviewFields, contentTypeToWire, copyLengthOf, costUsd, coverCrop, createSerializedNode, creditsOfUsd, dataSourceToWire, derivedBeats, derivedDataSources, derivedShopSources, describeInventoryForPrompt, describeListShape, describePlanData, describeShapeKey, distinctFooter, distinctHeader, drawnFooterMix, drawnHeaderMix, driftAt, driftOverlap, emptyAreaPhrase, entranceAction, entranceInteraction, estimatePictures, estimateStepCredits, expandLayoutWire, expandPlanWire, expandWireContentType, expandWireDataSource, expandWireEdit, expandWireField, expandWirePage, expandWireSection, expandWireShop, factIssues, failedBuildStep, fallBackBySection, fieldToWire, filmOfPlan, filmPlacement, findNavRoot, fingerprintOf, fingerprintOfPlanPage, footerMeaning, footerMix, footerMixFromWords, footerMixOfPlan, footerMixWords, footerPattern, footerPatternIdOf, footerReferences, footerTableWords, footerTokenOf, footerTokenWords, footerWait, footerWireWords, footerWords, frameWords, generationTierOf, headerContextOfPlan, headerMeaning, headerMix, headerMixFromWords, headerMixOfNavKind, headerMixOfPlan, headerMixWords, headerPatternIdOf, headerRecipe, headerReferences, headerTokenOf, headerTokenWords, headerWireWords, headerWords, isActiveBuild, isLayoutRule, isNonEmptyString, isPerItemPage, isPictureWorld, isPlainObject, isRtlLocale, isShopResource, jsonAnyOf, jsonBoolean, jsonClosedObject, jsonInteger, jsonListOf, jsonOneOf, jsonSchemaKeywords, jsonSchemaObjects, jsonShapedObject, jsonText, judgeLayoutRender, layerShownSpans, layoutBandScheme, layoutBoxPx, layoutColumnsVw, layoutDesignOf, layoutDialOf, layoutDriftPhoto, layoutElementStyle, layoutGalleryLists, layoutGallerySources, layoutGlideDepth, layoutHeldStill, layoutListBinding, layoutListShapes, layoutLookChanges, layoutLookOf, layoutMixOffered, layoutMotionOf, layoutNodeClass, layoutOpeningDisplayMend, layoutOpeningDisplays, layoutPathSteps, layoutPhotoIds, layoutPresetColours, layoutPresetOf, layoutRepairJsonSchema, layoutRoomPx, layoutRuleEdge, layoutShapeHasPurpose, layoutStillLine, layoutTextFits, layoutTextWidthEm, layoutToWire, layoutVoidScreens, layoutVoids, layoutWireJsonSchema, layoutWirePartWords, listBuiltWords, listIngredientWords, listMeaning, listNeverIsEmpty, listTokenOf, listTokensOf, listWait, listWords, luminanceOf, measureLayout, mendLayout, menuAtEveryWidth, menuLookOf, menuWords, modelCanDo, moveBarItem, namedFooterMix, namedHeaderMix, navPages, navShapeBreakpoint, navShapeOf, nextSourceOf, nodeBindPaths, offeredForTier, orientationOfRatio, ownPhotoFit, pageListIssues, pageToWire, parseLayoutPhotoId, parsePatternPath, parseSampleImageRef, pathAt, patternById, patternHasForm, patternLinkSlots, patternListGap, patternManifest, patternNeedsBinding, patternNodes, patternOptionalParts, patternRoleNeeds, patternScopes, patternSlotBudgets, patternSlots, patternTakesBinding, phoneGapBefore, phoneMenuPages, phoneWordsColour, photoInventory, photoShapeOf, pictureAspect, pictureItemsOf, picturePrompt, pictureRefusalOf, pictureRerolls, pictureReviewIssues, pictureReviewJsonSchema, pictureReviewPasses, pictureSlotKey, pictureTargets, pictureTryFits, pinnedPagesOf, pixelsUnder, placeFilm, planEditOps, planEditToWire, planEditWireGaps, planEditWireKeys, planEditWireOps, planEditWireShape, planEditsFromWire, planEditsJsonSchema, planEditsToWire, planEntrances, planFromTemplate, planHasShopSource, planHeader, planLayoutPhotos, planNavShape, planOwnPhotos, planPartOfPath, planPartToWire, planPictures, planSells, planStockPhotos, planToWire, planWireGaps, planWirePartJsonSchema, planWirePartShape, planWordIssues, pricesIn, publishRefusal, publishVerdict, readyMadeColumn, recipeListBinds, recomposeAsks, releasedLayoutDefaults, removeBarItem, requiredAcknowledgements, requiredShapeKeys, roleField, routeMatches, routeParams, samenessIssues, sampleImageRef, scoreStockPhoto, screenFontSize, screenWordColumns, screenWordMisfit, screenWordOverflowPx, sectionEntrances, sectionPatternIds, sectionToWire, sectionTokenOf, sectionsNamed, sequenceShare, sequenceTokenOf, setStyleProps, shapeKeys, shopCategoriesOf, shopContentType, shopPageOfPlan, shopSourceAliases, showcaseGlobals, showcasePages, showcasePlans, showcaseScenes, showcaseStorePages, shownTogether, signatureOf, siteNavPages, siteSells, slotBudget, splitCssValue, splitSide, startComposingShare, stockCopyKey, stockCreditLine, stockCreditLines, stockCreditNode, stockCreditNodeId, stockFits, stockGroupOf, stockItemSlots, stockKept, stockPhotoRatio, stockPhotoSubject, stockPhotoUsable, stockPhotoWords, stockSlots, stockWord, stockWords, strictSchemaComplexity, strictSchemaRefusal, tierOf, tierOffers, toneOf, typicalStepTokens, validatePlanEdits, validateSitePlan, variantNamesOf, walkSerialized, wireContentTypeJsonSchema, wireDataSourceJsonSchema, wireFieldJsonSchema, wirePageJsonSchema, wireSectionJsonSchema, wireShopProductJsonSchema, withComposedPages, withDerivedSources, withDistinctFooter, withDistinctHeader, wordPattern, wordsOverPhotos, wordsOverPicture, wornHeaderOfPlan, writtenTexts };
|
|
14393
14475
|
export type { AddBarItemResult, AdjustStep, AiBuyCredits, 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, ComposedProduct, ComposedRoute, ComposedSection, ComposedShop, ComposedSite, ContentFieldPlan, ContentRoles, ContentSeedPlan, ContentTypePlan, CreateNodeOptions, CreatedRecord, DataSourcePlan, DriftBox, DriftLayer, DriftMeeting, DynamicKeysAsList, EntranceAction, EntranceActionOptions, EntranceInteraction, EntranceMark, EntranceSpec, EntranceStamp, FactKey, FilmPlacement, FilmTarget, FingerprintedPage, FooterContext, FooterMix, FooterRepair, FooterWait, FrameRegion, HeaderContext, HeaderGap, HeaderMix, HeaderPage, HeaderRecipe, HeaderRepair, JsonSchema, LayoutBandMove, LayoutColours, LayoutEdit, LayoutFingerprint, LayoutForm, LayoutGallery, LayoutGalleryList, LayoutGap, LayoutGivenAway, LayoutIssue, LayoutLayer, LayoutListBinding, LayoutListMix, LayoutListNever, LayoutListShape, LayoutLook, LayoutMend, LayoutPage, LayoutPhotoAddress, LayoutReadyMade, LayoutRect, LayoutSection, LayoutSite, LayoutTrack, LayoutVoid, LayoutWire, LayoutWireLayer, LayoutWireList, LayoutWireOptions, LayoutWireSection, LayoutWireSlot, LayoutWireTrack, ListIngredient, ListWait, 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, PlanMixes, PlanWireContext, PlanWireParts, PlanWordContext, PlanWordIssue, PreflightRefusal, PublishRefusal, RecipeListBinds, RelativeDataSourcePlan, ScrimChoice, SectionEntrances, SectionFallback, SectionInput, SectionJudge, SectionOptions, SectionSwap, SerializedBinding, SerializedNode, SerializedResponsive, ShapeEntry, ShapeIssueCodes, ShopDataSourcePlan, ShopOptionPlan, ShopPlan, ShopProductPlan, ShowcaseInput, SiteAudit, SiteAuditOptions, SiteAuditSnapshot, SiteBuildRun, SiteBusiness, SiteCheck, SiteFinding, SiteNeedId, SitePageRef, SitePattern, SitePlan, SitePlanContext, SitePlanIssue, SitePlanSource, SitePlanValidation, SiteTemplate, StockCredit, StockItemSlot, StockLink, StockNeed, StockPhoto, StockPhotoTraits, StockPlacement, StockPlanOptions, StockProviderTerms, StockReview, StockSlot, StockTarget, StrictSchemaComplexity, StrictSchemaRefusal, TemplatePlanInput, TieredRow, UndoKept, UndoPreview, UndoRecord, WireOptions, WordsArea, WrittenText };
|
package/package.json
CHANGED
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { dialogOpenersSelector } from './dialog-opener';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Where a menu's REVEAL grows from (header-ingredients HI2a; header-builder board 2: "origin = the opener's centre"). A
|
|
5
|
+
* zoom scales about it, a circle and the torn edge open from it — so the menu reads as coming OUT of the button that opened
|
|
6
|
+
* it. The reveals themselves are CSS transitions in the shared `iox-design.css` (Emil: a menu toggles, so it must reverse
|
|
7
|
+
* from its live value — a transition, never keyframes); the one beat of script is this: put the opener's centre, in the
|
|
8
|
+
* menu's own box, into two custom properties when the menu opens. ONE function for the live page and the builder canvas
|
|
9
|
+
* (each passes its own box measure). Framework-free.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
export enum RevealOriginProperty {
|
|
13
|
+
X = '--reveal-x',
|
|
14
|
+
Y = '--reveal-y',
|
|
15
|
+
/** How far the reveal must grow to cover the menu: the distance to its farthest corner (a circle of this radius,
|
|
16
|
+
* centred on the origin, covers the whole box — so the reveal spends its time ON the menu, not past it). */
|
|
17
|
+
R = '--reveal-r',
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface RevealOriginPoint {
|
|
21
|
+
x: number;
|
|
22
|
+
y: number;
|
|
23
|
+
r: number;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface RevealRect {
|
|
27
|
+
left: number;
|
|
28
|
+
top: number;
|
|
29
|
+
width: number;
|
|
30
|
+
height: number;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export interface RevealOriginOptions {
|
|
34
|
+
/** Opener space → the menu's CSS px (the builder canvas is zoomed: its rects are scaled). Default 1. */
|
|
35
|
+
scale?: number;
|
|
36
|
+
/** With no opener, the menu's top-LEFT corner (a start-side menu in LTR, an end-side one in RTL); else top-right. */
|
|
37
|
+
atLeft?: boolean;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* The reveal origin in the menu's own box (CSS px, from its top-left border edge): the opener's centre, or — opened by
|
|
42
|
+
* anything else (a link, an action on another element) — the menu's top corner on its side. `box` is the menu's
|
|
43
|
+
* UNTRANSFORMED box, in the same space as the opener's rect. Pure.
|
|
44
|
+
*/
|
|
45
|
+
export function revealOrigin(opener: RevealRect | null | undefined, box: RevealRect, options: RevealOriginOptions = {}): RevealOriginPoint {
|
|
46
|
+
const scale = options.scale && options.scale > 0 ? options.scale : 1;
|
|
47
|
+
const width = box.width / scale;
|
|
48
|
+
const height = box.height / scale;
|
|
49
|
+
const at = !opener || !(opener.width > 0 || opener.height > 0)
|
|
50
|
+
? { x: Math.round(options.atLeft ? 0 : width), y: 0 }
|
|
51
|
+
: { x: Math.round(((opener.left + opener.width / 2) - box.left) / scale), y: Math.round(((opener.top + opener.height / 2) - box.top) / scale) };
|
|
52
|
+
const r = Math.ceil(Math.max(...[[0, 0], [width, 0], [0, height], [width, height]].map(([cx, cy]) => Math.hypot(cx - at.x, cy - at.y))));
|
|
53
|
+
return { ...at, r };
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/** The custom properties for an origin. */
|
|
57
|
+
export function revealOriginStyle(origin: RevealOriginPoint): Record<RevealOriginProperty, string> {
|
|
58
|
+
return { [RevealOriginProperty.X]: `${origin.x}px`, [RevealOriginProperty.Y]: `${origin.y}px`, [RevealOriginProperty.R]: `${origin.r}px` };
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/** What `revealFrom` needs of a live `<dialog>` (structural, so the spec drives it without a DOM). */
|
|
62
|
+
export interface RevealDialogLike {
|
|
63
|
+
id: string;
|
|
64
|
+
offsetWidth: number;
|
|
65
|
+
offsetHeight: number;
|
|
66
|
+
style: { setProperty(name: string, value: string): void };
|
|
67
|
+
getAttribute(name: string): string | null;
|
|
68
|
+
ownerDocument: {
|
|
69
|
+
defaultView: { getComputedStyle(el: unknown): { marginLeft: string; marginTop: string; direction: string } } | null;
|
|
70
|
+
querySelectorAll(selector: string): ArrayLike<RevealOpenerLike>;
|
|
71
|
+
} | null;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export interface RevealOpenerLike {
|
|
75
|
+
getBoundingClientRect(): RevealRect;
|
|
76
|
+
getClientRects?(): ArrayLike<unknown>;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
const rendered = (el: RevealOpenerLike | null | undefined): el is RevealOpenerLike => {
|
|
80
|
+
if (!el) return false;
|
|
81
|
+
if (el.getClientRects && !el.getClientRects().length) return false;
|
|
82
|
+
const r = el.getBoundingClientRect();
|
|
83
|
+
return r.width > 0 || r.height > 0;
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Set a just-opened live `<dialog>`'s reveal origin from the element that opened it (`opener`), else from the first of its
|
|
88
|
+
* openers that is on screen (`aria-controls` — the menu button at its width), else its top corner. Call it right after
|
|
89
|
+
* `showModal()`. A top-layer dialog is fixed at `inset: 0`, so its untransformed box starts at its USED margins — a
|
|
90
|
+
* reveal's starting scale or translate never moves a margin, whereas `getBoundingClientRect` would read it.
|
|
91
|
+
*/
|
|
92
|
+
export function revealFrom(dialog: RevealDialogLike | null | undefined, opener?: RevealOpenerLike | null): void {
|
|
93
|
+
const view = dialog?.ownerDocument?.defaultView;
|
|
94
|
+
if (!dialog || !view) return;
|
|
95
|
+
const cs = view.getComputedStyle(dialog);
|
|
96
|
+
const box = { left: parseFloat(cs.marginLeft) || 0, top: parseFloat(cs.marginTop) || 0, width: dialog.offsetWidth, height: dialog.offsetHeight };
|
|
97
|
+
const from = rendered(opener) ? opener
|
|
98
|
+
: dialog.id ? Array.from(dialog.ownerDocument!.querySelectorAll(dialogOpenersSelector(dialog.id))).find(rendered) ?? null : null;
|
|
99
|
+
const atLeft = (dialog.getAttribute('data-iox-dialog-placement') === 'start') !== (cs.direction === 'rtl');
|
|
100
|
+
const origin = revealOrigin(from ? from.getBoundingClientRect() : null, box, { atLeft });
|
|
101
|
+
for (const [name, value] of Object.entries(revealOriginStyle(origin))) dialog.style.setProperty(name, value);
|
|
102
|
+
}
|
|
@@ -1078,6 +1078,11 @@ export const SPEC_TIERS = {
|
|
|
1078
1078
|
"type": "color",
|
|
1079
1079
|
"default": "var(--iox-line)"
|
|
1080
1080
|
},
|
|
1081
|
+
{
|
|
1082
|
+
"name": "menu-edge",
|
|
1083
|
+
"type": "color",
|
|
1084
|
+
"default": "var(--iox-accent)"
|
|
1085
|
+
},
|
|
1081
1086
|
{
|
|
1082
1087
|
"name": "image-radius",
|
|
1083
1088
|
"type": "radius",
|
|
@@ -7153,6 +7158,13 @@ export const SPEC_FLAVOR_PACKS = [
|
|
|
7153
7158
|
"group": "components",
|
|
7154
7159
|
"value": "var(--iox-line)"
|
|
7155
7160
|
},
|
|
7161
|
+
{
|
|
7162
|
+
"name": "menu-edge",
|
|
7163
|
+
"tier": "component",
|
|
7164
|
+
"type": "color",
|
|
7165
|
+
"group": "components",
|
|
7166
|
+
"value": "var(--iox-accent)"
|
|
7167
|
+
},
|
|
7156
7168
|
{
|
|
7157
7169
|
"name": "image-radius",
|
|
7158
7170
|
"tier": "component",
|
|
@@ -9504,6 +9516,13 @@ export const SPEC_FLAVOR_PACKS = [
|
|
|
9504
9516
|
"group": "components",
|
|
9505
9517
|
"value": "var(--iox-line)"
|
|
9506
9518
|
},
|
|
9519
|
+
{
|
|
9520
|
+
"name": "menu-edge",
|
|
9521
|
+
"tier": "component",
|
|
9522
|
+
"type": "color",
|
|
9523
|
+
"group": "components",
|
|
9524
|
+
"value": "var(--iox-accent)"
|
|
9525
|
+
},
|
|
9507
9526
|
{
|
|
9508
9527
|
"name": "image-radius",
|
|
9509
9528
|
"tier": "component",
|
|
@@ -11859,6 +11878,13 @@ export const SPEC_FLAVOR_PACKS = [
|
|
|
11859
11878
|
"group": "components",
|
|
11860
11879
|
"value": "var(--iox-line)"
|
|
11861
11880
|
},
|
|
11881
|
+
{
|
|
11882
|
+
"name": "menu-edge",
|
|
11883
|
+
"tier": "component",
|
|
11884
|
+
"type": "color",
|
|
11885
|
+
"group": "components",
|
|
11886
|
+
"value": "var(--iox-accent)"
|
|
11887
|
+
},
|
|
11862
11888
|
{
|
|
11863
11889
|
"name": "image-radius",
|
|
11864
11890
|
"tier": "component",
|
|
@@ -14238,6 +14264,13 @@ export const SPEC_FLAVOR_PACKS = [
|
|
|
14238
14264
|
"group": "components",
|
|
14239
14265
|
"value": "var(--iox-line)"
|
|
14240
14266
|
},
|
|
14267
|
+
{
|
|
14268
|
+
"name": "menu-edge",
|
|
14269
|
+
"tier": "component",
|
|
14270
|
+
"type": "color",
|
|
14271
|
+
"group": "components",
|
|
14272
|
+
"value": "var(--iox-accent)"
|
|
14273
|
+
},
|
|
14241
14274
|
{
|
|
14242
14275
|
"name": "image-radius",
|
|
14243
14276
|
"tier": "component",
|
|
@@ -16598,6 +16631,13 @@ export const SPEC_FLAVOR_PACKS = [
|
|
|
16598
16631
|
"group": "components",
|
|
16599
16632
|
"value": "var(--iox-line)"
|
|
16600
16633
|
},
|
|
16634
|
+
{
|
|
16635
|
+
"name": "menu-edge",
|
|
16636
|
+
"tier": "component",
|
|
16637
|
+
"type": "color",
|
|
16638
|
+
"group": "components",
|
|
16639
|
+
"value": "var(--iox-accent)"
|
|
16640
|
+
},
|
|
16601
16641
|
{
|
|
16602
16642
|
"name": "image-radius",
|
|
16603
16643
|
"tier": "component",
|
|
@@ -18954,6 +18994,13 @@ export const SPEC_FLAVOR_PACKS = [
|
|
|
18954
18994
|
"group": "components",
|
|
18955
18995
|
"value": "var(--iox-line)"
|
|
18956
18996
|
},
|
|
18997
|
+
{
|
|
18998
|
+
"name": "menu-edge",
|
|
18999
|
+
"tier": "component",
|
|
19000
|
+
"type": "color",
|
|
19001
|
+
"group": "components",
|
|
19002
|
+
"value": "var(--iox-accent)"
|
|
19003
|
+
},
|
|
18957
19004
|
{
|
|
18958
19005
|
"name": "image-radius",
|
|
18959
19006
|
"tier": "component",
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* How a site's MENU looks and moves (header-ingredients-plan.md HI2a; HB-D1/HB-D2, header-builder board v2). The header
|
|
3
|
+
* table's menu words — its form (drawer · full · top panel · card · mega), how it opens (slide · fade · zoom · circle ·
|
|
4
|
+
* torn), the button that opens it (lines · word · dots) and what the mouse does in it (line · dim · row · none) — become
|
|
5
|
+
* TRAITS on the menu's own nodes (the Dialog, the menu button and its Close) and ONE answer every renderer applies: the
|
|
6
|
+
* attributes below, which the shared CSS (`iox-design.css`) reads. A menu with none of them renders exactly as the drawer
|
|
7
|
+
* always did (R-H4): today's look is every default, and a default writes nothing.
|
|
8
|
+
*
|
|
9
|
+
* Framework-free: the composer (generation-core), the builder and both engine paths read it.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
export enum MenuForm {
|
|
13
|
+
/** A sheet from the menu button's edge — the menu every site had before HI2. */
|
|
14
|
+
Drawer = 'drawer',
|
|
15
|
+
/** The whole screen: an index of the page names. */
|
|
16
|
+
Full = 'full',
|
|
17
|
+
/** A panel that drops from the top, as tall as its content (past 80dvh it scrolls inside itself — T7). */
|
|
18
|
+
Panel = 'panel',
|
|
19
|
+
/** A card that opens from the menu button's corner. */
|
|
20
|
+
Card = 'card',
|
|
21
|
+
/** A wide panel under the bar, its pages in columns. */
|
|
22
|
+
Mega = 'mega',
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export enum MenuReveal {
|
|
26
|
+
/** A drawer from its edge; any other menu a short drop (today's motion). */
|
|
27
|
+
Slide = 'slide',
|
|
28
|
+
Fade = 'fade',
|
|
29
|
+
/** Grows from the menu button's centre (transform-origin = the opener). */
|
|
30
|
+
Zoom = 'zoom',
|
|
31
|
+
/** `clip-path: circle()` grown from the menu button. */
|
|
32
|
+
Circle = 'circle',
|
|
33
|
+
/** Our own ragged edge (HB-D7) grown from the menu button, rimmed in the look's `menu-edge`. */
|
|
34
|
+
Torn = 'torn',
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export enum MenuButtonKind {
|
|
38
|
+
/** Three lines that become a cross (the list icon, the drawer's Close an X — today's). */
|
|
39
|
+
Lines = 'lines',
|
|
40
|
+
/** The word Menu, which becomes Close. */
|
|
41
|
+
Word = 'word',
|
|
42
|
+
/** Nine dots that spread under the mouse and become a cross. */
|
|
43
|
+
Dots = 'dots',
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export enum MenuHover {
|
|
47
|
+
/** A line draws under the page name (today's: the drawn underline of a navigation's links). */
|
|
48
|
+
Line = 'line',
|
|
49
|
+
/** The other page names dim. */
|
|
50
|
+
Dim = 'dim',
|
|
51
|
+
/** The row under the mouse lights up. */
|
|
52
|
+
Row = 'row',
|
|
53
|
+
None = 'none',
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/** What a card, top panel or mega menu becomes on a phone: the drawer, or the full-screen index (the phone ingredient). */
|
|
57
|
+
export enum MenuPhoneForm {
|
|
58
|
+
Drawer = 'drawer',
|
|
59
|
+
Full = 'full',
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/** The traits, stored in the node's props (no default: a node saved before HI2 saves none). */
|
|
63
|
+
export enum MenuTrait {
|
|
64
|
+
/** On the menu (the Dialog). */
|
|
65
|
+
Form = 'menuForm',
|
|
66
|
+
Reveal = 'menuReveal',
|
|
67
|
+
Hover = 'menuHover',
|
|
68
|
+
Phone = 'menuPhone',
|
|
69
|
+
/** On the menu button AND the menu's Close (the same button, open). */
|
|
70
|
+
Button = 'menuButton',
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export enum MenuAttribute {
|
|
74
|
+
Form = 'data-iox-menu',
|
|
75
|
+
Reveal = 'data-iox-reveal',
|
|
76
|
+
Hover = 'data-iox-menu-hover',
|
|
77
|
+
Phone = 'data-iox-menu-phone',
|
|
78
|
+
Button = 'data-iox-menu-button',
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/** Every attribute a menu part may carry (what a renderer's attribute sync owns). */
|
|
82
|
+
export const MENU_ATTRIBUTES: ReadonlyArray<string> = Object.values(MenuAttribute);
|
|
83
|
+
|
|
84
|
+
/** A menu's whole look. */
|
|
85
|
+
export interface MenuLook {
|
|
86
|
+
form: MenuForm;
|
|
87
|
+
reveal: MenuReveal;
|
|
88
|
+
button: MenuButtonKind;
|
|
89
|
+
hover: MenuHover;
|
|
90
|
+
phone: MenuPhoneForm;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/** Today's menu, every default (R-H4: it writes nothing). */
|
|
94
|
+
export const DEFAULT_MENU_LOOK: Readonly<MenuLook> = Object.freeze({
|
|
95
|
+
form: MenuForm.Drawer,
|
|
96
|
+
reveal: MenuReveal.Slide,
|
|
97
|
+
button: MenuButtonKind.Lines,
|
|
98
|
+
hover: MenuHover.Line,
|
|
99
|
+
phone: MenuPhoneForm.Drawer,
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
const valueOf = <E extends string>(values: ReadonlyArray<E>, fallback: E) => (v: unknown): E =>
|
|
103
|
+
typeof v === 'string' && (values as ReadonlyArray<string>).includes(v) ? v as E : fallback;
|
|
104
|
+
|
|
105
|
+
export const menuFormOf = valueOf(Object.values(MenuForm), DEFAULT_MENU_LOOK.form);
|
|
106
|
+
export const menuRevealOf = valueOf(Object.values(MenuReveal), DEFAULT_MENU_LOOK.reveal);
|
|
107
|
+
export const menuButtonOf = valueOf(Object.values(MenuButtonKind), DEFAULT_MENU_LOOK.button);
|
|
108
|
+
export const menuHoverOf = valueOf(Object.values(MenuHover), DEFAULT_MENU_LOOK.hover);
|
|
109
|
+
export const menuPhoneOf = valueOf(Object.values(MenuPhoneForm), DEFAULT_MENU_LOOK.phone);
|
|
110
|
+
|
|
111
|
+
/** Reads a trait (`props` on a serialized node). */
|
|
112
|
+
export type MenuTraitReader = (name: MenuTrait) => unknown;
|
|
113
|
+
|
|
114
|
+
/** The attributes a MENU (the Dialog) renders from its traits — `{}` for today's drawer. */
|
|
115
|
+
export function menuDialogAttributes(read: MenuTraitReader): Record<string, string> {
|
|
116
|
+
const out: Record<string, string> = {};
|
|
117
|
+
const form = menuFormOf(read(MenuTrait.Form));
|
|
118
|
+
const reveal = menuRevealOf(read(MenuTrait.Reveal));
|
|
119
|
+
const hover = menuHoverOf(read(MenuTrait.Hover));
|
|
120
|
+
const phone = menuPhoneOf(read(MenuTrait.Phone));
|
|
121
|
+
if (form !== DEFAULT_MENU_LOOK.form) out[MenuAttribute.Form] = form;
|
|
122
|
+
if (reveal !== DEFAULT_MENU_LOOK.reveal) out[MenuAttribute.Reveal] = reveal;
|
|
123
|
+
if (hover !== DEFAULT_MENU_LOOK.hover) out[MenuAttribute.Hover] = hover;
|
|
124
|
+
if (phone !== DEFAULT_MENU_LOOK.phone) out[MenuAttribute.Phone] = phone;
|
|
125
|
+
return out;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/** The attribute a menu BUTTON (or the menu's Close) renders — `{}` for today's list icon. */
|
|
129
|
+
export function menuButtonAttributes(read: MenuTraitReader): Record<string, string> {
|
|
130
|
+
const kind = menuButtonOf(read(MenuTrait.Button));
|
|
131
|
+
return kind === DEFAULT_MENU_LOOK.button ? {} : { [MenuAttribute.Button]: kind };
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/** The traits a menu's Dialog is stamped with for a look: only what differs from today's (R-H4). */
|
|
135
|
+
export function menuDialogProps(look: Partial<MenuLook>): Record<string, string> {
|
|
136
|
+
const out: Record<string, string> = {};
|
|
137
|
+
if (look.form && look.form !== DEFAULT_MENU_LOOK.form) out[MenuTrait.Form] = look.form;
|
|
138
|
+
if (look.reveal && look.reveal !== DEFAULT_MENU_LOOK.reveal) out[MenuTrait.Reveal] = look.reveal;
|
|
139
|
+
if (look.hover && look.hover !== DEFAULT_MENU_LOOK.hover) out[MenuTrait.Hover] = look.hover;
|
|
140
|
+
if (look.phone && look.phone !== DEFAULT_MENU_LOOK.phone) out[MenuTrait.Phone] = look.phone;
|
|
141
|
+
return out;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/** The trait a menu button (and the Close) is stamped with for a kind: none for today's. */
|
|
145
|
+
export function menuButtonProps(kind: MenuButtonKind | undefined): Record<string, string> {
|
|
146
|
+
return kind && kind !== DEFAULT_MENU_LOOK.button ? { [MenuTrait.Button]: kind } : {};
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/** True when the form shows its own place only above the phone width (a card, a top panel, a mega panel — R-H10: on a
|
|
150
|
+
* phone each becomes the phone menu). A drawer and the full screen are the same at every width. */
|
|
151
|
+
export function menuFormSwitchesOnPhone(form: MenuForm): boolean {
|
|
152
|
+
return form === MenuForm.Panel || form === MenuForm.Card || form === MenuForm.Mega;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/** The width (CSS px) at and below which a card, panel or mega menu becomes its phone form — the shared CSS's
|
|
156
|
+
* `@media (max-width: 767px)` and the canvas's container query (Mobile landscape, the phone menu's default). */
|
|
157
|
+
export const MENU_PHONE_MAX_WIDTH = 767;
|