@vectoriox/iox-ui 5.99.0 → 5.101.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.
Files changed (47) hide show
  1. package/actions-core/index.d.ts +7 -4
  2. package/commerce-core/index.d.ts +2 -0
  3. package/composite-core/index.d.ts +238 -2
  4. package/design-core/index.d.ts +334 -1
  5. package/fesm2022/vectoriox-iox-ui-actions-core.mjs +16 -7
  6. package/fesm2022/vectoriox-iox-ui-actions-core.mjs.map +1 -1
  7. package/fesm2022/vectoriox-iox-ui-commerce-core.mjs +3 -0
  8. package/fesm2022/vectoriox-iox-ui-commerce-core.mjs.map +1 -1
  9. package/fesm2022/vectoriox-iox-ui-composite-core.mjs +1005 -256
  10. package/fesm2022/vectoriox-iox-ui-composite-core.mjs.map +1 -1
  11. package/fesm2022/vectoriox-iox-ui-design-core.mjs +416 -1
  12. package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
  13. package/fesm2022/vectoriox-iox-ui-forms-core.mjs +3 -24
  14. package/fesm2022/vectoriox-iox-ui-forms-core.mjs.map +1 -1
  15. package/fesm2022/vectoriox-iox-ui-generation-core.mjs +23 -13
  16. package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
  17. package/fesm2022/vectoriox-iox-ui-identity-core.mjs +300 -22
  18. package/fesm2022/vectoriox-iox-ui-identity-core.mjs.map +1 -1
  19. package/fesm2022/vectoriox-iox-ui.mjs +7 -61
  20. package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
  21. package/forms-core/index.d.ts +2 -23
  22. package/generation-core/index.d.ts +3 -1
  23. package/identity-core/index.d.ts +190 -14
  24. package/index.d.ts +0 -12
  25. package/package.json +1 -1
  26. package/src/actions-core/action.model.ts +1 -1
  27. package/src/actions-core/element-actions.ts +16 -6
  28. package/src/commerce-core/site-checkout.ts +3 -0
  29. package/src/composite-core/account-runtime.ts +461 -0
  30. package/src/composite-core/account.ts +309 -0
  31. package/src/composite-core/public-api.ts +2 -0
  32. package/src/composite-core/recipe-parts.ts +48 -0
  33. package/src/composite-core/shop.ts +6 -26
  34. package/src/design-core/field-classes.ts +65 -0
  35. package/src/design-core/flavor-spec.generated.ts +346 -0
  36. package/src/design-core/public-api.ts +1 -0
  37. package/src/forms-core/field-markup.ts +2 -22
  38. package/src/generation-core/compose-site.ts +19 -9
  39. package/src/generation-core/nav-shape.ts +4 -4
  40. package/src/identity-core/provider-marks.ts +60 -0
  41. package/src/identity-core/public-api.ts +3 -0
  42. package/src/identity-core/sign-in.ts +43 -6
  43. package/src/identity-core/site-auth-transport.ts +142 -0
  44. package/src/identity-core/site-auth.ts +36 -0
  45. package/src/identity-core/site-methods.ts +78 -0
  46. package/src/identity-core/words.ts +60 -17
  47. package/styles/iox-design.css +38 -0
@@ -1,4 +1,5 @@
1
1
  export { FORM_SUBMIT_ACTION_DESCRIPTORS as ACTION_DESCRIPTORS, ActionDescriptor, addableActions } from '@vectoriox/iox-ui/actions-core';
2
+ export { FIELD_INVALID_CLASS, FieldClass, writeFieldError } from '@vectoriox/iox-ui/design-core';
2
3
 
3
4
  /** What the visitor actually types into. Chosen by a trait; it also implies a validation rule. */
4
5
  declare enum ControlType {
@@ -861,28 +862,6 @@ declare function datePickerWords(lang: string | null | undefined): DatePickerWor
861
862
  * Framework-free, like the rest of forms-core: `escape` is the caller's.
862
863
  */
863
864
 
864
- /** The classes the markup carries — the runtimes and the shared CSS key on these, never on a literal. */
865
- declare enum FieldClass {
866
- Root = "iox-field",
867
- Label = "iox-field__label",
868
- LabelHidden = "iox-field__label--hidden",
869
- Required = "iox-field__required",
870
- Control = "iox-field__control",
871
- Help = "iox-field__help",
872
- Error = "iox-field__error",
873
- Group = "iox-field__group",
874
- Option = "iox-field__option",
875
- Choices = "iox-field__choices",
876
- ChoicesChips = "iox-field__choices--chips",
877
- ChoicesList = "iox-field__choices--list",
878
- Chips = "iox-field__chips",
879
- Chip = "iox-field__chip",
880
- ChipInput = "iox-field__control--chip",
881
- DateButton = "iox-field__control--date",
882
- DateValue = "iox-field__date-value",
883
- DateIcon = "iox-field__date-icon",
884
- DateInput = "iox-field__date-input"
885
- }
886
865
  /** On the date button: the raw Earliest / Latest (`'0'`, an ISO day), resolved by the visitor's own today. */
887
866
  declare const DATE_MIN_ATTRIBUTE = "data-iox-date-min";
888
867
  declare const DATE_MAX_ATTRIBUTE = "data-iox-date-max";
@@ -910,5 +889,5 @@ interface FieldMarkupOptions {
910
889
  /** A Field's whole element, as the string renderer writes it. */
911
890
  declare function fieldHtml(props: Record<string, any> | null | undefined, options: FieldMarkupOptions): string;
912
891
 
913
- export { CALENDAR_ROWS, CHANNEL_KINDS, CHOICE_MESSAGE_KEYS, CalendarKey, ChannelKind, ChoiceAppearance, ControlType, DATE_EMPTY_ATTRIBUTE, DATE_ICON_SVG, DATE_MAX_ATTRIBUTE, DATE_MESSAGE_KEYS, DATE_MIN_ATTRIBUTE, DATE_PICKER_WORDS, DEFAULT_EN_MESSAGES, FIELD_GROUP_NODE_TYPE, FIELD_NODE_TYPE, FORM_ACTIONS_ROLE, FORM_AFTER_SEND_ATTRIBUTE, FORM_AFTER_SEND_TRAIT, FORM_ANNOUNCER_ATTRIBUTE, FORM_CHANNEL_ROLE, FORM_CONTENT_TYPES, FORM_ERROR_KEYS, FORM_FIELDS_ATTRIBUTE, FORM_HONEYPOT_CLASS, FORM_NODE_TYPE, FORM_PRESETS, FORM_STATE_ATTRIBUTE, FeedbackTiming, FieldClass, FormAfterSend, FormPresetId, FormRenderState, HONEYPOT_FIELD, IMPLIED_PATTERN, INITIAL_FORM_STATE, INTERACTIVE_HOST_TAGS, InteractiveTag, MESSAGE_NAMESPACE, OPTION_CONTROLS, PATTERN_MESSAGE_KEYS, PATTERN_PRESETS, PATTERN_PRESET_OPTIONS, PatternPreset, RENDERED_AT_FIELD, RULE_DESCRIPTORS, RULE_MESSAGE_KEYS, RuleName, RuleParamKind, STORE_ACTION, SUBMIT_BUTTON_NODE_TYPE, SUBMIT_CHECK_SVG, SUBMIT_KEEP_ENABLED_ATTRIBUTE, SUBMIT_MESSAGE_KEYS, SubmitLabelClass, addDaysIso, addMonthsIso, addableRules, applyServerErrors, baseFieldName, calendarKeyTarget, calendarMonth, channelHref, channelOpensNewTab, choiceAppearanceOf, clampIso, clientFormSpec, collectFieldNodes, collectFormSpec, dateBoundRules, dateOfIso, datePickerWords, deriveFieldName, failureAnnouncement, fieldDateRange, fieldHtml, fieldOptionsOf, fieldSpecOf, findFormContentInHosts, firstInvalidField, formAfterSend, formChromeHtml, formContentInHost, formFieldNameMap, formFieldNames, formPresetById, formatDateInWords, inputTypeOf, interpretSubmitResponse, isChannelFilled, isDateBoundParams, isDateField, isFormContent, isInteractiveHost, isIsoDate, isMultiValueField, isoOfDate, normaliseAnswers, onFieldBlur, onFieldChange, onSubmitAttempt, parseChannelHref, parseClientFormSpec, parseDateBound, parseFieldOptions, planFormPresetIds, resetFormState, resolveDateBound, rulesFor, sentWord, shouldShowError, submitButtonLabelsHtml, submitButtonView, submitEndpointPath, submitOutcome, todayIso, uniqueFieldName, uniqueFieldNames, validateField, validateForm, weekStartFor, withAntiSpamFields };
892
+ export { CALENDAR_ROWS, CHANNEL_KINDS, CHOICE_MESSAGE_KEYS, CalendarKey, ChannelKind, ChoiceAppearance, ControlType, DATE_EMPTY_ATTRIBUTE, DATE_ICON_SVG, DATE_MAX_ATTRIBUTE, DATE_MESSAGE_KEYS, DATE_MIN_ATTRIBUTE, DATE_PICKER_WORDS, DEFAULT_EN_MESSAGES, FIELD_GROUP_NODE_TYPE, FIELD_NODE_TYPE, FORM_ACTIONS_ROLE, FORM_AFTER_SEND_ATTRIBUTE, FORM_AFTER_SEND_TRAIT, FORM_ANNOUNCER_ATTRIBUTE, FORM_CHANNEL_ROLE, FORM_CONTENT_TYPES, FORM_ERROR_KEYS, FORM_FIELDS_ATTRIBUTE, FORM_HONEYPOT_CLASS, FORM_NODE_TYPE, FORM_PRESETS, FORM_STATE_ATTRIBUTE, FeedbackTiming, FormAfterSend, FormPresetId, FormRenderState, HONEYPOT_FIELD, IMPLIED_PATTERN, INITIAL_FORM_STATE, INTERACTIVE_HOST_TAGS, InteractiveTag, MESSAGE_NAMESPACE, OPTION_CONTROLS, PATTERN_MESSAGE_KEYS, PATTERN_PRESETS, PATTERN_PRESET_OPTIONS, PatternPreset, RENDERED_AT_FIELD, RULE_DESCRIPTORS, RULE_MESSAGE_KEYS, RuleName, RuleParamKind, STORE_ACTION, SUBMIT_BUTTON_NODE_TYPE, SUBMIT_CHECK_SVG, SUBMIT_KEEP_ENABLED_ATTRIBUTE, SUBMIT_MESSAGE_KEYS, SubmitLabelClass, addDaysIso, addMonthsIso, addableRules, applyServerErrors, baseFieldName, calendarKeyTarget, calendarMonth, channelHref, channelOpensNewTab, choiceAppearanceOf, clampIso, clientFormSpec, collectFieldNodes, collectFormSpec, dateBoundRules, dateOfIso, datePickerWords, deriveFieldName, failureAnnouncement, fieldDateRange, fieldHtml, fieldOptionsOf, fieldSpecOf, findFormContentInHosts, firstInvalidField, formAfterSend, formChromeHtml, formContentInHost, formFieldNameMap, formFieldNames, formPresetById, formatDateInWords, inputTypeOf, interpretSubmitResponse, isChannelFilled, isDateBoundParams, isDateField, isFormContent, isInteractiveHost, isIsoDate, isMultiValueField, isoOfDate, normaliseAnswers, onFieldBlur, onFieldChange, onSubmitAttempt, parseChannelHref, parseClientFormSpec, parseDateBound, parseFieldOptions, planFormPresetIds, resetFormState, resolveDateBound, rulesFor, sentWord, shouldShowError, submitButtonLabelsHtml, submitButtonView, submitEndpointPath, submitOutcome, todayIso, uniqueFieldName, uniqueFieldNames, validateField, validateForm, weekStartFor, withAntiSpamFields };
914
893
  export type { CalendarDay, CalendarMonth, CalendarOptions, ClientFormSpec, DateBoundParams, DatePickerWords, FieldError, FieldMarkupOptions, FieldOption, FieldOptionSource, FieldResult, FieldSpec, FormNodeLike, FormPresetChannel, FormPresetDef, FormPresetField, FormResult, FormRuntimeState, FormSpec, FormTransport, MisplacedFormContent, NestingNode, RuleDescriptor, SubmitAction, SubmitButtonView, SubmitLabels, SubmitOutcome, SubmitRequest, SubmitResponse, ValidateOptions, ValidationRule };
@@ -7301,6 +7301,8 @@ declare function composePresetForm(id: string, presetId: string, owner: string):
7301
7301
  /** The ids the composer gives them (the header's bag; the drawer, a global after the page). */
7302
7302
  declare const SHOP_CART_BUTTON_ID = "header-cart";
7303
7303
  declare const SHOP_CART_DRAWER_ID = "cart";
7304
+ declare const ACCOUNT_ENTRY_ID = "header-account";
7305
+ declare const SIGN_IN_DIALOG_ID = "sign-in";
7304
7306
  /**
7305
7307
  * Compose a Site Plan. Throws `SitePlanError` (every issue) when the plan does not validate — the
7306
7308
  * composer never repairs a plan. `context` carries what the composer may not read for itself (the year).
@@ -10072,5 +10074,5 @@ declare function applyLayoutEdits(page: LayoutPage, edits: ReadonlyArray<LayoutE
10072
10074
  /** The strict format a repair is asked in: `{ edits: [{ op, path, value }] }`, every key required. */
10073
10075
  declare function layoutRepairJsonSchema(): JsonSchema;
10074
10076
 
10075
- export { 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, 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 };
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 };
10076
10078
  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 };
@@ -12,10 +12,11 @@ declare enum SignInPurpose {
12
12
  /** portal.iox.studio. */
13
13
  Portal = "portal"
14
14
  }
15
- /** A provider the broker runs. Google is live; the rest join one adapter at a time (board 18). */
15
+ /** A provider the broker runs (board 18). The enum's order is the order every sign-in shows them in. Each id is the path
16
+ * segment of the ONE address registered with that provider: `https://auth.iox.studio/<id>/callback`. */
16
17
  declare enum SignInProvider {
17
18
  Google = "google",
18
- Meta = "meta",
19
+ Facebook = "facebook",
19
20
  GitHub = "github",
20
21
  LinkedIn = "linkedin"
21
22
  }
@@ -28,10 +29,13 @@ interface SignInProviderSpec {
28
29
  readonly protocol: SignInProtocol;
29
30
  /** The answer is signed, so a studio can check it itself — the only kind an admin may sign in with (C-D6). */
30
31
  readonly signedAnswer: boolean;
31
- /** Running on the broker today. */
32
+ /** The broker has an adapter for it. Whether it is ON (both keys in the broker's env) is the broker's answer to
33
+ * `BrokerApiRoute.Providers`, read at run time — never a release. */
32
34
  readonly live: boolean;
33
35
  }
34
36
  declare const SIGN_IN_PROVIDER_SPECS: Readonly<Record<SignInProvider, SignInProviderSpec>>;
37
+ /** Every provider, in the order a sign-in shows them. */
38
+ declare const SIGN_IN_PROVIDERS: ReadonlyArray<SignInProvider>;
35
39
  declare function isSignInProvider(value: unknown): value is SignInProvider;
36
40
  declare function isSignInPurpose(value: unknown): value is SignInPurpose;
37
41
  /** May `provider` serve `purpose`? Buyers and the portal take any provider; a team member only a signed answer (C-D6). */
@@ -45,8 +49,18 @@ declare const SIGN_IN_HANDOFF_TTL_SECONDS = 60;
45
49
  /** The server-to-server routes on the control plane's API host (bearer: the studio's INSTANCE_TOKEN). */
46
50
  declare enum BrokerApiRoute {
47
51
  Tickets = "instances/me/sign-in/tickets",
48
- Redeem = "instances/me/sign-in/redeem"
52
+ Redeem = "instances/me/sign-in/redeem",
53
+ /** `GET` → only the providers that are ON: `{ "google": true }` (`SignInProvidersAnswer`). */
54
+ Providers = "instances/me/sign-in/providers"
49
55
  }
56
+ /** `GET instances/me/sign-in/providers` — each provider that is ON, `true`; an off one is absent. */
57
+ type SignInProvidersAnswer = Partial<Record<SignInProvider, true>>;
58
+ /** The providers ON in a broker's answer, in the order a sign-in shows them; anything else in the body is ignored. */
59
+ declare function providersOn(answer: unknown): SignInProvider[];
60
+ /** The providers ON at the broker that may serve `purpose` (C-D6: a team member only with a signed answer). */
61
+ declare function providersServing(on: readonly SignInProvider[], purpose: SignInPurpose): SignInProvider[];
62
+ /** How long a studio or the portal may keep the broker's providers answer before asking again. */
63
+ declare const SIGN_IN_PROVIDERS_CACHE_SECONDS = 60;
50
64
  /** The browser's routes on `auth.iox.studio`, one pair per provider. */
51
65
  declare enum BrokerBrowserRoute {
52
66
  Start = "start",
@@ -104,7 +118,9 @@ declare enum BrokerRefusalCode {
104
118
  /** 410 */
105
119
  CodeUsedOrExpired = "code-used-or-expired",
106
120
  /** 403 — another tenant's code. */
107
- NotYours = "not-yours"
121
+ NotYours = "not-yours",
122
+ /** 400 — a purpose this asker may not use, or a provider that may not serve it (C-D6). */
123
+ InvalidRequest = "invalid-request"
108
124
  }
109
125
  declare const BROKER_REFUSAL_STATUS: Readonly<Record<BrokerRefusalCode, number>>;
110
126
  declare function isBrokerRefusalCode(value: unknown): value is BrokerRefusalCode;
@@ -112,6 +128,14 @@ declare function isBrokerRefusalCode(value: unknown): value is BrokerRefusalCode
112
128
  declare const SIGN_IN_HANDOFF_PARAM = "iox_signin";
113
129
  /** The failure's query parameter on the return address. */
114
130
  declare const SIGN_IN_ERROR_PARAM = "iox_signin_error";
131
+ /** Beside a failure a studio sends back: the provider it was (`?iox_signin_via=github`), so the words can name it. */
132
+ declare const SIGN_IN_VIA_PARAM = "iox_signin_via";
133
+ /**
134
+ * The binding parameter on every return address a studio or the portal asks the broker for: `iox_sb=<sha256 of the
135
+ * random value in the starting browser's httpOnly cookie>`. The redeemed `returnUrl` must carry THIS browser's hash — a
136
+ * hand-off started in another browser is refused (login CSRF).
137
+ */
138
+ declare const SIGN_IN_BINDING_PARAM = "iox_sb";
115
139
  /** Why the browser came back without a person. */
116
140
  declare enum SignInReturnError {
117
141
  /** The person pressed Cancel on the provider's screen. */
@@ -182,7 +206,9 @@ declare enum SiteAuthRoute {
182
206
  SignOut = "auth/signout",
183
207
  /** `GET` → `{ customer }` (null when signed out). */
184
208
  Me = "me",
185
- MyOrders = "me/orders"
209
+ MyOrders = "me/orders",
210
+ /** `GET` → `{ methods }` — the ways this site lets a buyer sign in right now (`siteSignInMethods`). Public. */
211
+ Methods = "auth/methods"
186
212
  }
187
213
  /** Every route a site's sign-in calls, by name (the provider pair is per provider — `siteProviderPath`). */
188
214
  declare const SITE_AUTH_ROUTES: Readonly<Record<keyof typeof SiteAuthRoute, SiteAuthRoute>>;
@@ -252,6 +278,13 @@ declare const SITE_COOKIE_PATH = "/";
252
278
  declare const SIGN_IN_STATE_MAX_AGE_SECONDS = 600;
253
279
  declare function customerCookieName(orgId: string): string;
254
280
  declare function signInStateCookieName(orgId: string): string;
281
+ /**
282
+ * A cookie no sibling host can plant (vectoriox/iox-cms#73 — cookie tossing from another `*.iox.studio`): over https the
283
+ * name takes the `__Host-` prefix, which a browser accepts only `Secure`, with `Path=/` and no `Domain`. A server that
284
+ * sets one with this name must set exactly those; plain http (local development) keeps the bare name.
285
+ */
286
+ declare const HOST_ONLY_COOKIE_PREFIX = "__Host-";
287
+ declare function hostOnlyCookieName(name: string, secure: boolean): string;
255
288
  declare const EMAIL_CODE_LENGTH = 6;
256
289
  declare const EMAIL_CODE_TTL_MINUTES = 10;
257
290
  declare const EMAIL_CODE_TTL_MS: number;
@@ -267,6 +300,15 @@ declare function normalizeSignInEmail(email: unknown): string;
267
300
  declare function emailCodeExpired(sentAt: number | Date, now: number | Date): boolean;
268
301
  /** How many more codes may be tried after `wrongTries` wrong ones (0 = the code is spent). */
269
302
  declare function emailCodeTriesLeft(wrongTries: number): number;
303
+ declare const ACCOUNT_PATH = "account";
304
+ /** The buyer's account page — their orders: `/<orgLabel>/account` (the engine answers it on every studio). */
305
+ declare function accountHref(orgLabel?: string | null): string;
306
+ /** The account page's segment for one order: `/<orgLabel>/account/orders/<number>`. */
307
+ declare const ACCOUNT_ORDERS_SEGMENT = "orders";
308
+ /** One of the signed-in buyer's own orders, under the account page — read by the session, never by a link token. */
309
+ declare function accountOrderHref(orgLabel: string | null | undefined, orderNumber: string | number): string;
310
+ /** `GET /api/site/<org>/me/orders/<number>` — one order of the signed-in buyer (404 for anyone else's). */
311
+ declare function siteMyOrderPath(orgId: string, orderNumber: string | number): string;
270
312
 
271
313
  /**
272
314
  * The sign-in dialog's words and its refusals, in English and Hebrew. A string-rendered site has no translation
@@ -286,7 +328,8 @@ declare enum SignInWord {
286
328
  SignIn = "signIn",
287
329
  SignInTo = "signInTo",
288
330
  Why = "why",
289
- ContinueWithGoogle = "continueWithGoogle",
331
+ /** `{provider}` = the brand's own name (`signInProviderName`), never translated. */
332
+ ContinueWith = "continueWith",
290
333
  Or = "or",
291
334
  Email = "email",
292
335
  EmailPlaceholder = "emailPlaceholder",
@@ -305,7 +348,13 @@ declare enum SignInWord {
305
348
  Hello = "hello",
306
349
  SignedIn = "signedIn",
307
350
  SignedOut = "signedOut",
308
- NoPassword = "noPassword"
351
+ NoPassword = "noPassword",
352
+ /** Before the checkout's "Sign in". */
353
+ HaveAccount = "haveAccount",
354
+ /** The account page with no orders. */
355
+ NoOrders = "noOrders",
356
+ /** An order row on the account page: `{date}`. */
357
+ PlacedOn = "placedOn"
309
358
  }
310
359
  /** `{site}`, `{email}`, `{name}`, `{minutes}` are filled by `signInWord`. */
311
360
  declare const SIGN_IN_WORDS: Readonly<Record<SignInWord, SignInLabel>>;
@@ -314,7 +363,7 @@ declare function signInWord(word: SignInWord, lang: string | null | undefined, f
314
363
  declare enum SignInSlot {
315
364
  Email = "email",
316
365
  Code = "code",
317
- /** Under "Continue with Google". */
366
+ /** Under the provider buttons ("Continue with Google"). */
318
367
  Provider = "provider",
319
368
  /** The dialog as a whole. */
320
369
  Dialog = "dialog"
@@ -339,6 +388,8 @@ declare enum SiteSignInRefusalCode {
339
388
  StateMismatch = "state-mismatch",
340
389
  Blocked = "blocked",
341
390
  NotSignedIn = "not-signed-in",
391
+ /** The studio has no working mailer, so it cannot send a code (it never says whether the email is known). */
392
+ EmailUnavailable = "email-unavailable",
342
393
  Network = "network"
343
394
  }
344
395
  interface SignInRefusalRule {
@@ -354,11 +405,136 @@ interface SignInRefusal {
354
405
  slot: SignInSlot;
355
406
  words: string;
356
407
  }
357
- /** One refusal, on its slot, in the visitor's words. */
358
- declare function signInRefusal(code: unknown, lang: string | null | undefined): SignInRefusal;
408
+ /** One refusal, on its slot, in the visitor's words; a provider's refusal names it (`provider`). */
409
+ declare function signInRefusal(code: unknown, lang: string | null | undefined, provider?: SignInProvider | null): SignInRefusal;
359
410
  /** A refused call's body (`{ code }`) — or nothing at all (`network`) — as one refusal. The body's `message` is a log
360
411
  * line and is never shown. A 429 with no code is `rate-limited`. */
361
- declare function signInRefusalOf(body: unknown, lang: string | null | undefined, status?: number | null): SignInRefusal;
412
+ declare function signInRefusalOf(body: unknown, lang: string | null | undefined, status?: number | null, provider?: SignInProvider | null): SignInRefusal;
413
+ /** A provider sign-in that came back refused to a site's page: the site's own code (a studio's `blocked`,
414
+ * `state-mismatch`… kept; a broker return error mapped) and the provider it was (`?iox_signin_via=`), or null. */
415
+ interface SiteSignInReturnRefusal {
416
+ code: SiteSignInRefusalCode;
417
+ provider: SignInProvider | null;
418
+ }
419
+ declare function siteSignInReturnRefusal(search: string | URLSearchParams | null | undefined): SiteSignInReturnRefusal | null;
420
+
421
+ /**
422
+ * Which ways a studio's SITE lets a buyer sign in (Settings ▸ Sign-in, board 18): the email code always, and each
423
+ * provider the owner switched on — while the broker has it ON and it may serve a buyer (C-D6). ONE rule for the studio
424
+ * that enforces it (iox-cms), the site that shows it (the engine, the canvas) and the screen that sets it (cms-client).
425
+ */
426
+ /** The email code — a `customerIdentities.provider` value beside the broker's providers; it never touches the broker. */
427
+ declare const EMAIL_CODE_PROVIDER: "email-code";
428
+ type EmailCodeProvider = typeof EMAIL_CODE_PROVIDER;
429
+ /** A way a buyer signs in, and the `customerIdentities.provider` it is stored as. */
430
+ type SiteSignInMethod = EmailCodeProvider | SignInProvider;
431
+ /** Every method, in the order a sign-in shows them. */
432
+ declare const SITE_SIGN_IN_METHODS: ReadonlyArray<SiteSignInMethod>;
433
+ declare function isSiteSignInMethod(value: unknown): value is SiteSignInMethod;
434
+ /** The settings type a studio's org stores its choice under (`settings` collection, one row per org). */
435
+ declare const SITE_SIGN_IN_SETTINGS_TYPE = "signIn";
436
+ /** What the owner chose: each provider on or off for buyers. The email code is not a choice — it is always on. */
437
+ interface SiteSignInSettings {
438
+ providers: Record<SignInProvider, boolean>;
439
+ }
440
+ /** A studio that never chose: Google on (C-D6 — "Google on by default, the others as owner switches"). */
441
+ declare const DEFAULT_SITE_SIGN_IN_SETTINGS: Readonly<SiteSignInSettings>;
442
+ /** Any stored or posted value as a whole setting: every provider present, booleans only, unknown keys dropped. */
443
+ declare function normalizeSiteSignInSettings(raw: unknown): SiteSignInSettings;
444
+ /** The methods a site offers right now: the email code, then every provider the owner switched on that the broker has
445
+ * ON (`brokerOn`) and that may serve a buyer. */
446
+ declare function siteSignInMethods(settings: unknown, brokerOn: readonly SignInProvider[]): SiteSignInMethod[];
447
+ /** May a buyer start `provider` on this site right now? */
448
+ declare function siteOffersProvider(settings: unknown, brokerOn: readonly SignInProvider[], provider: SignInProvider): boolean;
449
+ /** `GET api/site/<org>/auth/methods` — public, cacheable. */
450
+ interface SiteSignInMethodsAnswer {
451
+ methods: SiteSignInMethod[];
452
+ }
453
+ /** The methods in an answer (unknown values dropped, in the shown order); the email code is always one of them. */
454
+ declare function siteSignInMethodsOf(answer: unknown): SiteSignInMethod[];
455
+ /** The providers among a site's methods. */
456
+ declare function siteSignInProviders(methods: readonly SiteSignInMethod[]): SignInProvider[];
457
+
458
+ /**
459
+ * THE TRANSPORT a site's sign-in parts speak (commerce E3a, the `CartTransport` rule): the parts own no HTTP. The engine
460
+ * implements it over iox-cms's site routes (`siteAuthPath`, `siteProviderPath`, the cookie carried by the browser); the
461
+ * builder canvas uses `simulatedSiteAuthTransport` — the ADMIN's browser is never a buyer, so nothing is sent and no
462
+ * session exists.
463
+ */
464
+ interface SiteAuthTransport {
465
+ /** The signed-in buyer, or null. */
466
+ me(): Promise<SiteCustomer | null>;
467
+ /** Ask the studio to start a provider's sign-in; the answer is the address the browser goes to next. */
468
+ startProvider(provider: SignInProvider, returnPath: string): Promise<{
469
+ startUrl: string;
470
+ }>;
471
+ /** Send a code to `email` (the studio always accepts — it never says whether the email is known). */
472
+ sendCode(email: string): Promise<void>;
473
+ /** Check the code; the signed-in buyer. */
474
+ verifyCode(email: string, code: string): Promise<SiteCustomer>;
475
+ signOut(): Promise<void>;
476
+ /** The ways this site lets a buyer sign in (`SiteAuthRoute.Methods`). Absent = the parts hide nothing. */
477
+ methods?(): Promise<SiteSignInMethod[]>;
478
+ }
479
+ /** A refused transport call, carrying the code the visitor's words come from (`signInRefusal`). */
480
+ declare class SiteAuthError extends Error {
481
+ readonly code: SiteSignInRefusalCode;
482
+ constructor(code: unknown);
483
+ }
484
+ /** The code any thrown value carries: a `SiteAuthError`'s own, else `network` (the call never answered). */
485
+ declare function siteAuthErrorCode(error: unknown): SiteSignInRefusalCode;
486
+ /** The sample buyer the canvas signs in as. */
487
+ declare const SAMPLE_CUSTOMER: Readonly<SiteCustomer>;
488
+ /** The one code the simulated transport accepts (any other six digits are "not right" — so the error can be designed). */
489
+ declare const SIMULATED_SIGN_IN_CODE = "123456";
490
+ interface SimulatedSiteAuthTransport extends SiteAuthTransport {
491
+ /** Who is signed in on the canvas right now. */
492
+ readonly customer: SiteCustomer | null;
493
+ setCustomer(customer: SiteCustomer | null): void;
494
+ }
495
+ /**
496
+ * The canvas' transport: in memory, nothing sent. A code is "sent" to any well-formed email; `123456` signs in as the
497
+ * sample buyer under the typed email, any other six digits are `code-wrong`; a provider's start answers the broker's
498
+ * address with a sample ticket (the canvas host never follows it).
499
+ */
500
+ declare function simulatedSiteAuthTransport(start?: SiteCustomer | null, methods?: readonly SiteSignInMethod[]): SimulatedSiteAuthTransport;
501
+ /** A transport that has nothing to reach: `me` is null, every change refused as `network`. */
502
+ declare const NO_SITE_AUTH_TRANSPORT: SiteAuthTransport;
503
+ /** The context slot the account parts bind to (`$customer.initial`, `$customer.name`). */
504
+ declare const CUSTOMER_SLOT = "$customer";
505
+ /** `$customer` — what a page may show of the buyer: never the id. */
506
+ interface CustomerSlot {
507
+ signedIn: boolean;
508
+ name: string;
509
+ /** The first letter of the name, else of the email; '' when signed out. */
510
+ initial: string;
511
+ email: string;
512
+ }
513
+ /** The first visible letter of a name or an email, upper-cased where the script has case. */
514
+ declare function customerInitial(customer: Pick<SiteCustomer, 'name' | 'email'> | null | undefined): string;
515
+ /** The name a page greets with: the buyer's own, else the email's local part. */
516
+ declare function customerDisplayName(customer: Pick<SiteCustomer, 'name' | 'email'> | null | undefined): string;
517
+ declare function customerSlotOf(customer: SiteCustomer | null | undefined): CustomerSlot;
518
+
519
+ /**
520
+ * How each provider's button presents it — ONE copy for every IOX sign-in (the site's dialog, the admin login, the
521
+ * portal). Each brand's button guidelines: its own name, never translated ("Continue with GitHub" / "המשך עם GitHub"),
522
+ * and its official mark in its own colours, unaltered — Google's four-colour G, LinkedIn's "in" on its blue, Facebook's
523
+ * white f on its blue circle; GitHub's mark is single-colour by its rules, so it takes the button's ink (`currentColor`).
524
+ */
525
+ interface SignInProviderBrand {
526
+ /** The brand's name, as the brand writes it. */
527
+ readonly name: string;
528
+ /** The mark as one inline SVG (a square `viewBox`, no size — the button sizes it). */
529
+ readonly mark: string;
530
+ /** The mark for an `<img>`, where `currentColor` means nothing — when it differs from `mark`. */
531
+ readonly imageMark?: string;
532
+ }
533
+ declare const SIGN_IN_PROVIDER_BRANDS: Readonly<Record<SignInProvider, SignInProviderBrand>>;
534
+ /** The provider's name as its brand writes it. */
535
+ declare function signInProviderName(provider: SignInProvider | null | undefined): string;
536
+ /** The mark as a `data:` address — for an `<img>` (a builder Image part, an admin button). */
537
+ declare function signInProviderMarkUri(provider: SignInProvider): string;
362
538
 
363
- export { BROKER_HOST, BROKER_ORIGIN, BROKER_REFUSAL_STATUS, BROKER_TICKET_PARAM, BrokerApiRoute, BrokerBrowserRoute, BrokerRefusalCode, CUSTOMER_COOKIE_PREFIX, EMAIL_CODE_LENGTH, EMAIL_CODE_MAX_TRIES, EMAIL_CODE_TTL_MINUTES, EMAIL_CODE_TTL_MS, NEXT_PATH_MAX_LENGTH, SIGN_IN_ERROR_PARAM, SIGN_IN_HANDOFF_PARAM, SIGN_IN_HANDOFF_TTL_SECONDS, SIGN_IN_NEXT_PARAM, SIGN_IN_PROVIDER_SPECS, SIGN_IN_REFUSALS, SIGN_IN_STATE_COOKIE_PREFIX, SIGN_IN_STATE_MAX_AGE_SECONDS, SIGN_IN_TICKET_TTL_SECONDS, SIGN_IN_WORDS, SITE_AUDIENCE, SITE_AUTH_ROUTES, SITE_COOKIE_PATH, SignInLanguage, SignInProtocol, SignInProvider, SignInPurpose, SignInReturnError, SignInSlot, SignInWord, SiteAuthRoute, SiteProviderRoute, SiteSignInRefusalCode, brokerApiPath, brokerBrowserUrl, brokerCallbackUrl, brokerStartUrl, customerCookieName, emailCodeExpired, emailCodeTriesLeft, hasSiteAudience, isAllowedReturnHost, isBrokerRefusalCode, isEmailCodeShape, isLoopbackHost, isSameOriginPath, isSignInProvider, isSignInPurpose, isSignInReturnError, isSiteSessionClaims, isSiteSignInRefusalCode, normalizeEmailCode, normalizeHost, normalizeSignInEmail, providerServes, readSignInReturn, safeNextPath, signInLanguage, signInRefusal, signInRefusalOf, signInStateCookieName, signInWord, siteAuthPath, siteProviderPath, siteProviderReturnUrl, siteSignInCodeOf, withSignInError, withSignInHandoff };
364
- export type { ReturnHostOptions, SignInLabel, SignInProviderSpec, SignInRedeemAnswer, SignInRedeemRequest, SignInRefusal, SignInReturn, SignInTicketAnswer, SignInTicketRequest, SiteCodeRequest, SiteCodeVerifyRequest, SiteCustomer, SiteMeAnswer, SiteProviderStartAnswer, SiteProviderStartRequest, SiteSessionClaims };
539
+ export { ACCOUNT_ORDERS_SEGMENT, ACCOUNT_PATH, BROKER_HOST, BROKER_ORIGIN, BROKER_REFUSAL_STATUS, BROKER_TICKET_PARAM, BrokerApiRoute, BrokerBrowserRoute, BrokerRefusalCode, CUSTOMER_COOKIE_PREFIX, CUSTOMER_SLOT, DEFAULT_SITE_SIGN_IN_SETTINGS, EMAIL_CODE_LENGTH, EMAIL_CODE_MAX_TRIES, EMAIL_CODE_PROVIDER, EMAIL_CODE_TTL_MINUTES, EMAIL_CODE_TTL_MS, HOST_ONLY_COOKIE_PREFIX, NEXT_PATH_MAX_LENGTH, NO_SITE_AUTH_TRANSPORT, SAMPLE_CUSTOMER, SIGN_IN_BINDING_PARAM, SIGN_IN_ERROR_PARAM, SIGN_IN_HANDOFF_PARAM, SIGN_IN_HANDOFF_TTL_SECONDS, SIGN_IN_NEXT_PARAM, SIGN_IN_PROVIDERS, SIGN_IN_PROVIDERS_CACHE_SECONDS, SIGN_IN_PROVIDER_BRANDS, SIGN_IN_PROVIDER_SPECS, SIGN_IN_REFUSALS, SIGN_IN_STATE_COOKIE_PREFIX, SIGN_IN_STATE_MAX_AGE_SECONDS, SIGN_IN_TICKET_TTL_SECONDS, SIGN_IN_VIA_PARAM, SIGN_IN_WORDS, SIMULATED_SIGN_IN_CODE, SITE_AUDIENCE, SITE_AUTH_ROUTES, SITE_COOKIE_PATH, SITE_SIGN_IN_METHODS, SITE_SIGN_IN_SETTINGS_TYPE, SignInLanguage, SignInProtocol, SignInProvider, SignInPurpose, SignInReturnError, SignInSlot, SignInWord, SiteAuthError, SiteAuthRoute, SiteProviderRoute, SiteSignInRefusalCode, accountHref, accountOrderHref, brokerApiPath, brokerBrowserUrl, brokerCallbackUrl, brokerStartUrl, customerCookieName, customerDisplayName, customerInitial, customerSlotOf, emailCodeExpired, emailCodeTriesLeft, hasSiteAudience, hostOnlyCookieName, isAllowedReturnHost, isBrokerRefusalCode, isEmailCodeShape, isLoopbackHost, isSameOriginPath, isSignInProvider, isSignInPurpose, isSignInReturnError, isSiteSessionClaims, isSiteSignInMethod, isSiteSignInRefusalCode, normalizeEmailCode, normalizeHost, normalizeSignInEmail, normalizeSiteSignInSettings, providerServes, providersOn, providersServing, readSignInReturn, safeNextPath, signInLanguage, signInProviderMarkUri, signInProviderName, signInRefusal, signInRefusalOf, signInStateCookieName, signInWord, simulatedSiteAuthTransport, siteAuthErrorCode, siteAuthPath, siteMyOrderPath, siteOffersProvider, siteProviderPath, siteProviderReturnUrl, siteSignInCodeOf, siteSignInMethods, siteSignInMethodsOf, siteSignInProviders, siteSignInReturnRefusal, withSignInError, withSignInHandoff };
540
+ export type { CustomerSlot, EmailCodeProvider, ReturnHostOptions, SignInLabel, SignInProviderBrand, SignInProviderSpec, SignInProvidersAnswer, SignInRedeemAnswer, SignInRedeemRequest, SignInRefusal, SignInReturn, SignInTicketAnswer, SignInTicketRequest, SimulatedSiteAuthTransport, SiteAuthTransport, SiteCodeRequest, SiteCodeVerifyRequest, SiteCustomer, SiteMeAnswer, SiteProviderStartAnswer, SiteProviderStartRequest, SiteSessionClaims, SiteSignInMethod, SiteSignInMethodsAnswer, SiteSignInReturnRefusal, SiteSignInSettings };
package/index.d.ts CHANGED
@@ -3583,17 +3583,6 @@ declare function isContextAction(action: ContextActionLike | null | undefined):
3583
3583
  */
3584
3584
  declare function contextActionEffect(action: ContextActionLike | null | undefined, pass?: 'forward' | 'reverse'): ContextActionEffect | null;
3585
3585
 
3586
- /**
3587
- * Which slot keys are actually IN USE on a page — derived from the layout tree itself.
3588
- *
3589
- * A slot only matters at runtime if something writes it (a `setContext`/`clearContext` action) or
3590
- * reads it (a binding whose `source` names it). Deriving the set from the tree means the runtime
3591
- * works without waiting on the page model: a DECLARED `IoxContextSlot` adds typing for the bind
3592
- * picker and a `default`, but is not required for the channel to function.
3593
- *
3594
- * Union of declared + in-use, so a declared-but-unused slot still seeds its default, and a slot used
3595
- * by a symbol dropped onto a page that never declared it still works (it just has no default).
3596
- */
3597
3586
  declare function collectContextSlotKeys(nodes: readonly unknown[] | undefined,
3598
3587
  /** Declared VARIABLES — page resources of `type: 'variable'`, or legacy slot declarations. */
3599
3588
  declared?: readonly (IoxContextSlot | {
@@ -4010,7 +3999,6 @@ declare class StringFormRuntime {
4010
3999
  private valueOf;
4011
4000
  /** Every field's error, aria-invalid, describedby and invalid class — as `IoxFieldComponent` renders them. */
4012
4001
  private render;
4013
- private renderError;
4014
4002
  private announce;
4015
4003
  /** Focus the first field that failed and shake it once (premium N2 — the ONE `shakeElement`). */
4016
4004
  private focusFirstInvalid;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vectoriox/iox-ui",
3
- "version": "5.99.0",
3
+ "version": "5.101.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=20.0.0",
6
6
  "@angular/core": ">=20.0.0",
@@ -11,7 +11,7 @@ export type ActionKind = 'animated' | 'instant' | 'server';
11
11
 
12
12
  /** Picker grouping. Flat lists die at ~10 entries; the group is data, never a second list. */
13
13
  export type ActionGroup =
14
- | 'motion' | 'visibility' | 'navigate' | 'dialog' | 'popover' | 'notice' | 'item' | 'form' | 'data' | 'consent' | 'shop' | 'service';
14
+ | 'motion' | 'visibility' | 'navigate' | 'dialog' | 'popover' | 'notice' | 'item' | 'form' | 'data' | 'consent' | 'shop' | 'account' | 'service';
15
15
 
16
16
  /**
17
17
  * What a step does inside the live builder canvas (the canvas RUNS interactions):
@@ -17,8 +17,8 @@ const OPEN_TARGET_ROLES = [...ITEM_TARGET_ROLES, TabsRole.Trigger, SegmentedRole
17
17
  * Shipped rows (motion/visibility/context/swiper) are listed so the catalog is the WHOLE truth;
18
18
  * their `kind`/`builderBehaviour` make the long-standing implicit rules explicit — the canvas is
19
19
  * a live runtime (feedback_builder_live_runtime), navigate must SIMULATE, services are INERT.
20
- * `signIn`/`startCheckout` ship greyed with the honest reason (D-A5): no visitor identity, no
21
- * payments — a subsystem and a product, not dropdown entries.
20
+ * Selling (E1c) and a buyer's account (E3a) went live once their subsystems existed; until then they shipped greyed with
21
+ * the honest reason (D-A5).
22
22
  */
23
23
  /** The trigger whose actions the scroll plays (premium M6, N7). */
24
24
  export const SCROLL_PROGRESS_TRIGGER = 'scrollProgress';
@@ -186,11 +186,21 @@ export const ELEMENT_ACTION_DESCRIPTORS: readonly ActionDescriptor[] = Object.fr
186
186
  { type: 'startCheckout', labelKey: 'builder.actions.startCheckout', kind: 'server', group: 'shop', builderBehaviour: 'inert',
187
187
  entitlement: SHOP_ENTITLEMENT },
188
188
 
189
- // ── Services (D-A5: visible, greyed, with the reason — never hidden, never live) ──
190
- { type: 'signIn', labelKey: 'builder.actions.signIn', kind: 'server', group: 'service', builderBehaviour: 'inert',
191
- planned: true, entitlement: 'visitorIdentity' },
189
+ // ── Account (commerce E3a, C-D5/C-D6): a buyer signs in by an email code or Google and out again, through the
190
+ // host's site-auth transport (composite-core `AccountRuntime`, the part owns no HTTP). The canvas SIMULATES both:
191
+ // Sign in opens the page's sign-in dialog over a simulated transport (a sample customer, no session — the ADMIN's
192
+ // browser is never a buyer), Sign out returns the parts to signed out. Behind the ONE plan feature `features.shop`
193
+ // ("Shop and customer sign-in", C-D18). No target: the runtime opens the page's ONE sign-in dialog.
194
+ { type: 'signIn', labelKey: 'builder.actions.signIn', kind: 'server', group: 'account', builderBehaviour: 'simulate',
195
+ entitlement: SHOP_ENTITLEMENT },
196
+ { type: 'signOut', labelKey: 'builder.actions.signOut', kind: 'server', group: 'account', builderBehaviour: 'simulate',
197
+ entitlement: SHOP_ENTITLEMENT },
192
198
  ]);
193
199
 
200
+ /** The account actions' dispatch set (commerce E3a) — the engines branch on it beside SHOP and hand the action to
201
+ * composite-core `runAccountAction`. */
202
+ export const ACCOUNT_ACTION_TYPES: ReadonlySet<string> = new Set(['signIn', 'signOut']);
203
+
194
204
  /** The shop actions' dispatch set (commerce E1c) — the engines branch on it beside DIALOG / BEHAVIOUR and hand the action
195
205
  * to composite-core `runShopAction`, which reads the product, the variant and the quantity around the element. */
196
206
  export const SHOP_ACTION_TYPES: ReadonlySet<string> = new Set(['addToCart', 'startCheckout']);
@@ -233,7 +243,7 @@ export const CONSENT_ACTION_TYPES: ReadonlySet<string> =
233
243
 
234
244
  /** Picker order — most-used groups first, services last (they are the shop window, not the shop). */
235
245
  export const ELEMENT_ACTION_GROUP_ORDER: readonly string[] =
236
- Object.freeze(['motion', 'visibility', 'navigate', 'dialog', 'popover', 'notice', 'item', 'form', 'data', 'consent', 'shop', 'service']);
246
+ Object.freeze(['motion', 'visibility', 'navigate', 'dialog', 'popover', 'notice', 'item', 'form', 'data', 'consent', 'shop', 'account', 'service']);
237
247
 
238
248
  /** True when `d` is offered under `trigger` (its `triggers`, else every trigger) — the picker's rule and the runtimes'. */
239
249
  export function actionOfferedUnder(d: Pick<ActionDescriptor, 'triggers'>, trigger: string | null | undefined): boolean {
@@ -326,6 +326,8 @@ export enum SiteRefusalCode {
326
326
  Busy = 'busy',
327
327
  UnknownOrder = 'unknown-order',
328
328
  UnknownSite = 'unknown-site',
329
+ /** The owner blocked this buyer (commerce E3c): no checkout, no order. */
330
+ CustomerBlocked = 'customer-blocked',
329
331
  Network = 'network',
330
332
  }
331
333
 
@@ -371,6 +373,7 @@ export const SITE_REFUSALS: Readonly<Record<SiteRefusalCode, RefusalRule>> = Obj
371
373
  [SiteRefusalCode.Busy]: { slot: CheckoutSlot.Page, label: TRY_AGAIN },
372
374
  [SiteRefusalCode.UnknownOrder]: { slot: CheckoutSlot.Page, label: { en: 'We could not find this order.', he: 'לא מצאנו את ההזמנה הזו.' } },
373
375
  [SiteRefusalCode.UnknownSite]: { slot: CheckoutSlot.Page, label: CLOSED },
376
+ [SiteRefusalCode.CustomerBlocked]: { slot: CheckoutSlot.Page, label: { en: 'This account cannot place orders here. Contact the business.', he: 'החשבון הזה לא יכול לבצע הזמנות כאן. פנו לעסק.' } },
374
377
  [SiteRefusalCode.Network]: { slot: CheckoutSlot.Page, label: { en: 'We could not reach the shop. Try again.', he: 'לא הצלחנו להגיע לחנות. נסו שוב.' } },
375
378
  });
376
379