@vectoriox/iox-ui 5.105.1 → 5.106.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/vectoriox-iox-ui-forms-core.mjs +2 -1
- package/fesm2022/vectoriox-iox-ui-forms-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs +49 -17
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui.mjs +2 -1
- package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
- package/forms-core/index.d.ts +2 -1
- package/generation-core/index.d.ts +25 -8
- package/package.json +1 -1
- package/src/forms-core/channel.ts +2 -1
- package/src/generation-core/audit-site.ts +44 -11
- package/src/generation-core/compose-site.ts +5 -4
- package/src/generation-core/patterns.ts +1 -1
package/forms-core/index.d.ts
CHANGED
|
@@ -585,7 +585,8 @@ declare function formChromeHtml(honeypotField: string): string;
|
|
|
585
585
|
* It is an ordinary node in the form's actions row (a ButtonBlock that links) carrying the ROLE `form.channel`, so the
|
|
586
586
|
* shared CSS keeps it on screen when the form succeeds and the Publishable gate can find it. Its address is the
|
|
587
587
|
* OWNER's fact: the builder builds it from what the author types (a number, an address, a link) and never invents one —
|
|
588
|
-
* inserted empty, it
|
|
588
|
+
* inserted empty, it is a reminder (generation-core `auditSite`, `empty-channel`, never a block since 2026-11-18) and the
|
|
589
|
+
* live site leaves it out until it is filled (iox-cms `withoutBlankContacts`).
|
|
589
590
|
*
|
|
590
591
|
* Framework-free, like the rest of forms-core.
|
|
591
592
|
*/
|
|
@@ -6517,7 +6517,7 @@ declare function planEntrances(input: PlanEntrancesInput): EntranceStamp[];
|
|
|
6517
6517
|
* tag · `level` a Heading's level · `lay` layout-only styleProps · `resp` per-breakpoint styleProps ·
|
|
6518
6518
|
* `aspect` an Image's aspect ratio · `slot` author-editable text, filled from the plan's section slots ·
|
|
6519
6519
|
* `fromBusiness` text from the plan's business · `text` the pattern's own words (`{year}` and
|
|
6520
|
-
* `{business.name}` are filled at compose time) · `ph` a
|
|
6520
|
+
* `{business.name}` are filled at compose time) · `ph` a placeholder (a FACT key — a reminder the live site leaves out —,
|
|
6521
6521
|
* `copy` or `image`) · `bind` a binding path on the repeater item (`item.*`), the route item
|
|
6522
6522
|
* (`route.*`) or its next sibling (`next.*`) — or, on an `each` node, the page it is stamped for
|
|
6523
6523
|
* (`page.*`, written as plain words) · `alt` an Image's alt binding (default: the bound item's preview
|
|
@@ -7117,7 +7117,8 @@ declare function archetypeIssues(plan: SitePlan): SitePlanIssue[];
|
|
|
7117
7117
|
* name; never a fact the customer did not give (blank → a placeholder carrying the fact's label).
|
|
7118
7118
|
*/
|
|
7119
7119
|
declare enum PlaceholderKind {
|
|
7120
|
-
/** A FACT the customer did not give (email, phone, city)
|
|
7120
|
+
/** A contact FACT the customer did not give (email, phone, city, address, hours). Never publish-blocking (2026-11-18):
|
|
7121
|
+
* a reminder, and the live site leaves the line out until it is filled. */
|
|
7121
7122
|
Fact = "fact",
|
|
7122
7123
|
/** The pattern's own words, for the author to rewrite. */
|
|
7123
7124
|
Copy = "copy",
|
|
@@ -8554,8 +8555,10 @@ declare function planWordIssues(plan: SitePlan, ctx: PlanWordContext): PlanWordI
|
|
|
8554
8555
|
* THE Publishable gate (AI plan §3e, M1-7): ONE pure function over a snapshot of a site — its pages, globals, the
|
|
8555
8556
|
* connectors' health, the look's token rows, what a build left to fill — run by the Publish dialog, the builder's
|
|
8556
8557
|
* Needs attention and the server on publish (iox-cms refuses with the same findings). Works on any site, generated
|
|
8557
|
-
* or hand-built. Severity is decision D8: an unfilled
|
|
8558
|
-
* BLOCKS; samples, copy placeholders and stock photos ASK ("Publish anyway"); the rest WARN.
|
|
8558
|
+
* or hand-built. Severity is decision D8: an unfilled price or number, a policy placeholder or an action that points at
|
|
8559
|
+
* nothing BLOCKS; samples, copy placeholders and stock photos ASK ("Publish anyway"); the rest WARN. ⚠️ A contact detail
|
|
8560
|
+
* (email, phone, address, city, hours — and a form's second channel) NEVER blocks (Doron, 2026-11-18): it is a reminder,
|
|
8561
|
+
* and the live site leaves the line out until the owner fills it (iox-cms `withoutBlankContacts`). Design advice
|
|
8559
8562
|
* (harness-core `lintDesign`) is not one of the eight — the caller adds it, and it never blocks.
|
|
8560
8563
|
*/
|
|
8561
8564
|
declare enum SiteCheckId {
|
|
@@ -8586,7 +8589,11 @@ declare enum SiteFindingCode {
|
|
|
8586
8589
|
TrackerWithoutBanner = "tracker-without-banner",
|
|
8587
8590
|
NoTitle = "no-title",
|
|
8588
8591
|
NoDescription = "no-description",
|
|
8592
|
+
/** A price, a number or a video the studio stands behind, still blank — blocks (never written for it). */
|
|
8589
8593
|
UnfilledFact = "unfilled-fact",
|
|
8594
|
+
/** A contact detail the studio has not given (email, phone, address, city, hours): a reminder, never a block — the
|
|
8595
|
+
* live site leaves its line out until it is filled. */
|
|
8596
|
+
ContactMissing = "contact-missing",
|
|
8590
8597
|
CopyPlaceholder = "copy-placeholder",
|
|
8591
8598
|
SampleItems = "sample-items",
|
|
8592
8599
|
/** Commerce G1 (shop-aware §3i): a sample product the build added still has no price — a price is a fact a buyer is
|
|
@@ -8599,6 +8606,9 @@ declare enum SiteFindingCode {
|
|
|
8599
8606
|
* one of its facts — a way to get paid, delivery, the business's identity, the owner's own legal pages. Each is the
|
|
8600
8607
|
* owner's to answer, never written for them; the finding carries the gate's code in `fact`. */
|
|
8601
8608
|
StoreFact = "store-fact",
|
|
8609
|
+
/** Commerce: the checkout gate refuses for a missing business CONTACT (address, email, phone). The checkout stays
|
|
8610
|
+
* closed until it is answered (the server's checkout gate refuses on its own); the site itself still publishes. */
|
|
8611
|
+
StoreContact = "store-contact",
|
|
8602
8612
|
StockPhoto = "stock-photo",
|
|
8603
8613
|
/** M7: a picture made with AI for the site still stands where one of the studio's own could. */
|
|
8604
8614
|
MadePicture = "made-picture",
|
|
@@ -8626,7 +8636,7 @@ interface SiteFinding {
|
|
|
8626
8636
|
nodeId?: string;
|
|
8627
8637
|
/** The global slot (`header` / `footer`) when it is in a global. */
|
|
8628
8638
|
owner?: string;
|
|
8629
|
-
/** `store-fact`: the checkout gate's code (commerce-core `CheckoutGateCode`) — which fact, so a screen can open where it is answered. */
|
|
8639
|
+
/** `store-fact` / `store-contact`: the checkout gate's code (commerce-core `CheckoutGateCode`) — which fact, so a screen can open where it is answered. */
|
|
8630
8640
|
fact?: string;
|
|
8631
8641
|
}
|
|
8632
8642
|
interface SiteCheck {
|
|
@@ -8712,6 +8722,8 @@ interface SiteAuditOptions {
|
|
|
8712
8722
|
/** Audit as if only this page were being published (its own page checks + every site-wide one). */
|
|
8713
8723
|
pageId?: string;
|
|
8714
8724
|
}
|
|
8725
|
+
/** The checkout gate's refusals that are a business CONTACT: they close the checkout, never the site (2026-11-18). */
|
|
8726
|
+
declare const STORE_CONTACT_CODES: ReadonlySet<string>;
|
|
8715
8727
|
/** Commerce G2: the site sells — a page or a global holds a part that puts a product in the bag or opens the checkout. */
|
|
8716
8728
|
declare function siteSells(snapshot: Pick<SiteAuditSnapshot, 'pages' | 'globals'>): boolean;
|
|
8717
8729
|
/** A route pattern (`/work/:slug`) matches a concrete path (`/work/blue-bowl`). */
|
|
@@ -8720,7 +8732,7 @@ declare function routeMatches(pattern: string, path: string): boolean;
|
|
|
8720
8732
|
declare function auditSite(snapshot: SiteAuditSnapshot, options?: SiteAuditOptions): SiteAudit;
|
|
8721
8733
|
/** Why the server refused a publish (409) — the dialog the client opens from the findings it carries. */
|
|
8722
8734
|
declare enum PublishRefusalCode {
|
|
8723
|
-
/** A block nothing lifts (a blank
|
|
8735
|
+
/** A block nothing lifts (a blank price or number, a policy placeholder, a dead action). */
|
|
8724
8736
|
Blocked = "site.publishBlocked",
|
|
8725
8737
|
/** Asks the request must acknowledge, by code (`publishAcknowledged`). */
|
|
8726
8738
|
NeedsAck = "site.publishNeedsAck"
|
|
@@ -8736,8 +8748,13 @@ interface PublishRefusal {
|
|
|
8736
8748
|
}
|
|
8737
8749
|
/** What a publish request must acknowledge: every ASK finding's code (a BLOCK cannot be acknowledged). */
|
|
8738
8750
|
declare function requiredAcknowledgements(audit: SiteAudit): SiteFindingCode[];
|
|
8751
|
+
/** What a publish puts live: one page (the builder's Publish) or every page at once (Publish site, 2026-11-18). */
|
|
8752
|
+
declare enum PublishScope {
|
|
8753
|
+
Page = "page",
|
|
8754
|
+
Site = "site"
|
|
8755
|
+
}
|
|
8739
8756
|
/** The refusal a publish gets for an audit and its acknowledgements — or null: it may go (the server's ONE rule). */
|
|
8740
|
-
declare function publishRefusal(audit: SiteAudit, acknowledged?: ReadonlyArray<string
|
|
8757
|
+
declare function publishRefusal(audit: SiteAudit, acknowledged?: ReadonlyArray<string>, scope?: PublishScope): PublishRefusal | null;
|
|
8741
8758
|
/** The publish verdict: blocked (never acknowledgeable), needs these acknowledgements, or free to go. */
|
|
8742
8759
|
declare function publishVerdict(audit: SiteAudit, acknowledged?: ReadonlyArray<string>): {
|
|
8743
8760
|
ok: boolean;
|
|
@@ -10112,5 +10129,5 @@ declare function applyLayoutEdits(page: LayoutPage, edits: ReadonlyArray<LayoutE
|
|
|
10112
10129
|
/** The strict format a repair is asked in: `{ edits: [{ op, path, value }] }`, every key required. */
|
|
10113
10130
|
declare function layoutRepairJsonSchema(): JsonSchema;
|
|
10114
10131
|
|
|
10115
|
-
export { ACCOUNT_ENTRY_ID, ACTION_START_SCALE, ACTIVE_BUILD_STATUSES, AI_COMPOSED_PAGES_ESTIMATED, AI_PLAN_REASKED_PART, AI_REFUSAL_NEXT, AI_REFUSAL_STATUS, AI_STEPS, AI_STEP_LABELS, AI_STEP_NEEDS, AI_STEP_PART_TOKENS, AI_STEP_TYPICAL_TOKENS, ART_DIRECTION_PARTS, AiCallStatus, AiCapability, AiFeature, AiGenerationStage, AiKeyMode, AiLimit, AiNextKind, AiProviderId, AiRefusalCode, AiStep, BAR_ITEMS_MAX, BAR_ITEMS_MIN, BASELINE_ROLES, BUILD_STEPS, BaselineRole, BindScope, BuildNoticeCode, BuildStep, CONTENT_ROLE_MEANINGS, CREDITS_PER_USD, CardBindTarget, CheckSeverity, ComposeError, ComposeIssueCode, ContentFieldControl, ContentFieldType, ContentRole, ContentTypeAction, CreatedKind, DANGLING_LINK_CODES, DEFAULT_PHONE_MENU_BREAKPOINT, DEFAULT_SITE_LOCALE, ENTRANCE_EASING, ENTRANCE_ORIGIN_LOOK, ENTRANCE_TRIGGER, EntrancePart, EntranceSide, FACT_KEYS, FIELD_TYPE_OF_CONTROL, FILL_ASPECT, FILM_PATTERN, FINAL_GENERATION_STAGES, FINDING_SEVERITY, FilmUnplaced, GRAMMAR_TOO_LARGE_MESSAGE, GlobalSlot, HEBREW_PREFIXES, JSON_SCHEMA_BANNED_KEYWORDS, JsonSchemaShapeError, KeptReason, LAYOUT_ACCENT_TEXT, LAYOUT_BEAT_DELAY, LAYOUT_CHECK_VIEWPORT, LAYOUT_COLOUR_TOKEN, LAYOUT_COLUMN_GAP, LAYOUT_DEPTH_ON_PHONE, LAYOUT_DRIFT, LAYOUT_EASING, LAYOUT_ENTRANCE_MAX_MS, LAYOUT_FONT_SIZE, LAYOUT_GUTTER, LAYOUT_HIDDEN_OPACITY, LAYOUT_KINETIC_KINDS, LAYOUT_LINE_HEIGHT, LAYOUT_OPERATED, LAYOUT_PACE, LAYOUT_PHONE_BREAKPOINT, LAYOUT_PHONE_PADDING, LAYOUT_PHOTO_ASPECT, LAYOUT_READY_MADE_TOKEN, LAYOUT_RISE, LAYOUT_SCREEN_PX, LAYOUT_TEXT_KINDS, LAYOUT_TOOLTIP_TRAIT, LAYOUT_VIEWPORTS, LAYOUT_WIRE_AUTOPLAY_MS, LayoutAlign, LayoutBleed, LayoutButtonVariant, LayoutColour, LayoutColourMode, LayoutDepth, LayoutDial, LayoutEase, LayoutEditOp, LayoutEnter, LayoutGalleryEffect, LayoutGapCode, LayoutIssueCode, LayoutLayerKind, LayoutMendKind, LayoutNavKind, LayoutPace, LayoutPhotoShape, LayoutPhotoSource, LayoutRole, LayoutSectionKind, LayoutSequenceToken, LayoutSide, LayoutSignatureId, LayoutSize, LayoutSourceChoice, LayoutTrackProp, LayoutTransition, LayoutViewport, MAX_SITE_PICTURES, NAV_PART_LABELS, NAV_SHAPE_COPY, NEUTRAL_STYLE_PROPS, NODE_BASELINES, NO_TOKENS, NavPagesSource, NavRole, NavShape, NavShapeError, PAGE_ARCHETYPES, PHOTO_ANALYSIS_WIDTH, PHOTO_CALM_DETAIL, PHOTO_GRID, PHOTO_LIGHT_LUMINANCE, PICTURE_ASPECTS, PICTURE_NEVER, PICTURE_REAL_PLACE_FAMILIES, PICTURE_REROLL_EVERY, PICTURE_REVIEW_FORMAT, PICTURE_REVIEW_SHAPE, PICTURE_TEXT_CONTRAST, PICTURE_WORLDS, PICTURE_WORLD_IDS, PLAN_EDITS_ANSWER_SHAPES, PLAN_EDITS_PART_SCHEMA_NAMES, PLAN_EDIT_OP_PART, PLAN_EDIT_SHAPE, PLAN_EDIT_WIRE_KEYS, PLAN_PARTS, PLAN_PART_KEYS, PLAN_WIRE_DERIVED, PLAN_WIRE_PART_SCHEMA_NAMES, PLAN_WIRE_SHAPE, PRICING_PATTERN, PROOF_FINGERPRINTS, PUBLISH_BLOCKING_PLACEHOLDERS, PageDataKind, PathIssueCollector, PatternDirective, PatternGlobalPosition, PatternOpens, PatternPlaceholder, PatternRecipe, PhoneMenuBreakpoint, PhotoTone, PictureRefusal, PictureWorld, PlaceholderKind, PlanChangeAction, PlanChangeKind, PlanDataSourceMode, PlanDataSourceType, PlanEditIssueCode, PlanEditOp, PlanEditsOutcome, PlanPart, PlanWireEntry, PlanWireShapeError, PlanWordIssueCode, PreflightRefusalCode, PriceBindTarget, PublishRefusalCode, RENDER_CHECK, REQUIRED_CONTENT_ROLES, RelativeOp, SAMPLE_IMAGE_REF, SCENE_LEVEL, SCENE_OTHER_PAGES, SCRIM_BACKGROUND, SCRIM_COVER, SCRIM_LEVELS, SHOP_CART_BUTTON_ID, SHOP_CART_DRAWER_ID, SHOP_FIELDS, SHOP_LATEST_LIMIT, SHOP_LIST_LIMIT, SHOP_NEED, SHOP_ONLY_CONTENT_ROLES, SHOP_PRODUCTS_MAX, SHOP_ROLES, SHOP_SLUG_FIELD, SHOWCASE_FILM, SHOWCASE_SHOP, SIGN_IN_DIALOG_ID, SITE_CHECKS, SITE_FACT_LABELS, SITE_HEADER_PATTERN, SITE_LIBRARY, SITE_LOCALES, SITE_NEED_IDS, SITE_PATTERNS, SITE_PLAN_VERSION, SITE_TEMPLATES, SPEC_SITE_ARCHETYPES, SPEC_SITE_COPY_LENGTHS, SPEC_SITE_DENSITY_COPY, SPEC_SITE_FACTS, SPEC_SITE_LAYOUT, SPEC_SITE_LIBRARY, SPEC_SITE_LOCALES, SPEC_SITE_NEED_IDS, SPEC_SITE_PATTERNS, SPEC_SITE_PICTURE_NEVER, SPEC_SITE_PICTURE_WORLDS, SPEC_SITE_PLAN_SHAPE, SPEC_SITE_REQUIRED_ROLES, SPEC_SITE_ROLES, SPEC_SITE_TEMPLATES, STOCK_FAMILIES, STOCK_FAMILY_INTENTS, STOCK_INTENT_ORDER, STOCK_INTENT_SUBJECTS, STOCK_ITEM_ASPECT, STOCK_MIN_KEPT, STOCK_PROVIDER_TERMS, STOCK_SEED_MARGIN, STOCK_SUBJECT_WORDS, STRICT_SCHEMA_BUDGET, STRICT_SCHEMA_LIMITS, STUDIO_TEMPLATE, ScrimLevel, SectionFallbackLastResort, SectionSwapAction, SectionSwapRule, ShopResource, ShopSourceRole, SiteBuildKind, SiteBuildStatus, SiteCheckId, SiteFindingCode, SiteLocale, SitePlanError, SitePlanIssueCode, SitePlanSourceKind, SiteTemplateError, SiteTemplateId, StepState, StockIntent, StockOrientation, StockProviderId, StockReviewFlag, StockReviewVerdict, StockSlotKind, StockSubject, WORDS_AREA_DEFAULT_SHARE, WordsEdge, addBarItem, addStockCredits, aiRefusalNext, aiStepParts, applyLayoutEdits, applyOwnPhotoGalleries, applyPictureScrims, applyPlanEdits, applyStockItemPhotos, applyStockPhotos, archetypeIssues, areaLuminance, artDirectionFor, artDirectionIssues, artDirectionPreamble, aspectRatioOf, assertStyleSlots, assertValidSitePlan, auditLayoutMotion, auditSite, barIconForRoute, blocksPublish, brandHueWord, buildKeys, buildStepFacts, buildStepsOf, builtHomePageId, calmParts, calmUnder, checkLayout, chooseScrim, composeContextOf, composeLayout, composeNavHeader, composePresetForm, composeSection, composeSite, contentTypeOfSource, contentTypePreviewFields, contentTypeToWire, copyLengthOf, costUsd, coverCrop, createSerializedNode, creditsOfUsd, dataSourceToWire, derivedBeats, derivedDataSources, derivedShopSources, describeInventoryForPrompt, describePlanData, describeShapeKey, driftAt, driftOverlap, emptyAreaPhrase, entranceAction, entranceInteraction, estimatePictures, estimateStepCredits, expandLayoutWire, expandPlanWire, expandWireContentType, expandWireDataSource, expandWireEdit, expandWireField, expandWirePage, expandWireSection, expandWireShop, failedBuildStep, fallBackBySection, fieldToWire, filmOfPlan, filmPlacement, findNavRoot, fingerprintOf, frameWords, isActiveBuild, isLayoutRule, isNonEmptyString, isPictureWorld, isPlainObject, isRtlLocale, isShopResource, jsonAnyOf, jsonBoolean, jsonClosedObject, jsonInteger, jsonListOf, jsonOneOf, jsonSchemaKeywords, jsonSchemaObjects, jsonShapedObject, jsonText, judgeLayoutRender, layerShownSpans, layoutBandScheme, layoutBoxPx, layoutColumnsVw, layoutDesignOf, layoutDialOf, layoutDriftPhoto, layoutElementStyle, layoutGalleryLists, layoutGallerySources, layoutGlideDepth, layoutHeldStill, layoutLookChanges, layoutLookOf, layoutMotionOf, layoutNodeClass, layoutOpeningDisplayMend, layoutOpeningDisplays, layoutPathSteps, layoutPhotoIds, layoutPresetColours, layoutPresetOf, layoutRepairJsonSchema, layoutRoomPx, layoutRuleEdge, layoutShapeHasPurpose, layoutStillLine, layoutTextFits, layoutTextWidthEm, layoutToWire, layoutVoidScreens, layoutVoids, layoutWireJsonSchema, luminanceOf, measureLayout, mendLayout, modelCanDo, moveBarItem, navPages, navShapeBreakpoint, navShapeOf, nextSourceOf, nodeBindPaths, orientationOfRatio, ownPhotoFit, pageToWire, parseLayoutPhotoId, parsePatternPath, parseSampleImageRef, pathAt, patternById, patternHasForm, patternLinkSlots, patternListGap, patternManifest, patternNeedsBinding, patternNodes, patternOptionalParts, patternRoleNeeds, patternScopes, patternSlotBudgets, patternSlots, patternTakesBinding, phoneGapBefore, phoneMenuPages, phoneWordsColour, photoInventory, photoShapeOf, pictureAspect, pictureItemsOf, picturePrompt, pictureRefusalOf, pictureRerolls, pictureReviewIssues, pictureReviewJsonSchema, pictureReviewPasses, pictureSlotKey, pictureTargets, pictureTryFits, pixelsUnder, placeFilm, planEditOps, planEditToWire, planEditWireGaps, planEditWireKeys, planEditWireOps, planEditWireShape, planEditsFromWire, planEditsJsonSchema, planEditsToWire, planEntrances, planFromTemplate, planHasShopSource, planLayoutPhotos, planNavShape, planOwnPhotos, planPartOfPath, planPartToWire, planPictures, planSells, planStockPhotos, planToWire, planWireGaps, planWirePartJsonSchema, planWirePartShape, planWordIssues, pricesIn, publishRefusal, publishVerdict, readyMadeColumn, recipeListBinds, recomposeAsks, releasedLayoutDefaults, removeBarItem, requiredAcknowledgements, requiredShapeKeys, roleField, routeMatches, routeParams, samenessIssues, sampleImageRef, scoreStockPhoto, screenFontSize, screenWordColumns, screenWordMisfit, screenWordOverflowPx, sectionEntrances, sectionPatternIds, sectionToWire, sectionsNamed, sequenceShare, sequenceTokenOf, setStyleProps, shapeKeys, shopCategoriesOf, shopContentType, shopSourceAliases, showcaseGlobals, showcasePages, showcasePlans, showcaseScenes, showcaseStorePages, shownTogether, signatureOf, siteNavPages, siteSells, slotBudget, splitSide, stockCopyKey, stockCreditLine, stockCreditLines, stockCreditNode, stockCreditNodeId, stockFits, stockGroupOf, stockItemSlots, stockKept, stockPhotoRatio, stockPhotoSubject, stockPhotoUsable, stockPhotoWords, stockSlots, stockWord, stockWords, strictSchemaComplexity, strictSchemaRefusal, toneOf, typicalStepTokens, validatePlanEdits, validateSitePlan, variantNamesOf, walkSerialized, wireContentTypeJsonSchema, wireDataSourceJsonSchema, wireFieldJsonSchema, wirePageJsonSchema, wireSectionJsonSchema, wireShopProductJsonSchema, withDerivedSources, wordPattern, wordsOverPhotos, wordsOverPicture, writtenTexts };
|
|
10132
|
+
export { ACCOUNT_ENTRY_ID, ACTION_START_SCALE, ACTIVE_BUILD_STATUSES, AI_COMPOSED_PAGES_ESTIMATED, AI_PLAN_REASKED_PART, AI_REFUSAL_NEXT, AI_REFUSAL_STATUS, AI_STEPS, AI_STEP_LABELS, AI_STEP_NEEDS, AI_STEP_PART_TOKENS, AI_STEP_TYPICAL_TOKENS, ART_DIRECTION_PARTS, AiCallStatus, AiCapability, AiFeature, AiGenerationStage, AiKeyMode, AiLimit, AiNextKind, AiProviderId, AiRefusalCode, AiStep, BAR_ITEMS_MAX, BAR_ITEMS_MIN, BASELINE_ROLES, BUILD_STEPS, BaselineRole, BindScope, BuildNoticeCode, BuildStep, CONTENT_ROLE_MEANINGS, CREDITS_PER_USD, CardBindTarget, CheckSeverity, ComposeError, ComposeIssueCode, ContentFieldControl, ContentFieldType, ContentRole, ContentTypeAction, CreatedKind, DANGLING_LINK_CODES, DEFAULT_PHONE_MENU_BREAKPOINT, DEFAULT_SITE_LOCALE, ENTRANCE_EASING, ENTRANCE_ORIGIN_LOOK, ENTRANCE_TRIGGER, EntrancePart, EntranceSide, FACT_KEYS, FIELD_TYPE_OF_CONTROL, FILL_ASPECT, FILM_PATTERN, FINAL_GENERATION_STAGES, FINDING_SEVERITY, FilmUnplaced, GRAMMAR_TOO_LARGE_MESSAGE, GlobalSlot, HEBREW_PREFIXES, JSON_SCHEMA_BANNED_KEYWORDS, JsonSchemaShapeError, KeptReason, LAYOUT_ACCENT_TEXT, LAYOUT_BEAT_DELAY, LAYOUT_CHECK_VIEWPORT, LAYOUT_COLOUR_TOKEN, LAYOUT_COLUMN_GAP, LAYOUT_DEPTH_ON_PHONE, LAYOUT_DRIFT, LAYOUT_EASING, LAYOUT_ENTRANCE_MAX_MS, LAYOUT_FONT_SIZE, LAYOUT_GUTTER, LAYOUT_HIDDEN_OPACITY, LAYOUT_KINETIC_KINDS, LAYOUT_LINE_HEIGHT, LAYOUT_OPERATED, LAYOUT_PACE, LAYOUT_PHONE_BREAKPOINT, LAYOUT_PHONE_PADDING, LAYOUT_PHOTO_ASPECT, LAYOUT_READY_MADE_TOKEN, LAYOUT_RISE, LAYOUT_SCREEN_PX, LAYOUT_TEXT_KINDS, LAYOUT_TOOLTIP_TRAIT, LAYOUT_VIEWPORTS, LAYOUT_WIRE_AUTOPLAY_MS, LayoutAlign, LayoutBleed, LayoutButtonVariant, LayoutColour, LayoutColourMode, LayoutDepth, LayoutDial, LayoutEase, LayoutEditOp, LayoutEnter, LayoutGalleryEffect, LayoutGapCode, LayoutIssueCode, LayoutLayerKind, LayoutMendKind, LayoutNavKind, LayoutPace, LayoutPhotoShape, LayoutPhotoSource, LayoutRole, LayoutSectionKind, LayoutSequenceToken, LayoutSide, LayoutSignatureId, LayoutSize, LayoutSourceChoice, LayoutTrackProp, LayoutTransition, LayoutViewport, MAX_SITE_PICTURES, NAV_PART_LABELS, NAV_SHAPE_COPY, NEUTRAL_STYLE_PROPS, NODE_BASELINES, NO_TOKENS, NavPagesSource, NavRole, NavShape, NavShapeError, PAGE_ARCHETYPES, PHOTO_ANALYSIS_WIDTH, PHOTO_CALM_DETAIL, PHOTO_GRID, PHOTO_LIGHT_LUMINANCE, PICTURE_ASPECTS, PICTURE_NEVER, PICTURE_REAL_PLACE_FAMILIES, PICTURE_REROLL_EVERY, PICTURE_REVIEW_FORMAT, PICTURE_REVIEW_SHAPE, PICTURE_TEXT_CONTRAST, PICTURE_WORLDS, PICTURE_WORLD_IDS, PLAN_EDITS_ANSWER_SHAPES, PLAN_EDITS_PART_SCHEMA_NAMES, PLAN_EDIT_OP_PART, PLAN_EDIT_SHAPE, PLAN_EDIT_WIRE_KEYS, PLAN_PARTS, PLAN_PART_KEYS, PLAN_WIRE_DERIVED, PLAN_WIRE_PART_SCHEMA_NAMES, PLAN_WIRE_SHAPE, PRICING_PATTERN, PROOF_FINGERPRINTS, PUBLISH_BLOCKING_PLACEHOLDERS, PageDataKind, PathIssueCollector, PatternDirective, PatternGlobalPosition, PatternOpens, PatternPlaceholder, PatternRecipe, PhoneMenuBreakpoint, PhotoTone, PictureRefusal, PictureWorld, PlaceholderKind, PlanChangeAction, PlanChangeKind, PlanDataSourceMode, PlanDataSourceType, PlanEditIssueCode, PlanEditOp, PlanEditsOutcome, PlanPart, PlanWireEntry, PlanWireShapeError, PlanWordIssueCode, PreflightRefusalCode, PriceBindTarget, PublishRefusalCode, PublishScope, RENDER_CHECK, REQUIRED_CONTENT_ROLES, RelativeOp, SAMPLE_IMAGE_REF, SCENE_LEVEL, SCENE_OTHER_PAGES, SCRIM_BACKGROUND, SCRIM_COVER, SCRIM_LEVELS, SHOP_CART_BUTTON_ID, SHOP_CART_DRAWER_ID, SHOP_FIELDS, SHOP_LATEST_LIMIT, SHOP_LIST_LIMIT, SHOP_NEED, SHOP_ONLY_CONTENT_ROLES, SHOP_PRODUCTS_MAX, SHOP_ROLES, SHOP_SLUG_FIELD, SHOWCASE_FILM, SHOWCASE_SHOP, SIGN_IN_DIALOG_ID, SITE_CHECKS, SITE_FACT_LABELS, SITE_HEADER_PATTERN, SITE_LIBRARY, SITE_LOCALES, SITE_NEED_IDS, SITE_PATTERNS, SITE_PLAN_VERSION, SITE_TEMPLATES, SPEC_SITE_ARCHETYPES, SPEC_SITE_COPY_LENGTHS, SPEC_SITE_DENSITY_COPY, SPEC_SITE_FACTS, SPEC_SITE_LAYOUT, SPEC_SITE_LIBRARY, SPEC_SITE_LOCALES, SPEC_SITE_NEED_IDS, SPEC_SITE_PATTERNS, SPEC_SITE_PICTURE_NEVER, SPEC_SITE_PICTURE_WORLDS, SPEC_SITE_PLAN_SHAPE, SPEC_SITE_REQUIRED_ROLES, SPEC_SITE_ROLES, SPEC_SITE_TEMPLATES, STOCK_FAMILIES, STOCK_FAMILY_INTENTS, STOCK_INTENT_ORDER, STOCK_INTENT_SUBJECTS, STOCK_ITEM_ASPECT, STOCK_MIN_KEPT, STOCK_PROVIDER_TERMS, STOCK_SEED_MARGIN, STOCK_SUBJECT_WORDS, STORE_CONTACT_CODES, STRICT_SCHEMA_BUDGET, STRICT_SCHEMA_LIMITS, STUDIO_TEMPLATE, ScrimLevel, SectionFallbackLastResort, SectionSwapAction, SectionSwapRule, ShopResource, ShopSourceRole, SiteBuildKind, SiteBuildStatus, SiteCheckId, SiteFindingCode, SiteLocale, SitePlanError, SitePlanIssueCode, SitePlanSourceKind, SiteTemplateError, SiteTemplateId, StepState, StockIntent, StockOrientation, StockProviderId, StockReviewFlag, StockReviewVerdict, StockSlotKind, StockSubject, WORDS_AREA_DEFAULT_SHARE, WordsEdge, addBarItem, addStockCredits, aiRefusalNext, aiStepParts, applyLayoutEdits, applyOwnPhotoGalleries, applyPictureScrims, applyPlanEdits, applyStockItemPhotos, applyStockPhotos, archetypeIssues, areaLuminance, artDirectionFor, artDirectionIssues, artDirectionPreamble, aspectRatioOf, assertStyleSlots, assertValidSitePlan, auditLayoutMotion, auditSite, barIconForRoute, blocksPublish, brandHueWord, buildKeys, buildStepFacts, buildStepsOf, builtHomePageId, calmParts, calmUnder, checkLayout, chooseScrim, composeContextOf, composeLayout, composeNavHeader, composePresetForm, composeSection, composeSite, contentTypeOfSource, contentTypePreviewFields, contentTypeToWire, copyLengthOf, costUsd, coverCrop, createSerializedNode, creditsOfUsd, dataSourceToWire, derivedBeats, derivedDataSources, derivedShopSources, describeInventoryForPrompt, describePlanData, describeShapeKey, driftAt, driftOverlap, emptyAreaPhrase, entranceAction, entranceInteraction, estimatePictures, estimateStepCredits, expandLayoutWire, expandPlanWire, expandWireContentType, expandWireDataSource, expandWireEdit, expandWireField, expandWirePage, expandWireSection, expandWireShop, failedBuildStep, fallBackBySection, fieldToWire, filmOfPlan, filmPlacement, findNavRoot, fingerprintOf, frameWords, isActiveBuild, isLayoutRule, isNonEmptyString, isPictureWorld, isPlainObject, isRtlLocale, isShopResource, jsonAnyOf, jsonBoolean, jsonClosedObject, jsonInteger, jsonListOf, jsonOneOf, jsonSchemaKeywords, jsonSchemaObjects, jsonShapedObject, jsonText, judgeLayoutRender, layerShownSpans, layoutBandScheme, layoutBoxPx, layoutColumnsVw, layoutDesignOf, layoutDialOf, layoutDriftPhoto, layoutElementStyle, layoutGalleryLists, layoutGallerySources, layoutGlideDepth, layoutHeldStill, layoutLookChanges, layoutLookOf, layoutMotionOf, layoutNodeClass, layoutOpeningDisplayMend, layoutOpeningDisplays, layoutPathSteps, layoutPhotoIds, layoutPresetColours, layoutPresetOf, layoutRepairJsonSchema, layoutRoomPx, layoutRuleEdge, layoutShapeHasPurpose, layoutStillLine, layoutTextFits, layoutTextWidthEm, layoutToWire, layoutVoidScreens, layoutVoids, layoutWireJsonSchema, luminanceOf, measureLayout, mendLayout, modelCanDo, moveBarItem, navPages, navShapeBreakpoint, navShapeOf, nextSourceOf, nodeBindPaths, orientationOfRatio, ownPhotoFit, pageToWire, parseLayoutPhotoId, parsePatternPath, parseSampleImageRef, pathAt, patternById, patternHasForm, patternLinkSlots, patternListGap, patternManifest, patternNeedsBinding, patternNodes, patternOptionalParts, patternRoleNeeds, patternScopes, patternSlotBudgets, patternSlots, patternTakesBinding, phoneGapBefore, phoneMenuPages, phoneWordsColour, photoInventory, photoShapeOf, pictureAspect, pictureItemsOf, picturePrompt, pictureRefusalOf, pictureRerolls, pictureReviewIssues, pictureReviewJsonSchema, pictureReviewPasses, pictureSlotKey, pictureTargets, pictureTryFits, pixelsUnder, placeFilm, planEditOps, planEditToWire, planEditWireGaps, planEditWireKeys, planEditWireOps, planEditWireShape, planEditsFromWire, planEditsJsonSchema, planEditsToWire, planEntrances, planFromTemplate, planHasShopSource, planLayoutPhotos, planNavShape, planOwnPhotos, planPartOfPath, planPartToWire, planPictures, planSells, planStockPhotos, planToWire, planWireGaps, planWirePartJsonSchema, planWirePartShape, planWordIssues, pricesIn, publishRefusal, publishVerdict, readyMadeColumn, recipeListBinds, recomposeAsks, releasedLayoutDefaults, removeBarItem, requiredAcknowledgements, requiredShapeKeys, roleField, routeMatches, routeParams, samenessIssues, sampleImageRef, scoreStockPhoto, screenFontSize, screenWordColumns, screenWordMisfit, screenWordOverflowPx, sectionEntrances, sectionPatternIds, sectionToWire, sectionsNamed, sequenceShare, sequenceTokenOf, setStyleProps, shapeKeys, shopCategoriesOf, shopContentType, shopSourceAliases, showcaseGlobals, showcasePages, showcasePlans, showcaseScenes, showcaseStorePages, shownTogether, signatureOf, siteNavPages, siteSells, slotBudget, splitSide, stockCopyKey, stockCreditLine, stockCreditLines, stockCreditNode, stockCreditNodeId, stockFits, stockGroupOf, stockItemSlots, stockKept, stockPhotoRatio, stockPhotoSubject, stockPhotoUsable, stockPhotoWords, stockSlots, stockWord, stockWords, strictSchemaComplexity, strictSchemaRefusal, toneOf, typicalStepTokens, validatePlanEdits, validateSitePlan, variantNamesOf, walkSerialized, wireContentTypeJsonSchema, wireDataSourceJsonSchema, wireFieldJsonSchema, wirePageJsonSchema, wireSectionJsonSchema, wireShopProductJsonSchema, withDerivedSources, wordPattern, wordsOverPhotos, wordsOverPicture, writtenTexts };
|
|
10116
10133
|
export type { AddBarItemResult, AiBuyCredits, AiEntitlementsView, AiMeter, AiModelEntry, AiRefusal, AiTokenCounts, AiTokenPrice, AreaLuminance, ArtDirection, AuditPage, AuditPlaceholder, BarItemsEditResult, BuildNotice, BuildStepError, BuildStepFacts, BuildStepRecord, CalmReading, CheckLayoutContext, CmsDataSourcePlan, ComposeContext, ComposeIssue, ComposeLayoutOptions, ComposedDataSource, ComposedItem, ComposedLayout, ComposedNavHeader, ComposedPage, ComposedPlaceholder, ComposedProduct, ComposedRoute, ComposedSection, ComposedShop, ComposedSite, ContentFieldPlan, ContentRoles, ContentSeedPlan, ContentTypePlan, CreateNodeOptions, CreatedRecord, DataSourcePlan, DriftBox, DriftLayer, DriftMeeting, DynamicKeysAsList, EntranceAction, EntranceActionOptions, EntranceInteraction, EntranceMark, EntranceSpec, EntranceStamp, FactKey, FilmPlacement, FilmTarget, FingerprintedPage, FrameRegion, JsonSchema, LayoutBandMove, LayoutColours, LayoutEdit, LayoutFingerprint, LayoutForm, LayoutGallery, LayoutGalleryList, LayoutGap, LayoutGivenAway, LayoutIssue, LayoutLayer, LayoutLook, LayoutMend, LayoutPage, LayoutPhotoAddress, LayoutReadyMade, LayoutRect, LayoutSection, LayoutSite, LayoutTrack, LayoutVoid, LayoutWire, LayoutWireLayer, LayoutWireSection, LayoutWireSlot, LayoutWireTrack, MeasuredLayer, MeasuredLayout, NavHeaderInput, NavHeaderOptions, NavPage, NavShapeOptions, NavShapeResult, NodeBaseline, OwnPhoto, OwnPhotoPlacement, PageArchetype, PageArchetypeId, PageArchetypeSlot, PageData, PageDataLine, PagePlan, PageSectionPlan, PageSeoPlan, PathIssue, PatternManifestEntry, PatternManifestOptions, PatternNode, PatternPath, PatternRoleNeed, PatternTrack, PhotoInventory, PhotoWordsArea, PicturePlan, PicturePlanOptions, PicturePromptContext, PictureReview, PictureSlot, PictureTryBudget, PictureWorldSpec, PicturesEstimate, PixelReading, PlacedFilm, PlainObject, PlanChange, PlanDirection, PlanEdit, PlanEditIssue, PlanEditResult, PlanEditsAnswer, PlanEntrancesInput, PlanFilm, PlanWireContext, PlanWireParts, PlanWordContext, PlanWordIssue, PreflightRefusal, PublishRefusal, RecipeListBinds, RelativeDataSourcePlan, ScrimChoice, SectionEntrances, SectionFallback, SectionInput, SectionJudge, SectionOptions, SectionSwap, SerializedBinding, SerializedNode, SerializedResponsive, ShapeEntry, ShapeIssueCodes, ShopDataSourcePlan, ShopOptionPlan, ShopPlan, ShopProductPlan, ShowcaseInput, SiteAudit, SiteAuditOptions, SiteAuditSnapshot, SiteBuildRun, SiteBusiness, SiteCheck, SiteFinding, SiteNeedId, SitePageRef, SitePattern, SitePlan, SitePlanContext, SitePlanIssue, SitePlanSource, SitePlanValidation, SiteTemplate, StockCredit, StockItemSlot, StockLink, StockNeed, StockPhoto, StockPhotoTraits, StockPlacement, StockPlanOptions, StockProviderTerms, StockReview, StockSlot, StockTarget, StrictSchemaComplexity, StrictSchemaRefusal, TemplatePlanInput, UndoKept, UndoPreview, UndoRecord, WireOptions, WordsArea, WrittenText };
|
package/package.json
CHANGED
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
* It is an ordinary node in the form's actions row (a ButtonBlock that links) carrying the ROLE `form.channel`, so the
|
|
6
6
|
* shared CSS keeps it on screen when the form succeeds and the Publishable gate can find it. Its address is the
|
|
7
7
|
* OWNER's fact: the builder builds it from what the author types (a number, an address, a link) and never invents one —
|
|
8
|
-
* inserted empty, it
|
|
8
|
+
* inserted empty, it is a reminder (generation-core `auditSite`, `empty-channel`, never a block since 2026-11-18) and the
|
|
9
|
+
* live site leaves it out until it is filled (iox-cms `withoutBlankContacts`).
|
|
9
10
|
*
|
|
10
11
|
* Framework-free, like the rest of forms-core.
|
|
11
12
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ELEMENT_ACTION_DESCRIPTORS, resolveActionAvailability } from '@vectoriox/iox-ui/actions-core';
|
|
2
|
-
import { CheckoutGateRefusal, labelIn } from '@vectoriox/iox-ui/commerce-core';
|
|
2
|
+
import { CheckoutGateCode, CheckoutGateRefusal, labelIn } from '@vectoriox/iox-ui/commerce-core';
|
|
3
3
|
import { ShopRole } from '@vectoriox/iox-ui/composite-core';
|
|
4
4
|
import { auditDesignContrast, DesignTokenLike } from '@vectoriox/iox-ui/design-core';
|
|
5
5
|
import { collectFormSpec, ControlType, FIELD_NODE_TYPE, FORM_CHANNEL_ROLE, FORM_NODE_TYPE, isChannelFilled } from '@vectoriox/iox-ui/forms-core';
|
|
@@ -13,8 +13,10 @@ import { SerializedNode, walkSerialized } from './serialized-node';
|
|
|
13
13
|
* THE Publishable gate (AI plan §3e, M1-7): ONE pure function over a snapshot of a site — its pages, globals, the
|
|
14
14
|
* connectors' health, the look's token rows, what a build left to fill — run by the Publish dialog, the builder's
|
|
15
15
|
* Needs attention and the server on publish (iox-cms refuses with the same findings). Works on any site, generated
|
|
16
|
-
* or hand-built. Severity is decision D8: an unfilled
|
|
17
|
-
* BLOCKS; samples, copy placeholders and stock photos ASK ("Publish anyway"); the rest WARN.
|
|
16
|
+
* or hand-built. Severity is decision D8: an unfilled price or number, a policy placeholder or an action that points at
|
|
17
|
+
* nothing BLOCKS; samples, copy placeholders and stock photos ASK ("Publish anyway"); the rest WARN. ⚠️ A contact detail
|
|
18
|
+
* (email, phone, address, city, hours — and a form's second channel) NEVER blocks (Doron, 2026-11-18): it is a reminder,
|
|
19
|
+
* and the live site leaves the line out until the owner fills it (iox-cms `withoutBlankContacts`). Design advice
|
|
18
20
|
* (harness-core `lintDesign`) is not one of the eight — the caller adds it, and it never blocks.
|
|
19
21
|
*/
|
|
20
22
|
|
|
@@ -49,7 +51,11 @@ export enum SiteFindingCode {
|
|
|
49
51
|
TrackerWithoutBanner = 'tracker-without-banner',
|
|
50
52
|
NoTitle = 'no-title',
|
|
51
53
|
NoDescription = 'no-description',
|
|
54
|
+
/** A price, a number or a video the studio stands behind, still blank — blocks (never written for it). */
|
|
52
55
|
UnfilledFact = 'unfilled-fact',
|
|
56
|
+
/** A contact detail the studio has not given (email, phone, address, city, hours): a reminder, never a block — the
|
|
57
|
+
* live site leaves its line out until it is filled. */
|
|
58
|
+
ContactMissing = 'contact-missing',
|
|
53
59
|
CopyPlaceholder = 'copy-placeholder',
|
|
54
60
|
SampleItems = 'sample-items',
|
|
55
61
|
/** Commerce G1 (shop-aware §3i): a sample product the build added still has no price — a price is a fact a buyer is
|
|
@@ -62,6 +68,9 @@ export enum SiteFindingCode {
|
|
|
62
68
|
* one of its facts — a way to get paid, delivery, the business's identity, the owner's own legal pages. Each is the
|
|
63
69
|
* owner's to answer, never written for them; the finding carries the gate's code in `fact`. */
|
|
64
70
|
StoreFact = 'store-fact',
|
|
71
|
+
/** Commerce: the checkout gate refuses for a missing business CONTACT (address, email, phone). The checkout stays
|
|
72
|
+
* closed until it is answered (the server's checkout gate refuses on its own); the site itself still publishes. */
|
|
73
|
+
StoreContact = 'store-contact',
|
|
65
74
|
StockPhoto = 'stock-photo',
|
|
66
75
|
/** M7: a picture made with AI for the site still stands where one of the studio's own could. */
|
|
67
76
|
MadePicture = 'made-picture',
|
|
@@ -83,17 +92,19 @@ export const FINDING_SEVERITY: Readonly<Record<SiteFindingCode, CheckSeverity>>
|
|
|
83
92
|
[SiteFindingCode.NoHeader]: CheckSeverity.Warn,
|
|
84
93
|
[SiteFindingCode.NoPhoneMenu]: CheckSeverity.Warn,
|
|
85
94
|
[SiteFindingCode.FormWithoutId]: CheckSeverity.Block,
|
|
86
|
-
[SiteFindingCode.EmptyChannel]: CheckSeverity.
|
|
95
|
+
[SiteFindingCode.EmptyChannel]: CheckSeverity.Warn,
|
|
87
96
|
[SiteFindingCode.EmailNeedsMailer]: CheckSeverity.Warn,
|
|
88
97
|
[SiteFindingCode.TrackerWithoutBanner]: CheckSeverity.Warn,
|
|
89
98
|
[SiteFindingCode.NoTitle]: CheckSeverity.Warn,
|
|
90
99
|
[SiteFindingCode.NoDescription]: CheckSeverity.Warn,
|
|
91
100
|
[SiteFindingCode.UnfilledFact]: CheckSeverity.Block,
|
|
101
|
+
[SiteFindingCode.ContactMissing]: CheckSeverity.Warn,
|
|
92
102
|
[SiteFindingCode.CopyPlaceholder]: CheckSeverity.Ask,
|
|
93
103
|
[SiteFindingCode.SampleItems]: CheckSeverity.Ask,
|
|
94
104
|
[SiteFindingCode.SamplePrice]: CheckSeverity.Block,
|
|
95
105
|
[SiteFindingCode.SampleStock]: CheckSeverity.Block,
|
|
96
106
|
[SiteFindingCode.StoreFact]: CheckSeverity.Block,
|
|
107
|
+
[SiteFindingCode.StoreContact]: CheckSeverity.Warn,
|
|
97
108
|
[SiteFindingCode.StockPhoto]: CheckSeverity.Ask,
|
|
98
109
|
[SiteFindingCode.MadePicture]: CheckSeverity.Ask,
|
|
99
110
|
[SiteFindingCode.PictureMissing]: CheckSeverity.Warn,
|
|
@@ -118,11 +129,13 @@ const CHECK_OF: Readonly<Record<SiteFindingCode, SiteCheckId>> = {
|
|
|
118
129
|
[SiteFindingCode.NoTitle]: SiteCheckId.Seo,
|
|
119
130
|
[SiteFindingCode.NoDescription]: SiteCheckId.Seo,
|
|
120
131
|
[SiteFindingCode.UnfilledFact]: SiteCheckId.Facts,
|
|
132
|
+
[SiteFindingCode.ContactMissing]: SiteCheckId.Facts,
|
|
121
133
|
[SiteFindingCode.CopyPlaceholder]: SiteCheckId.Facts,
|
|
122
134
|
[SiteFindingCode.SampleItems]: SiteCheckId.Facts,
|
|
123
135
|
[SiteFindingCode.SamplePrice]: SiteCheckId.Facts,
|
|
124
136
|
[SiteFindingCode.SampleStock]: SiteCheckId.Facts,
|
|
125
137
|
[SiteFindingCode.StoreFact]: SiteCheckId.Facts,
|
|
138
|
+
[SiteFindingCode.StoreContact]: SiteCheckId.Facts,
|
|
126
139
|
[SiteFindingCode.StockPhoto]: SiteCheckId.Facts,
|
|
127
140
|
[SiteFindingCode.MadePicture]: SiteCheckId.Facts,
|
|
128
141
|
[SiteFindingCode.PictureMissing]: SiteCheckId.Facts,
|
|
@@ -147,7 +160,7 @@ export interface SiteFinding {
|
|
|
147
160
|
nodeId?: string;
|
|
148
161
|
/** The global slot (`header` / `footer`) when it is in a global. */
|
|
149
162
|
owner?: string;
|
|
150
|
-
/** `store-fact`: the checkout gate's code (commerce-core `CheckoutGateCode`) — which fact, so a screen can open where it is answered. */
|
|
163
|
+
/** `store-fact` / `store-contact`: the checkout gate's code (commerce-core `CheckoutGateCode`) — which fact, so a screen can open where it is answered. */
|
|
151
164
|
fact?: string;
|
|
152
165
|
}
|
|
153
166
|
|
|
@@ -223,6 +236,11 @@ const COLOUR_TRAITS = /color|Color|^background$|boxShadow|textShadow/;
|
|
|
223
236
|
const HEADING_LEVEL = /^h([1-6])$/;
|
|
224
237
|
const DIALOG_TYPE = 'Dialog';
|
|
225
238
|
const SELF = 'self';
|
|
239
|
+
/** The checkout gate's refusals that are a business CONTACT: they close the checkout, never the site (2026-11-18). */
|
|
240
|
+
export const STORE_CONTACT_CODES: ReadonlySet<string> = new Set<string>([
|
|
241
|
+
CheckoutGateCode.BusinessAddressMissing, CheckoutGateCode.BusinessEmailMissing, CheckoutGateCode.BusinessPhoneMissing,
|
|
242
|
+
]);
|
|
243
|
+
|
|
226
244
|
/** The parts that take a buyer toward the checkout — a price alone shows; these sell. */
|
|
227
245
|
const SELLING_ROLES: ReadonlySet<string> = new Set([ShopRole.Add, ShopRole.BuyNow, ShopRole.CartButton, ShopRole.CartDrawer, ShopRole.Checkout]);
|
|
228
246
|
|
|
@@ -301,7 +319,7 @@ function checkForms(ctx: Ctx, snapshot: SiteAuditSnapshot, pages: ReadonlyArray<
|
|
|
301
319
|
walkSerialized(n.children ?? [], f => {
|
|
302
320
|
if (f.type === FIELD_NODE_TYPE && PERSONAL_CONTROLS.has(String(f.props['control'] ?? ControlType.Text))) personal = true;
|
|
303
321
|
if (f.role === FORM_CHANNEL_ROLE && !isChannelFilled(f.props['href'])) {
|
|
304
|
-
add(ctx, SiteFindingCode.EmptyChannel, 'A form\'s second way to reach you has no number or address yet —
|
|
322
|
+
add(ctx, SiteFindingCode.EmptyChannel, 'A form\'s second way to reach you has no number or address yet — visitors do not see it until you fill it in.', { ...where, nodeId: f.id });
|
|
305
323
|
}
|
|
306
324
|
});
|
|
307
325
|
});
|
|
@@ -327,14 +345,18 @@ function checkFacts(ctx: Ctx, snapshot: SiteAuditSnapshot, pages: ReadonlyArray<
|
|
|
327
345
|
const inScope = (p: { pageId?: string }) => !p.pageId || pages.some(page => page.id === p.pageId);
|
|
328
346
|
for (const p of (snapshot.placeholders ?? []).filter(p => !p.filled && inScope(p))) {
|
|
329
347
|
const where = { pageId: p.pageId, nodeId: p.nodeId, ...(p.pageId ? {} : { owner: p.owner }) };
|
|
330
|
-
if (
|
|
348
|
+
if (p.kind === PlaceholderKind.Fact) add(ctx, SiteFindingCode.ContactMissing, `"${p.text || p.fact}" is not on the site yet — visitors do not see that line until you fill it in.`, where);
|
|
349
|
+
else if (blocksPublish(p.kind)) add(ctx, SiteFindingCode.UnfilledFact, `"${p.text || p.kind}" is still blank — fill it in before the site goes live.`, where);
|
|
331
350
|
else if (p.kind === PlaceholderKind.Copy) add(ctx, SiteFindingCode.CopyPlaceholder, 'Some words are still the template\'s.', where);
|
|
332
351
|
}
|
|
333
352
|
for (const s of snapshot.samples ?? []) add(ctx, SiteFindingCode.SampleItems, `"${s.label ?? s.id}" is a sample — replace or remove it.`, { nodeId: s.id });
|
|
334
353
|
for (const s of snapshot.unpricedSamples ?? []) add(ctx, SiteFindingCode.SamplePrice, `"${s.label ?? s.id}" has no price yet — set yours, or remove the sample.`, { nodeId: s.id });
|
|
335
354
|
for (const s of snapshot.unstockedSamples ?? []) add(ctx, SiteFindingCode.SampleStock, `"${s.label ?? s.id}" has no stock yet — say how many you have, or remove the sample.`, { nodeId: s.id });
|
|
336
355
|
if (snapshot.store?.refusals.length && siteSells(snapshot)) {
|
|
337
|
-
for (const r of snapshot.store.refusals)
|
|
356
|
+
for (const r of snapshot.store.refusals) {
|
|
357
|
+
const code = STORE_CONTACT_CODES.has(r.code) ? SiteFindingCode.StoreContact : SiteFindingCode.StoreFact;
|
|
358
|
+
add(ctx, code, labelIn(r.label, snapshot.store.lang), { fact: r.code });
|
|
359
|
+
}
|
|
338
360
|
}
|
|
339
361
|
for (const s of (snapshot.stock ?? []).filter(inScope)) add(ctx, SiteFindingCode.StockPhoto, 'A stock photo stands in for one of yours.', { pageId: s.pageId, nodeId: s.nodeId, owner: s.owner });
|
|
340
362
|
for (const s of (snapshot.made ?? []).filter(inScope)) add(ctx, SiteFindingCode.MadePicture, 'A picture made with AI stands in for one of yours.', { pageId: s.pageId, nodeId: s.nodeId, owner: s.owner });
|
|
@@ -447,7 +469,7 @@ export function auditSite(snapshot: SiteAuditSnapshot, options: SiteAuditOptions
|
|
|
447
469
|
|
|
448
470
|
/** Why the server refused a publish (409) — the dialog the client opens from the findings it carries. */
|
|
449
471
|
export enum PublishRefusalCode {
|
|
450
|
-
/** A block nothing lifts (a blank
|
|
472
|
+
/** A block nothing lifts (a blank price or number, a policy placeholder, a dead action). */
|
|
451
473
|
Blocked = 'site.publishBlocked',
|
|
452
474
|
/** Asks the request must acknowledge, by code (`publishAcknowledged`). */
|
|
453
475
|
NeedsAck = 'site.publishNeedsAck',
|
|
@@ -468,13 +490,24 @@ export function requiredAcknowledgements(audit: SiteAudit): SiteFindingCode[] {
|
|
|
468
490
|
return [...new Set(audit.checks.flatMap(c => c.findings).filter(f => f.severity === CheckSeverity.Ask).map(f => f.code))];
|
|
469
491
|
}
|
|
470
492
|
|
|
493
|
+
/** What a publish puts live: one page (the builder's Publish) or every page at once (Publish site, 2026-11-18). */
|
|
494
|
+
export enum PublishScope {
|
|
495
|
+
Page = 'page',
|
|
496
|
+
Site = 'site',
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
const BLOCKED_MESSAGE: Readonly<Record<PublishScope, string>> = {
|
|
500
|
+
[PublishScope.Page]: 'This page cannot go live yet — fill in what is marked first',
|
|
501
|
+
[PublishScope.Site]: 'The site cannot go live yet — fill in what is marked first',
|
|
502
|
+
};
|
|
503
|
+
|
|
471
504
|
/** The refusal a publish gets for an audit and its acknowledgements — or null: it may go (the server's ONE rule). */
|
|
472
|
-
export function publishRefusal(audit: SiteAudit, acknowledged: ReadonlyArray<string> = []): PublishRefusal | null {
|
|
505
|
+
export function publishRefusal(audit: SiteAudit, acknowledged: ReadonlyArray<string> = [], scope: PublishScope = PublishScope.Page): PublishRefusal | null {
|
|
473
506
|
const verdict = publishVerdict(audit, acknowledged);
|
|
474
507
|
if (verdict.ok) return null;
|
|
475
508
|
const findings = audit.checks.flatMap(c => c.findings);
|
|
476
509
|
if (verdict.blocked) {
|
|
477
|
-
return { code: PublishRefusalCode.Blocked, message:
|
|
510
|
+
return { code: PublishRefusalCode.Blocked, message: BLOCKED_MESSAGE[scope], findings: findings.filter(f => f.severity === CheckSeverity.Block) };
|
|
478
511
|
}
|
|
479
512
|
return {
|
|
480
513
|
code: PublishRefusalCode.NeedsAck, message: 'Publish anyway? Some parts are still samples or placeholders',
|
|
@@ -47,7 +47,8 @@ import { layoutMotionOf, layoutPresetOf } from './layout-look';
|
|
|
47
47
|
*/
|
|
48
48
|
|
|
49
49
|
export enum PlaceholderKind {
|
|
50
|
-
/** A FACT the customer did not give (email, phone, city)
|
|
50
|
+
/** A contact FACT the customer did not give (email, phone, city, address, hours). Never publish-blocking (2026-11-18):
|
|
51
|
+
* a reminder, and the live site leaves the line out until it is filled. */
|
|
51
52
|
Fact = 'fact',
|
|
52
53
|
/** The pattern's own words, for the author to rewrite. */
|
|
53
54
|
Copy = 'copy',
|
|
@@ -65,7 +66,7 @@ export enum PlaceholderKind {
|
|
|
65
66
|
|
|
66
67
|
/** The placeholders a page cannot be published with unfilled (W4's gate): a fact, a price, a number, the studio's own
|
|
67
68
|
* video. Copy and an empty image are the author's to rewrite, never blocking. */
|
|
68
|
-
export const PUBLISH_BLOCKING_PLACEHOLDERS: ReadonlySet<PlaceholderKind> = new Set([PlaceholderKind.
|
|
69
|
+
export const PUBLISH_BLOCKING_PLACEHOLDERS: ReadonlySet<PlaceholderKind> = new Set([PlaceholderKind.Price, PlaceholderKind.Stat, PlaceholderKind.Video]);
|
|
69
70
|
|
|
70
71
|
/** True when a placeholder of `kind` blocks publishing until the studio fills it. */
|
|
71
72
|
export function blocksPublish(kind: PlaceholderKind): boolean {
|
|
@@ -586,7 +587,7 @@ function presetChildren(preset: FormPresetDef, id: string): SerializedNode[] {
|
|
|
586
587
|
/**
|
|
587
588
|
* Send and the second channel in ONE row (premium N2), the way the builder's tray builds it (iox-builder
|
|
588
589
|
* `buildFormActionsRow`): the channel's address is the studio's own fact and starts EMPTY — the Publishable gate
|
|
589
|
-
*
|
|
590
|
+
* reminds the owner (`auditSite`, empty-channel) and the live site leaves it out until it is filled. Never a number written for it.
|
|
590
591
|
*/
|
|
591
592
|
function actionsRow(submit: SerializedNode, channel: FormPresetChannel, id: string): SerializedNode {
|
|
592
593
|
const row = create(`${id}-row`, FIELD_GROUP);
|
|
@@ -1367,7 +1368,7 @@ const LAYOUT_TEXT_PROPS: ReadonlyArray<string> = ['content', 'caption', 'alt', '
|
|
|
1367
1368
|
/**
|
|
1368
1369
|
* M8 gate 2: a composed page — its layout stamped by `composeLayout` in the plan's look (the preset's composition
|
|
1369
1370
|
* notes give the pace and ease), with the site's facts written in: a `{fact:<key>}` the owner gave becomes their words,
|
|
1370
|
-
* one they did not becomes the fact's label and a
|
|
1371
|
+
* one they did not becomes the fact's label and a contact placeholder (never invented; a reminder, left out of the live site). A photo with no
|
|
1371
1372
|
* address is the empty image box, a placeholder like a pattern's. The site's header and footer are the plan's globals.
|
|
1372
1373
|
*/
|
|
1373
1374
|
function composeLayoutPage(
|
|
@@ -9,7 +9,7 @@ import { SPEC_SITE_COPY_LENGTHS, SPEC_SITE_DENSITY_COPY, SPEC_SITE_LIBRARY, SPEC
|
|
|
9
9
|
* tag · `level` a Heading's level · `lay` layout-only styleProps · `resp` per-breakpoint styleProps ·
|
|
10
10
|
* `aspect` an Image's aspect ratio · `slot` author-editable text, filled from the plan's section slots ·
|
|
11
11
|
* `fromBusiness` text from the plan's business · `text` the pattern's own words (`{year}` and
|
|
12
|
-
* `{business.name}` are filled at compose time) · `ph` a
|
|
12
|
+
* `{business.name}` are filled at compose time) · `ph` a placeholder (a FACT key — a reminder the live site leaves out —,
|
|
13
13
|
* `copy` or `image`) · `bind` a binding path on the repeater item (`item.*`), the route item
|
|
14
14
|
* (`route.*`) or its next sibling (`next.*`) — or, on an `each` node, the page it is stamped for
|
|
15
15
|
* (`page.*`, written as plain words) · `alt` an Image's alt binding (default: the bound item's preview
|