@vectoriox/iox-ui 5.192.0 → 5.194.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/fesm2022/vectoriox-iox-ui-forms-core.mjs +186 -122
- package/fesm2022/vectoriox-iox-ui-forms-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-harness-core.mjs +193 -95
- package/fesm2022/vectoriox-iox-ui-harness-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-seo-core.mjs +37 -11
- package/fesm2022/vectoriox-iox-ui-seo-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui.mjs +249 -146
- package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
- package/forms-core/index.d.ts +17 -2
- package/harness-core/index.d.ts +102 -12
- package/index.d.ts +20 -6
- package/package.json +1 -1
- package/seo-core/index.d.ts +8 -1
- package/src/forms-core/messages.ts +72 -1
- package/src/forms-core/submit-lifecycle.ts +4 -5
- package/src/harness-core/business-types.ts +14 -9
- package/src/harness-core/harness-spec.generated.ts +168 -84
- package/src/harness-core/lint.ts +29 -11
- package/src/seo-core/redirects.ts +35 -9
|
@@ -493,17 +493,12 @@ function bind(pattern, path) {
|
|
|
493
493
|
}
|
|
494
494
|
return values;
|
|
495
495
|
}
|
|
496
|
-
/**
|
|
497
|
-
*
|
|
498
|
-
|
|
499
|
-
*/
|
|
500
|
-
function matchRedirect(redirects, path) {
|
|
501
|
-
const at = redirectPath(path);
|
|
502
|
-
if (!at)
|
|
503
|
-
return null;
|
|
496
|
+
/** The redirect that answers `at` (already a redirect path) and where it sends it: an exact `from` first, then the first
|
|
497
|
+
* pattern that matches, its `:name` values put into `to`. */
|
|
498
|
+
function hop(redirects, at) {
|
|
504
499
|
const exact = redirects.find(r => !segmentsOf(r.from).some(isParam) && redirectPath(r.from) === at);
|
|
505
500
|
if (exact)
|
|
506
|
-
return {
|
|
501
|
+
return { redirect: exact, to: exact.to };
|
|
507
502
|
for (const r of redirects) {
|
|
508
503
|
if (!segmentsOf(r.from).some(isParam))
|
|
509
504
|
continue;
|
|
@@ -511,10 +506,41 @@ function matchRedirect(redirects, path) {
|
|
|
511
506
|
if (!values)
|
|
512
507
|
continue;
|
|
513
508
|
const to = segmentsOf(r.to).map(s => (isParam(s) ? values[s] ?? s : s)).join('/');
|
|
514
|
-
return { to: `/${to}
|
|
509
|
+
return { redirect: r, to: `/${to}` };
|
|
515
510
|
}
|
|
516
511
|
return null;
|
|
517
512
|
}
|
|
513
|
+
/**
|
|
514
|
+
* The redirect a request for `path` follows, or null: an exact `from` first, then the first pattern that matches, its
|
|
515
|
+
* `:name` values put into `to`. ONE hop — what `to` answers is the next request's business.
|
|
516
|
+
*/
|
|
517
|
+
function matchRedirect(redirects, path) {
|
|
518
|
+
const at = redirectPath(path);
|
|
519
|
+
if (!at)
|
|
520
|
+
return null;
|
|
521
|
+
const found = hop(redirects, at);
|
|
522
|
+
return found ? { to: found.to, code: found.redirect.code } : null;
|
|
523
|
+
}
|
|
524
|
+
/**
|
|
525
|
+
* Where a visitor sent to `to` finally lands, or null when `to` is no redirect's `from` (nothing to follow) or the chain
|
|
526
|
+
* comes back on itself (no end to offer). The owner's dialog offers it when a new redirect is refused as a chain
|
|
527
|
+
* (`RedirectRefusal.Loop`): "send it to /about instead" (X9-D8). Follows every hop, exact before pattern, the same match
|
|
528
|
+
* the engine makes — the offer is judged again by `redirectRefusal` before it is shown.
|
|
529
|
+
*/
|
|
530
|
+
function redirectChainEnd(redirects, to) {
|
|
531
|
+
let at = redirectPath(to);
|
|
532
|
+
if (!at)
|
|
533
|
+
return null;
|
|
534
|
+
const seen = new Set([at]);
|
|
535
|
+
for (let found = hop(redirects, at); found; found = hop(redirects, at)) {
|
|
536
|
+
const next = redirectPath(found.to);
|
|
537
|
+
if (!next || seen.has(next))
|
|
538
|
+
return null;
|
|
539
|
+
seen.add(next);
|
|
540
|
+
at = next;
|
|
541
|
+
}
|
|
542
|
+
return seen.size > 1 ? at : null;
|
|
543
|
+
}
|
|
518
544
|
/**
|
|
519
545
|
* Why `candidate` may not be written, or null. A `from` must not be where a page answers (it would hide the page); a
|
|
520
546
|
* `to` must not be another redirect's `from` and a `from` not another's `to` (no chains, so no loops — the engine
|
|
@@ -557,5 +583,5 @@ function redirectRefusal(candidate, context) {
|
|
|
557
583
|
* Generated bundle index. Do not edit.
|
|
558
584
|
*/
|
|
559
585
|
|
|
560
|
-
export { REDIRECT_CODES, RedirectCode, RedirectRefusal, SEO_AUTO_SOURCES, SEO_BINDABLE_FIELDS, SEO_CHANGE_FREQ_OPTIONS, SEO_DESCRIPTION_MAX, SEO_ROBOTS_NOINDEX, SEO_ROBOTS_OPTIONS, SEO_TITLE_MAX, SEO_TWITTER_CARD_OPTIONS, buildSeoSchemaProperties, fitSeoText, matchRedirect, normalizeSeoDoc, redirectPath, redirectRefusal, seoString, seoToTags };
|
|
586
|
+
export { REDIRECT_CODES, RedirectCode, RedirectRefusal, SEO_AUTO_SOURCES, SEO_BINDABLE_FIELDS, SEO_CHANGE_FREQ_OPTIONS, SEO_DESCRIPTION_MAX, SEO_ROBOTS_NOINDEX, SEO_ROBOTS_OPTIONS, SEO_TITLE_MAX, SEO_TWITTER_CARD_OPTIONS, buildSeoSchemaProperties, fitSeoText, matchRedirect, normalizeSeoDoc, redirectChainEnd, redirectPath, redirectRefusal, seoString, seoToTags };
|
|
561
587
|
//# sourceMappingURL=vectoriox-iox-ui-seo-core.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vectoriox-iox-ui-seo-core.mjs","sources":["../../../projects/iox-ui/src/seo-core/seo.model.ts","../../../projects/iox-ui/src/seo-core/normalize.ts","../../../projects/iox-ui/src/seo-core/tags.ts","../../../projects/iox-ui/src/seo-core/schema.ts","../../../projects/iox-ui/src/seo-core/redirects.ts","../../../projects/iox-ui/src/seo-core/public-api.ts","../../../projects/iox-ui/src/seo-core/vectoriox-iox-ui-seo-core.ts"],"sourcesContent":["/**\n * The canonical shape of a page's SEO metadata, plus the flat tag list both renderers emit.\n *\n * ⚠️ This file is the ONLY declaration of that shape. Before it existed, `iox-cms` stored\n * `seo.og.title` while the SSR engine read a flat `seo.ogTitle`, so no Open Graph tag had ever been\n * emitted, and `iox-cms-client` carried a third, hand-copied variant of the same schema. See\n * iox-ai-guidance `architecture/cms/seo-plan.md`.\n */\n\n/** Open Graph subset we author and emit. */\nexport interface SeoOg {\n title?: string;\n description?: string;\n image?: string;\n}\n\n/** Twitter-card subset. Emitted only when `card` is set — see `seoToTags`. */\nexport interface SeoTwitter {\n card?: string;\n title?: string;\n description?: string;\n image?: string;\n}\n\n/** Sitemap participation for this page. Consumed by the sitemap route (plan phase 3). */\nexport interface SeoSitemap {\n include?: boolean;\n priority?: number;\n changeFreq?: string;\n}\n\n/**\n * A page's stored SEO metadata, normalized.\n *\n * `keywords` has no authoring field — search engines have ignored the tag for over a decade — but\n * it is read and emitted when a document already carries one, because the engine used to read it.\n */\nexport interface SeoDoc {\n title?: string;\n description?: string;\n keywords?: string;\n canonicalUrl?: string;\n robots?: string;\n og?: SeoOg;\n twitter?: SeoTwitter;\n structuredData?: unknown;\n sitemap?: SeoSitemap;\n}\n\n/**\n * A binding on an SEO field. Structurally the resolvable part of an `IoxBinding` — `source` picks an\n * entry in the page's resolved data (`$current` on a template page), `path` walks into it, `pipes`\n * are the render-time transforms. Typed loosely because the pipe catalog lives in the main\n * `@vectoriox/iox-ui` entry point, which this framework-free one must not import.\n */\nexport interface SeoBinding {\n source: string;\n path?: string;\n pipes?: readonly unknown[];\n}\n\n/**\n * One SEO field as stored once it carries more than a typed string.\n *\n * The ladder is `override` → `binding` → auto; `auto: false` opts that field out of the automatic\n * value, leaving it genuinely empty. A bare `string` in a stored document means `{ override }`, so\n * nothing has to be migrated.\n */\nexport interface SeoFieldValue {\n override?: string;\n binding?: SeoBinding;\n auto?: false;\n}\n\n/** A stored SEO document, before resolution: any text field may be a plain string or a value object. */\nexport type SeoRawDoc = Record<string, unknown>;\n\n/**\n * The text fields that can carry a binding, as dotted paths into the document.\n *\n * One list, used by the resolver and (phase 2) by the panel that draws the bind affordance — so a\n * field can never be bindable in the UI and ignored at render time. `robots`, `sitemap.*` and\n * `structuredData` are deliberately absent: they are pick-lists and blobs, not prose.\n */\nexport const SEO_BINDABLE_FIELDS: readonly string[] = [\n 'title',\n 'description',\n 'canonicalUrl',\n 'og.title',\n 'og.description',\n 'og.image',\n 'twitter.title',\n 'twitter.description',\n 'twitter.image',\n];\n\n/** Where an automatic value comes from when a field has neither an override nor a binding. */\nexport type SeoAutoSource = 'contentTitle' | 'contentDescription' | 'contentImage' | 'pageUrl';\n\n/**\n * The bottom rung of the ladder, as a table rather than a chain of ifs.\n *\n * Deliberately short. `og:title` and `twitter:*` are NOT here — `seoToTags` already falls back to\n * the page title for them, and materialising a copy of a value we did not author would only make\n * later drift harder to see.\n */\nexport const SEO_AUTO_SOURCES: ReadonlyArray<{ field: string; source: SeoAutoSource }> = [\n { field: 'title', source: 'contentTitle' },\n { field: 'description', source: 'contentDescription' },\n { field: 'og.image', source: 'contentImage' },\n { field: 'canonicalUrl', source: 'pageUrl' },\n];\n\n/** `<title>`. */\nexport interface SeoTitleTag {\n kind: 'title';\n content: string;\n}\n\n/**\n * A `<meta>` tag. `attr` says which attribute identifies it — Open Graph is addressed by\n * `property`, everything else by `name`. Both renderers need that distinction to update rather\n * than duplicate a tag.\n */\nexport interface SeoMetaTag {\n kind: 'meta';\n attr: 'name' | 'property';\n key: string;\n content: string;\n}\n\n/** A `<link>`, currently only `rel=\"canonical\"`. */\nexport interface SeoLinkTag {\n kind: 'link';\n rel: string;\n href: string;\n}\n\nexport type SeoTag = SeoTitleTag | SeoMetaTag | SeoLinkTag;\n\n/** Context that lets `seoToTags` fill gaps without reaching for the DOM or a data source. */\nexport interface SeoTagContext {\n /** Used as `<title>` when the document has none — usually the page name. */\n fallbackTitle?: string;\n}\n\n/** Recommended maximum before search results truncate the title. */\nexport const SEO_TITLE_MAX = 60;\n\n/** Recommended maximum before search results truncate the description. */\nexport const SEO_DESCRIPTION_MAX = 160;\n\nexport const SEO_ROBOTS_OPTIONS: ReadonlyArray<{ label: string; value: string }> = [\n { label: 'Index, Follow', value: 'index, follow' },\n { label: 'Index, No Follow', value: 'index, nofollow' },\n { label: 'No Index, Follow', value: 'noindex, follow' },\n { label: 'No Index, No Follow', value: 'noindex, nofollow' },\n];\n\n/** A page kept out of search but its links still followed — what a page the owner's old site kept out of search moves\n * with (Bring my site X6). */\nexport const SEO_ROBOTS_NOINDEX = 'noindex, follow';\n\nexport const SEO_TWITTER_CARD_OPTIONS: ReadonlyArray<{ label: string; value: string }> = [\n { label: 'Summary', value: 'summary' },\n { label: 'Summary Large Image', value: 'summary_large_image' },\n { label: 'App', value: 'app' },\n { label: 'Player', value: 'player' },\n];\n\nexport const SEO_CHANGE_FREQ_OPTIONS: ReadonlyArray<{ label: string; value: string }> = [\n { label: 'Always', value: 'always' },\n { label: 'Hourly', value: 'hourly' },\n { label: 'Daily', value: 'daily' },\n { label: 'Weekly', value: 'weekly' },\n { label: 'Monthly', value: 'monthly' },\n { label: 'Yearly', value: 'yearly' },\n { label: 'Never', value: 'never' },\n];\n","import { SeoDoc, SeoOg, SeoSitemap, SeoTwitter } from './seo.model';\n\n/**\n * Coerce whatever a page document happens to hold into a `SeoDoc`.\n *\n * Every consumer calls this before reading `seo`, because four shapes are in the wild:\n * • the current nested shape (`og.title`);\n * • the flat shape the SSR engine used to read (`ogTitle`) — never actually written, but a\n * document hand-edited against the old engine code could carry it;\n * • `\"\"` for \"not set\", which must not become an empty `<meta>`;\n * • `{ override: '…' }`, the per-field value object that plan phase 2 introduces — tolerated here\n * so the ladder can land without a second normalizer.\n *\n * Empty branches are dropped rather than left as `{}`, so `if (seo.og)` is a meaningful test.\n */\nexport function normalizeSeoDoc(raw: unknown): SeoDoc {\n const src = asRecord(raw);\n if (!src) return {};\n\n const og = compact<SeoOg>({\n title: seoString(pick(src, 'og', 'title') ?? src['ogTitle']),\n description: seoString(pick(src, 'og', 'description') ?? src['ogDescription']),\n image: seoString(pick(src, 'og', 'image') ?? src['ogImage']),\n });\n\n const twitter = compact<SeoTwitter>({\n card: seoString(pick(src, 'twitter', 'card')),\n title: seoString(pick(src, 'twitter', 'title')),\n description: seoString(pick(src, 'twitter', 'description')),\n image: seoString(pick(src, 'twitter', 'image')),\n });\n\n const sitemap = compact<SeoSitemap>({\n include: bool(pick(src, 'sitemap', 'include')),\n priority: num(pick(src, 'sitemap', 'priority')),\n changeFreq: seoString(pick(src, 'sitemap', 'changeFreq')),\n });\n\n const structuredData = structured(src['structuredData']);\n\n const doc = compact<SeoDoc>({\n title: seoString(src['title']),\n description: seoString(src['description']),\n keywords: seoString(src['keywords']),\n canonicalUrl: seoString(src['canonicalUrl']),\n robots: seoString(src['robots']),\n og,\n twitter,\n sitemap,\n structuredData,\n });\n\n return doc ?? {};\n}\n\n/** Read `src[branch][leaf]` without assuming the branch exists or is an object. */\nfunction pick(src: Record<string, unknown>, branch: string, leaf: string): unknown {\n const nested = asRecord(src[branch]);\n return nested ? nested[leaf] : undefined;\n}\n\n/**\n * A field's value as a trimmed string, or `undefined`. Exported because the resolver needs the exact\n * same coercion for a value it has just pulled out of a data source.\n *\n * Unwraps the value object: a bound or auto field has no `override`, so it correctly resolves to\n * `undefined` here and `resolveSeo` fills it in from the lower rungs.\n */\nexport function seoString(value: unknown): string | undefined {\n const wrapper = asRecord(value);\n const raw = wrapper ? wrapper['override'] : value;\n if (typeof raw === 'number') return String(raw);\n if (typeof raw !== 'string') return undefined;\n const trimmed = raw.trim();\n return trimmed.length ? trimmed : undefined;\n}\n\n/**\n * `UIFormToDTO` can hand back `\"true\"` / `\"false\"` for a switch (see\n * `architecture/cms/shop.md` — the boolean/number coercion pitfall), so accept both.\n */\nfunction bool(value: unknown): boolean | undefined {\n if (typeof value === 'boolean') return value;\n if (value === 'true') return true;\n if (value === 'false') return false;\n return undefined;\n}\n\nfunction num(value: unknown): number | undefined {\n if (typeof value === 'number') return Number.isFinite(value) ? value : undefined;\n if (typeof value !== 'string' || !value.trim().length) return undefined;\n const parsed = Number(value);\n return Number.isFinite(parsed) ? parsed : undefined;\n}\n\n/** JSON-LD is stored as an object or as a JSON string from the `json` controller. */\nfunction structured(value: unknown): unknown {\n if (typeof value === 'string') {\n const trimmed = value.trim();\n if (!trimmed.length) return undefined;\n try {\n return JSON.parse(trimmed);\n } catch {\n return undefined;\n }\n }\n if (Array.isArray(value)) return value.length ? value : undefined;\n const record = asRecord(value);\n return record && Object.keys(record).length ? record : undefined;\n}\n\nfunction asRecord(value: unknown): Record<string, unknown> | undefined {\n return value !== null && typeof value === 'object' && !Array.isArray(value)\n ? (value as Record<string, unknown>)\n : undefined;\n}\n\n/** Drop `undefined` values and empty nested objects, so absence is always `undefined`. */\nfunction compact<T extends object>(value: Record<string, unknown>): T | undefined {\n const out: Record<string, unknown> = {};\n for (const [key, entry] of Object.entries(value)) {\n if (entry === undefined) continue;\n out[key] = entry;\n }\n return (Object.keys(out).length ? out : undefined) as T | undefined;\n}\n\n/**\n * Words cut to `max` characters on a word boundary, with an ellipsis only when something was cut — a search result's\n * title (`SEO_TITLE_MAX`) or line (`SEO_DESCRIPTION_MAX`). White space collapses. Shared by the composer (a composed\n * page's words) and Bring my site (an old page's own title and line, X6).\n */\nexport function fitSeoText(text: string, max: number): string {\n const clean = text.replace(/\\s+/g, ' ').trim();\n if (clean.length <= max) return clean;\n const cut = clean.slice(0, max - 1);\n const at = cut.lastIndexOf(' ');\n return `${(at > max / 2 ? cut.slice(0, at) : cut).trimEnd()}…`;\n}\n","import { SeoDoc, SeoTag, SeoTagContext } from './seo.model';\nimport { normalizeSeoDoc } from './normalize';\n\n/**\n * Turn a page's SEO document into the flat list of head tags to emit.\n *\n * Both renderers call this, so a page cannot describe itself differently to a crawler than the\n * builder previews. The order is fixed and part of the contract: title, description, keywords,\n * canonical, Open Graph, Twitter, robots.\n *\n * Fallbacks are deliberately shallow — `og:title` reuses the page title, `twitter:*` reuses the\n * Open Graph values — because a social scraper that finds no `og:title` falls back to `<title>`\n * itself, and duplicating a value we did not author only makes the drift harder to see. The\n * \"derive from the page content\" half of the ladder (first h1, first paragraph, first image) is\n * `resolveSeo`, which runs BEFORE this and hands its output in as a filled-in `SeoDoc`.\n */\nexport function seoToTags(seo: SeoDoc | unknown, ctx: SeoTagContext = {}): SeoTag[] {\n const doc = normalizeSeoDoc(seo);\n const tags: SeoTag[] = [];\n\n const title = doc.title ?? trimmed(ctx.fallbackTitle);\n if (title) tags.push({ kind: 'title', content: title });\n if (doc.description) tags.push({ kind: 'meta', attr: 'name', key: 'description', content: doc.description });\n if (doc.keywords) tags.push({ kind: 'meta', attr: 'name', key: 'keywords', content: doc.keywords });\n if (doc.canonicalUrl) tags.push({ kind: 'link', rel: 'canonical', href: doc.canonicalUrl });\n\n // Open Graph. `og:url` reuses the canonical URL, which is what it means.\n const ogTitle = doc.og?.title ?? title;\n const ogDescription = doc.og?.description ?? doc.description;\n if (ogTitle) tags.push({ kind: 'meta', attr: 'property', key: 'og:title', content: ogTitle });\n if (ogDescription) tags.push({ kind: 'meta', attr: 'property', key: 'og:description', content: ogDescription });\n if (doc.og?.image) tags.push({ kind: 'meta', attr: 'property', key: 'og:image', content: doc.og.image });\n if (doc.canonicalUrl) tags.push({ kind: 'meta', attr: 'property', key: 'og:url', content: doc.canonicalUrl });\n\n // Twitter. Emitted ONLY when a card type is chosen: without `twitter:card` the other tags are\n // ignored anyway, so writing them would be noise that looks like configuration.\n if (doc.twitter?.card) {\n tags.push({ kind: 'meta', attr: 'name', key: 'twitter:card', content: doc.twitter.card });\n const twitterTitle = doc.twitter.title ?? ogTitle;\n const twitterDescription = doc.twitter.description ?? ogDescription;\n const twitterImage = doc.twitter.image ?? doc.og?.image;\n if (twitterTitle) tags.push({ kind: 'meta', attr: 'name', key: 'twitter:title', content: twitterTitle });\n if (twitterDescription) {\n tags.push({ kind: 'meta', attr: 'name', key: 'twitter:description', content: twitterDescription });\n }\n if (twitterImage) tags.push({ kind: 'meta', attr: 'name', key: 'twitter:image', content: twitterImage });\n }\n\n if (doc.robots) tags.push({ kind: 'meta', attr: 'name', key: 'robots', content: doc.robots });\n\n return tags;\n}\n\nfunction trimmed(value: string | undefined): string | undefined {\n const out = value?.trim();\n return out?.length ? out : undefined;\n}\n","import {\n SEO_CHANGE_FREQ_OPTIONS,\n SEO_DESCRIPTION_MAX,\n SEO_ROBOTS_OPTIONS,\n SEO_TITLE_MAX,\n SEO_TWITTER_CARD_OPTIONS,\n} from './seo.model';\n\n/**\n * The authoring schema for the `seo` object, in the platform's standard property dialect: `label`\n * at property level, rendering metadata under `controller`.\n *\n * ONE builder, two callers: `iox-cms` spreads it into `PagesSchema` (the stored schema) and\n * `iox-cms-client` feeds it to `<dynamic-form>`. Those used to be two hand-written copies that had\n * already drifted — different controller types for the same field, and the client's copy missing\n * `structuredData` entirely.\n *\n * `keywords` is deliberately absent: the tag is emitted when a document carries one, but there is\n * no reason to invite new ones.\n */\nexport function buildSeoSchemaProperties(): Record<string, unknown> {\n return {\n title: {\n type: 'string',\n label: 'Meta Title',\n controller: {\n type: 'text',\n placeholder: 'Page title for search engines',\n maxLength: SEO_TITLE_MAX,\n },\n },\n description: {\n type: 'string',\n label: 'Meta Description',\n controller: {\n type: 'textarea',\n placeholder: 'Brief description for search results',\n maxLength: SEO_DESCRIPTION_MAX,\n },\n },\n canonicalUrl: {\n type: 'string',\n label: 'Canonical URL',\n controller: {\n type: 'text',\n placeholder: 'https://example.com/page',\n },\n },\n robots: {\n type: 'string',\n label: 'Robots',\n controller: {\n type: 'select',\n options: SEO_ROBOTS_OPTIONS.map(option => ({ ...option })),\n },\n },\n og: {\n type: 'object',\n label: 'Open Graph',\n controller: { type: 'object' },\n properties: {\n title: {\n type: 'string',\n label: 'OG Title',\n controller: { type: 'text', placeholder: 'Title for social sharing' },\n },\n description: {\n type: 'string',\n label: 'OG Description',\n controller: { type: 'textarea', placeholder: 'Description for social sharing' },\n },\n image: {\n type: 'string',\n label: 'OG Image',\n controller: { type: 'media' },\n },\n },\n },\n twitter: {\n type: 'object',\n label: 'Twitter Card',\n controller: { type: 'object' },\n properties: {\n card: {\n type: 'string',\n label: 'Card Type',\n controller: {\n type: 'select',\n options: SEO_TWITTER_CARD_OPTIONS.map(option => ({ ...option })),\n },\n },\n title: {\n type: 'string',\n label: 'Twitter Title',\n controller: { type: 'text' },\n },\n description: {\n type: 'string',\n label: 'Twitter Description',\n controller: { type: 'textarea' },\n },\n image: {\n type: 'string',\n label: 'Twitter Image',\n controller: { type: 'media' },\n },\n },\n },\n structuredData: {\n type: 'object',\n label: 'Structured Data (JSON-LD)',\n // `code`, not `json`: the client registers `code` (CodeMirror) and has no `json`\n // controller, so a `json` declaration silently falls back to a plain text box.\n controller: { type: 'code', options: { language: 'json' } },\n },\n sitemap: {\n type: 'object',\n label: 'Sitemap Settings',\n controller: { type: 'object' },\n properties: {\n include: {\n type: 'boolean',\n label: 'Include in Sitemap',\n controller: { type: 'switch' },\n },\n priority: {\n type: 'number',\n label: 'Priority',\n controller: { type: 'range', options: { min: 0, max: 1, step: 0.1 } },\n },\n changeFreq: {\n type: 'string',\n label: 'Change Frequency',\n controller: {\n type: 'select',\n options: SEO_CHANGE_FREQ_OPTIONS.map(option => ({ ...option })),\n },\n },\n },\n },\n };\n}\n","/**\n * Redirects — an old address that answers with another (Bring my site X7, site-build plan §3l, decision X-D3).\n *\n * ONE rule for the three places that need it: iox-cms refuses a redirect that would shadow a page or loop when it is\n * written (an import's or the owner's own), the SSR engine answers a request with the redirect that matches it before it\n * renders, and generation-core lists the redirects an import makes. Framework-free and pure.\n *\n * A redirect's `from` is a PATH on the studio's own site — exact (`/portfolio/blue-bowl`) or a pattern whose `:name`\n * segments match one segment each (`/portfolio/:slug`); its `to` is a path that may use the same names\n * (`/work/:slug`). Exact redirects win over patterns; the engine follows ONE hop.\n */\n\n/** The status a redirect answers with: moved for good (the import's, and the default) or for now. */\nexport enum RedirectCode {\n Permanent = 301,\n Temporary = 302,\n}\n\nexport const REDIRECT_CODES: ReadonlyArray<number> = [RedirectCode.Permanent, RedirectCode.Temporary];\n\n/** One redirect, as the engine reads it (`GET api/site/:orgId/redirects`). */\nexport interface SiteRedirect {\n from: string;\n to: string;\n code: number;\n}\n\n/** Why a redirect is not written — said to the owner, never a silent skip. */\nexport enum RedirectRefusal {\n /** `from` or `to` is not a path of this site (`/…`), or `to`'s `:name` is not one `from` has. */\n NotAPath = 'not-a-path',\n /** It would send an address to itself. */\n Same = 'same',\n /** `from` is the address of a page of the site — the page answers there; a redirect would hide it. (An exact old\n * address under a page PATTERN — `/blog/Old-Post` beside `/blog/:slug` — is not: no item answers there yet.) */\n ShadowsPage = 'shadows-page',\n /** `to` is another redirect's `from`, or `from` another's `to` — a chain, or a loop. */\n Loop = 'loop',\n /** Another redirect already starts at this `from`. */\n Taken = 'taken',\n}\n\nconst MAX_PATH = 2_048;\nconst PARAM = /^:[a-z_][a-z0-9_]*$/i;\n\nconst segmentsOf = (path: string): string[] => path.split('/').filter(Boolean);\nconst isParam = (segment: string): boolean => PARAM.test(segment);\n\n/**\n * An address as a redirect path: an absolute address's path, or a path — without its query and fragment, with one leading\n * slash, no repeated or trailing slash (`/about/` and `/about` are one address), each segment percent-encoded one way.\n * Null when it is neither. Letter case is kept: `/About` is not `/about`.\n */\nexport function redirectPath(address: string | null | undefined): string | null {\n if (typeof address !== 'string') return null;\n let text = address.trim();\n if (!text || text.length > MAX_PATH) return null;\n if (/^https?:\\/\\//i.test(text)) {\n try {\n text = new URL(text).pathname;\n } catch {\n return null;\n }\n }\n if (!text.startsWith('/') || text.startsWith('//')) return null;\n text = text.split(/[?#]/, 1)[0];\n if (/\\s/.test(text)) return null;\n return `/${segmentsOf(text).map(sameEncoding).join('/')}`;\n}\n\n/** One segment as a browser sends it: `%d7%90` (a WordPress link) and `%D7%90` (what Chrome asks for) and `א` are one. */\nfunction sameEncoding(segment: string): string {\n if (isParam(segment)) return segment;\n try {\n return encodeURIComponent(decodeURIComponent(segment));\n } catch {\n return segment;\n }\n}\n\n/** The two shapes overlap: some address answers both (a `:name` segment matches any one segment). */\nfunction overlaps(a: string, b: string): boolean {\n const x = segmentsOf(a);\n const y = segmentsOf(b);\n return x.length === y.length && x.every((s, i) => s === y[i] || isParam(s) || isParam(y[i]));\n}\n\n/** `path` against a pattern: the values of its `:name` segments, or null when it does not match. */\nfunction bind(pattern: string, path: string): Record<string, string> | null {\n const p = segmentsOf(pattern);\n const s = segmentsOf(path);\n if (p.length !== s.length) return null;\n const values: Record<string, string> = {};\n for (let i = 0; i < p.length; i++) {\n if (isParam(p[i])) values[p[i]] = s[i];\n else if (p[i] !== s[i]) return null;\n }\n return values;\n}\n\n/**\n * The redirect a request for `path` follows, or null: an exact `from` first, then the first pattern that matches, its\n * `:name` values put into `to`. ONE hop — what `to` answers is the next request's business.\n */\nexport function matchRedirect(redirects: ReadonlyArray<SiteRedirect>, path: string): { to: string; code: number } | null {\n const at = redirectPath(path);\n if (!at) return null;\n const exact = redirects.find(r => !segmentsOf(r.from).some(isParam) && redirectPath(r.from) === at);\n if (exact) return { to: exact.to, code: exact.code };\n for (const r of redirects) {\n if (!segmentsOf(r.from).some(isParam)) continue;\n const values = bind(r.from, at);\n if (!values) continue;\n const to = segmentsOf(r.to).map(s => (isParam(s) ? values[s] ?? s : s)).join('/');\n return { to: `/${to}`, code: r.code };\n }\n return null;\n}\n\n/** What a new redirect is judged against: the site's page routes (`/work/:slug` included) and the redirects it has. */\nexport interface RedirectContext {\n pageRoutes: ReadonlyArray<string>;\n redirects: ReadonlyArray<Pick<SiteRedirect, 'from' | 'to'>>;\n}\n\n/**\n * Why `candidate` may not be written, or null. A `from` must not be where a page answers (it would hide the page); a\n * `to` must not be another redirect's `from` and a `from` not another's `to` (no chains, so no loops — the engine\n * follows one hop); one redirect per `from`.\n */\nexport function redirectRefusal(candidate: Pick<SiteRedirect, 'from' | 'to'>, context: RedirectContext): RedirectRefusal | null {\n const from = redirectPath(candidate.from);\n const to = redirectPath(candidate.to);\n if (!from || !to || from === '/') return RedirectRefusal.NotAPath;\n const names = new Set(segmentsOf(from).filter(isParam));\n if (segmentsOf(to).some(s => isParam(s) && !names.has(s))) return RedirectRefusal.NotAPath;\n if (from === to) return RedirectRefusal.Same;\n const pattern = segmentsOf(from).some(isParam);\n if (context.pageRoutes.some(route => (pattern ? overlaps(route, from) : redirectPath(route) === from))) return RedirectRefusal.ShadowsPage;\n const others = context.redirects.map(r => ({ from: redirectPath(r.from), to: redirectPath(r.to) }));\n if (others.some(r => r.from === from)) return RedirectRefusal.Taken;\n if (others.some(r => (r.from && overlaps(r.from, to)) || (r.to && overlaps(r.to, from)))) return RedirectRefusal.Loop;\n return null;\n}\n","/*\n * @vectoriox/iox-ui/seo-core — the shared, FRAMEWORK-FREE core of page SEO.\n *\n * ⚠️ Nothing in this entry point may import Angular, RxJS, the DOM, or Node. It is consumed by\n * THREE runtimes: the builder panel (Angular), the SSR engine (Angular), and `iox-cms` (NestJS,\n * plain Node) — the same reason `forms-core` exists.\n *\n * A page describes itself to a crawler exactly once: `seoToTags` is the only place that decides\n * which head tags a page emits, and `buildSeoSchemaProperties` the only place that declares what an\n * author can fill in. See iox-ai-guidance `architecture/cms/seo-plan.md`.\n */\n\nexport * from './seo.model';\nexport * from './normalize';\nexport * from './tags';\nexport * from './schema';\nexport * from './redirects';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":"AAAA;;;;;;;AAOG;AAsEH;;;;;;AAMG;AACI,MAAM,mBAAmB,GAAsB;IAClD,OAAO;IACP,aAAa;IACb,cAAc;IACd,UAAU;IACV,gBAAgB;IAChB,UAAU;IACV,eAAe;IACf,qBAAqB;IACrB,eAAe;;AAMnB;;;;;;AAMG;AACI,MAAM,gBAAgB,GAA4D;AACrF,IAAA,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE;AAC1C,IAAA,EAAE,KAAK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O,eAAe,CAAC,KAAK;AACnE,IAAA,IAAI,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,IAAI,QAAQ,CAAC,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,EAAE,IAAI,QAAQ,CAAC,CAAC,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC,CAAC;QAAE,OAAO,eAAe,CAAC,IAAI;AACrH,IAAA,OAAO,IAAI;AACf;;AC/IA;;;;;;;;;;AAUG;;ACVH;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"vectoriox-iox-ui-seo-core.mjs","sources":["../../../projects/iox-ui/src/seo-core/seo.model.ts","../../../projects/iox-ui/src/seo-core/normalize.ts","../../../projects/iox-ui/src/seo-core/tags.ts","../../../projects/iox-ui/src/seo-core/schema.ts","../../../projects/iox-ui/src/seo-core/redirects.ts","../../../projects/iox-ui/src/seo-core/public-api.ts","../../../projects/iox-ui/src/seo-core/vectoriox-iox-ui-seo-core.ts"],"sourcesContent":["/**\n * The canonical shape of a page's SEO metadata, plus the flat tag list both renderers emit.\n *\n * ⚠️ This file is the ONLY declaration of that shape. Before it existed, `iox-cms` stored\n * `seo.og.title` while the SSR engine read a flat `seo.ogTitle`, so no Open Graph tag had ever been\n * emitted, and `iox-cms-client` carried a third, hand-copied variant of the same schema. See\n * iox-ai-guidance `architecture/cms/seo-plan.md`.\n */\n\n/** Open Graph subset we author and emit. */\nexport interface SeoOg {\n title?: string;\n description?: string;\n image?: string;\n}\n\n/** Twitter-card subset. Emitted only when `card` is set — see `seoToTags`. */\nexport interface SeoTwitter {\n card?: string;\n title?: string;\n description?: string;\n image?: string;\n}\n\n/** Sitemap participation for this page. Consumed by the sitemap route (plan phase 3). */\nexport interface SeoSitemap {\n include?: boolean;\n priority?: number;\n changeFreq?: string;\n}\n\n/**\n * A page's stored SEO metadata, normalized.\n *\n * `keywords` has no authoring field — search engines have ignored the tag for over a decade — but\n * it is read and emitted when a document already carries one, because the engine used to read it.\n */\nexport interface SeoDoc {\n title?: string;\n description?: string;\n keywords?: string;\n canonicalUrl?: string;\n robots?: string;\n og?: SeoOg;\n twitter?: SeoTwitter;\n structuredData?: unknown;\n sitemap?: SeoSitemap;\n}\n\n/**\n * A binding on an SEO field. Structurally the resolvable part of an `IoxBinding` — `source` picks an\n * entry in the page's resolved data (`$current` on a template page), `path` walks into it, `pipes`\n * are the render-time transforms. Typed loosely because the pipe catalog lives in the main\n * `@vectoriox/iox-ui` entry point, which this framework-free one must not import.\n */\nexport interface SeoBinding {\n source: string;\n path?: string;\n pipes?: readonly unknown[];\n}\n\n/**\n * One SEO field as stored once it carries more than a typed string.\n *\n * The ladder is `override` → `binding` → auto; `auto: false` opts that field out of the automatic\n * value, leaving it genuinely empty. A bare `string` in a stored document means `{ override }`, so\n * nothing has to be migrated.\n */\nexport interface SeoFieldValue {\n override?: string;\n binding?: SeoBinding;\n auto?: false;\n}\n\n/** A stored SEO document, before resolution: any text field may be a plain string or a value object. */\nexport type SeoRawDoc = Record<string, unknown>;\n\n/**\n * The text fields that can carry a binding, as dotted paths into the document.\n *\n * One list, used by the resolver and (phase 2) by the panel that draws the bind affordance — so a\n * field can never be bindable in the UI and ignored at render time. `robots`, `sitemap.*` and\n * `structuredData` are deliberately absent: they are pick-lists and blobs, not prose.\n */\nexport const SEO_BINDABLE_FIELDS: readonly string[] = [\n 'title',\n 'description',\n 'canonicalUrl',\n 'og.title',\n 'og.description',\n 'og.image',\n 'twitter.title',\n 'twitter.description',\n 'twitter.image',\n];\n\n/** Where an automatic value comes from when a field has neither an override nor a binding. */\nexport type SeoAutoSource = 'contentTitle' | 'contentDescription' | 'contentImage' | 'pageUrl';\n\n/**\n * The bottom rung of the ladder, as a table rather than a chain of ifs.\n *\n * Deliberately short. `og:title` and `twitter:*` are NOT here — `seoToTags` already falls back to\n * the page title for them, and materialising a copy of a value we did not author would only make\n * later drift harder to see.\n */\nexport const SEO_AUTO_SOURCES: ReadonlyArray<{ field: string; source: SeoAutoSource }> = [\n { field: 'title', source: 'contentTitle' },\n { field: 'description', source: 'contentDescription' },\n { field: 'og.image', source: 'contentImage' },\n { field: 'canonicalUrl', source: 'pageUrl' },\n];\n\n/** `<title>`. */\nexport interface SeoTitleTag {\n kind: 'title';\n content: string;\n}\n\n/**\n * A `<meta>` tag. `attr` says which attribute identifies it — Open Graph is addressed by\n * `property`, everything else by `name`. Both renderers need that distinction to update rather\n * than duplicate a tag.\n */\nexport interface SeoMetaTag {\n kind: 'meta';\n attr: 'name' | 'property';\n key: string;\n content: string;\n}\n\n/** A `<link>`, currently only `rel=\"canonical\"`. */\nexport interface SeoLinkTag {\n kind: 'link';\n rel: string;\n href: string;\n}\n\nexport type SeoTag = SeoTitleTag | SeoMetaTag | SeoLinkTag;\n\n/** Context that lets `seoToTags` fill gaps without reaching for the DOM or a data source. */\nexport interface SeoTagContext {\n /** Used as `<title>` when the document has none — usually the page name. */\n fallbackTitle?: string;\n}\n\n/** Recommended maximum before search results truncate the title. */\nexport const SEO_TITLE_MAX = 60;\n\n/** Recommended maximum before search results truncate the description. */\nexport const SEO_DESCRIPTION_MAX = 160;\n\nexport const SEO_ROBOTS_OPTIONS: ReadonlyArray<{ label: string; value: string }> = [\n { label: 'Index, Follow', value: 'index, follow' },\n { label: 'Index, No Follow', value: 'index, nofollow' },\n { label: 'No Index, Follow', value: 'noindex, follow' },\n { label: 'No Index, No Follow', value: 'noindex, nofollow' },\n];\n\n/** A page kept out of search but its links still followed — what a page the owner's old site kept out of search moves\n * with (Bring my site X6). */\nexport const SEO_ROBOTS_NOINDEX = 'noindex, follow';\n\nexport const SEO_TWITTER_CARD_OPTIONS: ReadonlyArray<{ label: string; value: string }> = [\n { label: 'Summary', value: 'summary' },\n { label: 'Summary Large Image', value: 'summary_large_image' },\n { label: 'App', value: 'app' },\n { label: 'Player', value: 'player' },\n];\n\nexport const SEO_CHANGE_FREQ_OPTIONS: ReadonlyArray<{ label: string; value: string }> = [\n { label: 'Always', value: 'always' },\n { label: 'Hourly', value: 'hourly' },\n { label: 'Daily', value: 'daily' },\n { label: 'Weekly', value: 'weekly' },\n { label: 'Monthly', value: 'monthly' },\n { label: 'Yearly', value: 'yearly' },\n { label: 'Never', value: 'never' },\n];\n","import { SeoDoc, SeoOg, SeoSitemap, SeoTwitter } from './seo.model';\n\n/**\n * Coerce whatever a page document happens to hold into a `SeoDoc`.\n *\n * Every consumer calls this before reading `seo`, because four shapes are in the wild:\n * • the current nested shape (`og.title`);\n * • the flat shape the SSR engine used to read (`ogTitle`) — never actually written, but a\n * document hand-edited against the old engine code could carry it;\n * • `\"\"` for \"not set\", which must not become an empty `<meta>`;\n * • `{ override: '…' }`, the per-field value object that plan phase 2 introduces — tolerated here\n * so the ladder can land without a second normalizer.\n *\n * Empty branches are dropped rather than left as `{}`, so `if (seo.og)` is a meaningful test.\n */\nexport function normalizeSeoDoc(raw: unknown): SeoDoc {\n const src = asRecord(raw);\n if (!src) return {};\n\n const og = compact<SeoOg>({\n title: seoString(pick(src, 'og', 'title') ?? src['ogTitle']),\n description: seoString(pick(src, 'og', 'description') ?? src['ogDescription']),\n image: seoString(pick(src, 'og', 'image') ?? src['ogImage']),\n });\n\n const twitter = compact<SeoTwitter>({\n card: seoString(pick(src, 'twitter', 'card')),\n title: seoString(pick(src, 'twitter', 'title')),\n description: seoString(pick(src, 'twitter', 'description')),\n image: seoString(pick(src, 'twitter', 'image')),\n });\n\n const sitemap = compact<SeoSitemap>({\n include: bool(pick(src, 'sitemap', 'include')),\n priority: num(pick(src, 'sitemap', 'priority')),\n changeFreq: seoString(pick(src, 'sitemap', 'changeFreq')),\n });\n\n const structuredData = structured(src['structuredData']);\n\n const doc = compact<SeoDoc>({\n title: seoString(src['title']),\n description: seoString(src['description']),\n keywords: seoString(src['keywords']),\n canonicalUrl: seoString(src['canonicalUrl']),\n robots: seoString(src['robots']),\n og,\n twitter,\n sitemap,\n structuredData,\n });\n\n return doc ?? {};\n}\n\n/** Read `src[branch][leaf]` without assuming the branch exists or is an object. */\nfunction pick(src: Record<string, unknown>, branch: string, leaf: string): unknown {\n const nested = asRecord(src[branch]);\n return nested ? nested[leaf] : undefined;\n}\n\n/**\n * A field's value as a trimmed string, or `undefined`. Exported because the resolver needs the exact\n * same coercion for a value it has just pulled out of a data source.\n *\n * Unwraps the value object: a bound or auto field has no `override`, so it correctly resolves to\n * `undefined` here and `resolveSeo` fills it in from the lower rungs.\n */\nexport function seoString(value: unknown): string | undefined {\n const wrapper = asRecord(value);\n const raw = wrapper ? wrapper['override'] : value;\n if (typeof raw === 'number') return String(raw);\n if (typeof raw !== 'string') return undefined;\n const trimmed = raw.trim();\n return trimmed.length ? trimmed : undefined;\n}\n\n/**\n * `UIFormToDTO` can hand back `\"true\"` / `\"false\"` for a switch (see\n * `architecture/cms/shop.md` — the boolean/number coercion pitfall), so accept both.\n */\nfunction bool(value: unknown): boolean | undefined {\n if (typeof value === 'boolean') return value;\n if (value === 'true') return true;\n if (value === 'false') return false;\n return undefined;\n}\n\nfunction num(value: unknown): number | undefined {\n if (typeof value === 'number') return Number.isFinite(value) ? value : undefined;\n if (typeof value !== 'string' || !value.trim().length) return undefined;\n const parsed = Number(value);\n return Number.isFinite(parsed) ? parsed : undefined;\n}\n\n/** JSON-LD is stored as an object or as a JSON string from the `json` controller. */\nfunction structured(value: unknown): unknown {\n if (typeof value === 'string') {\n const trimmed = value.trim();\n if (!trimmed.length) return undefined;\n try {\n return JSON.parse(trimmed);\n } catch {\n return undefined;\n }\n }\n if (Array.isArray(value)) return value.length ? value : undefined;\n const record = asRecord(value);\n return record && Object.keys(record).length ? record : undefined;\n}\n\nfunction asRecord(value: unknown): Record<string, unknown> | undefined {\n return value !== null && typeof value === 'object' && !Array.isArray(value)\n ? (value as Record<string, unknown>)\n : undefined;\n}\n\n/** Drop `undefined` values and empty nested objects, so absence is always `undefined`. */\nfunction compact<T extends object>(value: Record<string, unknown>): T | undefined {\n const out: Record<string, unknown> = {};\n for (const [key, entry] of Object.entries(value)) {\n if (entry === undefined) continue;\n out[key] = entry;\n }\n return (Object.keys(out).length ? out : undefined) as T | undefined;\n}\n\n/**\n * Words cut to `max` characters on a word boundary, with an ellipsis only when something was cut — a search result's\n * title (`SEO_TITLE_MAX`) or line (`SEO_DESCRIPTION_MAX`). White space collapses. Shared by the composer (a composed\n * page's words) and Bring my site (an old page's own title and line, X6).\n */\nexport function fitSeoText(text: string, max: number): string {\n const clean = text.replace(/\\s+/g, ' ').trim();\n if (clean.length <= max) return clean;\n const cut = clean.slice(0, max - 1);\n const at = cut.lastIndexOf(' ');\n return `${(at > max / 2 ? cut.slice(0, at) : cut).trimEnd()}…`;\n}\n","import { SeoDoc, SeoTag, SeoTagContext } from './seo.model';\nimport { normalizeSeoDoc } from './normalize';\n\n/**\n * Turn a page's SEO document into the flat list of head tags to emit.\n *\n * Both renderers call this, so a page cannot describe itself differently to a crawler than the\n * builder previews. The order is fixed and part of the contract: title, description, keywords,\n * canonical, Open Graph, Twitter, robots.\n *\n * Fallbacks are deliberately shallow — `og:title` reuses the page title, `twitter:*` reuses the\n * Open Graph values — because a social scraper that finds no `og:title` falls back to `<title>`\n * itself, and duplicating a value we did not author only makes the drift harder to see. The\n * \"derive from the page content\" half of the ladder (first h1, first paragraph, first image) is\n * `resolveSeo`, which runs BEFORE this and hands its output in as a filled-in `SeoDoc`.\n */\nexport function seoToTags(seo: SeoDoc | unknown, ctx: SeoTagContext = {}): SeoTag[] {\n const doc = normalizeSeoDoc(seo);\n const tags: SeoTag[] = [];\n\n const title = doc.title ?? trimmed(ctx.fallbackTitle);\n if (title) tags.push({ kind: 'title', content: title });\n if (doc.description) tags.push({ kind: 'meta', attr: 'name', key: 'description', content: doc.description });\n if (doc.keywords) tags.push({ kind: 'meta', attr: 'name', key: 'keywords', content: doc.keywords });\n if (doc.canonicalUrl) tags.push({ kind: 'link', rel: 'canonical', href: doc.canonicalUrl });\n\n // Open Graph. `og:url` reuses the canonical URL, which is what it means.\n const ogTitle = doc.og?.title ?? title;\n const ogDescription = doc.og?.description ?? doc.description;\n if (ogTitle) tags.push({ kind: 'meta', attr: 'property', key: 'og:title', content: ogTitle });\n if (ogDescription) tags.push({ kind: 'meta', attr: 'property', key: 'og:description', content: ogDescription });\n if (doc.og?.image) tags.push({ kind: 'meta', attr: 'property', key: 'og:image', content: doc.og.image });\n if (doc.canonicalUrl) tags.push({ kind: 'meta', attr: 'property', key: 'og:url', content: doc.canonicalUrl });\n\n // Twitter. Emitted ONLY when a card type is chosen: without `twitter:card` the other tags are\n // ignored anyway, so writing them would be noise that looks like configuration.\n if (doc.twitter?.card) {\n tags.push({ kind: 'meta', attr: 'name', key: 'twitter:card', content: doc.twitter.card });\n const twitterTitle = doc.twitter.title ?? ogTitle;\n const twitterDescription = doc.twitter.description ?? ogDescription;\n const twitterImage = doc.twitter.image ?? doc.og?.image;\n if (twitterTitle) tags.push({ kind: 'meta', attr: 'name', key: 'twitter:title', content: twitterTitle });\n if (twitterDescription) {\n tags.push({ kind: 'meta', attr: 'name', key: 'twitter:description', content: twitterDescription });\n }\n if (twitterImage) tags.push({ kind: 'meta', attr: 'name', key: 'twitter:image', content: twitterImage });\n }\n\n if (doc.robots) tags.push({ kind: 'meta', attr: 'name', key: 'robots', content: doc.robots });\n\n return tags;\n}\n\nfunction trimmed(value: string | undefined): string | undefined {\n const out = value?.trim();\n return out?.length ? out : undefined;\n}\n","import {\n SEO_CHANGE_FREQ_OPTIONS,\n SEO_DESCRIPTION_MAX,\n SEO_ROBOTS_OPTIONS,\n SEO_TITLE_MAX,\n SEO_TWITTER_CARD_OPTIONS,\n} from './seo.model';\n\n/**\n * The authoring schema for the `seo` object, in the platform's standard property dialect: `label`\n * at property level, rendering metadata under `controller`.\n *\n * ONE builder, two callers: `iox-cms` spreads it into `PagesSchema` (the stored schema) and\n * `iox-cms-client` feeds it to `<dynamic-form>`. Those used to be two hand-written copies that had\n * already drifted — different controller types for the same field, and the client's copy missing\n * `structuredData` entirely.\n *\n * `keywords` is deliberately absent: the tag is emitted when a document carries one, but there is\n * no reason to invite new ones.\n */\nexport function buildSeoSchemaProperties(): Record<string, unknown> {\n return {\n title: {\n type: 'string',\n label: 'Meta Title',\n controller: {\n type: 'text',\n placeholder: 'Page title for search engines',\n maxLength: SEO_TITLE_MAX,\n },\n },\n description: {\n type: 'string',\n label: 'Meta Description',\n controller: {\n type: 'textarea',\n placeholder: 'Brief description for search results',\n maxLength: SEO_DESCRIPTION_MAX,\n },\n },\n canonicalUrl: {\n type: 'string',\n label: 'Canonical URL',\n controller: {\n type: 'text',\n placeholder: 'https://example.com/page',\n },\n },\n robots: {\n type: 'string',\n label: 'Robots',\n controller: {\n type: 'select',\n options: SEO_ROBOTS_OPTIONS.map(option => ({ ...option })),\n },\n },\n og: {\n type: 'object',\n label: 'Open Graph',\n controller: { type: 'object' },\n properties: {\n title: {\n type: 'string',\n label: 'OG Title',\n controller: { type: 'text', placeholder: 'Title for social sharing' },\n },\n description: {\n type: 'string',\n label: 'OG Description',\n controller: { type: 'textarea', placeholder: 'Description for social sharing' },\n },\n image: {\n type: 'string',\n label: 'OG Image',\n controller: { type: 'media' },\n },\n },\n },\n twitter: {\n type: 'object',\n label: 'Twitter Card',\n controller: { type: 'object' },\n properties: {\n card: {\n type: 'string',\n label: 'Card Type',\n controller: {\n type: 'select',\n options: SEO_TWITTER_CARD_OPTIONS.map(option => ({ ...option })),\n },\n },\n title: {\n type: 'string',\n label: 'Twitter Title',\n controller: { type: 'text' },\n },\n description: {\n type: 'string',\n label: 'Twitter Description',\n controller: { type: 'textarea' },\n },\n image: {\n type: 'string',\n label: 'Twitter Image',\n controller: { type: 'media' },\n },\n },\n },\n structuredData: {\n type: 'object',\n label: 'Structured Data (JSON-LD)',\n // `code`, not `json`: the client registers `code` (CodeMirror) and has no `json`\n // controller, so a `json` declaration silently falls back to a plain text box.\n controller: { type: 'code', options: { language: 'json' } },\n },\n sitemap: {\n type: 'object',\n label: 'Sitemap Settings',\n controller: { type: 'object' },\n properties: {\n include: {\n type: 'boolean',\n label: 'Include in Sitemap',\n controller: { type: 'switch' },\n },\n priority: {\n type: 'number',\n label: 'Priority',\n controller: { type: 'range', options: { min: 0, max: 1, step: 0.1 } },\n },\n changeFreq: {\n type: 'string',\n label: 'Change Frequency',\n controller: {\n type: 'select',\n options: SEO_CHANGE_FREQ_OPTIONS.map(option => ({ ...option })),\n },\n },\n },\n },\n };\n}\n","/**\n * Redirects — an old address that answers with another (Bring my site X7, site-build plan §3l, decision X-D3).\n *\n * ONE rule for the three places that need it: iox-cms refuses a redirect that would shadow a page or loop when it is\n * written (an import's or the owner's own), the SSR engine answers a request with the redirect that matches it before it\n * renders, and generation-core lists the redirects an import makes. Framework-free and pure.\n *\n * A redirect's `from` is a PATH on the studio's own site — exact (`/portfolio/blue-bowl`) or a pattern whose `:name`\n * segments match one segment each (`/portfolio/:slug`); its `to` is a path that may use the same names\n * (`/work/:slug`). Exact redirects win over patterns; the engine follows ONE hop.\n */\n\n/** The status a redirect answers with: moved for good (the import's, and the default) or for now. */\nexport enum RedirectCode {\n Permanent = 301,\n Temporary = 302,\n}\n\nexport const REDIRECT_CODES: ReadonlyArray<number> = [RedirectCode.Permanent, RedirectCode.Temporary];\n\n/** One redirect, as the engine reads it (`GET api/site/:orgId/redirects`). */\nexport interface SiteRedirect {\n from: string;\n to: string;\n code: number;\n}\n\n/** Why a redirect is not written — said to the owner, never a silent skip. */\nexport enum RedirectRefusal {\n /** `from` or `to` is not a path of this site (`/…`), or `to`'s `:name` is not one `from` has. */\n NotAPath = 'not-a-path',\n /** It would send an address to itself. */\n Same = 'same',\n /** `from` is the address of a page of the site — the page answers there; a redirect would hide it. (An exact old\n * address under a page PATTERN — `/blog/Old-Post` beside `/blog/:slug` — is not: no item answers there yet.) */\n ShadowsPage = 'shadows-page',\n /** `to` is another redirect's `from`, or `from` another's `to` — a chain, or a loop. */\n Loop = 'loop',\n /** Another redirect already starts at this `from`. */\n Taken = 'taken',\n}\n\nconst MAX_PATH = 2_048;\nconst PARAM = /^:[a-z_][a-z0-9_]*$/i;\n\nconst segmentsOf = (path: string): string[] => path.split('/').filter(Boolean);\nconst isParam = (segment: string): boolean => PARAM.test(segment);\n\n/**\n * An address as a redirect path: an absolute address's path, or a path — without its query and fragment, with one leading\n * slash, no repeated or trailing slash (`/about/` and `/about` are one address), each segment percent-encoded one way.\n * Null when it is neither. Letter case is kept: `/About` is not `/about`.\n */\nexport function redirectPath(address: string | null | undefined): string | null {\n if (typeof address !== 'string') return null;\n let text = address.trim();\n if (!text || text.length > MAX_PATH) return null;\n if (/^https?:\\/\\//i.test(text)) {\n try {\n text = new URL(text).pathname;\n } catch {\n return null;\n }\n }\n if (!text.startsWith('/') || text.startsWith('//')) return null;\n text = text.split(/[?#]/, 1)[0];\n if (/\\s/.test(text)) return null;\n return `/${segmentsOf(text).map(sameEncoding).join('/')}`;\n}\n\n/** One segment as a browser sends it: `%d7%90` (a WordPress link) and `%D7%90` (what Chrome asks for) and `א` are one. */\nfunction sameEncoding(segment: string): string {\n if (isParam(segment)) return segment;\n try {\n return encodeURIComponent(decodeURIComponent(segment));\n } catch {\n return segment;\n }\n}\n\n/** The two shapes overlap: some address answers both (a `:name` segment matches any one segment). */\nfunction overlaps(a: string, b: string): boolean {\n const x = segmentsOf(a);\n const y = segmentsOf(b);\n return x.length === y.length && x.every((s, i) => s === y[i] || isParam(s) || isParam(y[i]));\n}\n\n/** `path` against a pattern: the values of its `:name` segments, or null when it does not match. */\nfunction bind(pattern: string, path: string): Record<string, string> | null {\n const p = segmentsOf(pattern);\n const s = segmentsOf(path);\n if (p.length !== s.length) return null;\n const values: Record<string, string> = {};\n for (let i = 0; i < p.length; i++) {\n if (isParam(p[i])) values[p[i]] = s[i];\n else if (p[i] !== s[i]) return null;\n }\n return values;\n}\n\n/** The redirect that answers `at` (already a redirect path) and where it sends it: an exact `from` first, then the first\n * pattern that matches, its `:name` values put into `to`. */\nfunction hop<R extends Pick<SiteRedirect, 'from' | 'to'>>(redirects: ReadonlyArray<R>, at: string): { redirect: R; to: string } | null {\n const exact = redirects.find(r => !segmentsOf(r.from).some(isParam) && redirectPath(r.from) === at);\n if (exact) return { redirect: exact, to: exact.to };\n for (const r of redirects) {\n if (!segmentsOf(r.from).some(isParam)) continue;\n const values = bind(r.from, at);\n if (!values) continue;\n const to = segmentsOf(r.to).map(s => (isParam(s) ? values[s] ?? s : s)).join('/');\n return { redirect: r, to: `/${to}` };\n }\n return null;\n}\n\n/**\n * The redirect a request for `path` follows, or null: an exact `from` first, then the first pattern that matches, its\n * `:name` values put into `to`. ONE hop — what `to` answers is the next request's business.\n */\nexport function matchRedirect(redirects: ReadonlyArray<SiteRedirect>, path: string): { to: string; code: number } | null {\n const at = redirectPath(path);\n if (!at) return null;\n const found = hop(redirects, at);\n return found ? { to: found.to, code: found.redirect.code } : null;\n}\n\n/**\n * Where a visitor sent to `to` finally lands, or null when `to` is no redirect's `from` (nothing to follow) or the chain\n * comes back on itself (no end to offer). The owner's dialog offers it when a new redirect is refused as a chain\n * (`RedirectRefusal.Loop`): \"send it to /about instead\" (X9-D8). Follows every hop, exact before pattern, the same match\n * the engine makes — the offer is judged again by `redirectRefusal` before it is shown.\n */\nexport function redirectChainEnd(redirects: ReadonlyArray<Pick<SiteRedirect, 'from' | 'to'>>, to: string): string | null {\n let at = redirectPath(to);\n if (!at) return null;\n const seen = new Set<string>([at]);\n for (let found = hop(redirects, at); found; found = hop(redirects, at)) {\n const next = redirectPath(found.to);\n if (!next || seen.has(next)) return null;\n seen.add(next);\n at = next;\n }\n return seen.size > 1 ? at : null;\n}\n\n/** What a new redirect is judged against: the site's page routes (`/work/:slug` included) and the redirects it has. */\nexport interface RedirectContext {\n pageRoutes: ReadonlyArray<string>;\n redirects: ReadonlyArray<Pick<SiteRedirect, 'from' | 'to'>>;\n}\n\n/**\n * Why `candidate` may not be written, or null. A `from` must not be where a page answers (it would hide the page); a\n * `to` must not be another redirect's `from` and a `from` not another's `to` (no chains, so no loops — the engine\n * follows one hop); one redirect per `from`.\n */\nexport function redirectRefusal(candidate: Pick<SiteRedirect, 'from' | 'to'>, context: RedirectContext): RedirectRefusal | null {\n const from = redirectPath(candidate.from);\n const to = redirectPath(candidate.to);\n if (!from || !to || from === '/') return RedirectRefusal.NotAPath;\n const names = new Set(segmentsOf(from).filter(isParam));\n if (segmentsOf(to).some(s => isParam(s) && !names.has(s))) return RedirectRefusal.NotAPath;\n if (from === to) return RedirectRefusal.Same;\n const pattern = segmentsOf(from).some(isParam);\n if (context.pageRoutes.some(route => (pattern ? overlaps(route, from) : redirectPath(route) === from))) return RedirectRefusal.ShadowsPage;\n const others = context.redirects.map(r => ({ from: redirectPath(r.from), to: redirectPath(r.to) }));\n if (others.some(r => r.from === from)) return RedirectRefusal.Taken;\n if (others.some(r => (r.from && overlaps(r.from, to)) || (r.to && overlaps(r.to, from)))) return RedirectRefusal.Loop;\n return null;\n}\n","/*\n * @vectoriox/iox-ui/seo-core — the shared, FRAMEWORK-FREE core of page SEO.\n *\n * ⚠️ Nothing in this entry point may import Angular, RxJS, the DOM, or Node. It is consumed by\n * THREE runtimes: the builder panel (Angular), the SSR engine (Angular), and `iox-cms` (NestJS,\n * plain Node) — the same reason `forms-core` exists.\n *\n * A page describes itself to a crawler exactly once: `seoToTags` is the only place that decides\n * which head tags a page emits, and `buildSeoSchemaProperties` the only place that declares what an\n * author can fill in. See iox-ai-guidance `architecture/cms/seo-plan.md`.\n */\n\nexport * from './seo.model';\nexport * from './normalize';\nexport * from './tags';\nexport * from './schema';\nexport * from './redirects';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":"AAAA;;;;;;;AAOG;AAsEH;;;;;;AAMG;AACI,MAAM,mBAAmB,GAAsB;IAClD,OAAO;IACP,aAAa;IACb,cAAc;IACd,UAAU;IACV,gBAAgB;IAChB,UAAU;IACV,eAAe;IACf,qBAAqB;IACrB,eAAe;;AAMnB;;;;;;AAMG;AACI,MAAM,gBAAgB,GAA4D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