@bettercms-ai/types 1.68.0 → 1.70.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/dist/index.d.ts CHANGED
@@ -159,7 +159,7 @@ type DefSources = Partial<Record<SourcedFacet, SchemaSource>>;
159
159
  declare const mayOverwrite: (stored: SchemaSource | undefined, incoming: SchemaSource) => boolean;
160
160
  declare const UI_REFUSAL_CODES: {
161
161
  readonly schema: readonly ["facet_unclassified", "excluded_facet", "depth_exceeded", "validation_failed", "hash_mismatch", "non_finite_number", "shape_kind_mismatch", "block_field_unrenderable", "block_not_accepted", "derived_field", "feature_unknown"];
162
- readonly build: readonly ["peer_missing", "kit_major_unsupported", "compile_error", "nondeterministic", "size_exceeded", "import_denied", "name_conflict"];
162
+ readonly build: readonly ["peer_missing", "kit_major_unsupported", "compile_error", "nondeterministic", "size_exceeded", "import_denied", "name_conflict", "raw_control"];
163
163
  readonly protocol: readonly ["unsupported", "handshake_timeout", "origin_mismatch", "write_denied"];
164
164
  readonly runtime: readonly ["crashed", "blank", "csp_violation"];
165
165
  readonly policy: readonly ["confirmation_required", "flag_off", "not_approved"];
@@ -2340,6 +2340,12 @@ interface LayoutSection {
2340
2340
  * SLOT's: a locale variant shows when its base does, whatever the variant's own row says.
2341
2341
  */
2342
2342
  window?: VisibilityWindow;
2343
+ /**
2344
+ * The Section's design and settings, the same bag a page section carries as `block.style`
2345
+ * (spacing, theme, background, `hideOn`, `anchor`, `cssClass`), drawn the same way on the live
2346
+ * site. Absent = none. Written whole by `update-section` `style` (null or `{}` clears it).
2347
+ */
2348
+ style?: BlockStyle;
2343
2349
  /** The dock's groups, rows and tabs over `fields`, as a content model's `fieldsets` (`design-section`). */
2344
2350
  fieldsets?: Array<{
2345
2351
  id: string;
@@ -2508,6 +2514,7 @@ type ManagementLayoutCommand = {
2508
2514
  orderKey?: string;
2509
2515
  description?: string;
2510
2516
  window?: VisibilityWindow | null;
2517
+ style?: BlockStyle | null;
2511
2518
  } | {
2512
2519
  type: "remove-section";
2513
2520
  sectionId: string;
@@ -2610,6 +2617,12 @@ interface DeliveredLayout {
2610
2617
  variantOf?: string;
2611
2618
  /** Present only on a Section that has one. A published read never delivers a Section outside it. */
2612
2619
  window?: VisibilityWindow;
2620
+ /**
2621
+ * Present only on a Section that has one: its design and settings, as a page section's
2622
+ * `block.style`. A site that draws its own chrome spreads `sectionRootAttrs({ style })` on
2623
+ * the Section's root, as it does for a page section.
2624
+ */
2625
+ style?: BlockStyle;
2613
2626
  fields: Record<string, unknown>;
2614
2627
  items: Array<{
2615
2628
  id: string;
@@ -4339,10 +4352,12 @@ declare const MAIN_SELECTOR = "main,[role=\"main\"]";
4339
4352
  *
4340
4353
  * `dialogs` — a `<dialog>`/`[role="dialog"]` is a region of its own (the chrome grammar).
4341
4354
  * `landmarks` — landmark grammar v2. @see isChromeLandmark, and `landmarkRegions` for rule (ii).
4355
+ * `wrappedChrome` — under v2, chrome a page's `<main>` holds in plain wrappers (@see closesMain).
4342
4356
  */
4343
4357
  interface LocatorGrammar {
4344
4358
  dialogs?: boolean;
4345
4359
  landmarks?: boolean;
4360
+ wrappedChrome?: boolean;
4346
4361
  }
4347
4362
  /**
4348
4363
  * Is this element a landmark that holds SITE chrome — a header, nav or footer that earns a region
@@ -4368,13 +4383,22 @@ interface LocatorGrammar {
4368
4383
  * its own direct-child landmarks stay chrome. A landmark deeper inside it (a section's tab list)
4369
4384
  * is still page copy, and a `<main>` that only opens with a header (a changelog's title) still
4370
4385
  * fences it.
4386
+ *
4387
+ * `wrapped` (the `wrappedChrome` grammar, fresh imports only: it moves keys and regions as v2 did)
4388
+ * looks through the plain `<div>` wrappers a builder puts around chrome: a footer that CLOSES the
4389
+ * `<main>` through them is chrome on its own (@see closesMain), and the shell test reads through
4390
+ * them too. A `<footer>` inside an `<article>` or a `<section>` (a post's pager) is never reached.
4391
+ * Behind a sticky mark of its own (`derive_json.wrappedChrome`), as pages already derived under the
4392
+ * full-editability mark hold locators minted without it.
4371
4393
  */
4372
4394
  declare function isChromeLandmark(el: {
4373
4395
  tagName: string;
4374
4396
  parentElement: {
4375
4397
  closest(selectors: string): unknown;
4376
4398
  } | null;
4377
- }, landmarks: boolean): boolean;
4399
+ }, landmarks: boolean,
4400
+ /** Read through `children`, which every `Element` has: only the backend derives in this grammar. */
4401
+ wrapped?: boolean): boolean;
4378
4402
  /**
4379
4403
  * Best-effort by construction — built-DOM positions do not survive component expansion or
4380
4404
  * conditional rendering — so a consumer that finds no exact match, or finds several, falls back
@@ -4451,13 +4475,13 @@ interface LandmarkChainElement extends ElementLike {
4451
4475
  * address that names several elements (`atLocator`, the pin replay, `bindElement`).
4452
4476
  */
4453
4477
  declare function locatorFor(el: ElementLike, region: string | null): DerivedLocator;
4454
- declare function locatorFor(el: LandmarkChainElement, region: string | null, landmarks: boolean): DerivedLocator;
4478
+ declare function locatorFor(el: LandmarkChainElement, region: string | null, landmarks: boolean, wrapped?: boolean): DerivedLocator;
4455
4479
  /**
4456
4480
  * `DerivedLocator.path` for an element: its ancestors' own sibling indices, over the very chain
4457
4481
  * `locatorFor` walks (same stop, same order), so the two always describe one chain.
4458
4482
  */
4459
4483
  declare function locatorPath(el: ElementLike, landmarks?: false): number[];
4460
- declare function locatorPath(el: LandmarkChainElement, landmarks: boolean): number[];
4484
+ declare function locatorPath(el: LandmarkChainElement, landmarks: boolean, wrapped?: boolean): number[];
4461
4485
  /**
4462
4486
  * Where a RESOLVED locator keeps its element's `path`: a symbol, so a locator a resolver hands out
4463
4487
  * has no `path` of its own. Used as the stored side (a pin, a test's expectation) it compares as it
@@ -4504,7 +4528,9 @@ dialogs?: boolean,
4504
4528
  * route's modals did too. A dialog still folds into an enclosing DIALOG, and a landmark
4505
4529
  * into anything enclosing it — nothing else nests.
4506
4530
  */
4507
- landmarks?: boolean): {
4531
+ landmarks?: boolean,
4532
+ /** Under v2, chrome `<main>` holds in plain wrappers is a region too. @see isChromeLandmark `wrapped` */
4533
+ wrapped?: boolean): {
4508
4534
  slot: string;
4509
4535
  el: E;
4510
4536
  }[];
@@ -4523,6 +4549,490 @@ declare function regionOf<E extends {
4523
4549
  el: E;
4524
4550
  }[], el: unknown): string | null;
4525
4551
 
4552
+ /**
4553
+ * THE LOCAL SETUP CONTRACT: the site map `bettercms scan` writes and the manifest `bettercms verify`
4554
+ * uploads (`POST /api/v1/management/projects/current/local-setup`).
4555
+ *
4556
+ * One shape, read by three parties that ship apart: the CLI writes it, the MCP relays it
4557
+ * (`submit_local_setup`), the server stores it. So the shape and its checks live here, the one
4558
+ * package all three already import, and `version` says which shape a file is in. A reader refuses
4559
+ * a version it does not know instead of guessing at it. Each file has its own version: the site map is
4560
+ * at 2 (the style guide, plan 13a) and still reads 1, the manifest is at 1.
4561
+ *
4562
+ * PLAIN TYPESCRIPT, NO SCHEMA LIBRARY, like the rest of this package: the checks are a handful of
4563
+ * small functions below. They are SHAPE AND SIZE checks only. The server still re-checks what it
4564
+ * stores against its own rules: `doc` through the manifest inserter (`seedManifest`), `receipt`
4565
+ * through `conversionReceiptSchema`.
4566
+ *
4567
+ * UNKNOWN KEYS ARE KEPT, never refused: a newer CLI carries fields an older server has not heard of,
4568
+ * and refusing them would make every CLI upgrade break uploads to a server that has not shipped yet
4569
+ * (the receipt's rule, @see src/lib/validation/schemas/conversion-receipt.ts). Known keys are strict.
4570
+ *
4571
+ * @see ~/bcms-work/LOCAL-EDITABLE-PLAN.md sections 4.4, 5.3 and 6
4572
+ */
4573
+ /** The manifest's shape version. A reader refuses any other. */
4574
+ declare const LOCAL_SETUP_VERSION = 1;
4575
+ /**
4576
+ * The site map's shape version, and every version a reader takes. 2 adds the optional `styleGuide`,
4577
+ * 3 each template's section candidates (`templates[].sections`, plan section 7). An older map is the
4578
+ * same shape without them, so it still reads (a map is committed, and an older scan's map must not
4579
+ * stop a newer reader).
4580
+ */
4581
+ declare const SITE_MAP_VERSION = 3;
4582
+ declare const SITE_MAP_VERSIONS: readonly [1, 2, 3];
4583
+ type SiteMapVersion = (typeof SITE_MAP_VERSIONS)[number];
4584
+ /** The front ends the scan reads. V1 ships the first five; `html` is a plain static folder. */
4585
+ declare const LOCAL_FRAMEWORKS: readonly ["astro", "next", "sveltekit", "nuxt", "react", "html"];
4586
+ type LocalFramework = (typeof LOCAL_FRAMEWORKS)[number];
4587
+ /** What a layout file is to the site. `layout` wraps every route; the rest are its chrome parts. */
4588
+ declare const LAYOUT_ROLES: readonly ["layout", "header", "footer", "nav"];
4589
+ type LayoutRole = (typeof LAYOUT_ROLES)[number];
4590
+ /**
4591
+ * Why the scan left a file or a part of one alone. Reported, never dropped (plan 5.2).
4592
+ * The reader accepts any UPPER_SNAKE code, so a newer scan's new reason is not a refusal.
4593
+ */
4594
+ declare const BLOCKED_REASONS: readonly ["CLIENT_ONLY_ISLAND", "INNER_HTML", "COMPUTED_STRING", "DIALECT_UNSUPPORTED", "FILE_TOO_LARGE", "OVER_ROUTE_CAP", "UNRESOLVED_IMPORT", "PARSE_FAILED", "I18N_DICTIONARY"];
4595
+ /**
4596
+ * Byte caps, measured on the RAW (uncompressed) JSON before it is parsed: a cap applied after
4597
+ * `JSON.parse` has already paid for the memory it was meant to refuse. The manifest carries the
4598
+ * site's copy and entries, so it is the big one; the site map holds counts only.
4599
+ */
4600
+ declare const MAX_SITE_MAP_BYTES: number;
4601
+ declare const MAX_LOCAL_SETUP_BYTES: number;
4602
+ /** Count caps. `routes` is the server's own route cap (MAX_BUILT_ROUTES in built-route-list.ts). */
4603
+ declare const LOCAL_SETUP_LIMITS: {
4604
+ readonly routes: 20000;
4605
+ readonly templates: 5000;
4606
+ readonly components: 10000;
4607
+ readonly collections: 500;
4608
+ readonly entryFiles: 20000;
4609
+ readonly fieldsPerCollection: 500;
4610
+ readonly forms: 2000;
4611
+ readonly blocked: 5000;
4612
+ readonly partialDefault: 500;
4613
+ readonly pages: 20000;
4614
+ readonly entriesPerCollection: 20000;
4615
+ readonly evidenceRows: 20000;
4616
+ readonly timings: 64;
4617
+ readonly styleTokens: 2000;
4618
+ /** Per `styleGuide.used` group, and the families the typography names. */
4619
+ readonly styleValues: 50;
4620
+ /** Section candidates per template, and sections per page in the manifest. */
4621
+ readonly sections: 200;
4622
+ /** Field keys one section holds. */
4623
+ readonly sectionFields: 500;
4624
+ };
4625
+ /** Copy found in source, by kind. Counts only: the values stay in the local cache. */
4626
+ interface LiteralCounts {
4627
+ text: number;
4628
+ image: number;
4629
+ link: number;
4630
+ video: number;
4631
+ }
4632
+ interface SiteMapTemplate {
4633
+ /** Stable across runs: the route file, repo-relative (`src/pages/blog/[slug].astro`). */
4634
+ id: string;
4635
+ /** Repo-relative, forward slashes. */
4636
+ file: string;
4637
+ /** The route it serves, with the framework's own params (`/blog/[slug]`). */
4638
+ pattern: string;
4639
+ /** The routes it renders, when the scan can list them. Exactly one of `routes` and `routeCount`. */
4640
+ routes?: string[];
4641
+ /** How many routes it renders, when listing them would be the 700-route problem again. */
4642
+ routeCount?: number;
4643
+ /** Ids of the components it renders, in source order. */
4644
+ components: string[];
4645
+ literals: LiteralCounts;
4646
+ /** The collection whose entries it renders, or null for a singleton page. */
4647
+ collection: string | null;
4648
+ /**
4649
+ * Version 3: its top-level bands, in page order, as `bettercms sectionize` would wrap them: what the
4650
+ * agent plans its sections from (plan section 7). Absent from an older map, and from a template whose
4651
+ * bands cannot be wrapped (`sectionsRefused` says why).
4652
+ */
4653
+ sections?: SiteMapSection[];
4654
+ /** Version 3: why its bands cannot be wrapped (`SECTION_RUN_DYNAMIC`, `DIALECT_UNSUPPORTED`, …). */
4655
+ sectionsRefused?: {
4656
+ code: string;
4657
+ message: string;
4658
+ };
4659
+ /** Version 3: its bands are `<BcmsSections>` slots already (`bettercms sectionize` ran): `sections` are the slots. */
4660
+ sectionsWrapped?: boolean;
4661
+ }
4662
+ /** What a band is written as: one element, a component, an expression (a `.map()`), a fragment, loose text. */
4663
+ declare const SECTION_KINDS: readonly ["element", "component", "expression", "fragment", "text"];
4664
+ /**
4665
+ * ONE SECTION CANDIDATE: a top-level band of a page, read from its source (version 3). Evidence only:
4666
+ * the agent decides what each is (`.bettercms/sections.json`), the tool never does.
4667
+ */
4668
+ interface SiteMapSection {
4669
+ /**
4670
+ * The band's id, unique in its template: the family of the first field it holds (`hero` of
4671
+ * `hero.title`), else its position (`sec2`). The name its slot and its CMS placement take, and the id
4672
+ * the platform measures the band by, so it is never renamed: a section's name for people is `label`.
4673
+ */
4674
+ id: string;
4675
+ /** Where it is written, repo-relative: the template, or the view component the template draws. */
4676
+ file: string;
4677
+ /** Its source span in `file` (UTF-16 offsets, end exclusive) and its first line (1-based). */
4678
+ start: number;
4679
+ end: number;
4680
+ line: number;
4681
+ kind: (typeof SECTION_KINDS)[number];
4682
+ /** A suggested family (`hero`, `call-to-action`): from the component's name, else the element's class, else the id. */
4683
+ sectionType: string;
4684
+ /** A suggested name for the editor (`Hero`, `Call to action`). */
4685
+ label: string;
4686
+ /** The make-editable keys it holds (`hero.title`, `team[].name`), sorted. */
4687
+ fields: string[];
4688
+ /** The component it renders (an id of `components[]`), or null for markup written in the page. */
4689
+ component: string | null;
4690
+ /** Its prop keys: the component's, else its fields under the family. Variants of one family share them. */
4691
+ props: string[];
4692
+ /** The other templates that render the same component at their top level: a repeat is a family's. */
4693
+ repeats: string[];
4694
+ /** Other candidates' components with the same prop keys: variant candidates of one family. */
4695
+ variants: string[];
4696
+ }
4697
+ interface SiteMapComponent {
4698
+ /** Repo-relative file, plus `#Name` when the file exports several. */
4699
+ id: string;
4700
+ file: string;
4701
+ /** Ids of the templates that render it. */
4702
+ usedBy: string[];
4703
+ /** Its prop keys, in declaration order: the variant evidence (same keys, same family). */
4704
+ props: string[];
4705
+ literals: LiteralCounts;
4706
+ /** Rendered at the top level of a template: a section the agent may plan (plan section 7). */
4707
+ sectionCandidate: boolean;
4708
+ }
4709
+ interface SiteMapLayout {
4710
+ file: string;
4711
+ role: LayoutRole;
4712
+ }
4713
+ interface SiteMapField {
4714
+ key: string;
4715
+ /** A content field type as the server spells it (`text`, `richtext`, `image`, `date`, `document`, …). */
4716
+ type: string;
4717
+ required?: boolean;
4718
+ }
4719
+ interface SiteMapCollection {
4720
+ /** The collection slug (`blog`). */
4721
+ id: string;
4722
+ /** Where its entries live: a content folder or a data module, repo-relative. */
4723
+ source: string;
4724
+ fields: SiteMapField[];
4725
+ /** How many entries. A data module's entries have no file of their own, so `files` may be empty. */
4726
+ entries: number;
4727
+ /** The entry files, repo-relative. Bodies are read only at upload. */
4728
+ files: string[];
4729
+ }
4730
+ interface SiteMapLocales {
4731
+ /** The framework's default locale, or null for a single-language site. */
4732
+ default: string | null;
4733
+ locales: string[];
4734
+ /** Message dictionary files. Reported, not bound, in v1 (risk R6). */
4735
+ dictionaries: string[];
4736
+ /** Ids of the templates that read a dictionary. */
4737
+ readBy: string[];
4738
+ }
4739
+ interface SiteMapForm {
4740
+ file: string;
4741
+ /** 1-based. */
4742
+ line: number;
4743
+ /** Ids of the templates that render it. */
4744
+ templates: string[];
4745
+ action: string | null;
4746
+ method: string | null;
4747
+ /** The provider its code already posts to (`HubSpot`), as the CLI's form-handler detection names it. */
4748
+ handler: string | null;
4749
+ /** How many inputs it has. */
4750
+ fields: number;
4751
+ }
4752
+ interface SiteMapMedia {
4753
+ images: number;
4754
+ videos: number;
4755
+ remoteHosts: string[];
4756
+ /** Files over the media CDN policy, for `bettercms media cdn`. */
4757
+ overPolicy: {
4758
+ file: string;
4759
+ bytes: number;
4760
+ }[];
4761
+ }
4762
+ interface SiteMapStyles {
4763
+ tailwind: boolean;
4764
+ /** Global stylesheets, repo-relative. */
4765
+ files: string[];
4766
+ /** Brand colour tokens as the site names them. */
4767
+ colors: {
4768
+ name: string;
4769
+ value: string;
4770
+ }[];
4771
+ }
4772
+ /**
4773
+ * What a design token is for. Grouped by what the site's own name says (`--color-*`, `--radius-md`,
4774
+ * Tailwind's `theme.spacing`), then by its value when the name says nothing (a colour is a colour).
4775
+ */
4776
+ declare const STYLE_TOKEN_GROUPS: readonly ["color", "font", "fontSize", "fontWeight", "lineHeight", "letterSpacing", "spacing", "radius", "shadow", "breakpoint", "other"];
4777
+ type StyleTokenGroup = (typeof STYLE_TOKEN_GROUPS)[number];
4778
+ /** The groups `styleGuide.used` lists the stylesheets' literal values for: what the lint checks a new value against. */
4779
+ declare const STYLE_USED_GROUPS: readonly ["color", "fontSize", "spacing", "radius", "shadow", "breakpoint"];
4780
+ type StyleUsedGroup = (typeof STYLE_USED_GROUPS)[number];
4781
+ interface StyleGuideToken {
4782
+ /**
4783
+ * As the site names it: a custom property (`--color-primary`, Webflow's `--_color---primary--magenta`),
4784
+ * a Tailwind theme path (`colors.brand.500`, `DEFAULT` folded away), or a token file's path (`color.brand`).
4785
+ */
4786
+ name: string;
4787
+ group: StyleTokenGroup;
4788
+ /** The value, `var()` chains followed to the end. Null when a config COMPUTES it: named, never guessed. */
4789
+ value: string | null;
4790
+ /** The token a value that is only `var(--x)` points at, as that token is named. */
4791
+ alias?: string;
4792
+ /** Repo-relative file it is declared in. */
4793
+ source: string;
4794
+ /** Where in that file: `:root`, `[data-theme="dark"]`, `@theme`, `theme`, `theme.extend`, `tokens`, `app.config`. */
4795
+ scope: string;
4796
+ }
4797
+ /** One of the brand's own colours, `#RRGGBB`, with the token that holds it when one does. */
4798
+ interface StyleGuideColor {
4799
+ value: string;
4800
+ token: string | null;
4801
+ }
4802
+ /** An `@font-face` the site ships. */
4803
+ interface StyleGuideFace {
4804
+ family: string;
4805
+ source: string;
4806
+ /** `400`, or a variable face's range `100 900`. */
4807
+ weight?: string;
4808
+ style?: string;
4809
+ }
4810
+ /** One step of the type scale: a font-size token or a heading rule (`h1`), and its size. */
4811
+ interface StyleGuideStep {
4812
+ name: string;
4813
+ size: string;
4814
+ source: string;
4815
+ }
4816
+ /**
4817
+ * THE SITE'S OWN STYLE GUIDE (plan 13a, A): what the coding agent follows on every element and component
4818
+ * it creates, converts or edits, and what the make-editable and sectionize lint holds a new diff to.
4819
+ */
4820
+ interface SiteMapStyleGuide {
4821
+ tokens: StyleGuideToken[];
4822
+ /** The brand's slots, ranked as the server's brand kit ranks them. Null where the CSS says nothing. */
4823
+ primary: {
4824
+ primary: StyleGuideColor | null;
4825
+ accent: StyleGuideColor | null;
4826
+ background: StyleGuideColor | null;
4827
+ text: StyleGuideColor | null;
4828
+ };
4829
+ typography: {
4830
+ /** The heading and body families, read from the rules that set them. */
4831
+ heading: string | null;
4832
+ body: string | null;
4833
+ /** Every family the stylesheets name, in first-use order. */
4834
+ families: string[];
4835
+ faces: StyleGuideFace[];
4836
+ /** Largest first. */
4837
+ scale: StyleGuideStep[];
4838
+ };
4839
+ /** The literal values the stylesheets already use, most used first: the scale of a site that names no tokens. */
4840
+ used: Record<StyleUsedGroup, string[]>;
4841
+ /** The components that render each kind of element: the ones to reuse rather than copy. Ids, as `components[]`. */
4842
+ components: {
4843
+ buttons: string[];
4844
+ cards: string[];
4845
+ headings: string[];
4846
+ };
4847
+ /** The site's own style guide page (`/style-guide`, `/design-system`, `/styleguide`), the reference to read first. */
4848
+ reference: {
4849
+ route: string;
4850
+ file: string;
4851
+ components: string[];
4852
+ } | null;
4853
+ /** The files the guide was read from, repo-relative. */
4854
+ sources: string[];
4855
+ }
4856
+ interface SiteMapBlocked {
4857
+ file: string;
4858
+ /** An UPPER_SNAKE code, one of BLOCKED_REASONS or a newer scan's own. */
4859
+ reason: string;
4860
+ line?: number;
4861
+ message?: string;
4862
+ }
4863
+ interface SiteMap {
4864
+ /** A writer writes SITE_MAP_VERSION; a reader takes any of SITE_MAP_VERSIONS. */
4865
+ version: SiteMapVersion;
4866
+ toolVersion: string;
4867
+ /**
4868
+ * The commit the scan read, or null outside git. The map is committed, so it names the commit
4869
+ * BEFORE the one that holds it: a reader compares it with the parent, never with HEAD.
4870
+ */
4871
+ sha: string | null;
4872
+ framework: LocalFramework;
4873
+ build: {
4874
+ command: string | null;
4875
+ outDir: string | null;
4876
+ };
4877
+ templates: SiteMapTemplate[];
4878
+ components: SiteMapComponent[];
4879
+ layout: SiteMapLayout[];
4880
+ collections: SiteMapCollection[];
4881
+ locales: SiteMapLocales;
4882
+ forms: SiteMapForm[];
4883
+ media: SiteMapMedia;
4884
+ styles: SiteMapStyles;
4885
+ blocked: SiteMapBlocked[];
4886
+ /** The partial scope's default: home, the header and footer links, one route per collection template. */
4887
+ partialDefault: string[];
4888
+ /** Version 2: the site's style guide. Absent from a version 1 map. */
4889
+ styleGuide?: SiteMapStyleGuide;
4890
+ }
4891
+ /**
4892
+ * One page's sections, as `bettercms sectionize` wrapped them in source: what the server places on the
4893
+ * page (one placement per section, bound to its slot), in source order. Its order is the CMS's from then on.
4894
+ */
4895
+ interface LocalSetupPageSections {
4896
+ /** The CMS page's slug (`home`, `about`); a collection's item template names the collection. */
4897
+ page: string;
4898
+ /** A collection's item template: its list is the collection page's, drawn on every entry. */
4899
+ template?: boolean;
4900
+ /** The template file the sections are written for, repo-relative. */
4901
+ file: string;
4902
+ sections: {
4903
+ /** The slot's name and the placement's bind: a candidate's `id`. */
4904
+ id: string;
4905
+ /** The section's name in the editor. */
4906
+ name: string;
4907
+ /** Its family (`hero`, `call-to-action`). */
4908
+ sectionType: string;
4909
+ /** Its variant within the family, when the plan names one. */
4910
+ variant?: string;
4911
+ /** The site's own component that renders it, when it is one (a `components[]` id). */
4912
+ component?: string | null;
4913
+ }[];
4914
+ }
4915
+ /** As `editor_setup { scope }` takes it. */
4916
+ type LocalSetupScope = {
4917
+ mode: "full";
4918
+ } | {
4919
+ mode: "partial";
4920
+ routes: string[];
4921
+ };
4922
+ type Row = Record<string, unknown>;
4923
+ /**
4924
+ * The manifest inserter's input (`BcmsDoc` in src/lib/templates/ingest.ts), as this package can
4925
+ * spell it without importing the server. Rows stay open records: the inserter is their judge.
4926
+ */
4927
+ interface LocalSetupDoc {
4928
+ schema?: Record<string, {
4929
+ name?: string;
4930
+ fields: Row[];
4931
+ }>;
4932
+ collections?: Record<string, {
4933
+ slug: string;
4934
+ data: Row;
4935
+ status?: "draft" | "published";
4936
+ }[]>;
4937
+ derivedCollections?: true;
4938
+ forms?: Row[];
4939
+ pages?: Row[];
4940
+ components?: Row[];
4941
+ }
4942
+ /**
4943
+ * The conversion receipt, as `submit_conversion_receipt` takes it. Only what every reader needs is
4944
+ * pinned here; the server holds the whole receipt to `conversionReceiptSchema`.
4945
+ */
4946
+ interface LocalSetupReceipt {
4947
+ briefDigest: string;
4948
+ paths: {
4949
+ declared: number;
4950
+ rewritten: number;
4951
+ alreadyDeclared: number;
4952
+ pending: Row[];
4953
+ };
4954
+ [key: string]: unknown;
4955
+ }
4956
+ /** One built route's x-ray (`@bettercms-ai/convert` xray.ts), with the template that rendered it. */
4957
+ interface LocalXray {
4958
+ route: string;
4959
+ template: string | null;
4960
+ /** Characters of visible copy. */
4961
+ visible: number;
4962
+ /** Of those, the characters no binding owns. */
4963
+ unaddressable: number;
4964
+ /** Unowned text inside a section: the rows the gate never excuses. */
4965
+ unbound: {
4966
+ section: string;
4967
+ tag: string;
4968
+ text: string;
4969
+ }[];
4970
+ }
4971
+ /** One address the static proof judged (`@bettercms-ai/convert` proof.ts). */
4972
+ interface LocalProofRow {
4973
+ route?: string;
4974
+ path: string;
4975
+ file?: string;
4976
+ line?: number;
4977
+ reason?: string;
4978
+ }
4979
+ interface LocalProof {
4980
+ sha: string | null;
4981
+ matched: number;
4982
+ formatted: number;
4983
+ indirect: LocalProofRow[];
4984
+ mismatched: LocalProofRow[];
4985
+ inert: LocalProofRow[];
4986
+ conflicts: LocalProofRow[];
4987
+ }
4988
+ /** A sampled route built before and after the codemod, compared with `data-bcms-*` removed. */
4989
+ interface RenderEqualRow {
4990
+ route: string;
4991
+ equal: boolean;
4992
+ /** Where they part, when they do: a short window of each side. */
4993
+ difference?: {
4994
+ at: number;
4995
+ was: string;
4996
+ now: string;
4997
+ };
4998
+ }
4999
+ interface LocalSetupManifest {
5000
+ version: typeof LOCAL_SETUP_VERSION;
5001
+ toolVersion: string;
5002
+ /** The commit whose build the server verifies (a release directory's name, so 7-64 hex). */
5003
+ sha: string;
5004
+ framework: LocalFramework;
5005
+ scope: LocalSetupScope;
5006
+ siteMap: SiteMap;
5007
+ doc: LocalSetupDoc;
5008
+ receipt: LocalSetupReceipt;
5009
+ evidence: {
5010
+ xray: LocalXray[];
5011
+ proof: LocalProof;
5012
+ renderEqual: RenderEqualRow[];
5013
+ };
5014
+ /** Milliseconds per phase (`scan`, `bind`, `build`, …). */
5015
+ timings: Record<string, number>;
5016
+ /** The sections `bettercms sectionize` wrapped, per page. Optional: a site not sectionized sends none. */
5017
+ sections?: LocalSetupPageSections[];
5018
+ }
5019
+ interface LocalSetupIssue {
5020
+ /** Where, as `templates[3].routes[0]`; `(root)` for the whole value. */
5021
+ path: string;
5022
+ message: string;
5023
+ }
5024
+ type LocalSetupParse<T> = {
5025
+ ok: true;
5026
+ value: T;
5027
+ } | {
5028
+ ok: false;
5029
+ issues: LocalSetupIssue[];
5030
+ };
5031
+ /** `.bettercms/site-map.json`, as text or parsed. Never throws. */
5032
+ declare function parseSiteMap(input: unknown): LocalSetupParse<SiteMap>;
5033
+ /** The `POST /current/local-setup` body, as text or parsed. Never throws. */
5034
+ declare function parseLocalSetupManifest(input: unknown): LocalSetupParse<LocalSetupManifest>;
5035
+
4526
5036
  /**
4527
5037
  * `<BcmsSections>`: which of a page's sections render, in what order, and which block each one is.
4528
5038
  *
@@ -5036,6 +5546,200 @@ declare function isVariantVisible(prop: PropLike, values: Record<string, unknown
5036
5546
  */
5037
5547
  declare const slugify: (s: string) => string;
5038
5548
 
5549
+ /**
5550
+ * THE NAME JUDGE: one verdict on a name, for every writer and every reader. An agent's write
5551
+ * (authoring-chrome refuseAgentNames, name_fields), the setup plan's check (setup-plan.ts), the
5552
+ * setup gate's counts (setup-gate-rows.ts) and the naming pass's heal (relabel-names.ts) ask
5553
+ * {@link judgeName}, and it is pure so the derive and the codemod can: a name the gate reports is a
5554
+ * name a write refuses.
5555
+ * Four predicates that disagreed (a write passed "Cta", "Text", "Third text" and "Sectionattabs"
5556
+ * the gate then reported) are one.
5557
+ *
5558
+ * The contract it judges (moved here whole, pure, no DOM, so a package can judge too): a name is
5559
+ * one or two words of meaning per ` › ` part, the block then the element, never a sentence, the
5560
+ * field's own copy, or a build artifact (a key, a counter, a box word). What an editor can read on
5561
+ * top: no code word, acronyms in capitals, no copy role on a control. And what only its SIBLINGS
5562
+ * show (the other names at its level): a counter that tells it from a twin ("Text 2" beside
5563
+ * "Text"), the bare role it shares with a counted twin ("Text" beside "Text 2"), a case twin, an
5564
+ * exact twin of its type, and a name that starts with a sentence of copy. Never library-wide: one component per page shares
5565
+ * its family's name on purpose.
5566
+ *
5567
+ * The rules below the judge are field-names.ts's, verbatim, until the derive reads them from here.
5568
+ */
5569
+ /**
5570
+ * Every role a key may be spelled with, closed: the heads field-names.ts's `fieldParts` and `rowParts`
5571
+ * give, the words a band's shape gives an element (section-shapes.ts), the roles of an attribute,
5572
+ * and what a list's rows are.
5573
+ */
5574
+ declare const ROLE_VOCABULARY: readonly string[];
5575
+ /**
5576
+ * Class words that describe a BOX, or are a utility: `wrap`, `fixed`, `container`. They name
5577
+ * nothing, so the band's heading or its position names it — and ONE list keeps the two readers
5578
+ * in step: `scopeName` here refuses to name a scope by one, and derive's `classWord` refuses to
5579
+ * key a family by one (its deny set is built from this set). Before the lists were one, a
5580
+ * wrapper utility `shell` keyed every band `shell-`, `shell2-`… and the dock showed "Shell 2".
5581
+ */
5582
+ declare const BOX_WORDS: ReadonlySet<string>;
5583
+ /**
5584
+ * Is this NAME a build artifact rather than a name a person reads: nothing at all, a key or a path
5585
+ * (`sec1-p-trusted-by`, `group-founded[i].dt-founded`), digits glued to letters (`Shell2`,
5586
+ * `cart00`, `03studio`), a long digit run, a box word alone or counted (`Shell`, `Shell 2`,
5587
+ * `Panel 3`, `Section 2`, `wrap`), or a generic role counted or placed nowhere ("Paragraph 1",
5588
+ * "Dialog text 1", "Dialog icon", "Filter items").
5589
+ *
5590
+ * ONE rule, with BOX_WORDS: derive refuses to key or name a band by these words, the release
5591
+ * ignores a declared section label that is one, the relabel replaces a stored label that is one,
5592
+ * and the setup gate's `names` row reports one. Four readers of two drifting lists named
5593
+ * atelier-ko's bands `shell`…`shell5` and the gate passed "Shell" and "Panel 3".
5594
+ */
5595
+ declare function isArtifactName(name: string): boolean;
5596
+ /** A name told apart from its family only by a trailing counter: "Stats 2", "Hero 3". */
5597
+ declare const isCountedName: (name: string) => boolean;
5598
+ /** A name is never longer than this, in characters: a script with no spaces is clipped by it. */
5599
+ declare const PHRASE_MAX = 40;
5600
+ interface PhraseOptions {
5601
+ /** A line of COPY, not a heading: said as written, named by its first meaning words, where a sentence puts its subject. @see wordsOf */
5602
+ copy?: boolean;
5603
+ /** The document's language (`<html lang>`). Absent reads as English; a language this does not know is never cut from the end. */
5604
+ lang?: string;
5605
+ }
5606
+ /**
5607
+ * A heading as a section name: ONE OR TWO WORDS OF MEANING, as a Portable Text type's title is
5608
+ * ("Paragraph", "Pull quote", "Key takeaways"). In order:
5609
+ * - an ALL-CAPS heading is read in lower case first; letterless symbols (an emoji) are dropped;
5610
+ * - the first clause where it says enough ("A week on site, not an afternoon" → "Week On Site");
5611
+ * a one-word clause cut off by a dash or a stop is the name ("Sale – up to 50% off" → "Sale"),
5612
+ * never one cut off by a comma ("Simple, Transparent Pricing" → "Transparent Pricing");
5613
+ * - a short heading is already a name, kept whole, a leading article off ("Why us" → "Why Us",
5614
+ * "Who we are" → "Who We Are", "A Few Pieces" → "Few Pieces");
5615
+ * - meaning words that sit together stay with the filler between them ("Get in touch" → "Get In
5616
+ * Touch", "3 steps to success" → "Steps To Success": a numeral is a word, never its meaning);
5617
+ * - else the last two before the noun's tail ("Oken stool in white oak" → "Oken Stool"), unless
5618
+ * that leaves a lone opening verb, when the tail's object is the name ("Loved by developers" →
5619
+ * "Developers", "Latest from the blog" → "Blog"); else the last two, where a heading puts its
5620
+ * noun, a closing adverb off ("Start your free trial today" → "Free Trial").
5621
+ * A language this does not know is never cut from the end: its first three words. Title Cased, never empty for a heading with words. A script with no spaces is clipped.
5622
+ * Undefined for a phrase with no letter ("3"): a numeral alone is never a name.
5623
+ */
5624
+ declare function sectionPhrase(heading: string, { copy, lang }?: PhraseOptions): string | undefined;
5625
+ /**
5626
+ * A heading as it was once made a NAME, whole up to {@link PHRASE_MAX}: "A Sample Of The Set". Not a
5627
+ * name any more ({@link sectionPhrase} is); read only to recognise a label an older derive built
5628
+ * from one ("We've Spent Years Learning Three Timbers heading"). @see provisionalNames
5629
+ */
5630
+ declare function headingClause(heading: string): string | undefined;
5631
+ /** What a name is for: a BLOCK (a section, a list, a component, a family) or a FIELD (a block's element). */
5632
+ type NameKind = "block" | "field";
5633
+ type NamingRule = "artifact" | "sentence" | "too-many-words" | "copy";
5634
+ interface NamingProblem {
5635
+ /** The ` › ` part that breaks the rule. */
5636
+ part: string;
5637
+ rule: NamingRule;
5638
+ /** A name the contract allows, where one can be made of the words given. */
5639
+ suggested?: string;
5640
+ }
5641
+ /** Separates a block inside a block: "About › Services". */
5642
+ declare const NAME_PART_SEP = " \u203A ";
5643
+ /**
5644
+ * THE CONTRACT, JUDGED (header above): undefined when `name` is a name, else the first rule a part
5645
+ * breaks — a build artifact, a sentence (it ends like one, or runs past the bound), more words of
5646
+ * meaning than the bound, or a field's own copy said as its label. Language-safe: a word this does
5647
+ * not know is meaning; a script with no spaces is one word up to {@link PHRASE_MAX} characters.
5648
+ */
5649
+ declare function namingProblem(name: string, kind: NameKind, { copy, lang }?: {
5650
+ copy?: string;
5651
+ lang?: string;
5652
+ }): NamingProblem | undefined;
5653
+ /**
5654
+ * A name in the dock's sentence case, per ` › ` part: its first word capitalised, a Title-cased word
5655
+ * after it lowered, an acronym in capitals, a word in capitals or mixed case ("ScrewFast") as
5656
+ * written. "About Text" → "About text", "Cta Intro" → "CTA intro". A NORMALISATION, never a problem
5657
+ * on its own: the suggestions below are said in it. A word in `keep` stays as written: a name
5658
+ * ("Javelin"), @see properNounsOf.
5659
+ */
5660
+ declare function sentenceCase(name: string, keep?: ReadonlySet<string>): string;
5661
+ /**
5662
+ * The capitalised words the `labels` already say as names: one after the first word of a ` › ` part
5663
+ * in sentence case already (another word after its first is lower case and no small word, which
5664
+ * Title case keeps low too, and no small word is capitalised), so "Choose Javelin features" says "Javelin" on purpose. A part all in Title case
5665
+ * ("Our Services", "Strategy To Execution cards") says nothing, nor is a role word ever a name
5666
+ * ("Terms of Service Heading"). `across`: only a word said in parts that begin differently (2+), as a
5667
+ * project's labels say a name in more than one section ("Choose Javelin …", "Two Javelin …") and a
5668
+ * section name only in its own ("Built Scale features"). No dictionary: only what labels wrote.
5669
+ */
5670
+ declare function properNounsOf(labels: readonly string[], { across }?: {
5671
+ across?: boolean;
5672
+ }): Set<string>;
5673
+ type ReadabilityRule = "code-word" | "acronym-case" | "role-mismatch";
5674
+ /** What the caller measured of the element a label names. Absent: not known, and no rule guesses it. */
5675
+ interface ReadabilityContext {
5676
+ /** Its tag (`a`, `BUTTON`). */
5677
+ tag?: string;
5678
+ /** An `<a>` styled as a button (a `button` field, a Button look). */
5679
+ button?: boolean;
5680
+ /** It holds or sits in an `<h1>`–`<h6>`. */
5681
+ inHeading?: boolean;
5682
+ /** Words its suggestion keeps as written (names the project's labels say): @see properNounsOf. Absent: the ones `name` says. */
5683
+ keep?: ReadonlySet<string>;
5684
+ }
5685
+ interface ReadabilityProblem {
5686
+ /** The ` › ` part that breaks the rule. */
5687
+ part: string;
5688
+ rule: ReadabilityRule;
5689
+ /** The WHOLE name, fixed and in sentence case, where one can be made of the words given. */
5690
+ suggested?: string;
5691
+ }
5692
+ /**
5693
+ * Undefined when an editor can read `name`, else the first rule it breaks: a code word ending its
5694
+ * field part ("About Link Href" → "About link"), an acronym not in capitals ("Cta Intro" → "CTA
5695
+ * intro"), or, where the element's `tag` is known, a copy role on a control ("Hero Text" on an
5696
+ * `<a>` or `<button>`). Title case alone is no problem. @see sentenceCase
5697
+ *
5698
+ * The control rule reads only what the caller measured, never a guess: a `<button>`, or an `<a>`
5699
+ * the caller knows is `button`-styled, is a "button label"; any other `<a>` its "link text". An
5700
+ * `<a>` called a heading, or one in or around a heading (`inHeading`: a card title whose leaf is
5701
+ * the anchor, `<h3><a>`), is a heading, and passes.
5702
+ */
5703
+ declare function readabilityProblem(name: string, opts?: ReadabilityContext): ReadabilityProblem | undefined;
5704
+ /** The names in `labels` a sibling repeats with other capitals ("About text" beside "About Text"): both, as written. An exact repeat is not one. */
5705
+ declare function caseTwins(labels: readonly string[]): Set<string>;
5706
+ /** Another name at the same level (its band's fields, its row's leaves, a component's props, a page's sections). */
5707
+ interface NameSibling {
5708
+ name: string;
5709
+ /** Its field type, where known: a counter or a bare role is judged only against a sibling of the same type. */
5710
+ type?: string;
5711
+ /** Its own words: a name that starts with a sentence of a sibling's copy is that copy. */
5712
+ copy?: string;
5713
+ }
5714
+ /** What the caller knows of the element a name is for, and the names beside it. */
5715
+ interface JudgeContext extends ReadabilityContext {
5716
+ /** The other names at its level, itself among them or not (once, for an exact twin to be told). Absent: no sibling rule is judged. */
5717
+ siblings?: readonly (string | NameSibling)[];
5718
+ /** The element's own copy: a label that only repeats it is caught, and a counted run the site wrote itself stays. */
5719
+ copy?: string;
5720
+ /** Its field type, for the sibling rules. */
5721
+ type?: string;
5722
+ /** The document's language. */
5723
+ lang?: string;
5724
+ /** The key it names (a field's, a component's slug): a one-word name that is only the key's words glued is no name. */
5725
+ key?: string;
5726
+ }
5727
+ type JudgeRule = NamingRule | ReadabilityRule | "ordinal" | "repeated-word" | "glued" | "counted" | "bare-role" | "case-twin" | "twin" | "copy-sentence";
5728
+ interface NameVerdict {
5729
+ /** The ` › ` part (or, for a sibling rule, the whole name) that breaks the rule. */
5730
+ part: string;
5731
+ rule: JudgeRule;
5732
+ /** A name the judge passes, where one can be made of the words given. */
5733
+ suggested?: string;
5734
+ }
5735
+ /**
5736
+ * THE VERDICT on one name (header above): undefined when `name` is a name, else the first rule it
5737
+ * breaks, with a name to give it where the words allow one. `kind` is what it names: a `block` (a
5738
+ * section, a list, a component, a family) or a `field` (a block's element). The sibling rules need
5739
+ * `siblings`; without them only the name's own words are judged.
5740
+ */
5741
+ declare function judgeName(name: string, kind: NameKind, ctx?: JudgeContext): NameVerdict | undefined;
5742
+
5039
5743
  /**
5040
5744
  * ICON (V2 D65): an `icon` field's options and its stored value. Pure: no React, no I/O.
5041
5745
  *
@@ -5131,4 +5835,4 @@ declare function iconValueProblem(v: unknown, knownName: (name: string) => boole
5131
5835
  */
5132
5836
  declare function iconHtml(v: unknown, className?: string): string;
5133
5837
 
5134
- export { type AlignToken, type AllowRule, type ApiError, type ApiKey, type ApiKeyPermission, type ApiKeyTokenType, type ApproveDockUiInput, type ApproveDockUiOutput, type ArrayZoneConfig, type AssertEqual, type AuthResponse, type AuthSession, type AuthUser, BG_TOKENS, BG_TOKEN_CSS, BLOCK_BINDINGS, BLOCK_FIELD_TYPES, BLOCK_FIELD_TYPES_RENDERABLE_NOW, BODY_SCHEMA_ORIGINS, BREAKPOINTS, BUTTON_ACTIONS, BUTTON_FULL_WIDTH_INVALID, BUTTON_ICONS, BUTTON_ICON_NAMES, BUTTON_LOOK_KEYS, BUTTON_PLACEMENT_KEYS, BUTTON_SIZES, BUTTON_TEXT_CSS, BUTTON_TEXT_KEYS, BUTTON_VARIANTS, type BetterCMSErrorCode, type BgToken, type BindingKind, type BlockBinding, type BlockHoverStyle, type BlockStyle, type BlockType, type BodiesState, type BodyDeclaration, type BodySchema, type BodySchemaOrigin, type ButtonAction, type ButtonBlock, type ButtonIcon, type ButtonLinkCandidate, type ButtonLookKey, type ButtonProps, type ButtonSiteLook, type ButtonSizeName, type ButtonTextKey, type ButtonValue, type ButtonVariant, CANVAS_GESTURE_NAMES, CATEGORY_ID_MAX, CATEGORY_ORDER, CODE_SLOT_PREFIX, COMPONENT_GATE_CODES, COMPONENT_PROP_TYPES, CONTENT_WIDTH_TOKENS, CONTROL_HELP, type CanonicalInputDefinition, type CanvasGesture, type ChoiceOption, type CollectionBlock, type CollectionFilter, type CollectionProps, type ColorToken, type ColumnsBlock, type ColumnsProps, type Component, type ComponentBlock, type ComponentCategory, type ComponentCategoryId, type ComponentEmbedNode, type ComponentFormPropRef, type ComponentGateCode, type ComponentPreview, type ComponentPropDef, type ComponentPropType, type ComponentPropUi, type ComponentProps, type ComponentSubField, type ComponentTab, type ComponentV2, type ComponentVariantGroup, type Content, type ContentBlock, type ContentEntry, type ContentModel, type ContentModelField, type ContentModelFieldType, type ContentModelFieldUi, type ContentModelV2, type ContentPageResult, type ContentResponse, type ContentWidthToken, type ControlKind, type CornerToken, DEFAULT_ICON_SOURCES, DEFAULT_VARIANT, DEPTH_MAX, DERIVE_MINTED_RESERVED, DIALOG_SELECTOR, DOCK_BUDGET, DOCK_ICON_NAMES, DOCK_ICON_NAME_SET, DOCK_UI_IMPORTS, DOCK_UI_LIMITS, DOCK_UI_NAME, type DeclaredSlot, type DeepReadonly, type DefSources, type DeliveredLayout, type DeliveryComponent, type DeliveryEntry, type DeliveryEntrySeo, type DeliveryList, type DeliveryPage, type DerivedLocator, type DockBudget, type DockFieldLike, type DockFieldsetLike, type DockIconName, type DockInputRef, type DockLane, type DockNode, type DockPropGroupLike, type DockScreen, type DockUiBuildReceipt, type DockUiKind, type DockUiOrigin, type DockUiScope, type DockUiSource, type DockUiStatus, type DockUiVersion, EMBED_LEDGER_OUTCOMES, EMBED_REASONS, type ElementLike, type EmbedCapability, type EmbedCard, type EmbedLedgerOutcome, type EmbedMarker, type EmbedMarkerMatch, type EmbedNotRenderedWarning, type EmbedReason, type ExpandedBinding, FIELD_SIZE_ZOOM, FIELD_STYLE_KEYS, FONT_SIZE_TOKEN_PX, FOOTER_SECTION_ID, FORM_UPLOAD, FORM_UPLOAD_DEFAULT_ACCEPT, FORM_UPLOAD_PRESETS, FORM_UPLOAD_REFUSED_EXTENSIONS, FRAME_REFUSALS, type FieldConfig, type FieldSize, type FieldStyle, type FieldStyleKey, type FieldStyles, type Fieldset, type FieldsetKind, type FieldsetUiBefore, type FontSizeToken, type FooterBlock, type FooterColumn, type FooterProps, type Form, type FormBlock, type FormField, type FormProps, type FormSubmission, HELP_CAPS, HELP_LINE_MAX, HELP_MAX, HELP_WRITE_MAX, type HeadingBlock, type HeadingProps, ICON_LABEL_MAX, ICON_SOURCES, IMAGE_ASPECTS, IMAGE_FRAME_RADIUS, type IconFieldOptions, type IconObjectValue, type IconSource, type IconSrc, type IconValue, type ImageAspect, type ImageBlock, type ImageProps, KEY_FORBIDDEN, KEY_FORMAT, KEY_RESERVED, KEY_RESERVED_PREFIX, KIT_CATEGORIES, type KitCategory, LANDMARK_SELECTOR, LAYOUT_SECTION_ICONS, LAYOUT_SECTION_ICON_SET, LINK_RELS, LINK_VALUE_TYPES, LIST_ITEMS_CAP, LIST_PREVIEW_SLOTS, LOCATOR_PATH, type LandmarkChainElement, type LandmarkElement, type LayoutComponentItem, type LayoutDataDocument, type LayoutFieldDefinition, type LayoutFieldItem, type LayoutFieldType, type LayoutScalarFieldType, type LayoutSection, type LayoutSectionDesign, type LayoutSectionIcon, type LayoutSectionItem, type LayoutStructureDocument, type LayoutZone, type LibraryIconValue, type LinkPairSibling, type LinkRel, type LinkValue, type LinkValueType, type ListDockUiInput, type ListDockUiOutput, type LocatorGrammar, MAIN_SELECTOR, type ManagementLayoutCommand, type MediaAsset, type MediaCaptionTrack, type MediaFieldValue, NAVIGATION_SECTION_ID, type NavLink, type NavbarBlock, type NavbarProps, type NumberFieldFormat, type NumberScale, OPEN_MODES, OPEN_MODE_TYPES, OPTION_DESCRIPTION_MAX, type OpenMode, PAGE_CONTENT_ANCHOR_ID, PRIMITIVE_ARRAY_RULE, type PackIconValue, type Page, type PageLayoutOverrideDataDocument, type PageLayoutOverrideDocument, type PageLayoutOverrideState, type PageLayoutOverrideStructureDocument, type PageLayoutSectionOverride, type PageLayoutSectionStructureOverride, type PageMetaJson, type PageOnlyLayoutSection, type PageSectionPlacement, type PaginatedResult, type Perspective, type PortableTextDocument, type PortableTextNode, type PropGroup, type PropTab, type PublishDockUiInput, type PublishDockUiOutput, REFERENCE_CREATE_REFUSAL_CODES, RESPONSIVE_CSS, RICHTEXT_ADVANCED_ELEMENTS, RICHTEXT_BLOCK_ELEMENTS, RICHTEXT_BLOCK_FEATURES, RICHTEXT_CORE_ELEMENTS, RICHTEXT_ELEMENTS, RICHTEXT_FEATURES, RICHTEXT_FEATURE_ALIASES, RICHTEXT_HEADING_FEATURES, RICHTEXT_MARK_FEATURES, RICHTEXT_TOGGLE_FEATURES, ROLE_KEYS, type RadiusToken, type ReadButtonValue, type Redirect, type ReferenceCreateCapability, type ReferenceCreateRefusal, type ReferenceCreateRefusalCode, type ReferenceCreateResult, type ReferenceCreatedOption, type ReservedLayoutSection, type ResolvedAuthor, type ResolvedIconOptions, type ResolvedLayoutNode, type ResolvedPost, type RichTextBlock, type RichTextElementName, type RichTextEmbeds, type RichTextFeature, type RichTextProps, type RichTextRefusalCode, type RichTextResolved, SCHEMA_HASH_INPUTS, SECTION_ANCHOR, SECTION_CSS_CLASS, SECTION_DOCTRINE, SECTION_SPACE_TOKENS, SEGMENTED_MAX, SEGMENTED_MIN, SHOW_IF_SCOPES, SIDE_SPACE_MIN_PX, SIDE_SPACE_TOKENS, SLOT_CHILD_KEYS, SLOT_ITEMS_CAP, SLOT_MAX_ITEMS, SLOT_SETTINGS_MAX, SLOT_SETTINGS_TYPES, SOURCE_RANK, SPACE_BOTTOM_TOKENS, SPACE_STEP_TOKENS, type ScaleUnit, type SchemaHashTable, type SchemaSource, type SectionBlock, type SectionPlanItem, type SectionProps, type SectionSpaceToken, type ShadowToken, type ShowIf, type ShowIfRule, type SignInInput, type SignUpInput, type SiteSeoDefaults, type SlideItem, type SliderBlock, type SliderProps, type SlotChild, type SlotItem, type SlotShapeOptions, type SlotShapeProblem, type SlotValue, type SourcedFacet, type SpaceStepToken, type SpaceToken, type SpacerBlock, type SpacerProps, TABLE_COLUMN_TYPES, TABLE_CSS, TABLE_JSONLD_TYPES, TABLE_LIMITS, TABLE_RESPONSIVE, TAB_MAX, TAB_MAX_RENDERABLE_NOW, TAG_HEADS, THEME_TOKENS, type TabItem, type TableCell, type TableCellObject, type TableCellValue, type TableCheckOptions, type TableColumn, type TableColumnType, type TableFieldOptions, type TableFootnote, type TableGroup, type TableLink, type TableProblem, type TableRef, type TableRefResolved, type TableRow, type TableValue, type TabsBlock, type TabsProps, type TextBlock, type TextProps, type ThemeToken, UI_PROTOCOLS, UI_REFUSAL_CODES, UI_REFUSAL_IDS, type UiBefore, type UiManifestEntry, type UiManifestV2, type UiOrigin, type UiProtocol, type UiRefusal, type UiRefusalFamily, type UiRefusalId, type UploadIconValue, type V2Placement, type V2Shape, type V2VariantMeta, V2_KEYS, V2_PLACEMENTS, V2_SHAPES, VARIANT_PROP_KEY, VIDEO_TRANSCRIPT_MAX, VIDEO_VALUE_KEYS, type ValidateDockUiInput, type ValidateDockUiOutput, type VariantGroupV2, type VariantInputMapping, type VideoBlock, type VideoProps, type VideoValue, type VisibilityWindow, WIDTH_FIT_FAIL_KINDS, type WeightToken, type WidthFitFailKind, type WidthFitResult, type WindowState, type Workspace, type WriteDockUiInput, type WriteDockUiOutput, type ZoneField, allowRuleOf, anchorSlug, anchorTargetRel, blockStyleToColumnCss, blockStyleToCss, blockStyleToInnerCss, bodySchemaOf, buttonBlockProps, buttonFullWidthProblem, buttonIconOf, buttonIconSvg, buttonLinkPairs, buttonLookValue, buttonSiteLookOf, buttonTextCss, buttonTextCssText, buttonTextProblem, buttonValueOfInstance, buttonValueProblem, buttonVariantOf, candidateRole, canonicalJson, compactIcon, componentInstanceAddresses, componentPropTargetKey, defaultSectionAnchors, derivedPairs, dockBudget, dockScreens, dockUiMerkleKey, embedAddress, embedMarkerHtml, embedVisible, evaluateShowIf, exampleFor, expandBlockBindings, fieldGroupOf, fieldStyleCssText, fieldStyleToCss, fileExtension, fileFieldLimits, formUploadAccept, formUploadLimits, formatNumber, formatPropsAttribute, getBlockType, headingPaintCss, hiddenEverywhere, hideOnAttr, iconHtml, iconIdentity, iconSrc, iconValueProblem, imageFrameCss, inWindow, isBlock, isButtonLookValue, isChromeLandmark, isCodeButton, isComponentGateCode, isDeriveReservedKey, isDockUiImportAllowed, isEmbedReason, isIconObjectForm, isLinkObject, isRefusedUploadExtension, isReservedKey, isRoleKey, isRulePaired, isScriptHref, isSlotChild, isTableValue, isUiRefusal, isVariantVisible, keyWords, landmarkRegions, linkAnchorOf, linkHref, linkRefOf, linkValueProblem, locatorFor, locatorPath, mayOverwrite, normaliseRichTextFeatures, normalizeIcon, normalizeLinkValue, normalizeTableValue, normalizeWindow, parseEmbedMarkers, parseNumberText, parsePropsAttribute, pickFieldStyle, placementBindOf, planSections, readButtonValue, readNumberFormat, readPath, referenceCreateRefusal, regionOf, renderTableHtml, resolveIconOptions, richTextRefusal, rulePartnerOf, safeCssUrl, schemaHashInput, sectionIdentityAttrs, sideFloorApplies, sideSpaceCss, slotBindOf, slotChildValues, slotItems, slotPathString, slotShapeProblems, slugify, spaceTokenCss, splitButtonStyle, tableCellText, tablePathString, tableRefCells, tableSearchText, tableToMarkdown, tableValueProblems, topFieldKeyOf, uiRefusalId, usesHideOn, variantOptionsFromUnion, variantOptionsOf, variantPropOf, videoUrlOf, videoValueProblem, visibleBlocks, visibleDeliveredLayout, visibleLayoutStructure, windowState, withButtonLookProps, withExample, withIconLabel };
5838
+ export { type AlignToken, type AllowRule, type ApiError, type ApiKey, type ApiKeyPermission, type ApiKeyTokenType, type ApproveDockUiInput, type ApproveDockUiOutput, type ArrayZoneConfig, type AssertEqual, type AuthResponse, type AuthSession, type AuthUser, BG_TOKENS, BG_TOKEN_CSS, BLOCKED_REASONS, BLOCK_BINDINGS, BLOCK_FIELD_TYPES, BLOCK_FIELD_TYPES_RENDERABLE_NOW, BODY_SCHEMA_ORIGINS, BOX_WORDS, BREAKPOINTS, BUTTON_ACTIONS, BUTTON_FULL_WIDTH_INVALID, BUTTON_ICONS, BUTTON_ICON_NAMES, BUTTON_LOOK_KEYS, BUTTON_PLACEMENT_KEYS, BUTTON_SIZES, BUTTON_TEXT_CSS, BUTTON_TEXT_KEYS, BUTTON_VARIANTS, type BetterCMSErrorCode, type BgToken, type BindingKind, type BlockBinding, type BlockHoverStyle, type BlockStyle, type BlockType, type BodiesState, type BodyDeclaration, type BodySchema, type BodySchemaOrigin, type ButtonAction, type ButtonBlock, type ButtonIcon, type ButtonLinkCandidate, type ButtonLookKey, type ButtonProps, type ButtonSiteLook, type ButtonSizeName, type ButtonTextKey, type ButtonValue, type ButtonVariant, CANVAS_GESTURE_NAMES, CATEGORY_ID_MAX, CATEGORY_ORDER, CODE_SLOT_PREFIX, COMPONENT_GATE_CODES, COMPONENT_PROP_TYPES, CONTENT_WIDTH_TOKENS, CONTROL_HELP, type CanonicalInputDefinition, type CanvasGesture, type ChoiceOption, type CollectionBlock, type CollectionFilter, type CollectionProps, type ColorToken, type ColumnsBlock, type ColumnsProps, type Component, type ComponentBlock, type ComponentCategory, type ComponentCategoryId, type ComponentEmbedNode, type ComponentFormPropRef, type ComponentGateCode, type ComponentPreview, type ComponentPropDef, type ComponentPropType, type ComponentPropUi, type ComponentProps, type ComponentSubField, type ComponentTab, type ComponentV2, type ComponentVariantGroup, type Content, type ContentBlock, type ContentEntry, type ContentModel, type ContentModelField, type ContentModelFieldType, type ContentModelFieldUi, type ContentModelV2, type ContentPageResult, type ContentResponse, type ContentWidthToken, type ControlKind, type CornerToken, DEFAULT_ICON_SOURCES, DEFAULT_VARIANT, DEPTH_MAX, DERIVE_MINTED_RESERVED, DIALOG_SELECTOR, DOCK_BUDGET, DOCK_ICON_NAMES, DOCK_ICON_NAME_SET, DOCK_UI_IMPORTS, DOCK_UI_LIMITS, DOCK_UI_NAME, type DeclaredSlot, type DeepReadonly, type DefSources, type DeliveredLayout, type DeliveryComponent, type DeliveryEntry, type DeliveryEntrySeo, type DeliveryList, type DeliveryPage, type DerivedLocator, type DockBudget, type DockFieldLike, type DockFieldsetLike, type DockIconName, type DockInputRef, type DockLane, type DockNode, type DockPropGroupLike, type DockScreen, type DockUiBuildReceipt, type DockUiKind, type DockUiOrigin, type DockUiScope, type DockUiSource, type DockUiStatus, type DockUiVersion, EMBED_LEDGER_OUTCOMES, EMBED_REASONS, type ElementLike, type EmbedCapability, type EmbedCard, type EmbedLedgerOutcome, type EmbedMarker, type EmbedMarkerMatch, type EmbedNotRenderedWarning, type EmbedReason, type ExpandedBinding, FIELD_SIZE_ZOOM, FIELD_STYLE_KEYS, FONT_SIZE_TOKEN_PX, FOOTER_SECTION_ID, FORM_UPLOAD, FORM_UPLOAD_DEFAULT_ACCEPT, FORM_UPLOAD_PRESETS, FORM_UPLOAD_REFUSED_EXTENSIONS, FRAME_REFUSALS, type FieldConfig, type FieldSize, type FieldStyle, type FieldStyleKey, type FieldStyles, type Fieldset, type FieldsetKind, type FieldsetUiBefore, type FontSizeToken, type FooterBlock, type FooterColumn, type FooterProps, type Form, type FormBlock, type FormField, type FormProps, type FormSubmission, HELP_CAPS, HELP_LINE_MAX, HELP_MAX, HELP_WRITE_MAX, type HeadingBlock, type HeadingProps, ICON_LABEL_MAX, ICON_SOURCES, IMAGE_ASPECTS, IMAGE_FRAME_RADIUS, type IconFieldOptions, type IconObjectValue, type IconSource, type IconSrc, type IconValue, type ImageAspect, type ImageBlock, type ImageProps, type JudgeContext, type JudgeRule, KEY_FORBIDDEN, KEY_FORMAT, KEY_RESERVED, KEY_RESERVED_PREFIX, KIT_CATEGORIES, type KitCategory, LANDMARK_SELECTOR, LAYOUT_ROLES, LAYOUT_SECTION_ICONS, LAYOUT_SECTION_ICON_SET, LINK_RELS, LINK_VALUE_TYPES, LIST_ITEMS_CAP, LIST_PREVIEW_SLOTS, LOCAL_FRAMEWORKS, LOCAL_SETUP_LIMITS, LOCAL_SETUP_VERSION, LOCATOR_PATH, type LandmarkChainElement, type LandmarkElement, type LayoutComponentItem, type LayoutDataDocument, type LayoutFieldDefinition, type LayoutFieldItem, type LayoutFieldType, type LayoutRole, type LayoutScalarFieldType, type LayoutSection, type LayoutSectionDesign, type LayoutSectionIcon, type LayoutSectionItem, type LayoutStructureDocument, type LayoutZone, type LibraryIconValue, type LinkPairSibling, type LinkRel, type LinkValue, type LinkValueType, type ListDockUiInput, type ListDockUiOutput, type LiteralCounts, type LocalFramework, type LocalProof, type LocalProofRow, type LocalSetupDoc, type LocalSetupIssue, type LocalSetupManifest, type LocalSetupPageSections, type LocalSetupParse, type LocalSetupReceipt, type LocalSetupScope, type LocalXray, type LocatorGrammar, MAIN_SELECTOR, MAX_LOCAL_SETUP_BYTES, MAX_SITE_MAP_BYTES, type ManagementLayoutCommand, type MediaAsset, type MediaCaptionTrack, type MediaFieldValue, NAME_PART_SEP, NAVIGATION_SECTION_ID, type NameKind, type NameSibling, type NameVerdict, type NamingProblem, type NamingRule, type NavLink, type NavbarBlock, type NavbarProps, type NumberFieldFormat, type NumberScale, OPEN_MODES, OPEN_MODE_TYPES, OPTION_DESCRIPTION_MAX, type OpenMode, PAGE_CONTENT_ANCHOR_ID, PHRASE_MAX, PRIMITIVE_ARRAY_RULE, type PackIconValue, type Page, type PageLayoutOverrideDataDocument, type PageLayoutOverrideDocument, type PageLayoutOverrideState, type PageLayoutOverrideStructureDocument, type PageLayoutSectionOverride, type PageLayoutSectionStructureOverride, type PageMetaJson, type PageOnlyLayoutSection, type PageSectionPlacement, type PaginatedResult, type Perspective, type PhraseOptions, type PortableTextDocument, type PortableTextNode, type PropGroup, type PropTab, type PublishDockUiInput, type PublishDockUiOutput, REFERENCE_CREATE_REFUSAL_CODES, RESPONSIVE_CSS, RICHTEXT_ADVANCED_ELEMENTS, RICHTEXT_BLOCK_ELEMENTS, RICHTEXT_BLOCK_FEATURES, RICHTEXT_CORE_ELEMENTS, RICHTEXT_ELEMENTS, RICHTEXT_FEATURES, RICHTEXT_FEATURE_ALIASES, RICHTEXT_HEADING_FEATURES, RICHTEXT_MARK_FEATURES, RICHTEXT_TOGGLE_FEATURES, ROLE_KEYS, ROLE_VOCABULARY, type RadiusToken, type ReadButtonValue, type ReadabilityContext, type ReadabilityProblem, type ReadabilityRule, type Redirect, type ReferenceCreateCapability, type ReferenceCreateRefusal, type ReferenceCreateRefusalCode, type ReferenceCreateResult, type ReferenceCreatedOption, type RenderEqualRow, type ReservedLayoutSection, type ResolvedAuthor, type ResolvedIconOptions, type ResolvedLayoutNode, type ResolvedPost, type RichTextBlock, type RichTextElementName, type RichTextEmbeds, type RichTextFeature, type RichTextProps, type RichTextRefusalCode, type RichTextResolved, SCHEMA_HASH_INPUTS, SECTION_ANCHOR, SECTION_CSS_CLASS, SECTION_DOCTRINE, SECTION_KINDS, SECTION_SPACE_TOKENS, SEGMENTED_MAX, SEGMENTED_MIN, SHOW_IF_SCOPES, SIDE_SPACE_MIN_PX, SIDE_SPACE_TOKENS, SITE_MAP_VERSION, SITE_MAP_VERSIONS, SLOT_CHILD_KEYS, SLOT_ITEMS_CAP, SLOT_MAX_ITEMS, SLOT_SETTINGS_MAX, SLOT_SETTINGS_TYPES, SOURCE_RANK, SPACE_BOTTOM_TOKENS, SPACE_STEP_TOKENS, STYLE_TOKEN_GROUPS, STYLE_USED_GROUPS, type ScaleUnit, type SchemaHashTable, type SchemaSource, type SectionBlock, type SectionPlanItem, type SectionProps, type SectionSpaceToken, type ShadowToken, type ShowIf, type ShowIfRule, type SignInInput, type SignUpInput, type SiteMap, type SiteMapBlocked, type SiteMapCollection, type SiteMapComponent, type SiteMapField, type SiteMapForm, type SiteMapLayout, type SiteMapLocales, type SiteMapMedia, type SiteMapSection, type SiteMapStyleGuide, type SiteMapStyles, type SiteMapTemplate, type SiteMapVersion, type SiteSeoDefaults, type SlideItem, type SliderBlock, type SliderProps, type SlotChild, type SlotItem, type SlotShapeOptions, type SlotShapeProblem, type SlotValue, type SourcedFacet, type SpaceStepToken, type SpaceToken, type SpacerBlock, type SpacerProps, type StyleGuideColor, type StyleGuideFace, type StyleGuideStep, type StyleGuideToken, type StyleTokenGroup, type StyleUsedGroup, TABLE_COLUMN_TYPES, TABLE_CSS, TABLE_JSONLD_TYPES, TABLE_LIMITS, TABLE_RESPONSIVE, TAB_MAX, TAB_MAX_RENDERABLE_NOW, TAG_HEADS, THEME_TOKENS, type TabItem, type TableCell, type TableCellObject, type TableCellValue, type TableCheckOptions, type TableColumn, type TableColumnType, type TableFieldOptions, type TableFootnote, type TableGroup, type TableLink, type TableProblem, type TableRef, type TableRefResolved, type TableRow, type TableValue, type TabsBlock, type TabsProps, type TextBlock, type TextProps, type ThemeToken, UI_PROTOCOLS, UI_REFUSAL_CODES, UI_REFUSAL_IDS, type UiBefore, type UiManifestEntry, type UiManifestV2, type UiOrigin, type UiProtocol, type UiRefusal, type UiRefusalFamily, type UiRefusalId, type UploadIconValue, type V2Placement, type V2Shape, type V2VariantMeta, V2_KEYS, V2_PLACEMENTS, V2_SHAPES, VARIANT_PROP_KEY, VIDEO_TRANSCRIPT_MAX, VIDEO_VALUE_KEYS, type ValidateDockUiInput, type ValidateDockUiOutput, type VariantGroupV2, type VariantInputMapping, type VideoBlock, type VideoProps, type VideoValue, type VisibilityWindow, WIDTH_FIT_FAIL_KINDS, type WeightToken, type WidthFitFailKind, type WidthFitResult, type WindowState, type Workspace, type WriteDockUiInput, type WriteDockUiOutput, type ZoneField, allowRuleOf, anchorSlug, anchorTargetRel, blockStyleToColumnCss, blockStyleToCss, blockStyleToInnerCss, bodySchemaOf, buttonBlockProps, buttonFullWidthProblem, buttonIconOf, buttonIconSvg, buttonLinkPairs, buttonLookValue, buttonSiteLookOf, buttonTextCss, buttonTextCssText, buttonTextProblem, buttonValueOfInstance, buttonValueProblem, buttonVariantOf, candidateRole, canonicalJson, caseTwins, compactIcon, componentInstanceAddresses, componentPropTargetKey, defaultSectionAnchors, derivedPairs, dockBudget, dockScreens, dockUiMerkleKey, embedAddress, embedMarkerHtml, embedVisible, evaluateShowIf, exampleFor, expandBlockBindings, fieldGroupOf, fieldStyleCssText, fieldStyleToCss, fileExtension, fileFieldLimits, formUploadAccept, formUploadLimits, formatNumber, formatPropsAttribute, getBlockType, headingClause, headingPaintCss, hiddenEverywhere, hideOnAttr, iconHtml, iconIdentity, iconSrc, iconValueProblem, imageFrameCss, inWindow, isArtifactName, isBlock, isButtonLookValue, isChromeLandmark, isCodeButton, isComponentGateCode, isCountedName, isDeriveReservedKey, isDockUiImportAllowed, isEmbedReason, isIconObjectForm, isLinkObject, isRefusedUploadExtension, isReservedKey, isRoleKey, isRulePaired, isScriptHref, isSlotChild, isTableValue, isUiRefusal, isVariantVisible, judgeName, keyWords, landmarkRegions, linkAnchorOf, linkHref, linkRefOf, linkValueProblem, locatorFor, locatorPath, mayOverwrite, namingProblem, normaliseRichTextFeatures, normalizeIcon, normalizeLinkValue, normalizeTableValue, normalizeWindow, parseEmbedMarkers, parseLocalSetupManifest, parseNumberText, parsePropsAttribute, parseSiteMap, pickFieldStyle, placementBindOf, planSections, properNounsOf, readButtonValue, readNumberFormat, readPath, readabilityProblem, referenceCreateRefusal, regionOf, renderTableHtml, resolveIconOptions, richTextRefusal, rulePartnerOf, safeCssUrl, schemaHashInput, sectionIdentityAttrs, sectionPhrase, sentenceCase, sideFloorApplies, sideSpaceCss, slotBindOf, slotChildValues, slotItems, slotPathString, slotShapeProblems, slugify, spaceTokenCss, splitButtonStyle, tableCellText, tablePathString, tableRefCells, tableSearchText, tableToMarkdown, tableValueProblems, topFieldKeyOf, uiRefusalId, usesHideOn, variantOptionsFromUnion, variantOptionsOf, variantPropOf, videoUrlOf, videoValueProblem, visibleBlocks, visibleDeliveredLayout, visibleLayoutStructure, windowState, withButtonLookProps, withExample, withIconLabel };