@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
@@ -3868,7 +3868,7 @@ const SCREENS = runtimeSetting({
3868
3868
  "onTap": {
3869
3869
  "actionId": "himi.open",
3870
3870
  "params": {
3871
- "screenId": "himi_view_profile"
3871
+ "screenId": "himi_account_settings"
3872
3872
  }
3873
3873
  },
3874
3874
  "pressFeedback": "scale",
@@ -3950,95 +3950,6 @@ const SCREENS = runtimeSetting({
3950
3950
  "hiddenPath": "$service:himiStoreAccount.notMember"
3951
3951
  }
3952
3952
  },
3953
- {
3954
- "id": "himi_account.settings",
3955
- "body": {
3956
- "package": "himalaya",
3957
- "type": "HStack",
3958
- "props": {
3959
- "spacing": 12,
3960
- "children": [
3961
- {
3962
- "id": "",
3963
- "body": {
3964
- "package": "himalaya",
3965
- "type": "Icon",
3966
- "props": {
3967
- "name": "settings",
3968
- "size": 18,
3969
- "tint": "accentPrimary"
3970
- }
3971
- },
3972
- "modifiers": {
3973
- "accessibilityRole": "decorative"
3974
- }
3975
- },
3976
- {
3977
- "id": "",
3978
- "body": {
3979
- "package": "himalaya",
3980
- "type": "Text",
3981
- "props": {
3982
- "text": "My Account",
3983
- "style": "bodyEmphasis"
3984
- }
3985
- }
3986
- },
3987
- {
3988
- "id": "",
3989
- "body": {
3990
- "package": "himalaya",
3991
- "type": "Spacer",
3992
- "props": {}
3993
- }
3994
- },
3995
- {
3996
- "id": "",
3997
- "body": {
3998
- "package": "himalaya",
3999
- "type": "Icon",
4000
- "props": {
4001
- "name": "chevron_right",
4002
- "size": 16,
4003
- "tint": "textTertiary"
4004
- }
4005
- },
4006
- "modifiers": {
4007
- "accessibilityRole": "decorative"
4008
- }
4009
- }
4010
- ]
4011
- }
4012
- },
4013
- "modifiers": {
4014
- "background": {
4015
- "token": "surfaceElevated"
4016
- },
4017
- "border": {
4018
- "width": 1,
4019
- "color": {
4020
- "token": "border"
4021
- }
4022
- },
4023
- "cornerRadius": 8,
4024
- "padding": {
4025
- "leading": 14,
4026
- "trailing": 14,
4027
- "top": 13,
4028
- "bottom": 13
4029
- },
4030
- "onTap": {
4031
- "actionId": "himi.open",
4032
- "params": {
4033
- "screenId": "himi_account_settings"
4034
- }
4035
- },
4036
- "pressFeedback": "scale",
4037
- "haptic": "light",
4038
- "accessibilityLabel": "My Account",
4039
- "hiddenPath": "$service:himiStoreAccount.notMember"
4040
- }
4041
- },
4042
3953
  {
4043
3954
  "id": "himi_account.subscriptions_guest",
4044
3955
  "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();
@@ -3172,7 +3172,7 @@ const SCREENS = runtimeSetting({
3172
3172
  "onTap": {
3173
3173
  "actionId": "himi.open",
3174
3174
  "params": {
3175
- "screenId": "himi_view_profile"
3175
+ "screenId": "himi_account_settings"
3176
3176
  }
3177
3177
  },
3178
3178
  "pressFeedback": "scale",
@@ -3254,95 +3254,6 @@ const SCREENS = runtimeSetting({
3254
3254
  "hiddenPath": "$service:himiStoreAccount.notMember"
3255
3255
  }
3256
3256
  },
3257
- {
3258
- "id": "himi_account.settings",
3259
- "body": {
3260
- "package": "himalaya",
3261
- "type": "HStack",
3262
- "props": {
3263
- "spacing": 12,
3264
- "children": [
3265
- {
3266
- "id": "",
3267
- "body": {
3268
- "package": "himalaya",
3269
- "type": "Icon",
3270
- "props": {
3271
- "name": "settings",
3272
- "size": 18,
3273
- "tint": "accentPrimary"
3274
- }
3275
- },
3276
- "modifiers": {
3277
- "accessibilityRole": "decorative"
3278
- }
3279
- },
3280
- {
3281
- "id": "",
3282
- "body": {
3283
- "package": "himalaya",
3284
- "type": "Text",
3285
- "props": {
3286
- "text": "My Account",
3287
- "style": "bodyEmphasis"
3288
- }
3289
- }
3290
- },
3291
- {
3292
- "id": "",
3293
- "body": {
3294
- "package": "himalaya",
3295
- "type": "Spacer",
3296
- "props": {}
3297
- }
3298
- },
3299
- {
3300
- "id": "",
3301
- "body": {
3302
- "package": "himalaya",
3303
- "type": "Icon",
3304
- "props": {
3305
- "name": "chevron_right",
3306
- "size": 16,
3307
- "tint": "textTertiary"
3308
- }
3309
- },
3310
- "modifiers": {
3311
- "accessibilityRole": "decorative"
3312
- }
3313
- }
3314
- ]
3315
- }
3316
- },
3317
- "modifiers": {
3318
- "background": {
3319
- "token": "surfaceElevated"
3320
- },
3321
- "border": {
3322
- "width": 1,
3323
- "color": {
3324
- "token": "border"
3325
- }
3326
- },
3327
- "cornerRadius": 8,
3328
- "padding": {
3329
- "leading": 14,
3330
- "trailing": 14,
3331
- "top": 13,
3332
- "bottom": 13
3333
- },
3334
- "onTap": {
3335
- "actionId": "himi.open",
3336
- "params": {
3337
- "screenId": "himi_account_settings"
3338
- }
3339
- },
3340
- "pressFeedback": "scale",
3341
- "haptic": "light",
3342
- "accessibilityLabel": "My Account",
3343
- "hiddenPath": "$service:himiStoreAccount.notMember"
3344
- }
3345
- },
3346
3257
  {
3347
3258
  "id": "himi_account.subscriptions_guest",
3348
3259
  "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();
@@ -3110,7 +3110,7 @@ const SCREENS = runtimeSetting({
3110
3110
  "onTap": {
3111
3111
  "actionId": "himi.open",
3112
3112
  "params": {
3113
- "screenId": "himi_view_profile"
3113
+ "screenId": "himi_account_settings"
3114
3114
  }
3115
3115
  },
3116
3116
  "pressFeedback": "scale",
@@ -3192,95 +3192,6 @@ const SCREENS = runtimeSetting({
3192
3192
  "hiddenPath": "$service:himiStoreAccount.notMember"
3193
3193
  }
3194
3194
  },
3195
- {
3196
- "id": "himi_account.settings",
3197
- "body": {
3198
- "package": "himalaya",
3199
- "type": "HStack",
3200
- "props": {
3201
- "spacing": 12,
3202
- "children": [
3203
- {
3204
- "id": "",
3205
- "body": {
3206
- "package": "himalaya",
3207
- "type": "Icon",
3208
- "props": {
3209
- "name": "settings",
3210
- "size": 18,
3211
- "tint": "accentPrimary"
3212
- }
3213
- },
3214
- "modifiers": {
3215
- "accessibilityRole": "decorative"
3216
- }
3217
- },
3218
- {
3219
- "id": "",
3220
- "body": {
3221
- "package": "himalaya",
3222
- "type": "Text",
3223
- "props": {
3224
- "text": "My Account",
3225
- "style": "bodyEmphasis"
3226
- }
3227
- }
3228
- },
3229
- {
3230
- "id": "",
3231
- "body": {
3232
- "package": "himalaya",
3233
- "type": "Spacer",
3234
- "props": {}
3235
- }
3236
- },
3237
- {
3238
- "id": "",
3239
- "body": {
3240
- "package": "himalaya",
3241
- "type": "Icon",
3242
- "props": {
3243
- "name": "chevron_right",
3244
- "size": 16,
3245
- "tint": "textTertiary"
3246
- }
3247
- },
3248
- "modifiers": {
3249
- "accessibilityRole": "decorative"
3250
- }
3251
- }
3252
- ]
3253
- }
3254
- },
3255
- "modifiers": {
3256
- "background": {
3257
- "token": "surfaceElevated"
3258
- },
3259
- "border": {
3260
- "width": 1,
3261
- "color": {
3262
- "token": "border"
3263
- }
3264
- },
3265
- "cornerRadius": 8,
3266
- "padding": {
3267
- "leading": 14,
3268
- "trailing": 14,
3269
- "top": 13,
3270
- "bottom": 13
3271
- },
3272
- "onTap": {
3273
- "actionId": "himi.open",
3274
- "params": {
3275
- "screenId": "himi_account_settings"
3276
- }
3277
- },
3278
- "pressFeedback": "scale",
3279
- "haptic": "light",
3280
- "accessibilityLabel": "My Account",
3281
- "hiddenPath": "$service:himiStoreAccount.notMember"
3282
- }
3283
- },
3284
3195
  {
3285
3196
  "id": "himi_account.subscriptions_guest",
3286
3197
  "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();
@@ -3158,7 +3158,7 @@ const SCREENS = runtimeSetting({
3158
3158
  "onTap": {
3159
3159
  "actionId": "himi.open",
3160
3160
  "params": {
3161
- "screenId": "himi_view_profile"
3161
+ "screenId": "himi_account_settings"
3162
3162
  }
3163
3163
  },
3164
3164
  "pressFeedback": "scale",
@@ -3240,95 +3240,6 @@ const SCREENS = runtimeSetting({
3240
3240
  "hiddenPath": "$service:himiStoreAccount.notMember"
3241
3241
  }
3242
3242
  },
3243
- {
3244
- "id": "himi_account.settings",
3245
- "body": {
3246
- "package": "himalaya",
3247
- "type": "HStack",
3248
- "props": {
3249
- "spacing": 12,
3250
- "children": [
3251
- {
3252
- "id": "",
3253
- "body": {
3254
- "package": "himalaya",
3255
- "type": "Icon",
3256
- "props": {
3257
- "name": "settings",
3258
- "size": 18,
3259
- "tint": "accentPrimary"
3260
- }
3261
- },
3262
- "modifiers": {
3263
- "accessibilityRole": "decorative"
3264
- }
3265
- },
3266
- {
3267
- "id": "",
3268
- "body": {
3269
- "package": "himalaya",
3270
- "type": "Text",
3271
- "props": {
3272
- "text": "My Account",
3273
- "style": "bodyEmphasis"
3274
- }
3275
- }
3276
- },
3277
- {
3278
- "id": "",
3279
- "body": {
3280
- "package": "himalaya",
3281
- "type": "Spacer",
3282
- "props": {}
3283
- }
3284
- },
3285
- {
3286
- "id": "",
3287
- "body": {
3288
- "package": "himalaya",
3289
- "type": "Icon",
3290
- "props": {
3291
- "name": "chevron_right",
3292
- "size": 16,
3293
- "tint": "textTertiary"
3294
- }
3295
- },
3296
- "modifiers": {
3297
- "accessibilityRole": "decorative"
3298
- }
3299
- }
3300
- ]
3301
- }
3302
- },
3303
- "modifiers": {
3304
- "background": {
3305
- "token": "surfaceElevated"
3306
- },
3307
- "border": {
3308
- "width": 1,
3309
- "color": {
3310
- "token": "border"
3311
- }
3312
- },
3313
- "cornerRadius": 8,
3314
- "padding": {
3315
- "leading": 14,
3316
- "trailing": 14,
3317
- "top": 13,
3318
- "bottom": 13
3319
- },
3320
- "onTap": {
3321
- "actionId": "himi.open",
3322
- "params": {
3323
- "screenId": "himi_account_settings"
3324
- }
3325
- },
3326
- "pressFeedback": "scale",
3327
- "haptic": "light",
3328
- "accessibilityLabel": "My Account",
3329
- "hiddenPath": "$service:himiStoreAccount.notMember"
3330
- }
3331
- },
3332
3243
  {
3333
3244
  "id": "",
3334
3245
  "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();
@@ -3126,7 +3126,7 @@ const SCREENS = runtimeSetting({
3126
3126
  "onTap": {
3127
3127
  "actionId": "himi.open",
3128
3128
  "params": {
3129
- "screenId": "himi_view_profile"
3129
+ "screenId": "himi_account_settings"
3130
3130
  }
3131
3131
  },
3132
3132
  "pressFeedback": "scale",
@@ -3208,95 +3208,6 @@ const SCREENS = runtimeSetting({
3208
3208
  "hiddenPath": "$service:himiStoreAccount.notMember"
3209
3209
  }
3210
3210
  },
3211
- {
3212
- "id": "himi_account.settings",
3213
- "body": {
3214
- "package": "himalaya",
3215
- "type": "HStack",
3216
- "props": {
3217
- "spacing": 12,
3218
- "children": [
3219
- {
3220
- "id": "",
3221
- "body": {
3222
- "package": "himalaya",
3223
- "type": "Icon",
3224
- "props": {
3225
- "name": "settings",
3226
- "size": 18,
3227
- "tint": "accentPrimary"
3228
- }
3229
- },
3230
- "modifiers": {
3231
- "accessibilityRole": "decorative"
3232
- }
3233
- },
3234
- {
3235
- "id": "",
3236
- "body": {
3237
- "package": "himalaya",
3238
- "type": "Text",
3239
- "props": {
3240
- "text": "My Account",
3241
- "style": "bodyEmphasis"
3242
- }
3243
- }
3244
- },
3245
- {
3246
- "id": "",
3247
- "body": {
3248
- "package": "himalaya",
3249
- "type": "Spacer",
3250
- "props": {}
3251
- }
3252
- },
3253
- {
3254
- "id": "",
3255
- "body": {
3256
- "package": "himalaya",
3257
- "type": "Icon",
3258
- "props": {
3259
- "name": "chevron_right",
3260
- "size": 16,
3261
- "tint": "textTertiary"
3262
- }
3263
- },
3264
- "modifiers": {
3265
- "accessibilityRole": "decorative"
3266
- }
3267
- }
3268
- ]
3269
- }
3270
- },
3271
- "modifiers": {
3272
- "background": {
3273
- "token": "surfaceElevated"
3274
- },
3275
- "border": {
3276
- "width": 1,
3277
- "color": {
3278
- "token": "border"
3279
- }
3280
- },
3281
- "cornerRadius": 8,
3282
- "padding": {
3283
- "leading": 14,
3284
- "trailing": 14,
3285
- "top": 13,
3286
- "bottom": 13
3287
- },
3288
- "onTap": {
3289
- "actionId": "himi.open",
3290
- "params": {
3291
- "screenId": "himi_account_settings"
3292
- }
3293
- },
3294
- "pressFeedback": "scale",
3295
- "haptic": "light",
3296
- "accessibilityLabel": "My Account",
3297
- "hiddenPath": "$service:himiStoreAccount.notMember"
3298
- }
3299
- },
3300
3211
  {
3301
3212
  "id": "",
3302
3213
  "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();