@bettercms-ai/types 1.70.0 → 1.72.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
@@ -5564,7 +5564,7 @@ declare const slugify: (s: string) => string;
5564
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
5565
  * its family's name on purpose.
5566
5566
  *
5567
- * The rules below the judge are field-names.ts's, verbatim, until the derive reads them from here.
5567
+ * field-names.ts re-exports these rules: the derive, the namer and the judge read one copy.
5568
5568
  */
5569
5569
  /**
5570
5570
  * Every role a key may be spelled with, closed: the heads field-names.ts's `fieldParts` and `rowParts`
@@ -5580,6 +5580,14 @@ declare const ROLE_VOCABULARY: readonly string[];
5580
5580
  * wrapper utility `shell` keyed every band `shell-`, `shell2-`… and the dock showed "Shell 2".
5581
5581
  */
5582
5582
  declare const BOX_WORDS: ReadonlySet<string>;
5583
+ /**
5584
+ * The role words a walk names an element by when it knows nothing else of it: they say what the
5585
+ * element IS in the markup (a span's text, a number, an svg), never what it is FOR. sft21 #8:
5586
+ * `logo` and `stat` too, the kit words the relabel counted ("Logo 1".."Logo 4", "Stat 1 › Number").
5587
+ */
5588
+ declare const GENERIC_ROLES: readonly string[];
5589
+ /** Scopes that place nothing: one of the page's dialogs (counted or not); a band known only by its position ("Section 2") besides. */
5590
+ declare const GENERIC_SCOPE: readonly string[];
5583
5591
  /**
5584
5592
  * Is this NAME a build artifact rather than a name a person reads: nothing at all, a key or a path
5585
5593
  * (`sec1-p-trusted-by`, `group-founded[i].dt-founded`), digits glued to letters (`Shell2`,
@@ -5658,6 +5666,13 @@ declare function namingProblem(name: string, kind: NameKind, { copy, lang }?: {
5658
5666
  * ("Javelin"), @see properNounsOf.
5659
5667
  */
5660
5668
  declare function sentenceCase(name: string, keep?: ReadonlySet<string>): string;
5669
+ /**
5670
+ * A key, slug or class word said as a name (`cta` → "CTA", `learn-ai-literacy` → "Learn AI literacy",
5671
+ * `pricing_table` → "Pricing table", `sectionAtTabs` → "Section at tabs"): its words apart, in the dock's sentence case, acronyms in
5672
+ * capitals. THE one word-to-name step: five private Title-case copies said "Cta" beside "Call to
5673
+ * action" and "Learn Ai Literacy".
5674
+ */
5675
+ declare const humanize: (word: string) => string;
5661
5676
  /**
5662
5677
  * The capitalised words the `labels` already say as names: one after the first word of a ` › ` part
5663
5678
  * in sentence case already (another word after its first is lower case and no small word, which
@@ -5835,4 +5850,138 @@ declare function iconValueProblem(v: unknown, knownName: (name: string) => boole
5835
5850
  */
5836
5851
  declare function iconHtml(v: unknown, className?: string): string;
5837
5852
 
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 };
5853
+ /**
5854
+ * The field ref: ONE address string for a value, whoever names it.
5855
+ *
5856
+ * <target>:<id>:<path> target = entry | page | layout | component
5857
+ *
5858
+ * entry:ent_1:hero.title a collection or singleton entry's draft value
5859
+ * page:pg_1:hero.title the page's own field (its singleton entry)
5860
+ * page:pg_1:blk_1__overrides.title a placed component's override
5861
+ * page:pg_1:blk_1__text a built-in block's prop
5862
+ * layout:nav:cta a Global Layout Section value
5863
+ * component:cmp_1:title a component definition's default value
5864
+ *
5865
+ * Every in-page address the platform stamps is kept verbatim after the second colon, so
5866
+ * `data-bcms-field="hero.title"` on page P IS `page:P:hero.title`, and `data-bcms-layout-field`
5867
+ * and `data-bcms-entry-field` values already are refs. Nothing stored or stamped is re-keyed.
5868
+ *
5869
+ * The path is the entry-path grammar ({@link parseEntryPath}): segments joined by `.`, each a key
5870
+ * with at most one row selector, `[_key=="k"]` (survives a reorder) or `[n]`.
5871
+ *
5872
+ * Grammar only, and dependency-free: what a name may reach is the writer's check, against the schema.
5873
+ */
5874
+ type EntryPathSelector = {
5875
+ key: string;
5876
+ } | {
5877
+ index: number;
5878
+ };
5879
+ interface EntryPathSegment {
5880
+ key: string;
5881
+ select?: EntryPathSelector;
5882
+ }
5883
+ declare const ENTRY_PATH_MAX = 300;
5884
+ /** `features[_key=="a1"].title` → `[{ key: "features", select: { key: "a1" } }, { key: "title" }]`. */
5885
+ declare function parseEntryPath(path: string): EntryPathSegment[] | {
5886
+ error: string;
5887
+ };
5888
+ /** Segments back to a path: the inverse of {@link parseEntryPath}. */
5889
+ declare const formatEntryPath: (segments: readonly EntryPathSegment[]) => string;
5890
+ declare const FIELD_REF_TARGETS: readonly ["entry", "page", "layout", "component"];
5891
+ type FieldRefTarget = (typeof FIELD_REF_TARGETS)[number];
5892
+ /**
5893
+ * Which writer a ref ends in. `field`: an entry's (or a page's singleton entry's) data. `override`: a
5894
+ * placement's `props.overrides`. `blockProp`: a built-in block's `props`. `layout`: a Layout Section
5895
+ * value. `componentDefault`: a component definition's prop default.
5896
+ */
5897
+ type FieldRefLane = "field" | "override" | "blockProp" | "layout" | "componentDefault";
5898
+ type FieldRefErrorCode = "REF_INVALID" | "KEYED_PATH_NOT_WRITABLE" | "TARGET_NOT_WRITABLE";
5899
+ interface FieldRefError {
5900
+ error: {
5901
+ code: FieldRefErrorCode;
5902
+ message: string;
5903
+ };
5904
+ }
5905
+ interface FieldRef {
5906
+ target: FieldRefTarget;
5907
+ id: string;
5908
+ /** Everything after the second colon, as written. */
5909
+ path: string;
5910
+ /** The path the lane's writer walks: the field path, the prop path below the block, or the layout field path. */
5911
+ segments: EntryPathSegment[];
5912
+ lane: FieldRefLane;
5913
+ /** `override` / `blockProp`: the block the path names. */
5914
+ blockId?: string;
5915
+ }
5916
+ /** The separator a placement's override address carries: `<blockId>__overrides.<prop>`. */
5917
+ declare const OVERRIDES_SEP = "__overrides.";
5918
+ /**
5919
+ * The native SEO names. A write to one of these as a FIELD is refused `SEO_IS_NATIVE` by the writer
5920
+ * when the schema does not declare it: per-page meta is update_page's, entry meta update_content_entry
5921
+ * `meta`'s, site defaults update_seo's.
5922
+ */
5923
+ declare const SEO_NATIVE_KEYS: ReadonlySet<string>;
5924
+ /** Every `<blockId>__<prop>` reading of a page path, first `__` first. A block id is a nanoid, and `_` is in its alphabet. */
5925
+ declare function blockSplits(path: string): Array<{
5926
+ blockId: string;
5927
+ rest: string;
5928
+ }>;
5929
+ /**
5930
+ * `page:pg_1:hero.title` → its parts and the lane its writer is. Refuses, by code, what is not a
5931
+ * writable value: a malformed ref (`REF_INVALID`), one Portable Text block (`KEYED_PATH_NOT_WRITABLE`,
5932
+ * naming the `[_key=="k"]` form the patch engine takes), a form or a block's style (`TARGET_NOT_WRITABLE`).
5933
+ */
5934
+ declare function parseFieldRef(ref: string): FieldRef | FieldRefError;
5935
+ /** The ref of its parts: `formatFieldRef({ target: "page", id: "pg_1", path: "hero.title" })` → `page:pg_1:hero.title`. */
5936
+ declare const formatFieldRef: (parts: {
5937
+ target: FieldRefTarget;
5938
+ id: string;
5939
+ path: string;
5940
+ }) => string;
5941
+ /** The stamp attributes that carry an address, and what each one's value is. */
5942
+ type StampAttr = "data-bcms-field" | "data-bcms-layout-field" | "data-bcms-entry-field";
5943
+ /**
5944
+ * A stamped attribute on the page `pageId` → its ref. A layout or entry stamp already IS a ref; a
5945
+ * `data-bcms-field` holds a page path, unless it carries a ref of its own (`entry:…`, `layout:…`).
5946
+ */
5947
+ declare function refFromStamp(stamp: {
5948
+ attr: StampAttr | string;
5949
+ value: string;
5950
+ pageId?: string;
5951
+ }): string | FieldRefError;
5952
+ /** The inverse of {@link refFromStamp}: the attribute and value a ref is stamped as. A component default is on no page: null. */
5953
+ declare function stampFromRef(ref: string): {
5954
+ attr: StampAttr;
5955
+ value: string;
5956
+ } | null;
5957
+
5958
+ /**
5959
+ * The stega scheme's shared test vectors: one string per case, exactly as the backend encodes it.
5960
+ *
5961
+ * Four codecs speak this scheme (the backend encoder, the SDK decoder, the convert helper's inlined
5962
+ * encoder, the dashboard's decoder) and none may carry its own idea of it. Each one's tests assert
5963
+ * against THIS file, so a change to the scheme changes one list and fails every codec that did not
5964
+ * follow. Data only: no codec lives here.
5965
+ *
5966
+ * v2 (`stega=2`): `STEGA_OPEN + clean + START + bits(JSON) + END`, JSON `{"t","id","f"}`, and
5967
+ * `ref = <target>:<id>:<f>` with t = e entry · p page · l layout · c component.
5968
+ * v1 (`stega=1`): `clean + START + bits(JSON) + END`, JSON `{ws,type,id,slug,field}`, no open marker.
5969
+ *
5970
+ * U+200B is a 0 bit, U+200C a 1 bit, one zero-width character per bit of the payload's UTF-8 bytes;
5971
+ * U+2060 opens a frame and U+2061 closes it. An empty frame is the open marker.
5972
+ */
5973
+ interface StegaVector {
5974
+ version: 1 | 2;
5975
+ name: string;
5976
+ /** The visible text. */
5977
+ clean: string;
5978
+ /** The field ref the frame resolves to. */
5979
+ ref: string;
5980
+ /** The decoded JSON payload. */
5981
+ payload: Record<string, string>;
5982
+ /** `clean` framed. */
5983
+ framed: string;
5984
+ }
5985
+ declare const STEGA_VECTORS: readonly StegaVector[];
5986
+
5987
+ 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, ENTRY_PATH_MAX, type ElementLike, type EmbedCapability, type EmbedCard, type EmbedLedgerOutcome, type EmbedMarker, type EmbedMarkerMatch, type EmbedNotRenderedWarning, type EmbedReason, type EntryPathSegment, type EntryPathSelector, type ExpandedBinding, FIELD_REF_TARGETS, 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 FieldRef, type FieldRefError, type FieldRefErrorCode, type FieldRefLane, type FieldRefTarget, 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, GENERIC_ROLES, GENERIC_SCOPE, 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, OVERRIDES_SEP, 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, SEO_NATIVE_KEYS, 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, STEGA_VECTORS, 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 StampAttr, type StegaVector, 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, blockSplits, 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, formatEntryPath, formatFieldRef, formatNumber, formatPropsAttribute, getBlockType, headingClause, headingPaintCss, hiddenEverywhere, hideOnAttr, humanize, 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, parseEntryPath, parseFieldRef, parseLocalSetupManifest, parseNumberText, parsePropsAttribute, parseSiteMap, pickFieldStyle, placementBindOf, planSections, properNounsOf, readButtonValue, readNumberFormat, readPath, readabilityProblem, refFromStamp, referenceCreateRefusal, regionOf, renderTableHtml, resolveIconOptions, richTextRefusal, rulePartnerOf, safeCssUrl, schemaHashInput, sectionIdentityAttrs, sectionPhrase, sentenceCase, sideFloorApplies, sideSpaceCss, slotBindOf, slotChildValues, slotItems, slotPathString, slotShapeProblems, slugify, spaceTokenCss, splitButtonStyle, stampFromRef, tableCellText, tablePathString, tableRefCells, tableSearchText, tableToMarkdown, tableValueProblems, topFieldKeyOf, uiRefusalId, usesHideOn, variantOptionsFromUnion, variantOptionsOf, variantPropOf, videoUrlOf, videoValueProblem, visibleBlocks, visibleDeliveredLayout, visibleLayoutStructure, windowState, withButtonLookProps, withExample, withIconLabel };
package/dist/index.js CHANGED
@@ -5725,10 +5725,10 @@ var BOX_WORDS = /* @__PURE__ */ new Set([
5725
5725
  "region"
5726
5726
  ]);
5727
5727
  var PLACEHOLDER_WORDS = /* @__PURE__ */ new Set(["sec", "span"]);
5728
- var GENERIC_ROLES = "text|paragraph|number|link|links|icon|image|item|items|list|attribute|span|element|logo|logos|stat|stats";
5729
- var GENERIC_SCOPE = "(?:dialog|modal|popup|overlay|drawer)(?:\\s+\\d{1,3})?|section\\s+\\d{1,3}";
5728
+ var GENERIC_ROLES = ["text", "paragraph", "number", "link", "links", "icon", "image", "item", "items", "list", "attribute", "span", "element", "logo", "logos", "stat", "stats"];
5729
+ var GENERIC_SCOPE = ["dialog", "modal", "popup", "overlay", "drawer"];
5730
5730
  var GENERIC_ROLE_NAME = new RegExp(
5731
- `^(?:(?<scope>${GENERIC_SCOPE})\\s+)?(?:${GENERIC_ROLES})(?<n>\\s+\\d{1,3})?(?:\\s+(?:url|label))?$`,
5731
+ `^(?:(?<scope>(?:${GENERIC_SCOPE.join("|")})(?:\\s+\\d{1,3})?|section\\s+\\d{1,3})\\s+)?(?:${GENERIC_ROLES.join("|")})(?<n>\\s+\\d{1,3})?(?:\\s+(?:url|label))?$`,
5732
5732
  "i"
5733
5733
  );
5734
5734
  var WORD_ITEMS = new RegExp("^\\p{L}+\\s+items?$", "iu");
@@ -5935,6 +5935,7 @@ function sentenceCase(name2, keep = properNounsOf([name2])) {
5935
5935
  (part) => part.trim().split(/\s+/).map((w, i) => acronymOf(w) ?? (i === 0 ? w.charAt(0).toUpperCase() + w.slice(1) : new RegExp("^\\p{Lu}\\p{Ll}+$", "u").test(w) && !keep.has(w) ? w.toLowerCase() : w)).join(" ")
5936
5936
  ).join(NAME_PART_SEP);
5937
5937
  }
5938
+ var humanize = (word) => sentenceCase(word.replace(new RegExp("(\\p{Ll}|\\d)(\\p{Lu})", "gu"), "$1 $2").replace(/[-_.\s]+/g, " ").trim().toLowerCase(), /* @__PURE__ */ new Set());
5938
5939
  var SMALL_WORDS = /* @__PURE__ */ new Set(["a", "an", "and", "at", "by", "for", "from", "in", "of", "on", "the", "to", "with"]);
5939
5940
  function properNounsOf(labels, { across = false } = {}) {
5940
5941
  const firsts = /* @__PURE__ */ new Map();
@@ -6183,6 +6184,157 @@ function iconHtml(v, className = "") {
6183
6184
  }
6184
6185
  return `<img src="${attr2(src.url)}" alt="${attr2(src.label ?? "")}"${cls} width="16" height="16" style="width:1em;height:1em;object-fit:contain">`;
6185
6186
  }
6187
+
6188
+ // src/field-ref.ts
6189
+ var ENTRY_PATH_MAX = 300;
6190
+ var SEGMENT = /^([A-Za-z0-9_-]{1,64})(?:\[(?:_key=="([^"\\\]]{1,200})"|(-?\d{1,6}))\])?$/;
6191
+ function parseEntryPath(path) {
6192
+ if (typeof path !== "string" || path.length === 0 || path.length > ENTRY_PATH_MAX) {
6193
+ return { error: `a path is 1 to ${ENTRY_PATH_MAX} characters` };
6194
+ }
6195
+ const parts = [];
6196
+ let depth = 0;
6197
+ let start = 0;
6198
+ for (let i = 0; i < path.length; i++) {
6199
+ if (path[i] === "[") depth++;
6200
+ else if (path[i] === "]") depth--;
6201
+ else if (path[i] === "." && depth === 0) {
6202
+ parts.push(path.slice(start, i));
6203
+ start = i + 1;
6204
+ }
6205
+ }
6206
+ parts.push(path.slice(start));
6207
+ const segments = [];
6208
+ for (const part of parts) {
6209
+ const m = SEGMENT.exec(part);
6210
+ if (!m) {
6211
+ return { error: `"${part}" is not a path segment: a field key (letters, digits, _ and -), optionally followed by [_key=="k"] or [n]` };
6212
+ }
6213
+ const [, key, rowKey, index] = m;
6214
+ segments.push(rowKey !== void 0 ? { key, select: { key: rowKey } } : index !== void 0 ? { key, select: { index: Number(index) } } : { key });
6215
+ }
6216
+ return segments;
6217
+ }
6218
+ var formatEntryPath = (segments) => segments.map((s) => s.key + (!s.select ? "" : "key" in s.select ? `[_key=="${s.select.key}"]` : `[${s.select.index}]`)).join(".");
6219
+ var FIELD_REF_TARGETS = ["entry", "page", "layout", "component"];
6220
+ var OVERRIDES_SEP = "__overrides.";
6221
+ var SEO_NATIVE_KEYS = /* @__PURE__ */ new Set(["meta", "seo", "metaTitle", "metaDescription", "ogImage", "canonicalUrl", "canonical", "noindex"]);
6222
+ var refError = (code, message) => ({ error: { code, message } });
6223
+ var keyedEquivalent = (path) => path.replace(/#([A-Za-z0-9_-]+)/g, '[_key=="$1"]');
6224
+ function pageLane(path) {
6225
+ const at = path.lastIndexOf(OVERRIDES_SEP);
6226
+ if (at > 0 && path.length > at + OVERRIDES_SEP.length) return { lane: "override", blockId: path.slice(0, at), rest: path.slice(at + OVERRIDES_SEP.length) };
6227
+ const split = blockSplits(path)[0];
6228
+ return split ? { lane: "blockProp", ...split } : { lane: "field" };
6229
+ }
6230
+ function blockSplits(path) {
6231
+ const out = [];
6232
+ const head = path.search(/[.[]/);
6233
+ const end = head < 0 ? path.length : head;
6234
+ for (let at = path.indexOf("__"); at > 0 && at + 2 < end; at = path.indexOf("__", at + 1)) {
6235
+ out.push({ blockId: path.slice(0, at), rest: path.slice(at + 2) });
6236
+ }
6237
+ return out;
6238
+ }
6239
+ function parseFieldRef(ref) {
6240
+ if (typeof ref !== "string" || ref.length === 0) return refError("REF_INVALID", "a field ref is <target>:<id>:<path>, like page:pg_1:hero.title");
6241
+ const first = ref.indexOf(":");
6242
+ const second = first < 0 ? -1 : ref.indexOf(":", first + 1);
6243
+ const target = first < 0 ? ref : ref.slice(0, first);
6244
+ if (target === "form") return refError("TARGET_NOT_WRITABLE", "A form is not a content value: change it with update_form.");
6245
+ if (target === "block") return refError("TARGET_NOT_WRITABLE", "A block's style is not a content value: set it with update_page sectionStyle.");
6246
+ if (second < 0) return refError("REF_INVALID", `"${ref}" is not a field ref: <target>:<id>:<path>, like page:pg_1:hero.title`);
6247
+ if (!FIELD_REF_TARGETS.includes(target)) {
6248
+ return refError("REF_INVALID", `"${target}" is not a target: use ${FIELD_REF_TARGETS.join(", ")}`);
6249
+ }
6250
+ const id = ref.slice(first + 1, second);
6251
+ const path = ref.slice(second + 1);
6252
+ if (!id) return refError("REF_INVALID", `"${ref}" names no document id`);
6253
+ if (path.includes("#")) {
6254
+ return refError("KEYED_PATH_NOT_WRITABLE", `"${path}" addresses one block inside a field. Write it as ${target}:${id}:${keyedEquivalent(path)}, or write the whole field.`);
6255
+ }
6256
+ const t = target;
6257
+ const lane = t === "page" ? pageLane(path) : { lane: t === "layout" ? "layout" : t === "component" ? "componentDefault" : "field" };
6258
+ const walked = "rest" in lane ? lane.rest : path;
6259
+ const segments = parseEntryPath(walked);
6260
+ if ("error" in segments) return refError("REF_INVALID", `${ref}: ${segments.error}`);
6261
+ return { target: t, id, path, segments, lane: lane.lane, ..."blockId" in lane ? { blockId: lane.blockId } : {} };
6262
+ }
6263
+ var formatFieldRef = (parts) => `${parts.target}:${parts.id}:${parts.path}`;
6264
+ function refFromStamp(stamp) {
6265
+ const value = stamp.value.trim();
6266
+ const prefix = value.slice(0, value.indexOf(":") + 1);
6267
+ if (prefix === "form:" || prefix === "block:") return parseFieldRef(value);
6268
+ if (stamp.attr === "data-bcms-layout-field" || stamp.attr === "data-bcms-entry-field" || ["entry:", "layout:", "page:", "component:"].includes(prefix)) {
6269
+ const parsed3 = parseFieldRef(value);
6270
+ return "error" in parsed3 ? parsed3 : value;
6271
+ }
6272
+ if (stamp.attr !== "data-bcms-field") return refError("REF_INVALID", `${stamp.attr} carries no field address`);
6273
+ if (!stamp.pageId) return refError("REF_INVALID", `"${value}" is a page path: name the page it is on`);
6274
+ const ref = formatFieldRef({ target: "page", id: stamp.pageId, path: value });
6275
+ const parsed2 = parseFieldRef(ref);
6276
+ return "error" in parsed2 ? parsed2 : ref;
6277
+ }
6278
+ function stampFromRef(ref) {
6279
+ const parsed2 = parseFieldRef(ref);
6280
+ if ("error" in parsed2) return null;
6281
+ if (parsed2.target === "page") return { attr: "data-bcms-field", value: parsed2.path };
6282
+ if (parsed2.target === "layout") return { attr: "data-bcms-layout-field", value: ref };
6283
+ if (parsed2.target === "entry") return { attr: "data-bcms-entry-field", value: ref };
6284
+ return null;
6285
+ }
6286
+
6287
+ // src/stega-vectors.ts
6288
+ var STEGA_VECTORS = [
6289
+ {
6290
+ version: 2,
6291
+ name: "entry field",
6292
+ clean: "Hello world",
6293
+ ref: "entry:e_1:title",
6294
+ payload: { "t": "e", "id": "e_1", "f": "title" },
6295
+ framed: "\u2060\u2061Hello world\u2060\u200B\u200C\u200C\u200C\u200C\u200B\u200C\u200C\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200C\u200C\u200C\u200B\u200C\u200B\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200C\u200C\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200C\u200C\u200B\u200B\u200C\u200B\u200C\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200C\u200C\u200B\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200C\u200C\u200B\u200C\u200B\u200B\u200C\u200B\u200C\u200C\u200B\u200B\u200C\u200B\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200C\u200C\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200C\u200C\u200B\u200B\u200C\u200B\u200C\u200B\u200C\u200B\u200C\u200C\u200C\u200C\u200C\u200B\u200B\u200C\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200C\u200C\u200B\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200C\u200C\u200B\u200B\u200C\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200C\u200C\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200C\u200C\u200C\u200B\u200C\u200B\u200B\u200B\u200C\u200C\u200B\u200C\u200B\u200B\u200C\u200B\u200C\u200C\u200C\u200B\u200C\u200B\u200B\u200B\u200C\u200C\u200B\u200C\u200C\u200B\u200B\u200B\u200C\u200C\u200B\u200B\u200C\u200B\u200C\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200C\u200C\u200C\u200C\u200C\u200B\u200C\u2061"
6296
+ },
6297
+ {
6298
+ version: 2,
6299
+ name: "page repeater row",
6300
+ clean: "Fast setup",
6301
+ ref: "page:pg_1:features[2].title",
6302
+ payload: { "t": "p", "id": "pg_1", "f": "features[2].title" },
6303
+ framed: "\u2060\u2061Fast setup\u2060\u200B\u200C\u200C\u200C\u200C\u200B\u200C\u200C\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200C\u200C\u200C\u200B\u200C\u200B\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200C\u200C\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200C\u200C\u200C\u200B\u200B\u200B\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200C\u200C\u200B\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200C\u200C\u200B\u200C\u200B\u200B\u200C\u200B\u200C\u200C\u200B\u200B\u200C\u200B\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200C\u200C\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200C\u200C\u200C\u200B\u200B\u200B\u200B\u200B\u200C\u200C\u200B\u200B\u200C\u200C\u200C\u200B\u200C\u200B\u200C\u200C\u200C\u200C\u200C\u200B\u200B\u200C\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200C\u200C\u200B\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200C\u200C\u200B\u200B\u200C\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200C\u200C\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200C\u200C\u200B\u200B\u200C\u200C\u200B\u200B\u200C\u200C\u200B\u200B\u200C\u200B\u200C\u200B\u200C\u200C\u200B\u200B\u200B\u200B\u200C\u200B\u200C\u200C\u200C\u200B\u200C\u200B\u200B\u200B\u200C\u200C\u200C\u200B\u200C\u200B\u200C\u200B\u200C\u200C\u200C\u200B\u200B\u200C\u200B\u200B\u200C\u200C\u200B\u200B\u200C\u200B\u200C\u200B\u200C\u200C\u200C\u200B\u200B\u200C\u200C\u200B\u200C\u200B\u200C\u200C\u200B\u200C\u200C\u200B\u200B\u200C\u200C\u200B\u200B\u200C\u200B\u200B\u200C\u200B\u200C\u200C\u200C\u200B\u200C\u200B\u200B\u200C\u200B\u200C\u200C\u200C\u200B\u200B\u200C\u200C\u200C\u200B\u200C\u200B\u200B\u200B\u200C\u200C\u200B\u200C\u200B\u200B\u200C\u200B\u200C\u200C\u200C\u200B\u200C\u200B\u200B\u200B\u200C\u200C\u200B\u200C\u200C\u200B\u200B\u200B\u200C\u200C\u200B\u200B\u200C\u200B\u200C\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200C\u200C\u200C\u200C\u200C\u200B\u200C\u2061"
6304
+ },
6305
+ {
6306
+ version: 2,
6307
+ name: "page placement override",
6308
+ clean: "Start now",
6309
+ ref: "page:pg_1:blk_9__overrides.cta.label",
6310
+ payload: { "t": "p", "id": "pg_1", "f": "blk_9__overrides.cta.label" },
6311
+ framed: "\u2060\u2061Start now\u2060\u200B\u200C\u200C\u200C\u200C\u200B\u200C\u200C\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200C\u200C\u200C\u200B\u200C\u200B\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200C\u200C\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200C\u200C\u200C\u200B\u200B\u200B\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200C\u200C\u200B\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200C\u200C\u200B\u200C\u200B\u200B\u200C\u200B\u200C\u200C\u200B\u200B\u200C\u200B\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200C\u200C\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200C\u200C\u200C\u200B\u200B\u200B\u200B\u200B\u200C\u200C\u200B\u200B\u200C\u200C\u200C\u200B\u200C\u200B\u200C\u200C\u200C\u200C\u200C\u200B\u200B\u200C\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200C\u200C\u200B\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200C\u200C\u200B\u200B\u200C\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200C\u200C\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200C\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200C\u200C\u200B\u200C\u200C\u200B\u200B\u200B\u200C\u200C\u200B\u200C\u200B\u200C\u200C\u200B\u200C\u200B\u200C\u200C\u200C\u200C\u200C\u200B\u200B\u200C\u200C\u200C\u200B\u200B\u200C\u200B\u200C\u200B\u200C\u200C\u200C\u200C\u200C\u200B\u200C\u200B\u200C\u200C\u200C\u200C\u200C\u200B\u200C\u200C\u200B\u200C\u200C\u200C\u200C\u200B\u200C\u200C\u200C\u200B\u200C\u200C\u200B\u200B\u200C\u200C\u200B\u200B\u200C\u200B\u200C\u200B\u200C\u200C\u200C\u200B\u200B\u200C\u200B\u200B\u200C\u200C\u200C\u200B\u200B\u200C\u200B\u200B\u200C\u200C\u200B\u200C\u200B\u200B\u200C\u200B\u200C\u200C\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200C\u200B\u200B\u200C\u200B\u200C\u200B\u200C\u200C\u200C\u200B\u200B\u200C\u200C\u200B\u200B\u200C\u200B\u200C\u200C\u200C\u200B\u200B\u200C\u200C\u200B\u200B\u200B\u200C\u200C\u200B\u200C\u200C\u200C\u200B\u200C\u200B\u200B\u200B\u200C\u200C\u200B\u200B\u200B\u200B\u200C\u200B\u200B\u200C\u200B\u200C\u200C\u200C\u200B\u200B\u200C\u200C\u200B\u200C\u200C\u200B\u200B\u200B\u200C\u200C\u200B\u200B\u200B\u200B\u200C\u200B\u200C\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200C\u200C\u200B\u200B\u200C\u200B\u200C\u200B\u200C\u200C\u200B\u200C\u200C\u200B\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200C\u200C\u200C\u200C\u200C\u200B\u200C\u2061"
6312
+ },
6313
+ {
6314
+ version: 2,
6315
+ name: "layout field",
6316
+ clean: "Acme",
6317
+ ref: "layout:sec_nav:brand",
6318
+ payload: { "t": "l", "id": "sec_nav", "f": "brand" },
6319
+ framed: "\u2060\u2061Acme\u2060\u200B\u200C\u200C\u200C\u200C\u200B\u200C\u200C\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200C\u200C\u200C\u200B\u200C\u200B\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200C\u200C\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200C\u200C\u200B\u200C\u200C\u200B\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200C\u200C\u200B\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200C\u200C\u200B\u200C\u200B\u200B\u200C\u200B\u200C\u200C\u200B\u200B\u200C\u200B\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200C\u200C\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200C\u200C\u200C\u200B\u200B\u200C\u200C\u200B\u200C\u200C\u200B\u200B\u200C\u200B\u200C\u200B\u200C\u200C\u200B\u200B\u200B\u200C\u200C\u200B\u200C\u200B\u200C\u200C\u200C\u200C\u200C\u200B\u200C\u200C\u200B\u200C\u200C\u200C\u200B\u200B\u200C\u200C\u200B\u200B\u200B\u200B\u200C\u200B\u200C\u200C\u200C\u200B\u200C\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200C\u200C\u200B\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200C\u200C\u200B\u200B\u200C\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200C\u200C\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200C\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200C\u200C\u200C\u200B\u200B\u200C\u200B\u200B\u200C\u200C\u200B\u200B\u200B\u200B\u200C\u200B\u200C\u200C\u200B\u200C\u200C\u200C\u200B\u200B\u200C\u200C\u200B\u200B\u200C\u200B\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200C\u200C\u200C\u200C\u200C\u200B\u200C\u2061"
6320
+ },
6321
+ {
6322
+ version: 2,
6323
+ name: "component default",
6324
+ clean: "H\xE9llo \u65E5\u672C \u{1F600}",
6325
+ ref: "component:cmp_1:title",
6326
+ payload: { "t": "c", "id": "cmp_1", "f": "title" },
6327
+ framed: "\u2060\u2061H\xE9llo \u65E5\u672C \u{1F600}\u2060\u200B\u200C\u200C\u200C\u200C\u200B\u200C\u200C\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200C\u200C\u200C\u200B\u200C\u200B\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200C\u200C\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200C\u200C\u200B\u200B\u200B\u200C\u200C\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200C\u200C\u200B\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200C\u200C\u200B\u200C\u200B\u200B\u200C\u200B\u200C\u200C\u200B\u200B\u200C\u200B\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200C\u200C\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200C\u200C\u200B\u200B\u200B\u200C\u200C\u200B\u200C\u200C\u200B\u200C\u200C\u200B\u200C\u200B\u200C\u200C\u200C\u200B\u200B\u200B\u200B\u200B\u200C\u200B\u200C\u200C\u200C\u200C\u200C\u200B\u200B\u200C\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200C\u200C\u200B\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200C\u200C\u200B\u200B\u200C\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200C\u200C\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200C\u200C\u200C\u200B\u200C\u200B\u200B\u200B\u200C\u200C\u200B\u200C\u200B\u200B\u200C\u200B\u200C\u200C\u200C\u200B\u200C\u200B\u200B\u200B\u200C\u200C\u200B\u200C\u200C\u200B\u200B\u200B\u200C\u200C\u200B\u200B\u200C\u200B\u200C\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200C\u200C\u200C\u200C\u200C\u200B\u200C\u2061"
6328
+ },
6329
+ {
6330
+ version: 1,
6331
+ name: "v1 entry field",
6332
+ clean: "Hello world",
6333
+ ref: "entry:e_1:title",
6334
+ payload: { "ws": "w_1", "type": "entry", "id": "e_1", "slug": "home", "field": "title" },
6335
+ framed: "Hello world\u2060\u200B\u200C\u200C\u200C\u200C\u200B\u200C\u200C\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200C\u200C\u200C\u200B\u200C\u200C\u200C\u200B\u200C\u200C\u200C\u200B\u200B\u200C\u200C\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200C\u200C\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200C\u200C\u200C\u200B\u200C\u200C\u200C\u200B\u200C\u200B\u200C\u200C\u200C\u200C\u200C\u200B\u200B\u200C\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200C\u200C\u200B\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200C\u200C\u200C\u200B\u200C\u200B\u200B\u200B\u200C\u200C\u200C\u200C\u200B\u200B\u200C\u200B\u200C\u200C\u200C\u200B\u200B\u200B\u200B\u200B\u200C\u200C\u200B\u200B\u200C\u200B\u200C\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200C\u200C\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200C\u200C\u200B\u200B\u200C\u200B\u200C\u200B\u200C\u200C\u200B\u200C\u200C\u200C\u200B\u200B\u200C\u200C\u200C\u200B\u200C\u200B\u200B\u200B\u200C\u200C\u200C\u200B\u200B\u200C\u200B\u200B\u200C\u200C\u200C\u200C\u200B\u200B\u200C\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200C\u200C\u200B\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200C\u200C\u200B\u200C\u200B\u200B\u200C\u200B\u200C\u200C\u200B\u200B\u200C\u200B\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200C\u200C\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200C\u200C\u200B\u200B\u200C\u200B\u200C\u200B\u200C\u200B\u200C\u200C\u200C\u200C\u200C\u200B\u200B\u200C\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200C\u200C\u200B\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200C\u200C\u200C\u200B\u200B\u200C\u200C\u200B\u200C\u200C\u200B\u200C\u200C\u200B\u200B\u200B\u200C\u200C\u200C\u200B\u200C\u200B\u200C\u200B\u200C\u200C\u200B\u200B\u200C\u200C\u200C\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200C\u200C\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200C\u200C\u200B\u200C\u200B\u200B\u200B\u200B\u200C\u200C\u200B\u200C\u200C\u200C\u200C\u200B\u200C\u200C\u200B\u200C\u200C\u200B\u200C\u200B\u200C\u200C\u200B\u200B\u200C\u200B\u200C\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200C\u200C\u200B\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200C\u200C\u200B\u200B\u200C\u200C\u200B\u200B\u200C\u200C\u200B\u200C\u200B\u200B\u200C\u200B\u200C\u200C\u200B\u200B\u200C\u200B\u200C\u200B\u200C\u200C\u200B\u200C\u200C\u200B\u200B\u200B\u200C\u200C\u200B\u200B\u200C\u200B\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200C\u200C\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200C\u200C\u200C\u200B\u200C\u200B\u200B\u200B\u200C\u200C\u200B\u200C\u200B\u200B\u200C\u200B\u200C\u200C\u200C\u200B\u200C\u200B\u200B\u200B\u200C\u200C\u200B\u200C\u200C\u200B\u200B\u200B\u200C\u200C\u200B\u200B\u200C\u200B\u200C\u200B\u200B\u200C\u200B\u200B\u200B\u200C\u200B\u200B\u200C\u200C\u200C\u200C\u200C\u200B\u200C\u2061"
6336
+ }
6337
+ ];
6186
6338
  export {
6187
6339
  BG_TOKENS,
6188
6340
  BG_TOKEN_CSS,
@@ -6224,6 +6376,8 @@ export {
6224
6376
  DOCK_UI_NAME,
6225
6377
  EMBED_LEDGER_OUTCOMES,
6226
6378
  EMBED_REASONS,
6379
+ ENTRY_PATH_MAX,
6380
+ FIELD_REF_TARGETS,
6227
6381
  FIELD_SIZE_ZOOM,
6228
6382
  FIELD_STYLE_KEYS,
6229
6383
  FONT_SIZE_TOKEN_PX,
@@ -6233,6 +6387,8 @@ export {
6233
6387
  FORM_UPLOAD_PRESETS,
6234
6388
  FORM_UPLOAD_REFUSED_EXTENSIONS,
6235
6389
  FRAME_REFUSALS,
6390
+ GENERIC_ROLES,
6391
+ GENERIC_SCOPE,
6236
6392
  HELP_CAPS,
6237
6393
  HELP_LINE_MAX,
6238
6394
  HELP_MAX,
@@ -6266,6 +6422,7 @@ export {
6266
6422
  OPEN_MODES,
6267
6423
  OPEN_MODE_TYPES,
6268
6424
  OPTION_DESCRIPTION_MAX,
6425
+ OVERRIDES_SEP,
6269
6426
  PAGE_CONTENT_ANCHOR_ID,
6270
6427
  PHRASE_MAX,
6271
6428
  PRIMITIVE_ARRAY_RULE,
@@ -6291,6 +6448,7 @@ export {
6291
6448
  SECTION_SPACE_TOKENS,
6292
6449
  SEGMENTED_MAX,
6293
6450
  SEGMENTED_MIN,
6451
+ SEO_NATIVE_KEYS,
6294
6452
  SHOW_IF_SCOPES,
6295
6453
  SIDE_SPACE_MIN_PX,
6296
6454
  SIDE_SPACE_TOKENS,
@@ -6304,6 +6462,7 @@ export {
6304
6462
  SOURCE_RANK,
6305
6463
  SPACE_BOTTOM_TOKENS,
6306
6464
  SPACE_STEP_TOKENS,
6465
+ STEGA_VECTORS,
6307
6466
  STYLE_TOKEN_GROUPS,
6308
6467
  STYLE_USED_GROUPS,
6309
6468
  TABLE_COLUMN_TYPES,
@@ -6328,6 +6487,7 @@ export {
6328
6487
  allowRuleOf,
6329
6488
  anchorSlug,
6330
6489
  anchorTargetRel,
6490
+ blockSplits,
6331
6491
  blockStyleToColumnCss,
6332
6492
  blockStyleToCss,
6333
6493
  blockStyleToInnerCss,
@@ -6369,6 +6529,8 @@ export {
6369
6529
  fileFieldLimits,
6370
6530
  formUploadAccept,
6371
6531
  formUploadLimits,
6532
+ formatEntryPath,
6533
+ formatFieldRef,
6372
6534
  formatNumber,
6373
6535
  formatPropsAttribute,
6374
6536
  getBlockType,
@@ -6376,6 +6538,7 @@ export {
6376
6538
  headingPaintCss,
6377
6539
  hiddenEverywhere,
6378
6540
  hideOnAttr,
6541
+ humanize,
6379
6542
  iconHtml,
6380
6543
  iconIdentity,
6381
6544
  iconSrc,
@@ -6420,6 +6583,8 @@ export {
6420
6583
  normalizeTableValue,
6421
6584
  normalizeWindow,
6422
6585
  parseEmbedMarkers,
6586
+ parseEntryPath,
6587
+ parseFieldRef,
6423
6588
  parseLocalSetupManifest,
6424
6589
  parseNumberText,
6425
6590
  parsePropsAttribute,
@@ -6432,6 +6597,7 @@ export {
6432
6597
  readNumberFormat,
6433
6598
  readPath,
6434
6599
  readabilityProblem,
6600
+ refFromStamp,
6435
6601
  referenceCreateRefusal,
6436
6602
  regionOf,
6437
6603
  renderTableHtml,
@@ -6453,6 +6619,7 @@ export {
6453
6619
  slugify,
6454
6620
  spaceTokenCss,
6455
6621
  splitButtonStyle,
6622
+ stampFromRef,
6456
6623
  tableCellText,
6457
6624
  tablePathString,
6458
6625
  tableRefCells,