@wix/himalaya-cli 0.1438.0 → 0.1440.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 (31) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/ui/src/index.d.ts +7 -4
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/ui.mjs +2 -2
  3. package/dist/cli.mjs +434 -106
  4. package/dist/preview-assets.generated.bin +0 -0
  5. package/guides/designing-himi-screens.md +5 -1
  6. package/guides/hhp.md +13 -1
  7. package/guides/sdk-reference.json +3 -3
  8. package/guides/tier-5-add-a-screen.md +11 -0
  9. package/package.json +2 -2
  10. package/templates/beauty-salon/dev/index.ts +1 -90
  11. package/templates/beauty-salon/tier5-src/himi-branded-lite-account-settings/index.ts +4 -1
  12. package/templates/branded-lite/dev/index.ts +1 -90
  13. package/templates/branded-lite/tier5-src/himi-branded-lite-account-settings/index.ts +4 -1
  14. package/templates/community-club/dev/index.ts +1 -90
  15. package/templates/community-club/tier5-src/himi-branded-lite-account-settings/index.ts +4 -1
  16. package/templates/events-meetups/dev/index.ts +1 -90
  17. package/templates/events-meetups/tier5-src/himi-branded-lite-account-settings/index.ts +4 -1
  18. package/templates/gym-fitness/dev/index.ts +1 -90
  19. package/templates/gym-fitness/tier5-src/himi-branded-lite-account-settings/index.ts +4 -1
  20. package/templates/nonprofit-cause/dev/index.ts +1 -90
  21. package/templates/nonprofit-cause/tier5-src/himi-branded-lite-account-settings/index.ts +4 -1
  22. package/templates/podcast-creator/dev/index.ts +1 -90
  23. package/templates/podcast-creator/tier5-src/himi-branded-lite-account-settings/index.ts +4 -1
  24. package/templates/portfolio-creative/dev/index.ts +1 -90
  25. package/templates/portfolio-creative/tier5-src/himi-branded-lite-account-settings/index.ts +4 -1
  26. package/templates/restaurant/dev/index.ts +1 -90
  27. package/templates/restaurant/tier5-src/himi-branded-lite-account-settings/index.ts +4 -1
  28. package/templates/retail-store/dev/index.ts +1 -90
  29. package/templates/retail-store/tier5-src/himi-branded-lite-account-settings/index.ts +4 -1
  30. package/templates/yoga-studio/dev/index.ts +1 -90
  31. package/templates/yoga-studio/tier5-src/himi-branded-lite-account-settings/index.ts +4 -1
@@ -2604,7 +2604,7 @@ const SCREENS = runtimeSetting({
2604
2604
  "onTap": {
2605
2605
  "actionId": "himi.open",
2606
2606
  "params": {
2607
- "screenId": "himi_view_profile"
2607
+ "screenId": "himi_account_settings"
2608
2608
  }
2609
2609
  },
2610
2610
  "pressFeedback": "scale",
@@ -2686,95 +2686,6 @@ const SCREENS = runtimeSetting({
2686
2686
  "hiddenPath": "$service:himiStoreAccount.notMember"
2687
2687
  }
2688
2688
  },
2689
- {
2690
- "id": "himi_account.settings",
2691
- "body": {
2692
- "package": "himalaya",
2693
- "type": "HStack",
2694
- "props": {
2695
- "spacing": 12,
2696
- "children": [
2697
- {
2698
- "id": "",
2699
- "body": {
2700
- "package": "himalaya",
2701
- "type": "Icon",
2702
- "props": {
2703
- "name": "settings",
2704
- "size": 18,
2705
- "tint": "accentPrimary"
2706
- }
2707
- },
2708
- "modifiers": {
2709
- "accessibilityRole": "decorative"
2710
- }
2711
- },
2712
- {
2713
- "id": "",
2714
- "body": {
2715
- "package": "himalaya",
2716
- "type": "Text",
2717
- "props": {
2718
- "text": "My Account",
2719
- "style": "bodyEmphasis"
2720
- }
2721
- }
2722
- },
2723
- {
2724
- "id": "",
2725
- "body": {
2726
- "package": "himalaya",
2727
- "type": "Spacer",
2728
- "props": {}
2729
- }
2730
- },
2731
- {
2732
- "id": "",
2733
- "body": {
2734
- "package": "himalaya",
2735
- "type": "Icon",
2736
- "props": {
2737
- "name": "chevron_right",
2738
- "size": 16,
2739
- "tint": "textTertiary"
2740
- }
2741
- },
2742
- "modifiers": {
2743
- "accessibilityRole": "decorative"
2744
- }
2745
- }
2746
- ]
2747
- }
2748
- },
2749
- "modifiers": {
2750
- "background": {
2751
- "token": "surfaceElevated"
2752
- },
2753
- "border": {
2754
- "width": 1,
2755
- "color": {
2756
- "token": "border"
2757
- }
2758
- },
2759
- "cornerRadius": 8,
2760
- "padding": {
2761
- "leading": 14,
2762
- "trailing": 14,
2763
- "top": 13,
2764
- "bottom": 13
2765
- },
2766
- "onTap": {
2767
- "actionId": "himi.open",
2768
- "params": {
2769
- "screenId": "himi_account_settings"
2770
- }
2771
- },
2772
- "pressFeedback": "scale",
2773
- "haptic": "light",
2774
- "accessibilityLabel": "My Account",
2775
- "hiddenPath": "$service:himiStoreAccount.notMember"
2776
- }
2777
- },
2778
2689
  {
2779
2690
  "id": "",
2780
2691
  "body": {
@@ -9,7 +9,7 @@ import { generateMemberPhotoUploadUrl } from "@himalaya/wix-site-media";
9
9
  import { memberAccess } from "../_shared/member-access.js";
10
10
  import { memberAccountRoutes } from "../_shared/member-account-routes.js";
11
11
  import { copyParam, stashCopy } from "../_shared/himi-copy.js";
12
- import "./blocked-members.js";
12
+ import { svc as blockedMembers } from "./blocked-members.js";
13
13
 
14
14
  interface ProfileValues {
15
15
  displayName: string;
@@ -641,6 +641,9 @@ const svc = defineService<S, {
641
641
  const version = ++accountLoadVersion;
642
642
  photoUploadVersion += 1;
643
643
  stashCopy(arg);
644
+ // The blocked-members section also loads from its own nested onAppear on a device; starting it
645
+ // here too makes the root onAppear — the only one `himi test` fires — settle it. Re-entry-guarded.
646
+ void blockedMembers.load(arg).catch(() => undefined);
644
647
  try {
645
648
  const { email, scope, siteUrl, member } = await fetchMember((arg as { siteUrl?: unknown } | undefined)?.siteUrl);
646
649
  const current = await memberAccess();
@@ -3529,7 +3529,7 @@ const SCREENS = runtimeSetting({
3529
3529
  "onTap": {
3530
3530
  "actionId": "himi.open",
3531
3531
  "params": {
3532
- "screenId": "himi_view_profile"
3532
+ "screenId": "himi_account_settings"
3533
3533
  }
3534
3534
  },
3535
3535
  "pressFeedback": "scale",
@@ -3611,95 +3611,6 @@ const SCREENS = runtimeSetting({
3611
3611
  "hiddenPath": "$service:himiStoreAccount.notMember"
3612
3612
  }
3613
3613
  },
3614
- {
3615
- "id": "himi_account.settings",
3616
- "body": {
3617
- "package": "himalaya",
3618
- "type": "HStack",
3619
- "props": {
3620
- "spacing": 12,
3621
- "children": [
3622
- {
3623
- "id": "",
3624
- "body": {
3625
- "package": "himalaya",
3626
- "type": "Icon",
3627
- "props": {
3628
- "name": "settings",
3629
- "size": 18,
3630
- "tint": "accentPrimary"
3631
- }
3632
- },
3633
- "modifiers": {
3634
- "accessibilityRole": "decorative"
3635
- }
3636
- },
3637
- {
3638
- "id": "",
3639
- "body": {
3640
- "package": "himalaya",
3641
- "type": "Text",
3642
- "props": {
3643
- "text": "My Account",
3644
- "style": "bodyEmphasis"
3645
- }
3646
- }
3647
- },
3648
- {
3649
- "id": "",
3650
- "body": {
3651
- "package": "himalaya",
3652
- "type": "Spacer",
3653
- "props": {}
3654
- }
3655
- },
3656
- {
3657
- "id": "",
3658
- "body": {
3659
- "package": "himalaya",
3660
- "type": "Icon",
3661
- "props": {
3662
- "name": "chevron_right",
3663
- "size": 16,
3664
- "tint": "textTertiary"
3665
- }
3666
- },
3667
- "modifiers": {
3668
- "accessibilityRole": "decorative"
3669
- }
3670
- }
3671
- ]
3672
- }
3673
- },
3674
- "modifiers": {
3675
- "background": {
3676
- "token": "surfaceElevated"
3677
- },
3678
- "border": {
3679
- "width": 1,
3680
- "color": {
3681
- "token": "border"
3682
- }
3683
- },
3684
- "cornerRadius": 8,
3685
- "padding": {
3686
- "leading": 14,
3687
- "trailing": 14,
3688
- "top": 13,
3689
- "bottom": 13
3690
- },
3691
- "onTap": {
3692
- "actionId": "himi.open",
3693
- "params": {
3694
- "screenId": "himi_account_settings"
3695
- }
3696
- },
3697
- "pressFeedback": "scale",
3698
- "haptic": "light",
3699
- "accessibilityLabel": "My Account",
3700
- "hiddenPath": "$service:himiStoreAccount.notMember"
3701
- }
3702
- },
3703
3614
  {
3704
3615
  "id": "himi_account.subscriptions_guest",
3705
3616
  "body": {
@@ -9,7 +9,7 @@ import { generateMemberPhotoUploadUrl } from "@himalaya/wix-site-media";
9
9
  import { memberAccess } from "../_shared/member-access.js";
10
10
  import { memberAccountRoutes } from "../_shared/member-account-routes.js";
11
11
  import { copyParam, stashCopy } from "../_shared/himi-copy.js";
12
- import "./blocked-members.js";
12
+ import { svc as blockedMembers } from "./blocked-members.js";
13
13
 
14
14
  interface ProfileValues {
15
15
  displayName: string;
@@ -641,6 +641,9 @@ const svc = defineService<S, {
641
641
  const version = ++accountLoadVersion;
642
642
  photoUploadVersion += 1;
643
643
  stashCopy(arg);
644
+ // The blocked-members section also loads from its own nested onAppear on a device; starting it
645
+ // here too makes the root onAppear — the only one `himi test` fires — settle it. Re-entry-guarded.
646
+ void blockedMembers.load(arg).catch(() => undefined);
644
647
  try {
645
648
  const { email, scope, siteUrl, member } = await fetchMember((arg as { siteUrl?: unknown } | undefined)?.siteUrl);
646
649
  const current = await memberAccess();