@wix/himalaya-cli 0.2052.0 → 0.2053.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 (352) hide show
  1. package/dist/cli.mjs +2 -1
  2. package/package.json +2 -2
  3. package/templates/beauty-salon/dev/index.ts +1109 -147
  4. package/templates/beauty-salon/l10n/ar.json +122 -6
  5. package/templates/beauty-salon/l10n/cs.json +122 -6
  6. package/templates/beauty-salon/l10n/da.json +122 -6
  7. package/templates/beauty-salon/l10n/de.json +122 -6
  8. package/templates/beauty-salon/l10n/el.json +122 -6
  9. package/templates/beauty-salon/l10n/en.json +81 -9
  10. package/templates/beauty-salon/l10n/es.json +122 -6
  11. package/templates/beauty-salon/l10n/fi.json +122 -6
  12. package/templates/beauty-salon/l10n/fr.json +122 -6
  13. package/templates/beauty-salon/l10n/he.json +96 -5
  14. package/templates/beauty-salon/l10n/hu.json +122 -6
  15. package/templates/beauty-salon/l10n/id.json +122 -6
  16. package/templates/beauty-salon/l10n/it.json +122 -6
  17. package/templates/beauty-salon/l10n/ja.json +122 -6
  18. package/templates/beauty-salon/l10n/ko.json +122 -6
  19. package/templates/beauty-salon/l10n/lt.json +122 -6
  20. package/templates/beauty-salon/l10n/nl.json +122 -6
  21. package/templates/beauty-salon/l10n/no.json +122 -6
  22. package/templates/beauty-salon/l10n/pl.json +122 -6
  23. package/templates/beauty-salon/l10n/pt.json +122 -6
  24. package/templates/beauty-salon/l10n/ru.json +122 -6
  25. package/templates/beauty-salon/l10n/sv.json +122 -6
  26. package/templates/beauty-salon/l10n/th.json +122 -6
  27. package/templates/beauty-salon/l10n/tr.json +122 -6
  28. package/templates/beauty-salon/l10n/uk.json +122 -6
  29. package/templates/beauty-salon/l10n/vi.json +122 -6
  30. package/templates/beauty-salon/l10n/zh.json +122 -6
  31. package/templates/beauty-salon/tier5-src/_shared/about-text.ts +8 -0
  32. package/templates/beauty-salon/tier5-src/wix-spaces-member-detail/index.ts +769 -0
  33. package/templates/branded-lite/dev/index.ts +1589 -143
  34. package/templates/branded-lite/l10n/ar.json +46 -6
  35. package/templates/branded-lite/l10n/cs.json +46 -6
  36. package/templates/branded-lite/l10n/da.json +46 -6
  37. package/templates/branded-lite/l10n/de.json +46 -6
  38. package/templates/branded-lite/l10n/el.json +46 -6
  39. package/templates/branded-lite/l10n/en.json +46 -11
  40. package/templates/branded-lite/l10n/es.json +46 -6
  41. package/templates/branded-lite/l10n/fi.json +46 -6
  42. package/templates/branded-lite/l10n/fr.json +46 -6
  43. package/templates/branded-lite/l10n/he.json +34 -5
  44. package/templates/branded-lite/l10n/hu.json +46 -6
  45. package/templates/branded-lite/l10n/id.json +46 -6
  46. package/templates/branded-lite/l10n/it.json +46 -6
  47. package/templates/branded-lite/l10n/ja.json +46 -6
  48. package/templates/branded-lite/l10n/ko.json +46 -6
  49. package/templates/branded-lite/l10n/lt.json +46 -6
  50. package/templates/branded-lite/l10n/nl.json +46 -6
  51. package/templates/branded-lite/l10n/no.json +46 -6
  52. package/templates/branded-lite/l10n/pl.json +46 -6
  53. package/templates/branded-lite/l10n/pt.json +46 -6
  54. package/templates/branded-lite/l10n/ru.json +46 -6
  55. package/templates/branded-lite/l10n/sv.json +46 -6
  56. package/templates/branded-lite/l10n/th.json +46 -6
  57. package/templates/branded-lite/l10n/tr.json +46 -6
  58. package/templates/branded-lite/l10n/uk.json +46 -6
  59. package/templates/branded-lite/l10n/vi.json +46 -6
  60. package/templates/branded-lite/l10n/zh.json +46 -6
  61. package/templates/branded-lite/tier5-src/_shared/about-text.ts +8 -0
  62. package/templates/branded-lite/tier5-src/wix-spaces-member-detail/index.ts +247 -34
  63. package/templates/community-club/dev/index.ts +1362 -155
  64. package/templates/community-club/l10n/ar.json +123 -12
  65. package/templates/community-club/l10n/cs.json +123 -12
  66. package/templates/community-club/l10n/da.json +123 -12
  67. package/templates/community-club/l10n/de.json +123 -12
  68. package/templates/community-club/l10n/el.json +123 -12
  69. package/templates/community-club/l10n/en.json +86 -15
  70. package/templates/community-club/l10n/es.json +123 -12
  71. package/templates/community-club/l10n/fi.json +123 -12
  72. package/templates/community-club/l10n/fr.json +123 -12
  73. package/templates/community-club/l10n/he.json +102 -10
  74. package/templates/community-club/l10n/hu.json +123 -12
  75. package/templates/community-club/l10n/id.json +123 -12
  76. package/templates/community-club/l10n/it.json +123 -12
  77. package/templates/community-club/l10n/ja.json +123 -12
  78. package/templates/community-club/l10n/ko.json +123 -12
  79. package/templates/community-club/l10n/lt.json +123 -12
  80. package/templates/community-club/l10n/nl.json +123 -12
  81. package/templates/community-club/l10n/no.json +123 -12
  82. package/templates/community-club/l10n/pl.json +123 -12
  83. package/templates/community-club/l10n/pt.json +123 -12
  84. package/templates/community-club/l10n/ru.json +123 -12
  85. package/templates/community-club/l10n/sv.json +123 -12
  86. package/templates/community-club/l10n/th.json +123 -12
  87. package/templates/community-club/l10n/tr.json +123 -12
  88. package/templates/community-club/l10n/uk.json +123 -12
  89. package/templates/community-club/l10n/vi.json +123 -12
  90. package/templates/community-club/l10n/zh.json +123 -12
  91. package/templates/community-club/tier5-src/_shared/about-text.ts +8 -0
  92. package/templates/community-club/tier5-src/_shared/detail-presence.ts +51 -0
  93. package/templates/community-club/tier5-src/wix-spaces-member-detail/index.ts +769 -0
  94. package/templates/events-meetups/dev/index.ts +1362 -155
  95. package/templates/events-meetups/l10n/ar.json +123 -12
  96. package/templates/events-meetups/l10n/cs.json +123 -12
  97. package/templates/events-meetups/l10n/da.json +123 -12
  98. package/templates/events-meetups/l10n/de.json +123 -12
  99. package/templates/events-meetups/l10n/el.json +123 -12
  100. package/templates/events-meetups/l10n/en.json +86 -15
  101. package/templates/events-meetups/l10n/es.json +123 -12
  102. package/templates/events-meetups/l10n/fi.json +123 -12
  103. package/templates/events-meetups/l10n/fr.json +123 -12
  104. package/templates/events-meetups/l10n/he.json +102 -10
  105. package/templates/events-meetups/l10n/hu.json +123 -12
  106. package/templates/events-meetups/l10n/id.json +123 -12
  107. package/templates/events-meetups/l10n/it.json +123 -12
  108. package/templates/events-meetups/l10n/ja.json +123 -12
  109. package/templates/events-meetups/l10n/ko.json +123 -12
  110. package/templates/events-meetups/l10n/lt.json +123 -12
  111. package/templates/events-meetups/l10n/nl.json +123 -12
  112. package/templates/events-meetups/l10n/no.json +123 -12
  113. package/templates/events-meetups/l10n/pl.json +123 -12
  114. package/templates/events-meetups/l10n/pt.json +123 -12
  115. package/templates/events-meetups/l10n/ru.json +123 -12
  116. package/templates/events-meetups/l10n/sv.json +123 -12
  117. package/templates/events-meetups/l10n/th.json +123 -12
  118. package/templates/events-meetups/l10n/tr.json +123 -12
  119. package/templates/events-meetups/l10n/uk.json +123 -12
  120. package/templates/events-meetups/l10n/vi.json +123 -12
  121. package/templates/events-meetups/l10n/zh.json +123 -12
  122. package/templates/events-meetups/tier5-src/_shared/about-text.ts +8 -0
  123. package/templates/events-meetups/tier5-src/_shared/detail-presence.ts +51 -0
  124. package/templates/events-meetups/tier5-src/wix-spaces-member-detail/index.ts +769 -0
  125. package/templates/gym-fitness/dev/index.ts +1109 -147
  126. package/templates/gym-fitness/l10n/ar.json +122 -6
  127. package/templates/gym-fitness/l10n/cs.json +122 -6
  128. package/templates/gym-fitness/l10n/da.json +122 -6
  129. package/templates/gym-fitness/l10n/de.json +122 -6
  130. package/templates/gym-fitness/l10n/el.json +122 -6
  131. package/templates/gym-fitness/l10n/en.json +81 -9
  132. package/templates/gym-fitness/l10n/es.json +122 -6
  133. package/templates/gym-fitness/l10n/fi.json +122 -6
  134. package/templates/gym-fitness/l10n/fr.json +122 -6
  135. package/templates/gym-fitness/l10n/he.json +96 -5
  136. package/templates/gym-fitness/l10n/hu.json +122 -6
  137. package/templates/gym-fitness/l10n/id.json +122 -6
  138. package/templates/gym-fitness/l10n/it.json +122 -6
  139. package/templates/gym-fitness/l10n/ja.json +122 -6
  140. package/templates/gym-fitness/l10n/ko.json +122 -6
  141. package/templates/gym-fitness/l10n/lt.json +122 -6
  142. package/templates/gym-fitness/l10n/nl.json +122 -6
  143. package/templates/gym-fitness/l10n/no.json +122 -6
  144. package/templates/gym-fitness/l10n/pl.json +122 -6
  145. package/templates/gym-fitness/l10n/pt.json +122 -6
  146. package/templates/gym-fitness/l10n/ru.json +122 -6
  147. package/templates/gym-fitness/l10n/sv.json +122 -6
  148. package/templates/gym-fitness/l10n/th.json +122 -6
  149. package/templates/gym-fitness/l10n/tr.json +122 -6
  150. package/templates/gym-fitness/l10n/uk.json +122 -6
  151. package/templates/gym-fitness/l10n/vi.json +122 -6
  152. package/templates/gym-fitness/l10n/zh.json +122 -6
  153. package/templates/gym-fitness/tier5-src/_shared/about-text.ts +8 -0
  154. package/templates/gym-fitness/tier5-src/wix-spaces-member-detail/index.ts +769 -0
  155. package/templates/nonprofit-cause/dev/index.ts +1360 -153
  156. package/templates/nonprofit-cause/l10n/ar.json +123 -6
  157. package/templates/nonprofit-cause/l10n/cs.json +123 -6
  158. package/templates/nonprofit-cause/l10n/da.json +123 -6
  159. package/templates/nonprofit-cause/l10n/de.json +123 -6
  160. package/templates/nonprofit-cause/l10n/el.json +123 -6
  161. package/templates/nonprofit-cause/l10n/en.json +86 -9
  162. package/templates/nonprofit-cause/l10n/es.json +123 -6
  163. package/templates/nonprofit-cause/l10n/fi.json +123 -6
  164. package/templates/nonprofit-cause/l10n/fr.json +123 -6
  165. package/templates/nonprofit-cause/l10n/he.json +102 -5
  166. package/templates/nonprofit-cause/l10n/hu.json +123 -6
  167. package/templates/nonprofit-cause/l10n/id.json +123 -6
  168. package/templates/nonprofit-cause/l10n/it.json +123 -6
  169. package/templates/nonprofit-cause/l10n/ja.json +123 -6
  170. package/templates/nonprofit-cause/l10n/ko.json +123 -6
  171. package/templates/nonprofit-cause/l10n/lt.json +123 -6
  172. package/templates/nonprofit-cause/l10n/nl.json +123 -6
  173. package/templates/nonprofit-cause/l10n/no.json +123 -6
  174. package/templates/nonprofit-cause/l10n/pl.json +123 -6
  175. package/templates/nonprofit-cause/l10n/pt.json +123 -6
  176. package/templates/nonprofit-cause/l10n/ru.json +123 -6
  177. package/templates/nonprofit-cause/l10n/sv.json +123 -6
  178. package/templates/nonprofit-cause/l10n/th.json +123 -6
  179. package/templates/nonprofit-cause/l10n/tr.json +123 -6
  180. package/templates/nonprofit-cause/l10n/uk.json +123 -6
  181. package/templates/nonprofit-cause/l10n/vi.json +123 -6
  182. package/templates/nonprofit-cause/l10n/zh.json +123 -6
  183. package/templates/nonprofit-cause/tier5-src/_shared/about-text.ts +8 -0
  184. package/templates/nonprofit-cause/tier5-src/wix-spaces-member-detail/index.ts +769 -0
  185. package/templates/personal-fitness-trainer/dev/index.ts +650 -75
  186. package/templates/personal-fitness-trainer/tier5-src/_shared/about-text.ts +8 -0
  187. package/templates/personal-fitness-trainer/tier5-src/_shared/group-member-count.ts +15 -0
  188. package/templates/personal-fitness-trainer/tier5-src/_shared/himi-media.ts +33 -0
  189. package/templates/personal-fitness-trainer/tier5-src/wix-spaces-member-detail/index.ts +769 -0
  190. package/templates/personal-fitness-trainer/tokens.json +6 -0
  191. package/templates/podcast-creator/dev/index.ts +1115 -153
  192. package/templates/podcast-creator/l10n/ar.json +117 -6
  193. package/templates/podcast-creator/l10n/cs.json +117 -6
  194. package/templates/podcast-creator/l10n/da.json +117 -6
  195. package/templates/podcast-creator/l10n/de.json +117 -6
  196. package/templates/podcast-creator/l10n/el.json +117 -6
  197. package/templates/podcast-creator/l10n/en.json +81 -9
  198. package/templates/podcast-creator/l10n/es.json +117 -6
  199. package/templates/podcast-creator/l10n/fi.json +117 -6
  200. package/templates/podcast-creator/l10n/fr.json +117 -6
  201. package/templates/podcast-creator/l10n/he.json +96 -5
  202. package/templates/podcast-creator/l10n/hu.json +117 -6
  203. package/templates/podcast-creator/l10n/id.json +117 -6
  204. package/templates/podcast-creator/l10n/it.json +117 -6
  205. package/templates/podcast-creator/l10n/ja.json +117 -6
  206. package/templates/podcast-creator/l10n/ko.json +117 -6
  207. package/templates/podcast-creator/l10n/lt.json +117 -6
  208. package/templates/podcast-creator/l10n/nl.json +117 -6
  209. package/templates/podcast-creator/l10n/no.json +117 -6
  210. package/templates/podcast-creator/l10n/pl.json +117 -6
  211. package/templates/podcast-creator/l10n/pt.json +117 -6
  212. package/templates/podcast-creator/l10n/ru.json +117 -6
  213. package/templates/podcast-creator/l10n/sv.json +117 -6
  214. package/templates/podcast-creator/l10n/th.json +117 -6
  215. package/templates/podcast-creator/l10n/tr.json +117 -6
  216. package/templates/podcast-creator/l10n/uk.json +117 -6
  217. package/templates/podcast-creator/l10n/vi.json +117 -6
  218. package/templates/podcast-creator/l10n/zh.json +117 -6
  219. package/templates/podcast-creator/tier5-src/_shared/about-text.ts +8 -0
  220. package/templates/podcast-creator/tier5-src/wix-spaces-member-detail/index.ts +769 -0
  221. package/templates/portfolio-creative/dev/index.ts +1113 -151
  222. package/templates/portfolio-creative/l10n/ar.json +122 -12
  223. package/templates/portfolio-creative/l10n/cs.json +122 -12
  224. package/templates/portfolio-creative/l10n/da.json +122 -12
  225. package/templates/portfolio-creative/l10n/de.json +122 -12
  226. package/templates/portfolio-creative/l10n/el.json +122 -12
  227. package/templates/portfolio-creative/l10n/en.json +81 -15
  228. package/templates/portfolio-creative/l10n/es.json +122 -12
  229. package/templates/portfolio-creative/l10n/fi.json +122 -12
  230. package/templates/portfolio-creative/l10n/fr.json +122 -12
  231. package/templates/portfolio-creative/l10n/he.json +96 -10
  232. package/templates/portfolio-creative/l10n/hu.json +122 -12
  233. package/templates/portfolio-creative/l10n/id.json +122 -12
  234. package/templates/portfolio-creative/l10n/it.json +122 -12
  235. package/templates/portfolio-creative/l10n/ja.json +122 -12
  236. package/templates/portfolio-creative/l10n/ko.json +122 -12
  237. package/templates/portfolio-creative/l10n/lt.json +122 -12
  238. package/templates/portfolio-creative/l10n/nl.json +122 -12
  239. package/templates/portfolio-creative/l10n/no.json +122 -12
  240. package/templates/portfolio-creative/l10n/pl.json +122 -12
  241. package/templates/portfolio-creative/l10n/pt.json +122 -12
  242. package/templates/portfolio-creative/l10n/ru.json +122 -12
  243. package/templates/portfolio-creative/l10n/sv.json +122 -12
  244. package/templates/portfolio-creative/l10n/th.json +122 -12
  245. package/templates/portfolio-creative/l10n/tr.json +122 -12
  246. package/templates/portfolio-creative/l10n/uk.json +122 -12
  247. package/templates/portfolio-creative/l10n/vi.json +122 -12
  248. package/templates/portfolio-creative/l10n/zh.json +122 -12
  249. package/templates/portfolio-creative/tier5-src/_shared/about-text.ts +8 -0
  250. package/templates/portfolio-creative/tier5-src/wix-spaces-member-detail/index.ts +769 -0
  251. package/templates/restaurant/dev/index.ts +1114 -152
  252. package/templates/restaurant/l10n/ar.json +117 -6
  253. package/templates/restaurant/l10n/cs.json +117 -6
  254. package/templates/restaurant/l10n/da.json +117 -6
  255. package/templates/restaurant/l10n/de.json +117 -6
  256. package/templates/restaurant/l10n/el.json +117 -6
  257. package/templates/restaurant/l10n/en.json +81 -9
  258. package/templates/restaurant/l10n/es.json +117 -6
  259. package/templates/restaurant/l10n/fi.json +117 -6
  260. package/templates/restaurant/l10n/fr.json +117 -6
  261. package/templates/restaurant/l10n/he.json +96 -5
  262. package/templates/restaurant/l10n/hu.json +117 -6
  263. package/templates/restaurant/l10n/id.json +117 -6
  264. package/templates/restaurant/l10n/it.json +117 -6
  265. package/templates/restaurant/l10n/ja.json +117 -6
  266. package/templates/restaurant/l10n/ko.json +117 -6
  267. package/templates/restaurant/l10n/lt.json +117 -6
  268. package/templates/restaurant/l10n/nl.json +117 -6
  269. package/templates/restaurant/l10n/no.json +117 -6
  270. package/templates/restaurant/l10n/pl.json +117 -6
  271. package/templates/restaurant/l10n/pt.json +117 -6
  272. package/templates/restaurant/l10n/ru.json +117 -6
  273. package/templates/restaurant/l10n/sv.json +117 -6
  274. package/templates/restaurant/l10n/th.json +117 -6
  275. package/templates/restaurant/l10n/tr.json +117 -6
  276. package/templates/restaurant/l10n/uk.json +117 -6
  277. package/templates/restaurant/l10n/vi.json +117 -6
  278. package/templates/restaurant/l10n/zh.json +117 -6
  279. package/templates/restaurant/tier5-src/_shared/about-text.ts +8 -0
  280. package/templates/restaurant/tier5-src/wix-spaces-member-detail/index.ts +769 -0
  281. package/templates/retail-store/dev/index.ts +1115 -153
  282. package/templates/retail-store/l10n/ar.json +122 -12
  283. package/templates/retail-store/l10n/cs.json +122 -12
  284. package/templates/retail-store/l10n/da.json +122 -12
  285. package/templates/retail-store/l10n/de.json +122 -12
  286. package/templates/retail-store/l10n/el.json +122 -12
  287. package/templates/retail-store/l10n/en.json +81 -15
  288. package/templates/retail-store/l10n/es.json +122 -12
  289. package/templates/retail-store/l10n/fi.json +122 -12
  290. package/templates/retail-store/l10n/fr.json +122 -12
  291. package/templates/retail-store/l10n/he.json +96 -10
  292. package/templates/retail-store/l10n/hu.json +122 -12
  293. package/templates/retail-store/l10n/id.json +122 -12
  294. package/templates/retail-store/l10n/it.json +122 -12
  295. package/templates/retail-store/l10n/ja.json +122 -12
  296. package/templates/retail-store/l10n/ko.json +122 -12
  297. package/templates/retail-store/l10n/lt.json +122 -12
  298. package/templates/retail-store/l10n/nl.json +122 -12
  299. package/templates/retail-store/l10n/no.json +122 -12
  300. package/templates/retail-store/l10n/pl.json +122 -12
  301. package/templates/retail-store/l10n/pt.json +122 -12
  302. package/templates/retail-store/l10n/ru.json +122 -12
  303. package/templates/retail-store/l10n/sv.json +122 -12
  304. package/templates/retail-store/l10n/th.json +122 -12
  305. package/templates/retail-store/l10n/tr.json +122 -12
  306. package/templates/retail-store/l10n/uk.json +122 -12
  307. package/templates/retail-store/l10n/vi.json +122 -12
  308. package/templates/retail-store/l10n/zh.json +122 -12
  309. package/templates/retail-store/tier5-src/_shared/about-text.ts +8 -0
  310. package/templates/retail-store/tier5-src/wix-spaces-member-detail/index.ts +769 -0
  311. package/templates/yoga-studio/dev/index.ts +1109 -147
  312. package/templates/yoga-studio/l10n/ar.json +117 -6
  313. package/templates/yoga-studio/l10n/cs.json +117 -6
  314. package/templates/yoga-studio/l10n/da.json +117 -6
  315. package/templates/yoga-studio/l10n/de.json +117 -6
  316. package/templates/yoga-studio/l10n/el.json +117 -6
  317. package/templates/yoga-studio/l10n/en.json +81 -9
  318. package/templates/yoga-studio/l10n/es.json +117 -6
  319. package/templates/yoga-studio/l10n/fi.json +117 -6
  320. package/templates/yoga-studio/l10n/fr.json +117 -6
  321. package/templates/yoga-studio/l10n/he.json +96 -5
  322. package/templates/yoga-studio/l10n/hu.json +117 -6
  323. package/templates/yoga-studio/l10n/id.json +117 -6
  324. package/templates/yoga-studio/l10n/it.json +117 -6
  325. package/templates/yoga-studio/l10n/ja.json +117 -6
  326. package/templates/yoga-studio/l10n/ko.json +117 -6
  327. package/templates/yoga-studio/l10n/lt.json +117 -6
  328. package/templates/yoga-studio/l10n/nl.json +117 -6
  329. package/templates/yoga-studio/l10n/no.json +117 -6
  330. package/templates/yoga-studio/l10n/pl.json +117 -6
  331. package/templates/yoga-studio/l10n/pt.json +117 -6
  332. package/templates/yoga-studio/l10n/ru.json +117 -6
  333. package/templates/yoga-studio/l10n/sv.json +117 -6
  334. package/templates/yoga-studio/l10n/th.json +117 -6
  335. package/templates/yoga-studio/l10n/tr.json +117 -6
  336. package/templates/yoga-studio/l10n/uk.json +117 -6
  337. package/templates/yoga-studio/l10n/vi.json +117 -6
  338. package/templates/yoga-studio/l10n/zh.json +117 -6
  339. package/templates/yoga-studio/tier5-src/_shared/about-text.ts +8 -0
  340. package/templates/yoga-studio/tier5-src/wix-spaces-member-detail/index.ts +769 -0
  341. package/templates/beauty-salon/tier5-src/wix-spaces-view-profile/index.ts +0 -119
  342. package/templates/branded-lite/tier5-src/wix-spaces-view-profile/index.ts +0 -119
  343. package/templates/community-club/tier5-src/wix-spaces-view-profile/index.ts +0 -119
  344. package/templates/events-meetups/tier5-src/wix-spaces-view-profile/index.ts +0 -119
  345. package/templates/gym-fitness/tier5-src/wix-spaces-view-profile/index.ts +0 -119
  346. package/templates/nonprofit-cause/tier5-src/wix-spaces-view-profile/index.ts +0 -119
  347. package/templates/personal-fitness-trainer/tier5-src/wix-spaces-view-profile/index.ts +0 -119
  348. package/templates/podcast-creator/tier5-src/wix-spaces-view-profile/index.ts +0 -119
  349. package/templates/portfolio-creative/tier5-src/wix-spaces-view-profile/index.ts +0 -119
  350. package/templates/restaurant/tier5-src/wix-spaces-view-profile/index.ts +0 -119
  351. package/templates/retail-store/tier5-src/wix-spaces-view-profile/index.ts +0 -119
  352. package/templates/yoga-studio/tier5-src/wix-spaces-view-profile/index.ts +0 -119
@@ -1,119 +0,0 @@
1
- // Tier-5 bundle: Wix Spaces clone — View Profile (member's own public profile).
2
- // Prefer site Members Area (`GET /members/v1/members/my`) + session email; never
3
- // paint the seeded "apptestercoowner" demo identity when the session is a real
4
- // member (or a guest — show honesty instead).
5
- import { defineService } from "@himalaya/state";
6
- import { memberAccess } from "../_shared/member-access.js";
7
- import { getMyData, displayName } from "@himalaya/wix-users";
8
-
9
- // `needsSignIn` / `noSignIn` drive the shared member gate: a guest gets the
10
- // gate with a Sign in button and no placeholder profile. `profileHidden` stays true until
11
- // `load` has resolved a member, so a guest never glimpses the placeholder avatar while
12
- // the membership check is still running; `hideLoading` is false for exactly that moment,
13
- // so the screen shows a loading line instead of going blank.
14
- interface S { status: "loading" | "ready"; name: string; handle: string; about: string; initial: string; photo: string; needsSignIn: boolean; noSignIn: boolean; profileHidden: boolean; hideLoading: boolean; hideError: boolean; hideAbout: boolean }
15
-
16
- const EMPTY: S = {
17
- status: "loading",
18
- name: "",
19
- handle: "",
20
- about: "No info to display.",
21
- initial: "?",
22
- photo: "",
23
- needsSignIn: false,
24
- noSignIn: true,
25
- profileHidden: true,
26
- hideLoading: false,
27
- hideError: true,
28
- hideAbout: false,
29
- };
30
-
31
- // The SAME member check create-post and orders use (`memberAccess`: the host's
32
- // memberIdentity, falling back to wix-users only on hosts that predate that action), so
33
- // one shared gate never gives two answers in one app.
34
- async function sessionEmail(): Promise<string> {
35
- return (await memberAccess()).email;
36
- }
37
-
38
- function wixApi() {
39
- return (globalThis as { himalaya?: { wixApi?: { call: (m: string, p: string, b?: unknown) => Promise<unknown> } } }).himalaya?.wixApi;
40
- }
41
-
42
- function fromParts(name: string, handleRaw: string, about: string, photo = ""): S {
43
- const clean = name.trim();
44
- const handle = "@" + (handleRaw || clean || "member").replace(/\s+/g, "").replace(/^@+/, "").toLowerCase();
45
- const initial = (clean.split(/\s+/).filter(Boolean).map((w) => w[0]).join("").slice(0, 2) || "?").toUpperCase();
46
- return { status: "ready", name: clean || "Member", handle, about: about || "No info to display.", initial, photo, needsSignIn: false, noSignIn: true, profileHidden: false, hideLoading: true, hideError: true, hideAbout: false };
47
- }
48
-
49
- async function readProfile(): Promise<S> {
50
- const email = await sessionEmail();
51
- if (!email) {
52
- return {
53
- status: "ready",
54
- // Kept for hosts without the shared member gate (the Spaces clone renders these
55
- // fields directly); branded-lite hides the profile block behind `profileHidden`.
56
- name: "Sign in to view your profile",
57
- handle: "",
58
- about: "Your public profile is available after you sign in from Account.",
59
- initial: "?",
60
- photo: "",
61
- needsSignIn: true,
62
- noSignIn: false,
63
- profileHidden: true,
64
- hideLoading: true,
65
- hideError: true,
66
- hideAbout: false,
67
- };
68
- }
69
- try {
70
- const api = wixApi();
71
- if (api) {
72
- const res = (await api.call("GET", "/members/v1/members/my?fieldSet=FULL")) as {
73
- member?: {
74
- loginEmail?: string;
75
- contact?: { firstName?: string; lastName?: string };
76
- profile?: { nickname?: string; slug?: string; title?: string; photo?: { url?: string } };
77
- };
78
- };
79
- const m = res.member;
80
- if (m) {
81
- const nick = m.profile?.nickname?.trim() || "";
82
- const full = [m.contact?.firstName, m.contact?.lastName].filter(Boolean).join(" ").trim();
83
- const name = full || nick || m.loginEmail || email;
84
- const slug = m.profile?.slug || nick || name;
85
- const about = m.profile?.title || "No info to display.";
86
- return fromParts(name, slug, about, m.profile?.photo?.url || "");
87
- }
88
- }
89
- } catch { /* fall through to users my-data / email */ }
90
- try {
91
- const d = await getMyData();
92
- const name = displayName(d) || email;
93
- const dd = d as unknown as { nickname?: string; slug?: string; about?: string; aboutPlain?: string; profile?: { photo?: { url?: string } }; photo?: { url?: string } };
94
- return fromParts(
95
- name,
96
- dd.slug || dd.nickname || name,
97
- dd.aboutPlain || dd.about || "No info to display.",
98
- dd.profile?.photo?.url || dd.photo?.url || "",
99
- );
100
- } catch {
101
- // Session identity is still known; missing profile data is not an empty biography.
102
- return { ...fromParts(email, email.split("@")[0] || email, ""), about: "Profile details could not be loaded. Please try again.", hideError: false, hideAbout: true };
103
- }
104
- }
105
- let generation = 0;
106
- const svc = defineService<S, { load: (s: S) => Promise<S | undefined> }>("spacesViewProfile", {
107
- state: { ...EMPTY },
108
- notHydrated: Object.keys(EMPTY) as (keyof S & string)[],
109
- actions: {
110
- load: async () => {
111
- const request = ++generation;
112
- const next = await readProfile();
113
- return request === generation ? next : undefined;
114
- },
115
- },
116
- });
117
- if (!(globalThis as { himalaya?: { hydrationOptOut?: boolean } }).himalaya?.hydrationOptOut) Object.assign(svc.getState(), EMPTY);
118
- void svc.load();
119
- export { svc };
@@ -1,119 +0,0 @@
1
- // Tier-5 bundle: Wix Spaces clone — View Profile (member's own public profile).
2
- // Prefer site Members Area (`GET /members/v1/members/my`) + session email; never
3
- // paint the seeded "apptestercoowner" demo identity when the session is a real
4
- // member (or a guest — show honesty instead).
5
- import { defineService } from "@himalaya/state";
6
- import { memberAccess } from "../_shared/member-access.js";
7
- import { getMyData, displayName } from "@himalaya/wix-users";
8
-
9
- // `needsSignIn` / `noSignIn` drive the shared member gate: a guest gets the
10
- // gate with a Sign in button and no placeholder profile. `profileHidden` stays true until
11
- // `load` has resolved a member, so a guest never glimpses the placeholder avatar while
12
- // the membership check is still running; `hideLoading` is false for exactly that moment,
13
- // so the screen shows a loading line instead of going blank.
14
- interface S { status: "loading" | "ready"; name: string; handle: string; about: string; initial: string; photo: string; needsSignIn: boolean; noSignIn: boolean; profileHidden: boolean; hideLoading: boolean; hideError: boolean; hideAbout: boolean }
15
-
16
- const EMPTY: S = {
17
- status: "loading",
18
- name: "",
19
- handle: "",
20
- about: "No info to display.",
21
- initial: "?",
22
- photo: "",
23
- needsSignIn: false,
24
- noSignIn: true,
25
- profileHidden: true,
26
- hideLoading: false,
27
- hideError: true,
28
- hideAbout: false,
29
- };
30
-
31
- // The SAME member check create-post and orders use (`memberAccess`: the host's
32
- // memberIdentity, falling back to wix-users only on hosts that predate that action), so
33
- // one shared gate never gives two answers in one app.
34
- async function sessionEmail(): Promise<string> {
35
- return (await memberAccess()).email;
36
- }
37
-
38
- function wixApi() {
39
- return (globalThis as { himalaya?: { wixApi?: { call: (m: string, p: string, b?: unknown) => Promise<unknown> } } }).himalaya?.wixApi;
40
- }
41
-
42
- function fromParts(name: string, handleRaw: string, about: string, photo = ""): S {
43
- const clean = name.trim();
44
- const handle = "@" + (handleRaw || clean || "member").replace(/\s+/g, "").replace(/^@+/, "").toLowerCase();
45
- const initial = (clean.split(/\s+/).filter(Boolean).map((w) => w[0]).join("").slice(0, 2) || "?").toUpperCase();
46
- return { status: "ready", name: clean || "Member", handle, about: about || "No info to display.", initial, photo, needsSignIn: false, noSignIn: true, profileHidden: false, hideLoading: true, hideError: true, hideAbout: false };
47
- }
48
-
49
- async function readProfile(): Promise<S> {
50
- const email = await sessionEmail();
51
- if (!email) {
52
- return {
53
- status: "ready",
54
- // Kept for hosts without the shared member gate (the Spaces clone renders these
55
- // fields directly); branded-lite hides the profile block behind `profileHidden`.
56
- name: "Sign in to view your profile",
57
- handle: "",
58
- about: "Your public profile is available after you sign in from Account.",
59
- initial: "?",
60
- photo: "",
61
- needsSignIn: true,
62
- noSignIn: false,
63
- profileHidden: true,
64
- hideLoading: true,
65
- hideError: true,
66
- hideAbout: false,
67
- };
68
- }
69
- try {
70
- const api = wixApi();
71
- if (api) {
72
- const res = (await api.call("GET", "/members/v1/members/my?fieldSet=FULL")) as {
73
- member?: {
74
- loginEmail?: string;
75
- contact?: { firstName?: string; lastName?: string };
76
- profile?: { nickname?: string; slug?: string; title?: string; photo?: { url?: string } };
77
- };
78
- };
79
- const m = res.member;
80
- if (m) {
81
- const nick = m.profile?.nickname?.trim() || "";
82
- const full = [m.contact?.firstName, m.contact?.lastName].filter(Boolean).join(" ").trim();
83
- const name = full || nick || m.loginEmail || email;
84
- const slug = m.profile?.slug || nick || name;
85
- const about = m.profile?.title || "No info to display.";
86
- return fromParts(name, slug, about, m.profile?.photo?.url || "");
87
- }
88
- }
89
- } catch { /* fall through to users my-data / email */ }
90
- try {
91
- const d = await getMyData();
92
- const name = displayName(d) || email;
93
- const dd = d as unknown as { nickname?: string; slug?: string; about?: string; aboutPlain?: string; profile?: { photo?: { url?: string } }; photo?: { url?: string } };
94
- return fromParts(
95
- name,
96
- dd.slug || dd.nickname || name,
97
- dd.aboutPlain || dd.about || "No info to display.",
98
- dd.profile?.photo?.url || dd.photo?.url || "",
99
- );
100
- } catch {
101
- // Session identity is still known; missing profile data is not an empty biography.
102
- return { ...fromParts(email, email.split("@")[0] || email, ""), about: "Profile details could not be loaded. Please try again.", hideError: false, hideAbout: true };
103
- }
104
- }
105
- let generation = 0;
106
- const svc = defineService<S, { load: (s: S) => Promise<S | undefined> }>("spacesViewProfile", {
107
- state: { ...EMPTY },
108
- notHydrated: Object.keys(EMPTY) as (keyof S & string)[],
109
- actions: {
110
- load: async () => {
111
- const request = ++generation;
112
- const next = await readProfile();
113
- return request === generation ? next : undefined;
114
- },
115
- },
116
- });
117
- if (!(globalThis as { himalaya?: { hydrationOptOut?: boolean } }).himalaya?.hydrationOptOut) Object.assign(svc.getState(), EMPTY);
118
- void svc.load();
119
- export { svc };