@wix/himalaya-cli 0.1278.0 → 0.1279.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 (38) hide show
  1. package/dist/cli.mjs +1 -0
  2. package/package.json +4 -3
  3. package/templates/beauty-salon/config.ts +2 -1
  4. package/templates/beauty-salon/dev/index.ts +2 -1
  5. package/templates/beauty-salon/tier5-src/himi-store-account/index.ts +12 -4
  6. package/templates/branded-lite/config.ts +13 -2
  7. package/templates/branded-lite/dev/index.ts +520 -170
  8. package/templates/branded-lite/tier5-src/_shared/vod.ts +71 -0
  9. package/templates/branded-lite/tier5-src/himi-branded-lite-video/index.ts +98 -0
  10. package/templates/branded-lite/tier5-src/himi-branded-lite-videos/index.ts +11 -20
  11. package/templates/branded-lite/tier5-src/himi-store-account/index.ts +12 -4
  12. package/templates/community-club/config.ts +2 -1
  13. package/templates/community-club/dev/index.ts +2 -1
  14. package/templates/community-club/tier5-src/himi-store-account/index.ts +12 -4
  15. package/templates/events-meetups/config.ts +2 -1
  16. package/templates/events-meetups/dev/index.ts +2 -1
  17. package/templates/events-meetups/tier5-src/himi-store-account/index.ts +12 -4
  18. package/templates/gym-fitness/config.ts +2 -1
  19. package/templates/gym-fitness/dev/index.ts +2 -1
  20. package/templates/gym-fitness/tier5-src/himi-store-account/index.ts +12 -4
  21. package/templates/nonprofit-cause/config.ts +2 -1
  22. package/templates/nonprofit-cause/dev/index.ts +2 -1
  23. package/templates/nonprofit-cause/tier5-src/himi-store-account/index.ts +12 -4
  24. package/templates/podcast-creator/config.ts +2 -1
  25. package/templates/podcast-creator/dev/index.ts +2 -1
  26. package/templates/podcast-creator/tier5-src/himi-store-account/index.ts +12 -4
  27. package/templates/portfolio-creative/config.ts +2 -1
  28. package/templates/portfolio-creative/dev/index.ts +2 -1
  29. package/templates/portfolio-creative/tier5-src/himi-store-account/index.ts +12 -4
  30. package/templates/restaurant/config.ts +2 -1
  31. package/templates/restaurant/dev/index.ts +2 -1
  32. package/templates/restaurant/tier5-src/himi-store-account/index.ts +12 -4
  33. package/templates/retail-store/config.ts +2 -1
  34. package/templates/retail-store/dev/index.ts +2 -1
  35. package/templates/retail-store/tier5-src/himi-store-account/index.ts +12 -4
  36. package/templates/yoga-studio/config.ts +2 -1
  37. package/templates/yoga-studio/dev/index.ts +2 -1
  38. package/templates/yoga-studio/tier5-src/himi-store-account/index.ts +12 -4
package/dist/cli.mjs CHANGED
@@ -7567,6 +7567,7 @@ function resolveTranslation(value, catalog3, sourceCatalog) {
7567
7567
  var BINDING_SIGILS, BINDING_SIGIL_RE, TRANSLATION_PREFIX, TRANSLATION_KEY_RE;
7568
7568
  var init_bindings = __esm({
7569
7569
  "../../core/ts/src/bindings.ts"() {
7570
+ "use strict";
7570
7571
  BINDING_SIGILS = ["service", "flag", "item", "t"];
7571
7572
  BINDING_SIGIL_RE = new RegExp(
7572
7573
  `^\\$(?:${BINDING_SIGILS.filter((s2) => s2 !== "t").join("|")})\\b|^\\$t:`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.1278.0",
3
+ "version": "0.1279.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": [
@@ -57,7 +57,8 @@
57
57
  },
58
58
  "devDependencies": {
59
59
  "@himalaya/data-resources": "0.0.0",
60
- "@types/wawoff2": "^1.0.2"
60
+ "@types/wawoff2": "^1.0.2",
61
+ "@wix/himalaya": "0.1.0"
61
62
  },
62
63
  "publishConfig": {
63
64
  "registry": "https://registry.npmjs.org/",
@@ -69,5 +70,5 @@
69
70
  "artifactId": "himalaya-cli"
70
71
  }
71
72
  },
72
- "falconPackageHash": "bb9c977e9200edae474a56add544d82896294a43d6f42c841edec0bd"
73
+ "falconPackageHash": "9fef991555cd52fbac9bdcbd94b346d3a14c87204cce5605cc1bdff1"
73
74
  }
@@ -256,7 +256,8 @@ export default defineApp({
256
256
  "intent",
257
257
  "contextName",
258
258
  "returnScreenId",
259
- "returnId"
259
+ "returnId",
260
+ "returnChannelId"
260
261
  ],
261
262
  "parentScreenId": "",
262
263
  "tabId": "profile"
@@ -3399,7 +3399,8 @@ const SCREENS = runtimeSetting({
3399
3399
  "actionId": "himi.open",
3400
3400
  "params": {
3401
3401
  "screenId": "$service:himiStoreAccount.returnScreenId",
3402
- "id": "$service:himiStoreAccount.returnId"
3402
+ "id": "$service:himiStoreAccount.returnId",
3403
+ "channelId": "$service:himiStoreAccount.returnChannelId"
3403
3404
  }
3404
3405
  }
3405
3406
  }
@@ -19,6 +19,7 @@ interface AuthRouteInput {
19
19
  contextName?: string;
20
20
  returnScreenId?: string;
21
21
  returnId?: string;
22
+ returnChannelId?: string;
22
23
  }
23
24
 
24
25
  // The screen's boot input survives refresh; consuming it must survive too.
@@ -37,21 +38,25 @@ function strField(arg: unknown, key: string): string {
37
38
  }
38
39
 
39
40
  /** Mid-flow auth (UX F3): intent + return path from himi.open / himalaya.input. */
40
- function authIntentFromArg(arg: unknown, prev: Pick<S, "authIntent" | "authContextName" | "returnScreenId" | "returnId">): Pick<S, "authIntent" | "authContextName" | "returnScreenId" | "returnId"> {
41
+ function authIntentFromArg(arg: unknown, prev: Pick<S, "authIntent" | "authContextName" | "returnScreenId" | "returnId" | "returnChannelId">): Pick<S, "authIntent" | "authContextName" | "returnScreenId" | "returnId" | "returnChannelId"> {
41
42
  const route = routeInputConsumed ? {} : routeInput();
42
43
  return {
43
44
  authIntent: strField(arg, "intent") || route.intent || prev.authIntent || "",
44
45
  authContextName: strField(arg, "contextName") || route.contextName || prev.authContextName || "",
45
46
  returnScreenId: strField(arg, "returnScreenId") || route.returnScreenId || prev.returnScreenId || "",
46
47
  returnId: strField(arg, "returnId") || route.returnId || prev.returnId || "",
48
+ returnChannelId: strField(arg, "returnChannelId") || route.returnChannelId || prev.returnChannelId || "",
47
49
  };
48
50
  }
49
51
 
50
52
  /** Where a successful sign-in returns to, or null. Never Account itself — that would
51
53
  * only push a second copy of the screen the member is already on. */
52
- function resumeTarget(s: Pick<S, "returnScreenId" | "returnId">): NavDirective | null {
54
+ function resumeTarget(s: Pick<S, "returnScreenId" | "returnId" | "returnChannelId">): NavDirective | null {
53
55
  if (!s.returnScreenId || s.returnScreenId === "himi_account") return null;
54
- return s.returnId ? { screenId: s.returnScreenId, args: { id: s.returnId } } : { screenId: s.returnScreenId };
56
+ return s.returnId || s.returnChannelId ? {
57
+ screenId: s.returnScreenId,
58
+ args: { ...(s.returnId ? { id: s.returnId } : {}), ...(s.returnChannelId ? { channelId: s.returnChannelId } : {}) },
59
+ } : { screenId: s.returnScreenId };
55
60
  }
56
61
 
57
62
  /** Resume the member-only screen that sent the visitor here, once. The return path is
@@ -61,7 +66,7 @@ function resumeAfterAuth(next: S): S {
61
66
  const target = resumeTarget(next);
62
67
  if (!next.isMember || !target) return next;
63
68
  routeInputConsumed = true;
64
- return navigate(derive({ ...next, authIntent: "", authContextName: "", returnScreenId: "", returnId: "" }), target);
69
+ return navigate(derive({ ...next, authIntent: "", authContextName: "", returnScreenId: "", returnId: "", returnChannelId: "" }), target);
65
70
  }
66
71
 
67
72
  // Actions are not serialized: two quick Sign in taps both run against the pre-tap
@@ -165,6 +170,7 @@ interface S {
165
170
  authContextName: string;
166
171
  returnScreenId: string;
167
172
  returnId: string;
173
+ returnChannelId: string;
168
174
  /** Show Continue when an already-signed-in member opens Account with a return path.
169
175
  * A sign-in made here resumes on its own (resumeAfterAuth). */
170
176
  hasReturnPath: boolean;
@@ -364,6 +370,7 @@ const svc = defineService<S, {
364
370
  authContextName: "",
365
371
  returnScreenId: "",
366
372
  returnId: "",
373
+ returnChannelId: "",
367
374
  hasReturnPath: false,
368
375
  noReturnPath: true,
369
376
  returnCta: "Continue",
@@ -475,6 +482,7 @@ const svc = defineService<S, {
475
482
  authContextName: "",
476
483
  returnScreenId: "",
477
484
  returnId: "",
485
+ returnChannelId: "",
478
486
  };
479
487
  return derive(cleared);
480
488
  },
@@ -571,7 +571,7 @@ export default defineApp({
571
571
  "tabId": ""
572
572
  },
573
573
  {
574
- "screenId": "himi_video",
574
+ "screenId": "himi_video_channel",
575
575
  "isPublic": true,
576
576
  "paramKeys": [
577
577
  "id"
@@ -579,6 +579,16 @@ export default defineApp({
579
579
  "parentScreenId": "himi_videos",
580
580
  "tabId": ""
581
581
  },
582
+ {
583
+ "screenId": "himi_video",
584
+ "isPublic": true,
585
+ "paramKeys": [
586
+ "id",
587
+ "channelId"
588
+ ],
589
+ "parentScreenId": "himi_video_channel",
590
+ "tabId": ""
591
+ },
582
592
  {
583
593
  "screenId": "himi_podcasts",
584
594
  "isPublic": true,
@@ -680,7 +690,8 @@ export default defineApp({
680
690
  "intent",
681
691
  "contextName",
682
692
  "returnScreenId",
683
- "returnId"
693
+ "returnId",
694
+ "returnChannelId"
684
695
  ],
685
696
  "parentScreenId": "",
686
697
  "tabId": "profile"