@vectoriox/iox-ui 5.101.0 → 5.102.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-composite-core.mjs +2 -2
- package/fesm2022/vectoriox-iox-ui-composite-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs +34 -2
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
- package/generation-core/index.d.ts +30 -2
- package/package.json +1 -1
- package/src/composite-core/account.ts +2 -2
- package/src/generation-core/audit-site.ts +38 -1
- package/src/generation-core/site-build-run.ts +3 -0
|
@@ -2,6 +2,7 @@ import { FrameSequence } from '@vectoriox/iox-ui/media-core';
|
|
|
2
2
|
import { DesignChoices, AnimateId, ColorScheme, DesignTokenLike, StylePreset } from '@vectoriox/iox-ui/design-core';
|
|
3
3
|
import { SeoRawDoc } from '@vectoriox/iox-ui/seo-core';
|
|
4
4
|
import { ContentFieldLike } from '@vectoriox/iox-ui/composite-core';
|
|
5
|
+
import { CheckoutGateRefusal } from '@vectoriox/iox-ui/commerce-core';
|
|
5
6
|
import { ParallaxDepth } from '@vectoriox/iox-ui/scene-core';
|
|
6
7
|
|
|
7
8
|
declare const SPEC_SITE_PLAN_SHAPE: {
|
|
@@ -7758,7 +7759,10 @@ declare enum BuildNoticeCode {
|
|
|
7758
7759
|
ShopHasProducts = "shop-has-products",
|
|
7759
7760
|
/** Commerce G1: the studio had never set its currency and VAT — the build stored the ones its language implies
|
|
7760
7761
|
* (Hebrew: ILS and 18%), said here so the owner checks them in Settings ▸ General before setting prices. */
|
|
7761
|
-
ShopMoneyInferred = "shop-money-inferred"
|
|
7762
|
+
ShopMoneyInferred = "shop-money-inferred",
|
|
7763
|
+
/** Commerce G2: the facts the owner gave (email, phone, address) became the shop's contact details where it had none
|
|
7764
|
+
* — said, so the owner adds what only they know (the legal name, the business number) in Shop ▸ Settings. */
|
|
7765
|
+
ShopBusinessFromFacts = "shop-business-from-facts"
|
|
7762
7766
|
}
|
|
7763
7767
|
interface BuildNotice {
|
|
7764
7768
|
code: string;
|
|
@@ -8578,6 +8582,13 @@ declare enum SiteFindingCode {
|
|
|
8578
8582
|
/** Commerce G1 (shop-aware §3i): a sample product the build added still has no price — a price is a fact a buyer is
|
|
8579
8583
|
* held to, so the owner sets it (or removes the sample) before the store goes live. */
|
|
8580
8584
|
SamplePrice = "sample-price",
|
|
8585
|
+
/** Commerce G2: a sample product the build added has no stock count yet — how many the owner has is theirs to say;
|
|
8586
|
+
* unanswered, the sample is sold out to every visitor (the build never invents stock). */
|
|
8587
|
+
SampleStock = "sample-stock",
|
|
8588
|
+
/** Commerce G2 (R-H8): a site that sells, while the checkout gate (commerce-core `checkoutGate`, C-D19) still refuses
|
|
8589
|
+
* one of its facts — a way to get paid, delivery, the business's identity, the owner's own legal pages. Each is the
|
|
8590
|
+
* owner's to answer, never written for them; the finding carries the gate's code in `fact`. */
|
|
8591
|
+
StoreFact = "store-fact",
|
|
8581
8592
|
StockPhoto = "stock-photo",
|
|
8582
8593
|
/** M7: a picture made with AI for the site still stands where one of the studio's own could. */
|
|
8583
8594
|
MadePicture = "made-picture",
|
|
@@ -8605,6 +8616,8 @@ interface SiteFinding {
|
|
|
8605
8616
|
nodeId?: string;
|
|
8606
8617
|
/** The global slot (`header` / `footer`) when it is in a global. */
|
|
8607
8618
|
owner?: string;
|
|
8619
|
+
/** `store-fact`: the checkout gate's code (commerce-core `CheckoutGateCode`) — which fact, so a screen can open where it is answered. */
|
|
8620
|
+
fact?: string;
|
|
8608
8621
|
}
|
|
8609
8622
|
interface SiteCheck {
|
|
8610
8623
|
id: SiteCheckId;
|
|
@@ -8653,6 +8666,19 @@ interface SiteAuditSnapshot {
|
|
|
8653
8666
|
id: string;
|
|
8654
8667
|
label?: string;
|
|
8655
8668
|
}>;
|
|
8669
|
+
/** Commerce G2: sample products (`isSample`) whose stock count was never set. */
|
|
8670
|
+
unstockedSamples?: ReadonlyArray<{
|
|
8671
|
+
id: string;
|
|
8672
|
+
label?: string;
|
|
8673
|
+
}>;
|
|
8674
|
+
/**
|
|
8675
|
+
* Commerce G2: what the checkout gate refuses for this studio (commerce-core `checkoutGate(…).refusals`) and the
|
|
8676
|
+
* studio's language its words are said in. Read only when the site sells (`siteSells`).
|
|
8677
|
+
*/
|
|
8678
|
+
store?: {
|
|
8679
|
+
refusals: ReadonlyArray<Pick<CheckoutGateRefusal, 'code' | 'label'>>;
|
|
8680
|
+
lang?: string | null;
|
|
8681
|
+
} | null;
|
|
8656
8682
|
/** Stock photos a build placed that are still on the page. */
|
|
8657
8683
|
stock?: ReadonlyArray<{
|
|
8658
8684
|
nodeId: string;
|
|
@@ -8676,6 +8702,8 @@ interface SiteAuditOptions {
|
|
|
8676
8702
|
/** Audit as if only this page were being published (its own page checks + every site-wide one). */
|
|
8677
8703
|
pageId?: string;
|
|
8678
8704
|
}
|
|
8705
|
+
/** Commerce G2: the site sells — a page or a global holds a part that puts a product in the bag or opens the checkout. */
|
|
8706
|
+
declare function siteSells(snapshot: Pick<SiteAuditSnapshot, 'pages' | 'globals'>): boolean;
|
|
8679
8707
|
/** A route pattern (`/work/:slug`) matches a concrete path (`/work/blue-bowl`). */
|
|
8680
8708
|
declare function routeMatches(pattern: string, path: string): boolean;
|
|
8681
8709
|
/** Run the eight checks. `pageId` narrows the page checks to the page being published; site-wide ones always run. */
|
|
@@ -10074,5 +10102,5 @@ declare function applyLayoutEdits(page: LayoutPage, edits: ReadonlyArray<LayoutE
|
|
|
10074
10102
|
/** The strict format a repair is asked in: `{ edits: [{ op, path, value }] }`, every key required. */
|
|
10075
10103
|
declare function layoutRepairJsonSchema(): JsonSchema;
|
|
10076
10104
|
|
|
10077
|
-
export { ACCOUNT_ENTRY_ID, ACTION_START_SCALE, ACTIVE_BUILD_STATUSES, 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, 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 };
|
|
10105
|
+
export { ACCOUNT_ENTRY_ID, ACTION_START_SCALE, ACTIVE_BUILD_STATUSES, 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 };
|
|
10078
10106
|
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { roleClass } from '@vectoriox/iox-ui/design-core';
|
|
2
2
|
import {
|
|
3
|
-
CUSTOMER_SLOT, EMAIL_CODE_TTL_MINUTES, SIGN_IN_PROVIDERS, SignInLanguage, signInLanguage, SignInProvider, signInProviderMarkUri, signInProviderName,
|
|
3
|
+
ACCOUNT_PATH, CUSTOMER_SLOT, EMAIL_CODE_TTL_MINUTES, SIGN_IN_PROVIDERS, SignInLanguage, signInLanguage, SignInProvider, signInProviderMarkUri, signInProviderName,
|
|
4
4
|
SignInWord, signInWord,
|
|
5
5
|
} from '@vectoriox/iox-ui/identity-core';
|
|
6
6
|
|
|
@@ -192,7 +192,7 @@ export function buildAccountMenuRecipe(create: CompositeNodeFactory, lang: strin
|
|
|
192
192
|
const greeting = words(create, 'account-menu-greeting', AccountRole.MenuGreeting, Style.Body, t.greeting, 'Greeting',
|
|
193
193
|
{ ...WORDS, margin: '0px 0px 6px 0px', fontWeight: '600' });
|
|
194
194
|
const orders = recipePart(create, 'account-orders', 'ButtonBlock', AccountRole.Orders, Style.Ghost,
|
|
195
|
-
{ tag: 'a', linkType: 'external', href:
|
|
195
|
+
{ tag: 'a', linkType: 'external', href: ACCOUNT_PATH, target: '_self' }, 'Your orders', { ...TEXT_BUTTON, justifyContent: 'flex-start', width: '100%' });
|
|
196
196
|
orders.children = [words(create, 'account-orders-label', null, Style.Label, t.orders, 'Text', WORDS, 'span')];
|
|
197
197
|
const signOut = labelled(create, 'account-sign-out', AccountRole.SignOut, Style.Ghost, t.signOut, 'Sign out',
|
|
198
198
|
{ ...TEXT_BUTTON, justifyContent: 'flex-start', width: '100%' });
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { ELEMENT_ACTION_DESCRIPTORS, resolveActionAvailability } from '@vectoriox/iox-ui/actions-core';
|
|
2
|
+
import { CheckoutGateRefusal, labelIn } from '@vectoriox/iox-ui/commerce-core';
|
|
3
|
+
import { ShopRole } from '@vectoriox/iox-ui/composite-core';
|
|
2
4
|
import { auditDesignContrast, DesignTokenLike } from '@vectoriox/iox-ui/design-core';
|
|
3
5
|
import { collectFormSpec, ControlType, FIELD_NODE_TYPE, FORM_CHANNEL_ROLE, FORM_NODE_TYPE, isChannelFilled } from '@vectoriox/iox-ui/forms-core';
|
|
4
6
|
|
|
@@ -53,6 +55,13 @@ export enum SiteFindingCode {
|
|
|
53
55
|
/** Commerce G1 (shop-aware §3i): a sample product the build added still has no price — a price is a fact a buyer is
|
|
54
56
|
* held to, so the owner sets it (or removes the sample) before the store goes live. */
|
|
55
57
|
SamplePrice = 'sample-price',
|
|
58
|
+
/** Commerce G2: a sample product the build added has no stock count yet — how many the owner has is theirs to say;
|
|
59
|
+
* unanswered, the sample is sold out to every visitor (the build never invents stock). */
|
|
60
|
+
SampleStock = 'sample-stock',
|
|
61
|
+
/** Commerce G2 (R-H8): a site that sells, while the checkout gate (commerce-core `checkoutGate`, C-D19) still refuses
|
|
62
|
+
* one of its facts — a way to get paid, delivery, the business's identity, the owner's own legal pages. Each is the
|
|
63
|
+
* owner's to answer, never written for them; the finding carries the gate's code in `fact`. */
|
|
64
|
+
StoreFact = 'store-fact',
|
|
56
65
|
StockPhoto = 'stock-photo',
|
|
57
66
|
/** M7: a picture made with AI for the site still stands where one of the studio's own could. */
|
|
58
67
|
MadePicture = 'made-picture',
|
|
@@ -83,6 +92,8 @@ export const FINDING_SEVERITY: Readonly<Record<SiteFindingCode, CheckSeverity>>
|
|
|
83
92
|
[SiteFindingCode.CopyPlaceholder]: CheckSeverity.Ask,
|
|
84
93
|
[SiteFindingCode.SampleItems]: CheckSeverity.Ask,
|
|
85
94
|
[SiteFindingCode.SamplePrice]: CheckSeverity.Block,
|
|
95
|
+
[SiteFindingCode.SampleStock]: CheckSeverity.Block,
|
|
96
|
+
[SiteFindingCode.StoreFact]: CheckSeverity.Block,
|
|
86
97
|
[SiteFindingCode.StockPhoto]: CheckSeverity.Ask,
|
|
87
98
|
[SiteFindingCode.MadePicture]: CheckSeverity.Ask,
|
|
88
99
|
[SiteFindingCode.PictureMissing]: CheckSeverity.Warn,
|
|
@@ -110,6 +121,8 @@ const CHECK_OF: Readonly<Record<SiteFindingCode, SiteCheckId>> = {
|
|
|
110
121
|
[SiteFindingCode.CopyPlaceholder]: SiteCheckId.Facts,
|
|
111
122
|
[SiteFindingCode.SampleItems]: SiteCheckId.Facts,
|
|
112
123
|
[SiteFindingCode.SamplePrice]: SiteCheckId.Facts,
|
|
124
|
+
[SiteFindingCode.SampleStock]: SiteCheckId.Facts,
|
|
125
|
+
[SiteFindingCode.StoreFact]: SiteCheckId.Facts,
|
|
113
126
|
[SiteFindingCode.StockPhoto]: SiteCheckId.Facts,
|
|
114
127
|
[SiteFindingCode.MadePicture]: SiteCheckId.Facts,
|
|
115
128
|
[SiteFindingCode.PictureMissing]: SiteCheckId.Facts,
|
|
@@ -134,6 +147,8 @@ export interface SiteFinding {
|
|
|
134
147
|
nodeId?: string;
|
|
135
148
|
/** The global slot (`header` / `footer`) when it is in a global. */
|
|
136
149
|
owner?: string;
|
|
150
|
+
/** `store-fact`: the checkout gate's code (commerce-core `CheckoutGateCode`) — which fact, so a screen can open where it is answered. */
|
|
151
|
+
fact?: string;
|
|
137
152
|
}
|
|
138
153
|
|
|
139
154
|
export interface SiteCheck {
|
|
@@ -177,6 +192,13 @@ export interface SiteAuditSnapshot {
|
|
|
177
192
|
samples?: ReadonlyArray<{ contentType: string; id: string; label?: string }>;
|
|
178
193
|
/** Commerce G1: sample products (`isSample`) whose price is still not set. */
|
|
179
194
|
unpricedSamples?: ReadonlyArray<{ id: string; label?: string }>;
|
|
195
|
+
/** Commerce G2: sample products (`isSample`) whose stock count was never set. */
|
|
196
|
+
unstockedSamples?: ReadonlyArray<{ id: string; label?: string }>;
|
|
197
|
+
/**
|
|
198
|
+
* Commerce G2: what the checkout gate refuses for this studio (commerce-core `checkoutGate(…).refusals`) and the
|
|
199
|
+
* studio's language its words are said in. Read only when the site sells (`siteSells`).
|
|
200
|
+
*/
|
|
201
|
+
store?: { refusals: ReadonlyArray<Pick<CheckoutGateRefusal, 'code' | 'label'>>; lang?: string | null } | null;
|
|
180
202
|
/** Stock photos a build placed that are still on the page. */
|
|
181
203
|
stock?: ReadonlyArray<{ nodeId: string; pageId?: string; owner?: string }>;
|
|
182
204
|
/** M7: pictures made with AI that are still on the page. */
|
|
@@ -201,6 +223,17 @@ const COLOUR_TRAITS = /color|Color|^background$|boxShadow|textShadow/;
|
|
|
201
223
|
const HEADING_LEVEL = /^h([1-6])$/;
|
|
202
224
|
const DIALOG_TYPE = 'Dialog';
|
|
203
225
|
const SELF = 'self';
|
|
226
|
+
/** The parts that take a buyer toward the checkout — a price alone shows; these sell. */
|
|
227
|
+
const SELLING_ROLES: ReadonlySet<string> = new Set([ShopRole.Add, ShopRole.BuyNow, ShopRole.CartButton, ShopRole.CartDrawer, ShopRole.Checkout]);
|
|
228
|
+
|
|
229
|
+
/** Commerce G2: the site sells — a page or a global holds a part that puts a product in the bag or opens the checkout. */
|
|
230
|
+
export function siteSells(snapshot: Pick<SiteAuditSnapshot, 'pages' | 'globals'>): boolean {
|
|
231
|
+
let sells = false;
|
|
232
|
+
const visit = (n: SerializedNode) => { if (!sells && !!n.role && SELLING_ROLES.has(n.role)) sells = true; };
|
|
233
|
+
for (const page of snapshot.pages) walkSerialized(page.layout, visit);
|
|
234
|
+
walkSerialized(snapshot.globals, visit);
|
|
235
|
+
return sells;
|
|
236
|
+
}
|
|
204
237
|
|
|
205
238
|
/** A route pattern (`/work/:slug`) matches a concrete path (`/work/blue-bowl`). */
|
|
206
239
|
export function routeMatches(pattern: string, path: string): boolean {
|
|
@@ -237,7 +270,7 @@ interface Ctx {
|
|
|
237
270
|
nodeIds: Map<string, string>;
|
|
238
271
|
}
|
|
239
272
|
|
|
240
|
-
function add(ctx: Ctx, code: SiteFindingCode, message: string, where: { pageId?: string; nodeId?: string; owner?: string } = {}): void {
|
|
273
|
+
function add(ctx: Ctx, code: SiteFindingCode, message: string, where: { pageId?: string; nodeId?: string; owner?: string; fact?: string } = {}): void {
|
|
241
274
|
ctx.out.push({ check: CHECK_OF[code], severity: FINDING_SEVERITY[code], code, message, ...where });
|
|
242
275
|
}
|
|
243
276
|
|
|
@@ -299,6 +332,10 @@ function checkFacts(ctx: Ctx, snapshot: SiteAuditSnapshot, pages: ReadonlyArray<
|
|
|
299
332
|
}
|
|
300
333
|
for (const s of snapshot.samples ?? []) add(ctx, SiteFindingCode.SampleItems, `"${s.label ?? s.id}" is a sample — replace or remove it.`, { nodeId: s.id });
|
|
301
334
|
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
|
+
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
|
+
if (snapshot.store?.refusals.length && siteSells(snapshot)) {
|
|
337
|
+
for (const r of snapshot.store.refusals) add(ctx, SiteFindingCode.StoreFact, labelIn(r.label, snapshot.store.lang), { fact: r.code });
|
|
338
|
+
}
|
|
302
339
|
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 });
|
|
303
340
|
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 });
|
|
304
341
|
for (const s of (snapshot.missing ?? []).filter(inScope)) add(ctx, SiteFindingCode.PictureMissing, 'A picture could not be made for this spot — add one of yours.', { pageId: s.pageId, nodeId: s.nodeId, owner: s.owner });
|
|
@@ -150,6 +150,9 @@ export enum BuildNoticeCode {
|
|
|
150
150
|
/** Commerce G1: the studio had never set its currency and VAT — the build stored the ones its language implies
|
|
151
151
|
* (Hebrew: ILS and 18%), said here so the owner checks them in Settings ▸ General before setting prices. */
|
|
152
152
|
ShopMoneyInferred = 'shop-money-inferred',
|
|
153
|
+
/** Commerce G2: the facts the owner gave (email, phone, address) became the shop's contact details where it had none
|
|
154
|
+
* — said, so the owner adds what only they know (the legal name, the business number) in Shop ▸ Settings. */
|
|
155
|
+
ShopBusinessFromFacts = 'shop-business-from-facts',
|
|
153
156
|
}
|
|
154
157
|
|
|
155
158
|
export interface BuildNotice {
|