@wix/himalaya-cli 0.1796.0 → 0.1798.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 (93) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/base44/src/index.d.ts +14 -1
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/sdk-types/src/capabilities.generated.d.ts +1 -1
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/online-programs/src/index.d.ts +6 -0
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/audio-record.mjs +1 -1
  5. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/base44.mjs +6 -0
  6. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/calendar.mjs +1 -1
  7. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/calls.mjs +1 -1
  8. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/contacts.mjs +1 -1
  9. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/location.mjs +1 -1
  10. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/motion.mjs +1 -1
  11. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/photos.mjs +1 -1
  12. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdk-types.mjs +1 -1
  13. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/tasks.mjs +1 -1
  14. package/dist/browser-plane/assets.json +5 -5
  15. package/dist/browser-plane/preview-deferred/{04eac2ea24e0edfcc5aaa757dc5d06c6bf35c3c5ce9ccbb448b305db05715492.bin → 7838236432e18e6d8b08481d145add5e31d7bfe9573403d3365e141f749e13ff.bin} +1 -1
  16. package/dist/browser-plane/sw.js +6 -6
  17. package/dist/cli.mjs +44 -43
  18. package/dist/preview-assets.generated.bin +0 -0
  19. package/guides/sdk-reference.json +11 -4
  20. package/guides/web-page-sdk-reference.md +1 -1
  21. package/package.json +2 -2
  22. package/templates/beauty-salon/l10n/en.json +1 -1
  23. package/templates/branded-lite/dev/index.ts +483 -0
  24. package/templates/branded-lite/l10n/ar.json +66 -0
  25. package/templates/branded-lite/l10n/cs.json +66 -0
  26. package/templates/branded-lite/l10n/da.json +66 -0
  27. package/templates/branded-lite/l10n/de.json +66 -0
  28. package/templates/branded-lite/l10n/el.json +66 -0
  29. package/templates/branded-lite/l10n/en.json +8 -1
  30. package/templates/branded-lite/l10n/es.json +66 -0
  31. package/templates/branded-lite/l10n/fi.json +66 -0
  32. package/templates/branded-lite/l10n/fr.json +66 -0
  33. package/templates/branded-lite/l10n/he.json +53 -0
  34. package/templates/branded-lite/l10n/hu.json +66 -0
  35. package/templates/branded-lite/l10n/id.json +66 -0
  36. package/templates/branded-lite/l10n/it.json +66 -0
  37. package/templates/branded-lite/l10n/ja.json +66 -0
  38. package/templates/branded-lite/l10n/ko.json +66 -0
  39. package/templates/branded-lite/l10n/lt.json +66 -0
  40. package/templates/branded-lite/l10n/nl.json +66 -0
  41. package/templates/branded-lite/l10n/no.json +66 -0
  42. package/templates/branded-lite/l10n/pl.json +66 -0
  43. package/templates/branded-lite/l10n/pt.json +66 -0
  44. package/templates/branded-lite/l10n/ru.json +66 -0
  45. package/templates/branded-lite/l10n/sv.json +66 -0
  46. package/templates/branded-lite/l10n/th.json +66 -0
  47. package/templates/branded-lite/l10n/tr.json +66 -0
  48. package/templates/branded-lite/l10n/uk.json +66 -0
  49. package/templates/branded-lite/l10n/vi.json +66 -0
  50. package/templates/branded-lite/l10n/zh.json +66 -0
  51. package/templates/branded-lite/tier5-src/himi-branded-lite-program-step/index.ts +396 -14
  52. package/templates/branded-lite/tier5-src/himi-branded-lite-program-step/quiz.ts +114 -0
  53. package/templates/brandy/dev/index.ts +109 -19
  54. package/templates/brandy/tier5-src/himi-brandy-base44-account/index.ts +70 -15
  55. package/templates/community-club/l10n/en.json +1 -1
  56. package/templates/events-meetups/l10n/en.json +1 -1
  57. package/templates/gym-fitness/l10n/en.json +1 -1
  58. package/templates/nonprofit-cause/l10n/en.json +1 -1
  59. package/templates/podcast-creator/l10n/en.json +1 -1
  60. package/templates/portfolio-creative/l10n/en.json +1 -1
  61. package/templates/restaurant/l10n/en.json +1 -1
  62. package/templates/retail-store/l10n/en.json +1 -1
  63. package/templates/yoga-studio/dev/index.ts +483 -0
  64. package/templates/yoga-studio/l10n/ar.json +66 -0
  65. package/templates/yoga-studio/l10n/cs.json +66 -0
  66. package/templates/yoga-studio/l10n/da.json +66 -0
  67. package/templates/yoga-studio/l10n/de.json +66 -0
  68. package/templates/yoga-studio/l10n/el.json +66 -0
  69. package/templates/yoga-studio/l10n/en.json +8 -1
  70. package/templates/yoga-studio/l10n/es.json +66 -0
  71. package/templates/yoga-studio/l10n/fi.json +66 -0
  72. package/templates/yoga-studio/l10n/fr.json +66 -0
  73. package/templates/yoga-studio/l10n/he.json +53 -0
  74. package/templates/yoga-studio/l10n/hu.json +66 -0
  75. package/templates/yoga-studio/l10n/id.json +66 -0
  76. package/templates/yoga-studio/l10n/it.json +66 -0
  77. package/templates/yoga-studio/l10n/ja.json +66 -0
  78. package/templates/yoga-studio/l10n/ko.json +66 -0
  79. package/templates/yoga-studio/l10n/lt.json +66 -0
  80. package/templates/yoga-studio/l10n/nl.json +66 -0
  81. package/templates/yoga-studio/l10n/no.json +66 -0
  82. package/templates/yoga-studio/l10n/pl.json +66 -0
  83. package/templates/yoga-studio/l10n/pt.json +66 -0
  84. package/templates/yoga-studio/l10n/ru.json +66 -0
  85. package/templates/yoga-studio/l10n/sv.json +66 -0
  86. package/templates/yoga-studio/l10n/th.json +66 -0
  87. package/templates/yoga-studio/l10n/tr.json +66 -0
  88. package/templates/yoga-studio/l10n/uk.json +66 -0
  89. package/templates/yoga-studio/l10n/vi.json +66 -0
  90. package/templates/yoga-studio/l10n/zh.json +66 -0
  91. package/templates/yoga-studio/tier5-src/_shared/branded-form.ts +321 -0
  92. package/templates/yoga-studio/tier5-src/himi-branded-lite-program-step/index.ts +396 -14
  93. package/templates/yoga-studio/tier5-src/himi-branded-lite-program-step/quiz.ts +114 -0
@@ -652,7 +652,14 @@
652
652
  "name": "AuthProvider",
653
653
  "kind": "type",
654
654
  "jsdoc": "",
655
- "decl": "export type AuthProvider = \"google\";",
655
+ "decl": "export type AuthProvider = \"google\" | \"microsoft\" | \"facebook\" | \"apple\" | \"sso\";",
656
+ "verificationChecked": true
657
+ },
658
+ {
659
+ "name": "SignInMethods",
660
+ "kind": "interface",
661
+ "jsdoc": "/** What `auth.providers()` answers. */",
662
+ "decl": "export interface SignInMethods {\n /** Email + password (and its verify / reset steps) is on. */\n password: boolean;\n /** The hosted providers the app turned on, in Base44's order. */\n providers: AuthProvider[];\n /** Whether this host can complete a provider sign-in at all. */\n providerSignIn: boolean;\n}",
656
663
  "verificationChecked": true
657
664
  },
658
665
  {
@@ -687,7 +694,7 @@
687
694
  "name": "auth",
688
695
  "kind": "const",
689
696
  "jsdoc": "",
690
- "decl": "export const auth = {\n /** Sign in with email + password. Native stores the token; you get the user. */\n async loginViaEmailPassword(email: string, password: string): Promise<LoginResult> {\n return unwrap<LoginResult>(await dispatch(\"capability.base44.authLoginViaEmailPassword\", { email, password }));\n },\n /** Sign in with a provider using the native system browser. The token stays native. */\n async loginWithProvider(provider: AuthProvider = \"google\"): Promise<LoginResult> {\n return unwrap<LoginResult>(await dispatch(\"capability.base44.authLoginWithProvider\", { provider }));\n },\n async register(email: string, password: string): Promise<JsonObject> {\n return unwrap<JsonObject>(await dispatch(\"capability.base44.authRegister\", { email, password }));\n },\n /** Send a one-time login code to `email`. */\n async loginViaOtp(email: string): Promise<JsonObject> {\n return unwrap<JsonObject>(await dispatch(\"capability.base44.authLoginViaOtp\", { email }));\n },\n /** Verify the one-time code. Native stores the token; you get the user. */\n async verifyOtp(email: string, otpCode: string): Promise<LoginResult> {\n return unwrap<LoginResult>(await dispatch(\"capability.base44.authVerifyOtp\", { email, otpCode }));\n },\n /** Request a password-reset email. */\n async resetPassword(email: string): Promise<void> {\n unwrap<unknown>(await dispatch(\"capability.base44.authResetPassword\", { email }));\n },\n async me(): Promise<Base44User> {\n return unwrap<Base44User>(await dispatch(\"capability.base44.authMe\"));\n },\n async updateMe(patch: JsonObject): Promise<Base44Us\n/* … */",
697
+ "decl": "export const auth = {\n /** Sign in with email + password. Native stores the token; you get the user. */\n async loginViaEmailPassword(email: string, password: string): Promise<LoginResult> {\n return unwrap<LoginResult>(await dispatch(\"capability.base44.authLoginViaEmailPassword\", { email, password }));\n },\n /** Sign in with a provider using the native system browser. The token stays native. */\n async loginWithProvider(provider: AuthProvider = \"google\"): Promise<LoginResult> {\n return unwrap<LoginResult>(await dispatch(\"capability.base44.authLoginWithProvider\", { provider }));\n },\n /** The sign-in methods this Base44 app turned on, from its public app record. `providerSignIn`\n * is false where this host cannot complete a provider sign-in (the web host, or a build whose\n * site host is not bound) — hide provider buttons then. */\n async providers(): Promise<SignInMethods> {\n return unwrap<SignInMethods>(await dispatch(\"capability.base44.authProviders\"));\n },\n async register(email: string, password: string): Promise<JsonObject> {\n return unwrap<JsonObject>(await dispatch(\"capability.base44.authRegister\", { email, password }));\n },\n /** Send a one-time login code to `email`. */\n async loginViaOtp(email: string): Promise<JsonObject> {\n return unwrap<JsonObject>(await dispatch(\"capability.base44.authLoginViaOtp\", { email }));\n },\n /** Verify the one-time code. Native stores the token; you get the user. */\n async verifyOtp(email: string, otpCode: string): Promise<LoginResult> {\n return unwrap<LoginResult>(await dispatch(\"capability.base44.auth\n/* … */",
691
698
  "verificationChecked": true
692
699
  },
693
700
  {
@@ -29922,7 +29929,7 @@
29922
29929
  {
29923
29930
  "name": "getQuiz",
29924
29931
  "kind": "function",
29925
- "jsdoc": "/** GET /online-programs/v1/quizzes/{quizId} — a quiz with its questions. `quizId` is the step's `quizOptions.id`.\n * NOT callable by a member: on amit1 the gateway answers a member token with an empty 403 (the lock lists\n * only the APP identity for this route). The submission route below does accept a member.\n * @scope owner — the quiz definition is app-identity only, so a member session cannot read it. */",
29932
+ "jsdoc": "/** GET /online-programs/v1/quizzes/{quizId} — a quiz with its questions. `quizId` is the step's `quizOptions.id`.\n * NOT callable by a member: on amit1 the gateway answers a member token with an empty 403 (the lock lists\n * only the APP identity for this route). The submission route below does accept a member.\n * A member reads the questions from the quiz's Wix Forms form instead: a quiz IS a form in the namespace\n * `wix.achievements.quizzes.v1.quiz` with the same id, so `getForm(quizId)` of `@himalaya/wix-forms` answers\n * a member with the questions and the settings and without the right answers (verified on amit1, 2026-11-19).\n * @scope owner — the quiz definition is app-identity only, so a member session cannot read it. */",
29926
29933
  "decl": "export function getQuiz(quizId: string, readOptions?: WixCallOptions): Promise<{ quiz?: WixQuiz }>;",
29927
29934
  "http": "GET /online-programs/v1/quizzes/{…}",
29928
29935
  "scope": "owner",
@@ -29945,7 +29952,7 @@
29945
29952
  {
29946
29953
  "name": "createQuizSubmission",
29947
29954
  "kind": "function",
29948
- "jsdoc": "/** POST /online-programs/v1/quiz-submissions — submit answers; the response carries the evaluation.\n * @scope member */",
29955
+ "jsdoc": "/** POST /online-programs/v1/quiz-submissions — submit answers; the response carries the evaluation.\n * A submission does not resolve the step: pass its id to `completeStep` (`quizSubmissionId`), and the site\n * resolves the step COMPLETED (passed) or FAILED with the score. A pass answers `evaluationStatus` COMPLETED,\n * not PASSED (amit1, 2026-11-19). Past the quiz's `settings.attempts` the site answers 428.\n * @scope member */",
29949
29956
  "decl": "export function createQuizSubmission(submission: { quizId: string; groupId?: string; answers: Record<string, WixQuizAnswer> }, options?: WixCallOptions): Promise<{ quizSubmission?: WixQuizSubmission }>;",
29950
29957
  "http": "POST /online-programs/v1/quiz-submissions",
29951
29958
  "scope": "member",
@@ -17,7 +17,7 @@ the SDK sources, so it matches the shipped SDKs.
17
17
  - [`app_info`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Fapp_info?format=md) — This app's OWN build + OTA metadata, and the device it runs on. 2 methods · not in Brandy.
18
18
  - [`audio_record`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Faudio_record?format=md) — Microphone recording. 16 methods · returns FileHandles.
19
19
  - [`barcode_detection`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Fbarcode_detection?format=md) — ON-DEVICE barcode / QR detection in a STILL image. 2 methods.
20
- - [`base44`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Fbase44?format=md) — A Base44 app's backend. 11 methods · Brandy: conditional.
20
+ - [`base44`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Fbase44?format=md) — A Base44 app's backend. 12 methods · Brandy: conditional.
21
21
  - [`biometrics`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Fbiometrics?format=md) — Biometric authentication capability. 2 methods.
22
22
  - [`browser_auth`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Fbrowser_auth?format=md) — Native browser SSO. 1 method.
23
23
  - [`calendar`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Fcalendar?format=md) — Device calendar. 10 methods.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.1796.0",
3
+ "version": "0.1798.0",
4
4
  "type": "module",
5
5
  "description": "himi — the Himalaya authoring CLI. Build a Tier-5 content package on your own machine, push it to the production serve as a draft, preview it on web + Himi Player, and read worker logs back — the remote dev loop. Wraps @himalaya/serve-cli for transport.",
6
6
  "keywords": [
@@ -82,5 +82,5 @@
82
82
  "artifactId": "himalaya-cli"
83
83
  }
84
84
  },
85
- "falconPackageHash": "683c3e0c3831881a905858dd066476e6b0dda48db4937ff51cfd7d35"
85
+ "falconPackageHash": "ee96a4e66af18835d2727dec98b62fd9900b6cc66be874d7587556d2"
86
86
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$source": "en",
3
- "$generated": "2026-11-19T18:22:48.096Z",
3
+ "$generated": "2026-11-19T19:24:07.421Z",
4
4
  "messages": {
5
5
  "h_0028d743eb44": {
6
6
  "source": "Sale",
@@ -38918,6 +38918,489 @@ const SCREENS = runtimeSetting({
38918
38918
  "hiddenPath": "$service:himiBrandedProgramStep.hideBodyText"
38919
38919
  }
38920
38920
  },
38921
+ {
38922
+ "id": "himi_program_step.quiz_loading",
38923
+ "body": {
38924
+ "package": "himalaya",
38925
+ "type": "VStack",
38926
+ "props": {
38927
+ "spacing": 12,
38928
+ "alignment": "leading",
38929
+ "children": [
38930
+ {
38931
+ "id": "himi_program_step.quiz_loading_question",
38932
+ "body": {
38933
+ "package": "himalaya",
38934
+ "type": "Skeleton",
38935
+ "props": {
38936
+ "width": 220,
38937
+ "height": 16,
38938
+ "cornerRadius": 4
38939
+ }
38940
+ }
38941
+ },
38942
+ {
38943
+ "id": "himi_program_step.quiz_loading_options",
38944
+ "body": {
38945
+ "package": "himalaya",
38946
+ "type": "Skeleton",
38947
+ "props": {
38948
+ "height": 20,
38949
+ "cornerRadius": 4,
38950
+ "count": 3
38951
+ }
38952
+ }
38953
+ }
38954
+ ]
38955
+ }
38956
+ },
38957
+ "modifiers": {
38958
+ "hiddenPath": "$service:himiBrandedProgramStep.hideQuizLoading"
38959
+ }
38960
+ },
38961
+ {
38962
+ "id": "himi_program_step.result",
38963
+ "body": {
38964
+ "package": "himalaya",
38965
+ "type": "VStack",
38966
+ "props": {
38967
+ "spacing": 8,
38968
+ "alignment": "leading",
38969
+ "children": [
38970
+ {
38971
+ "id": "",
38972
+ "body": {
38973
+ "package": "himalaya",
38974
+ "type": "HStack",
38975
+ "props": {
38976
+ "spacing": 8,
38977
+ "children": [
38978
+ {
38979
+ "id": "",
38980
+ "body": {
38981
+ "package": "himalaya",
38982
+ "type": "Icon",
38983
+ "props": {
38984
+ "name": "success",
38985
+ "size": 22,
38986
+ "tint": "success"
38987
+ }
38988
+ },
38989
+ "modifiers": {
38990
+ "accessibilityRole": "decorative"
38991
+ }
38992
+ },
38993
+ {
38994
+ "id": "himi_program_step.result_pass",
38995
+ "body": {
38996
+ "package": "himalaya",
38997
+ "type": "Text",
38998
+ "props": {
38999
+ "text": "$service:himiBrandedProgramStep.resultTitle",
39000
+ "style": "bodyEmphasis"
39001
+ }
39002
+ },
39003
+ "modifiers": {
39004
+ "weight": 1
39005
+ }
39006
+ }
39007
+ ]
39008
+ }
39009
+ },
39010
+ "modifiers": {
39011
+ "hiddenPath": "$service:himiBrandedProgramStep.hideResultPass"
39012
+ }
39013
+ },
39014
+ {
39015
+ "id": "",
39016
+ "body": {
39017
+ "package": "himalaya",
39018
+ "type": "HStack",
39019
+ "props": {
39020
+ "spacing": 8,
39021
+ "children": [
39022
+ {
39023
+ "id": "",
39024
+ "body": {
39025
+ "package": "himalaya",
39026
+ "type": "Icon",
39027
+ "props": {
39028
+ "name": "info",
39029
+ "size": 22,
39030
+ "tint": "accentPrimary"
39031
+ }
39032
+ },
39033
+ "modifiers": {
39034
+ "accessibilityRole": "decorative"
39035
+ }
39036
+ },
39037
+ {
39038
+ "id": "himi_program_step.result_fail",
39039
+ "body": {
39040
+ "package": "himalaya",
39041
+ "type": "Text",
39042
+ "props": {
39043
+ "text": "$service:himiBrandedProgramStep.resultTitle",
39044
+ "style": "bodyEmphasis"
39045
+ }
39046
+ },
39047
+ "modifiers": {
39048
+ "weight": 1
39049
+ }
39050
+ }
39051
+ ]
39052
+ }
39053
+ },
39054
+ "modifiers": {
39055
+ "hiddenPath": "$service:himiBrandedProgramStep.hideResultFail"
39056
+ }
39057
+ },
39058
+ {
39059
+ "id": "himi_program_step.result_body",
39060
+ "body": {
39061
+ "package": "himalaya",
39062
+ "type": "Text",
39063
+ "props": {
39064
+ "text": "$service:himiBrandedProgramStep.resultBody",
39065
+ "style": "body",
39066
+ "color": "textSecondary",
39067
+ "collapseWhenEmpty": true
39068
+ }
39069
+ }
39070
+ }
39071
+ ]
39072
+ }
39073
+ },
39074
+ "modifiers": {
39075
+ "background": {
39076
+ "token": "surfaceElevated"
39077
+ },
39078
+ "border": {
39079
+ "width": 1,
39080
+ "color": {
39081
+ "token": "border"
39082
+ }
39083
+ },
39084
+ "cornerRadius": 4,
39085
+ "padding": {
39086
+ "leading": 16,
39087
+ "trailing": 16,
39088
+ "top": 16,
39089
+ "bottom": 16
39090
+ },
39091
+ "fillMaxWidth": true,
39092
+ "hiddenPath": "$service:himiBrandedProgramStep.hideResult"
39093
+ }
39094
+ },
39095
+ {
39096
+ "id": "himi_program_step.quiz",
39097
+ "body": {
39098
+ "package": "himalaya",
39099
+ "type": "VStack",
39100
+ "props": {
39101
+ "spacing": 20,
39102
+ "alignment": "leading",
39103
+ "children": [
39104
+ {
39105
+ "id": "himi_program_step.quiz_intro",
39106
+ "body": {
39107
+ "package": "himalaya",
39108
+ "type": "Text",
39109
+ "props": {
39110
+ "text": "$service:himiBrandedProgramStep.quizIntro",
39111
+ "style": "body",
39112
+ "color": "textSecondary",
39113
+ "collapseWhenEmpty": true
39114
+ }
39115
+ }
39116
+ },
39117
+ {
39118
+ "id": "himi_program_step.quiz_questions",
39119
+ "body": {
39120
+ "package": "himalaya",
39121
+ "type": "Grid",
39122
+ "props": {
39123
+ "columns": 1,
39124
+ "spacing": 24,
39125
+ "itemsPath": "$service:himiBrandedProgramStep.quizRows",
39126
+ "items": [
39127
+ {
39128
+ "id": "himi_program_step.quiz_question.$item.id",
39129
+ "body": {
39130
+ "package": "himalaya",
39131
+ "type": "VStack",
39132
+ "props": {
39133
+ "spacing": 10,
39134
+ "alignment": "leading",
39135
+ "children": [
39136
+ {
39137
+ "id": "",
39138
+ "body": {
39139
+ "package": "himalaya",
39140
+ "type": "Text",
39141
+ "props": {
39142
+ "text": "$item.label",
39143
+ "style": "bodyEmphasis"
39144
+ }
39145
+ }
39146
+ },
39147
+ {
39148
+ "id": "himi_program_step.quiz_options.$item.id",
39149
+ "body": {
39150
+ "package": "himalaya",
39151
+ "type": "Grid",
39152
+ "props": {
39153
+ "columns": 1,
39154
+ "spacing": 14,
39155
+ "itemsPath": "$item.options",
39156
+ "items": [
39157
+ {
39158
+ "id": "",
39159
+ "body": {
39160
+ "package": "himalaya",
39161
+ "type": "HStack",
39162
+ "props": {
39163
+ "spacing": 0,
39164
+ "alignment": "center",
39165
+ "children": [
39166
+ {
39167
+ "id": "himi_program_step.quiz_option.$item.id",
39168
+ "body": {
39169
+ "package": "himalaya",
39170
+ "type": "SelectionControl",
39171
+ "props": {
39172
+ "kind": "radio",
39173
+ "label": "$item.label",
39174
+ "valuePath": "$item.selected",
39175
+ "groupId": "$item.target",
39176
+ "onChange": {
39177
+ "actionId": "tier5.himiBrandedProgramStep.chooseAnswer",
39178
+ "params": {
39179
+ "target": "$item.target",
39180
+ "option": "$item.value"
39181
+ }
39182
+ }
39183
+ }
39184
+ }
39185
+ },
39186
+ {
39187
+ "id": "",
39188
+ "body": {
39189
+ "package": "himalaya",
39190
+ "type": "Spacer",
39191
+ "props": {}
39192
+ }
39193
+ }
39194
+ ]
39195
+ }
39196
+ }
39197
+ }
39198
+ ]
39199
+ }
39200
+ },
39201
+ "modifiers": {
39202
+ "hiddenPath": "$item.notChoice"
39203
+ }
39204
+ },
39205
+ {
39206
+ "id": "himi_program_step.quiz_checks.$item.id",
39207
+ "body": {
39208
+ "package": "himalaya",
39209
+ "type": "Grid",
39210
+ "props": {
39211
+ "columns": 1,
39212
+ "spacing": 14,
39213
+ "itemsPath": "$item.options",
39214
+ "items": [
39215
+ {
39216
+ "id": "",
39217
+ "body": {
39218
+ "package": "himalaya",
39219
+ "type": "HStack",
39220
+ "props": {
39221
+ "spacing": 0,
39222
+ "alignment": "center",
39223
+ "children": [
39224
+ {
39225
+ "id": "himi_program_step.quiz_check.$item.id",
39226
+ "body": {
39227
+ "package": "himalaya",
39228
+ "type": "SelectionControl",
39229
+ "props": {
39230
+ "kind": "checkbox",
39231
+ "label": "$item.label",
39232
+ "valuePath": "$item.selected",
39233
+ "onChange": {
39234
+ "actionId": "tier5.himiBrandedProgramStep.toggleAnswer",
39235
+ "params": {
39236
+ "target": "$item.target",
39237
+ "option": "$item.value"
39238
+ }
39239
+ }
39240
+ }
39241
+ }
39242
+ },
39243
+ {
39244
+ "id": "",
39245
+ "body": {
39246
+ "package": "himalaya",
39247
+ "type": "Spacer",
39248
+ "props": {}
39249
+ }
39250
+ }
39251
+ ]
39252
+ }
39253
+ }
39254
+ }
39255
+ ]
39256
+ }
39257
+ },
39258
+ "modifiers": {
39259
+ "hiddenPath": "$item.notMulti"
39260
+ }
39261
+ },
39262
+ {
39263
+ "id": "himi_program_step.quiz_field.$item.id.text",
39264
+ "body": {
39265
+ "package": "himalaya",
39266
+ "type": "TextField",
39267
+ "props": {
39268
+ "value": "$item.value",
39269
+ "onChange": {
39270
+ "actionId": "tier5.himiBrandedProgramStep.setAnswer",
39271
+ "params": {
39272
+ "target": "$item.target"
39273
+ }
39274
+ },
39275
+ "autoCapitalization": "sentences"
39276
+ }
39277
+ },
39278
+ "modifiers": {
39279
+ "accessibilityLabel": "$item.label",
39280
+ "hiddenPath": "$item.notText"
39281
+ }
39282
+ },
39283
+ {
39284
+ "id": "himi_program_step.quiz_field.$item.id.area",
39285
+ "body": {
39286
+ "package": "himalaya",
39287
+ "type": "TextField",
39288
+ "props": {
39289
+ "value": "$item.value",
39290
+ "onChange": {
39291
+ "actionId": "tier5.himiBrandedProgramStep.setAnswer",
39292
+ "params": {
39293
+ "target": "$item.target"
39294
+ }
39295
+ },
39296
+ "multilineMaxLines": 6,
39297
+ "autoCapitalization": "sentences"
39298
+ }
39299
+ },
39300
+ "modifiers": {
39301
+ "accessibilityLabel": "$item.label",
39302
+ "hiddenPath": "$item.notArea"
39303
+ }
39304
+ },
39305
+ {
39306
+ "id": "himi_program_step.quiz_field.$item.id.number",
39307
+ "body": {
39308
+ "package": "himalaya",
39309
+ "type": "TextField",
39310
+ "props": {
39311
+ "value": "$item.value",
39312
+ "onChange": {
39313
+ "actionId": "tier5.himiBrandedProgramStep.setAnswer",
39314
+ "params": {
39315
+ "target": "$item.target"
39316
+ }
39317
+ },
39318
+ "keyboard": "decimal"
39319
+ }
39320
+ },
39321
+ "modifiers": {
39322
+ "accessibilityLabel": "$item.label",
39323
+ "hiddenPath": "$item.notNumber"
39324
+ }
39325
+ },
39326
+ {
39327
+ "id": "",
39328
+ "body": {
39329
+ "package": "himalaya",
39330
+ "type": "Text",
39331
+ "props": {
39332
+ "text": "$item.error",
39333
+ "style": "caption",
39334
+ "color": "danger"
39335
+ }
39336
+ },
39337
+ "modifiers": {
39338
+ "hiddenPath": "$item.noError"
39339
+ }
39340
+ }
39341
+ ]
39342
+ }
39343
+ }
39344
+ }
39345
+ ]
39346
+ }
39347
+ }
39348
+ },
39349
+ {
39350
+ "id": "himi_program_step.quiz_submit",
39351
+ "body": {
39352
+ "package": "himalaya",
39353
+ "type": "Button",
39354
+ "props": {
39355
+ "title": "Submit answers",
39356
+ "style": "primary",
39357
+ "fullWidth": true,
39358
+ "disabledPath": "$service:himiBrandedProgramStep.busy",
39359
+ "action": {
39360
+ "actionId": "tier5.himiBrandedProgramStep.submitQuiz"
39361
+ }
39362
+ }
39363
+ }
39364
+ }
39365
+ ]
39366
+ }
39367
+ },
39368
+ "modifiers": {
39369
+ "hiddenPath": "$service:himiBrandedProgramStep.hideQuiz"
39370
+ }
39371
+ },
39372
+ {
39373
+ "id": "himi_program_step.quiz_error",
39374
+ "body": {
39375
+ "package": "himalaya",
39376
+ "type": "Text",
39377
+ "props": {
39378
+ "text": "$service:himiBrandedProgramStep.quizError",
39379
+ "style": "footnote",
39380
+ "color": "danger",
39381
+ "collapseWhenEmpty": true
39382
+ }
39383
+ }
39384
+ },
39385
+ {
39386
+ "id": "himi_program_step.quiz_retry",
39387
+ "body": {
39388
+ "package": "himalaya",
39389
+ "type": "Button",
39390
+ "props": {
39391
+ "title": "Try again",
39392
+ "style": "secondary",
39393
+ "fullWidth": true,
39394
+ "disabledPath": "$service:himiBrandedProgramStep.busy",
39395
+ "action": {
39396
+ "actionId": "tier5.himiBrandedProgramStep.retryQuiz"
39397
+ }
39398
+ }
39399
+ },
39400
+ "modifiers": {
39401
+ "hiddenPath": "$service:himiBrandedProgramStep.hideRetry"
39402
+ }
39403
+ },
38921
39404
  {
38922
39405
  "id": "himi_program_step.frozen",
38923
39406
  "body": {