@wix/himalaya-cli 0.1397.0 → 0.1399.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/serve-runtime/src/wix-bridge.d.ts +30 -0
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/icon-catalog.generated.d.ts +1 -1
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +2 -0
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/validation.d.ts +1 -0
  5. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/auth/src/copy.generated.d.ts +109 -0
  6. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/auth/src/feedback.d.ts +15 -0
  7. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/auth/src/index.d.ts +3 -0
  8. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/screens/src/index.d.ts +44 -0
  9. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/auth.mjs +304 -18
  10. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core/validation.mjs +1 -1
  11. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +72 -1
  12. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/screens.mjs +377 -20
  13. package/dist/cli.mjs +983 -342
  14. package/dist/preview-assets.generated.bin +0 -0
  15. package/guides/component-reference.json +1 -1
  16. package/guides/component-reference.md +2 -0
  17. package/guides/headless-loop.md +1 -1
  18. package/guides/importable-sdks.md +2 -1
  19. package/guides/one-app-to-himi-app.md +30 -0
  20. package/guides/one-app-viewer.md +8 -1
  21. package/guides/sdk-reference.json +92 -1
  22. package/package.json +2 -2
  23. package/templates/beauty-salon/dev/index.ts +41 -1
  24. package/templates/beauty-salon/tier5-src/himi-store-account/index.ts +90 -76
  25. package/templates/beauty-salon-owner/dev/index.ts +304 -7
  26. package/templates/beauty-salon-owner/tier5-src/_shared/aria-chat.ts +39 -33
  27. package/templates/beauty-salon-owner/tier5-src/_shared/aria-widget-model.ts +26 -4
  28. package/templates/beauty-salon-owner/tier5-src/_shared/aria-widget-view.ts +63 -16
  29. package/templates/branded-lite/dev/index.ts +41 -1
  30. package/templates/branded-lite/tier5-src/himi-store-account/index.ts +90 -76
  31. package/templates/community-club/dev/index.ts +41 -1
  32. package/templates/community-club/tier5-src/himi-store-account/index.ts +90 -76
  33. package/templates/community-club-owner/dev/index.ts +304 -7
  34. package/templates/community-club-owner/tier5-src/_shared/aria-chat.ts +39 -33
  35. package/templates/community-club-owner/tier5-src/_shared/aria-widget-model.ts +26 -4
  36. package/templates/community-club-owner/tier5-src/_shared/aria-widget-view.ts +63 -16
  37. package/templates/events-meetups/dev/index.ts +41 -1
  38. package/templates/events-meetups/tier5-src/himi-store-account/index.ts +90 -76
  39. package/templates/events-meetups-owner/dev/index.ts +304 -7
  40. package/templates/events-meetups-owner/tier5-src/_shared/aria-chat.ts +39 -33
  41. package/templates/events-meetups-owner/tier5-src/_shared/aria-widget-model.ts +26 -4
  42. package/templates/events-meetups-owner/tier5-src/_shared/aria-widget-view.ts +63 -16
  43. package/templates/gym-fitness/dev/index.ts +41 -1
  44. package/templates/gym-fitness/tier5-src/himi-store-account/index.ts +90 -76
  45. package/templates/gym-fitness-owner/dev/index.ts +304 -7
  46. package/templates/gym-fitness-owner/tier5-src/_shared/aria-chat.ts +39 -33
  47. package/templates/gym-fitness-owner/tier5-src/_shared/aria-widget-model.ts +26 -4
  48. package/templates/gym-fitness-owner/tier5-src/_shared/aria-widget-view.ts +63 -16
  49. package/templates/nonprofit-cause/dev/index.ts +41 -1
  50. package/templates/nonprofit-cause/tier5-src/himi-store-account/index.ts +90 -76
  51. package/templates/nonprofit-cause-owner/dev/index.ts +304 -7
  52. package/templates/nonprofit-cause-owner/tier5-src/_shared/aria-chat.ts +39 -33
  53. package/templates/nonprofit-cause-owner/tier5-src/_shared/aria-widget-model.ts +26 -4
  54. package/templates/nonprofit-cause-owner/tier5-src/_shared/aria-widget-view.ts +63 -16
  55. package/templates/owner-lite/dev/index.ts +304 -7
  56. package/templates/owner-lite/tier5-src/_shared/aria-chat.ts +39 -33
  57. package/templates/owner-lite/tier5-src/_shared/aria-widget-model.ts +26 -4
  58. package/templates/owner-lite/tier5-src/_shared/aria-widget-view.ts +63 -16
  59. package/templates/podcast-creator/dev/index.ts +41 -1
  60. package/templates/podcast-creator/tier5-src/himi-store-account/index.ts +90 -76
  61. package/templates/podcast-creator-owner/dev/index.ts +304 -7
  62. package/templates/podcast-creator-owner/tier5-src/_shared/aria-chat.ts +39 -33
  63. package/templates/podcast-creator-owner/tier5-src/_shared/aria-widget-model.ts +26 -4
  64. package/templates/podcast-creator-owner/tier5-src/_shared/aria-widget-view.ts +63 -16
  65. package/templates/portfolio-creative/dev/index.ts +41 -1
  66. package/templates/portfolio-creative/tier5-src/himi-store-account/index.ts +90 -76
  67. package/templates/portfolio-creative-owner/dev/index.ts +304 -7
  68. package/templates/portfolio-creative-owner/tier5-src/_shared/aria-chat.ts +39 -33
  69. package/templates/portfolio-creative-owner/tier5-src/_shared/aria-widget-model.ts +26 -4
  70. package/templates/portfolio-creative-owner/tier5-src/_shared/aria-widget-view.ts +63 -16
  71. package/templates/restaurant/dev/index.ts +41 -1
  72. package/templates/restaurant/tier5-src/himi-store-account/index.ts +90 -76
  73. package/templates/restaurant-owner/dev/index.ts +304 -7
  74. package/templates/restaurant-owner/tier5-src/_shared/aria-chat.ts +39 -33
  75. package/templates/restaurant-owner/tier5-src/_shared/aria-widget-model.ts +26 -4
  76. package/templates/restaurant-owner/tier5-src/_shared/aria-widget-view.ts +63 -16
  77. package/templates/retail-store/dev/index.ts +41 -1
  78. package/templates/retail-store/tier5-src/himi-store-account/index.ts +90 -76
  79. package/templates/retail-store-owner/dev/index.ts +304 -7
  80. package/templates/retail-store-owner/tier5-src/_shared/aria-chat.ts +39 -33
  81. package/templates/retail-store-owner/tier5-src/_shared/aria-widget-model.ts +26 -4
  82. package/templates/retail-store-owner/tier5-src/_shared/aria-widget-view.ts +63 -16
  83. package/templates/yoga-studio/dev/index.ts +41 -1
  84. package/templates/yoga-studio/tier5-src/himi-store-account/index.ts +90 -76
  85. package/templates/yoga-studio-owner/dev/index.ts +304 -7
  86. package/templates/yoga-studio-owner/tier5-src/_shared/aria-chat.ts +39 -33
  87. package/templates/yoga-studio-owner/tier5-src/_shared/aria-widget-model.ts +26 -4
  88. package/templates/yoga-studio-owner/tier5-src/_shared/aria-widget-view.ts +63 -16
@@ -1,3 +1,4 @@
1
+ import { authFailure, authMessage, identityErrors, type AuthOperation } from "@himalaya/auth";
1
2
  // Tier-5 bundle: himi-store — visitor/member account state.
2
3
  //
3
4
  // SINGLE-SITE BY DESIGN. A Branded Lite build talks to exactly one Wix site, and the
@@ -75,23 +76,50 @@ function resumeAfterAuth(next: S): S {
75
76
  // Actions are not serialized: two quick Sign in taps both run against the pre-tap
76
77
  // state, so without this both would submit credentials and both would resume.
77
78
  let authInFlight = false;
79
+ // Never projected or persisted. The renderer retains its own masked draft for retry.
80
+ let passwordDraft = "";
81
+ let editRevision = 0;
82
+ // Descriptor configuration belongs to the worker session. Keep it even when a
83
+ // delayed profile probe is discarded because the user edited the form.
84
+ let memberAccountLinksRequested = false;
85
+ const translated = (key: string) => copyParam(key, authMessage(key));
78
86
 
79
- async function authenticate(s: S, submit: () => Promise<unknown>, notMemberMessage: string, failedMessage: string): Promise<S | undefined> {
87
+ function validateAuth(s: S, operation: AuthOperation): S {
88
+ const errors = identityErrors({ email: s.email, password: passwordDraft }, operation);
89
+ return derive({ ...s, emailError: errors.email ? translated(errors.email) : "",
90
+ passwordError: errors.password ? translated(errors.password) : "",
91
+ emailFocus: errors.email ? bumpToken(s.emailFocus) : s.emailFocus,
92
+ passwordFocus: !errors.email && errors.password ? bumpToken(s.passwordFocus) : s.passwordFocus,
93
+ message: "" });
94
+ }
95
+ function rejectResult(raw: unknown, operation: AuthOperation) {
96
+ const value = raw as { status?: string; error?: unknown; payload?: { error?: unknown } } | null;
97
+ if (value?.status === "error" || value?.error || value?.payload?.error) throw authFailure(raw, operation, translated);
98
+ }
99
+ async function authenticate(s: S, operation: "signIn" | "register"): Promise<S | undefined> {
80
100
  if (authInFlight) return undefined;
101
+ const checked = validateAuth(s, operation);
102
+ if (checked.emailError || checked.passwordError) return checked;
81
103
  authInFlight = true;
104
+ const revision = editRevision;
105
+ const password = passwordDraft;
82
106
  try {
83
- await submit();
84
- const next = await probe(optimisticMember(s, s.email));
85
- if (!next.isMember) return derive({ ...next, message: notMemberMessage });
86
- return resumeAfterAuth(derive({ ...next, message: "" }));
87
- } catch {
88
- // Clear the password: service state is snapshotted to disk (the worker-state
89
- // store), so a failed attempt must not leave it there in cleartext. The Password
90
- // field binds `valuePath` to it, so the field empties too and a retry re-types.
91
- return derive({ ...s, password: "", message: failedMessage });
92
- } finally {
93
- authInFlight = false;
94
- }
107
+ await svc.beginAuth(); // publish busy before waiting for the network
108
+ const raw = await dispatch(operation === "signIn" ? "himi.wix.signInDirect" : "himi.wix.registerDirect", {
109
+ email: s.email.trim(), password,
110
+ ...(operation === "register" ? { firstName: s.firstName, lastName: s.lastName } : {}),
111
+ });
112
+ rejectResult(raw, operation);
113
+ if (revision !== editRevision) return derive({ ...svc.getState(), authBusy: false });
114
+ const next = await probe(svc.getState());
115
+ if (revision !== editRevision) return derive({ ...svc.getState(), authBusy: false });
116
+ if (!next.isMember) throw { code: "unknown" };
117
+ passwordDraft = "";
118
+ return resumeAfterAuth(completedAuth(next));
119
+ } catch (error) {
120
+ return derive({ ...svc.getState(), authBusy: false,
121
+ message: revision === editRevision ? authFailure(error, operation, translated).reason : "" });
122
+ } finally { authInFlight = false; }
95
123
  }
96
124
 
97
125
  // Next value of a focus token: monotonic, and never empty once requested. A counter
@@ -180,10 +208,14 @@ interface S extends IapRestoreFields {
180
208
  noReturnPath: boolean;
181
209
  returnCta: string;
182
210
  email: string;
183
- /** Held only from typing to the submit. Service state is persisted, so every
184
- * submitted sign-in/register clears it (success, not-a-member, and failure), as
185
- * do recovery and sign-out. Sign-in <-> register keeps it: the field stays up. */
211
+ /** Legacy snapshot slot, always empty. The active form keeps its password in
212
+ * transient memory for retry; hydration never restores a persisted secret. */
186
213
  password: string;
214
+ authBusy: boolean;
215
+ busyMessage?: string;
216
+ emailError: string;
217
+ passwordError: string;
218
+ passwordFocus: string;
187
219
  firstName: string;
188
220
  lastName: string;
189
221
  // Focus TOKENS (`TextFieldProps.focus_path`), not flags: the bound field focuses
@@ -247,6 +279,8 @@ function derive(s: S): S {
247
279
  const hasReturnPath = !!s.isMember && !!s.returnScreenId;
248
280
  return {
249
281
  ...s,
282
+ password: "",
283
+ busyMessage: s.authBusy ? translated("auth.feedback.busy") : "",
250
284
  isLoading: s.status === "loading",
251
285
  notLoading: s.status !== "loading",
252
286
  notMember: !s.isMember,
@@ -309,9 +343,10 @@ async function orderRows(memberEmail: string): Promise<AccountActivityRow[]> {
309
343
  }
310
344
 
311
345
  async function probe(s: S, arg?: unknown): Promise<S> {
346
+ memberAccountLinksRequested ||= s.memberAccountLinks || strField(arg, "memberAccountLinks") === "1";
312
347
  const intent = authIntentFromArg(arg, s);
313
348
  const profile = await loadMemberProfile(copyParam("storeAccount.guestDetail", "Sign in to keep your cart and orders connected."));
314
- const memberAccountLinks = s.memberAccountLinks || strField(arg, "memberAccountLinks") === "1";
349
+ const memberAccountLinks = memberAccountLinksRequested;
315
350
  const restorePurchases = s.restorePurchases || strField(arg, "restorePurchases") === "1";
316
351
  if (restorePurchases) enterCommerce();
317
352
  const routes = memberAccountLinks ? await memberAccountRoutes() : { addresses: false, wallet: false };
@@ -353,21 +388,11 @@ async function probe(s: S, arg?: unknown): Promise<S> {
353
388
  });
354
389
  }
355
390
 
356
- function optimisticMember(s: S, email: string): S {
391
+ function completedAuth(s: S): S {
357
392
  return derive({
358
393
  ...s,
359
- status: "ready",
360
- isMember: true,
361
- identityLine: copyParam("storeAccount.signedIn", "Signed in"),
362
- detailLine: email,
363
- memberName: email,
364
- memberEmail: email,
365
- memberImage: "",
366
- memberInitials: "M",
367
- hasMemberImage: false,
368
- noMemberImage: true,
369
- email,
370
394
  password: "",
395
+ authBusy: false, emailError: "", passwordError: "", passwordFocus: "",
371
396
  firstName: "",
372
397
  lastName: "",
373
398
  isRegistering: false,
@@ -377,6 +402,8 @@ function optimisticMember(s: S, email: string): S {
377
402
  }
378
403
 
379
404
  const svc = defineService<S, {
405
+ beginAuth: (s: S) => S;
406
+ submit: (s: S) => Promise<S | undefined>;
380
407
  load: (s: S, arg?: unknown) => Promise<S>;
381
408
  refresh: (s: S, arg?: unknown) => Promise<S>;
382
409
  setEmail: (s: S, arg?: unknown) => S;
@@ -395,7 +422,7 @@ const svc = defineService<S, {
395
422
  restorePublish: (s: S) => S;
396
423
  iapRestore: (s: S) => Promise<undefined>;
397
424
  }>("himiStoreAccount", {
398
- notHydrated: [...IAP_RESTORE_KEYS],
425
+ notHydrated: ["password", "authBusy", "emailError", "passwordError", "passwordFocus", ...IAP_RESTORE_KEYS],
399
426
  state: derive({
400
427
  status: "loading",
401
428
  isMember: false,
@@ -420,6 +447,7 @@ const svc = defineService<S, {
420
447
  returnCta: "Continue",
421
448
  email: "",
422
449
  password: "",
450
+ authBusy: false, emailError: "", passwordError: "", passwordFocus: "",
423
451
  firstName: "",
424
452
  lastName: "",
425
453
  lastNameFocus: "",
@@ -445,12 +473,14 @@ const svc = defineService<S, {
445
473
  ...NO_IAP_RESTORE,
446
474
  }),
447
475
  actions: {
448
- load: (s, arg) => { stashCopy(arg); return probe(s, arg); },
449
- refresh: (s, arg) => { stashCopy(arg); return probe(s, arg); },
450
- setEmail: (s, arg) => derive({ ...s, email: strOf(arg), message: "" }),
451
- setPassword: (s, arg) => derive({ ...s, password: strOf(arg), message: "" }),
452
- setFirstName: (s, arg) => derive({ ...s, firstName: strOf(arg), message: "" }),
453
- setLastName: (s, arg) => derive({ ...s, lastName: strOf(arg), message: "" }),
476
+ submit: (s): Promise<S | undefined> => s.isRecovering ? svc.resetPassword() : authenticate(s, s.isRegistering ? "register" : "signIn"),
477
+ beginAuth: (s) => derive({ ...s, authBusy: true, message: "", emailError: "", passwordError: "" }),
478
+ load: async (s, arg): Promise<S> => { stashCopy(arg); const revision = editRevision; const next = await probe(s, arg); return authInFlight || revision !== editRevision ? svc.getState() : next; },
479
+ refresh: async (s, arg): Promise<S> => { stashCopy(arg); const revision = editRevision; const next = await probe(s, arg); return authInFlight || revision !== editRevision ? svc.getState() : next; },
480
+ setEmail: (s, arg) => { editRevision++; const next = { ...s, email: strOf(arg).trim(), message: "" }; return derive({ ...next, emailError: s.emailError ? (identityErrors({ email: next.email }, "reset").email ? translated(identityErrors({ email: next.email }, "reset").email!) : "") : "" }); },
481
+ setPassword: (s, arg) => { editRevision++; passwordDraft = strOf(arg); return derive({ ...s, message: "", passwordError: s.passwordError && !passwordDraft ? translated("auth.validation.passwordRequired") : "" }); },
482
+ setFirstName: (s, arg) => { editRevision++; return derive({ ...s, firstName: strOf(arg), message: "" }); },
483
+ setLastName: (s, arg) => { editRevision++; return derive({ ...s, lastName: strOf(arg), message: "" }); },
454
484
  // The register form's Next keys. Only first/last name carry one: they share a
455
485
  // single visibility gate (notRegistering) so their target is always on screen.
456
486
  // Email deliberately does NOT chain to password — see the comment on the
@@ -463,48 +493,32 @@ const svc = defineService<S, {
463
493
  // register and coming back would open focused on Last name, skipping First name.
464
494
  // Only the tokens whose fields actually unmount here are cleared: see
465
495
  // NO_FOCUS_MODE_SWITCH for why Email's is deliberately NOT among them.
466
- showRegister: (s) => derive({ ...s, isRegistering: true, isRecovering: false, message: "", ...NO_FOCUS_MODE_SWITCH }),
467
- showSignIn: (s) => derive({ ...s, isRegistering: false, isRecovering: false, message: "", ...NO_FOCUS_MODE_SWITCH }),
468
- showRecovery: (s) => derive({ ...s, isRegistering: false, isRecovering: true, password: "", message: "", ...NO_FOCUS_MODE_SWITCH }),
469
- resetPassword: async (s) => {
470
- const email = s.email.trim();
471
- if (!email || !email.includes("@")) return derive({ ...s, message: copyParam("storeAccount.validationEmail", "Enter a valid email address.") });
496
+ showRegister: (s) => { if (authInFlight) return s; editRevision++; return derive({ ...s, isRegistering: true, isRecovering: false, message: "", emailError: "", passwordError: "", ...NO_FOCUS_MODE_SWITCH }) },
497
+ showSignIn: (s) => { if (authInFlight) return s; editRevision++; return derive({ ...s, isRegistering: false, isRecovering: false, message: "", emailError: "", passwordError: "", ...NO_FOCUS_MODE_SWITCH }) },
498
+ showRecovery: (s) => { if (authInFlight) return s; editRevision++; return derive({ ...s, isRegistering: false, isRecovering: true, password: "", message: "", emailError: "", passwordError: "", ...NO_FOCUS_MODE_SWITCH }) },
499
+ resetPassword: async (s): Promise<S> => {
500
+ if (authInFlight) return s;
501
+ const checked = validateAuth(s, "reset");
502
+ if (checked.emailError) return checked;
503
+ authInFlight = true;
504
+ const revision = editRevision;
472
505
  try {
473
- await dispatch("himi.wix.resetPassword", { email });
474
- return derive({
475
- ...s,
476
- email,
477
- isRecovering: false,
478
- message: copyParam("storeAccount.resetSent", "If that email is registered, a reset link is on its way."),
479
- });
480
- } catch {
481
- return derive({ ...s, message: copyParam("storeAccount.resetFailed", "Reset email could not be sent. Try again.") });
482
- }
483
- },
484
- signIn: async (s) => {
485
- if (!s.email || !s.password) return derive({ ...s, message: copyParam("storeAccount.validationEmailPassword", "Enter your email and password.") });
486
- return authenticate(
487
- s,
488
- () => dispatch("himi.wix.signInDirect", { email: s.email, password: s.password }),
489
- copyParam("storeAccount.signInCheckDetails", "Sign in failed. Check your details."),
490
- copyParam("storeAccount.signInFailed", "Sign in failed. Try again."),
491
- );
492
- },
493
- register: async (s) => {
494
- if (!s.email || !s.password) return derive({ ...s, message: copyParam("storeAccount.validationEmailPassword", "Enter your email and password.") });
495
- return authenticate(
496
- s,
497
- () => dispatch("himi.wix.registerDirect", {
498
- email: s.email,
499
- password: s.password,
500
- firstName: s.firstName,
501
- lastName: s.lastName,
502
- }),
503
- copyParam("storeAccount.registerTrySignIn", "Account creation failed. Try signing in."),
504
- copyParam("storeAccount.registerFailed", "Account creation failed. Try another email."),
505
- );
506
+ await svc.beginAuth();
507
+ const raw = await dispatch("himi.wix.resetPassword", { email: s.email.trim() });
508
+ rejectResult(raw, "reset");
509
+ if (revision !== editRevision) return derive({ ...svc.getState(), authBusy: false });
510
+ return derive({ ...svc.getState(), authBusy: false, isRecovering: false,
511
+ message: copyParam("storeAccount.resetSent", "If that email is registered, a reset link is on its way.") });
512
+ } catch (error) {
513
+ return derive({ ...svc.getState(), authBusy: false,
514
+ message: revision === editRevision ? authFailure(error, "reset", translated).reason : "" });
515
+ } finally { authInFlight = false; }
506
516
  },
507
- signOut: async (s) => {
517
+ signIn: (s) => authenticate(s, "signIn"),
518
+ register: (s) => authenticate(s, "register"),
519
+ signOut: async (s): Promise<S> => {
520
+ if (authInFlight) return svc.getState();
521
+ passwordDraft = ""; editRevision++;
508
522
  routeInputConsumed = true;
509
523
  try { await dispatch("himi.wix.signOut"); } catch { /* ignore */ }
510
524
  // Do NOT re-probe via getMyData after logout — visitor-scoped my-data can
@@ -57330,6 +57330,7 @@ const SCREENS = runtimeSetting({
57330
57330
  "title": "$item.buttonLabel",
57331
57331
  "style": "secondary",
57332
57332
  "size": "sm",
57333
+ "fullWidth": false,
57333
57334
  "action": {
57334
57335
  "actionId": "tier5.himiOwnerLiteAria.widgetRespond",
57335
57336
  "params": {
@@ -58525,15 +58526,95 @@ const SCREENS = runtimeSetting({
58525
58526
  }
58526
58527
  },
58527
58528
  {
58528
- "id": "",
58529
+ "id": "himi_owner_lite_aria.widget.PLANS.benefits_$item.id",
58529
58530
  "body": {
58530
58531
  "package": "himalaya",
58531
- "type": "Text",
58532
+ "type": "LazyList",
58532
58533
  "props": {
58533
- "text": "$item.listText",
58534
- "style": "footnote",
58535
- "color": "textSecondary",
58536
- "maxLines": 8
58534
+ "itemsPath": "$item.benefits",
58535
+ "spacing": 4,
58536
+ "items": [
58537
+ {
58538
+ "id": "",
58539
+ "body": {
58540
+ "package": "himalaya",
58541
+ "type": "HStack",
58542
+ "props": {
58543
+ "spacing": 8,
58544
+ "children": [
58545
+ {
58546
+ "id": "",
58547
+ "body": {
58548
+ "package": "himalaya",
58549
+ "type": "Icon",
58550
+ "props": {
58551
+ "name": "$item.icon",
58552
+ "size": 12,
58553
+ "tint": "success"
58554
+ }
58555
+ },
58556
+ "modifiers": {
58557
+ "accessibilityRole": "decorative",
58558
+ "hiddenPath": "$item.successHidden"
58559
+ }
58560
+ },
58561
+ {
58562
+ "id": "",
58563
+ "body": {
58564
+ "package": "himalaya",
58565
+ "type": "Icon",
58566
+ "props": {
58567
+ "name": "$item.icon",
58568
+ "size": 12,
58569
+ "tint": "textPrimary"
58570
+ }
58571
+ },
58572
+ "modifiers": {
58573
+ "accessibilityRole": "decorative",
58574
+ "hiddenPath": "$item.plainHidden"
58575
+ }
58576
+ },
58577
+ {
58578
+ "id": "",
58579
+ "body": {
58580
+ "package": "himalaya",
58581
+ "type": "Icon",
58582
+ "props": {
58583
+ "name": "$item.icon",
58584
+ "size": 12,
58585
+ "tint": "accentPrimary"
58586
+ }
58587
+ },
58588
+ "modifiers": {
58589
+ "accessibilityRole": "decorative",
58590
+ "theme": {
58591
+ "colors": {
58592
+ "accentPrimary": "$item.colorHex"
58593
+ }
58594
+ },
58595
+ "hiddenPath": "$item.customHidden"
58596
+ }
58597
+ },
58598
+ {
58599
+ "id": "",
58600
+ "body": {
58601
+ "package": "himalaya",
58602
+ "type": "Text",
58603
+ "props": {
58604
+ "text": "$item.text",
58605
+ "style": "footnote",
58606
+ "maxLines": 8
58607
+ }
58608
+ },
58609
+ "modifiers": {
58610
+ "weight": 1
58611
+ }
58612
+ }
58613
+ ]
58614
+ }
58615
+ }
58616
+ }
58617
+ ]
58537
58618
  }
58538
58619
  },
58539
58620
  "modifiers": {
@@ -58933,6 +59014,181 @@ const SCREENS = runtimeSetting({
58933
59014
  }
58934
59015
  }
58935
59016
  },
59017
+ {
59018
+ "id": "himi_owner_lite_aria.widget.VISUAL_DISPLAY.variants",
59019
+ "body": {
59020
+ "package": "himalaya",
59021
+ "type": "LazyList",
59022
+ "props": {
59023
+ "itemsPath": "$service:himiOwnerLiteAria.widget.options",
59024
+ "spacing": 6,
59025
+ "items": [
59026
+ {
59027
+ "id": "himi_owner_lite_aria.widget.VISUAL_DISPLAY.variant_$item.id",
59028
+ "body": {
59029
+ "package": "himalaya",
59030
+ "type": "Card",
59031
+ "props": {
59032
+ "children": [
59033
+ {
59034
+ "id": "",
59035
+ "body": {
59036
+ "package": "himalaya",
59037
+ "type": "VStack",
59038
+ "props": {
59039
+ "spacing": 8,
59040
+ "children": [
59041
+ {
59042
+ "id": "",
59043
+ "body": {
59044
+ "package": "himalaya",
59045
+ "type": "Image",
59046
+ "props": {
59047
+ "url": "$item.pictureUrl",
59048
+ "fillWidth": true,
59049
+ "aspectRatio": 1.5,
59050
+ "contentMode": "fill",
59051
+ "contentDescription": "$item.title"
59052
+ }
59053
+ },
59054
+ "modifiers": {
59055
+ "hiddenPath": "$item.pictureHidden"
59056
+ }
59057
+ },
59058
+ {
59059
+ "id": "",
59060
+ "body": {
59061
+ "package": "himalaya",
59062
+ "type": "HStack",
59063
+ "props": {
59064
+ "spacing": 0,
59065
+ "children": [
59066
+ {
59067
+ "id": "",
59068
+ "body": {
59069
+ "package": "himalaya",
59070
+ "type": "Text",
59071
+ "props": {
59072
+ "text": "$item.badge",
59073
+ "style": "footnote",
59074
+ "color": "surfacePrimary"
59075
+ }
59076
+ },
59077
+ "modifiers": {
59078
+ "background": {
59079
+ "token": "textSecondary"
59080
+ },
59081
+ "cornerRadius": 4,
59082
+ "padding": {
59083
+ "leading": 8,
59084
+ "trailing": 8,
59085
+ "top": 2,
59086
+ "bottom": 2
59087
+ }
59088
+ }
59089
+ },
59090
+ {
59091
+ "id": "",
59092
+ "body": {
59093
+ "package": "himalaya",
59094
+ "type": "Spacer",
59095
+ "props": {}
59096
+ }
59097
+ }
59098
+ ]
59099
+ }
59100
+ },
59101
+ "modifiers": {
59102
+ "hiddenPath": "$item.badgeHidden"
59103
+ }
59104
+ },
59105
+ {
59106
+ "id": "",
59107
+ "body": {
59108
+ "package": "himalaya",
59109
+ "type": "Text",
59110
+ "props": {
59111
+ "text": "$item.title",
59112
+ "style": "bodyEmphasis"
59113
+ }
59114
+ }
59115
+ },
59116
+ {
59117
+ "id": "",
59118
+ "body": {
59119
+ "package": "himalaya",
59120
+ "type": "Text",
59121
+ "props": {
59122
+ "text": "$item.subtitle",
59123
+ "style": "body",
59124
+ "color": "textSecondary"
59125
+ }
59126
+ },
59127
+ "modifiers": {
59128
+ "hiddenPath": "$item.subtitleHidden"
59129
+ }
59130
+ },
59131
+ {
59132
+ "id": "",
59133
+ "body": {
59134
+ "package": "himalaya",
59135
+ "type": "Text",
59136
+ "props": {
59137
+ "text": "$item.text",
59138
+ "style": "body"
59139
+ }
59140
+ },
59141
+ "modifiers": {
59142
+ "hiddenPath": "$item.textHidden"
59143
+ }
59144
+ },
59145
+ {
59146
+ "id": "",
59147
+ "body": {
59148
+ "package": "himalaya",
59149
+ "type": "Text",
59150
+ "props": {
59151
+ "text": "$item.listText",
59152
+ "style": "body"
59153
+ }
59154
+ },
59155
+ "modifiers": {
59156
+ "hiddenPath": "$item.listHidden"
59157
+ }
59158
+ },
59159
+ {
59160
+ "id": "himi_owner_lite_aria.widget.VISUAL_DISPLAY.variant_$item.id.button",
59161
+ "body": {
59162
+ "package": "himalaya",
59163
+ "type": "Button",
59164
+ "props": {
59165
+ "title": "$item.buttonLabel",
59166
+ "style": "secondary",
59167
+ "size": "sm",
59168
+ "action": {
59169
+ "actionId": "tier5.himiOwnerLiteAria.widgetRespond",
59170
+ "params": {
59171
+ "value": "$item.id"
59172
+ }
59173
+ }
59174
+ }
59175
+ },
59176
+ "modifiers": {
59177
+ "hiddenPath": "$item.buttonHidden"
59178
+ }
59179
+ }
59180
+ ]
59181
+ }
59182
+ }
59183
+ }
59184
+ ]
59185
+ }
59186
+ }
59187
+ }
59188
+ ]
59189
+ }
59190
+ }
59191
+ },
58936
59192
  {
58937
59193
  "id": "",
58938
59194
  "body": {
@@ -60164,7 +60420,23 @@ const SCREENS = runtimeSetting({
60164
60420
  },
60165
60421
  "modifiers": {
60166
60422
  "accessibilityLabel": "$service:himiOwnerLiteAria.widget.text",
60167
- "hiddenPath": "$service:himiOwnerLiteAria.widget.chartPieHidden"
60423
+ "hiddenPath": "$service:himiOwnerLiteAria.widget.chartPlainPieHidden"
60424
+ }
60425
+ },
60426
+ {
60427
+ "id": "himi_owner_lite_aria.widget.CHART.doughnut",
60428
+ "body": {
60429
+ "package": "himalaya",
60430
+ "type": "DonutChart",
60431
+ "props": {
60432
+ "slicesPath": "$service:himiOwnerLiteAria.widget.slices",
60433
+ "thickness": 18,
60434
+ "size": 160
60435
+ }
60436
+ },
60437
+ "modifiers": {
60438
+ "accessibilityLabel": "$service:himiOwnerLiteAria.widget.text",
60439
+ "hiddenPath": "$service:himiOwnerLiteAria.widget.chartRingHidden"
60168
60440
  }
60169
60441
  },
60170
60442
  {
@@ -60183,6 +60455,21 @@ const SCREENS = runtimeSetting({
60183
60455
  "hiddenPath": "$service:himiOwnerLiteAria.widget.chartSeriesHidden"
60184
60456
  }
60185
60457
  },
60458
+ {
60459
+ "id": "himi_owner_lite_aria.widget.CHART.legend",
60460
+ "body": {
60461
+ "package": "himalaya",
60462
+ "type": "Legend",
60463
+ "props": {
60464
+ "itemsPath": "$service:himiOwnerLiteAria.widget.chartLegend",
60465
+ "orientation": "vertical"
60466
+ }
60467
+ },
60468
+ "modifiers": {
60469
+ "accessibilityLabel": "$service:himiOwnerLiteAria.widget.text",
60470
+ "hiddenPath": "$service:himiOwnerLiteAria.widget.chartPieHidden"
60471
+ }
60472
+ },
60186
60473
  {
60187
60474
  "id": "",
60188
60475
  "body": {
@@ -60275,6 +60562,16 @@ const SCREENS = runtimeSetting({
60275
60562
  }
60276
60563
  ]
60277
60564
  }
60565
+ },
60566
+ "modifiers": {
60567
+ "theme": {
60568
+ "colors": {
60569
+ "ariaChartBlue": "#126EFF",
60570
+ "ariaChartGreen": "#26A659",
60571
+ "ariaChartPurple": "#9926D6",
60572
+ "ariaChartGray": "#878AA6"
60573
+ }
60574
+ }
60278
60575
  }
60279
60576
  },
60280
60577
  "accessibilityAnnouncement": "$service:himiOwnerLiteAria.widget.text"