@bettercms-ai/types 1.61.1 → 1.62.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
@@ -45,10 +45,10 @@ declare const SEGMENTED_MIN = 2;
45
45
  declare const SEGMENTED_MAX = 8;
46
46
  /** Field / prop nesting depth. */
47
47
  declare const DEPTH_MAX = 10;
48
- /** Help and description caps by where the text sits. */
48
+ /** Help and description caps by where the text sits. A field's or a prop's help is ONE dock line: HELP_LINE_MAX. */
49
49
  declare const HELP_CAPS: {
50
- readonly field: 500;
51
- readonly prop: 200;
50
+ readonly field: 80;
51
+ readonly prop: 80;
52
52
  readonly placeholder: 120;
53
53
  readonly helpMore: 2000;
54
54
  readonly option: 140;
@@ -2118,6 +2118,10 @@ interface LayoutFieldDefinition {
2118
2118
  overridable?: boolean;
2119
2119
  /** Shown where the page editor would have offered the field. Required when overridable is false. */
2120
2120
  lockReason?: string;
2121
+ /** The dock's chrome, as on a content-model field (`design-section` writes it). */
2122
+ ui?: Record<string, unknown>;
2123
+ /** The section's `fieldsets` entry this field sits in (`design-section` fieldFieldset). */
2124
+ fieldsetId?: string;
2121
2125
  }
2122
2126
  /** The canonical public input contract all variants in a group implement. */
2123
2127
  type CanonicalInputDefinition = LayoutFieldDefinition;
@@ -2186,6 +2190,19 @@ interface LayoutSection {
2186
2190
  * SLOT's: a locale variant shows when its base does, whatever the variant's own row says.
2187
2191
  */
2188
2192
  window?: VisibilityWindow;
2193
+ /** The dock's groups, rows and tabs over `fields`, as a content model's `fieldsets` (`design-section`). */
2194
+ fieldsets?: Array<{
2195
+ id: string;
2196
+ name: string;
2197
+ kind?: string;
2198
+ tab?: string;
2199
+ } & Record<string, unknown>>;
2200
+ /** `"none"`: the dock draws no automatic tabs, as update_component `dock.tabs`. */
2201
+ dockTabs?: "none";
2202
+ /** The bettercms://kit entry the Section's dock follows (`design-section` kitEntry). */
2203
+ kitEntry?: string;
2204
+ /** Why no kit entry fits, when none does: the setup's `no-fit` answer (`design-section` kitNoFit). */
2205
+ kitNoFit?: string;
2189
2206
  }
2190
2207
  interface LayoutStructureDocument {
2191
2208
  version: 1;
@@ -2369,13 +2386,40 @@ type ManagementLayoutCommand = {
2369
2386
  sectionId: string;
2370
2387
  itemId: string;
2371
2388
  index: number;
2372
- } | {
2389
+ } | ({
2390
+ type: "design-section";
2391
+ sectionId: string;
2392
+ } & LayoutSectionDesign) | {
2373
2393
  type: "set-bindings";
2374
2394
  sectionId: string;
2375
2395
  itemId: string;
2376
2396
  bindings: LayoutComponentItem["bindings"];
2377
2397
  literalValues?: Record<string, unknown>;
2378
2398
  };
2399
+ /**
2400
+ * `design-section`: update_content_model's field chrome and update_component's dock, for one Layout
2401
+ * Section, in the same words. A path is a field's id or slug, dot-separated through its parents.
2402
+ */
2403
+ interface LayoutSectionDesign {
2404
+ fieldType?: Record<string, LayoutFieldType>;
2405
+ /** path → ui merged per key (a null key clears it); null clears the field's ui. */
2406
+ fieldUi?: Record<string, Record<string, unknown> | null>;
2407
+ fieldsets?: LayoutSection["fieldsets"] | null;
2408
+ fieldFieldset?: Record<string, string | null>;
2409
+ dockTabs?: "none" | null;
2410
+ /** The full new order of one parent's children (top level without parentPath). */
2411
+ fieldOrder?: {
2412
+ parentPath?: string;
2413
+ order: string[];
2414
+ };
2415
+ fieldLabel?: Record<string, string>;
2416
+ /** path → one help line; null = none on purpose. */
2417
+ fieldHelpText?: Record<string, string | null>;
2418
+ /** A bettercms://kit entry id; null clears it. */
2419
+ kitEntry?: string | null;
2420
+ /** Why no kit entry fits (12+ characters); null clears it. */
2421
+ kitNoFit?: string | null;
2422
+ }
2379
2423
  type ResolvedLayoutNode = {
2380
2424
  kind: "page-content";
2381
2425
  id: typeof PAGE_CONTENT_ANCHOR_ID;
@@ -3064,30 +3108,23 @@ declare function slotShapeProblems(value: unknown, opts?: SlotShapeOptions): Slo
3064
3108
  declare const slotPathString: (path: Array<string | number>) => string;
3065
3109
 
3066
3110
  /**
3067
- * What the dock says under a field, as data both sides read: the backend's generator
3068
- * (src/lib/content/help-text.ts) writes the role sentence and the control's how-to into the
3069
- * stored `helpText`; the dashboard adds a list column's example per row ({@link exampleFor}),
3070
- * because the example depends on WHICH row is open and a stored line has one value for all rows.
3071
- *
3072
- * A field's stored help is ONE dock line, at most {@link HELP_LINE_MAX} characters (owner, 2026-10-25):
3073
- * a role sentence (@see ROLE_HELP), or the site's own words where the markup has them. The canvas
3074
- * gesture that also edits the field is DATA (@see CONTROL_HELP's `gesture`), never appended prose.
3075
- * For a column of a list the dashboard may add `e.g. "<value>"` from the nearest OTHER row.
3111
+ * What the dock says under a field, as data both sides read. The platform writes NO help words
3112
+ * (owner, 2026-10-26: "hard-coded cheezein nahi rakhni"): the setup agent writes one line per field
3113
+ * from the section's source and purpose, through MCP, or null where the label says it all. This file
3114
+ * holds only the limit every writer is held to, the canvas gestures as DATA (@see CONTROL_HELP), and
3115
+ * the dashboard's per-row example ({@link exampleFor}), which depends on WHICH row is open.
3076
3116
  *
3077
3117
  * Pure. No DOM, no I/O.
3078
3118
  */
3079
3119
  /** Two dock lines at 12px in a ~250px column: a stored line plus its row's example. */
3080
3120
  declare const HELP_MAX = 160;
3081
- /** ONE dock line, no ellipsis: every line the platform writes fits it. */
3082
- declare const HELP_LINE_MAX = 48;
3083
- /** The longest help a client may write (an agent's `propHelpText`, a page field's): refused past it, `HELP_TEXT_TOO_LONG`. */
3084
- declare const HELP_WRITE_MAX = 80;
3085
3121
  /**
3086
- * What one role holds, said once: the role words a structural key ends in (@see ROLE_KEYS in
3087
- * sections.ts, and the server's ROLE_VOCABULARY), plus the words a band's shape and a list give.
3088
- * Never the label again, never writing advice.
3122
+ * ONE dock line, everywhere: the longest help any writer may store (an agent's `propHelpText`, a page
3123
+ * field's, a kit entry's line). Refused past it, `HELP_TEXT_TOO_LONG`. Aim for about 60.
3089
3124
  */
3090
- declare const ROLE_HELP: Readonly<Record<string, string>>;
3125
+ declare const HELP_LINE_MAX = 80;
3126
+ /** @deprecated The same limit: {@link HELP_LINE_MAX}. */
3127
+ declare const HELP_WRITE_MAX = 80;
3091
3128
  /**
3092
3129
  * The canvas gestures a how-to may name, each one a control the Visual Editor draws:
3093
3130
  * rows.reorder — a selected row's grip (dashboard canvas/dnd/RowGrip.tsx);
@@ -4573,4 +4610,4 @@ interface RichTextEmbeds {
4573
4610
  */
4574
4611
  declare const slugify: (s: string) => string;
4575
4612
 
4576
- 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, 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_VARIANTS, type BetterCMSErrorCode, type BgToken, type BindingKind, type BlockBinding, type BlockHoverStyle, type BlockStyle, type BlockType, type BodySchema, type BodySchemaOrigin, type ButtonAction, type ButtonBlock, type ButtonIcon, type ButtonLinkCandidate, type ButtonLookKey, type ButtonProps, type ButtonSiteLook, type ButtonSizeName, type ButtonValue, type ButtonVariant, CANVAS_GESTURE_NAMES, CATEGORY_ID_MAX, CATEGORY_ORDER, CODE_SLOT_PREFIX, COMPONENT_PROP_TYPES, 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 ComponentFormPropRef, 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, 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 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, type ElementLike, type EmbedCard, type ExpandedBinding, FIELD_SIZE_ZOOM, FIELD_STYLE_KEYS, FOOTER_SECTION_ID, 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, IMAGE_ASPECTS, IMAGE_FRAME_RADIUS, 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 LayoutSectionIcon, type LayoutSectionItem, type LayoutStructureDocument, type LayoutZone, 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 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_HELP, ROLE_KEYS, type RadiusToken, type ReadButtonValue, type Redirect, type ReferenceCreateCapability, type ReferenceCreateRefusal, type ReferenceCreateRefusalCode, type ReferenceCreateResult, type ReferenceCreatedOption, type ReservedLayoutSection, type ResolvedAuthor, type ResolvedLayoutNode, type ResolvedPost, type RichTextBlock, type RichTextElementName, type RichTextEmbeds, type RichTextFeature, type RichTextProps, type RichTextRefusalCode, type RichTextResolved, SCHEMA_HASH_INPUTS, 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_JSONLD_TYPES, TABLE_LIMITS, TABLE_RESPONSIVE, TAB_MAX, TAB_MAX_RENDERABLE_NOW, TAG_HEADS, 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 V2Placement, type V2Shape, type V2VariantMeta, V2_KEYS, V2_PLACEMENTS, V2_SHAPES, VIDEO_TRANSCRIPT_MAX, VIDEO_VALUE_KEYS, type ValidateDockUiInput, type ValidateDockUiOutput, type VariantGroupV2, type VariantInputMapping, type VideoBlock, type VideoProps, type VideoValue, type VisibilityWindow, type WeightToken, type WindowState, type Workspace, type WriteDockUiInput, type WriteDockUiOutput, type ZoneField, allowRuleOf, anchorTargetRel, blockStyleToColumnCss, blockStyleToCss, blockStyleToInnerCss, bodySchemaOf, buttonBlockProps, buttonFullWidthProblem, buttonIconOf, buttonIconSvg, buttonLinkPairs, buttonLookValue, buttonSiteLookOf, buttonValueOfInstance, buttonValueProblem, buttonVariantOf, candidateRole, canonicalJson, componentInstanceAddresses, componentPropTargetKey, derivedPairs, dockBudget, dockScreens, dockUiMerkleKey, exampleFor, expandBlockBindings, fieldGroupOf, fieldStyleCssText, fieldStyleToCss, formatNumber, formatPropsAttribute, getBlockType, headingPaintCss, hiddenEverywhere, hideOnAttr, imageFrameCss, inWindow, isBlock, isButtonLookValue, isChromeLandmark, isCodeButton, isDeriveReservedKey, isDockUiImportAllowed, isLinkObject, isReservedKey, isRoleKey, isRulePaired, isScriptHref, isSlotChild, isTableValue, isUiRefusal, keyWords, landmarkRegions, linkAnchorOf, linkHref, linkRefOf, linkValueProblem, locatorFor, locatorPath, mayOverwrite, normaliseRichTextFeatures, normalizeLinkValue, normalizeTableValue, normalizeWindow, parseNumberText, parsePropsAttribute, pickFieldStyle, placementBindOf, planSections, readButtonValue, readNumberFormat, readPath, referenceCreateRefusal, regionOf, renderTableHtml, richTextRefusal, rulePartnerOf, safeCssUrl, schemaHashInput, sideFloorApplies, sideSpaceCss, slotBindOf, slotChildValues, slotItems, slotPathString, slotShapeProblems, slugify, spaceTokenCss, splitButtonStyle, tableCellText, tablePathString, tableRefCells, tableSearchText, tableToMarkdown, tableValueProblems, topFieldKeyOf, uiRefusalId, usesHideOn, videoUrlOf, videoValueProblem, visibleBlocks, visibleDeliveredLayout, visibleLayoutStructure, windowState, withButtonLookProps, withExample };
4613
+ 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, 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_VARIANTS, type BetterCMSErrorCode, type BgToken, type BindingKind, type BlockBinding, type BlockHoverStyle, type BlockStyle, type BlockType, type BodySchema, type BodySchemaOrigin, type ButtonAction, type ButtonBlock, type ButtonIcon, type ButtonLinkCandidate, type ButtonLookKey, type ButtonProps, type ButtonSiteLook, type ButtonSizeName, type ButtonValue, type ButtonVariant, CANVAS_GESTURE_NAMES, CATEGORY_ID_MAX, CATEGORY_ORDER, CODE_SLOT_PREFIX, COMPONENT_PROP_TYPES, 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 ComponentFormPropRef, 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, 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 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, type ElementLike, type EmbedCard, type ExpandedBinding, FIELD_SIZE_ZOOM, FIELD_STYLE_KEYS, FOOTER_SECTION_ID, 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, IMAGE_ASPECTS, IMAGE_FRAME_RADIUS, 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 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 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 ResolvedLayoutNode, type ResolvedPost, type RichTextBlock, type RichTextElementName, type RichTextEmbeds, type RichTextFeature, type RichTextProps, type RichTextRefusalCode, type RichTextResolved, SCHEMA_HASH_INPUTS, 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_JSONLD_TYPES, TABLE_LIMITS, TABLE_RESPONSIVE, TAB_MAX, TAB_MAX_RENDERABLE_NOW, TAG_HEADS, 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 V2Placement, type V2Shape, type V2VariantMeta, V2_KEYS, V2_PLACEMENTS, V2_SHAPES, VIDEO_TRANSCRIPT_MAX, VIDEO_VALUE_KEYS, type ValidateDockUiInput, type ValidateDockUiOutput, type VariantGroupV2, type VariantInputMapping, type VideoBlock, type VideoProps, type VideoValue, type VisibilityWindow, type WeightToken, type WindowState, type Workspace, type WriteDockUiInput, type WriteDockUiOutput, type ZoneField, allowRuleOf, anchorTargetRel, blockStyleToColumnCss, blockStyleToCss, blockStyleToInnerCss, bodySchemaOf, buttonBlockProps, buttonFullWidthProblem, buttonIconOf, buttonIconSvg, buttonLinkPairs, buttonLookValue, buttonSiteLookOf, buttonValueOfInstance, buttonValueProblem, buttonVariantOf, candidateRole, canonicalJson, componentInstanceAddresses, componentPropTargetKey, derivedPairs, dockBudget, dockScreens, dockUiMerkleKey, exampleFor, expandBlockBindings, fieldGroupOf, fieldStyleCssText, fieldStyleToCss, formatNumber, formatPropsAttribute, getBlockType, headingPaintCss, hiddenEverywhere, hideOnAttr, imageFrameCss, inWindow, isBlock, isButtonLookValue, isChromeLandmark, isCodeButton, isDeriveReservedKey, isDockUiImportAllowed, isLinkObject, isReservedKey, isRoleKey, isRulePaired, isScriptHref, isSlotChild, isTableValue, isUiRefusal, keyWords, landmarkRegions, linkAnchorOf, linkHref, linkRefOf, linkValueProblem, locatorFor, locatorPath, mayOverwrite, normaliseRichTextFeatures, normalizeLinkValue, normalizeTableValue, normalizeWindow, parseNumberText, parsePropsAttribute, pickFieldStyle, placementBindOf, planSections, readButtonValue, readNumberFormat, readPath, referenceCreateRefusal, regionOf, renderTableHtml, richTextRefusal, rulePartnerOf, safeCssUrl, schemaHashInput, sideFloorApplies, sideSpaceCss, slotBindOf, slotChildValues, slotItems, slotPathString, slotShapeProblems, slugify, spaceTokenCss, splitButtonStyle, tableCellText, tablePathString, tableRefCells, tableSearchText, tableToMarkdown, tableValueProblems, topFieldKeyOf, uiRefusalId, usesHideOn, videoUrlOf, videoValueProblem, visibleBlocks, visibleDeliveredLayout, visibleLayoutStructure, windowState, withButtonLookProps, withExample };
package/dist/index.js CHANGED
@@ -3162,101 +3162,8 @@ var DOCK_ICON_NAME_SET = new Set(DOCK_ICON_NAMES);
3162
3162
 
3163
3163
  // src/help-catalog.ts
3164
3164
  var HELP_MAX = 160;
3165
- var HELP_LINE_MAX = 48;
3166
- var HELP_WRITE_MAX = 80;
3167
- var ROLE_HELP = {
3168
- // A top-level field's role in its section.
3169
- headline: "The page's main heading, one per page.",
3170
- heading: "The heading of this section.",
3171
- subheading: "Shown under the heading.",
3172
- eyebrow: "Short label shown above the heading.",
3173
- intro: "Shown under the heading. One or two sentences.",
3174
- paragraph: "A paragraph of text.",
3175
- text: "Text shown on the page.",
3176
- "primary-button": "The main call to action.",
3177
- "secondary-button": "The second call to action.",
3178
- button: "Its text, where it goes and how it looks.",
3179
- "button-label": "Button text. Two to four words work best.",
3180
- link: "Text of this link. Say where it leads.",
3181
- "home-link": "Takes visitors back to the home page.",
3182
- destination: "Pick a page or paste a full URL.",
3183
- image: "An image shown on the page.",
3184
- icon: "Optional icon before the label.",
3185
- logo: "An SVG or transparent PNG works best.",
3186
- "background-image": "Text sits on top, so pick a calm image.",
3187
- "video-poster": "Shown before the video plays.",
3188
- video: "Paste a link or upload an MP4.",
3189
- embed: "Paste the share link from the other site.",
3190
- audio: "Paste a link or upload an audio file.",
3191
- body: "Headings, paragraphs, lists and links.",
3192
- content: "Headings, paragraphs, lists and links.",
3193
- copyright: "Shown at the bottom of every page.",
3194
- email: "An email address, such as name@example.com.",
3195
- phone: "A phone number, with its country code.",
3196
- price: "Whole number, no currency symbol.",
3197
- percentage: "A number with its % sign.",
3198
- number: "A figure shown on the page.",
3199
- date: "A date, written as it should appear.",
3200
- "stat-value": "A figure shown large, such as 70k+.",
3201
- "stat-label": "What the figure counts.",
3202
- quote: "Without quote marks.",
3203
- attribution: "Who said it.",
3204
- caption: "Shown under the image.",
3205
- label: "A short label.",
3206
- summary: "Shown in lists and previews.",
3207
- address: "The postal address, as it should appear.",
3208
- code: "Shown exactly as written.",
3209
- term: "The word or phrase being explained.",
3210
- definition: "What the term means.",
3211
- "table-heading": "Heading of a table column.",
3212
- "table-cell": "One cell of the table.",
3213
- "list-item": "One item of the list.",
3214
- list: "One item per row.",
3215
- links: "One link per row.",
3216
- band: "All the text of this section, edited as one.",
3217
- // A column's role in its row.
3218
- title: "The title of this item.",
3219
- subtitle: "Shown under the title.",
3220
- description: "One line under the name.",
3221
- value: "The value shown for this item.",
3222
- // What a band's shape calls an element.
3223
- "plan-name": "Short name, shown at the top of the card.",
3224
- cents: "Digits after the decimal point.",
3225
- "billing-period": "How often the price is charged.",
3226
- // The parts of a plan's price object.
3227
- amount: "Whole number, no currency symbol.",
3228
- period: "How often the price is charged.",
3229
- badge: "Optional. A few words to make it stand out.",
3230
- features: "One feature per row.",
3231
- question: "One question, as a customer would ask it.",
3232
- answer: "Shown when the question is opened.",
3233
- author: "The person's full name.",
3234
- role: "Their job title and company.",
3235
- // What an attribute is, by what carries it.
3236
- tooltip: "Shown when the pointer rests on it.",
3237
- placeholder: "Shown in the empty input.",
3238
- "image-description": "Read by screen readers, not shown on the page.",
3239
- "counter-target": "The number the counter runs up to.",
3240
- attribute: "A setting of this element, not shown as text.",
3241
- "navigation-label": "Read by screen readers, not shown on the page.",
3242
- "link-label": "Read by screen readers, not shown on the page.",
3243
- "image-label": "Read by screen readers, not shown on the page.",
3244
- "field-label": "Read by screen readers, not shown on the page.",
3245
- "header-label": "Read by screen readers, not shown on the page.",
3246
- "footer-label": "Read by screen readers, not shown on the page.",
3247
- "aside-label": "Read by screen readers, not shown on the page.",
3248
- "section-label": "Read by screen readers, not shown on the page.",
3249
- "heading-label": "Read by screen readers, not shown on the page.",
3250
- // What a list's rows are.
3251
- plans: "One plan per card.",
3252
- questions: "One question and its answer per row.",
3253
- quotes: "One quote per row, with who said it.",
3254
- testimonials: "One quote per row, with who said it.",
3255
- stats: "One figure per row, with what it counts.",
3256
- logos: "One logo per row.",
3257
- cards: "One card per row.",
3258
- items: "One item per row."
3259
- };
3165
+ var HELP_LINE_MAX = 80;
3166
+ var HELP_WRITE_MAX = HELP_LINE_MAX;
3260
3167
  var CANVAS_GESTURE_NAMES = ["rows.reorder", "image.replace", "link.popover", "text.inline"];
3261
3168
  var CONTROL_HELP = {
3262
3169
  rows: { text: "Drag to reorder. You can also drag rows on the canvas.", gesture: "rows.reorder" },
@@ -4567,8 +4474,8 @@ var SEGMENTED_MIN = 2;
4567
4474
  var SEGMENTED_MAX = 8;
4568
4475
  var DEPTH_MAX = 10;
4569
4476
  var HELP_CAPS = {
4570
- field: 500,
4571
- prop: 200,
4477
+ field: HELP_LINE_MAX,
4478
+ prop: HELP_LINE_MAX,
4572
4479
  placeholder: 120,
4573
4480
  helpMore: 2e3,
4574
4481
  option: OPTION_DESCRIPTION_MAX,
@@ -4953,7 +4860,6 @@ export {
4953
4860
  RICHTEXT_HEADING_FEATURES,
4954
4861
  RICHTEXT_MARK_FEATURES,
4955
4862
  RICHTEXT_TOGGLE_FEATURES,
4956
- ROLE_HELP,
4957
4863
  ROLE_KEYS,
4958
4864
  SCHEMA_HASH_INPUTS,
4959
4865
  SECTION_DOCTRINE,