@vectoriox/iox-ui 5.98.0 → 5.100.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/actions-core/index.d.ts +7 -4
- package/composite-core/index.d.ts +222 -2
- package/design-core/index.d.ts +334 -1
- package/fesm2022/vectoriox-iox-ui-actions-core.mjs +16 -7
- package/fesm2022/vectoriox-iox-ui-actions-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-composite-core.mjs +948 -256
- package/fesm2022/vectoriox-iox-ui-composite-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-design-core.mjs +416 -1
- package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-forms-core.mjs +3 -24
- package/fesm2022/vectoriox-iox-ui-forms-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs +23 -13
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-identity-core.mjs +633 -0
- package/fesm2022/vectoriox-iox-ui-identity-core.mjs.map +1 -0
- package/fesm2022/vectoriox-iox-ui.mjs +2 -59
- package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
- package/forms-core/index.d.ts +2 -23
- package/generation-core/index.d.ts +3 -1
- package/identity-core/index.d.ts +426 -0
- package/identity-core/package.json +3 -0
- package/index.d.ts +0 -1
- package/package.json +5 -1
- package/src/actions-core/action.model.ts +1 -1
- package/src/actions-core/element-actions.ts +16 -6
- package/src/composite-core/account-runtime.ts +428 -0
- package/src/composite-core/account.ts +281 -0
- package/src/composite-core/public-api.ts +2 -0
- package/src/composite-core/recipe-parts.ts +48 -0
- package/src/composite-core/shop.ts +6 -26
- package/src/design-core/field-classes.ts +65 -0
- package/src/design-core/flavor-spec.generated.ts +346 -0
- package/src/design-core/public-api.ts +1 -0
- package/src/forms-core/field-markup.ts +2 -22
- package/src/generation-core/compose-site.ts +19 -9
- package/src/generation-core/nav-shape.ts +4 -4
- package/src/identity-core/guards.ts +87 -0
- package/src/identity-core/public-api.ts +14 -0
- package/src/identity-core/sign-in.ts +223 -0
- package/src/identity-core/site-auth-transport.ts +134 -0
- package/src/identity-core/site-auth.ts +182 -0
- package/src/identity-core/words.ts +194 -0
- package/styles/iox-design.css +38 -0
package/actions-core/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ import { CompositeItemAction } from '@vectoriox/iox-ui/composite-core';
|
|
|
10
10
|
/** How a step executes — decides which editor fields appear (timing only for `animated`). */
|
|
11
11
|
type ActionKind = 'animated' | 'instant' | 'server';
|
|
12
12
|
/** Picker grouping. Flat lists die at ~10 entries; the group is data, never a second list. */
|
|
13
|
-
type ActionGroup = 'motion' | 'visibility' | 'navigate' | 'dialog' | 'popover' | 'notice' | 'item' | 'form' | 'data' | 'consent' | 'shop' | 'service';
|
|
13
|
+
type ActionGroup = 'motion' | 'visibility' | 'navigate' | 'dialog' | 'popover' | 'notice' | 'item' | 'form' | 'data' | 'consent' | 'shop' | 'account' | 'service';
|
|
14
14
|
/**
|
|
15
15
|
* What a step does inside the live builder canvas (the canvas RUNS interactions):
|
|
16
16
|
* `run` for real (open the dialog), `simulate` announce-only (navigate), `inert` with a
|
|
@@ -102,8 +102,8 @@ declare function resolveActionAvailability(descriptor: ActionDescriptor, ctx?: A
|
|
|
102
102
|
* Shipped rows (motion/visibility/context/swiper) are listed so the catalog is the WHOLE truth;
|
|
103
103
|
* their `kind`/`builderBehaviour` make the long-standing implicit rules explicit — the canvas is
|
|
104
104
|
* a live runtime (feedback_builder_live_runtime), navigate must SIMULATE, services are INERT.
|
|
105
|
-
*
|
|
106
|
-
*
|
|
105
|
+
* Selling (E1c) and a buyer's account (E3a) went live once their subsystems existed; until then they shipped greyed with
|
|
106
|
+
* the honest reason (D-A5).
|
|
107
107
|
*/
|
|
108
108
|
/** The trigger whose actions the scroll plays (premium M6, N7). */
|
|
109
109
|
declare const SCROLL_PROGRESS_TRIGGER = "scrollProgress";
|
|
@@ -116,6 +116,9 @@ declare const SCROLL_PROGRESS_TRIGGER = "scrollProgress";
|
|
|
116
116
|
declare const SHOP_ENTITLEMENT = "shop";
|
|
117
117
|
declare const COUNT_UP_TRIGGERS: ReadonlyArray<string>;
|
|
118
118
|
declare const ELEMENT_ACTION_DESCRIPTORS: readonly ActionDescriptor[];
|
|
119
|
+
/** The account actions' dispatch set (commerce E3a) — the engines branch on it beside SHOP and hand the action to
|
|
120
|
+
* composite-core `runAccountAction`. */
|
|
121
|
+
declare const ACCOUNT_ACTION_TYPES: ReadonlySet<string>;
|
|
119
122
|
/** The shop actions' dispatch set (commerce E1c) — the engines branch on it beside DIALOG / BEHAVIOUR and hand the action
|
|
120
123
|
* to composite-core `runShopAction`, which reads the product, the variant and the quantity around the element. */
|
|
121
124
|
declare const SHOP_ACTION_TYPES: ReadonlySet<string>;
|
|
@@ -304,5 +307,5 @@ interface FocusableSheet {
|
|
|
304
307
|
*/
|
|
305
308
|
declare function focusDialogSheet(dialog: FocusableSheet | null | undefined): boolean;
|
|
306
309
|
|
|
307
|
-
export { BEHAVIOUR_ACTION_TYPES, CONSENT_ACTION_TYPES, COUNT_UP_TRIGGERS, DIALOG_ACTION_TYPE_SET, DIALOG_CLOSING_ATTRIBUTE, DIALOG_EXIT_TIMEOUT_MS, DIALOG_OPENER_ACTION_TYPES, DIALOG_OPENER_TRIGGER, DIALOG_SELECTOR, ELEMENT_ACTION_DESCRIPTORS, ELEMENT_ACTION_GROUP_ORDER, FORM_SUBMIT_ACTION_DESCRIPTORS, ITEM_ACTION_TYPES, OpenerAttribute, POPOVER_ACTION_TYPE_SET, POPOVER_NODE_TYPE, POPOVER_OPENER_ACTION_TYPES, SCROLL_PROGRESS_TRIGGER, SERVER_ELEMENT_ACTION_TYPES, SHOP_ACTION_TYPES, SHOP_ENTITLEMENT, TOAST_ACTION_TYPES, actionOfferedUnder, addableActions, cancelExit, closeDialogAnimated, dialogDomId, dialogOpenerAttributes, dialogOpenersSelector, dialogTogglesClosed, focusDialogSheet, groupedElementActions, isExiting, itemActionOf, nodeIdOfDialogDomId, nodeIdOfPopoverDomId, openedDialogId, openedPopoverId, openedTargetId, opensAtClickedItem, popoverDomId, popoverOpenerAttributes, popoverOpenersSelector, resolveActionAvailability, runExitMotion };
|
|
310
|
+
export { ACCOUNT_ACTION_TYPES, BEHAVIOUR_ACTION_TYPES, CONSENT_ACTION_TYPES, COUNT_UP_TRIGGERS, DIALOG_ACTION_TYPE_SET, DIALOG_CLOSING_ATTRIBUTE, DIALOG_EXIT_TIMEOUT_MS, DIALOG_OPENER_ACTION_TYPES, DIALOG_OPENER_TRIGGER, DIALOG_SELECTOR, ELEMENT_ACTION_DESCRIPTORS, ELEMENT_ACTION_GROUP_ORDER, FORM_SUBMIT_ACTION_DESCRIPTORS, ITEM_ACTION_TYPES, OpenerAttribute, POPOVER_ACTION_TYPE_SET, POPOVER_NODE_TYPE, POPOVER_OPENER_ACTION_TYPES, SCROLL_PROGRESS_TRIGGER, SERVER_ELEMENT_ACTION_TYPES, SHOP_ACTION_TYPES, SHOP_ENTITLEMENT, TOAST_ACTION_TYPES, actionOfferedUnder, addableActions, cancelExit, closeDialogAnimated, dialogDomId, dialogOpenerAttributes, dialogOpenersSelector, dialogTogglesClosed, focusDialogSheet, groupedElementActions, isExiting, itemActionOf, nodeIdOfDialogDomId, nodeIdOfPopoverDomId, openedDialogId, openedPopoverId, openedTargetId, opensAtClickedItem, popoverDomId, popoverOpenerAttributes, popoverOpenersSelector, resolveActionAvailability, runExitMotion };
|
|
308
311
|
export type { ActionAvailability, ActionAvailabilityContext, ActionAvailabilityState, ActionDescriptor, ActionGroup, ActionKind, ActionParamSpec, ActionTargetSpec, BuilderBehaviour, DialogElementLike, ExitAnimationLike, ExitMotionElement, ExitMotionOptions, FocusableSheet, OpenerActionLike, OpenerInteractionLike, OpenerNodeLike };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ElementStyleTarget, HeaderBehaviour, HeaderEdge } from '@vectoriox/iox-ui/design-core';
|
|
2
2
|
export { ROW_INDEX_ATTRIBUTE } from '@vectoriox/iox-ui/design-core';
|
|
3
3
|
import { ProductOption, CartTransport, StorefrontProduct, ShopSlot, CartView, ProductVariantView } from '@vectoriox/iox-ui/commerce-core';
|
|
4
|
+
import { SiteAuthTransport, SiteCustomer, SignInProvider } from '@vectoriox/iox-ui/identity-core';
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* The node shape composite-core reads and writes — both a builder `ComponentNode` (values in
|
|
@@ -2219,5 +2220,224 @@ declare enum ShopActionType {
|
|
|
2219
2220
|
/** Run a shop action from the element that fired it (both interaction engines call this). False when no shop runs. */
|
|
2220
2221
|
declare function runShopAction(el: Element, type: string): Promise<boolean>;
|
|
2221
2222
|
|
|
2222
|
-
|
|
2223
|
-
|
|
2223
|
+
/**
|
|
2224
|
+
* THE ACCOUNT PARTS (commerce E3a, C-D5/C-D6 — commerce board 12). Recipes of ordinary builder nodes with roles, like the
|
|
2225
|
+
* shop parts, run by ONE DOM runtime (`account-runtime.ts`) over the host's `SiteAuthTransport` — the same on the builder
|
|
2226
|
+
* canvas (simulated) and the live site. Buying never needs an account (C-D4): every part is optional.
|
|
2227
|
+
*
|
|
2228
|
+
* Account entry Container account › ButtonBlock account.entry (`account-button`)
|
|
2229
|
+
* › Icon · Text account.sign-in-label "Sign in"
|
|
2230
|
+
* · Container account.avatar (`account-avatar`) › Text $customer.initial · Text account.name $customer.name
|
|
2231
|
+
* · Popover account.menu › Text account.menu-greeting · ButtonBlock account.orders (a link to the
|
|
2232
|
+
* account page) · ButtonBlock account.sign-out (signOut)
|
|
2233
|
+
* Sign-in dialog Dialog account.sign-in › head (Heading account.title · Close) · Text account.why
|
|
2234
|
+
* · ButtonBlock account.google "Continue with Google" · Text account.provider-error · Text account.or
|
|
2235
|
+
* · Container account.email-step › Field account.email · ButtonBlock account.send-code
|
|
2236
|
+
* · Container account.code-step › Text account.code-sent · Field account.code · ButtonBlock account.verify
|
|
2237
|
+
* · row (Text account.code-valid · Send again · Use another email)
|
|
2238
|
+
* · Text account.dialog-error
|
|
2239
|
+
*
|
|
2240
|
+
* Words are the recipe's in English (board 12); the runtime writes the visitor's language over the ones it owns
|
|
2241
|
+
* (the code-sent line, refusals) and a studio edits the rest like any Text.
|
|
2242
|
+
*/
|
|
2243
|
+
declare enum AccountRole {
|
|
2244
|
+
Account = "account",
|
|
2245
|
+
Entry = "account.entry",
|
|
2246
|
+
SignInLabel = "account.sign-in-label",
|
|
2247
|
+
Avatar = "account.avatar",
|
|
2248
|
+
Initial = "account.initial",
|
|
2249
|
+
Name = "account.name",
|
|
2250
|
+
Menu = "account.menu",
|
|
2251
|
+
MenuGreeting = "account.menu-greeting",
|
|
2252
|
+
Orders = "account.orders",
|
|
2253
|
+
SignOut = "account.sign-out",
|
|
2254
|
+
SignIn = "account.sign-in",
|
|
2255
|
+
Title = "account.title",
|
|
2256
|
+
Close = "account.close",
|
|
2257
|
+
Why = "account.why",
|
|
2258
|
+
Google = "account.google",
|
|
2259
|
+
ProviderError = "account.provider-error",
|
|
2260
|
+
Or = "account.or",
|
|
2261
|
+
EmailStep = "account.email-step",
|
|
2262
|
+
Email = "account.email",
|
|
2263
|
+
SendCode = "account.send-code",
|
|
2264
|
+
CodeStep = "account.code-step",
|
|
2265
|
+
CodeSent = "account.code-sent",
|
|
2266
|
+
Code = "account.code",
|
|
2267
|
+
Verify = "account.verify",
|
|
2268
|
+
CodeValid = "account.code-valid",
|
|
2269
|
+
SendAgain = "account.send-again",
|
|
2270
|
+
OtherEmail = "account.other-email",
|
|
2271
|
+
DialogError = "account.dialog-error"
|
|
2272
|
+
}
|
|
2273
|
+
declare const ACCOUNT_ROLES: ReadonlySet<string>;
|
|
2274
|
+
declare function isAccountRole(role: string | null | undefined): boolean;
|
|
2275
|
+
/** The CSS selector of an account role (`.iox-role-account-entry`). */
|
|
2276
|
+
declare function accountSelector(role: AccountRole): string;
|
|
2277
|
+
/** On the account root and the dialog: the buyer is signed in (the shared CSS swaps "Sign in" for the initial). */
|
|
2278
|
+
declare const SIGNED_IN_ATTRIBUTE = "data-iox-signed-in";
|
|
2279
|
+
/** On the sign-in dialog: `email` (asking for an email) or `code` (asking for the code just sent). */
|
|
2280
|
+
declare const SIGN_IN_STEP_ATTRIBUTE = "data-iox-sign-in-step";
|
|
2281
|
+
/** On a part the runtime has no words for right now (an empty error line). */
|
|
2282
|
+
declare const ACCOUNT_HIDDEN_ATTRIBUTE = "data-iox-account-hidden";
|
|
2283
|
+
/** The polite live region the account speaks in ("You are signed in."). */
|
|
2284
|
+
declare const ACCOUNT_LIVE_CLASS = "iox-account-live";
|
|
2285
|
+
declare enum SignInStep {
|
|
2286
|
+
Email = "email",
|
|
2287
|
+
Code = "code"
|
|
2288
|
+
}
|
|
2289
|
+
/** The Field names the dialog's two inputs submit under. */
|
|
2290
|
+
declare enum SignInFieldName {
|
|
2291
|
+
Email = "email",
|
|
2292
|
+
Code = "code"
|
|
2293
|
+
}
|
|
2294
|
+
/** The words a fresh recipe shows in `lang` (board 12's sample) — the studio edits them like any Text; the composer
|
|
2295
|
+
* stamps them in the site's language. */
|
|
2296
|
+
declare function accountRecipeWords(lang?: string | null | undefined): Readonly<{
|
|
2297
|
+
signIn: string;
|
|
2298
|
+
initial: string;
|
|
2299
|
+
name: "נועה" | "Noa";
|
|
2300
|
+
greeting: string;
|
|
2301
|
+
orders: string;
|
|
2302
|
+
signOut: string;
|
|
2303
|
+
title: string;
|
|
2304
|
+
close: string;
|
|
2305
|
+
why: string;
|
|
2306
|
+
google: string;
|
|
2307
|
+
or: string;
|
|
2308
|
+
email: string;
|
|
2309
|
+
emailPlaceholder: string;
|
|
2310
|
+
sendCode: string;
|
|
2311
|
+
codeSent: string;
|
|
2312
|
+
code: string;
|
|
2313
|
+
verify: string;
|
|
2314
|
+
codeValid: string;
|
|
2315
|
+
sendAgain: string;
|
|
2316
|
+
otherEmail: string;
|
|
2317
|
+
}>;
|
|
2318
|
+
type AccountRecipeWords = ReturnType<typeof accountRecipeWords>;
|
|
2319
|
+
/** The English sample (the palette's — the canvas has no page language yet). */
|
|
2320
|
+
declare const ACCOUNT_RECIPE_WORDS: AccountRecipeWords;
|
|
2321
|
+
declare const ACCOUNT_LABELS: Readonly<{
|
|
2322
|
+
account: "Account entry";
|
|
2323
|
+
menu: "Account menu";
|
|
2324
|
+
signIn: "Sign-in dialog";
|
|
2325
|
+
}>;
|
|
2326
|
+
/** The menu a signed-in buyer opens from the account button: hello, their orders, sign out. */
|
|
2327
|
+
declare function buildAccountMenuRecipe(create: CompositeNodeFactory, lang?: string | null): CompositeNode;
|
|
2328
|
+
/**
|
|
2329
|
+
* The header's account entry: "Sign in" while signed out, the buyer's initial and name once signed in ($customer). A
|
|
2330
|
+
* press opens the page's sign-in dialog, or — signed in — the menu beside it. The menu is part of the entry.
|
|
2331
|
+
*/
|
|
2332
|
+
declare function buildAccountEntryRecipe(create: CompositeNodeFactory, lang?: string | null): CompositeNode;
|
|
2333
|
+
/** The sign-in dialog (board 12): Google, or an email and the six-digit code sent to it. Never a password. */
|
|
2334
|
+
declare function buildSignInDialogRecipe(create: CompositeNodeFactory, lang?: string | null): CompositeNode;
|
|
2335
|
+
/** The account recipes, by name. */
|
|
2336
|
+
declare enum AccountRecipe {
|
|
2337
|
+
Entry = "accountEntry",
|
|
2338
|
+
Menu = "accountMenu",
|
|
2339
|
+
SignInDialog = "signInDialog"
|
|
2340
|
+
}
|
|
2341
|
+
declare const ACCOUNT_RECIPES: Readonly<Record<AccountRecipe, (create: CompositeNodeFactory, lang?: string | null) => CompositeNode>>;
|
|
2342
|
+
/** The recipe a site holds ONCE, as a global element after the page — every page's entry opens it. */
|
|
2343
|
+
declare const ACCOUNT_GLOBAL_RECIPES: ReadonlySet<AccountRecipe>;
|
|
2344
|
+
|
|
2345
|
+
/**
|
|
2346
|
+
* THE ACCOUNT RUNTIME (commerce E3a) — ONE copy, DOM only, for the builder canvas and the live site, the `ShopRuntime`
|
|
2347
|
+
* shape. It finds the account parts by their role classes inside a scope (the page, globals included), asks the host's
|
|
2348
|
+
* `SiteAuthTransport` who is signed in, publishes `$customer` for the ordinary bindings (`$customer.initial`), and runs
|
|
2349
|
+
* the sign-in dialog: Google (the browser goes to the broker), or an email then the six-digit code sent to it. Every
|
|
2350
|
+
* refusal is said on its field (`signInRefusal` → `SignInSlot`); a pressed button is busy until its answer.
|
|
2351
|
+
*/
|
|
2352
|
+
interface AccountHost {
|
|
2353
|
+
/** The engine's (over iox-cms's site routes) on a live site; `simulatedSiteAuthTransport` on the builder canvas. */
|
|
2354
|
+
transport: SiteAuthTransport;
|
|
2355
|
+
/** The page's language (the words the runtime writes). */
|
|
2356
|
+
locale?: () => string | null | undefined;
|
|
2357
|
+
/** Write `$customer` into the host's context channel (`ContextStore.set`). */
|
|
2358
|
+
publish?: (slot: string, value: unknown) => void;
|
|
2359
|
+
/** Open / close the sign-in dialog through the host's own dialog path (the Lenis lock, the opener's focus). */
|
|
2360
|
+
openDialog?: (dialog: HTMLElement) => void;
|
|
2361
|
+
closeDialog?: (dialog: HTMLElement) => void;
|
|
2362
|
+
/** Open / close the account menu beside its button (the host's popover path). */
|
|
2363
|
+
openMenu?: (menu: HTMLElement, opener: HTMLElement) => void;
|
|
2364
|
+
closeMenu?: (menu: HTMLElement) => void;
|
|
2365
|
+
/** Send the browser to an address (the broker's start). The canvas simulates. */
|
|
2366
|
+
navigate?: (url: string) => void;
|
|
2367
|
+
/** The page to come back to after a provider's sign-in (a same-origin path; the engine: the current path). */
|
|
2368
|
+
returnPath?: () => string;
|
|
2369
|
+
/** The account page (`accountHref(orgLabel)`) — the menu's "Your orders" goes there. */
|
|
2370
|
+
accountHref?: () => string;
|
|
2371
|
+
/** A provider sign-in that came back refused (`?iox_signin_error=`, read by the host) — said in the dialog on load. */
|
|
2372
|
+
pendingError?: () => string | null;
|
|
2373
|
+
/** The signed-in state changed (the host may re-render personal parts). */
|
|
2374
|
+
onChange?: (customer: SiteCustomer | null) => void;
|
|
2375
|
+
/** Re-sync when the markup under the scope changes (the builder canvas re-renders parts). */
|
|
2376
|
+
observe?: boolean;
|
|
2377
|
+
}
|
|
2378
|
+
declare class AccountRuntime {
|
|
2379
|
+
readonly scope: HTMLElement;
|
|
2380
|
+
private readonly host;
|
|
2381
|
+
private customer;
|
|
2382
|
+
private step;
|
|
2383
|
+
private email;
|
|
2384
|
+
private busy;
|
|
2385
|
+
private destroyed;
|
|
2386
|
+
private observer;
|
|
2387
|
+
private syncing;
|
|
2388
|
+
private syncQueued;
|
|
2389
|
+
private lastPublished;
|
|
2390
|
+
constructor(scope: HTMLElement, host: AccountHost);
|
|
2391
|
+
private get lang();
|
|
2392
|
+
/** The signed-in buyer, or null. */
|
|
2393
|
+
get signedIn(): SiteCustomer | null;
|
|
2394
|
+
get currentStep(): SignInStep;
|
|
2395
|
+
destroy(): void;
|
|
2396
|
+
/** Sign in: open the page's sign-in dialog — or, already signed in, the menu beside `from`. False when neither exists. */
|
|
2397
|
+
signIn(from?: Element | null): boolean;
|
|
2398
|
+
signOut(): Promise<boolean>;
|
|
2399
|
+
/** Open the sign-in dialog at the email step, saying `error` (a refusal code) when given. */
|
|
2400
|
+
openSignIn(error: string | null): boolean;
|
|
2401
|
+
/** The transport answered who is signed in: publish `$customer`, mark the parts. */
|
|
2402
|
+
setCustomer(customer: SiteCustomer | null): void;
|
|
2403
|
+
private dialog;
|
|
2404
|
+
private part;
|
|
2405
|
+
private all;
|
|
2406
|
+
private toStep;
|
|
2407
|
+
private clearErrors;
|
|
2408
|
+
/** Say a refusal on its slot, and move focus to the field it is about. */
|
|
2409
|
+
private say;
|
|
2410
|
+
private run;
|
|
2411
|
+
/** Continue with Google: the studio asks the broker for a ticket; the browser goes to its start address. */
|
|
2412
|
+
startProvider(provider?: SignInProvider, button?: HTMLElement | null): Promise<void>;
|
|
2413
|
+
/** Send a code to the typed email, then ask for it. */
|
|
2414
|
+
sendCode(button?: HTMLElement | null): Promise<void>;
|
|
2415
|
+
/** Check the code; signed in, the dialog closes and the page says so. */
|
|
2416
|
+
verify(button?: HTMLElement | null): Promise<void>;
|
|
2417
|
+
/** Back to the email step, the typed email kept for editing. */
|
|
2418
|
+
otherEmail(): void;
|
|
2419
|
+
private openMenu;
|
|
2420
|
+
private queueSync;
|
|
2421
|
+
/** Write the signed-in state into every part. Idempotent; the observer is deaf while it runs. */
|
|
2422
|
+
sync(): void;
|
|
2423
|
+
/** What a browser and a phone keyboard need to know about the two inputs (autofill, the one-time code). */
|
|
2424
|
+
private prepareInputs;
|
|
2425
|
+
private announce;
|
|
2426
|
+
private readonly onClick;
|
|
2427
|
+
/** Enter in a field presses its step's button — the dialog holds no `<form>` that could post. */
|
|
2428
|
+
private readonly onKeydown;
|
|
2429
|
+
}
|
|
2430
|
+
/** Attach the account runtime to a page scope, unless one runs there already. */
|
|
2431
|
+
declare function attachAccount(scope: HTMLElement, host: AccountHost): AccountRuntime;
|
|
2432
|
+
/** The account runtime an element sits under, or null. */
|
|
2433
|
+
declare function accountRuntimeOf(el: Element | null | undefined): AccountRuntime | null;
|
|
2434
|
+
/** The account actions (actions-core `ACCOUNT_ACTION_TYPES`). */
|
|
2435
|
+
declare enum AccountActionType {
|
|
2436
|
+
SignIn = "signIn",
|
|
2437
|
+
SignOut = "signOut"
|
|
2438
|
+
}
|
|
2439
|
+
/** Run an account action from the element that fired it (both interaction engines call this). False when none runs. */
|
|
2440
|
+
declare function runAccountAction(el: Element, type: string): Promise<boolean>;
|
|
2441
|
+
|
|
2442
|
+
export { ACCORDION_BIND_PROP, ACCORDION_CONTENT_LIMIT, ACCORDION_DEFAULT_ONS, ACCORDION_ICONS, ACCORDION_ICON_GLYPH, ACCORDION_NEW_ITEM_WORDS, ACCORDION_WORDS, ACCOUNT_GLOBAL_RECIPES, ACCOUNT_HIDDEN_ATTRIBUTE, ACCOUNT_LABELS, ACCOUNT_LIVE_CLASS, ACCOUNT_RECIPES, ACCOUNT_RECIPE_WORDS, ACCOUNT_ROLES, ACTIVATE_ON_ATTRIBUTE, ADDED_HOLD_MS, AccordionClass, AccordionDefaultOn, AccordionEditRefusal, AccordionIcon, AccordionKeyAction, AccordionRole, AccordionRuntime, AccountActionType, AccountRecipe, AccountRole, AccountRuntime, BADGE_TONES, BADGE_TONE_ICONS, BadgeTone, CARD_LAYOUTS, CARD_LAYOUT_CUSTOM, CARD_PARTS, CARD_PART_ROLE, CARD_STACK_BREAKPOINT, CARD_WORDS, CAROUSEL_QUOTES, CART_EMPTY_ATTRIBUTE, CART_LINE_ATTRIBUTE, CART_TITLE_COUNT_ATTRIBUTE, CHIP_ICON, CHIP_STYLE, COLOUR_OPTION_NAMES, COMPOSITE_ATTRIBUTE, COMPOSITE_KIND_ROLES, COMPOSITE_ROLE_SPECS, COUNTER_COUNT, COUNTER_ENTRANCE, COUNTER_SAMPLE_WORDS, CardLayout, CardPart, CardRole, CarouselA11y, CompositeBehaviourTrait, CompositeItemAction, CompositeKind, DEFAULT_ON_ATTRIBUTE, DISCLOSURE_ITEM_KEY, DISCLOSURE_WORDS, DisclosureRole, EXCLUSIVE_KIND_ROLES, ExclusiveRuntime, ITEM_KEY_ATTRIBUTE, ITEM_OFF_EVENT, ITEM_ON_EVENT, ITEM_OPEN_STATE, LIGHTBOX_ARROWS_HIDE_AT, LIGHTBOX_LABEL, MARQUEE_DEFAULTS, MARQUEE_DEFAULT_SPEED_PX, MARQUEE_KEYFRAMES, MARQUEE_MAX_COPIES, MARQUEE_MIN_LOOP_S, MARQUEE_NODE_ATTRIBUTES, MARQUEE_NOSCRIPT_CSS, MARQUEE_PAUSE_GLYPH, MARQUEE_PLAY_GLYPH, MARQUEE_SAMPLE_WORDS, MARQUEE_SPEED_FACTOR, MARQUEE_WORDS, MULTIPLE_ATTRIBUTE, MarqueeAttribute, MarqueeDirection, MarqueeRole, MarqueeRuntime, MarqueeSpeed, MarqueeStyle, MarqueeTrait, NAMED_SWATCHES, NO_ELEMENT_STYLE, ON_ATTRIBUTE, ON_STATE, ORIENTATION_ATTRIBUTE, PILL_LABEL_STYLE, SCOPE_ATTRIBUTE, SEGMENTED_BADGE_TONE, SEGMENTED_BADGE_WORDS, SEGMENTED_BEHAVIOUR, SEGMENTED_MAX_OPTIONS, SEGMENTED_MIN_OPTIONS, SEGMENTED_NAME, SEGMENTED_NEW_OPTION_WORDS, SEGMENTED_WORDS, SHOP_ADDED_ATTRIBUTE, SHOP_BINDS, SHOP_CHIP_MAX, SHOP_CLONE_ATTRIBUTE, SHOP_GLOBAL_RECIPES, SHOP_HIDDEN_ATTRIBUTE, SHOP_LABELS, SHOP_LIVE_CLASS, SHOP_RECIPES, SHOP_RECIPE_WORDS, SHOP_ROLES, SHOP_SELECT_CLASS, SHOP_UNUSED_ATTRIBUTE, SIGNED_IN_ATTRIBUTE, SIGN_IN_STEP_ATTRIBUTE, SLIDER_BAR_ORDER, SLIDER_NAME_TRAIT, SLIDER_PART_GLYPH, SLIDER_PART_ROLES, SLIDER_PLACEMENT_TRAIT, SLIDER_PLAY_GLYPH, SLIDER_SCROLL_PLAYS_TRAIT, SLIDER_SWAPPING_ATTRIBUTE, SLIDER_TEXT_ATTRIBUTE, SLIDER_TYPE, SLIDER_WORDS, SLIDE_CAPTION_TRAIT, SLIDE_TO_ROW, SLIDE_TYPE, SWIPER_THEME_COLOR, SceneRole, SegmentedEditRefusal, SegmentedRole, SegmentedTrait, ShopActionType, ShopBindTarget, ShopPickerKind, ShopRecipe, ShopRole, ShopRuntime, SignInFieldName, SignInStep, SliderFlag, SliderPlacement, SliderRole, StructureEdit, StructureRefusal, TABS_ACTIVATE_ONS, TABS_CONTENT_LIMIT, TABS_IMAGE_BIND_PROP, TABS_LABEL_BIND_PROP, TABS_NEW_TAB_WORDS, TABS_ORIENTATIONS, TABS_STACK_BREAKPOINT, TABS_TEXT_BIND_PROP, TABS_WORDS, TabsActivateOn, TabsBehaviourTrait, TabsEditRefusal, TabsOrientation, TabsRole, UNTIL_FOUND, acceptsRefusal, accordionAnswerOf, accordionBehaviour, accordionDomIds, accordionFocusIndex, accordionHeadingLevel, accordionItemAttributes, accordionItemLabel, accordionItemOf, accordionItemState, accordionItems, accordionKeyAction, accordionPanelAttributes, accordionPanelOf, accordionPartStyle, accordionQuestionOf, accordionRegionAttributes, accordionRemovalRefusal, accordionRootAttributes, accordionRootOf, accordionRootOfItem, accordionRuntimeOf, accordionScope, accordionToContent, accordionToManual, accordionTrackAttributes, accordionTriggerAttributes, accordionTriggerOf, accountRecipeWords, accountRuntimeOf, accountSelector, addAccordionItem, addSegmentedOption, addTabPair, applyCardLayout, attachAccordionAt, attachAccordions, attachAccount, attachCarouselA11y, attachCompositeAt, attachExclusiveAt, attachMarquees, attachShop, attachSliderBar, badgeStyleId, badgeToneOf, bindShopPart, buildAccordionItem, buildAccordionRecipe, buildAccountEntryRecipe, buildAccountMenuRecipe, buildAddToCartRecipe, buildBadge, buildBuyNowRecipe, buildCardRecipe, buildCarouselRecipe, buildCartButtonRecipe, buildCartDrawerRecipe, buildChip, buildCompositeIcon, buildCounterRecipe, buildDisclosureRecipe, buildLightboxRecipe, buildMarqueeRecipe, buildPriceRecipe, buildQuantityRecipe, buildReadingBarRecipe, buildSegmentedOption, buildSegmentedRecipe, buildSignInDialogRecipe, buildSliderPart, buildTabPair, buildTabsRecipe, buildVariantPickerRecipe, canOpenAtClickedItem, cardPartsOf, cardRootOf, cardTitleOf, carouselOf, clearLayerStyles, closeAccordionItem, closestAccordion, closestAccordionItem, closestExclusive, closestExclusiveItemPart, compositeItemOf, compositeItems, compositeKindOfRole, compositeRootOf, compositeRowKeys, compositeScopeId, detachAccordion, detectAccordionIcon, detectCardLayout, disclosureOpenByDefault, domSafeKey, exclusiveBehaviourOf, exclusiveDefaultOf, exclusiveItemLabel, exclusiveItemPartOf, exclusiveKindHasPanels, exclusiveKindOf, exclusiveLabelOf, exclusivePartAttributes, exclusiveRootAttributesOf, exclusiveRootHoldsTriggers, exclusiveRootOf, exclusiveRuntimeOf, exclusiveScopeFor, findByRole, hasLabelledRegion, hasSliderParts, headerBehaviourOfNode, initialAccordionOpen, isAccordionFromContent, isAccordionItemOn, isAccordionPart, isAccordionRoot, isAccountRole, isAnyCompositeRoot, isCardLinked, isCardRoot, isCompositeItem, isCompositeItemOn, isCompositePanel, isCompositeRoot, isCompositeTrigger, isDisclosurePart, isDisclosureRoot, isExclusiveItemOn, isExclusiveItemPart, isExclusiveKind, isExclusiveList, isExclusivePanel, isExclusivePanels, isExclusiveRoot, isExclusiveTrigger, isExclusiveTriggerDisabled, isLockedPart, isMarqueeRoot, isPartOfExclusiveScope, isPillNode, isSegmentedPart, isSegmentedRoot, isShopRole, isSlider, isSliderPart, isTabsFromContent, isTabsPart, isTabsRoot, isToggleKind, itemOpenTriggerIds, lightboxSliderOf, lookMarqueeSpeed, makeCompositePart, manualTabKeys, marqueeCopyCount, marqueeLoopSeconds, marqueePartElement, marqueePauseAttributes, marqueePauseGlyph, marqueeRootAttributes, marqueeRootOf, marqueeSettings, marqueeWords, migrateSliderControls, moveAccordionItem, moveSegmentedOption, moveTabPair, needsSliderMigration, nextAccordionState, nextItemKey, nextSegmentedKey, nextTabKey, onAccordionItemState, onCompositeItemState, onExclusiveItemState, openAccordionItem, parentInComposite, pickAccordionAutoBinds, pickTabsAutoBinds, readLayerStyle, readProp, readStyle, removeFromComposite, removeSegmentedOption, removeTabPair, renameAccordionItem, renameSegmentedOption, renameTab, repeatSourceOf, rowIndexOf, rowItemKey, rowSourceOf, runAccountAction, runCompositeItemAction, runShopAction, sameRepeatSource, segmentedAddRefusal, segmentedBadgeOf, segmentedDefaultOn, segmentedItemTriggerIds, segmentedKeyAction, segmentedKeys, segmentedLabel, segmentedOptionAttributes, segmentedOptionKey, segmentedOptionLabel, segmentedOptionLabelNodeOf, segmentedOptions, segmentedPartAttributes, segmentedRemovalRefusal, segmentedRootAttributes, segmentedRootAttributesOf, segmentedScopeFor, serializeDomAttributes, setAccordionBehaviour, setAccordionIcon, setBadgeTone, setCardLinked, setCardPart, setHeaderBehaviour, setMarqueeSettings, setSegmentedBadge, setSegmentedBehaviour, setSliderFlag, setSliderPlacement, setTabsBehaviour, shopPickerKind, shopRuntimeOf, shopSelector, shouldScrollToItem, slideIndexForRow, sliderCaptionOf, sliderCountText, sliderLiveRegion, sliderPart, sliderPartElement, sliderPauseAttributes, sliderPauseGlyph, sliderPlacementOf, sliderSlides, sliderWords, splitSliderChildren, structureRefusal, swatchFill, syncSliderParts, tabLabel, tabLabelNodeOf, tabListAttributes, tabPanelAttributes, tabPanelImageOf, tabPanelOf, tabPanelTextOf, tabPartKey, tabTriggerAttributes, tabTriggerOf, tabsBehaviour, tabsItemState, tabsItemTriggerIds, tabsKeyAction, tabsLabel, tabsListOf, tabsPanels, tabsPanelsOf, tabsPartAttributes, tabsPartnerOf, tabsRemovalRefusal, tabsRootAttributes, tabsScope, tabsScopeFor, tabsToContent, tabsToManual, tabsTriggers, variantGroupLabel, variantGroupNote, walkComposite, wantedSliderParts, writeLayerStyles, writeProp, writeStyles };
|
|
2443
|
+
export type { AccordionAutoBinds, AccordionBehaviour, AccordionDomIds, AccordionItemState, AccordionOptions, AccordionRuntimeOptions, AccordionScope, AccordionWords, AccountHost, AccountRecipeWords, BarSwiper, BaselineStyles, CardEditOptions, CardLayoutResult, CardLayoutState, CardOptions, CardPartChange, CardWords, CarouselA11yOptions, CarouselOptions, CarouselQuote, CarouselSwiper, CompositeBinding, CompositeKindRoles, CompositeLayer, CompositeNode, CompositeNodeFactory, CompositeNodeSpec, CompositeRoleSpec, CompositeRuntime, CompositeTrait, ContentFieldLike, CounterWords, DisclosureOptions, DisclosureWords, DomAttributes, ExclusiveCompositeKind, ExclusiveKindRoles, ExclusiveRuntimeOptions, ExclusiveScope, LegacySliderLook, LightboxOptions, MarqueeRecipeOptions, MarqueeRuntimeOptions, MarqueeSettings, MarqueeWords, PillOptions, RepeatSource, SegmentedOptionWords, SegmentedOptions, ShopHost, SliderPartsChange, SliderWords, TabPair, TabWords, TabsAutoBinds, TabsBehaviour, TabsItemState, TabsOptions, TabsScope, ToggleCompositeKind };
|