@wix/himalaya-cli 0.1871.0 → 0.1872.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.
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/app-module.d.ts +3 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/portfolio/src/index.d.ts +19 -0
- package/dist/cli.mjs +89 -39
- package/fixtures/wix-canned.json +8 -0
- package/guides/release-notes.md +18 -0
- package/guides/sdk-reference.json +8 -1
- package/package.json +2 -2
- package/template-icons/professional-services.png +0 -0
- package/templates/bare-fashion/config.ts +37 -2
- package/templates/bare-fashion/dev/index.ts +4006 -48
- package/templates/bare-fashion/himalaya.content.json +15 -0
- package/templates/bare-fashion/tier5-src/_shared/member-account-routes.ts +56 -0
- package/templates/bare-fashion/tier5-src/himi-branded-lite-account-settings/blocked-members.ts +295 -0
- package/templates/bare-fashion/tier5-src/himi-branded-lite-account-settings/index.ts +58 -0
- package/templates/bare-fashion/tier5-src/himi-branded-lite-account-settings/login-info.ts +274 -0
- package/templates/bare-fashion/tier5-src/himi-branded-lite-account-settings/personal-info.ts +881 -0
- package/templates/bare-fashion/tier5-src/himi-branded-lite-account-settings/privacy.ts +139 -0
- package/templates/bare-fashion/tier5-src/himi-branded-lite-account-settings/shared.ts +136 -0
- package/templates/branded-lite/dev/index.ts +2 -1
- package/templates/branded-lite/tier5-src/_shared/portfolio-details.ts +70 -0
- package/templates/branded-lite/tier5-src/himi-branded-lite-coupons/index.ts +13 -2
- package/templates/branded-lite/tier5-src/himi-branded-lite-portfolio/index.ts +90 -9
- package/templates/branded-lite/tier5-src/himi-branded-lite-portfolio-project/index.ts +53 -4
- package/templates/branded-lite/tier5-src/himi-events-list/index.ts +5 -1
- package/templates/community-club/tier5-src/himi-events-list/index.ts +5 -1
- package/templates/conference/config.ts +43 -1
- package/templates/conference/dev/index.ts +4127 -0
- package/templates/conference/himalaya.content.json +18 -0
- package/templates/conference/tier5-src/himi-branded-lite-account-settings/blocked-members.ts +295 -0
- package/templates/conference/tier5-src/himi-branded-lite-account-settings/index.ts +58 -0
- package/templates/conference/tier5-src/himi-branded-lite-account-settings/login-info.ts +274 -0
- package/templates/conference/tier5-src/himi-branded-lite-account-settings/personal-info.ts +881 -0
- package/templates/conference/tier5-src/himi-branded-lite-account-settings/privacy.ts +139 -0
- package/templates/conference/tier5-src/himi-branded-lite-account-settings/shared.ts +136 -0
- package/templates/conference/tier5-src/himi-events-list/index.ts +5 -1
- package/templates/conference/tier5-src/wix-spaces-delete-account/index.ts +59 -0
- package/templates/events-meetups/tier5-src/himi-events-list/index.ts +5 -1
- package/templates/gym-fitness/tier5-src/himi-events-list/index.ts +5 -1
- package/templates/medical-services/config.ts +42 -0
- package/templates/medical-services/dev/index.ts +4136 -0
- package/templates/medical-services/himalaya.content.json +18 -0
- package/templates/medical-services/tier5-src/himi-branded-lite-account-settings/blocked-members.ts +295 -0
- package/templates/medical-services/tier5-src/himi-branded-lite-account-settings/index.ts +58 -0
- package/templates/medical-services/tier5-src/himi-branded-lite-account-settings/login-info.ts +274 -0
- package/templates/medical-services/tier5-src/himi-branded-lite-account-settings/personal-info.ts +881 -0
- package/templates/medical-services/tier5-src/himi-branded-lite-account-settings/privacy.ts +139 -0
- package/templates/medical-services/tier5-src/himi-branded-lite-account-settings/shared.ts +136 -0
- package/templates/medical-services/tier5-src/wix-spaces-delete-account/index.ts +59 -0
- package/templates/nonprofit-cause/tier5-src/himi-events-list/index.ts +5 -1
- package/templates/podcast-creator/tier5-src/himi-events-list/index.ts +5 -1
- package/templates/portfolio-creative/dev/index.ts +2 -1
- package/templates/portfolio-creative/tier5-src/_shared/portfolio-details.ts +70 -0
- package/templates/portfolio-creative/tier5-src/himi-branded-lite-portfolio/index.ts +90 -9
- package/templates/portfolio-creative/tier5-src/himi-branded-lite-portfolio-project/index.ts +53 -4
- package/templates/portfolio-creative/tier5-src/himi-events-list/index.ts +5 -1
- package/templates/professional-services/README.md +55 -0
- package/templates/professional-services/config.ts +436 -0
- package/templates/professional-services/dev/index.ts +44772 -0
- package/templates/professional-services/himalaya.content.json +100 -0
- package/templates/professional-services/himalaya.template.json +16 -0
- package/templates/professional-services/icon.png +0 -0
- package/templates/professional-services/platforms.json +1 -0
- package/templates/professional-services/tier5-src/_shared/app-locale.ts +70 -0
- package/templates/professional-services/tier5-src/_shared/booking-location.ts +147 -0
- package/templates/professional-services/tier5-src/_shared/booking-session.ts +224 -0
- package/templates/professional-services/tier5-src/_shared/branded-lite-hosted.ts +282 -0
- package/templates/professional-services/tier5-src/_shared/branded-load-state.ts +109 -0
- package/templates/professional-services/tier5-src/_shared/business-chat-copy.ts +40 -0
- package/templates/professional-services/tier5-src/_shared/business-chat-history.ts +51 -0
- package/templates/professional-services/tier5-src/_shared/business-chat-message-model.ts +177 -0
- package/templates/professional-services/tier5-src/_shared/business-chat-model.ts +56 -0
- package/templates/professional-services/tier5-src/_shared/business-chat-presenter.ts +587 -0
- package/templates/professional-services/tier5-src/_shared/business-chat-transport.ts +164 -0
- package/templates/professional-services/tier5-src/_shared/chat-live.ts +242 -0
- package/templates/professional-services/tier5-src/_shared/collection-contract.ts +232 -0
- package/templates/professional-services/tier5-src/_shared/collection-query.ts +201 -0
- package/templates/professional-services/tier5-src/_shared/collection-service.ts +429 -0
- package/templates/professional-services/tier5-src/_shared/detail-presence.ts +51 -0
- package/templates/professional-services/tier5-src/_shared/engine-intl.ts +538 -0
- package/templates/professional-services/tier5-src/_shared/event-registration.ts +86 -0
- package/templates/professional-services/tier5-src/_shared/events-inline-options.ts +77 -0
- package/templates/professional-services/tier5-src/_shared/faq-list.ts +405 -0
- package/templates/professional-services/tier5-src/_shared/featured-event.ts +63 -0
- package/templates/professional-services/tier5-src/_shared/group-member-count.ts +15 -0
- package/templates/professional-services/tier5-src/_shared/group-privacy.ts +14 -0
- package/templates/professional-services/tier5-src/_shared/guest-sign-in.ts +36 -0
- package/templates/professional-services/tier5-src/_shared/himi-account.ts +222 -0
- package/templates/professional-services/tier5-src/_shared/himi-blog-hidden.ts +66 -0
- package/templates/professional-services/tier5-src/_shared/himi-blog-post-row.ts +214 -0
- package/templates/professional-services/tier5-src/_shared/himi-blog-saved.ts +64 -0
- package/templates/professional-services/tier5-src/_shared/himi-booking-saved.ts +88 -0
- package/templates/professional-services/tier5-src/_shared/himi-bookings.ts +318 -0
- package/templates/professional-services/tier5-src/_shared/himi-copy.ts +123 -0
- package/templates/professional-services/tier5-src/_shared/himi-events.ts +92 -0
- package/templates/professional-services/tier5-src/_shared/himi-media.ts +33 -0
- package/templates/professional-services/tier5-src/_shared/himi-store.ts +7 -0
- package/templates/professional-services/tier5-src/_shared/himi-text.ts +24 -0
- package/templates/professional-services/tier5-src/_shared/host-events.ts +66 -0
- package/templates/professional-services/tier5-src/_shared/hosted-checkout.ts +70 -0
- package/templates/professional-services/tier5-src/_shared/iap-attendance-form.ts +106 -0
- package/templates/professional-services/tier5-src/_shared/iap-attendance-purchase.ts +235 -0
- package/templates/professional-services/tier5-src/_shared/iap-attendance.ts +38 -0
- package/templates/professional-services/tier5-src/_shared/iap-worker.ts +127 -0
- package/templates/professional-services/tier5-src/_shared/inbox-rooms.ts +163 -0
- package/templates/professional-services/tier5-src/_shared/local-preferences.ts +38 -0
- package/templates/professional-services/tier5-src/_shared/member-access.ts +63 -0
- package/templates/professional-services/tier5-src/_shared/member-account-routes.ts +56 -0
- package/templates/professional-services/tier5-src/_shared/member-avatar.ts +76 -0
- package/templates/professional-services/tier5-src/_shared/member-bookings.ts +107 -0
- package/templates/professional-services/tier5-src/_shared/member-read.ts +82 -0
- package/templates/professional-services/tier5-src/_shared/member-screen.ts +99 -0
- package/templates/professional-services/tier5-src/_shared/notification-target.ts +141 -0
- package/templates/professional-services/tier5-src/_shared/offset-page.ts +10 -0
- package/templates/professional-services/tier5-src/_shared/online-actions.ts +76 -0
- package/templates/professional-services/tier5-src/_shared/owner-load-error.ts +348 -0
- package/templates/professional-services/tier5-src/_shared/payment-setup.ts +6 -0
- package/templates/professional-services/tier5-src/_shared/portfolio-details.ts +70 -0
- package/templates/professional-services/tier5-src/_shared/pricing-plan-display.ts +64 -0
- package/templates/professional-services/tier5-src/_shared/relative-time.ts +21 -0
- package/templates/professional-services/tier5-src/_shared/result-snackbar.ts +26 -0
- package/templates/professional-services/tier5-src/_shared/rich-body.ts +78 -0
- package/templates/professional-services/tier5-src/_shared/rich-content-link.ts +34 -0
- package/templates/professional-services/tier5-src/_shared/sign-in-sheet.ts +18 -0
- package/templates/professional-services/tier5-src/_shared/staff-name.ts +18 -0
- package/templates/professional-services/tier5-src/_shared/weekly-goal.ts +111 -0
- package/templates/professional-services/tier5-src/_shared/wix-bi.ts +85 -0
- package/templates/professional-services/tier5-src/_shared/wix-member-links.ts +114 -0
- package/templates/professional-services/tier5-src/_shared/wix-service-price.ts +146 -0
- package/templates/professional-services/tier5-src/business-chat/index.ts +797 -0
- package/templates/professional-services/tier5-src/business-contact/index.ts +6 -0
- package/templates/professional-services/tier5-src/himi-blog-feed/index.ts +444 -0
- package/templates/professional-services/tier5-src/himi-blog-post/index.ts +1239 -0
- package/templates/professional-services/tier5-src/himi-booking-account/index.ts +278 -0
- package/templates/professional-services/tier5-src/himi-booking-bookings/index.ts +475 -0
- package/templates/professional-services/tier5-src/himi-booking-service/index.ts +1197 -0
- package/templates/professional-services/tier5-src/himi-booking-services/index.ts +795 -0
- package/templates/professional-services/tier5-src/himi-booking-time/index.ts +1840 -0
- package/templates/professional-services/tier5-src/himi-branded-lite-coupons/index.ts +96 -0
- package/templates/professional-services/tier5-src/himi-branded-lite-faq/index.ts +6 -0
- package/templates/professional-services/tier5-src/himi-branded-lite-file-share/index.ts +12 -0
- package/templates/professional-services/tier5-src/himi-branded-lite-group/index.ts +310 -0
- package/templates/professional-services/tier5-src/himi-branded-lite-group-about/index.ts +240 -0
- package/templates/professional-services/tier5-src/himi-branded-lite-my-groups/index.ts +237 -0
- package/templates/professional-services/tier5-src/himi-branded-lite-notifications/index.ts +263 -0
- package/templates/professional-services/tier5-src/himi-branded-lite-plans/index.ts +498 -0
- package/templates/professional-services/tier5-src/himi-branded-lite-portfolio/index.ts +136 -0
- package/templates/professional-services/tier5-src/himi-branded-lite-portfolio-project/index.ts +198 -0
- package/templates/professional-services/tier5-src/himi-events-detail/index.ts +1306 -0
- package/templates/professional-services/tier5-src/himi-events-list/index.ts +171 -0
- package/templates/professional-services/tier5-src/himi-events-my-events/index.ts +227 -0
- package/templates/professional-services/tier5-src/himi-events-rsvp/index.ts +230 -0
- package/templates/professional-services/tier5-src/himi-professional-services-community/index.ts +318 -0
- package/templates/professional-services/tier5-src/himi-professional-services-home/index.ts +772 -0
- package/templates/professional-services/tier5-src/himi-store-account/index.ts +1514 -0
- package/templates/professional-services/tier5-src/wix-spaces-coupon-detail/index.ts +43 -0
- package/templates/professional-services/tier5-src/wix-spaces-my-subscriptions/index.ts +89 -0
- package/templates/professional-services/tier5-src/wix-spaces-subscription-detail/index.ts +139 -0
- package/templates/professional-services/tokens.json +456 -0
- package/templates/restaurant/tier5-src/himi-events-list/index.ts +5 -1
- package/templates/salon-spa/config.ts +42 -0
- package/templates/salon-spa/dev/index.ts +4136 -0
- package/templates/salon-spa/himalaya.content.json +18 -0
- package/templates/salon-spa/tier5-src/himi-branded-lite-account-settings/blocked-members.ts +295 -0
- package/templates/salon-spa/tier5-src/himi-branded-lite-account-settings/index.ts +58 -0
- package/templates/salon-spa/tier5-src/himi-branded-lite-account-settings/login-info.ts +274 -0
- package/templates/salon-spa/tier5-src/himi-branded-lite-account-settings/personal-info.ts +881 -0
- package/templates/salon-spa/tier5-src/himi-branded-lite-account-settings/privacy.ts +139 -0
- package/templates/salon-spa/tier5-src/himi-branded-lite-account-settings/shared.ts +136 -0
- package/templates/salon-spa/tier5-src/wix-spaces-delete-account/index.ts +59 -0
- package/templates/wholesale-store/config.ts +43 -1
- package/templates/wholesale-store/dev/index.ts +4136 -0
- package/templates/wholesale-store/himalaya.content.json +18 -0
- package/templates/wholesale-store/tier5-src/himi-branded-lite-account-settings/blocked-members.ts +295 -0
- package/templates/wholesale-store/tier5-src/himi-branded-lite-account-settings/index.ts +58 -0
- package/templates/wholesale-store/tier5-src/himi-branded-lite-account-settings/login-info.ts +274 -0
- package/templates/wholesale-store/tier5-src/himi-branded-lite-account-settings/personal-info.ts +881 -0
- package/templates/wholesale-store/tier5-src/himi-branded-lite-account-settings/privacy.ts +139 -0
- package/templates/wholesale-store/tier5-src/himi-branded-lite-account-settings/shared.ts +136 -0
- package/templates/wholesale-store/tier5-src/wix-spaces-delete-account/index.ts +59 -0
- package/templates/yoga-studio/tier5-src/himi-events-list/index.ts +5 -1
|
@@ -7,6 +7,7 @@ import { offsetPage } from "../_shared/offset-page.js";
|
|
|
7
7
|
import { copyParam } from "../_shared/himi-copy.js";
|
|
8
8
|
import { eventPageUrlOf, registrationUi } from "../_shared/event-registration.js";
|
|
9
9
|
import { share as shareSheet } from "@himalaya/share";
|
|
10
|
+
import { memberAvatarSource } from "../_shared/member-avatar.js";
|
|
10
11
|
import { eventsSelectionFilter, eventsSelectionFromScope, eventsSelectionOf, eventsSelectionScope, type EventsSelection } from "../_shared/events-inline-options.js";
|
|
11
12
|
|
|
12
13
|
// Offline-first (data-offline): the public events list is a read-through catalog —
|
|
@@ -54,6 +55,8 @@ async function writeCached(rows: EventRow[]): Promise<void> {
|
|
|
54
55
|
|
|
55
56
|
interface S {
|
|
56
57
|
status: "loading" | "ready";
|
|
58
|
+
/** The signed-in member's photo and initials, for a screen that asks for its top-bar avatar. */
|
|
59
|
+
memberImage: string; memberInitials: string;
|
|
57
60
|
query: string; all: ListEventRow[]; results: ListEventRow[]; emptyText: string; countLabel: string;
|
|
58
61
|
errored: boolean; notErrored: boolean; isLoading: boolean; notLoading: boolean; noEmpty: boolean;
|
|
59
62
|
/** Upcoming is empty but the site has past events: the empty state says "No upcoming events" and offers
|
|
@@ -85,9 +88,10 @@ function readSelection(arg?: unknown): EventsSelection {
|
|
|
85
88
|
}
|
|
86
89
|
const svc = defineBackendCollection<S, ListEventRow>("himiEvents", {
|
|
87
90
|
restorePagesOnLoad: true,
|
|
91
|
+
memberAvatar: memberAvatarSource,
|
|
88
92
|
onLoad(arg) { selection = readSelection(arg); },
|
|
89
93
|
scope: () => eventsSelectionScope(selection),
|
|
90
|
-
state: { status: "loading", query: "", all: [], results: [], emptyText: "", countLabel: "", errored: false, notErrored: true,
|
|
94
|
+
state: { status: "loading", memberImage: "", memberInitials: "", query: "", all: [], results: [], emptyText: "", countLabel: "", errored: false, notErrored: true,
|
|
91
95
|
isLoading: true, notLoading: false, noEmpty: true, pastEventsLabel: "", noPastEvents: true },
|
|
92
96
|
source: {
|
|
93
97
|
id: row => row.id,
|
|
@@ -7,6 +7,7 @@ import { offsetPage } from "../_shared/offset-page.js";
|
|
|
7
7
|
import { copyParam } from "../_shared/himi-copy.js";
|
|
8
8
|
import { eventPageUrlOf, registrationUi } from "../_shared/event-registration.js";
|
|
9
9
|
import { share as shareSheet } from "@himalaya/share";
|
|
10
|
+
import { memberAvatarSource } from "../_shared/member-avatar.js";
|
|
10
11
|
import { eventsSelectionFilter, eventsSelectionFromScope, eventsSelectionOf, eventsSelectionScope, type EventsSelection } from "../_shared/events-inline-options.js";
|
|
11
12
|
|
|
12
13
|
// Offline-first (data-offline): the public events list is a read-through catalog —
|
|
@@ -54,6 +55,8 @@ async function writeCached(rows: EventRow[]): Promise<void> {
|
|
|
54
55
|
|
|
55
56
|
interface S {
|
|
56
57
|
status: "loading" | "ready";
|
|
58
|
+
/** The signed-in member's photo and initials, for a screen that asks for its top-bar avatar. */
|
|
59
|
+
memberImage: string; memberInitials: string;
|
|
57
60
|
query: string; all: ListEventRow[]; results: ListEventRow[]; emptyText: string; countLabel: string;
|
|
58
61
|
errored: boolean; notErrored: boolean; isLoading: boolean; notLoading: boolean; noEmpty: boolean;
|
|
59
62
|
/** Upcoming is empty but the site has past events: the empty state says "No upcoming events" and offers
|
|
@@ -85,9 +88,10 @@ function readSelection(arg?: unknown): EventsSelection {
|
|
|
85
88
|
}
|
|
86
89
|
const svc = defineBackendCollection<S, ListEventRow>("himiEvents", {
|
|
87
90
|
restorePagesOnLoad: true,
|
|
91
|
+
memberAvatar: memberAvatarSource,
|
|
88
92
|
onLoad(arg) { selection = readSelection(arg); },
|
|
89
93
|
scope: () => eventsSelectionScope(selection),
|
|
90
|
-
state: { status: "loading", query: "", all: [], results: [], emptyText: "", countLabel: "", errored: false, notErrored: true,
|
|
94
|
+
state: { status: "loading", memberImage: "", memberInitials: "", query: "", all: [], results: [], emptyText: "", countLabel: "", errored: false, notErrored: true,
|
|
91
95
|
isLoading: true, notLoading: false, noEmpty: true, pastEventsLabel: "", noPastEvents: true },
|
|
92
96
|
source: {
|
|
93
97
|
id: row => row.id,
|
|
@@ -33,7 +33,7 @@ export default defineApp({
|
|
|
33
33
|
actions: "http://localhost:8190/v1/actions",
|
|
34
34
|
sync: "http://localhost:8190/v1/sync",
|
|
35
35
|
},
|
|
36
|
-
capabilities: ["wix_api","local_database","open_url","share","calendar","secure_storage","wix_platform","app_info","wix_chat","iap","wix_cashier"],
|
|
36
|
+
capabilities: ["wix_api","local_database","open_url","share","calendar","secure_storage","wix_platform","app_info","wix_chat","ui","iap","wix_cashier"],
|
|
37
37
|
designTokensPath: "./tokens.json",
|
|
38
38
|
navigation: {
|
|
39
39
|
"navKind": "responsive",
|
|
@@ -144,6 +144,48 @@ export default defineApp({
|
|
|
144
144
|
"paramKeys": [],
|
|
145
145
|
"parentScreenId": "con_more",
|
|
146
146
|
"tabId": "more"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"screenId": "himi_account_settings",
|
|
150
|
+
"isPublic": false,
|
|
151
|
+
"paramKeys": [],
|
|
152
|
+
"parentScreenId": "himi_account",
|
|
153
|
+
"tabId": "more"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"screenId": "himi_account_personal_info",
|
|
157
|
+
"isPublic": false,
|
|
158
|
+
"paramKeys": [],
|
|
159
|
+
"parentScreenId": "himi_account_settings",
|
|
160
|
+
"tabId": "more"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"screenId": "himi_account_login_info",
|
|
164
|
+
"isPublic": false,
|
|
165
|
+
"paramKeys": [],
|
|
166
|
+
"parentScreenId": "himi_account_settings",
|
|
167
|
+
"tabId": "more"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"screenId": "himi_account_change_password",
|
|
171
|
+
"isPublic": false,
|
|
172
|
+
"paramKeys": [],
|
|
173
|
+
"parentScreenId": "himi_account_login_info",
|
|
174
|
+
"tabId": "more"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"screenId": "himi_account_privacy",
|
|
178
|
+
"isPublic": false,
|
|
179
|
+
"paramKeys": [],
|
|
180
|
+
"parentScreenId": "himi_account_settings",
|
|
181
|
+
"tabId": "more"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"screenId": "himi_delete_account",
|
|
185
|
+
"isPublic": false,
|
|
186
|
+
"paramKeys": [],
|
|
187
|
+
"parentScreenId": "himi_account_settings",
|
|
188
|
+
"tabId": "more"
|
|
147
189
|
}
|
|
148
190
|
],
|
|
149
191
|
"tabBar": {
|