@repobit/dex-system-design 3.0.3 → 3.1.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/CHANGELOG.md +17 -0
- package/README.md +35 -0
- package/dist/src/components/agent-endpoints/agent-endpoints.d.ts +1 -0
- package/dist/src/components/agent-endpoints/agent-endpoints.js +12 -12
- package/dist/src/components/agent-endpoints/agent-endpoints.js.map +1 -1
- package/dist/src/components/anchor/anchor-nav.d.ts +2 -1
- package/dist/src/components/anchor/anchor-nav.js +10 -10
- package/dist/src/components/anchor/anchor-nav.js.map +1 -1
- package/dist/src/components/audience-card/audience-card.d.ts +1 -0
- package/dist/src/components/audience-card/audience-card.js +7 -7
- package/dist/src/components/audience-card/audience-card.js.map +1 -1
- package/dist/src/components/awards/awards-flex.d.ts +3 -2
- package/dist/src/components/awards/awards-flex.js +16 -16
- package/dist/src/components/awards/awards-flex.js.map +1 -1
- package/dist/src/components/awards/awards-spotlight.d.ts +2 -1
- package/dist/src/components/awards/awards-spotlight.js +8 -8
- package/dist/src/components/awards/awards-spotlight.js.map +1 -1
- package/dist/src/components/awards/awards.d.ts +1 -1
- package/dist/src/components/bento-grid/bento-grid.d.ts +1 -0
- package/dist/src/components/bento-grid/bento-grid.js +10 -10
- package/dist/src/components/bento-grid/bento-grid.js.map +1 -1
- package/dist/src/components/bento-grid/bento-item.d.ts +1 -0
- package/dist/src/components/bento-grid/bento-item.js +9 -9
- package/dist/src/components/bento-grid/bento-item.js.map +1 -1
- package/dist/src/components/button/button.d.ts +1 -1
- package/dist/src/components/cards/card.d.ts +2 -2
- package/dist/src/components/cards/card.js +11 -11
- package/dist/src/components/cards/card.js.map +1 -1
- package/dist/src/components/carousel/carousel.d.ts +2 -2
- package/dist/src/components/carousel/carousel.js +6 -6
- package/dist/src/components/carousel/carousel.js.map +1 -1
- package/dist/src/components/comparison-panel/comparison-panel.d.ts +1 -0
- package/dist/src/components/comparison-panel/comparison-panel.js +12 -12
- package/dist/src/components/comparison-panel/comparison-panel.js.map +1 -1
- package/dist/src/components/compatibility-table/compatibility-table.d.ts +1 -0
- package/dist/src/components/compatibility-table/compatibility-table.js +14 -14
- package/dist/src/components/compatibility-table/compatibility-table.js.map +1 -1
- package/dist/src/components/cta-banner/cta-banner.d.ts +1 -0
- package/dist/src/components/cta-banner/cta-banner.js +8 -8
- package/dist/src/components/cta-banner/cta-banner.js.map +1 -1
- package/dist/src/components/header/header-code.d.ts +3 -2
- package/dist/src/components/header/header-code.js +13 -13
- package/dist/src/components/header/header-code.js.map +1 -1
- package/dist/src/components/heading/heading.d.ts +1 -1
- package/dist/src/components/heading/heading.js +5 -1
- package/dist/src/components/heading/heading.js.map +1 -1
- package/dist/src/components/hero/hero.d.ts +2 -1
- package/dist/src/components/hero/hero.js +8 -8
- package/dist/src/components/hero/hero.js.map +1 -1
- package/dist/src/components/install-options/install-options.d.ts +3 -2
- package/dist/src/components/install-options/install-options.js +17 -17
- package/dist/src/components/install-options/install-options.js.map +1 -1
- package/dist/src/components/link/link.d.ts +1 -1
- package/dist/src/components/list/list-item/list-item.d.ts +1 -1
- package/dist/src/components/logo-marquee/logo-marquee.d.ts +1 -0
- package/dist/src/components/logo-marquee/logo-marquee.js +5 -5
- package/dist/src/components/logo-marquee/logo-marquee.js.map +1 -1
- package/dist/src/components/motion-art/motion-art.js +1 -1
- package/dist/src/components/motion-art/motion-art.js.map +1 -1
- package/dist/src/components/overview/overview.d.ts +1 -0
- package/dist/src/components/overview/overview.js +7 -7
- package/dist/src/components/overview/overview.js.map +1 -1
- package/dist/src/components/page-switcher/page-switcher.d.ts +1 -0
- package/dist/src/components/page-switcher/page-switcher.js +5 -5
- package/dist/src/components/page-switcher/page-switcher.js.map +1 -1
- package/dist/src/components/pagination-dots/pagination-dots.d.ts +1 -1
- package/dist/src/components/partner-banner/partner-banner.d.ts +1 -0
- package/dist/src/components/partner-banner/partner-banner.js +6 -6
- package/dist/src/components/partner-banner/partner-banner.js.map +1 -1
- package/dist/src/components/post-card/post-card.d.ts +1 -0
- package/dist/src/components/post-card/post-card.js +5 -5
- package/dist/src/components/post-card/post-card.js.map +1 -1
- package/dist/src/components/process-steps/process-steps.d.ts +1 -0
- package/dist/src/components/process-steps/process-steps.js +7 -7
- package/dist/src/components/process-steps/process-steps.js.map +1 -1
- package/dist/src/components/quick-answer/quick-answer.d.ts +1 -0
- package/dist/src/components/quick-answer/quick-answer.js +7 -7
- package/dist/src/components/quick-answer/quick-answer.js.map +1 -1
- package/dist/src/components/review/review-grid.d.ts +1 -0
- package/dist/src/components/review/review-grid.js +3 -3
- package/dist/src/components/review/review-grid.js.map +1 -1
- package/dist/src/components/review/review.d.ts +1 -0
- package/dist/src/components/review/review.js +2 -2
- package/dist/src/components/review/review.js.map +1 -1
- package/dist/src/components/section-header/section-header.d.ts +1 -0
- package/dist/src/components/section-header/section-header.js +3 -3
- package/dist/src/components/section-header/section-header.js.map +1 -1
- package/dist/src/components/shared/controller.observer.d.ts +50 -0
- package/dist/src/components/shared/controller.observer.js +2 -0
- package/dist/src/components/shared/controller.observer.js.map +1 -0
- package/dist/src/components/spotlight-section/spotlight-section.d.ts +1 -0
- package/dist/src/components/spotlight-section/spotlight-section.js +7 -7
- package/dist/src/components/spotlight-section/spotlight-section.js.map +1 -1
- package/dist/src/components/stat/stat-highlight.d.ts +5 -5
- package/dist/src/components/stat/stat-highlight.js +2 -2
- package/dist/src/components/stat/stat-highlight.js.map +1 -1
- package/dist/src/components/stat/stat-tile.d.ts +1 -0
- package/dist/src/components/stat/stat-tile.js +5 -5
- package/dist/src/components/stat/stat-tile.js.map +1 -1
- package/dist/src/components/terminal/terminal-cursor.d.ts +1 -0
- package/dist/src/components/terminal/terminal-cursor.js +1 -1
- package/dist/src/components/terminal/terminal-cursor.js.map +1 -1
- package/dist/src/components/terminal/terminal-message.d.ts +4 -3
- package/dist/src/components/terminal/terminal-message.js +25 -25
- package/dist/src/components/terminal/terminal-message.js.map +1 -1
- package/dist/src/components/tooltip/tooltip.js +1 -1
- package/dist/src/components/tooltip/tooltip.js.map +1 -1
- package/dist/src/components/trust-panel/trust-panel.d.ts +1 -0
- package/dist/src/components/trust-panel/trust-panel.js +19 -19
- package/dist/src/components/trust-panel/trust-panel.js.map +1 -1
- package/dist/src/loader/create-loader.d.ts +13 -0
- package/dist/src/loader/create-loader.js +2 -0
- package/dist/src/loader/create-loader.js.map +1 -0
- package/dist/src/loader/loader.d.ts +44 -0
- package/dist/src/loader/loader.js +2 -0
- package/dist/src/loader/loader.js.map +1 -0
- package/dist/src/loader/registry.d.ts +2 -0
- package/dist/src/loader/registry.js +2 -0
- package/dist/src/loader/registry.js.map +1 -0
- package/dist/src/tokens/tokens.js +1 -1
- package/dist/src/tokens/tokens.js.map +1 -1
- package/package.json +12 -4
- package/schemas/component-manifest.json +1 -1
- package/dist/src/tokens/dark-derivation.d.ts +0 -70
- package/dist/src/tokens/dark-derivation.js +0 -2
- package/dist/src/tokens/dark-derivation.js.map +0 -1
- package/dist/src/tokens/dark-findings.d.ts +0 -59
- package/dist/src/tokens/dark-findings.js +0 -2
- package/dist/src/tokens/dark-findings.js.map +0 -1
- package/dist/src/tokens/story-chrome.d.ts +0 -72
- package/dist/src/tokens/story-chrome.js +0 -292
- package/dist/src/tokens/story-chrome.js.map +0 -1
- package/dist/src/tokens/token-map.d.ts +0 -114
- package/dist/src/tokens/token-map.js +0 -2
- package/dist/src/tokens/token-map.js.map +0 -1
- package/dist/src/tokens/token-purposes.d.ts +0 -63
- package/dist/src/tokens/token-purposes.js +0 -2
- package/dist/src/tokens/token-purposes.js.map +0 -1
- package/dist/src/tokens/type-ceiling-words.d.ts +0 -96
- package/dist/src/tokens/type-ceiling-words.js +0 -2
- package/dist/src/tokens/type-ceiling-words.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"token-purposes.js","names":["SURFACES","BORDERS","CARD_EDGES","TEXT","ACTION","STATUS_SLOTS","\"text\"","\"surface\"","\"border\"","\"accent\"","\"fill\"","STATUS_TONES","OTHER","purposeOf","row","r","token","status","tone","slot","other","o"],"sources":["../../../src/tokens/token-purposes.ts"],"sourcesContent":["/**\n * What each semantic token is FOR, in one place.\n *\n * Roles are described by the job they do, not by the colour they currently\n * resolve to. The swatch on a docs page is there to recognise one on screen;\n * it is never the reason to choose one.\n *\n * Two readers: Foundations/Surfaces renders SURFACES and BORDERS, and\n * scripts/figma-variable-descriptions.mjs turns every entry here into the\n * description a designer sees in Figma's variable picker. Writing the\n * sentence once is the point -- a second hand-kept copy in Figma is how a\n * library goes on describing a role code has changed.\n *\n * Not a story file: Storybook only globs *.stories.js. Pure data, so it\n * imports under Node.\n */\n\nexport const SURFACES = [\n {\n token : '--color-surface-default',\n purpose : 'The page, canvas or component ground. The thing other things sit on.',\n use : 'The base of a page, a section, or a component that is not itself a distinct object.',\n avoid : 'A card or tile that needs to read as its own object — that is surface-container.',\n relation: 'The reference point. Every other surface is described by how far it sits from this one.',\n example : 'Page background, modal body, the ground inside a section wrapper.',\n theme : 'Whatever the page ground is in the active theme. On dark it is the dark ground, not white.'\n },\n {\n token : '--color-surface-container',\n purpose : 'The ground a self-contained content object sits on, one step off the page, so it reads as its own object without needing a border or a shadow. The step is real but faint: Foundations/Surfaces, A card\\'s ground and its edge.',\n use : 'A card, tile, panel or bounded section that should read as a distinct object on the page.',\n avoid : 'The page itself (surface-default); a low-emphasis grouping wash (surface-subtle); a disabled or pressed state (surface-muted); anything on dark (surface-inverse); brand or status meaning.',\n relation: 'One step from default, and closer to it than subtle is. Container is the ground of an object; subtle is a wash behind a group.',\n example : 'Card and tile surfaces, feature panels, quote cards.',\n theme : 'Adjacent to but distinguishable from surface-default. On dark that means one step lighter than the page, not a fixed grey.'\n },\n {\n token : '--color-surface-subtle',\n purpose : 'A low-emphasis background that groups content without making it an object.',\n use : 'A band or wash behind several things that already belong together.',\n avoid : 'The ground of a single self-contained object — that is container.',\n relation: 'Further from default than container. Recedes rather than stands out.',\n example : 'A grouping band behind a row of items.',\n theme : 'A recessive wash relative to the page ground.'\n },\n {\n token : '--color-surface-muted',\n purpose : 'A state surface: the thing is present but not currently active.',\n use : 'Pressed, inactive or de-emphasised states.',\n avoid : 'Resting surfaces. If nothing is in a state, this is the wrong family.',\n relation: 'Shares its value with surface-disabled today; the meanings differ, so do not treat them as interchangeable.',\n example : 'A pressed toggle track, a de-emphasised row.',\n theme : 'A state step away from the surface it applies to.'\n },\n {\n token : '--color-surface-disabled',\n purpose : 'The surface of a control that cannot currently be used.',\n use : 'Disabled controls only.',\n avoid : 'Anything a user can still operate.',\n relation: 'Same value as muted today, different meaning. Disabled is exempt from contrast minimums; muted is not.',\n example : 'A disabled input or button ground.',\n theme : 'Reads as unavailable in the active theme.'\n },\n {\n token : '--color-surface-pressed',\n purpose : 'The ground of a control while it is held down, when surface-muted is already its hover.',\n use : 'The pressed state of a control whose hover is surface-muted.',\n avoid : 'A resting or hovered ground; a pressed action fill, which is the action ramp.',\n relation: 'One step further from the page than muted, the way a press follows a hover.',\n example : 'bd-back while pressed.',\n theme : 'A state step past muted in the active theme. On dark, lighter than muted, not darker.'\n },\n {\n token : '--color-surface-inverse',\n purpose : 'A ground that flips the text polarity: content on it uses the inverse text roles.',\n use : 'Dark panels inside a light page, tooltips, inverted sections.',\n avoid : 'Ordinary surfaces. Choosing this changes which text roles are legible.',\n relation: 'Not a step on the default-container-subtle ladder; it is the other side of it.',\n example : 'Tooltip body. Not a video or terminal frame: those stay dark in every theme, and read surface-media.',\n theme : 'Inverts with the theme: on a dark theme this is the light ground.'\n },\n {\n token : '--color-surface-media',\n purpose : 'The frame around media: a video letterbox, a terminal panel. Dark in every theme.',\n use : 'A ground that must stay dark because what it frames is dark. Its ink is text-on-media.',\n avoid : 'A dark panel that should flip with the theme, such as a tooltip: that is surface-inverse.',\n relation: 'Same value as surface-inverse in light; the two part ways in a dark theme, where inverse turns light and media does not.',\n example : 'bd-video-player and bd-video letterboxes, the bd-terminal-message panel.',\n theme : 'Fixed: the same near-black in every theme.'\n },\n {\n token : '--color-surface-brand',\n purpose : 'A surface whose job is to carry brand identity.',\n use : 'Large brand areas, such as a footer masthead band.',\n avoid : 'Anything blue that is not making a brand statement. An indicator, a badge, a selected row and a switch track are all blue and none of them are brand surfaces.',\n relation: 'A meaning, not a colour. Matching the brand primitive by eye is not evidence.',\n example : 'The coloured band at the top of the footer.',\n theme : 'Follows the brand, not the neutral ramp.'\n },\n {\n token : '--color-surface-info',\n purpose : 'The tint an informational message sits on.',\n use : 'Informational banners and callouts.',\n avoid : 'Decorative blue backgrounds with no message semantics.',\n relation: 'One of the four status tints, each paired with a matching text role.',\n example : 'An informational banner ground.',\n theme : 'A readable informational tint against its paired text role.'\n },\n {\n token : '--color-surface-success',\n purpose : 'The tint a success message sits on.',\n use : 'Confirmation and success states.',\n avoid : 'Decorative green.',\n relation: 'Paired with the matching success text role; the pair is measured together.',\n example : 'A success banner ground.',\n theme : 'A readable success tint against its paired text role.'\n },\n {\n token : '--color-surface-warning',\n purpose : 'The tint a warning message sits on.',\n use : 'Cautionary states.',\n avoid : 'Decorative yellow.',\n relation: 'Paired with the matching warning text role.',\n example : 'A warning banner ground.',\n theme : 'A readable warning tint against its paired text role.'\n },\n {\n token : '--color-surface-error',\n purpose : 'The tint an error message sits on.',\n use : 'Error and destructive-outcome states.',\n avoid : 'Decorative red.',\n relation: 'Paired with the matching error text role.',\n example : 'An error banner ground.',\n theme : 'A readable error tint against its paired text role.'\n }\n];\n\nexport const BORDERS = [\n {\n token : '--color-border-subtle',\n purpose: 'A decorative hairline between things that already belong together.',\n use : 'Separating rows or cells inside one object.',\n avoid : 'The edge of anything actionable. It sits below the 3:1 that WCAG 1.4.11 asks of a UI component, on purpose.'\n },\n {\n token : '--color-border-default',\n purpose: 'The boundary of an object or control.',\n use : 'Inputs, bounded controls, the edge of a component.',\n avoid : 'Content separation inside a component — that is a divider job.'\n },\n {\n token : '--color-border-strong',\n purpose: 'A boundary that has to assert itself.',\n use : 'High-emphasis edges.',\n avoid : 'Ordinary component edges, which would flatten the emphasis.'\n },\n {\n token : '--color-border-brand',\n purpose: 'A boundary carrying brand emphasis.',\n use : 'Brand-emphasised edges.',\n avoid : 'Focus. Focus has its own tokens and must not be expressed as a border role.'\n },\n {\n token : '--color-border-disabled',\n purpose: 'The edge of a control that cannot be used.',\n use : 'Disabled controls.',\n avoid : 'Anything operable.'\n }\n];\n\n/* The two border roles the Surfaces table does not list, worded from\n CLAUDE.md's \"A card's ground and its edge\". */\nexport const CARD_EDGES = [\n {\n token : '--color-border-container',\n purpose: 'The edge of a card that sits on a tinted section.',\n use : 'A card on a tinted band, paired with surface-default as its ground.',\n avoid : 'A card on the page ground: there the surface-container step is the separation and an edge is redundant. On a surface-muted band this edge is the same colour as the band and disappears.'\n },\n {\n token : '--color-border-container-inverse',\n purpose: 'The edge of a container that sits on an inverse surface.',\n use : 'Bounding an object on a dark ground.',\n avoid : 'Light surfaces.'\n }\n];\n\n/* Text. Hierarchy and state, from Foundations/Color/Responsibilities. */\nexport const TEXT = [\n { token: '--color-text-primary', purpose: 'Default ink on a light surface: headings and body copy.', avoid: 'Inverse surfaces, where text-inverse takes over.' },\n { token: '--color-text-secondary', purpose: 'Supporting copy under a title.', avoid: 'A disabled control: disabled is a state, not a quieter step.' },\n { token: '--color-text-muted', purpose: 'Metadata, captions and timestamps.', avoid: 'A disabled control: disabled is a state, not a quieter step.' },\n { token: '--color-text-subtle', purpose: 'The quietest readable step of the hierarchy, on the page or a card.', avoid: 'A band (surface-subtle, surface-muted) or a status tint: use text-muted there, because subtle cannot clear 4.5:1 on them. A disabled control: disabled is a state, not a quieter step.' },\n { token: '--color-text-disabled', purpose: 'STATE: text on a control the user cannot operate. Exempt from contrast minimums only because it is disabled.', avoid: 'Quiet content that is still usable. Loading is not disabled.' },\n { token: '--color-text-inverse', purpose: 'High-emphasis text on an inverse surface.', avoid: 'Light surfaces.' },\n { token: '--color-text-muted-inverse', purpose: 'Everything subordinate on an inverse surface. The light-side secondary, muted and subtle roles fail contrast there.', avoid: 'Light surfaces.' },\n { token: '--color-text-on-media', purpose: 'Ink on surface-media: a video control glyph, a terminal\\'s command lines. White in every theme, fixed with its ground.', avoid: 'Text on an inverse surface (text-inverse), which flips in a dark theme.' },\n { token: '--color-text-on-media-muted', purpose: 'The quieter ink on surface-media, such as a terminal\\'s subdued lines.', avoid: 'Subordinate text on an inverse surface: that is text-muted-inverse, which flips.' },\n { token: '--color-text-brand', purpose: 'Brand-coloured ink, such as a link at rest. One step darker than action-primary, because blue-500 fails on any tint.', avoid: 'The fill of an interactive element at a state: that is the action ramp.' },\n { token: '--color-text-brand-hover', purpose: 'Brand text under the pointer: a hovered link or citation reference.', avoid: 'A button fill. It used to be --color-action-primary-active, and a fill and a text colour part ways in a dark theme.' },\n { token: '--color-text-success', purpose: 'Success text, paired with surface-success. Offered as color=\"success\" on bd-h and bd-p.', avoid: 'Feedback inside a component (a badge, tag or alert): that is status-success-text.' },\n { token: '--color-text-warning', purpose: 'Warning text, paired with surface-warning. Offered as color=\"warning\" on bd-h and bd-p.', avoid: 'Feedback inside a component: that is status-warning-text.' },\n { token: '--color-text-error', purpose: 'Error text, paired with surface-error.', avoid: 'Feedback inside a component: that is status-error-text.' }\n];\n\n/* Actions: a state ramp, not a colour. Let the state pick the token. */\nexport const ACTION = [\n { token: '--color-action-primary', purpose: 'The fill of a primary interactive element at rest.', avoid: 'Brand identity. Action and brand share a value at this step and diverge after it.' },\n { token: '--color-action-primary-hover', purpose: 'The same element, hovered.', avoid: 'Any blue that is not a hover state. There is no hover-blue role.' },\n { token: '--color-action-primary-active', purpose: 'The same element, pressed.', avoid: 'A selected or current item: that is an indicator.' },\n { token: '--color-action-accent', purpose: 'The fill of a conversion action at rest.', avoid: 'Errors and destructive outcomes, which are status-error.' },\n { token: '--color-action-accent-hover', purpose: 'The conversion action, hovered.', avoid: 'Anything that is not a hover state.' },\n { token: '--color-action-accent-active', purpose: 'The conversion action, pressed.', avoid: 'Anything that is not a pressed state.' },\n { token: '--color-action-secondary', purpose: 'The neutral action fill: a secondary button at rest, and a ghost button while pressed.', avoid: 'A dark ground for content (surface-inverse), or near-black ink (text-primary). Matching neutral-950 by value is not evidence.' },\n { token: '--color-action-secondary-hover', purpose: 'The neutral action, hovered.', avoid: 'Anything that is not a hover state.' },\n { token: '--color-action-secondary-active', purpose: 'The neutral action, pressed.', avoid: 'Anything that is not a pressed state.' },\n { token: '--color-action-on-fill', purpose: 'Ink on an action fill: a button label, a checkmark, a radio dot, a switch thumb. White in every theme.', avoid: 'Text on an inverse surface (text-inverse) or the page colour (surface-default): both happen to be white here, and both flip in a dark theme.' }\n];\n\n/* Status: feedback state, owned by bd-badge, bd-tag and bd-alert. One slot\n per weight of a tone, from the comment above the block in tokens.ts. */\nexport const STATUS_SLOTS: Record<string, string> = {\n 'text' : 'ink on a tinted chip (badge shade, tag)',\n 'surface' : 'the light tint (tag, alert). A tag sits here so its border reads',\n 'surface-strong': 'the heavier tint a borderless badge sits on, so a badge and a tag of one tone read apart',\n 'border' : 'the hairline around a tag',\n 'accent' : 'the saturated step (badge dot, alert rule)',\n 'fill' : 'a saturated chip (badge fill)',\n 'on-fill' : 'the ink on that saturated chip'\n};\nexport const STATUS_TONES: Record<string, { label: string; note: string }> = {\n neutral: { label: 'Neutral', note: '' },\n brand : { label: 'Brand', note: 'Brand has no surface-strong: it would be info\\'s blue-100, and a brand badge would read as info. Brand and info differ only in accent, so never choose between them by colour.' },\n info : { label: 'Info', note: 'Info and brand differ only in accent, so never choose between them by colour.' },\n success: { label: 'Success', note: '' },\n warning: { label: 'Warning', note: '' },\n error : { label: 'Error', note: '' }\n};\n\n/* The rest of the semantic set Figma carries. */\nexport const OTHER = [\n { prefix: '--icon-', purpose: 'The size of an icon glyph, from the scale every icon is sized from. Size only: an icon takes its colour from the text around it.' },\n { prefix: '--grid-container-max-', purpose: 'The page column\\'s maximum width at this breakpoint. A section never declares its own width; it composes the ensemble column.' },\n { prefix: '--grid-padding-', purpose: 'The page column\\'s gutter at the viewport edge, at this breakpoint. The column is the viewport minus twice this.' },\n { prefix: '--grid-gutter-', purpose: 'The space between grid columns at this breakpoint.' },\n { prefix: '--grid-columns', purpose: 'The number of columns in the page grid.' },\n { prefix: '--touch-target-size', purpose: 'The minimum comfortable hit area for a control (WCAG 2.5.8).' },\n { prefix: '--touch-target-spacing', purpose: 'The minimum space between two touch targets.' },\n { prefix: '--content-width-readable', purpose: 'A comfortable reading measure for running text.' },\n { prefix: '--content-width-max', purpose: 'The widest a content region may grow.' },\n { prefix: '--transition-duration-', purpose: 'A motion duration step. Anything animated must respect prefers-reduced-motion.' }\n];\n\nexport type TokenPurpose = { purpose: string; use?: string; avoid?: string };\n\n/** { purpose, use?, avoid? } for a token, or null when nothing is written. */\nexport function purposeOf(token: string): TokenPurpose | null {\n const row: TokenPurpose | undefined = [...SURFACES, ...BORDERS, ...CARD_EDGES, ...TEXT, ...ACTION].find(r => r.token === token);\n if (row) return { purpose: row.purpose, use: row.use, avoid: row.avoid };\n const status = token.match(/^--status-([a-z]+)-(.+)$/);\n if (status && STATUS_TONES[status[1]] && STATUS_SLOTS[status[2]]) {\n const tone = STATUS_TONES[status[1]];\n const slot = STATUS_SLOTS[status[2]];\n return { purpose: `${tone.label} feedback: ${slot}.${tone.note ? ` ${tone.note}` : ''}`, avoid: 'Decoration. A status role means state; a colour that carries no message belongs to the general --color-* family.' };\n }\n const other = OTHER.find(o => token.startsWith(o.prefix));\n return other ? { purpose: other.purpose } : null;\n}\n"],"mappings":"AAiBA,IAAaA,EAAW,CACtB,CACE,MAAU,0BACV,QAAU,uEACV,IAAU,sFACV,MAAU,mFACV,SAAU,0FACV,QAAU,oEACV,MAAU,4FACZ,EACA,CACE,MAAU,4BACV,QAAU,iOACV,IAAU,4FACV,MAAU,8LACV,SAAU,iIACV,QAAU,uDACV,MAAU,4HACZ,EACA,CACE,MAAU,yBACV,QAAU,6EACV,IAAU,qEACV,MAAU,oEACV,SAAU,uEACV,QAAU,yCACV,MAAU,+CACZ,EACA,CACE,MAAU,wBACV,QAAU,kEACV,IAAU,6CACV,MAAU,wEACV,SAAU,8GACV,QAAU,+CACV,MAAU,mDACZ,EACA,CACE,MAAU,2BACV,QAAU,0DACV,IAAU,0BACV,MAAU,qCACV,SAAU,yGACV,QAAU,qCACV,MAAU,2CACZ,EACA,CACE,MAAU,0BACV,QAAU,0FACV,IAAU,+DACV,MAAU,gFACV,SAAU,8EACV,QAAU,yBACV,MAAU,uFACZ,EACA,CACE,MAAU,0BACV,QAAU,oFACV,IAAU,gEACV,MAAU,yEACV,SAAU,iFACV,QAAU,uGACV,MAAU,mEACZ,EACA,CACE,MAAU,wBACV,QAAU,oFACV,IAAU,yFACV,MAAU,4FACV,SAAU,2HACV,QAAU,2EACV,MAAU,4CACZ,EACA,CACE,MAAU,wBACV,QAAU,kDACV,IAAU,qDACV,MAAU,iKACV,SAAU,gFACV,QAAU,8CACV,MAAU,0CACZ,EACA,CACE,MAAU,uBACV,QAAU,6CACV,IAAU,sCACV,MAAU,yDACV,SAAU,uEACV,QAAU,kCACV,MAAU,6DACZ,EACA,CACE,MAAU,0BACV,QAAU,sCACV,IAAU,mCACV,MAAU,oBACV,SAAU,6EACV,QAAU,2BACV,MAAU,uDACZ,EACA,CACE,MAAU,0BACV,QAAU,sCACV,IAAU,qBACV,MAAU,qBACV,SAAU,8CACV,QAAU,2BACV,MAAU,uDACZ,EACA,CACE,MAAU,wBACV,QAAU,qCACV,IAAU,wCACV,MAAU,kBACV,SAAU,4CACV,QAAU,0BACV,MAAU,qDACZ,CACF,EAEaC,EAAU,CACrB,CACE,MAAS,wBACT,QAAS,qEACT,IAAS,8CACT,MAAS,6GACX,EACA,CACE,MAAS,yBACT,QAAS,wCACT,IAAS,qDACT,MAAS,gEACX,EACA,CACE,MAAS,wBACT,QAAS,wCACT,IAAS,uBACT,MAAS,6DACX,EACA,CACE,MAAS,uBACT,QAAS,sCACT,IAAS,0BACT,MAAS,6EACX,EACA,CACE,MAAS,0BACT,QAAS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d,EAAU,GAAGC,EAAS,GAAGC,EAAY,GAAGC,EAAM,GAAGC,CAAM,CAAC,CAAC,KAAK,GAAKW,EAAE,QAAUC,CAAK,EAC9H,GAAIF,EAAK,MAAO,CAAE,QAASA,EAAI,QAAS,IAAKA,EAAI,IAAK,MAAOA,EAAI,KAAM,EACvE,IAAMG,EAASD,EAAM,MAAM,0BAA0B,EACrD,GAAIC,GAAUN,EAAaM,EAAO,KAAOZ,EAAaY,EAAO,IAAK,CAChE,IAAMC,EAAOP,EAAaM,EAAO,IAC3BE,EAAOd,EAAaY,EAAO,IACjC,MAAO,CAAE,QAAS,GAAGC,EAAK,MAAM,aAAaC,EAAK,GAAGD,EAAK,KAAO,IAAIA,EAAK,OAAS,KAAM,MAAO,kHAAmH,CACrN,CACA,IAAME,EAAQR,EAAM,KAAK,GAAKI,EAAM,WAAWK,EAAE,MAAM,CAAC,EACxD,OAAOD,EAAQ,CAAE,QAASA,EAAM,OAAQ,EAAI,IAC9C,C"}
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The word sample the type ceilings are measured against.
|
|
3
|
-
*
|
|
4
|
-
* WHY WORDS AND NOT STRINGS. For large type the binding constraint is the
|
|
5
|
-
* longest UNBREAKABLE WORD, not the length of the sentence -- a word wider
|
|
6
|
-
* than its column overflows or hyphenates, and neither is a size anyone chose.
|
|
7
|
-
* So this file holds words.
|
|
8
|
-
*
|
|
9
|
-
* NOTHING HERE CARRIES A MEASURED WIDTH. Foundations/Typography -> Why These
|
|
10
|
-
* Sizes measures every entry live in the browser, because a width measured
|
|
11
|
-
* once and written down is a width that goes stale -- and the browser and the
|
|
12
|
-
* Figma file already disagree by about 3.5% on the same word.
|
|
13
|
-
*
|
|
14
|
-
* WHERE THESE WORDS COME FROM, as of 2026-09-17: shipped copy. Every entry
|
|
15
|
-
* marked `production` was harvested from a live localized bitdefender.com
|
|
16
|
-
* page, and carries the page it came from and the size that page renders it
|
|
17
|
-
* at. The `representative` compounds this file started with are gone -- they
|
|
18
|
-
* indicated an order of magnitude and were the reason the ladder could only
|
|
19
|
-
* ever be provisional. See `harvest` below for the method.
|
|
20
|
-
*
|
|
21
|
-
* A JS module rather than the JSON registry it started as: the story needs it
|
|
22
|
-
* at build time, and a bare JSON import needs an import attribute under Node,
|
|
23
|
-
* which would break the per-file parse check without breaking the Vite build.
|
|
24
|
-
* One source, no attributes.
|
|
25
|
-
*/
|
|
26
|
-
export declare const ceilingWords: {
|
|
27
|
-
about: string;
|
|
28
|
-
howToUpdate: string;
|
|
29
|
-
sourceVocabulary: {
|
|
30
|
-
production: string;
|
|
31
|
-
tm: string;
|
|
32
|
-
representative: string;
|
|
33
|
-
outlier: string;
|
|
34
|
-
};
|
|
35
|
-
tiers: {
|
|
36
|
-
note: string;
|
|
37
|
-
headline: string;
|
|
38
|
-
feature: string;
|
|
39
|
-
};
|
|
40
|
-
shippingLanguages: {
|
|
41
|
-
source: string;
|
|
42
|
-
languages: string[];
|
|
43
|
-
note: string;
|
|
44
|
-
};
|
|
45
|
-
wrappingCaveats: {
|
|
46
|
-
zh: string;
|
|
47
|
-
ja: string;
|
|
48
|
-
};
|
|
49
|
-
harvest: {
|
|
50
|
-
date: string;
|
|
51
|
-
method: string;
|
|
52
|
-
pages: string[];
|
|
53
|
-
locales: string[];
|
|
54
|
-
whyNotCharacterCount: string;
|
|
55
|
-
caveat: string;
|
|
56
|
-
};
|
|
57
|
-
words: ({
|
|
58
|
-
lang: string;
|
|
59
|
-
word: string;
|
|
60
|
-
source: string;
|
|
61
|
-
page: string;
|
|
62
|
-
observedAt: number;
|
|
63
|
-
note?: undefined;
|
|
64
|
-
retired?: undefined;
|
|
65
|
-
} | {
|
|
66
|
-
lang: string;
|
|
67
|
-
word: string;
|
|
68
|
-
source: string;
|
|
69
|
-
page: string;
|
|
70
|
-
observedAt: number;
|
|
71
|
-
note: string;
|
|
72
|
-
retired?: undefined;
|
|
73
|
-
} | {
|
|
74
|
-
lang: string;
|
|
75
|
-
word: string;
|
|
76
|
-
source: string;
|
|
77
|
-
retired: string;
|
|
78
|
-
page?: undefined;
|
|
79
|
-
observedAt?: undefined;
|
|
80
|
-
note?: undefined;
|
|
81
|
-
})[];
|
|
82
|
-
missing: {
|
|
83
|
-
note: string;
|
|
84
|
-
hungarian: string;
|
|
85
|
-
notApplicable: string[];
|
|
86
|
-
};
|
|
87
|
-
};
|
|
88
|
-
/** Live-sampled languages -- everything not marked `retired`. */
|
|
89
|
-
export declare const sampledLanguages: string[];
|
|
90
|
-
/** Shipping languages with no live sample, minus the two that wrap per character. */
|
|
91
|
-
export declare const unsampledLanguages: string[];
|
|
92
|
-
/** The tier a word's copy belongs to; see `ceilingWords.tiers`. */
|
|
93
|
-
export declare const tierOf: (word: {
|
|
94
|
-
observedAt: number;
|
|
95
|
-
}) => "headline" | "feature";
|
|
96
|
-
export default ceilingWords;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var e={about:`The word sample the type ceilings are measured against. For large type the binding constraint is the longest UNBREAKABLE WORD, not the length of the sentence, so this file holds words rather than strings. Foundations/Typography -> Why These Sizes reads it and measures every entry live in the browser; nothing here carries a measured width, because a width measured once and written down is a width that goes stale.`,howToUpdate:"The ask that stood here -- one longest unbreakable token per language from the translation memory -- was answered another way, by harvesting the rendered copy instead of the TM that produced it. To re-run it, follow `harvest` below: it is one script against nine locale URLs and takes minutes. Re-run it when the marketing copy is rewritten, when a language is added to localeMap.ts, or before changing any fontSizeMin token.",sourceVocabulary:{production:"Harvested from a live localized bitdefender.com page: a token that really renders at 24px or larger in that market's copy. Carries `page` and `observedAt`. Stronger evidence than a TM extract, because it is what actually renders rather than a string that might.",tm:"A string from the translation memory. None left -- `production` superseded the ask. Kept in the vocabulary because a TM entry would still be valid evidence for copy that has not shipped yet.",representative:`A plausible compound written for the study. NONE REMAIN: every one was replaced on 2026-09-17 by a production token in the same language. Kept in the vocabulary so a future gap can be filled honestly rather than silently.`,outlier:`Deliberately extreme, kept to show the shape of the failure rather than to set a ceiling. Excluded from the worst case the ladder is calibrated against.`},tiers:{note:`Two tiers, because the question is not only how wide the longest token is but whether it can land in the role that would break. The size a token renders at on bitdefender.com is not our role -- their site, their scale -- but it does classify the COPY: a word set at 40px+ there is headline copy, a word set at 24-32px is feature or subhead copy.`,headline:`observedAt >= 40. Copy that plays the part heading-h1 plays. This is the tier the h1 mobile size has to survive.`,feature:`observedAt 24-39. Subheads and feature lists. On a phone this copy lands in h3 and below, where the ladder has room -- but it is included in the all-tier worst case, because nothing stops a writer from promoting one of these words into a headline.`},shippingLanguages:{source:`Derived from src/components/footer/localeMap.ts, the only locale list in this monorepo. It is the footer's country selector, so treat it as the best available evidence rather than a declared locale contract.`,languages:[`en`,`es`,`de`,`nl`,`fr`,`pt`,`zh`,`it`,`ro`,`sv`,`ja`],note:"46 locales, 11 languages. Two languages are deliberately absent. Finnish: there is no fi-FI locale at all -- see the `retired` note on the fi entries below. Hungarian: Hungary is served in ENGLISH, at /en-hu/, so the locale is en-HU and Hungarian is not a language this product sells in. That was established 2026-09-17 after the footer was found pointing at /hu-hu/, which 404s; the footer says en-HU now and all 46 roots resolve."},wrappingCaveats:{zh:`Chinese wraps between characters, so the longest-word constraint barely applies. The relevant question there is characters per line at ~1em per glyph, which this study does not model.`,ja:`Same as zh, with kinsoku line-breaking rules on top. Not modelled.`},harvest:{date:`2026-09-17`,method:`In a browser on each locale URL below: walk every element, keep the ones whose computed font-size is >= 24px and are not hidden, take their direct text nodes, split on whitespace AND on hyphen, slash, en/em dash and punctuation -- all of them are line-break opportunities, so a hyphenated compound is not one unbreakable token -- strip anything that is not a letter or digit, and keep tokens of 9 characters or more with the largest size each was seen at. Then measure each candidate in IBM Plex Sans 700 at 100px in this package's own token scope and rank by width, not by character count.`,pages:[`https://www.bitdefender.com/<locale>/consumer/total-security`,`https://www.bitdefender.com/<locale>/consumer/ultimate-security`],locales:[`en-us`,`nl-nl`,`de-de`,`sv-se`,`ro-ro`,`fr-fr`,`it-it`,`es-es`,`pt-pt`],whyNotCharacterCount:"Character count is a prefilter, not the measurement. Plex is proportional: Romanian `Confidentialitate` and Dutch `Gepersonaliseerde` are both 17 characters and differ by 12% in width, and a 15-character Swedish compound outruns a 17-character Romanian one.",caveat:`These are marketing pages rendered by bitdefender.com's own design system, not by this package. The TOKEN TEXT is the evidence; the size it renders at there is used only to classify the copy into the two tiers above.`},words:[{lang:`en`,word:`Recommended`,source:`production`,page:`en-us/consumer/total-security`,observedAt:40},{lang:`en`,word:`Personalized`,source:`production`,page:`en-us/consumer/total-security`,observedAt:24},{lang:`en`,word:`Performance`,source:`production`,page:`en-us/consumer/total-security`,observedAt:32},{lang:`sv`,word:`kalenderinbjudningar`,source:`production`,page:`sv-se/consumer/ultimate-security`,observedAt:24,note:"The widest token in the whole sample. Swedish was in `alsoMissing` as a low-priority gap; it turned out to set the worst case."},{lang:`sv`,word:`bedrägeriaviseringar`,source:`production`,page:`sv-se/consumer/ultimate-security`,observedAt:24},{lang:`sv`,word:`Rekommenderas`,source:`production`,page:`sv-se/consumer/total-security`,observedAt:40,note:`Swedish's widest HEADLINE-tier token, which is the one h1 has to survive.`},{lang:`nl`,word:`oplichtingsmeldingen`,source:`production`,page:`nl-nl/consumer/ultimate-security`,observedAt:24},{lang:`nl`,word:`oplichtingspatronen`,source:`production`,page:`nl-nl/consumer/ultimate-security`,observedAt:24},{lang:`nl`,word:`Gepersonaliseerde`,source:`production`,page:`nl-nl/consumer/total-security`,observedAt:24},{lang:`nl`,word:`Aanbevolen`,source:`production`,page:`nl-nl/consumer/total-security`,observedAt:40,note:"Dutch's widest headline-tier token -- and narrower than English `Recommended`, which is the same word doing the same job. Compounding does not reach the headline here."},{lang:`de`,word:`Kalendereinladungen`,source:`production`,page:`de-de/consumer/ultimate-security`,observedAt:24},{lang:`de`,word:`Kalenderereignissen`,source:`production`,page:`de-de/consumer/ultimate-security`,observedAt:24},{lang:`de`,word:`Benachrichtigungen`,source:`production`,page:`de-de/consumer/ultimate-security`,observedAt:24},{lang:`de`,word:`Gründungsmitglied`,source:`production`,page:`de-de/consumer/ultimate-security`,observedAt:44,note:`The widest headline-tier token in the sample, in any language, and therefore the word the h1 mobile size is really calibrated against.`},{lang:`ro`,word:`Confidențialitate`,source:`production`,page:`ro-ro/consumer/total-security`,observedAt:32,note:"Was in this file as a `representative` compound and turned out to be real copy, at 32px."},{lang:`ro`,word:`abonamentele`,source:`production`,page:`ro-ro/consumer/ultimate-security`,observedAt:40},{lang:`fr`,word:`Confidentialité`,source:`production`,page:`fr-fr/consumer/total-security`,observedAt:32},{lang:`fr`,word:`performances`,source:`production`,page:`fr-fr/consumer/total-security`,observedAt:40},{lang:`it`,word:`personalizzata`,source:`production`,page:`it-it/consumer/total-security`,observedAt:32},{lang:`it`,word:`disposizione`,source:`production`,page:`it-it/consumer/total-security`,observedAt:40},{lang:`es`,word:`tranquilamente`,source:`production`,page:`es-es/consumer/total-security`,observedAt:32},{lang:`es`,word:`Recomendado`,source:`production`,page:`es-es/consumer/total-security`,observedAt:40},{lang:`pt`,word:`independência`,source:`production`,page:`pt-pt/consumer/total-security`,observedAt:24},{lang:`pt`,word:`preocupação`,source:`production`,page:`pt-pt/consumer/total-security`,observedAt:40},{lang:`fi`,word:`Tietoturvaratkaisu`,source:`representative`,retired:`Finnish does not ship -- there is no fi-FI locale in localeMap.ts. Kept only because the ladder committed in 723aa111 was calibrated against the widest of these, so removing them would erase the record of what it was calibrated against. Do not use them to set a new ceiling.`},{lang:`fi`,word:`Käyttäjätunnukset`,source:`representative`,retired:`see the note on Tietoturvaratkaisu`},{lang:`fi`,word:`Henkilöllisyyssuoja`,source:`representative`,retired:`see the note on Tietoturvaratkaisu. THIS is the word the mobile ladder was sized against -- and the production harvest has since found three real tokens WIDER than it, in Swedish, Dutch and German.`}],missing:{note:"NOTHING, as of 2026-09-17. Every shipping language the longest-word model applies to now has a production sample. `unsampledLanguages` below derives to an empty array, and it should stay that way: if a language is added to localeMap.ts, this file is one of the places that has to grow with it.",hungarian:`Was the one gap, and it turned out not to be a gap. The study could find no Hungarian copy because THERE IS NONE: Hungary is an English market, served at /en-hu/. The footer had it as hu-HU, which is why /hu-hu/ 404ed and why this file recorded Hungarian as an untested compounding language. Corrected in localeMap.ts; Hungarian is no longer claimed as a shipping language.`,notApplicable:[`zh`,`ja`]}},t=[...new Set(e.words.filter(e=>!e.retired).map(e=>e.lang))].sort(),n=e.shippingLanguages.languages.filter(e=>!t.includes(e)).filter(t=>!Object.keys(e.wrappingCaveats).includes(t)).sort(),r=e=>e.observedAt>=40?`headline`:`feature`;export{e as ceilingWords,e as default,t as sampledLanguages,r as tierOf,n as unsampledLanguages};
|
|
2
|
-
//# sourceMappingURL=type-ceiling-words.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"type-ceiling-words.js","names":["ceilingWords","\"about\"","\"howToUpdate\"","\"sourceVocabulary\"","\"production\"","\"tm\"","\"representative\"","\"outlier\"","\"tiers\"","\"note\"","\"headline\"","\"feature\"","\"shippingLanguages\"","\"source\"","\"languages\"","\"wrappingCaveats\"","\"zh\"","\"ja\"","\"harvest\"","\"date\"","\"method\"","\"pages\"","\"locales\"","\"whyNotCharacterCount\"","\"caveat\"","\"words\"","\"lang\"","\"word\"","\"page\"","\"observedAt\"","\"retired\"","\"missing\"","\"hungarian\"","\"notApplicable\"","sampledLanguages","w","unsampledLanguages","l","tierOf","word"],"sources":["../../../src/tokens/type-ceiling-words.ts"],"sourcesContent":["/**\n * The word sample the type ceilings are measured against.\n *\n * WHY WORDS AND NOT STRINGS. For large type the binding constraint is the\n * longest UNBREAKABLE WORD, not the length of the sentence -- a word wider\n * than its column overflows or hyphenates, and neither is a size anyone chose.\n * So this file holds words.\n *\n * NOTHING HERE CARRIES A MEASURED WIDTH. Foundations/Typography -> Why These\n * Sizes measures every entry live in the browser, because a width measured\n * once and written down is a width that goes stale -- and the browser and the\n * Figma file already disagree by about 3.5% on the same word.\n *\n * WHERE THESE WORDS COME FROM, as of 2026-09-17: shipped copy. Every entry\n * marked `production` was harvested from a live localized bitdefender.com\n * page, and carries the page it came from and the size that page renders it\n * at. The `representative` compounds this file started with are gone -- they\n * indicated an order of magnitude and were the reason the ladder could only\n * ever be provisional. See `harvest` below for the method.\n *\n * A JS module rather than the JSON registry it started as: the story needs it\n * at build time, and a bare JSON import needs an import attribute under Node,\n * which would break the per-file parse check without breaking the Vite build.\n * One source, no attributes.\n */\nexport const ceilingWords = {\n \"about\" : \"The word sample the type ceilings are measured against. For large type the binding constraint is the longest UNBREAKABLE WORD, not the length of the sentence, so this file holds words rather than strings. Foundations/Typography -> Why These Sizes reads it and measures every entry live in the browser; nothing here carries a measured width, because a width measured once and written down is a width that goes stale.\",\n \"howToUpdate\" : \"The ask that stood here -- one longest unbreakable token per language from the translation memory -- was answered another way, by harvesting the rendered copy instead of the TM that produced it. To re-run it, follow `harvest` below: it is one script against nine locale URLs and takes minutes. Re-run it when the marketing copy is rewritten, when a language is added to localeMap.ts, or before changing any fontSizeMin token.\",\n \"sourceVocabulary\": {\n \"production\" : \"Harvested from a live localized bitdefender.com page: a token that really renders at 24px or larger in that market's copy. Carries `page` and `observedAt`. Stronger evidence than a TM extract, because it is what actually renders rather than a string that might.\",\n \"tm\" : \"A string from the translation memory. None left -- `production` superseded the ask. Kept in the vocabulary because a TM entry would still be valid evidence for copy that has not shipped yet.\",\n \"representative\": \"A plausible compound written for the study. NONE REMAIN: every one was replaced on 2026-09-17 by a production token in the same language. Kept in the vocabulary so a future gap can be filled honestly rather than silently.\",\n \"outlier\" : \"Deliberately extreme, kept to show the shape of the failure rather than to set a ceiling. Excluded from the worst case the ladder is calibrated against.\"\n },\n \"tiers\": {\n \"note\" : \"Two tiers, because the question is not only how wide the longest token is but whether it can land in the role that would break. The size a token renders at on bitdefender.com is not our role -- their site, their scale -- but it does classify the COPY: a word set at 40px+ there is headline copy, a word set at 24-32px is feature or subhead copy.\",\n \"headline\": \"observedAt >= 40. Copy that plays the part heading-h1 plays. This is the tier the h1 mobile size has to survive.\",\n \"feature\" : \"observedAt 24-39. Subheads and feature lists. On a phone this copy lands in h3 and below, where the ladder has room -- but it is included in the all-tier worst case, because nothing stops a writer from promoting one of these words into a headline.\"\n },\n \"shippingLanguages\": {\n \"source\" : \"Derived from src/components/footer/localeMap.ts, the only locale list in this monorepo. It is the footer's country selector, so treat it as the best available evidence rather than a declared locale contract.\",\n \"languages\": [\n \"en\",\n \"es\",\n \"de\",\n \"nl\",\n \"fr\",\n \"pt\",\n \"zh\",\n \"it\",\n \"ro\",\n \"sv\",\n \"ja\"\n ],\n \"note\": \"46 locales, 11 languages. Two languages are deliberately absent. Finnish: there is no fi-FI locale at all -- see the `retired` note on the fi entries below. Hungarian: Hungary is served in ENGLISH, at /en-hu/, so the locale is en-HU and Hungarian is not a language this product sells in. That was established 2026-09-17 after the footer was found pointing at /hu-hu/, which 404s; the footer says en-HU now and all 46 roots resolve.\"\n },\n \"wrappingCaveats\": {\n \"zh\": \"Chinese wraps between characters, so the longest-word constraint barely applies. The relevant question there is characters per line at ~1em per glyph, which this study does not model.\",\n \"ja\": \"Same as zh, with kinsoku line-breaking rules on top. Not modelled.\"\n },\n \"harvest\": {\n \"date\" : \"2026-09-17\",\n \"method\": \"In a browser on each locale URL below: walk every element, keep the ones whose computed font-size is >= 24px and are not hidden, take their direct text nodes, split on whitespace AND on hyphen, slash, en/em dash and punctuation -- all of them are line-break opportunities, so a hyphenated compound is not one unbreakable token -- strip anything that is not a letter or digit, and keep tokens of 9 characters or more with the largest size each was seen at. Then measure each candidate in IBM Plex Sans 700 at 100px in this package's own token scope and rank by width, not by character count.\",\n \"pages\" : [\n \"https://www.bitdefender.com/<locale>/consumer/total-security\",\n \"https://www.bitdefender.com/<locale>/consumer/ultimate-security\"\n ],\n \"locales\": [\n \"en-us\",\n \"nl-nl\",\n \"de-de\",\n \"sv-se\",\n \"ro-ro\",\n \"fr-fr\",\n \"it-it\",\n \"es-es\",\n \"pt-pt\"\n ],\n \"whyNotCharacterCount\": \"Character count is a prefilter, not the measurement. Plex is proportional: Romanian `Confidentialitate` and Dutch `Gepersonaliseerde` are both 17 characters and differ by 12% in width, and a 15-character Swedish compound outruns a 17-character Romanian one.\",\n \"caveat\" : \"These are marketing pages rendered by bitdefender.com's own design system, not by this package. The TOKEN TEXT is the evidence; the size it renders at there is used only to classify the copy into the two tiers above.\"\n },\n \"words\": [\n {\n \"lang\" : \"en\",\n \"word\" : \"Recommended\",\n \"source\" : \"production\",\n \"page\" : \"en-us/consumer/total-security\",\n \"observedAt\": 40\n },\n {\n \"lang\" : \"en\",\n \"word\" : \"Personalized\",\n \"source\" : \"production\",\n \"page\" : \"en-us/consumer/total-security\",\n \"observedAt\": 24\n },\n {\n \"lang\" : \"en\",\n \"word\" : \"Performance\",\n \"source\" : \"production\",\n \"page\" : \"en-us/consumer/total-security\",\n \"observedAt\": 32\n },\n {\n \"lang\" : \"sv\",\n \"word\" : \"kalenderinbjudningar\",\n \"source\" : \"production\",\n \"page\" : \"sv-se/consumer/ultimate-security\",\n \"observedAt\": 24,\n \"note\" : \"The widest token in the whole sample. Swedish was in `alsoMissing` as a low-priority gap; it turned out to set the worst case.\"\n },\n {\n \"lang\" : \"sv\",\n \"word\" : \"bedrägeriaviseringar\",\n \"source\" : \"production\",\n \"page\" : \"sv-se/consumer/ultimate-security\",\n \"observedAt\": 24\n },\n {\n \"lang\" : \"sv\",\n \"word\" : \"Rekommenderas\",\n \"source\" : \"production\",\n \"page\" : \"sv-se/consumer/total-security\",\n \"observedAt\": 40,\n \"note\" : \"Swedish's widest HEADLINE-tier token, which is the one h1 has to survive.\"\n },\n {\n \"lang\" : \"nl\",\n \"word\" : \"oplichtingsmeldingen\",\n \"source\" : \"production\",\n \"page\" : \"nl-nl/consumer/ultimate-security\",\n \"observedAt\": 24\n },\n {\n \"lang\" : \"nl\",\n \"word\" : \"oplichtingspatronen\",\n \"source\" : \"production\",\n \"page\" : \"nl-nl/consumer/ultimate-security\",\n \"observedAt\": 24\n },\n {\n \"lang\" : \"nl\",\n \"word\" : \"Gepersonaliseerde\",\n \"source\" : \"production\",\n \"page\" : \"nl-nl/consumer/total-security\",\n \"observedAt\": 24\n },\n {\n \"lang\" : \"nl\",\n \"word\" : \"Aanbevolen\",\n \"source\" : \"production\",\n \"page\" : \"nl-nl/consumer/total-security\",\n \"observedAt\": 40,\n \"note\" : \"Dutch's widest headline-tier token -- and narrower than English `Recommended`, which is the same word doing the same job. Compounding does not reach the headline here.\"\n },\n {\n \"lang\" : \"de\",\n \"word\" : \"Kalendereinladungen\",\n \"source\" : \"production\",\n \"page\" : \"de-de/consumer/ultimate-security\",\n \"observedAt\": 24\n },\n {\n \"lang\" : \"de\",\n \"word\" : \"Kalenderereignissen\",\n \"source\" : \"production\",\n \"page\" : \"de-de/consumer/ultimate-security\",\n \"observedAt\": 24\n },\n {\n \"lang\" : \"de\",\n \"word\" : \"Benachrichtigungen\",\n \"source\" : \"production\",\n \"page\" : \"de-de/consumer/ultimate-security\",\n \"observedAt\": 24\n },\n {\n \"lang\" : \"de\",\n \"word\" : \"Gründungsmitglied\",\n \"source\" : \"production\",\n \"page\" : \"de-de/consumer/ultimate-security\",\n \"observedAt\": 44,\n \"note\" : \"The widest headline-tier token in the sample, in any language, and therefore the word the h1 mobile size is really calibrated against.\"\n },\n {\n \"lang\" : \"ro\",\n \"word\" : \"Confidențialitate\",\n \"source\" : \"production\",\n \"page\" : \"ro-ro/consumer/total-security\",\n \"observedAt\": 32,\n \"note\" : \"Was in this file as a `representative` compound and turned out to be real copy, at 32px.\"\n },\n {\n \"lang\" : \"ro\",\n \"word\" : \"abonamentele\",\n \"source\" : \"production\",\n \"page\" : \"ro-ro/consumer/ultimate-security\",\n \"observedAt\": 40\n },\n {\n \"lang\" : \"fr\",\n \"word\" : \"Confidentialité\",\n \"source\" : \"production\",\n \"page\" : \"fr-fr/consumer/total-security\",\n \"observedAt\": 32\n },\n {\n \"lang\" : \"fr\",\n \"word\" : \"performances\",\n \"source\" : \"production\",\n \"page\" : \"fr-fr/consumer/total-security\",\n \"observedAt\": 40\n },\n {\n \"lang\" : \"it\",\n \"word\" : \"personalizzata\",\n \"source\" : \"production\",\n \"page\" : \"it-it/consumer/total-security\",\n \"observedAt\": 32\n },\n {\n \"lang\" : \"it\",\n \"word\" : \"disposizione\",\n \"source\" : \"production\",\n \"page\" : \"it-it/consumer/total-security\",\n \"observedAt\": 40\n },\n {\n \"lang\" : \"es\",\n \"word\" : \"tranquilamente\",\n \"source\" : \"production\",\n \"page\" : \"es-es/consumer/total-security\",\n \"observedAt\": 32\n },\n {\n \"lang\" : \"es\",\n \"word\" : \"Recomendado\",\n \"source\" : \"production\",\n \"page\" : \"es-es/consumer/total-security\",\n \"observedAt\": 40\n },\n {\n \"lang\" : \"pt\",\n \"word\" : \"independência\",\n \"source\" : \"production\",\n \"page\" : \"pt-pt/consumer/total-security\",\n \"observedAt\": 24\n },\n {\n \"lang\" : \"pt\",\n \"word\" : \"preocupação\",\n \"source\" : \"production\",\n \"page\" : \"pt-pt/consumer/total-security\",\n \"observedAt\": 40\n },\n {\n \"lang\" : \"fi\",\n \"word\" : \"Tietoturvaratkaisu\",\n \"source\" : \"representative\",\n \"retired\": \"Finnish does not ship -- there is no fi-FI locale in localeMap.ts. Kept only because the ladder committed in 723aa111 was calibrated against the widest of these, so removing them would erase the record of what it was calibrated against. Do not use them to set a new ceiling.\"\n },\n {\n \"lang\" : \"fi\",\n \"word\" : \"Käyttäjätunnukset\",\n \"source\" : \"representative\",\n \"retired\": \"see the note on Tietoturvaratkaisu\"\n },\n {\n \"lang\" : \"fi\",\n \"word\" : \"Henkilöllisyyssuoja\",\n \"source\" : \"representative\",\n \"retired\": \"see the note on Tietoturvaratkaisu. THIS is the word the mobile ladder was sized against -- and the production harvest has since found three real tokens WIDER than it, in Swedish, Dutch and German.\"\n }\n ],\n \"missing\": {\n \"note\" : \"NOTHING, as of 2026-09-17. Every shipping language the longest-word model applies to now has a production sample. `unsampledLanguages` below derives to an empty array, and it should stay that way: if a language is added to localeMap.ts, this file is one of the places that has to grow with it.\",\n \"hungarian\" : \"Was the one gap, and it turned out not to be a gap. The study could find no Hungarian copy because THERE IS NONE: Hungary is an English market, served at /en-hu/. The footer had it as hu-HU, which is why /hu-hu/ 404ed and why this file recorded Hungarian as an untested compounding language. Corrected in localeMap.ts; Hungarian is no longer claimed as a shipping language.\",\n \"notApplicable\": [\n \"zh\",\n \"ja\"\n ]\n }\n};\n\n/** Live-sampled languages -- everything not marked `retired`. */\nexport const sampledLanguages = [...new Set(\n ceilingWords.words.filter(w => !w.retired).map(w => w.lang)\n)].sort();\n\n/** Shipping languages with no live sample, minus the two that wrap per character. */\nexport const unsampledLanguages = ceilingWords.shippingLanguages.languages\n .filter(l => !sampledLanguages.includes(l))\n .filter(l => !Object.keys(ceilingWords.wrappingCaveats).includes(l))\n .sort();\n\n/** The tier a word's copy belongs to; see `ceilingWords.tiers`. */\nexport const tierOf = (word: { observedAt: number }) => (word.observedAt >= 40 ? 'headline' : 'feature');\n\nexport default ceilingWords;\n"],"mappings":"AAyBA,IAAaA,EAAe,CAC1BC,MAAoB,kaACpBC,YAAoB,4aACpBC,iBAAoB,CAClBC,WAAkB,wQAClBC,GAAkB,iMAClBC,eAAkB,gOAClBC,QAAkB,0JACpB,EACAC,MAAS,CACPC,KAAY,4VACZC,SAAY,mHACZC,QAAY,yPACd,EACAC,kBAAqB,CACnBC,OAAa,kNACbC,UAAa,CACX,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,IACF,EACAL,KAAQ,ibACV,EACAM,gBAAmB,CACjBC,GAAM,0LACNC,GAAM,oEACR,EACAC,QAAW,CACTC,KAAU,aACVC,OAAU,ilBACVC,MAAU,CACR,+DACA,iEACF,EACAC,QAAW,CACT,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,OACF,EACAC,qBAAwB,oQACxBC,OAAwB,0NAC1B,EACAC,MAAS,CACP,CACEC,KAAc,KACdC,KAAc,cACdd,OAAc,aACde,KAAc,gCACdC,WAAc,EAChB,EACA,CACEH,KAAc,KACdC,KAAc,eACdd,OAAc,aACde,KAAc,gCACdC,WAAc,EAChB,EACA,CACEH,KAAc,KACdC,KAAc,cACdd,OAAc,aACde,KAAc,gCACdC,WAAc,EAChB,EACA,CACEH,KAAc,KACdC,KAAc,uBACdd,OAAc,aACde,KAAc,mCACdC,WAAc,GACdpB,KAAc,gIAChB,EACA,CACEiB,KAAc,KACdC,KAAc,uBACdd,OAAc,aACde,KAAc,mCACdC,WAAc,EAChB,EACA,CACEH,KAAc,KACdC,KAAc,gBACdd,OAAc,aACde,KAAc,gCACdC,WAAc,GACdpB,KAAc,2EAChB,EACA,CACEiB,KAAc,KACdC,KAAc,uBACdd,OAAc,aACde,KAAc,mCACdC,WAAc,EAChB,EACA,CACEH,KAAc,KACdC,KAAc,sBACdd,OAAc,aACde,KAAc,mCACdC,WAAc,EAChB,EACA,CACEH,KAAc,KACdC,KAAc,oBACdd,OAAc,aACde,KAAc,gCACdC,WAAc,EAChB,EACA,CACEH,KAAc,KACdC,KAAc,aACdd,OAAc,aACde,KAAc,gCACdC,WAAc,GACdpB,KAAc,yKAChB,EACA,CACEiB,KAAc,KACdC,KAAc,sBACdd,OAAc,aACde,KAAc,mCACdC,WAAc,EAChB,EACA,CACEH,KAAc,KACdC,KAAc,sBACdd,OAAc,aACde,KAAc,mCACdC,WAAc,EAChB,EACA,CACEH,KAAc,KACdC,KAAc,qBACdd,OAAc,aACde,KAAc,mCACdC,WAAc,EAChB,EACA,CACEH,KAAc,KACdC,KAAc,oBACdd,OAAc,aACde,KAAc,mCACdC,WAAc,GACdpB,KAAc,wIAChB,EACA,CACEiB,KAAc,KACdC,KAAc,oBACdd,OAAc,aACde,KAAc,gCACdC,WAAc,GACdpB,KAAc,0FAChB,EACA,CACEiB,KAAc,KACdC,KAAc,eACdd,OAAc,aACde,KAAc,mCACdC,WAAc,EAChB,EACA,CACEH,KAAc,KACdC,KAAc,kBACdd,OAAc,aACde,KAAc,gCAC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