@wix/himalaya-cli 0.1751.0 → 0.1753.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/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/app-config.d.ts +1 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/app-module.d.ts +3 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/define-app.d.ts +16 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/site-shell.d.ts +10 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/auth-providers/wix/src/index.d.ts +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/auth-providers/wix/src/native-engine.d.ts +49 -3
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/auth/src/copy.generated.d.ts +16 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/auth/src/feedback.d.ts +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/auth.mjs +27 -2
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +105 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/screens.mjs +27 -2
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdui.mjs +1 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-auth/worker.mjs +133 -13
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-auth.mjs +139 -13
- package/dist/browser-plane/assets.json +5 -5
- package/dist/browser-plane/preview-deferred/{21f35a12bd94f4ab97a9a75453c4adcadc438daf024a4b1950d5c356c123bd01.bin → 2671d1cadb15daa5e59440f4c924e30c221ab3d405e8a56a0ab1cdbe4764af3d.bin} +1 -1
- package/dist/browser-plane/sw.js +1 -1
- package/dist/cli.mjs +3918 -3348
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/app-config.md +1 -1
- package/guides/himi-json-output.md +25 -3
- package/guides/one-app-section-mappings.md +1 -1
- package/guides/push-cli-onboarding.md +13 -0
- package/guides/qa-builds.md +3 -1
- package/guides/releasing-with-himi-serve.md +51 -0
- package/guides/store-submission.md +46 -1
- package/guides/wix-business-context.md +15 -1
- package/package.json +2 -2
- package/templates/beauty-salon/recipes/programs-filters.json +94 -0
- package/templates/beauty-salon/recipes/programs-see-all.json +43 -0
- package/templates/beauty-salon/tier5-src/_shared/programs-section.ts +19 -7
- package/templates/beauty-salon/tier5-src/himi-branded-lite-order/index.ts +7 -2
- package/templates/branded-lite/recipes/programs-filters.json +94 -0
- package/templates/branded-lite/recipes/programs-see-all.json +43 -0
- package/templates/branded-lite/tier5-src/_shared/programs-section.ts +19 -7
- package/templates/branded-lite/tier5-src/himi-branded-lite-inbox/index.ts +10 -1
- package/templates/branded-lite/tier5-src/himi-branded-lite-order/index.ts +7 -2
- package/templates/community-club/recipes/programs-filters.json +94 -0
- package/templates/community-club/recipes/programs-see-all.json +43 -0
- package/templates/community-club/tier5-src/_shared/programs-section.ts +19 -7
- package/templates/events-meetups/recipes/programs-filters.json +94 -0
- package/templates/events-meetups/recipes/programs-see-all.json +43 -0
- package/templates/events-meetups/tier5-src/_shared/programs-section.ts +19 -7
- package/templates/fitness-gym/tier5-src/himi-fitcoach-goal/index.ts +3 -4
- package/templates/gym-fitness/recipes/programs-filters.json +94 -0
- package/templates/gym-fitness/recipes/programs-see-all.json +43 -0
- package/templates/gym-fitness/tier5-src/_shared/programs-section.ts +19 -7
- package/templates/gym-fitness/tier5-src/himi-branded-lite-order/index.ts +7 -2
- package/templates/nonprofit-cause/recipes/programs-filters.json +94 -0
- package/templates/nonprofit-cause/recipes/programs-see-all.json +43 -0
- package/templates/nonprofit-cause/tier5-src/_shared/programs-section.ts +19 -7
- package/templates/podcast-creator/recipes/programs-filters.json +94 -0
- package/templates/podcast-creator/recipes/programs-see-all.json +43 -0
- package/templates/podcast-creator/tier5-src/_shared/programs-section.ts +19 -7
- package/templates/portfolio-creative/recipes/programs-filters.json +94 -0
- package/templates/portfolio-creative/recipes/programs-see-all.json +43 -0
- package/templates/portfolio-creative/tier5-src/_shared/programs-section.ts +19 -7
- package/templates/portfolio-creative/tier5-src/himi-branded-lite-order/index.ts +7 -2
- package/templates/restaurant/recipes/programs-filters.json +94 -0
- package/templates/restaurant/recipes/programs-see-all.json +43 -0
- package/templates/restaurant/tier5-src/_shared/programs-section.ts +19 -7
- package/templates/retail-store/recipes/programs-filters.json +94 -0
- package/templates/retail-store/recipes/programs-see-all.json +43 -0
- package/templates/retail-store/tier5-src/_shared/programs-section.ts +19 -7
- package/templates/retail-store/tier5-src/himi-branded-lite-order/index.ts +7 -2
- package/templates/wholesale-store/tier5-src/himi-branded-lite-order/index.ts +7 -2
- package/templates/yoga-studio/recipes/programs-filters.json +94 -0
- package/templates/yoga-studio/recipes/programs-see-all.json +43 -0
- package/templates/yoga-studio/tier5-src/_shared/programs-section.ts +19 -7
|
@@ -139,6 +139,7 @@ export interface NavigationConfig {
|
|
|
139
139
|
cashierConfig?: import("@wix/himalaya/core").CashierConfig;
|
|
140
140
|
base44Config?: import("@wix/himalaya/core").Base44Config;
|
|
141
141
|
wixIapConfig?: import("@wix/himalaya/core").WixIapConfig;
|
|
142
|
+
socialSignInConfig?: import("@wix/himalaya/core").SocialSignInConfig;
|
|
142
143
|
contract?: import("./provisioning-facts.js").ServedReleaseContract;
|
|
143
144
|
wixPlatformConfig?: WixPlatformConfig;
|
|
144
145
|
devGatewayConfig?: DevGatewayConfig;
|
|
@@ -289,6 +289,9 @@ export interface DerivedAppMeta {
|
|
|
289
289
|
/** Forwarded from AppConfig.wixIap — feeds the served `wixIapConfig`, which serve-control
|
|
290
290
|
* projects into the dist contract's `native.iapBinding` (baked at build time, never OTA-read). */
|
|
291
291
|
wixIap?: import("@wix/himalaya/core").WixIapConfig;
|
|
292
|
+
/** Forwarded from AppConfig.socialSignIn — feeds the served `socialSignInConfig`, which
|
|
293
|
+
* serve-control projects into the dist contract's `native.googleSignIn` (baked, never OTA-read). */
|
|
294
|
+
socialSignIn?: import("@wix/himalaya/core").SocialSignInConfig;
|
|
292
295
|
/** Forwarded from AppConfig.wixPlatform — feeds the OTA `wixPlatformConfig`
|
|
293
296
|
* block (RFC 0042 Phase 2 per-member productionization; read natively by
|
|
294
297
|
* WixPlatformCapability at boot, like iapConfig). */
|
package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/define-app.d.ts
CHANGED
|
@@ -324,6 +324,12 @@ export interface AppConfig {
|
|
|
324
324
|
* live. Absent ⇒ the app sells nothing through the App Store. See docs/iap-wix-checkout.md.
|
|
325
325
|
*/
|
|
326
326
|
wixIap?: WixIapConfig;
|
|
327
|
+
/**
|
|
328
|
+
* The app's own OAuth client IDs for member social sign-in, baked into the binary by
|
|
329
|
+
* tools/native-config when the app declares `google_sign_in` (string literals only; never read
|
|
330
|
+
* over the air). Public IDs, no secrets, and no Wix connection IDs: Native Core resolves those.
|
|
331
|
+
*/
|
|
332
|
+
socialSignIn?: SocialSignInConfig;
|
|
327
333
|
/** Unified app-owned KV and Wix Data declaration. */
|
|
328
334
|
data?: DataResourcesConfig;
|
|
329
335
|
/**
|
|
@@ -887,7 +893,16 @@ export interface OrientationEnvelope {
|
|
|
887
893
|
export declare const DEFAULT_ORIENTATION_ENVELOPE: Required<OrientationEnvelope>;
|
|
888
894
|
/** Fill in the absent families. Total, so callers never branch on `undefined`. */
|
|
889
895
|
export declare function resolveOrientationEnvelope(env?: OrientationEnvelope): Required<OrientationEnvelope>;
|
|
890
|
-
export type Capability = "camera" | "barcode_scanner" | "biometrics" | "secure_storage" | "share" | "push" | "file_picker" | "files" | "open_url" | "pdf" | "clipboard" | "theme" | "l10n" | "photos" | "presigned_upload" | "ui" | "calendar" | "contacts" | "tasks" | "audio_record" | "audio_record_background" | "calls" | "location" | "location_background" | "motion" | "health" | "media_playback" | "webview" | "browser_auth" | "haptic" | "himi_apps" | "iap" | "keyboard" | "torch" | "network" | "wix_cashier" | "wix_chat" | "live_activity" | "local_database" | "speech" | "speaker_diarization" | "system_intents" | "on_device_ai" | "text_recognition" | "translation" | "image_labeling" | "barcode_detection" | "text_embedding" | "entity_extraction" | "app_info" | "release_control" | "legacy_import" | "godot" | "base44" | "animation" | "video_playback";
|
|
896
|
+
export type Capability = "camera" | "barcode_scanner" | "biometrics" | "secure_storage" | "share" | "push" | "file_picker" | "files" | "open_url" | "pdf" | "clipboard" | "theme" | "l10n" | "photos" | "presigned_upload" | "ui" | "calendar" | "contacts" | "tasks" | "audio_record" | "audio_record_background" | "calls" | "location" | "location_background" | "motion" | "health" | "media_playback" | "webview" | "browser_auth" | "haptic" | "himi_apps" | "iap" | "keyboard" | "torch" | "network" | "wix_cashier" | "wix_chat" | "live_activity" | "local_database" | "speech" | "speaker_diarization" | "system_intents" | "on_device_ai" | "text_recognition" | "translation" | "image_labeling" | "barcode_detection" | "text_embedding" | "entity_extraction" | "app_info" | "release_control" | "legacy_import" | "godot" | "base44" | "animation" | "video_playback" | "apple_sign_in" | "google_sign_in";
|
|
897
|
+
/** `defineApp({ socialSignIn })` — see AppConfig.socialSignIn. */
|
|
898
|
+
export interface SocialSignInConfig {
|
|
899
|
+
google?: {
|
|
900
|
+
/** The iOS OAuth client: Info.plist GIDClientID and the token audience on iOS. */
|
|
901
|
+
iosClientId?: string;
|
|
902
|
+
/** The WEB OAuth client Credential Manager mints the Android token for. */
|
|
903
|
+
serverClientId?: string;
|
|
904
|
+
};
|
|
905
|
+
}
|
|
891
906
|
/** `defineApp({ wixIap })` — the purchases-service app a build binds this app to. */
|
|
892
907
|
export interface WixIapConfig {
|
|
893
908
|
/** The purchases service's app UUID, registered on the app's own auth site. Not a secret. */
|
package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/site-shell.d.ts
CHANGED
|
@@ -469,3 +469,13 @@ export interface SiteShellCheckOptions {
|
|
|
469
469
|
}
|
|
470
470
|
/** Throws with a legible message on a site description no shell can build from. */
|
|
471
471
|
export declare function assertSiteShellConfig(site: SiteShellConfig, opts?: SiteShellCheckOptions): void;
|
|
472
|
+
/** A rewriter for one contract's site: rewrites every dead tap in a descriptor, in place on a copy. */
|
|
473
|
+
export declare function siteShellLinks(site: SiteShellConfig): (descriptor: ScreenDescriptor) => ScreenDescriptor;
|
|
474
|
+
/**
|
|
475
|
+
* A screen with a top bar of its own (a member chat thread, say) replaces `navigation.topBarDefault`, so
|
|
476
|
+
* the contract's app-wide icons (`site.topBar`) would vanish there. This appends them after the screen's
|
|
477
|
+
* own actions, skipping one the screen already has and one that would open this very screen.
|
|
478
|
+
*/
|
|
479
|
+
export declare function withSiteTopBarActions(descriptor: ScreenDescriptor, defaults: TopBarConfig | undefined): ScreenDescriptor;
|
|
480
|
+
/** Trailing legacy-action slots a screen's own top bar draws (the R2 toolbar); more go to its overflow menu. */
|
|
481
|
+
export declare const SITE_SCREEN_TRAILING_SLOTS = 2;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { AuthProvider } from "@wix/himalaya/core";
|
|
2
2
|
import type { SocialAuthProvider } from "./native-engine.js";
|
|
3
3
|
export { authorizeParams, authorizeUrl, dualDomainAuthorizeUrls, SESSION_BOUND_ACCESS_SCOPE, WIX_SESSION3_SOFT_INIT_SPEC, OAUTH_AUTHORIZE_ENDPOINT, type WixOAuthDomain, type AuthorizeParamsInput, } from "./oauth-params.js";
|
|
4
|
-
export { WixNativeAuthEngine, NativeAuthError, type WixAccountSession, type RegistrationRequest, type SocialAuthProvider, type WixNativeAuthEngineConfig, } from "./native-engine.js";
|
|
4
|
+
export { WixNativeAuthEngine, NativeAuthError, VOICE_CALL_METHOD, twoFactorGateMethods, twoFactorResendForm, twoFactorWireMethod, shapeTwoFactorChallenge, legacyTwoFactorFailure, type TwoFactorChallenge, type WixAccountSession, type RegistrationRequest, type SocialAuthProvider, type WixNativeAuthEngineConfig, } from "./native-engine.js";
|
|
5
5
|
export { SignedInstanceResolver, SignedInstanceError, InMemorySignedInstanceStorage, type SignedInstanceType, type SignedInstanceServiceResponse, type SignedInstanceRecord, type SignedInstanceFetcher, type SignedInstanceStorage, } from "./signed-instance-resolver.js";
|
|
6
6
|
export { REDACTED, WIX_SENSITIVE_KEYS, isSensitiveKey, normalizeKey, redactHeaders as redactWixHeaders, redactCookieString, redactJson, redactBody, } from "./redaction.js";
|
|
7
7
|
export { SessionIDService, InMemorySessionIDStore, bsiShouldRotate, localDayIndex, BSI_ROTATE_INTERVAL_MS, type SessionIDRecord, type SessionIDStore, } from "./session-id.js";
|
|
@@ -18,7 +18,15 @@ export interface WixAccountSession {
|
|
|
18
18
|
refreshToken: string;
|
|
19
19
|
signedInstance?: string;
|
|
20
20
|
}
|
|
21
|
-
export type NativeAuthErrorKind = "unsupported" | "invalidCredentials" | "needsTwoFactor" | "recaptchaRequired" | "emailInUse" | "network" | "cancelled"
|
|
21
|
+
export type NativeAuthErrorKind = "unsupported" | "invalidCredentials" | "needsTwoFactor" | "recaptchaRequired" | "emailInUse" | "network" | "cancelled"
|
|
22
|
+
/** Legacy 2FA 8004 — too many codes requested. */
|
|
23
|
+
| "rateLimited"
|
|
24
|
+
/** Legacy 2FA 8034 — the server could not send the code. */
|
|
25
|
+
| "deliveryFailed"
|
|
26
|
+
/** Legacy 2FA 8056 — SMS codes are not offered in the owner's region. */
|
|
27
|
+
| "smsRegionUnsupported"
|
|
28
|
+
/** Legacy 2FA 8002 — the pending verification expired; sign in again. */
|
|
29
|
+
| "verificationExpired" | "unknown";
|
|
22
30
|
/** Error carrying a stable `kind` so UI maps it the same way on every platform.
|
|
23
31
|
* `needsTwoFactor` is a control-flow signal (advance to the code screen). */
|
|
24
32
|
export declare class NativeAuthError extends Error {
|
|
@@ -30,12 +38,16 @@ export declare class NativeAuthError extends Error {
|
|
|
30
38
|
/** #4309 — the push challenge's id (digits), when the payload carried one: what
|
|
31
39
|
* `WixAuthModalities.pollPushApproval` polls. */
|
|
32
40
|
readonly verificationId?: string;
|
|
41
|
+
/** Where the code went (a masked phone or email), when the server named one. */
|
|
42
|
+
readonly twoFAHint?: string;
|
|
33
43
|
constructor(kind: NativeAuthErrorKind, message: string, twoFAToken?: string, twoFAMethod?: string,
|
|
34
44
|
/** Every enabled 2FA method (drives the picker when >1). */
|
|
35
45
|
twoFAMethods?: string[],
|
|
36
46
|
/** #4309 — the push challenge's id (digits), when the payload carried one: what
|
|
37
47
|
* `WixAuthModalities.pollPushApproval` polls. */
|
|
38
|
-
verificationId?: string
|
|
48
|
+
verificationId?: string,
|
|
49
|
+
/** Where the code went (a masked phone or email), when the server named one. */
|
|
50
|
+
twoFAHint?: string);
|
|
39
51
|
}
|
|
40
52
|
export interface WixNativeAuthEngineConfig {
|
|
41
53
|
baseURL?: string;
|
|
@@ -50,6 +62,33 @@ export interface WixNativeAuthEngineConfig {
|
|
|
50
62
|
/** Injectable fetch for tests / non-browser hosts. Defaults to global fetch. */
|
|
51
63
|
fetchImpl?: typeof fetch;
|
|
52
64
|
}
|
|
65
|
+
/** The gate's id for "call me with the code". */
|
|
66
|
+
export declare const VOICE_CALL_METHOD = "VoiceCall";
|
|
67
|
+
/** A pending second factor as the gate shows it. */
|
|
68
|
+
export interface TwoFactorChallenge {
|
|
69
|
+
token: string;
|
|
70
|
+
method: string;
|
|
71
|
+
methods: string[];
|
|
72
|
+
hint?: string;
|
|
73
|
+
/** Email was challenged without being listed: re-send it without naming a method. */
|
|
74
|
+
emailUnlisted: boolean;
|
|
75
|
+
/** A push challenge's id (digits) — what `WixAuthModalities.pollPushApproval` polls. */
|
|
76
|
+
verificationId?: string;
|
|
77
|
+
}
|
|
78
|
+
/** The `twoFAMethod` a gate method is sent as: a call is the Phone factor. */
|
|
79
|
+
export declare const twoFactorWireMethod: (m: string) => string;
|
|
80
|
+
/** Every enabled method, plus the current one when the server challenged it without listing it
|
|
81
|
+
* (Email on a new-device login, or a fallback from Phone), plus `VoiceCall` after a phone method. */
|
|
82
|
+
export declare function twoFactorGateMethods(current: string, enabled: string[]): string[];
|
|
83
|
+
/** Shape a challenge payload. `requested` is the gate method that caused it (a call stays
|
|
84
|
+
* `VoiceCall` though the server answers `Phone`); a payload with no method list keeps `previous`'s. */
|
|
85
|
+
export declare function shapeTwoFactorChallenge(payload: Record<string, unknown>, requested: string, previous?: TwoFactorChallenge): TwoFactorChallenge;
|
|
86
|
+
/** The form `resend2facode` gets. An Email code challenged without Email listed is re-sent by the
|
|
87
|
+
* token's own method: the server reads a named `twoFAMethod` as a switch and refuses it. */
|
|
88
|
+
export declare function twoFactorResendForm(token: string, method: string, challenge?: TwoFactorChallenge): Record<string, string>;
|
|
89
|
+
/** What a legacy 2FA error code means, for the codes that are not a wrong code (8001/8005/8006/8008
|
|
90
|
+
* stay `invalidCredentials`). Undefined for any other code. */
|
|
91
|
+
export declare function legacyTwoFactorFailure(errorCode: unknown): NativeAuthError | undefined;
|
|
53
92
|
export declare class WixNativeAuthEngine {
|
|
54
93
|
private readonly baseURL;
|
|
55
94
|
private readonly devMode;
|
|
@@ -63,7 +102,14 @@ export declare class WixNativeAuthEngine {
|
|
|
63
102
|
signIn(email: string, password: string): Promise<WixAccountSession>;
|
|
64
103
|
register(req: RegistrationRequest): Promise<WixAccountSession>;
|
|
65
104
|
submitTwoFactor(token: string, code: string, method: string): Promise<WixAccountSession>;
|
|
66
|
-
|
|
105
|
+
private readonly challenges;
|
|
106
|
+
/** The challenge `token` stands for, as the gate shows it. */
|
|
107
|
+
twoFactorChallenge(token: string): TwoFactorChallenge | undefined;
|
|
108
|
+
/** Re-sends the 2FA code via `method` (default: the challenge's current one) — the same call
|
|
109
|
+
* switches to another method; `VoiceCall` asks for the Phone code by a call. Resolves to the
|
|
110
|
+
* new challenge (every send issues a new token), or undefined when the server named none.
|
|
111
|
+
* Rejects when the server refused to send: a failed resend must not read as "a new code was sent". */
|
|
112
|
+
resendTwoFactor(token: string, method?: string): Promise<TwoFactorChallenge | undefined>;
|
|
67
113
|
sendPasswordReset(email: string): Promise<void>;
|
|
68
114
|
socialExchange(provider: SocialAuthProvider, credential: Record<string, string>): Promise<WixAccountSession>;
|
|
69
115
|
/** Owner / Wix-account login (one-app endpoint) — real, no captcha for non-PX
|
|
@@ -11,7 +11,6 @@ declare const _default: {
|
|
|
11
11
|
readonly "auth.gate.forgotPassword": "Forgot password?";
|
|
12
12
|
readonly "auth.gate.backToSignIn": "Back to sign in";
|
|
13
13
|
readonly "auth.gate.continueWith": "Continue with {provider}";
|
|
14
|
-
readonly "auth.gate.sendCodeVia": "Send code via";
|
|
15
14
|
readonly "auth.gate.resendCode": "Didn't get it? Resend code";
|
|
16
15
|
readonly "auth.gate.field.code": "Verification code";
|
|
17
16
|
readonly "auth.gate.pushWaiting": "Approve the sign-in on your other device.";
|
|
@@ -23,6 +22,19 @@ declare const _default: {
|
|
|
23
22
|
readonly "auth.gate.password.hide": "Hide password";
|
|
24
23
|
readonly "auth.gate.notice.codeResent": "A new code was sent.";
|
|
25
24
|
readonly "auth.gate.notice.codeSentVia": "Code sent via {method}.";
|
|
25
|
+
readonly "auth.gate.tryAnotherWay": "Try another way";
|
|
26
|
+
readonly "auth.gate.chooseAnotherWay": "Choose another way to verify";
|
|
27
|
+
readonly "auth.gate.method.sms": "SMS";
|
|
28
|
+
readonly "auth.gate.method.voice": "Phone call";
|
|
29
|
+
readonly "auth.gate.method.totp": "Authenticator app";
|
|
30
|
+
readonly "auth.gate.method.push": "Approve on another device";
|
|
31
|
+
readonly "auth.gate.codePrompt.sms": "We sent a code by SMS to {destination}.";
|
|
32
|
+
readonly "auth.gate.codePrompt.smsNoHint": "We sent a code to your phone by SMS.";
|
|
33
|
+
readonly "auth.gate.codePrompt.voice": "We're calling {destination} to read you a code.";
|
|
34
|
+
readonly "auth.gate.codePrompt.voiceNoHint": "We're calling your phone to read you a code.";
|
|
35
|
+
readonly "auth.gate.codePrompt.email": "We sent a code to {destination}.";
|
|
36
|
+
readonly "auth.gate.codePrompt.emailNoHint": "We sent a code to your email.";
|
|
37
|
+
readonly "auth.gate.codePrompt.totp": "Enter the code from your authenticator app.";
|
|
26
38
|
readonly "auth.gate.notice.resetSent": "If that email is registered, a reset link is on its way.";
|
|
27
39
|
readonly "auth.biometric.unlockWith": "Unlock with {method}";
|
|
28
40
|
readonly "auth.biometric.orPassword": "or sign in with your password";
|
|
@@ -94,6 +106,9 @@ declare const _default: {
|
|
|
94
106
|
readonly "auth.feedback.totp": "That code did not work. Enter the current code from your authenticator app.";
|
|
95
107
|
readonly "auth.feedback.network": "We could not connect. Check your connection and try again.";
|
|
96
108
|
readonly "auth.feedback.rate_limited": "Too many attempts. Wait a few minutes and try again.";
|
|
109
|
+
readonly "auth.feedback.delivery_failed": "We couldn't send the code. Try again, or try another way.";
|
|
110
|
+
readonly "auth.feedback.sms_region_unsupported": "SMS codes aren't available in your region. Try another way.";
|
|
111
|
+
readonly "auth.feedback.verification_expired": "This verification has expired. Go back and sign in again.";
|
|
97
112
|
readonly "auth.feedback.unavailable": "This action is not available here. Use a supported sign-in method or open the app.";
|
|
98
113
|
readonly "auth.feedback.cancelled": "Sign-in was cancelled. Try again when you are ready.";
|
|
99
114
|
readonly "auth.feedback.verification_required": "Complete verification to continue, then try again.";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type AuthFailureCode = "invalid_input" | "invalid_credentials" | "registration_failed" | "invalid_code" | "expired_code" | "network" | "rate_limited" | "unavailable" | "cancelled" | "verification_required" | "unknown";
|
|
1
|
+
export type AuthFailureCode = "invalid_input" | "invalid_credentials" | "registration_failed" | "invalid_code" | "expired_code" | "network" | "rate_limited" | "unavailable" | "cancelled" | "verification_required" | "delivery_failed" | "sms_region_unsupported" | "verification_expired" | "unknown";
|
|
2
2
|
export type AuthOperation = "signIn" | "register" | "reset" | "verify";
|
|
3
3
|
export declare function authMessage(key: string, translate?: (key: string) => string | undefined): string;
|
|
4
4
|
/** Only structured failure identities cross into UI copy. Never echo server/error text. */
|
|
@@ -136,7 +136,6 @@ var copy_generated_default = {
|
|
|
136
136
|
"auth.gate.forgotPassword": "Forgot password?",
|
|
137
137
|
"auth.gate.backToSignIn": "Back to sign in",
|
|
138
138
|
"auth.gate.continueWith": "Continue with {provider}",
|
|
139
|
-
"auth.gate.sendCodeVia": "Send code via",
|
|
140
139
|
"auth.gate.resendCode": "Didn't get it? Resend code",
|
|
141
140
|
"auth.gate.field.code": "Verification code",
|
|
142
141
|
"auth.gate.pushWaiting": "Approve the sign-in on your other device.",
|
|
@@ -148,6 +147,19 @@ var copy_generated_default = {
|
|
|
148
147
|
"auth.gate.password.hide": "Hide password",
|
|
149
148
|
"auth.gate.notice.codeResent": "A new code was sent.",
|
|
150
149
|
"auth.gate.notice.codeSentVia": "Code sent via {method}.",
|
|
150
|
+
"auth.gate.tryAnotherWay": "Try another way",
|
|
151
|
+
"auth.gate.chooseAnotherWay": "Choose another way to verify",
|
|
152
|
+
"auth.gate.method.sms": "SMS",
|
|
153
|
+
"auth.gate.method.voice": "Phone call",
|
|
154
|
+
"auth.gate.method.totp": "Authenticator app",
|
|
155
|
+
"auth.gate.method.push": "Approve on another device",
|
|
156
|
+
"auth.gate.codePrompt.sms": "We sent a code by SMS to {destination}.",
|
|
157
|
+
"auth.gate.codePrompt.smsNoHint": "We sent a code to your phone by SMS.",
|
|
158
|
+
"auth.gate.codePrompt.voice": "We're calling {destination} to read you a code.",
|
|
159
|
+
"auth.gate.codePrompt.voiceNoHint": "We're calling your phone to read you a code.",
|
|
160
|
+
"auth.gate.codePrompt.email": "We sent a code to {destination}.",
|
|
161
|
+
"auth.gate.codePrompt.emailNoHint": "We sent a code to your email.",
|
|
162
|
+
"auth.gate.codePrompt.totp": "Enter the code from your authenticator app.",
|
|
151
163
|
"auth.gate.notice.resetSent": "If that email is registered, a reset link is on its way.",
|
|
152
164
|
"auth.biometric.unlockWith": "Unlock with {method}",
|
|
153
165
|
"auth.biometric.orPassword": "or sign in with your password",
|
|
@@ -219,6 +231,9 @@ var copy_generated_default = {
|
|
|
219
231
|
"auth.feedback.totp": "That code did not work. Enter the current code from your authenticator app.",
|
|
220
232
|
"auth.feedback.network": "We could not connect. Check your connection and try again.",
|
|
221
233
|
"auth.feedback.rate_limited": "Too many attempts. Wait a few minutes and try again.",
|
|
234
|
+
"auth.feedback.delivery_failed": "We couldn't send the code. Try again, or try another way.",
|
|
235
|
+
"auth.feedback.sms_region_unsupported": "SMS codes aren't available in your region. Try another way.",
|
|
236
|
+
"auth.feedback.verification_expired": "This verification has expired. Go back and sign in again.",
|
|
222
237
|
"auth.feedback.unavailable": "This action is not available here. Use a supported sign-in method or open the app.",
|
|
223
238
|
"auth.feedback.cancelled": "Sign-in was cancelled. Try again when you are ready.",
|
|
224
239
|
"auth.feedback.verification_required": "Complete verification to continue, then try again.",
|
|
@@ -248,6 +263,11 @@ var failureKeys = {
|
|
|
248
263
|
unavailable: "auth.feedback.unavailable",
|
|
249
264
|
cancelled: "auth.feedback.cancelled",
|
|
250
265
|
verification_required: "auth.feedback.verification_required",
|
|
266
|
+
// A second factor's code could not be sent, SMS is not offered in the region, or the pending
|
|
267
|
+
// verification expired (Wix legacy 2FA 8034 / 8056 / 8002 — the native engines raise them).
|
|
268
|
+
delivery_failed: "auth.feedback.delivery_failed",
|
|
269
|
+
sms_region_unsupported: "auth.feedback.sms_region_unsupported",
|
|
270
|
+
verification_expired: "auth.feedback.verification_expired",
|
|
251
271
|
unknown: "auth.feedback.unknown"
|
|
252
272
|
};
|
|
253
273
|
var codes = new Set(Object.keys(failureKeys));
|
|
@@ -265,7 +285,12 @@ var aliases = {
|
|
|
265
285
|
RECAPTCHA_REQUIRED: "verification_required",
|
|
266
286
|
INVALID_CODE: "invalid_code",
|
|
267
287
|
EXPIRED_CODE: "expired_code",
|
|
268
|
-
TOO_MANY_REQUESTS: "rate_limited"
|
|
288
|
+
TOO_MANY_REQUESTS: "rate_limited",
|
|
289
|
+
// The TS WixNativeAuthEngine's legacy-2FA kinds (8004 / 8034 / 8056 / 8002).
|
|
290
|
+
rateLimited: "rate_limited",
|
|
291
|
+
deliveryFailed: "delivery_failed",
|
|
292
|
+
smsRegionUnsupported: "sms_region_unsupported",
|
|
293
|
+
verificationExpired: "verification_expired"
|
|
269
294
|
};
|
|
270
295
|
var iamCredentialCodes = /* @__PURE__ */ new Set(["-19999", "-19976"]);
|
|
271
296
|
function authMessage(key, translate) {
|
|
@@ -15827,6 +15827,108 @@ function assertExternalUrl(site, value, where) {
|
|
|
15827
15827
|
throw new Error(`${where}: target url ${JSON.stringify(value)} is on the site itself \u2014 declare it as a page (placement "overflow" for no row) and target { page }`);
|
|
15828
15828
|
}
|
|
15829
15829
|
}
|
|
15830
|
+
var SITE_STAND_INS = {
|
|
15831
|
+
himi_business_chat: /^(contact|contact-us|contact-me)$|^\/contact/,
|
|
15832
|
+
himi_shop: /^(shop|store|products)$|^\/(shop|store|category|products)/,
|
|
15833
|
+
himi_plans: /^(plans|pricing)$|^\/(plans|pricing|plans-pricing)/
|
|
15834
|
+
};
|
|
15835
|
+
var ALWAYS_HIDDEN_TARGETS = ["himi_cart", "himi_new_message"];
|
|
15836
|
+
var HIDDEN_ACTIONS = ["tier5.himiBrandedOrder.reorder"];
|
|
15837
|
+
var LABEL_FOR = { action: "actionLabel", cta: "ctaLabel" };
|
|
15838
|
+
function standInActions(site) {
|
|
15839
|
+
const tapFor = (id, target) => siteTopBarDefault({ ...site, topBar: { actions: [{ id, icon: "globe", label: id, target }] } })?.actions?.[0]?.onTap;
|
|
15840
|
+
const taps = /* @__PURE__ */ new Map();
|
|
15841
|
+
for (const [screenId, match] of Object.entries(SITE_STAND_INS)) {
|
|
15842
|
+
const page = site.pages.find((p) => match.test(p.id)) ?? site.pages.find((p) => match.test(p.path));
|
|
15843
|
+
const tap = page && tapFor(screenId, { page: page.id });
|
|
15844
|
+
if (tap) taps.set(screenId, tap);
|
|
15845
|
+
}
|
|
15846
|
+
for (const page of site.nativePages ?? []) {
|
|
15847
|
+
const tap = tapFor(page.screenId, { screen: page.screenId });
|
|
15848
|
+
if (tap && tap.actionId === "himi.tab") taps.set(page.screenId, tap);
|
|
15849
|
+
}
|
|
15850
|
+
return taps;
|
|
15851
|
+
}
|
|
15852
|
+
function siteShellLinks(site) {
|
|
15853
|
+
const standIns = standInActions(site);
|
|
15854
|
+
const verdict = (action) => {
|
|
15855
|
+
if (!action || typeof action !== "object") return "keep";
|
|
15856
|
+
const a = action;
|
|
15857
|
+
if (HIDDEN_ACTIONS.includes(a.actionId)) return "hide";
|
|
15858
|
+
if (a.actionId !== "himi.open") return "keep";
|
|
15859
|
+
const target = a.params?.screenId;
|
|
15860
|
+
if (!target) return "keep";
|
|
15861
|
+
if (standIns.has(target)) return standIns.get(target);
|
|
15862
|
+
if (ALWAYS_HIDDEN_TARGETS.includes(target) || target in SITE_STAND_INS) return "hide";
|
|
15863
|
+
return "keep";
|
|
15864
|
+
};
|
|
15865
|
+
const visit = (node) => {
|
|
15866
|
+
if (Array.isArray(node)) {
|
|
15867
|
+
for (let i = node.length - 1; i >= 0; i--) if (!visit(node[i])) node.splice(i, 1);
|
|
15868
|
+
return true;
|
|
15869
|
+
}
|
|
15870
|
+
if (!node || typeof node !== "object") return true;
|
|
15871
|
+
const n = node;
|
|
15872
|
+
const body = n.body;
|
|
15873
|
+
const props = body?.props;
|
|
15874
|
+
if (props) {
|
|
15875
|
+
for (const key of ["action", "cta"]) {
|
|
15876
|
+
const v = verdict(props[key]);
|
|
15877
|
+
if (v === "hide") {
|
|
15878
|
+
if (body.type === "Button") return false;
|
|
15879
|
+
delete props[key];
|
|
15880
|
+
delete props[LABEL_FOR[key]];
|
|
15881
|
+
} else if (v !== "keep") props[key] = { ...v };
|
|
15882
|
+
}
|
|
15883
|
+
}
|
|
15884
|
+
const modifiers = n.modifiers;
|
|
15885
|
+
if (modifiers) {
|
|
15886
|
+
const v = verdict(modifiers.onTap);
|
|
15887
|
+
if (v === "hide") return false;
|
|
15888
|
+
if (v !== "keep") modifiers.onTap = { ...v };
|
|
15889
|
+
}
|
|
15890
|
+
for (const [key, value] of Object.entries(n)) {
|
|
15891
|
+
if (key === "modifiers") continue;
|
|
15892
|
+
if (value && typeof value === "object" && !visit(value)) delete n[key];
|
|
15893
|
+
}
|
|
15894
|
+
return true;
|
|
15895
|
+
};
|
|
15896
|
+
return (descriptor) => {
|
|
15897
|
+
const copy = JSON.parse(JSON.stringify(descriptor));
|
|
15898
|
+
for (const key of Object.keys(copy)) {
|
|
15899
|
+
if (key === "logicBundle") continue;
|
|
15900
|
+
const part = copy[key];
|
|
15901
|
+
if (part && typeof part === "object" && !visit(part)) delete copy[key];
|
|
15902
|
+
}
|
|
15903
|
+
return copy;
|
|
15904
|
+
};
|
|
15905
|
+
}
|
|
15906
|
+
function withSiteTopBarActions(descriptor, defaults) {
|
|
15907
|
+
const extra = defaults?.actions ?? [];
|
|
15908
|
+
if (!descriptor.topBar || extra.length === 0) return descriptor;
|
|
15909
|
+
const own2 = descriptor.topBar.actions ?? [];
|
|
15910
|
+
const ids = new Set(own2.map((action) => action.id));
|
|
15911
|
+
const opensSelf = (action) => action.onTap?.params?.screenId === descriptor.screenId;
|
|
15912
|
+
const added = extra.filter((action) => !ids.has(action.id) && !opensSelf(action));
|
|
15913
|
+
if (added.length === 0) return descriptor;
|
|
15914
|
+
const room = Math.max(0, SITE_SCREEN_TRAILING_SLOTS - own2.length);
|
|
15915
|
+
const overflow = added.slice(room).map((action) => ({
|
|
15916
|
+
id: action.id,
|
|
15917
|
+
placement: "overflow",
|
|
15918
|
+
label: action.accessibilityLabel ?? action.label ?? action.id,
|
|
15919
|
+
...action.icon !== void 0 ? { icon: action.icon } : {},
|
|
15920
|
+
...action.onTap !== void 0 ? { onTap: action.onTap } : {}
|
|
15921
|
+
}));
|
|
15922
|
+
return {
|
|
15923
|
+
...descriptor,
|
|
15924
|
+
topBar: {
|
|
15925
|
+
...descriptor.topBar,
|
|
15926
|
+
actions: [...own2, ...added.slice(0, room)],
|
|
15927
|
+
...overflow.length > 0 ? { items: [...descriptor.topBar.items ?? [], ...overflow] } : {}
|
|
15928
|
+
}
|
|
15929
|
+
};
|
|
15930
|
+
}
|
|
15931
|
+
var SITE_SCREEN_TRAILING_SLOTS = 2;
|
|
15830
15932
|
|
|
15831
15933
|
// ../../core/ts/src/site-web-sdk.generated.ts
|
|
15832
15934
|
var PAGE_CAPABILITY_DISPATCHES = {
|
|
@@ -16228,6 +16330,7 @@ export {
|
|
|
16228
16330
|
SITE_PRIVATE_NATIVE_SCREENS,
|
|
16229
16331
|
SITE_SCREEN_FORMS,
|
|
16230
16332
|
SITE_SCREEN_PREFIX,
|
|
16333
|
+
SITE_SCREEN_TRAILING_SLOTS,
|
|
16231
16334
|
SITE_SHELL_MAX_TABS,
|
|
16232
16335
|
SITE_TOP_BAR_MAX_ACTIONS,
|
|
16233
16336
|
SITE_WEB_SDK_GENERATED_PREFIX,
|
|
@@ -16380,6 +16483,7 @@ export {
|
|
|
16380
16483
|
sitePageUrl,
|
|
16381
16484
|
siteScreenId,
|
|
16382
16485
|
siteScreens,
|
|
16486
|
+
siteShellLinks,
|
|
16383
16487
|
siteSidebar,
|
|
16384
16488
|
siteTopBarDefault,
|
|
16385
16489
|
siteWebSdkBundleName,
|
|
@@ -16413,6 +16517,7 @@ export {
|
|
|
16413
16517
|
widgetSnapshotSchema,
|
|
16414
16518
|
withSiteNativeScreenTopBar,
|
|
16415
16519
|
withSiteNativeScreenTopBarBuilder,
|
|
16520
|
+
withSiteTopBarActions,
|
|
16416
16521
|
withSiteWebSdk,
|
|
16417
16522
|
workerSubtreePolicyErrors,
|
|
16418
16523
|
workerSubtreeSha256,
|
|
@@ -978,7 +978,6 @@ var copy_generated_default = {
|
|
|
978
978
|
"auth.gate.forgotPassword": "Forgot password?",
|
|
979
979
|
"auth.gate.backToSignIn": "Back to sign in",
|
|
980
980
|
"auth.gate.continueWith": "Continue with {provider}",
|
|
981
|
-
"auth.gate.sendCodeVia": "Send code via",
|
|
982
981
|
"auth.gate.resendCode": "Didn't get it? Resend code",
|
|
983
982
|
"auth.gate.field.code": "Verification code",
|
|
984
983
|
"auth.gate.pushWaiting": "Approve the sign-in on your other device.",
|
|
@@ -990,6 +989,19 @@ var copy_generated_default = {
|
|
|
990
989
|
"auth.gate.password.hide": "Hide password",
|
|
991
990
|
"auth.gate.notice.codeResent": "A new code was sent.",
|
|
992
991
|
"auth.gate.notice.codeSentVia": "Code sent via {method}.",
|
|
992
|
+
"auth.gate.tryAnotherWay": "Try another way",
|
|
993
|
+
"auth.gate.chooseAnotherWay": "Choose another way to verify",
|
|
994
|
+
"auth.gate.method.sms": "SMS",
|
|
995
|
+
"auth.gate.method.voice": "Phone call",
|
|
996
|
+
"auth.gate.method.totp": "Authenticator app",
|
|
997
|
+
"auth.gate.method.push": "Approve on another device",
|
|
998
|
+
"auth.gate.codePrompt.sms": "We sent a code by SMS to {destination}.",
|
|
999
|
+
"auth.gate.codePrompt.smsNoHint": "We sent a code to your phone by SMS.",
|
|
1000
|
+
"auth.gate.codePrompt.voice": "We're calling {destination} to read you a code.",
|
|
1001
|
+
"auth.gate.codePrompt.voiceNoHint": "We're calling your phone to read you a code.",
|
|
1002
|
+
"auth.gate.codePrompt.email": "We sent a code to {destination}.",
|
|
1003
|
+
"auth.gate.codePrompt.emailNoHint": "We sent a code to your email.",
|
|
1004
|
+
"auth.gate.codePrompt.totp": "Enter the code from your authenticator app.",
|
|
993
1005
|
"auth.gate.notice.resetSent": "If that email is registered, a reset link is on its way.",
|
|
994
1006
|
"auth.biometric.unlockWith": "Unlock with {method}",
|
|
995
1007
|
"auth.biometric.orPassword": "or sign in with your password",
|
|
@@ -1061,6 +1073,9 @@ var copy_generated_default = {
|
|
|
1061
1073
|
"auth.feedback.totp": "That code did not work. Enter the current code from your authenticator app.",
|
|
1062
1074
|
"auth.feedback.network": "We could not connect. Check your connection and try again.",
|
|
1063
1075
|
"auth.feedback.rate_limited": "Too many attempts. Wait a few minutes and try again.",
|
|
1076
|
+
"auth.feedback.delivery_failed": "We couldn't send the code. Try again, or try another way.",
|
|
1077
|
+
"auth.feedback.sms_region_unsupported": "SMS codes aren't available in your region. Try another way.",
|
|
1078
|
+
"auth.feedback.verification_expired": "This verification has expired. Go back and sign in again.",
|
|
1064
1079
|
"auth.feedback.unavailable": "This action is not available here. Use a supported sign-in method or open the app.",
|
|
1065
1080
|
"auth.feedback.cancelled": "Sign-in was cancelled. Try again when you are ready.",
|
|
1066
1081
|
"auth.feedback.verification_required": "Complete verification to continue, then try again.",
|
|
@@ -1090,6 +1105,11 @@ var failureKeys = {
|
|
|
1090
1105
|
unavailable: "auth.feedback.unavailable",
|
|
1091
1106
|
cancelled: "auth.feedback.cancelled",
|
|
1092
1107
|
verification_required: "auth.feedback.verification_required",
|
|
1108
|
+
// A second factor's code could not be sent, SMS is not offered in the region, or the pending
|
|
1109
|
+
// verification expired (Wix legacy 2FA 8034 / 8056 / 8002 — the native engines raise them).
|
|
1110
|
+
delivery_failed: "auth.feedback.delivery_failed",
|
|
1111
|
+
sms_region_unsupported: "auth.feedback.sms_region_unsupported",
|
|
1112
|
+
verification_expired: "auth.feedback.verification_expired",
|
|
1093
1113
|
unknown: "auth.feedback.unknown"
|
|
1094
1114
|
};
|
|
1095
1115
|
var codes = new Set(Object.keys(failureKeys));
|
|
@@ -1107,7 +1127,12 @@ var aliases = {
|
|
|
1107
1127
|
RECAPTCHA_REQUIRED: "verification_required",
|
|
1108
1128
|
INVALID_CODE: "invalid_code",
|
|
1109
1129
|
EXPIRED_CODE: "expired_code",
|
|
1110
|
-
TOO_MANY_REQUESTS: "rate_limited"
|
|
1130
|
+
TOO_MANY_REQUESTS: "rate_limited",
|
|
1131
|
+
// The TS WixNativeAuthEngine's legacy-2FA kinds (8004 / 8034 / 8056 / 8002).
|
|
1132
|
+
rateLimited: "rate_limited",
|
|
1133
|
+
deliveryFailed: "delivery_failed",
|
|
1134
|
+
smsRegionUnsupported: "sms_region_unsupported",
|
|
1135
|
+
verificationExpired: "verification_expired"
|
|
1111
1136
|
};
|
|
1112
1137
|
var iamCredentialCodes = /* @__PURE__ */ new Set(["-19999", "-19976"]);
|
|
1113
1138
|
function authMessage(key, translate) {
|
|
@@ -9807,6 +9807,7 @@ function deriveAppMeta(name, m, platforms = {}, provisioning = {}) {
|
|
|
9807
9807
|
iap: config.iap,
|
|
9808
9808
|
base44: config.base44,
|
|
9809
9809
|
wixIap: config.wixIap,
|
|
9810
|
+
socialSignIn: config.socialSignIn,
|
|
9810
9811
|
// RFC 0042 Phase 2 — optional per-app Wix Platform productionization block.
|
|
9811
9812
|
// Read loosely (AppConfig in @himalaya/core doesn't type it yet) so apps can
|
|
9812
9813
|
// opt in without a core-types bump; absent ⇒ all members keep the dev seam.
|