@wix/himalaya-cli 0.1788.0 → 0.1789.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 (74) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/online-programs/src/index.d.ts +18 -0
  2. package/dist/cli.mjs +38 -10
  3. package/guides/himi-json-output.md +7 -0
  4. package/guides/sdk-reference.json +1 -1
  5. package/package.json +2 -2
  6. package/templates/beauty-salon/l10n/en.json +1 -1
  7. package/templates/branded-lite/dev/index.ts +207 -2
  8. package/templates/branded-lite/l10n/ar.json +76 -0
  9. package/templates/branded-lite/l10n/cs.json +76 -0
  10. package/templates/branded-lite/l10n/da.json +76 -0
  11. package/templates/branded-lite/l10n/de.json +76 -0
  12. package/templates/branded-lite/l10n/el.json +76 -0
  13. package/templates/branded-lite/l10n/en.json +43 -1
  14. package/templates/branded-lite/l10n/es.json +76 -0
  15. package/templates/branded-lite/l10n/fi.json +76 -0
  16. package/templates/branded-lite/l10n/fr.json +76 -0
  17. package/templates/branded-lite/l10n/he.json +62 -0
  18. package/templates/branded-lite/l10n/hu.json +76 -0
  19. package/templates/branded-lite/l10n/id.json +76 -0
  20. package/templates/branded-lite/l10n/it.json +76 -0
  21. package/templates/branded-lite/l10n/ja.json +76 -0
  22. package/templates/branded-lite/l10n/ko.json +76 -0
  23. package/templates/branded-lite/l10n/lt.json +76 -0
  24. package/templates/branded-lite/l10n/nl.json +76 -0
  25. package/templates/branded-lite/l10n/no.json +76 -0
  26. package/templates/branded-lite/l10n/pl.json +76 -0
  27. package/templates/branded-lite/l10n/pt.json +76 -0
  28. package/templates/branded-lite/l10n/ru.json +76 -0
  29. package/templates/branded-lite/l10n/sv.json +76 -0
  30. package/templates/branded-lite/l10n/th.json +76 -0
  31. package/templates/branded-lite/l10n/tr.json +76 -0
  32. package/templates/branded-lite/l10n/uk.json +76 -0
  33. package/templates/branded-lite/l10n/vi.json +76 -0
  34. package/templates/branded-lite/l10n/zh.json +76 -0
  35. package/templates/branded-lite/tier5-src/himi-branded-lite-program-participant/index.ts +169 -4
  36. package/templates/branded-lite/tier5-src/himi-branded-lite-program-participant/model.ts +32 -1
  37. package/templates/community-club/l10n/en.json +1 -1
  38. package/templates/events-meetups/l10n/en.json +1 -1
  39. package/templates/gym-fitness/l10n/en.json +1 -1
  40. package/templates/nonprofit-cause/l10n/en.json +1 -1
  41. package/templates/podcast-creator/l10n/en.json +1 -1
  42. package/templates/portfolio-creative/l10n/en.json +1 -1
  43. package/templates/restaurant/l10n/en.json +1 -1
  44. package/templates/retail-store/l10n/en.json +1 -1
  45. package/templates/yoga-studio/dev/index.ts +203 -1
  46. package/templates/yoga-studio/l10n/ar.json +76 -0
  47. package/templates/yoga-studio/l10n/cs.json +76 -0
  48. package/templates/yoga-studio/l10n/da.json +76 -0
  49. package/templates/yoga-studio/l10n/de.json +76 -0
  50. package/templates/yoga-studio/l10n/el.json +76 -0
  51. package/templates/yoga-studio/l10n/en.json +43 -1
  52. package/templates/yoga-studio/l10n/es.json +76 -0
  53. package/templates/yoga-studio/l10n/fi.json +76 -0
  54. package/templates/yoga-studio/l10n/fr.json +76 -0
  55. package/templates/yoga-studio/l10n/he.json +62 -0
  56. package/templates/yoga-studio/l10n/hu.json +76 -0
  57. package/templates/yoga-studio/l10n/id.json +76 -0
  58. package/templates/yoga-studio/l10n/it.json +76 -0
  59. package/templates/yoga-studio/l10n/ja.json +76 -0
  60. package/templates/yoga-studio/l10n/ko.json +76 -0
  61. package/templates/yoga-studio/l10n/lt.json +76 -0
  62. package/templates/yoga-studio/l10n/nl.json +76 -0
  63. package/templates/yoga-studio/l10n/no.json +76 -0
  64. package/templates/yoga-studio/l10n/pl.json +76 -0
  65. package/templates/yoga-studio/l10n/pt.json +76 -0
  66. package/templates/yoga-studio/l10n/ru.json +76 -0
  67. package/templates/yoga-studio/l10n/sv.json +76 -0
  68. package/templates/yoga-studio/l10n/th.json +76 -0
  69. package/templates/yoga-studio/l10n/tr.json +76 -0
  70. package/templates/yoga-studio/l10n/uk.json +76 -0
  71. package/templates/yoga-studio/l10n/vi.json +76 -0
  72. package/templates/yoga-studio/l10n/zh.json +76 -0
  73. package/templates/yoga-studio/tier5-src/himi-branded-lite-program-participant/index.ts +169 -4
  74. package/templates/yoga-studio/tier5-src/himi-branded-lite-program-participant/model.ts +32 -1
@@ -117,6 +117,24 @@ export interface WixProgramFull extends WixProgram {
117
117
  stepCount?: number;
118
118
  sectionCount?: number;
119
119
  };
120
+ /** What completing the program earns: badge ids and, when connected, a certificate (its `id` is the program's).
121
+ * Verified on amit1 2026-11-18: `[{ trigger: "ALL_STEPS_COMPLETED", badgeIds: [], certificate: { id, connectedDate } }]`. */
122
+ rewards?: Array<{
123
+ trigger?: string;
124
+ badgeIds?: string[];
125
+ certificate?: {
126
+ id?: string;
127
+ connectedDate?: string;
128
+ };
129
+ }>;
130
+ /** The program's page on the live site: `url.base` + `url.path` (e.g. `https://…/challenge-page/<id>`). */
131
+ seo?: {
132
+ slug?: string;
133
+ url?: {
134
+ base?: string;
135
+ path?: string;
136
+ };
137
+ };
120
138
  }
121
139
  export interface WixGetProgramResponse {
122
140
  program?: WixProgramFull;
package/dist/cli.mjs CHANGED
@@ -40424,6 +40424,7 @@ function resolveIdiom(tokens2, ctx = {}) {
40424
40424
  var IDIOM_CONTEXTS, UNSAFE_KEYS;
40425
40425
  var init_idiom = __esm({
40426
40426
  "../../core/ts/src/idiom.ts"() {
40427
+ "use strict";
40427
40428
  init_define_HHP_CATALOG();
40428
40429
  IDIOM_CONTEXTS = {
40429
40430
  ios: { native: ["ios"] },
@@ -42159,7 +42160,6 @@ function shouldRevealError(args) {
42159
42160
  var EMAIL_RE, URL_HOST_RE, INTEGER_RE, NUMBER_RE, AUTHORED_PATTERN_LIMIT, authoredPatterns;
42160
42161
  var init_validation = __esm({
42161
42162
  "../../core/ts/src/validation.ts"() {
42162
- "use strict";
42163
42163
  init_define_HHP_CATALOG();
42164
42164
  EMAIL_RE = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*\.[A-Za-z]{2,}$/;
42165
42165
  URL_HOST_RE = /^[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*(:[0-9]+)?$/;
@@ -249382,6 +249382,7 @@ __export(push_errors_exports, {
249382
249382
  PUSH_FAILURE_CODES: () => PUSH_FAILURE_CODES,
249383
249383
  base44AppIdForClaim: () => base44AppIdForClaim,
249384
249384
  base44ClaimRefusal: () => base44ClaimRefusal,
249385
+ federatedFailureFields: () => federatedFailureFields,
249385
249386
  federatedRefusal: () => federatedRefusal,
249386
249387
  pushFailure: () => pushFailure,
249387
249388
  uxEvidenceCode: () => uxEvidenceCode
@@ -249437,6 +249438,11 @@ async function base44AppIdForClaim(dir, token) {
249437
249438
  return void 0;
249438
249439
  }
249439
249440
  }
249441
+ function federatedFailureFields(status2, body, token) {
249442
+ const err = body && typeof body === "object" ? body.error : void 0;
249443
+ const hit = base44ClaimRefusal(err) ?? federatedRefusal(status2, body, token);
249444
+ return hit ? { code: hit.code, hint: hit.hint } : {};
249445
+ }
249440
249446
  var PUSH_FAILURE_CODES, UX_CODES, BASE44_CLAIM_CODES;
249441
249447
  var init_push_errors = __esm({
249442
249448
  "src/push-errors.ts"() {
@@ -289402,7 +289408,15 @@ async function logsCommand(ctx) {
289402
289408
 
289403
289409
  // src/commands/promote.ts
289404
289410
  init_define_HHP_CATALOG();
289411
+ init_config();
289405
289412
  init_cli_shared();
289413
+ function controlTokenFor(ctx) {
289414
+ try {
289415
+ return resolveTarget({ target: ctx.targetName(), controlToken: typeof ctx.flags["control-token"] === "string" ? ctx.flags["control-token"] : void 0 }).controlToken;
289416
+ } catch {
289417
+ return void 0;
289418
+ }
289419
+ }
289406
289420
  async function promoteCommand2(ctx) {
289407
289421
  const { io: io2, flags, print, targetName: targetName2, client: client4 } = ctx;
289408
289422
  const app2 = str3(flags.app);
@@ -289442,6 +289456,7 @@ async function promoteCommand2(ctx) {
289442
289456
  print({
289443
289457
  status: r3.status,
289444
289458
  ...r3.json ?? {},
289459
+ ...!r3.ok ? (await Promise.resolve().then(() => (init_push_errors(), push_errors_exports))).federatedFailureFields(r3.status, r3.json, controlTokenFor(ctx)) : {},
289445
289460
  ...r3.ok ? {
289446
289461
  ringPromoted: false,
289447
289462
  note: "activation updates the live release but does not select a rollout ring; ring-based clients remain unresolved until a ring is promoted",
@@ -290204,6 +290219,7 @@ async function testflightCommand(ctx) {
290204
290219
 
290205
290220
  // src/commands/dist.ts
290206
290221
  init_define_HHP_CATALOG();
290222
+ init_config();
290207
290223
  import { existsSync as existsSync133, readFileSync as readFileSync159 } from "node:fs";
290208
290224
  import { join as join172 } from "node:path";
290209
290225
  init_wix_owner();
@@ -290277,6 +290293,15 @@ function distInstallPageUrl(origin, jobs) {
290277
290293
  }
290278
290294
  async function distCommand(ctx) {
290279
290295
  const { io: io2, pos, flags, print, targetName: targetName2, client: client4, serveBase } = ctx;
290296
+ const fedFields = async (status2, body) => {
290297
+ let token;
290298
+ try {
290299
+ token = resolveTarget({ target: targetName2(), controlToken: str3(flags["control-token"]) }).controlToken;
290300
+ } catch {
290301
+ }
290302
+ const f2 = (await Promise.resolve().then(() => (init_push_errors(), push_errors_exports))).federatedFailureFields(status2, body, token);
290303
+ return f2;
290304
+ };
290280
290305
  const sub = pos[1];
290281
290306
  const c2 = client4();
290282
290307
  const showDistQr = io2.isTTY === true && flags.json !== true;
@@ -290419,7 +290444,7 @@ ${label4}`);
290419
290444
  }
290420
290445
  }
290421
290446
  }
290422
- const body = { status: r4.status, ...r4.json ?? {} };
290447
+ const body = { status: r4.status, ...r4.json ?? {}, ...!r4.ok ? await fedFields(r4.status, r4.json) : {} };
290423
290448
  if (r4.ok) await rememberLastDist([body]);
290424
290449
  print(flags.json === true ? body : humanDistJob(body));
290425
290450
  if (showDistQr && r4.ok) await printDistQrForJob(body, String(body.app ?? ""));
@@ -290458,7 +290483,7 @@ ${label4}`);
290458
290483
  }
290459
290484
  }
290460
290485
  if (!s5.ok) {
290461
- print({ status: s5.status, ...s5.json ?? {} });
290486
+ print({ status: s5.status, ...s5.json ?? {}, ...await fedFields(s5.status, s5.json) });
290462
290487
  return 1;
290463
290488
  }
290464
290489
  const rec = s5.json ?? {};
@@ -290507,7 +290532,7 @@ ${label4}`);
290507
290532
  } catch (e2) {
290508
290533
  return distUnreachable(e2);
290509
290534
  }
290510
- print({ status: r4.status, ...r4.json ?? {} });
290535
+ print({ status: r4.status, ...r4.json ?? {}, ...!r4.ok ? await fedFields(r4.status, r4.json) : {} });
290511
290536
  return r4.ok ? 0 : 1;
290512
290537
  }
290513
290538
  if (sub === "cancel") {
@@ -290522,7 +290547,7 @@ ${label4}`);
290522
290547
  } catch (e2) {
290523
290548
  return distUnreachable(e2);
290524
290549
  }
290525
- print({ status: r4.status, ...r4.json ?? {} });
290550
+ print({ status: r4.status, ...r4.json ?? {}, ...!r4.ok ? await fedFields(r4.status, r4.json) : {} });
290526
290551
  return r4.ok ? 0 : 1;
290527
290552
  }
290528
290553
  if (sub && sub !== "start") {
@@ -290550,7 +290575,7 @@ ${label4}`);
290550
290575
  return distUnreachable(e2);
290551
290576
  }
290552
290577
  if (flags.json === true || !r4.ok) {
290553
- print({ status: r4.status, ...r4.json ?? {} });
290578
+ print({ status: r4.status, ...r4.json ?? {}, ...!r4.ok ? await fedFields(r4.status, r4.json) : {} });
290554
290579
  return r4.ok ? 0 : 1;
290555
290580
  }
290556
290581
  const { formatDistPlan: formatDistPlan2 } = await Promise.resolve().then(() => (init_capabilities(), capabilities_exports));
@@ -290712,7 +290737,7 @@ ${label4}`);
290712
290737
  return distUnreachable(e2);
290713
290738
  }
290714
290739
  if (!r3.ok) {
290715
- print({ status: r3.status, ...r3.json ?? {} });
290740
+ print({ status: r3.status, ...r3.json ?? {}, ...await fedFields(r3.status, r3.json) });
290716
290741
  return 1;
290717
290742
  }
290718
290743
  const migrationWarnings = r3.json?.warnings ?? [];
@@ -291626,7 +291651,8 @@ async function appsCommand(ctx) {
291626
291651
  status: r4.status,
291627
291652
  ...j3,
291628
291653
  ...ownerPlaneHint(r4.status, err, target),
291629
- ...claimHint(r4.status, err)
291654
+ ...claimHint(r4.status, err),
291655
+ ...(await Promise.resolve().then(() => (init_push_errors(), push_errors_exports))).federatedFailureFields(r4.status, j3, cookie ? void 0 : ownerToken)
291630
291656
  }));
291631
291657
  return 1;
291632
291658
  }
@@ -291660,7 +291686,8 @@ async function appsCommand(ctx) {
291660
291686
  status: r4.status,
291661
291687
  ...j3,
291662
291688
  ...ownerPlaneHint(r4.status, err, target),
291663
- ...releaseHint(err)
291689
+ ...releaseHint(err),
291690
+ ...(await Promise.resolve().then(() => (init_push_errors(), push_errors_exports))).federatedFailureFields(r4.status, j3, cookie ? void 0 : ownerToken)
291664
291691
  }));
291665
291692
  return 1;
291666
291693
  }
@@ -291678,7 +291705,8 @@ async function appsCommand(ctx) {
291678
291705
  ok: false,
291679
291706
  status: r3.status,
291680
291707
  ...j2,
291681
- ...ownerPlaneHint(r3.status, j2.error, target)
291708
+ ...ownerPlaneHint(r3.status, j2.error, target),
291709
+ ...(await Promise.resolve().then(() => (init_push_errors(), push_errors_exports))).federatedFailureFields(r3.status, j2, cookie ? void 0 : ownerToken)
291682
291710
  }));
291683
291711
  return 1;
291684
291712
  }
@@ -343,6 +343,13 @@ worker's bundle. These names are stable.
343
343
  | `authoring_unavailable` | The bundled authoring runtime failed to load. Carries `cause` (the underlying error's message) and `module` (the import specifier that failed) when known, and `sourceCheckout`: when run from a source checkout the advice is `fix: "yarn install"` (stale dependencies), off-repo it is `upgrade` (an out-of-date CLI). |
344
344
  | `push_failed` | An otherwise unclassified exception stopped push (for example unreadable content). The original error is preserved. |
345
345
 
346
+ **Beyond `himi push`.** `himi apps` (`claim`, `release`, list), `himi promote` and `himi dist` add the same
347
+ top-level `code` and `hint` to their failure envelope when the refusal exists only because the credential
348
+ signed in without Wix: `federated_not_allowed`, `federated_disabled`, `federated_quota_exceeded`,
349
+ `insufficient_scope`, `federated_storage_full` and the four `base44_app_*` / `invalid_base44_app_id` claim
350
+ codes. Their other fields (`status`, the plane's body) are unchanged, and any other refusal keeps the
351
+ command's existing envelope.
352
+
346
353
  The `ux_evidence_*` codes map to the existing typed `uxEvidence.state`; a successful
347
354
  `recorded` state has no refusal code. Successful pushes and warnings do not gain
348
355
  failure codes. A forced push still follows the existing override rules.
@@ -29486,7 +29486,7 @@
29486
29486
  "name": "WixProgramFull",
29487
29487
  "kind": "interface",
29488
29488
  "jsdoc": "",
29489
- "decl": "export interface WixProgramFull extends WixProgram {\n revision?: number;\n status?: string;\n statusUpdatedDate?: string;\n updatedDate?: string;\n // `description` is INHERITED from WixProgram. Re-declaring it here is what drifted (#2285).\n timeline?: { selfPaced?: boolean; startDate?: string; durationInDays?: number };\n restrictions?: { accessType?: string; hideFutureSteps?: boolean; resolveStepsInOrder?: boolean; shareProgress?: boolean };\n price?: { value?: string; currency?: string };\n contentSummary?: { stepCount?: number; sectionCount?: number };\n}",
29489
+ "decl": "export interface WixProgramFull extends WixProgram {\n revision?: number;\n status?: string;\n statusUpdatedDate?: string;\n updatedDate?: string;\n // `description` is INHERITED from WixProgram. Re-declaring it here is what drifted (#2285).\n timeline?: { selfPaced?: boolean; startDate?: string; durationInDays?: number };\n restrictions?: { accessType?: string; hideFutureSteps?: boolean; resolveStepsInOrder?: boolean; shareProgress?: boolean };\n price?: { value?: string; currency?: string };\n contentSummary?: { stepCount?: number; sectionCount?: number };\n /** What completing the program earns: badge ids and, when connected, a certificate (its `id` is the program's).\n * Verified on amit1 2026-11-18: `[{ trigger: \"ALL_STEPS_COMPLETED\", badgeIds: [], certificate: { id, connectedDate } }]`. */\n rewards?: Array<{ trigger?: string; badgeIds?: string[]; certificate?: { id?: string; connectedDate?: string } }>;\n /** The program's page on the live site: `url.base` + `url.path` (e.g. `https://…/challenge-page/<id>`). */\n seo?: { slug?: string; url?: { base?: string; path?: string } };\n}",
29490
29490
  "verificationChecked": true
29491
29491
  },
29492
29492
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.1788.0",
3
+ "version": "0.1789.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": "2c7d1ee47976b9c0dc61f5fbc0edf146f2c992b48e336f3b6b100de5"
85
+ "falconPackageHash": "fc5b5281d01d831604fce1df8f0973b4b819a193110cd727a1e368ef"
86
86
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$source": "en",
3
- "$generated": "2026-11-19T10:08:02.426Z",
3
+ "$generated": "2026-11-19T15:47:24.661Z",
4
4
  "messages": {
5
5
  "h_0028d743eb44": {
6
6
  "source": "Sale",
@@ -37725,6 +37725,153 @@ const SCREENS = runtimeSetting({
37725
37725
  }
37726
37726
  }
37727
37727
  },
37728
+ {
37729
+ "id": "himi_program_participant.rewards_card",
37730
+ "body": {
37731
+ "package": "himalaya",
37732
+ "type": "VStack",
37733
+ "props": {
37734
+ "spacing": 8,
37735
+ "alignment": "leading",
37736
+ "children": [
37737
+ {
37738
+ "id": "",
37739
+ "body": {
37740
+ "package": "himalaya",
37741
+ "type": "Text",
37742
+ "props": {
37743
+ "text": "Completion rewards",
37744
+ "style": "bodyEmphasis"
37745
+ }
37746
+ }
37747
+ },
37748
+ {
37749
+ "id": "",
37750
+ "body": {
37751
+ "package": "himalaya",
37752
+ "type": "VStack",
37753
+ "props": {
37754
+ "spacing": 8,
37755
+ "alignment": "leading",
37756
+ "children": [
37757
+ {
37758
+ "id": "",
37759
+ "body": {
37760
+ "package": "himalaya",
37761
+ "type": "Text",
37762
+ "props": {
37763
+ "text": "You earned a certificate for completing this program.",
37764
+ "style": "footnote",
37765
+ "color": "textSecondary"
37766
+ }
37767
+ }
37768
+ },
37769
+ {
37770
+ "id": "himi_program_participant.certificate",
37771
+ "body": {
37772
+ "package": "himalaya",
37773
+ "type": "Button",
37774
+ "props": {
37775
+ "title": "Download certificate",
37776
+ "style": "secondary",
37777
+ "fullWidth": true,
37778
+ "leadingIcon": "download",
37779
+ "disabledPath": "$service:himiBrandedProgramParticipant.busy",
37780
+ "action": {
37781
+ "actionId": "tier5.himiBrandedProgramParticipant.openCertificate"
37782
+ }
37783
+ }
37784
+ }
37785
+ },
37786
+ {
37787
+ "id": "himi_program_participant.certificate_message",
37788
+ "body": {
37789
+ "package": "himalaya",
37790
+ "type": "Text",
37791
+ "props": {
37792
+ "text": "$service:himiBrandedProgramParticipant.certificateMessage",
37793
+ "style": "footnote",
37794
+ "color": "textSecondary",
37795
+ "collapseWhenEmpty": true
37796
+ }
37797
+ }
37798
+ }
37799
+ ]
37800
+ }
37801
+ },
37802
+ "modifiers": {
37803
+ "hiddenPath": "$service:himiBrandedProgramParticipant.hideCertificate"
37804
+ }
37805
+ },
37806
+ {
37807
+ "id": "",
37808
+ "body": {
37809
+ "package": "himalaya",
37810
+ "type": "VStack",
37811
+ "props": {
37812
+ "spacing": 8,
37813
+ "alignment": "leading",
37814
+ "children": [
37815
+ {
37816
+ "id": "",
37817
+ "body": {
37818
+ "package": "himalaya",
37819
+ "type": "Text",
37820
+ "props": {
37821
+ "text": "$service:himiBrandedProgramParticipant.badgesLine",
37822
+ "style": "footnote",
37823
+ "color": "textSecondary",
37824
+ "collapseWhenEmpty": true
37825
+ }
37826
+ }
37827
+ },
37828
+ {
37829
+ "id": "himi_program_participant.badges",
37830
+ "body": {
37831
+ "package": "himalaya",
37832
+ "type": "Button",
37833
+ "props": {
37834
+ "title": "See badges",
37835
+ "style": "secondary",
37836
+ "fullWidth": true,
37837
+ "leadingIcon": "star",
37838
+ "action": {
37839
+ "actionId": "tier5.himiBrandedProgramParticipant.openBadges"
37840
+ }
37841
+ }
37842
+ }
37843
+ }
37844
+ ]
37845
+ }
37846
+ },
37847
+ "modifiers": {
37848
+ "hiddenPath": "$service:himiBrandedProgramParticipant.hideBadges"
37849
+ }
37850
+ }
37851
+ ]
37852
+ }
37853
+ },
37854
+ "modifiers": {
37855
+ "background": {
37856
+ "token": "surfaceElevated"
37857
+ },
37858
+ "border": {
37859
+ "width": 1,
37860
+ "color": {
37861
+ "token": "border"
37862
+ }
37863
+ },
37864
+ "cornerRadius": 4,
37865
+ "padding": {
37866
+ "leading": 16,
37867
+ "trailing": 16,
37868
+ "top": 16,
37869
+ "bottom": 16
37870
+ },
37871
+ "fillMaxWidth": true,
37872
+ "hiddenPath": "$service:himiBrandedProgramParticipant.hideRewards"
37873
+ }
37874
+ },
37728
37875
  {
37729
37876
  "id": "",
37730
37877
  "body": {
@@ -37776,6 +37923,59 @@ const SCREENS = runtimeSetting({
37776
37923
  "modifiers": {
37777
37924
  "hiddenPath": "$service:himiBrandedProgramParticipant.hasDescriptionJson"
37778
37925
  }
37926
+ },
37927
+ {
37928
+ "id": "himi_program_participant.share",
37929
+ "body": {
37930
+ "package": "himalaya",
37931
+ "type": "Button",
37932
+ "props": {
37933
+ "title": "Share program",
37934
+ "style": "secondary",
37935
+ "fullWidth": true,
37936
+ "leadingIcon": "share",
37937
+ "action": {
37938
+ "actionId": "tier5.himiBrandedProgramParticipant.shareProgram"
37939
+ }
37940
+ }
37941
+ },
37942
+ "modifiers": {
37943
+ "hiddenPath": "$service:himiBrandedProgramParticipant.hideShare"
37944
+ }
37945
+ },
37946
+ {
37947
+ "id": "himi_program_participant.leave",
37948
+ "body": {
37949
+ "package": "himalaya",
37950
+ "type": "Button",
37951
+ "props": {
37952
+ "title": "Leave program",
37953
+ "style": "plain",
37954
+ "role": "destructive",
37955
+ "fullWidth": true,
37956
+ "leadingIcon": "logout",
37957
+ "disabledPath": "$service:himiBrandedProgramParticipant.busy",
37958
+ "action": {
37959
+ "actionId": "tier5.himiBrandedProgramParticipant.leave"
37960
+ }
37961
+ }
37962
+ },
37963
+ "modifiers": {
37964
+ "hiddenPath": "$service:himiBrandedProgramParticipant.hideLeave"
37965
+ }
37966
+ },
37967
+ {
37968
+ "id": "himi_program_participant.action_message",
37969
+ "body": {
37970
+ "package": "himalaya",
37971
+ "type": "Text",
37972
+ "props": {
37973
+ "text": "$service:himiBrandedProgramParticipant.actionMessage",
37974
+ "style": "footnote",
37975
+ "color": "textSecondary",
37976
+ "collapseWhenEmpty": true
37977
+ }
37978
+ }
37779
37979
  }
37780
37980
  ]
37781
37981
  }
@@ -38098,7 +38298,10 @@ const SCREENS = runtimeSetting({
38098
38298
  "bottom": 28
38099
38299
  },
38100
38300
  "onAppear": {
38101
- "actionId": "tier5.himiBrandedProgramParticipant.load"
38301
+ "actionId": "tier5.himiBrandedProgramParticipant.load",
38302
+ "params": {
38303
+ "badgesScreen": "himi_badges"
38304
+ }
38102
38305
  }
38103
38306
  }
38104
38307
  },
@@ -38109,7 +38312,9 @@ const SCREENS = runtimeSetting({
38109
38312
  "declaredCapabilities": [
38110
38313
  "wix_api",
38111
38314
  "open_url",
38112
- "wix_platform"
38315
+ "wix_platform",
38316
+ "share",
38317
+ "ui"
38113
38318
  ],
38114
38319
  "minBinaryVersion": "0.1.0",
38115
38320
  "bundleVersion": "0.0.1"
@@ -4298,6 +4298,42 @@
4298
4298
  "translation": "تغيير الصورة",
4299
4299
  "origin": "machine"
4300
4300
  },
4301
+ "h_09605d5316c8": {
4302
+ "key": "programParticipant.badgesCta",
4303
+ "source": "See badges",
4304
+ "translation": "عرض الشارات",
4305
+ "origin": "machine"
4306
+ },
4307
+ "h_877a96132aba": {
4308
+ "key": "programParticipant.shareCta",
4309
+ "source": "Share program",
4310
+ "translation": "مشاركة البرنامج",
4311
+ "origin": "machine"
4312
+ },
4313
+ "h_9594aa7fb773": {
4314
+ "key": "programParticipant.certificateLine",
4315
+ "source": "You earned a certificate for completing this program.",
4316
+ "translation": "حصلت على شهادة لإكمال هذا البرنامج.",
4317
+ "origin": "machine"
4318
+ },
4319
+ "h_f0ab567fcabf": {
4320
+ "key": "programParticipant.certificateCta",
4321
+ "source": "Download certificate",
4322
+ "translation": "تنزيل الشهادة",
4323
+ "origin": "machine"
4324
+ },
4325
+ "h_f57098156f45": {
4326
+ "key": "programParticipant.leaveCta",
4327
+ "source": "Leave program",
4328
+ "translation": "مغادرة البرنامج",
4329
+ "origin": "machine"
4330
+ },
4331
+ "h_8be9b7b4a288": {
4332
+ "key": "programParticipant.rewardsTitle",
4333
+ "source": "Completion rewards",
4334
+ "translation": "مكافآت الإكمال",
4335
+ "origin": "machine"
4336
+ },
4301
4337
  "h_1e9b74b4dda5": {
4302
4338
  "source": "Show all ({count})",
4303
4339
  "translation": "عرض الكل ({count})",
@@ -9462,6 +9498,46 @@
9462
9498
  "source": "Unblock {name}?",
9463
9499
  "translation": "هل تريد إلغاء حظر {name}؟",
9464
9500
  "origin": "machine"
9501
+ },
9502
+ "h_6afc7c99550a": {
9503
+ "source": "The certificate can't be opened right now. Try again.",
9504
+ "translation": "تعذّر فتح الشهادة الآن. حاول مرة أخرى.",
9505
+ "origin": "machine"
9506
+ },
9507
+ "h_f253bccee8b9": {
9508
+ "source": "Complete the program to earn its badges.",
9509
+ "translation": "أكمل البرنامج لتحصل على شاراته.",
9510
+ "origin": "machine"
9511
+ },
9512
+ "h_5c5c12ccef8f": {
9513
+ "source": "You completed the program. See the badges it awards.",
9514
+ "translation": "أكملت البرنامج. اطّلع على الشارات التي يمنحها.",
9515
+ "origin": "machine"
9516
+ },
9517
+ "h_f3132d590fe5": {
9518
+ "source": "Leave this program?",
9519
+ "translation": "هل تريد مغادرة هذا البرنامج؟",
9520
+ "origin": "machine"
9521
+ },
9522
+ "h_5d2962cd6aea": {
9523
+ "source": "You'll lose access to its steps. You can join again from the program page.",
9524
+ "translation": "ستفقد الوصول إلى خطواته. يمكنك الانضمام مجددًا من صفحة البرنامج.",
9525
+ "origin": "machine"
9526
+ },
9527
+ "h_7e3520a97331": {
9528
+ "source": "Leave",
9529
+ "translation": "مغادرة",
9530
+ "origin": "machine"
9531
+ },
9532
+ "h_8173f44ffdee": {
9533
+ "source": "We couldn't take you out of the program. Try again.",
9534
+ "translation": "تعذّر إخراجك من البرنامج. حاول مرة أخرى.",
9535
+ "origin": "machine"
9536
+ },
9537
+ "h_3f1848b083aa": {
9538
+ "source": "You're offline. Connect to the internet and try again.",
9539
+ "translation": "أنت غير متصل بالإنترنت. اتصل بالإنترنت وحاول مرة أخرى.",
9540
+ "origin": "machine"
9465
9541
  }
9466
9542
  }
9467
9543
  }
@@ -4298,6 +4298,42 @@
4298
4298
  "translation": "Změnit fotku",
4299
4299
  "origin": "machine"
4300
4300
  },
4301
+ "h_09605d5316c8": {
4302
+ "key": "programParticipant.badgesCta",
4303
+ "source": "See badges",
4304
+ "translation": "Zobrazit odznaky",
4305
+ "origin": "machine"
4306
+ },
4307
+ "h_877a96132aba": {
4308
+ "key": "programParticipant.shareCta",
4309
+ "source": "Share program",
4310
+ "translation": "Sdílet program",
4311
+ "origin": "machine"
4312
+ },
4313
+ "h_9594aa7fb773": {
4314
+ "key": "programParticipant.certificateLine",
4315
+ "source": "You earned a certificate for completing this program.",
4316
+ "translation": "Za dokončení tohoto programu jsi získal(a) certifikát.",
4317
+ "origin": "machine"
4318
+ },
4319
+ "h_f0ab567fcabf": {
4320
+ "key": "programParticipant.certificateCta",
4321
+ "source": "Download certificate",
4322
+ "translation": "Stáhnout certifikát",
4323
+ "origin": "machine"
4324
+ },
4325
+ "h_f57098156f45": {
4326
+ "key": "programParticipant.leaveCta",
4327
+ "source": "Leave program",
4328
+ "translation": "Opustit program",
4329
+ "origin": "machine"
4330
+ },
4331
+ "h_8be9b7b4a288": {
4332
+ "key": "programParticipant.rewardsTitle",
4333
+ "source": "Completion rewards",
4334
+ "translation": "Odměny za dokončení",
4335
+ "origin": "machine"
4336
+ },
4301
4337
  "h_1e9b74b4dda5": {
4302
4338
  "source": "Show all ({count})",
4303
4339
  "translation": "Zobrazit vše ({count})",
@@ -9462,6 +9498,46 @@
9462
9498
  "source": "Unblock {name}?",
9463
9499
  "translation": "Odblokovat {name}?",
9464
9500
  "origin": "machine"
9501
+ },
9502
+ "h_6afc7c99550a": {
9503
+ "source": "The certificate can't be opened right now. Try again.",
9504
+ "translation": "Certifikát teď nelze otevřít. Zkus to znovu.",
9505
+ "origin": "machine"
9506
+ },
9507
+ "h_f253bccee8b9": {
9508
+ "source": "Complete the program to earn its badges.",
9509
+ "translation": "Dokonči program a získej jeho odznaky.",
9510
+ "origin": "machine"
9511
+ },
9512
+ "h_5c5c12ccef8f": {
9513
+ "source": "You completed the program. See the badges it awards.",
9514
+ "translation": "Dokončil(a) jsi program. Podívej se na odznaky, které uděluje.",
9515
+ "origin": "machine"
9516
+ },
9517
+ "h_f3132d590fe5": {
9518
+ "source": "Leave this program?",
9519
+ "translation": "Opustit tento program?",
9520
+ "origin": "machine"
9521
+ },
9522
+ "h_5d2962cd6aea": {
9523
+ "source": "You'll lose access to its steps. You can join again from the program page.",
9524
+ "translation": "Ztratíš přístup k jeho krokům. Znovu se můžeš připojit na stránce programu.",
9525
+ "origin": "machine"
9526
+ },
9527
+ "h_7e3520a97331": {
9528
+ "source": "Leave",
9529
+ "translation": "Opustit",
9530
+ "origin": "machine"
9531
+ },
9532
+ "h_8173f44ffdee": {
9533
+ "source": "We couldn't take you out of the program. Try again.",
9534
+ "translation": "Nepodařilo se tě z programu odhlásit. Zkus to znovu.",
9535
+ "origin": "machine"
9536
+ },
9537
+ "h_3f1848b083aa": {
9538
+ "source": "You're offline. Connect to the internet and try again.",
9539
+ "translation": "Jsi offline. Připoj se k internetu a zkus to znovu.",
9540
+ "origin": "machine"
9465
9541
  }
9466
9542
  }
9467
9543
  }