@plitzi/sdk-authoring 0.39.11 → 0.39.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
- import { $ as readDevToolsInPage, $a as dropdown, $i as onDialogAccept, $n as css, $o as closest, $r as SET_STATE_TYPES, $t as journeyStartWarnings, A as pressShortcut, Aa as resetForm, Ai as whenSucceeded, An as pressFailure, Ao as defaultLabel, As as i$2, At as actionToSource, B as alignPictures, Ba as d, Bi as carouselPlay, Bn as grid, Bo as boundAttribute, Br as instanceSelectorFor, Bs as n$2, Bt as suggestClassOverrides, C as unquoted, Ca as onSubmit, Ci as webHook, Cn as HYDRATION_MS, Co as tabContainerItem, Cs as r$3, Ct as searchWords, D as readSpaceTests, Da as openModal, Di as named, Dn as hoverElement, Do as component, Dt as specFromSpace, E as e2eStepProblems, Ea as openDialog, Ei as flowStepIds, En as fieldsOf, Eo as video, Es as t$1, Et as specToSource, F as compareTexts, Fa as toggleElement, Fi as announceOn, Fn as STATE_PATH_PARAMS, Fo as GLOBAL_SOURCES, Fs as c, Ft as transformerCatalog, G as loadImages, Ga as button, Gi as declaredTrigger, Gn as isClassModifier, Go as scopedHint, Gr as flagSpecOf, Gs as i$3, Gt as familyOf, H as diffPictures, Ha as apiContainer, Hi as closeDialog, Hn as className, Ho as hasVisibilityBinding, Hr as pathForSlug, Hs as s$1, Ht as PAGE_SPEC_FIELDS, I as pageTexts, Ia as updateElement, Ii as cancelApi, In as tokens, Io as activeOn, Is as i$1, It as assertSnippetValid, J as inspectPage, Ja as channel, Ji as onApiError, Jn as modifierClassName, Jo as visibleWhen, Jr as taskAction, Jt as withNotificationsCss, K as unrollPage, Ka as carousel, Ki as focus, Kn as isClassRef, Ko as toBindingSpecs, Kr as authoringCodesTable, Ks as o$1, Kt as pageFamily, L as PAGE_DECORATION_LIMIT, La as elementsFromManifest, Li as carouselGoTo, Ln as createTw, Lo as activeWhen, Lr as digest, Ls as o, Lt as assertSpaceValid, M as inspectRenders, Ma as scrollIntoView, Mi as BUILTIN_GLOBAL_CALLBACKS, Mn as settle, Mo as element, Ms as r$1, Mt as BUILTIN_TRANSFORMERS, N as summariseRenders, Na as scrollTo, Ni as applyBuiltinCallback, Nn as targetId, No as inferredLinkMode, Ns as t$2, Nt as getTransformer, O as singlePageSpace, Oa as publishOn, Oi as when, On as locateField, Oo as declaresAttribute, Os as elementAttributeNames, Ot as compareSpaces, P as PAGE_TEXT_LIMIT, Pa as setFieldValue, Pi as getGlobalCallback, Pn as targetOf, Po as COMPONENT_SOURCES, Ps as a, Pt as suggestTransformer, Q as readDevTools, Qa as dialogContainer, Qi as onClick, Qn as STYLE_STATES, Qo as twig, Qr as getUtility, Qt as e2eTestProblems, R as compareDecorations, Ra as pluginTypesOf, Ri as carouselNext, Rn as tw, Ro as authorBinding, Rr as slugify, Rs as s, Rt as suggestSpace, S as stepLines, Sa as onScroll, Si as twigTemplate, Sn as FIELD, So as tabContainerHeader, Ss as n, St as searchScore, T as unit, Ta as onView, Ti as authorFlows, Tn as endlesslyMovedInPage, To as themeToggle, Ts as r, Tt as SPACE_FIELDS, U as pageRegions, Ua as blockHtml, Ui as closeModal, Un as classNames, Uo as hiddenWhen, Ur as selectorFor, Us as t, Ut as SpaceRefusedError, V as comparePictures, Va as i, Vi as carouselPrevious, Vn as row, Vo as groupBindings, Vr as locate, Vs as r$4, Vt as unusedDeclarations, W as profilePictures, Wa as blockJsx, Wi as declaredCallback, Wn as classRefs, Wo as resolveSource, Wr as flagGateOf, Ws as a$2, Wt as refusalOf, X as onScreenIfChosen, Xa as container, Xi as onBlur, Xn as styles, Xo as actionSource, Xr as BUILTIN_UTILITIES, Xt as FIXABLE_CODES, Y as onScreen, Ya as chart, Yi as onApiSuccess, Yn as splitClassList, Yo as withVisibility, Yt as navOf, Z as failedFlowText, Za as custom, Zi as onChange, Zn as BREAKPOINTS, Zo as source, Zr as applyUtility, Zt as unitTestProblems, _ as e2eStepText, _a as onMouseEnter, _i as runServerActionOrNotify, _n as dragElement, _o as reference, _r as suggestCssProperty, _s as elementTriggers, _t as explain, a as locateClasses, aa as onFlowProgress, ai as authRefreshDetails, an as playE2eStep, ao as formControl, ar as expandShorthand, as as isSuggestionCode, at as catalogTemplateFiles, b as parseE2eStep, ba as onPageLoad, bi as toggleInState, bn as shownCopy, bo as tabContainer, bs as typeTriggerDefinitions, bt as explainSearch, c as validateSnippet, ca as onInterval, ci as copyToClipboard, cn as unitReportText, co as link, cr as shorthandLonghands, cs as elementCallbacks, ct as space$1, d as e2eResultText, da as onKey, di as hostAction, dn as EDGES, do as markdown, dr as cssNumberValue, ds as elementLeafTypes, dt as importSlug, ea as onDialogClose, ei as addNotification, en as testAccountWarnings, eo as dropdownPopup, er as isRuleSetSpec, es as scope, et as dataIssues, f as journeyAccount, fa as onLeave, fi as invalidateQueries, fn as parseRelation, fo as modalContainer, fr as cssProperties, fs as elementMarks, ft as importedFiles, g as durationMs, ga as onModalOpen, gi as runServerAction, gn as answered, go as plitziSdk, gr as replacedCssProperty, gs as elementSourceTypes, gt as GLOBAL_CALLBACK_BUILDERS, h as MAX_WAIT_FOR_MS, ha as onModalClose, hi as removeState, hn as sidePx, ho as paragraph, hr as isCustomProperty, hs as elementSlots, ht as EXPLAIN_KINDS, i as lintSpace, ia as onFlowError, ii as authLogoutEverywhere, in as isExpectation, io as form, ir as cssShorthands, is as authoringCodeEntry, it as blankTemplateFiles, j as shortcutKey, ja as scrollBy, ji as whileRunning, jn as pressOnce, jo as defineElement, js as n$3, jt as withNamedIds, k as withElement, ka as reloadApi, ki as whenFailed, kn as locateTarget, ko as defaultAttributes, ks as e, kt as actionSpecFromEntry, l as validateSpace, la as onInvalid, li as cycleState, ln as resolveElement, lo as list, lr as ambiguousShorthands, ls as elementCatalog, lt as space, m as E2E_STEP_USAGE, ma as onMessage, mi as navigate, mn as relationHolds, mo as pagination, mr as isCssProperty, ms as elementPublishes, mt as BUILDER_NAMES, n as authorSpace, na as onDialogReject, ni as authLogin, nn as pageAt, no as focusGroup, nr as toBlocks, ns as AUTHORING_ONLY_CODES, nt as CATALOG_TEMPLATE_IDENTITY, o as locateElements, oa as onFocus, oi as cancelServerAction, on as runUnitTest, oo as heading, or as expandShorthandPatch, os as elementAncestorTypes, ot as emptyTemplateFiles, p as runE2eTest, pa as onLoad, pi as moveState, pn as relationElements, po as nodeHtml, pr as cssPropertyName, ps as elementPartTypes, pt as importProbe, q as inspectDocument, qa as carouselTrack, qi as on, qn as isStyleDeclaration, qo as variantFrom, qr as defineAction, qt as notificationsCss, r as fixSpace, ra as onFlowEnd, ri as authLogout, rn as bridge, ro as fontAwesome, rr as toResponsive, rs as AuthoringError, rt as blankSpace, s as planFixes, sa as onHover, si as clearState, sn as runUnitTests, so as image, sr as expandShorthandTraced, ss as elementAttributeValues, st as toPortableSource, t as authorSnippet, ta as onDialogOpen, ti as appendState, tn as audienceAt, to as embed, tr as sameBlocks, ts as AUTHORING_CODES, tt as answerAction, u as compactSvg, ua as onJoin, ui as delay, un as openPage, uo as listItem, ur as fontUnread, us as elementDefaultAttributes, ut as darkScheme, v as isE2eStepWord, va as onMouseLeave, vi as setState, vn as giveValue, vo as richText, vs as elementTypeNames, vt as explainKindOf, w as e2e, wa as onThemeChange, wi as authorFlow, wn as awaitHydration, wo as text, ws as n$1, wt as ELEMENT_FIELDS, x as parseE2eSteps, xa as onPointerDown, xi as toggleState, xn as valueFieldIn, xo as tabContainerBody, xt as explanationText, y as leadingTarget, ya as onPageChange, yi as stepState, yn as hiddenAtWidth, yo as svg, ys as typeCallbackDefinitions, yt as explainList, z as pageDecorations, za as withPluginCatalogs, zi as carouselPause, zn as column, zo as bindTemplate, zr as buildHandles, zs as c$1, zt as withoutQuieted } from "./index-src.js";
1
+ import { $ as readDevTools, $a as carouselTrack, $i as onBlur, $n as css, $o as boundAttribute, $r as SET_STATE_TYPES, $s as u, $t as journeyStartWarnings, A as withElement, Aa as openDialog, Ai as when, An as pressFailure, Ao as tabContainer, As as elementTriggers, At as actionSpecFromEntry, B as pageDecorations, Ba as updateElement, Bi as carouselNext, Bn as grid, Bo as component, Br as instanceSelectorFor, Bt as suggestClassOverrides, C as stepLines, Ca as onPageChange, Ci as toggleState, Cn as HYDRATION_MS, Co as pagination, Cs as elementDefaultAttributes, Ct as searchScore, D as e2eStepProblems, Da as onSubmit, Di as authorFlows, Dn as hoverElement, Do as richText, Ds as elementPublishes, Dt as specToSource, E as unit, Ea as onScroll, Ei as authorFlow, En as fieldsOf, Eo as reference, Es as elementPartTypes, Et as SPACE_FIELDS, F as PAGE_TEXT_LIMIT, Fa as scrollBy, Fi as applyBuiltinCallback, Fn as STATE_PATH_PARAMS, Fo as themeToggle, Fs as n, Ft as suggestTransformer, G as profilePictures, Ga as i, Gi as closeModal, Gn as isClassModifier, Go as element, Gr as flagSpecOf, Gs as r$1, Gt as familyOf, H as comparePictures, Ha as pluginTypesOf, Hi as carouselPlay, Hn as className, Ho as defaultAttributes, Hr as pathForSlug, Hs as e, Ht as PAGE_SPEC_FIELDS, I as compareTexts, Ia as scrollIntoView, Ii as getGlobalCallback, In as tokens, Io as timeWindow, Is as r$3, It as transformerCatalog, J as inspectDocument, Ja as avatar, Ji as focus, Jn as modifierClassName, Jo as GLOBAL_SOURCES, Jr as taskAction, Js as c, Jt as withNotificationsCss, K as loadImages, Ka as account, Ki as declaredCallback, Kn as isClassRef, Ko as inferredLinkMode, Kr as authoringCodesTable, Ks as t$2, Kt as pageFamily, L as pageTexts, La as scrollTo, Li as announceOn, Ln as createTw, Lo as variantItem, Lr as digest, Ls as n$1, Lt as assertSnippetValid, M as shortcutKey, Ma as publishOn, Mi as whenSucceeded, Mn as settle, Mo as tabContainerHeader, Ms as typeCallbackDefinitions, Mt as withNamedIds, N as inspectRenders, Na as reloadApi, Ni as whileRunning, Nn as targetId, No as tabContainerItem, Ns as typeTriggerDefinitions, Nt as BUILTIN_TRANSFORMERS, O as readSpaceTests, Oa as onThemeChange, Oi as flowStepIds, On as locateField, Oo as signInForm, Os as elementSlots, Ot as specFromSpace, P as summariseRenders, Pa as resetForm, Pi as BUILTIN_GLOBAL_CALLBACKS, Pn as targetOf, Po as text, Pt as getTransformer, Q as failedFlowText, Qa as carousel, Qi as onApiSuccess, Qn as STYLE_STATES, Qo as bindTemplate, Qr as getUtility, Qs as s, Qt as e2eTestProblems, R as PAGE_DECORATION_LIMIT, Ra as setFieldValue, Ri as cancelApi, Rn as tw, Ro as variants, Rr as slugify, Rs as r, Rt as assertSpaceValid, S as parseE2eSteps, Sa as onMouseLeave, Si as toggleInState, Sn as FIELD, So as nodeHtml, Ss as elementCatalog, St as explanationText, T as e2e, Ta as onPointerDown, Ti as webHook, Tn as endlesslyMovedInPage, To as plitziSdk, Ts as elementMarks, Tt as ELEMENT_FIELDS, U as diffPictures, Ua as withPluginCatalogs, Ui as carouselPrevious, Un as classNames, Uo as defaultLabel, Ur as selectorFor, Us as i$2, Ut as SpaceRefusedError, V as alignPictures, Va as elementsFromManifest, Vi as carouselPause, Vn as row, Vo as declaresAttribute, Vr as locate, Vs as elementAttributeNames, Vt as unusedDeclarations, W as pageRegions, Wa as d, Wi as closeDialog, Wn as classRefs, Wo as defineElement, Wr as flagGateOf, Ws as n$3, Wt as refusalOf, X as onScreen, Xa as blockJsx, Xi as on, Xn as styles, Xo as activeWhen, Xr as BUILTIN_UTILITIES, Xs as l, Xt as FIXABLE_CODES, Y as inspectPage, Ya as blockHtml, Yi as fullscreen, Yn as splitClassList, Yo as activeOn, Ys as i$1, Yt as navOf, Z as onScreenIfChosen, Za as button, Zi as onApiError, Zn as BREAKPOINTS, Zo as authorBinding, Zr as applyUtility, Zs as o, Zt as unitTestProblems, _ as durationMs, _a as onLoad, _i as runServerAction, _n as dragElement, _o as link, _r as suggestCssProperty, _s as authoringCodeEntry, _t as GLOBAL_CALLBACK_BUILDERS, a as locateClasses, aa as onDialogOpen, ac as a$2, ai as authRefreshDetails, an as playE2eStep, ao as dialogContainer, ar as expandShorthand, as as toBindingSpecs, at as blankTemplateFiles, b as leadingTarget, ba as onModalOpen, bi as share, bn as shownCopy, bo as markdown, bs as elementAttributeValues, bt as explainList, c as suggestSpace, ca as onFlowError, ci as copyToClipboard, cn as unitReportText, co as dropdown, cr as shorthandLonghands, cs as withVisibility, ct as toPortableSource, d as compactSvg, da as onHover, di as hostAction, dn as EDGES, do as focusGroup, dr as cssNumberValue, ds as twig, dt as darkScheme, ea as onChange, ec as c$1, ei as addNotification, en as testAccountWarnings, eo as channel, er as isRuleSetSpec, es as groupBindings, et as readDevToolsInPage, f as e2eResultText, fa as onInterval, fi as invalidateQueries, fn as parseRelation, fo as fontAwesome, fr as cssProperties, fs as closest, ft as importSlug, g as MAX_WAIT_FOR_MS, ga as onLeave, gi as removeState, gn as answered, go as image, gr as replacedCssProperty, gs as AuthoringError, gt as EXPLAIN_KINDS, h as E2E_STEP_USAGE, ha as onKey, hi as reachGoal, hn as sidePx, ho as heading, hr as isCustomProperty, hs as AUTHORING_ONLY_CODES, ht as BUILDER_NAMES, i as lintSpace, ia as onDialogClose, ic as t, ii as authLogoutEverywhere, in as isExpectation, io as custom, ir as cssShorthands, is as scopedHint, it as blankSpace, j as pressShortcut, ja as openModal, ji as whenFailed, jn as pressOnce, jo as tabContainerBody, js as elementTypeNames, jt as actionToSource, k as singlePageSpace, ka as onView, ki as named, kn as locateTarget, ko as svg, ks as elementSourceTypes, kt as compareSpaces, l as validateSnippet, la as onFlowProgress, li as cycleState, ln as resolveElement, lo as dropdownPopup, lr as ambiguousShorthands, ls as actionSource, lt as space$1, m as runE2eTest, ma as onJoin, mi as navigate, mn as relationHolds, mo as formControl, mr as isCssProperty, ms as AUTHORING_CODES, mt as importProbe, n as authorSpace, na as onCountdownEnd, nc as r$4, ni as authLogin, nn as pageAt, no as container, nr as toBlocks, ns as hiddenWhen, nt as answerAction, o as locateElements, oa as onDialogReject, oc as i$3, oi as cancelServerAction, on as runUnitTest, oo as disclosure, or as expandShorthandPatch, os as variantFrom, ot as catalogTemplateFiles, p as journeyAccount, pa as onInvalid, pi as moveState, pn as relationElements, po as form, pr as cssPropertyName, ps as scope, pt as importedFiles, q as unrollPage, qa as apiContainer, qi as declaredTrigger, qn as isStyleDeclaration, qo as COMPONENT_SOURCES, qr as defineAction, qs as a, qt as notificationsCss, r as fixSpace, ra as onDialogAccept, rc as s$1, ri as authLogout, rn as bridge, ro as countdown, rr as toResponsive, rs as resolveSource, rt as CATALOG_TEMPLATE_IDENTITY, s as planFixes, sa as onFlowEnd, sc as o$1, si as clearState, sn as runUnitTests, so as disclosureSummary, sr as expandShorthandTraced, ss as visibleWhen, st as emptyTemplateFiles, t as authorSnippet, ta as onClick, tc as n$2, ti as appendState, tn as audienceAt, to as chart, tr as sameBlocks, ts as hasVisibilityBinding, tt as dataIssues, u as validateSpace, ua as onFocus, ui as delay, un as openPage, uo as embed, ur as fontUnread, us as source, ut as space, v as e2eStepText, va as onMessage, vi as runServerActionOrNotify, vn as giveValue, vo as list, vs as isSuggestionCode, vt as explain, w as unquoted, wa as onPageLoad, wi as twigTemplate, wn as awaitHydration, wo as paragraph, ws as elementLeafTypes, wt as searchWords, x as parseE2eStep, xa as onMouseEnter, xi as stepState, xn as valueFieldIn, xo as modalContainer, xs as elementCallbacks, xt as explainSearch, y as isE2eStepWord, ya as onModalClose, yi as setState, yn as hiddenAtWidth, yo as listItem, ys as elementAncestorTypes, yt as explainKindOf, z as compareDecorations, za as toggleElement, zi as carouselGoTo, zn as column, zo as video, zr as buildHandles, zs as t$1, zt as withoutQuieted } from "./index-src.js";
2
2
  import { n as e$1, r as r$2, t as a$1 } from "./index-declare.js";
3
- export { AUTHORING_CODES, AUTHORING_ONLY_CODES, AuthoringError, BREAKPOINTS, BUILDER_NAMES, o as BUILTIN_ELEMENT_CALLBACKS, BUILTIN_GLOBAL_CALLBACKS, t as BUILTIN_PARAM_TYPES, BUILTIN_TRANSFORMERS, BUILTIN_UTILITIES, CATALOG_TEMPLATE_IDENTITY, COMPONENT_SOURCES, n as DOCUMENT_SCROLLS, E2E_STEP_USAGE, EDGES, ELEMENT_FIELDS, EXPLAIN_KINDS, FIELD, FIXABLE_CODES, a as FOCUS_CALLBACKS, GLOBAL_CALLBACK_BUILDERS, GLOBAL_SOURCES, HYDRATION_MS, MAX_WAIT_FOR_MS, t$1 as MOTION_ENTERS, r as MOTION_LOOPS, n$1 as MOTION_TRIGGERS, i as NOTIFICATIONS_FIELDS, t$2 as NOTIFICATION_APPEARANCES, r$1 as NOTIFICATION_DEFAULTS, e as NOTIFICATION_PLACEMENTS, PAGE_DECORATION_LIMIT, PAGE_SPEC_FIELDS, PAGE_TEXT_LIMIT, i$1 as SCROLL_CALLBACKS, SET_STATE_TYPES, SPACE_FIELDS, STATE_PATH_PARAMS, STYLE_STATES, SpaceRefusedError, actionSource, actionSpecFromEntry, actionToSource, activeOn, activeWhen, addNotification, alignPictures, ambiguousShorthands, announceOn, answerAction, answered, apiContainer, appendState, applyBuiltinCallback, c as applyElementCallback, applyUtility, assertSnippetValid, assertSpaceValid, audienceAt, authLogin, authLogout, authLogoutEverywhere, authRefreshDetails, authorBinding, authorFlow, authorFlows, authorSnippet, authorSpace, authoringCodeEntry, authoringCodesTable, awaitHydration, bindTemplate, blankSpace, space as blankSpaceSpec, blankTemplateFiles, blockHtml, blockJsx, boundAttribute, bridge, buildHandles, button, cancelApi, cancelServerAction, carousel, carouselGoTo, carouselNext, carouselPause, carouselPlay, carouselPrevious, carouselTrack, catalogTemplateFiles, channel, chart, className, classNames, classRefs, clearState, closeDialog, closeModal, closest, column, compactSvg, compareDecorations, comparePictures, compareSpaces, compareTexts, component, container, copyToClipboard, createTw, css, cssNumberValue, cssProperties, cssPropertyName, cssShorthands, custom, cycleState, darkScheme, dataIssues, declaredCallback, declaredTrigger, declaresAttribute, defaultAttributes, defaultLabel, defineAction, defineElement, a$1 as definePlugin, delay, dialogContainer, diffPictures, digest, dragElement, dropdown, dropdownPopup, durationMs, e2e, e2eResultText, e2eStepProblems, e2eStepText, e2eTestProblems, element, elementAncestorTypes, elementAttributeNames, elementAttributeValues, elementCallbacks, elementCatalog, r$2 as elementDeclaration, elementDefaultAttributes, elementLeafTypes, elementMarks, elementPartTypes, elementPublishes, elementSlots, elementSourceTypes, elementTriggers, elementTypeNames, elementsFromManifest, embed, space$1 as emptySpaceSpec, emptyTemplateFiles, endlesslyMovedInPage, expandShorthand, expandShorthandPatch, expandShorthandTraced, explain, explainKindOf, explainList, explainSearch, explanationText, failedFlowText, familyOf, fieldsOf, fixSpace, flagGateOf, flagSpecOf, flowStepIds, focus, focusGroup, fontAwesome, fontUnread, form, formControl, s as getElementCallback, getGlobalCallback, getTransformer, getUtility, giveValue, grid, groupBindings, hasVisibilityBinding, heading, hiddenAtWidth, n$2 as hiddenParams, hiddenWhen, hostAction, hoverElement, image, importProbe, importSlug, importedFiles, inferredLinkMode, inspectDocument, inspectPage, inspectRenders, instanceSelectorFor, s$1 as invalidParams, invalidateQueries, isClassModifier, isClassRef, isCssProperty, isCustomProperty, r$3 as isDocumentScroll, isE2eStepWord, isExpectation, isRuleSetSpec, isStyleDeclaration, isSuggestionCode, journeyAccount, journeyStartWarnings, leadingTarget, link, lintSpace, list, listItem, loadImages, locate, locateClasses, locateElements, locateField, locateTarget, markdown, r$4 as missingRequiredParams, modalContainer, modifierClassName, moveState, named, navOf, navigate, nodeHtml, notificationsCss, on, onApiError, onApiSuccess, onBlur, onChange, onClick, onDialogAccept, onDialogClose, onDialogOpen, onDialogReject, onFlowEnd, onFlowError, onFlowProgress, onFocus, onHover, onInterval, onInvalid, onJoin, onKey, onLeave, onLoad, onMessage, onModalClose, onModalOpen, onMouseEnter, onMouseLeave, onPageChange, onPageLoad, onPointerDown, onScreen, onScreenIfChosen, onScroll, onSubmit, onThemeChange, onView, openDialog, openModal, openPage, pageAt, pageDecorations, pageFamily, pageRegions, pageTexts, pagination, paragraph, parseE2eStep, parseE2eSteps, parseRelation, pathForSlug, planFixes, playE2eStep, plitziSdk, pluginTypesOf, pressFailure, pressOnce, pressShortcut, profilePictures, publishOn, readDevTools, readDevToolsInPage, n$3 as readNotificationOptions, readSpaceTests, c$1 as reconcileParams, reference, refusalOf, relationElements, relationHolds, reloadApi, removeState, replacedCssProperty, resetForm, resolveElement, resolveSource, richText, row, runE2eTest, runServerAction, runServerActionOrNotify, runUnitTest, runUnitTests, sameBlocks, scope, scopedHint, scrollBy, scrollIntoView, scrollTo, searchScore, searchWords, selectorFor, setFieldValue, setState, settle, shortcutKey, shorthandLonghands, shownCopy, sidePx, singlePageSpace, slugify, source, i$2 as spaceCallbacks, specFromSpace, specToSource, splitClassList, d as splitNotificationsCss, stepLines, stepState, styles, suggestClassOverrides, suggestCssProperty, suggestSpace, suggestTransformer, summariseRenders, svg, tabContainer, tabContainerBody, tabContainerHeader, tabContainerItem, targetId, targetOf, taskAction, testAccountWarnings, text, themeToggle, toBindingSpecs, toBlocks, i$3 as toBuilderParams, a$2 as toInteractionCallback, o$1 as toInteractionCallbacks, toPortableSource, toResponsive, toggleElement, toggleInState, toggleState, tokens, transformerCatalog, tw, twig, twigTemplate, typeCallbackDefinitions, typeTriggerDefinitions, unit, unitReportText, unitTestProblems, unquoted, unrollPage, unusedDeclarations, updateElement, validateSnippet, validateSpace, valueFieldIn, e$1 as valuesOf, variantFrom, video, visibleWhen, webHook, when, whenFailed, whenSucceeded, whileRunning, withElement, withNamedIds, withNotificationsCss, withPluginCatalogs, withVisibility, withoutQuieted };
3
+ export { AUTHORING_CODES, AUTHORING_ONLY_CODES, AuthoringError, BREAKPOINTS, BUILDER_NAMES, c as BUILTIN_ELEMENT_CALLBACKS, BUILTIN_GLOBAL_CALLBACKS, t as BUILTIN_PARAM_TYPES, BUILTIN_TRANSFORMERS, BUILTIN_UTILITIES, CATALOG_TEMPLATE_IDENTITY, COMPONENT_SOURCES, n as DOCUMENT_SCROLLS, E2E_STEP_USAGE, EDGES, ELEMENT_FIELDS, EXPLAIN_KINDS, FIELD, FIXABLE_CODES, a as FOCUS_CALLBACKS, s as FULLSCREEN_CALLBACKS, o as FULLSCREEN_MODES, GLOBAL_CALLBACK_BUILDERS, GLOBAL_SOURCES, HYDRATION_MS, MAX_WAIT_FOR_MS, t$1 as MOTION_ENTERS, r as MOTION_LOOPS, n$1 as MOTION_TRIGGERS, i as NOTIFICATIONS_FIELDS, t$2 as NOTIFICATION_APPEARANCES, r$1 as NOTIFICATION_DEFAULTS, e as NOTIFICATION_PLACEMENTS, PAGE_DECORATION_LIMIT, PAGE_SPEC_FIELDS, PAGE_TEXT_LIMIT, i$1 as SCROLL_CALLBACKS, SET_STATE_TYPES, SPACE_FIELDS, STATE_PATH_PARAMS, STYLE_STATES, SpaceRefusedError, account, actionSource, actionSpecFromEntry, actionToSource, activeOn, activeWhen, addNotification, alignPictures, ambiguousShorthands, announceOn, answerAction, answered, apiContainer, appendState, applyBuiltinCallback, u as applyElementCallback, applyUtility, assertSnippetValid, assertSpaceValid, audienceAt, authLogin, authLogout, authLogoutEverywhere, authRefreshDetails, authorBinding, authorFlow, authorFlows, authorSnippet, authorSpace, authoringCodeEntry, authoringCodesTable, avatar, awaitHydration, bindTemplate, blankSpace, space as blankSpaceSpec, blankTemplateFiles, blockHtml, blockJsx, boundAttribute, bridge, buildHandles, button, cancelApi, cancelServerAction, carousel, carouselGoTo, carouselNext, carouselPause, carouselPlay, carouselPrevious, carouselTrack, catalogTemplateFiles, channel, chart, className, classNames, classRefs, clearState, closeDialog, closeModal, closest, column, compactSvg, compareDecorations, comparePictures, compareSpaces, compareTexts, component, container, copyToClipboard, countdown, createTw, css, cssNumberValue, cssProperties, cssPropertyName, cssShorthands, custom, cycleState, darkScheme, dataIssues, declaredCallback, declaredTrigger, declaresAttribute, defaultAttributes, defaultLabel, defineAction, defineElement, a$1 as definePlugin, delay, dialogContainer, diffPictures, digest, disclosure, disclosureSummary, dragElement, dropdown, dropdownPopup, durationMs, e2e, e2eResultText, e2eStepProblems, e2eStepText, e2eTestProblems, element, elementAncestorTypes, elementAttributeNames, elementAttributeValues, elementCallbacks, elementCatalog, r$2 as elementDeclaration, elementDefaultAttributes, elementLeafTypes, elementMarks, elementPartTypes, elementPublishes, elementSlots, elementSourceTypes, elementTriggers, elementTypeNames, elementsFromManifest, embed, space$1 as emptySpaceSpec, emptyTemplateFiles, endlesslyMovedInPage, expandShorthand, expandShorthandPatch, expandShorthandTraced, explain, explainKindOf, explainList, explainSearch, explanationText, failedFlowText, familyOf, fieldsOf, fixSpace, flagGateOf, flagSpecOf, flowStepIds, focus, focusGroup, fontAwesome, fontUnread, form, formControl, fullscreen, l as getElementCallback, getGlobalCallback, getTransformer, getUtility, giveValue, grid, groupBindings, hasVisibilityBinding, heading, hiddenAtWidth, n$2 as hiddenParams, hiddenWhen, hostAction, hoverElement, image, importProbe, importSlug, importedFiles, inferredLinkMode, inspectDocument, inspectPage, inspectRenders, instanceSelectorFor, s$1 as invalidParams, invalidateQueries, isClassModifier, isClassRef, isCssProperty, isCustomProperty, r$3 as isDocumentScroll, isE2eStepWord, isExpectation, isRuleSetSpec, isStyleDeclaration, isSuggestionCode, journeyAccount, journeyStartWarnings, leadingTarget, link, lintSpace, list, listItem, loadImages, locate, locateClasses, locateElements, locateField, locateTarget, markdown, r$4 as missingRequiredParams, modalContainer, modifierClassName, moveState, named, navOf, navigate, nodeHtml, notificationsCss, on, onApiError, onApiSuccess, onBlur, onChange, onClick, onCountdownEnd, onDialogAccept, onDialogClose, onDialogOpen, onDialogReject, onFlowEnd, onFlowError, onFlowProgress, onFocus, onHover, onInterval, onInvalid, onJoin, onKey, onLeave, onLoad, onMessage, onModalClose, onModalOpen, onMouseEnter, onMouseLeave, onPageChange, onPageLoad, onPointerDown, onScreen, onScreenIfChosen, onScroll, onSubmit, onThemeChange, onView, openDialog, openModal, openPage, pageAt, pageDecorations, pageFamily, pageRegions, pageTexts, pagination, paragraph, parseE2eStep, parseE2eSteps, parseRelation, pathForSlug, planFixes, playE2eStep, plitziSdk, pluginTypesOf, pressFailure, pressOnce, pressShortcut, profilePictures, publishOn, reachGoal, readDevTools, readDevToolsInPage, n$3 as readNotificationOptions, readSpaceTests, c$1 as reconcileParams, reference, refusalOf, relationElements, relationHolds, reloadApi, removeState, replacedCssProperty, resetForm, resolveElement, resolveSource, richText, row, runE2eTest, runServerAction, runServerActionOrNotify, runUnitTest, runUnitTests, sameBlocks, scope, scopedHint, scrollBy, scrollIntoView, scrollTo, searchScore, searchWords, selectorFor, setFieldValue, setState, settle, share, shortcutKey, shorthandLonghands, shownCopy, sidePx, signInForm, singlePageSpace, slugify, source, i$2 as spaceCallbacks, specFromSpace, specToSource, splitClassList, d as splitNotificationsCss, stepLines, stepState, styles, suggestClassOverrides, suggestCssProperty, suggestSpace, suggestTransformer, summariseRenders, svg, tabContainer, tabContainerBody, tabContainerHeader, tabContainerItem, targetId, targetOf, taskAction, testAccountWarnings, text, themeToggle, timeWindow, toBindingSpecs, toBlocks, i$3 as toBuilderParams, a$2 as toInteractionCallback, o$1 as toInteractionCallbacks, toPortableSource, toResponsive, toggleElement, toggleInState, toggleState, tokens, transformerCatalog, tw, twig, twigTemplate, typeCallbackDefinitions, typeTriggerDefinitions, unit, unitReportText, unitTestProblems, unquoted, unrollPage, unusedDeclarations, updateElement, validateSnippet, validateSpace, valueFieldIn, e$1 as valuesOf, variantFrom, variantItem, variants, video, visibleWhen, webHook, when, whenFailed, whenSucceeded, whileRunning, withElement, withNamedIds, withNotificationsCss, withPluginCatalogs, withVisibility, withoutQuieted };
package/dist/node.d.ts CHANGED
@@ -510,6 +510,106 @@ declare const AUTHORING_CODES: {
510
510
  readonly means: "a `when` asking a step of its flow for a key it never publishes — `whenSucceeded` / `whenFailed` on anything but `runServerAction`";
511
511
  readonly fix: "a key the step publishes (`explain <step>`): after `authLogin`, `when({ field: 'signedIn.ok', operator: '=', value: true }, …)`";
512
512
  };
513
+ readonly 'account-sign-in-unreachable': {
514
+ readonly kind: "warned";
515
+ readonly means: "an `account` with no `signInHref` in a space that signs in with its own provider (`userProvider: \"basic\"`) — a sign-in there needs a form, so its \"Sign in\" leads nowhere";
516
+ readonly fix: "`signInHref: '/sign-in'`, the page with the space's `signInForm`";
517
+ };
518
+ readonly 'countdown-to': {
519
+ readonly kind: "refused";
520
+ readonly means: "a `countdown`'s `to` that is not an instant with its offset — never read, so it counts to nothing";
521
+ readonly fix: "`to: '2026-12-01T09:00:00Z'` (or `+01:00`); empty inside a `timeWindow` to count to its `endsAt`";
522
+ };
523
+ readonly 'countdown-without-end': {
524
+ readonly kind: "warned";
525
+ readonly means: "a `countdown` with no `to` and no `timeWindow` around it with an `endsAt` — it shows zeros";
526
+ readonly fix: "`to: '2026-12-01T09:00:00Z'`, or the countdown inside the `timeWindow` whose end it counts to";
527
+ };
528
+ readonly 'countdown-units': {
529
+ readonly kind: "warned";
530
+ readonly means: "a `countdown` whose `smallest` unit is larger than its `largest` — it says the `largest` alone";
531
+ readonly fix: "`largest` the larger: `largest: 'days', smallest: 'minutes'`";
532
+ };
533
+ readonly 'disclosure-summary-first': {
534
+ readonly kind: "refused";
535
+ readonly means: "a `disclosure` whose first child is not its `disclosureSummary` — the browser opens it by its first `<summary>` alone, and draws \"Details\" of its own otherwise";
536
+ readonly fix: "`disclosure({ children: [disclosureSummary([…]), …what it shows] })`: one summary, first";
537
+ };
538
+ readonly 'disclosure-summary-control': {
539
+ readonly kind: "refused";
540
+ readonly means: "a button, a link or a field inside a `disclosureSummary` — the summary is the control: one inside it is a control within a control, which a keyboard and a screen reader cannot tell apart, and pressing it opens the disclosure too";
541
+ readonly fix: "words in the summary (a text, a heading); the button or the link in what the disclosure shows, or beside it";
542
+ };
543
+ readonly 'disclosure-summary-unnamed': {
544
+ readonly kind: "warned";
545
+ readonly means: "a `disclosureSummary` with nothing in it — a screen reader announces a control with no name";
546
+ readonly fix: "a text or a heading inside it: what opening it shows";
547
+ };
548
+ readonly 'time-window-bound': {
549
+ readonly kind: "refused";
550
+ readonly means: "a `timeWindow`'s `startsAt` or `endsAt` that is not an instant with its offset — never read, so no bound";
551
+ readonly fix: "`startsAt: '2026-12-01T09:00:00Z'` (or `+01:00`); empty for no bound";
552
+ };
553
+ readonly 'time-window-empty': {
554
+ readonly kind: "warned";
555
+ readonly means: "a `timeWindow` that ends before it starts — it never shows what it holds";
556
+ readonly fix: "`endsAt` after `startsAt`";
557
+ };
558
+ readonly 'variants-choose-by': {
559
+ readonly kind: "refused";
560
+ readonly means: "a `variants`' `chooseBy` that is neither `'chance'` nor `'rules'` — it chooses by chance";
561
+ readonly fix: "`chooseBy: 'chance'` or `chooseBy: 'rules'`";
562
+ };
563
+ readonly 'variants-items': {
564
+ readonly kind: "refused";
565
+ readonly means: "a `variants` holding something beside its `variantItem`s, or too few — two to five by chance, one by rules";
566
+ readonly fix: "`variants({ children: [variantItem([…]), variantItem([…])] })`";
567
+ };
568
+ readonly 'variants-builder-variant': {
569
+ readonly kind: "warned";
570
+ readonly means: "a `variants`' `builderVariant` that is not the place of one of its variants — the builder shows the first";
571
+ readonly fix: "the place of a variant it has, from 0";
572
+ };
573
+ readonly 'variants-rule': {
574
+ readonly kind: "refused";
575
+ readonly means: "a `variantItem`'s `when` that is not a rule group";
576
+ readonly fix: "`when: { combinator: 'and', rules: [{ field: 'visitor.device', operator: '=', value: 'mobile' }] }`";
577
+ };
578
+ readonly 'variants-unreachable': {
579
+ readonly kind: "warned";
580
+ readonly means: "by rules, a `variantItem` after one with no rule, which takes everybody left — it is never shown";
581
+ readonly fix: "move the variant with no rule last, or give it one";
582
+ };
583
+ readonly 'variants-no-fallback': {
584
+ readonly kind: "warned";
585
+ readonly means: "by rules, a `variants` whose every variant has a rule: a visitor matching none is shown nothing";
586
+ readonly fix: "end it with a `variantItem` with no `when`, for everybody else";
587
+ };
588
+ readonly 'experiment-name': {
589
+ readonly kind: "refused";
590
+ readonly means: "by chance, a `variants`' `experiment` that a template cannot read as `experiments.x`";
591
+ readonly fix: "letters, digits and `_`, starting with a letter or `_` — or empty, for the element's own name";
592
+ };
593
+ readonly 'experiment-weight': {
594
+ readonly kind: "refused";
595
+ readonly means: "by chance, a `variantItem`'s `weight` that is not a whole number from 0 to 100, or variants that all weigh 0";
596
+ readonly fix: "`weight: 50`; 0 shows a variant to nobody, and at least one has to show";
597
+ };
598
+ readonly 'experiment-weights-total': {
599
+ readonly kind: "warned";
600
+ readonly means: "by chance, `variant`s whose `weight`s do not add up to 100 — each is read as its part of their total";
601
+ readonly fix: "percents adding up to 100: 50/25/20/5, or the proportions the warning gives";
602
+ };
603
+ readonly 'experiment-weights-differ': {
604
+ readonly kind: "warned";
605
+ readonly means: "two `variants` running the same test with different weights — they share it, so one set is ignored";
606
+ readonly fix: "the same weights on both, or a test name of its own for each";
607
+ };
608
+ readonly 'experiment-unknown': {
609
+ readonly kind: "refused";
610
+ readonly means: "a template, a binding or a `when` reading an experiment no `variants` chosen by chance runs";
611
+ readonly fix: "the name it suggests, or a `variants` with that `experiment`";
612
+ };
513
613
  readonly 'flag-gate': {
514
614
  readonly kind: "refused";
515
615
  readonly means: "an element's or a page's `flag` that is not a flag name";
@@ -540,6 +640,11 @@ declare const AUTHORING_CODES: {
540
640
  readonly means: "a flag rule that is not `{ when, value }`, or whose `value` is not `true` or `false`";
541
641
  readonly fix: "`{ when: { … }, value: true }`";
542
642
  };
643
+ readonly 'flag-rollout': {
644
+ readonly kind: "refused";
645
+ readonly means: "a flag's `rollout` that is not `{ percent, value }` — a whole share from 0 to 100 and the answer it gives";
646
+ readonly fix: "`rollout: { percent: 10, value: true }`";
647
+ };
543
648
  readonly 'flag-rule-empty': {
544
649
  readonly kind: "warned";
545
650
  readonly means: "a flag rule with no conditions — skipped, never read as \"always\"";
@@ -3166,9 +3271,20 @@ declare type Schema = {
3166
3271
  */
3167
3272
  declare type SchemaFlag = {
3168
3273
  description?: string;
3169
- /** The answer when no rule matches. */
3274
+ /** The answer when no rule matches — and no rollout takes the visitor in. */
3170
3275
  value: boolean;
3171
3276
  rules: SchemaFlagRule[];
3277
+ /**
3278
+ * A gradual rollout, read when no rule matches: `percent` of the visitors (0–100) get `value`, the rest the flag's own
3279
+ * `value`. Each visitor is kept in their place by a cookie, so raising the percent keeps everyone who was in.
3280
+ */
3281
+ rollout?: SchemaFlagRollout;
3282
+ };
3283
+
3284
+ /** A share of the visitors a flag answers `value` for, when none of its rules matched. */
3285
+ declare type SchemaFlagRollout = {
3286
+ percent: number;
3287
+ value: boolean;
3172
3288
  };
3173
3289
 
3174
3290
  /** A value a flag takes where its `when` matches. The first rule that matches decides. */
package/dist/node.js CHANGED
@@ -1,4 +1,4 @@
1
- import { Ar as o$3, Cr as b$1, Do as component, Dr as g$1, Ds as e$2, Er as f$2, Fr as v$1, Ir as y$1, Mo as element, Mr as s$3, Nr as t$1, Or as l$3, Pr as u$3, Sr as _, Tr as d$2, Xa as container, Yr as c$3, br as N$1, jr as p$2, kr as m$2, l as validateSpace, n as authorSpace, u as compactSvg, vr as C$1, wr as c$4, xr as P, xs as Y, yr as M$1, zr as buildHandles } from "./index-src.js";
1
+ import { Ar as o$3, Bo as component, Bs as e$2, Cr as b$1, Dr as g$1, Er as f$2, Fr as v$1, Go as element, Ir as y$1, Mr as s$3, Nr as t$1, Or as l$3, Pr as u$3, Ps as Z, Sr as _, Tr as d$2, Yr as c$3, br as N$1, d as compactSvg, jr as p$2, kr as m$2, n as authorSpace, no as container, u as validateSpace, vr as C$1, wr as c$4, xr as P, yr as M$1, zr as buildHandles } from "./index-src.js";
2
2
  import { existsSync, readFileSync, readdirSync, realpathSync, statSync } from "node:fs";
3
3
  import { createRequire } from "node:module";
4
4
  import e from "node:path";
@@ -494,7 +494,7 @@ var SpacePreviewError = class extends Error {
494
494
  };
495
495
  Object.defineProperty(SpacePreviewError, "name", { value: "SpacePreviewError" });
496
496
  var PREVIEW_ID = N$1;
497
- var BUILT_IN = new Set(Object.values(Y).map((declaration) => declaration.type));
497
+ var BUILT_IN = new Set(Object.values(Z).map((declaration) => declaration.type));
498
498
  /** A preview file read as one, or why it is not, said whole. */
499
499
  var parsePreview = (value) => {
500
500
  if (!e$2(value) || typeof value.element !== "string" || value.element === "") return { problem: "it names no element: write { \"element\": \"<a component or an element type>\", \"copies\": [{ … }] }" };
package/dist/plugin.d.ts CHANGED
@@ -535,6 +535,11 @@ declare type PluginSchema = {
535
535
  definition: Element_2['definition'];
536
536
  /** The attributes a role that edits the content and not the design may change; none, it may change none. */
537
537
  contentAttributes?: string[];
538
+ /**
539
+ * The element this one only works somewhere inside — a carousel's track, an A/B test's variant: the builder's
540
+ * catalogue lists it after that one, as a part of it.
541
+ */
542
+ ancestorType?: string;
538
543
  defaultStyle: {
539
544
  name: string;
540
545
  displayMode: DisplayMode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plitzi/sdk-authoring",
3
- "version": "0.39.11",
3
+ "version": "0.39.13",
4
4
  "license": "AGPL-3.0",
5
5
  "files": [
6
6
  "dist/index.js",
@@ -66,12 +66,12 @@
66
66
  },
67
67
  "devDependencies": {
68
68
  "@microsoft/api-extractor": "^7.60.1",
69
- "@plitzi/plitzi-ui": "^1.6.40",
70
- "@plitzi/sdk-elements": "0.39.11",
71
- "@plitzi/sdk-interactions": "0.39.11",
72
- "@plitzi/sdk-schema": "0.39.11",
73
- "@plitzi/sdk-shared": "0.39.11",
74
- "@plitzi/sdk-style": "0.39.11",
69
+ "@plitzi/plitzi-ui": "^1.6.41",
70
+ "@plitzi/sdk-elements": "0.39.13",
71
+ "@plitzi/sdk-interactions": "0.39.13",
72
+ "@plitzi/sdk-schema": "0.39.13",
73
+ "@plitzi/sdk-shared": "0.39.13",
74
+ "@plitzi/sdk-style": "0.39.13",
75
75
  "@types/react": "^19.3.0",
76
76
  "eslint": "^9.39.5",
77
77
  "prettier": "^3.10.1",
@@ -1,61 +1,58 @@
1
1
  /**
2
- * An accordion — questions whose answers open one at a time, a disclosure that expands and collapses, as `<details>`
3
- * would — written once and mapped over the questions: the open one
4
- * is a key in `state`, and each question reads it the same way. The button says whether its answer is open
5
- * (`ariaExpanded`) and which panel it opens (`controls`, by the panel's id), so a screen reader follows it; the panel is
6
- * revealed by the state, so it starts hidden.
2
+ * An accordion — questions whose answers open one at a time — a `list` over the questions, its row a `disclosure` of
3
+ * one group (`name: 'faq'`), so opening one closes the one that was open. Each is the browser's `<details>`: it opens before the page's script runs, find-in-page opens the one holding what was found, and
4
+ * the closed answers are still in the page for search engines. Its summary is the control and its name, and the marker
5
+ * at its end turns as it opens — no state, no `ariaExpanded`.
7
6
  */
8
- import { bindTemplate, button, container, onClick, paragraph, setState, styles } from '@plitzi/sdk-authoring';
7
+ import {
8
+ container,
9
+ disclosure,
10
+ disclosureSummary,
11
+ list,
12
+ listItem,
13
+ paragraph,
14
+ styles,
15
+ text
16
+ } from '@plitzi/sdk-authoring';
9
17
 
10
18
  import type { ElementSpec, SpaceSpec } from '@plitzi/sdk-authoring';
11
19
 
12
20
  const QUESTIONS = [
13
- { id: 'shipping', question: 'How long does shipping take?', answer: 'Three working days, anywhere in Europe.' },
14
- { id: 'returns', question: 'Can I return an order?', answer: 'Within thirty days, unopened, at no cost.' },
15
- { id: 'warranty', question: 'Is there a warranty?', answer: 'Two years on every product we sell.' }
21
+ { question: 'How long does shipping take?', answer: 'Three working days, anywhere in Europe.' },
22
+ { question: 'Can I return an order?', answer: 'Within thirty days, unopened, at no cost.' },
23
+ { question: 'Is there a warranty?', answer: 'Two years on every product we sell.' }
16
24
  ];
17
25
 
26
+ const questions = styles('faq-questions', { padding: '0px', margin: '0px', 'list-style': 'none' });
27
+
18
28
  const question = styles('faq-question', {
19
- css: {
20
- display: 'flex',
21
- 'justify-content': 'space-between',
22
- width: '100%',
23
- padding: '16px 0px',
24
- border: 'none',
25
- 'background-color': 'transparent',
26
- 'font-size': '16px',
27
- 'font-weight': '600',
28
- cursor: 'pointer'
29
- },
29
+ css: { padding: '16px 0px', 'font-size': '16px', 'font-weight': '600' },
30
30
  states: { 'focus-visible': { outline: '2px solid currentColor', 'outline-offset': '2px' } }
31
31
  });
32
32
 
33
33
  const answer = styles('faq-answer', { 'padding-bottom': '16px', margin: '0px' });
34
34
 
35
- /** One question: the button that opens it — closing the one open, or this one again — and the answer it opens. */
36
- const faqItem = ({ id, question: words, answer: text }: (typeof QUESTIONS)[number]): ElementSpec[] => [
37
- button({
38
- id: `${id}-question`,
39
- content: words,
40
- class: question,
41
- // Named by the panel's id: authoring gives the panel the anchor the page needs for `aria-controls`.
42
- controls: `${id}-answer`,
43
- ariaExpanded: false,
44
- bind: [bindTemplate('ariaExpanded', 'state.faq', `{{ source == '${id}' }}`, { returns: 'value' })],
45
- flows: [[onClick(), setState({ key: 'faq', type: 'text', value: `{{ state.faq == '${id}' ? '' : '${id}' }}` })]]
46
- }),
47
- // Revealed by the state, so it starts hidden: nothing flashes open before the page knows which one is.
48
- container({
49
- id: `${id}-answer`,
50
- visible: { source: 'state.faq', template: `{{ source == '${id}' }}` },
51
- children: [paragraph({ content: text, class: answer })]
52
- })
53
- ];
35
+ /** The questions as data, one row each: its summary, what is pressed, and the answer it shows. */
36
+ const faq: ElementSpec = list({
37
+ id: 'faq',
38
+ class: questions,
39
+ items: QUESTIONS,
40
+ row: row =>
41
+ listItem({
42
+ children: [
43
+ disclosure({
44
+ name: 'faq',
45
+ children: [
46
+ disclosureSummary({ class: question, children: [text({ from: `${row.item}.question` })] }),
47
+ paragraph({ from: `${row.item}.answer`, class: answer })
48
+ ]
49
+ })
50
+ ]
51
+ })
52
+ });
54
53
 
55
54
  export const recipe: SpaceSpec = {
56
55
  name: 'Questions',
57
56
  permanentUrl: 'questions',
58
- pages: [
59
- { id: 'home', name: 'Home', slug: '', body: [container({ subType: 'main', children: QUESTIONS.flatMap(faqItem) })] }
60
- ]
57
+ pages: [{ id: 'home', name: 'Home', slug: '', body: [container({ subType: 'main', children: [faq] })] }]
61
58
  };
@@ -82,12 +82,15 @@ button({ content: 'Menu', bind: { ariaExpanded: 'state.menuOpen' }, flows: [[onC
82
82
 
83
83
  An "active" variant is for the eyes. `ariaPressed` and `ariaExpanded` are for everyone else. Use both. A button that
84
84
  opens a panel also names it — `controls: 'menu-panel'`, the panel's id (authoring gives the panel the anchor
85
- `aria-controls` needs; [recipes/accordion.ts](../recipes/accordion.ts)). In a list's row, both are the row's own: each
85
+ `aria-controls` needs). In a list's row, both are the row's own: each
86
86
  row's panel is drawn as `<id>-<row>`, and the row's button points at its own. Words that change while somebody is on the page
87
87
  — a count, a total, a status — sit in `container({ live: 'polite', … })`, so a screen reader says them when they change.
88
- A part that opens and closes on its own — a question and its answer, many open at once — needs no state at all:
89
- `container({ subType: 'details', children: [container({ subType: 'summary', children: [text('Question')] }), …] })`
90
- (`open: true` to start open), the browser's own disclosure, announced as one. The accordion recipe is for one-at-a-time.
88
+ A part that opens and closes — a question and its answer, a menu, "show more" — is a `disclosure`, and needs no state
89
+ nor `ariaExpanded`: `disclosure({ children: [disclosureSummary([text({ content: 'Question' })]), …what it shows] })`.
90
+ It is the browser's own `<details>`, announced as one; the summary is the control and its name (words in it, never a
91
+ button), and lights the `expanded` state while open. One `name` for several makes them an accordion, one open at a time
92
+ ([recipes/accordion.ts](../recipes/accordion.ts)); Escape closes it, and so does a press outside with
93
+ `closeOnClickOutside` (a menu).
91
94
  Results, a menu or a set of options someone goes through with the keyboard sit in `focusGroup({ label, children })`:
92
95
  ↑/↓ move between the controls inside, ←/→ to the first of the next or previous list, and ↓ from a search field inside
93
96
  goes down into them — Tab alone took a stop per result.
@@ -18,6 +18,21 @@ console (`[plitzi] auth.login: …`) — read it before suspecting the form.
18
18
  On the platform, `userProvider: 'server'` signs in by leaving the page: a `link` with `mode: 'external'` to
19
19
  `/auth/sign-in?return=/` sends the visitor to sign in and back, signed in on the space's own host.
20
20
 
21
+ ## The elements
22
+
23
+ Three elements say who is visiting, in the builder's User category — use them before writing a sign-in by hand:
24
+
25
+ - `signInForm({ redirectTo: '/dashboard' })` — the sign-in itself: one button through a provider that signs in out and
26
+ back (`server`, Plitzi's), an email and a password against the space's own (`basic`), then the code of a second factor
27
+ when the account has one. Each refusal is said for what it is (`wrongMessage`, `unverifiedMessage`…); signed in, the
28
+ visitor goes to `redirectTo`, or back to the `?redirect=` of this site they were sent with.
29
+ - `account({ signInHref: '/sign-in', children: [link({ href: '/profile', content: 'Profile' })] })` — a top bar's
30
+ corner: "Sign in" for a guest (to `signInHref` with `?redirect=`, or the provider's own when empty — a `basic` space
31
+ needs the page: `account-sign-in-unreachable`), and for somebody signed in their initials opening a menu with their
32
+ name, address, its children and "Sign out". Nothing while the session is being found out.
33
+ - `avatar({ name: '{{ auth.details.username }}', src })` — a person: their picture, or their initials on a colour of
34
+ their own; `decorative` beside their name.
35
+
21
36
  ## The steps
22
37
 
23
38
  ```ts
@@ -66,18 +66,25 @@ The space is not written until these are fixed.
66
66
  | `condition-template` | a `when` rule with a template in its field or value — `value: '{{ list_genres.item.id }}'` — compared as that text, so it never holds | a path: `field: 'state.picks'`; another path as the value, `value: 'list_genres.item.id', isBinding: true`; an expression, a computed value |
67
67
  | `controls-other-row` | a button's `controls` naming an element a list draws in its rows, from outside that row | the button in the same row as what it shows and hides, or `controls` naming an element outside the list |
68
68
  | `controls-unknown` | a button's `controls` naming no element of the space | the id of the element it shows and hides: `controls: 'faq-answer'` |
69
+ | `countdown-to` | a `countdown`'s `to` that is not an instant with its offset — never read, so it counts to nothing | `to: '2026-12-01T09:00:00Z'` (or `+01:00`); empty inside a `timeWindow` to count to its `endsAt` |
69
70
  | `css-property-twice` | one property written twice in a rule set — `paddingTop` beside `'padding-top'` — so one would silently win | keep one |
70
71
  | `css-property-unknown` | a CSS property that does not exist | the property it suggests; a custom property starts with `--` |
71
72
  | `css-value` | an empty CSS value, or one with `;` or `{}` | one value per property; leave a property out instead of writing it empty |
72
73
  | `declared-callback-target` | a `declaredCallback` target with a key beside `on` and `params` — read nowhere, so the step runs without it | the value in `params`: `{ on: 'calendar', params: { date } }` |
74
+ | `disclosure-summary-control` | a button, a link or a field inside a `disclosureSummary` — the summary is the control: one inside it is a control within a control, which a keyboard and a screen reader cannot tell apart, and pressing it opens the disclosure too | words in the summary (a text, a heading); the button or the link in what the disclosure shows, or beside it |
75
+ | `disclosure-summary-first` | a `disclosure` whose first child is not its `disclosureSummary` — the browser opens it by its first `<summary>` alone, and draws "Details" of its own otherwise | `disclosure({ children: [disclosureSummary([…]), …what it shows] })`: one summary, first |
73
76
  | `element-ids-target` | a step refreshing containers by id (`invalidateElements`, `invalidateQueries({ elements })`) naming one the space does not have, or one that is not an `apiContainer` | the id of the `apiContainer` whose data the step changes: `invalidateElements: ['posts']` |
74
77
  | `element-load-strategy` | a `loadStrategy` the element does not take | one of the values the message lists |
75
78
  | `element-rejected` | an element the schema refused to hold | the problem listed with it |
76
79
  | `element-runtime` | a `runtime` the element does not run in | one of the values the message lists |
77
80
  | `element-shape` | an element that is not an object with a `type`, `attributes` and a list of `children` | build elements with their factories — `text(…)`, `container(…)` |
78
81
  | `element-slot-unknown` | a `slots` key the element type does not have — its class would dress nothing | one of the slots `plitzi explain <type>` lists; the element itself takes `class` |
82
+ | `experiment-name` | by chance, a `variants`' `experiment` that a template cannot read as `experiments.x` | letters, digits and `_`, starting with a letter or `_` — or empty, for the element's own name |
83
+ | `experiment-unknown` | a template, a binding or a `when` reading an experiment no `variants` chosen by chance runs | the name it suggests, or a `variants` with that `experiment` |
84
+ | `experiment-weight` | by chance, a `variantItem`'s `weight` that is not a whole number from 0 to 100, or variants that all weigh 0 | `weight: 50`; 0 shows a variant to nobody, and at least one has to show |
79
85
  | `flag-gate` | an element's or a page's `flag` that is not a flag name | `flag: 'newCheckout'`, or `flag: '!newCheckout'` for "only while off" |
80
86
  | `flag-name` | a flag whose name a template cannot read as `flags.x` | letters, digits and `_` |
87
+ | `flag-rollout` | a flag's `rollout` that is not `{ percent, value }` — a whole share from 0 to 100 and the answer it gives | `rollout: { percent: 10, value: true }` |
81
88
  | `flag-rule-shape` | a flag rule that is not `{ when, value }`, or whose `value` is not `true` or `false` | `{ when: { … }, value: true }` |
82
89
  | `flag-shape` | a flag whose `value` is not `true` or `false` | `{ value: false, rules: [] }` |
83
90
  | `flag-undeclared` | a gate on a flag the space does not declare — it reads as off, so the element never (or always) renders | declare it in `flags`, or remove the gate |
@@ -180,6 +187,7 @@ The space is not written until these are fixed.
180
187
  | `template-text-into-value` | a template, which renders text, feeding an attribute that holds a list or an object | `bindTemplate('items', source, '{{ … }}', { returns: 'value' })` |
181
188
  | `template-unknown-name` | a name in a template that is not a source, a variable or a route param | the full source name (`list_rows.item`), `navigation.queryParams.x`, or `source` for the bound value |
182
189
  | `template-unreadable` | a template with an operator, a filter or a function that does not exist, or broken syntax | an operator, a filter or a function the interpreter has — the message names the one it could not read; `matches` never exists |
190
+ | `time-window-bound` | a `timeWindow`'s `startsAt` or `endsAt` that is not an instant with its offset — never read, so no bound | `startsAt: '2026-12-01T09:00:00Z'` (or `+01:00`); empty for no bound |
183
191
  | `transformer-params` | a transformer param that does not exist, or a value outside its options | the params and values it lists |
184
192
  | `trigger-interval` | an `onInterval` that never ticks: not a whole number of milliseconds, or below 250 | `onInterval(5000)` |
185
193
  | `trigger-keys` | an `onKey` shortcut that cannot fire: two keys at once, only modifiers, or a name that is not a key | `onKey('f')`, `onKey('shift+f')`, `onKey('mod+k, escape')` |
@@ -193,6 +201,9 @@ The space is not written until these are fixed.
193
201
  | `unknown-transformer` | a transformer that does not exist | one of the transformers it lists |
194
202
  | `utility-module` | a utility sent to a module — a utility takes none | drop the `on` |
195
203
  | `variant-bound-twice` | two bindings (`variantFrom`, `activeOn`, `activeWhen`) setting the variant of one class on one element — the second always wins | one `variantFrom` whose template answers every case: `{{ wide ? 'roomy' : current ? 'active' : 'idle' }}`; two things that change apart (a size, a lit state) are two classes, each with its own `variantFrom` |
204
+ | `variants-choose-by` | a `variants`' `chooseBy` that is neither `'chance'` nor `'rules'` — it chooses by chance | `chooseBy: 'chance'` or `chooseBy: 'rules'` |
205
+ | `variants-items` | a `variants` holding something beside its `variantItem`s, or too few — two to five by chance, one by rules | `variants({ children: [variantItem([…]), variantItem([…])] })` |
206
+ | `variants-rule` | a `variantItem`'s `when` that is not a rule group | `when: { combinator: 'and', rules: [{ field: 'visitor.device', operator: '=', value: 'mobile' }] }` |
196
207
  | `visibility-as-attribute` | `visibility` bound as an attribute, which no element reads | `visible: { source, template }` |
197
208
  | `visible-expression` | `visible` written as an expression (`"state.plan == 'pro'"`, `"a && !b"`) — it takes a source, read as one, which resolves to nothing | `visible: { source: 'state.plan', template: "{{ state.plan == 'pro' }}" }` — or a source alone, `'state.open'`, `'!state.open'` |
198
209
  | `visitor-roles` | `settings.visitorRoles` written in a shape the runtime does not read | the shape the message gives |
@@ -206,6 +217,7 @@ The space renders, and renders something you probably did not mean. Fix every on
206
217
 
207
218
  | Code | What was wrong | Write instead |
208
219
  | --- | --- | --- |
220
+ | `account-sign-in-unreachable` | an `account` with no `signInHref` in a space that signs in with its own provider (`userProvider: "basic"`) — a sign-in there needs a form, so its "Sign in" leads nowhere | `signInHref: '/sign-in'`, the page with the space's `signInForm` |
209
221
  | `action-output-path` | a read of `.data` on a provider fed by a server action — it publishes the action’s output at its root, and `.data` is a `query` provider’s answer | the output’s own field — `apiContainer_feed.stories`, not `apiContainer_feed.data.stories` |
210
222
  | `animation-name-unknown` | `animation-name` naming keyframes the space does not declare — nothing plays | declare them in the space's `keyframes`, or name one it has |
211
223
  | `browser-state-without-keep-state` | `browserState` without `keepState` — nothing is kept in the first place | `settings.keepState: true`, or remove `browserState` |
@@ -215,9 +227,14 @@ The space renders, and renders something you probably did not mean. Fix every on
215
227
  | `control-in-decorative` | a control inside a `decorative` container — Tab lands on something nothing announces | move it out of the illustration |
216
228
  | `control-without-name` | a button or a link with no words, or a field nothing names | `title` on the button, `label` on the link, `label` (with `hideLabel: true`) on the field |
217
229
  | `controls-no-anchor` | a button's `controls` naming no anchor — `aria-controls` points at nothing | an `anchor` on the element it shows and hides, and `controls` naming it |
230
+ | `countdown-units` | a `countdown` whose `smallest` unit is larger than its `largest` — it says the `largest` alone | `largest` the larger: `largest: 'days', smallest: 'minutes'` |
231
+ | `countdown-without-end` | a `countdown` with no `to` and no `timeWindow` around it with an `endsAt` — it shows zeros | `to: '2026-12-01T09:00:00Z'`, or the countdown inside the `timeWindow` whose end it counts to |
218
232
  | `default-content-beside-children` | a button printing its default "Button" beside its children | `content: ''` |
233
+ | `disclosure-summary-unnamed` | a `disclosureSummary` with nothing in it — a screen reader announces a control with no name | a text or a heading inside it: what opening it shows |
219
234
  | `dropdown-without-control` | a dropdown opened from a box or an icon — no keyboard opens it | a `button` as what opens it (`title` if it is only an icon) |
220
235
  | `embed-without-title` | an `embed` with no `title` — a frame a screen reader cannot describe | say what it shows in `title` |
236
+ | `experiment-weights-differ` | two `variants` running the same test with different weights — they share it, so one set is ignored | the same weights on both, or a test name of its own for each |
237
+ | `experiment-weights-total` | by chance, `variant`s whose `weight`s do not add up to 100 — each is read as its part of their total | percents adding up to 100: 50/25/20/5, or the proportions the warning gives |
221
238
  | `flag-rule-empty` | a flag rule with no conditions — skipped, never read as "always" | give it a condition, or set the flag's `value` instead |
222
239
  | `flag-unused` | a declared flag nothing gates on and no template reads | gate what it switches (`flag: 'x'`), or remove it once the feature has shipped |
223
240
  | `focus-on-field-box` | a `focus` or `focus-visible` state on a text field's or a select's `input` slot — the box the field is drawn in, which never takes focus, so no ring is ever shown | `'focus-within'` on the same class, or the state on the `field` slot |
@@ -259,12 +276,16 @@ The space renders, and renders something you probably did not mean. Fix every on
259
276
  | `template-or-value` | a template's `or` (or `and`) beside a text or a number — `sort or 'listeners'` — which answers true or false, never the value | a fallback value with `??`: `sort ?? 'listeners'`; a test with `or` between two conditions |
260
277
  | `test-account-role-gone` | a test account holds a visitor role the space does not declare in `settings.visitorRoles` — removed since, or never there: a journey plays it without that role, and one that needed what it gave fails | one of the space’s roles for the account — or the role declared again |
261
278
  | `test-unreadable` | a test of the space — an element check or a flow — that cannot be read as it is written: a page no page of the space answers, an element it no longer has, a relation that is none. A snapshot and a publish wait for it | the test as the message says — or the space back to what the test expects |
279
+ | `time-window-empty` | a `timeWindow` that ends before it starts — it never shows what it holds | `endsAt` after `startsAt` |
262
280
  | `transient-state-without-keep-state` | `transientState` without `keepState` — nothing is kept in the first place | `settings.keepState: true`, or remove `transientState` |
263
281
  | `unknown-element-type` | a type no built-in element has | the built-in it suggests; a plugin's declaration goes in `authorSpace(space, { plugins: [declaration] })` |
264
282
  | `unknown-global-callback` | a global callback no built-in source declares — it runs only if something registers it | the built-in it suggests, or make sure a plugin or module of the space registers it |
265
283
  | `unknown-utility` | a utility that is not one of the built-in ones | one of the built-in utilities |
266
284
  | `unknown-variable` | a `var(--x)` nothing in the space declares — the property it is in is dropped | declare it under `variables`, fix the name, or give it a fallback: `var(--x, …)` |
267
285
  | `unknown-variant` | a variant no class of the element and no style of its type declares — nothing applies | declare it (`styles(name, { variants: { … } })`), or name one that is |
286
+ | `variants-builder-variant` | a `variants`' `builderVariant` that is not the place of one of its variants — the builder shows the first | the place of a variant it has, from 0 |
287
+ | `variants-no-fallback` | by rules, a `variants` whose every variant has a rule: a visitor matching none is shown nothing | end it with a `variantItem` with no `when`, for everybody else |
288
+ | `variants-unreachable` | by rules, a `variantItem` after one with no rule, which takes everybody left — it is never shown | move the variant with no rule last, or give it one |
268
289
 
269
290
  ## Suggested
270
291
 
@@ -58,6 +58,13 @@ declare is an error (`flag-unknown`).
58
58
  Prefer a gate to `visible: 'flags.x'`: a visibility bound to a flag still renders the hidden half and ships it in the
59
59
  HTML. Reach for the source only for what a gate cannot say — a label that changes, a step that branches.
60
60
 
61
+ ## Rolling out gradually
62
+
63
+ `rollout: { percent: 10, value: true }` on a flag turns it on for 10% of the visitors when none of its rules matches;
64
+ the rest get its `value`. Each visitor keeps their place (a cookie), so raising the percent keeps everyone who was in —
65
+ 10, then 50, then 100, then remove the flag. Rules still come first: a rule for staff answers before the rollout. Not
66
+ access control — a visitor's place is theirs to change. A malformed one is `flag-rollout`.
67
+
61
68
  ## Who decides
62
69
 
63
70
  The space's declaration answers first. Above it, in order, each may override a flag — only one the space declares:
@@ -76,3 +83,63 @@ and a self-hosted server keeps the last ones it fetched — so a published site
76
83
 
77
84
  Remove the gate from what stays, delete what it replaced, and remove the flag. A declared flag nothing reads is a
78
85
  warning (`flag-unused`): it is a switch nobody can see the effect of.
86
+
87
+ ## Variants: A/B tests and audiences
88
+
89
+ A flag shows the same side to everyone its rules match; `variants` shows each visitor one of its `variantItem`s, chosen
90
+ **by chance** (an A/B test, the default) or **by rules** (who the visitor is). Only the variant shown is drawn.
91
+
92
+ ```ts
93
+ variants({
94
+ children: [
95
+ variantItem({ weight: 90, children: [heading({ content: 'Build faster' })] }), // A: 90% of the visitors
96
+ variantItem({ weight: 10, children: [heading({ content: 'Ship today' })] }) // B: 10%
97
+ ]
98
+ });
99
+ ```
100
+
101
+ **By chance**, it holds two to five variants — A first, then B… A `weight` is the percent of the visitors it
102
+ is shown to, and the variants' add up to 100 — 50/25/20/5, any split (`experiment-weights-total` warns otherwise; 50
103
+ each by default). The server draws the visitor's variant and keeps it in a cookie, so a reload or a later visit shows the same,
104
+ and a visitor keeps theirs when the shares change; 0 shows a variant to nobody, one left with a share ends the test. Its
105
+ `experiment` names the test — left empty, the element's id does (`pricing-test` runs `pricing_test`) — and two with the
106
+ same name show a visitor the same variant (`experiment-weights-differ` warns when their shares disagree). Count a
107
+ conversion with the `reachGoal('signup')` step: Plitzi's analytics shows each variant's visitors, conversions and rate
108
+ against A's. `{{ experiments.<name> }}` is `'a'`, `'b'`… for a flow. To see a variant you were not drawn, where debugging
109
+ is authorized: the dev tools' **Experiments** tab, or `?ab=heroTest:b` in the address.
110
+
111
+ **By rules** — `chooseBy: 'rules'` — it shows the first variant whose `when` the visitor matches: a rule group over what a
112
+ flag's rules see, `queryParams.utm_source` included, and the visitor: `visitor.returning`, `visitor.language` (`es`),
113
+ `visitor.device` (`mobile`, `tablet`, `desktop`), `visitor.country` (`ES`, `MX` — what the CDN in front of the server
114
+ says; empty without one, so end with an "everybody else"). End it with a variant with no `when`, for everybody else
115
+ (`variants-no-fallback` warns otherwise):
116
+
117
+ ```ts
118
+ variants({
119
+ chooseBy: 'rules',
120
+ children: [
121
+ variantItem({
122
+ when: { combinator: 'and', rules: [{ field: 'visitor.device', operator: '=', value: 'mobile' }] },
123
+ children: [text({ content: 'Get the app' })]
124
+ }),
125
+ variantItem([text({ content: 'Welcome' })])
126
+ ]
127
+ });
128
+ ```
129
+
130
+ A variant keeps its `weight` and its `when` whichever way it chooses, so switching loses neither. In the builder its
131
+ settings list the variants with their share or their rule; the canvas shows the one picked there (`builderVariant`, its
132
+ place from 0) while editing, and the preview the visitor chosen in the State Manager's **Visitor** tab.
133
+
134
+ ## Showing something for a while
135
+
136
+ `timeWindow({ startsAt: '2026-12-01T09:00:00Z', endsAt: '2026-12-08T09:00:00Z', children })` shows what it holds only
137
+ between the two instants — ISO 8601 with the offset, never a local time (`time-window-bound`); either empty is no
138
+ bound. An open page shows or hides it when the window opens or closes. In the builder it always shows while editing;
139
+ the preview reads it at the date chosen in the Visitor tab.
140
+
141
+ `countdown({ to: '2026-12-01T09:00:00Z' })` says how long is left — days to seconds, named in the space's language
142
+ (`labels: 'short'` or `'none'`; `largest: 'hours'` says 49 hours) — and `countdown()` inside a `timeWindow` counts to its
143
+ `endsAt`, so the date is written once. At zero it stays at zero and runs `onCountdownEnd`: reveal what waited with a
144
+ flow, or hide the countdown with the window around it. Style its slots — `unit`, `value`, `label` — for boxes or a line.
145
+
@@ -149,7 +149,10 @@ the submit, and the browser says which.
149
149
  The toast carries no class of the space's, so this — not a `.Toastify__*` rule in `customCss` — is where it is
150
150
  dressed.
151
151
 
152
- Copy link: `copyToClipboard('{{ navigation.href }}')`, then the toast — it fails with no clipboard.
152
+ Copy link: `copyToClipboard('{{ navigation.href }}')`, then the toast — it fails with no clipboard. Share:
153
+ `named('sent', share({ title: 'Our launch' }))` opens the device's sheet for this page, or copies the address where
154
+ there is none — a toast on `sent.copied` says "Link copied" only then. `fullscreen('map')` shows an element on the whole
155
+ screen and back (`'enter'`, `'exit'` one way); where the browser cannot, the step fails into `onFailure`.
153
156
 
154
157
  ## Modals, dropdowns, tabs
155
158