@wix/himalaya-cli 0.1929.0 → 0.1931.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/builder.d.ts +2 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/icon-catalog.generated.d.ts +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +7 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/chat-web/src/index.d.ts +12 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +77 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdui.mjs +6 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-chat-web.mjs +19 -9
- package/dist/browser-plane/assets.json +5 -5
- package/dist/browser-plane/preview-deferred/{95a3ae045bad903e458ea7a5800e60e1044f0f754a65d7127de66ba62e897068.bin → eff56fd2ab5972c0c1053a214225f9d2858768f8e24845a6b99e17a2bf244fd4.bin} +1 -1
- package/dist/browser-plane/sw.js +9 -9
- package/dist/cli.mjs +332 -73
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/component-index.md +1 -1
- package/guides/component-reference.json +1 -1
- package/guides/component-reference.md +7 -0
- package/guides/headless-loop.md +1 -1
- package/guides/sdk-reference.json +2 -2
- package/package.json +2 -2
- package/templates/bare-fashion/tier5-src/_shared/owner-load-error.ts +1 -1
- package/templates/beauty-salon/tier5-src/_shared/owner-load-error.ts +1 -1
- package/templates/beauty-salon-owner/dev/index.ts +169 -139
- package/templates/beauty-salon-owner/tier5-src/_shared/owner-load-error.ts +1 -1
- package/templates/beauty-salon-owner/tier5-src/_shared/owner-maestro-availability.ts +12 -2
- package/templates/beauty-salon-owner/tier5-src/_shared/owner-maestro-tab.ts +81 -5
- package/templates/beauty-salon-owner/tier5-src/_shared/owner-selected-site.ts +15 -0
- package/templates/beauty-salon-owner/tier5-src/_shared/owner-widget-reads.ts +7 -0
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-home/index.ts +30 -8
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-inbox/index.ts +47 -8
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-inbox-thread/index.ts +12 -5
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-maestro/index.ts +132 -39
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +10 -8
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-order/index.ts +4 -1
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-record/index.ts +7 -1
- package/templates/beauty-salon-owner/tier5-src/wix-owner-booking/index.ts +4 -1
- package/templates/branded-lite/tier5-src/_shared/owner-load-error.ts +1 -1
- package/templates/brandy/tier5-src/_shared/owner-load-error.ts +1 -1
- package/templates/community-club/tier5-src/_shared/owner-load-error.ts +1 -1
- package/templates/community-club-owner/dev/index.ts +167 -132
- package/templates/community-club-owner/tier5-src/_shared/owner-load-error.ts +1 -1
- package/templates/community-club-owner/tier5-src/_shared/owner-maestro-availability.ts +12 -2
- package/templates/community-club-owner/tier5-src/_shared/owner-maestro-tab.ts +81 -5
- package/templates/community-club-owner/tier5-src/_shared/owner-selected-site.ts +15 -0
- package/templates/community-club-owner/tier5-src/_shared/owner-widget-reads.ts +7 -0
- package/templates/community-club-owner/tier5-src/himi-owner-lite-home/index.ts +30 -8
- package/templates/community-club-owner/tier5-src/himi-owner-lite-inbox/index.ts +47 -8
- package/templates/community-club-owner/tier5-src/himi-owner-lite-inbox-thread/index.ts +12 -5
- package/templates/community-club-owner/tier5-src/himi-owner-lite-maestro/index.ts +132 -39
- package/templates/community-club-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +10 -8
- package/templates/community-club-owner/tier5-src/himi-owner-lite-order/index.ts +4 -1
- package/templates/community-club-owner/tier5-src/himi-owner-lite-record/index.ts +7 -1
- package/templates/conference/tier5-src/_shared/owner-load-error.ts +1 -1
- package/templates/events-meetups/tier5-src/_shared/owner-load-error.ts +1 -1
- package/templates/events-meetups-owner/dev/index.ts +165 -125
- package/templates/events-meetups-owner/tier5-src/_shared/owner-load-error.ts +1 -1
- package/templates/events-meetups-owner/tier5-src/_shared/owner-maestro-availability.ts +12 -2
- package/templates/events-meetups-owner/tier5-src/_shared/owner-maestro-tab.ts +81 -5
- package/templates/events-meetups-owner/tier5-src/_shared/owner-selected-site.ts +15 -0
- package/templates/events-meetups-owner/tier5-src/_shared/owner-widget-reads.ts +7 -0
- package/templates/events-meetups-owner/tier5-src/himi-owner-lite-home/index.ts +30 -8
- package/templates/events-meetups-owner/tier5-src/himi-owner-lite-inbox/index.ts +47 -8
- package/templates/events-meetups-owner/tier5-src/himi-owner-lite-inbox-thread/index.ts +12 -5
- package/templates/events-meetups-owner/tier5-src/himi-owner-lite-maestro/index.ts +132 -39
- package/templates/events-meetups-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +10 -8
- package/templates/events-meetups-owner/tier5-src/himi-owner-lite-record/index.ts +7 -1
- package/templates/fitness-gym/tier5-src/_shared/owner-load-error.ts +1 -1
- package/templates/gym-fitness/tier5-src/_shared/owner-load-error.ts +1 -1
- package/templates/gym-fitness-owner/dev/index.ts +169 -139
- package/templates/gym-fitness-owner/tier5-src/_shared/owner-load-error.ts +1 -1
- package/templates/gym-fitness-owner/tier5-src/_shared/owner-maestro-availability.ts +12 -2
- package/templates/gym-fitness-owner/tier5-src/_shared/owner-maestro-tab.ts +81 -5
- package/templates/gym-fitness-owner/tier5-src/_shared/owner-selected-site.ts +15 -0
- package/templates/gym-fitness-owner/tier5-src/_shared/owner-widget-reads.ts +7 -0
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-home/index.ts +30 -8
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-inbox/index.ts +47 -8
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-inbox-thread/index.ts +12 -5
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-maestro/index.ts +132 -39
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +10 -8
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-order/index.ts +4 -1
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-record/index.ts +7 -1
- package/templates/gym-fitness-owner/tier5-src/wix-owner-booking/index.ts +4 -1
- package/templates/himi-chat/tier5-src/_shared/owner-load-error.ts +1 -1
- package/templates/medical-services/tier5-src/_shared/owner-load-error.ts +1 -1
- package/templates/nonprofit-cause/tier5-src/_shared/owner-load-error.ts +1 -1
- package/templates/nonprofit-cause-owner/dev/index.ts +167 -132
- package/templates/nonprofit-cause-owner/tier5-src/_shared/owner-load-error.ts +1 -1
- package/templates/nonprofit-cause-owner/tier5-src/_shared/owner-maestro-availability.ts +12 -2
- package/templates/nonprofit-cause-owner/tier5-src/_shared/owner-maestro-tab.ts +81 -5
- package/templates/nonprofit-cause-owner/tier5-src/_shared/owner-selected-site.ts +15 -0
- package/templates/nonprofit-cause-owner/tier5-src/_shared/owner-widget-reads.ts +7 -0
- package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-home/index.ts +30 -8
- package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-inbox/index.ts +47 -8
- package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-inbox-thread/index.ts +12 -5
- package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-maestro/index.ts +132 -39
- package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +10 -8
- package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-record/index.ts +7 -1
- package/templates/nonprofit-cause-owner/tier5-src/wix-owner-booking/index.ts +4 -1
- package/templates/owner-lite/dev/index.ts +171 -141
- package/templates/owner-lite/himalaya.content.json +1 -1
- package/templates/owner-lite/tier5-src/_shared/owner-load-error.ts +1 -1
- package/templates/owner-lite/tier5-src/_shared/owner-maestro-availability.ts +12 -2
- package/templates/owner-lite/tier5-src/_shared/owner-maestro-tab.ts +81 -5
- package/templates/owner-lite/tier5-src/_shared/owner-selected-site.ts +15 -0
- package/templates/owner-lite/tier5-src/_shared/owner-widget-reads.ts +7 -0
- package/templates/owner-lite/tier5-src/himi-owner-lite-home/index.ts +30 -8
- package/templates/owner-lite/tier5-src/himi-owner-lite-inbox/index.ts +47 -8
- package/templates/owner-lite/tier5-src/himi-owner-lite-inbox-thread/index.ts +12 -5
- package/templates/owner-lite/tier5-src/himi-owner-lite-maestro/index.ts +132 -39
- package/templates/owner-lite/tier5-src/himi-owner-lite-maestro-history/index.ts +10 -8
- package/templates/owner-lite/tier5-src/himi-owner-lite-order/index.ts +4 -1
- package/templates/owner-lite/tier5-src/himi-owner-lite-record/index.ts +7 -1
- package/templates/owner-lite/tier5-src/wix-owner-booking/index.ts +4 -1
- package/templates/personal-fitness-trainer/tier5-src/_shared/owner-load-error.ts +1 -1
- package/templates/podcast-creator/tier5-src/_shared/owner-load-error.ts +1 -1
- package/templates/podcast-creator-owner/dev/index.ts +167 -132
- package/templates/podcast-creator-owner/tier5-src/_shared/owner-load-error.ts +1 -1
- package/templates/podcast-creator-owner/tier5-src/_shared/owner-maestro-availability.ts +12 -2
- package/templates/podcast-creator-owner/tier5-src/_shared/owner-maestro-tab.ts +81 -5
- package/templates/podcast-creator-owner/tier5-src/_shared/owner-selected-site.ts +15 -0
- package/templates/podcast-creator-owner/tier5-src/_shared/owner-widget-reads.ts +7 -0
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-home/index.ts +30 -8
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-inbox/index.ts +47 -8
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-inbox-thread/index.ts +12 -5
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-maestro/index.ts +132 -39
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +10 -8
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-order/index.ts +4 -1
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-record/index.ts +7 -1
- package/templates/portfolio-creative/tier5-src/_shared/owner-load-error.ts +1 -1
- package/templates/portfolio-creative-owner/dev/index.ts +169 -139
- package/templates/portfolio-creative-owner/tier5-src/_shared/owner-load-error.ts +1 -1
- package/templates/portfolio-creative-owner/tier5-src/_shared/owner-maestro-availability.ts +12 -2
- package/templates/portfolio-creative-owner/tier5-src/_shared/owner-maestro-tab.ts +81 -5
- package/templates/portfolio-creative-owner/tier5-src/_shared/owner-selected-site.ts +15 -0
- package/templates/portfolio-creative-owner/tier5-src/_shared/owner-widget-reads.ts +7 -0
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-home/index.ts +30 -8
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-inbox/index.ts +47 -8
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-inbox-thread/index.ts +12 -5
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-maestro/index.ts +132 -39
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +10 -8
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-order/index.ts +4 -1
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-record/index.ts +7 -1
- package/templates/portfolio-creative-owner/tier5-src/wix-owner-booking/index.ts +4 -1
- package/templates/professional-services/tier5-src/_shared/owner-load-error.ts +1 -1
- package/templates/restaurant/tier5-src/_shared/owner-load-error.ts +1 -1
- package/templates/restaurant-owner/dev/index.ts +169 -139
- package/templates/restaurant-owner/tier5-src/_shared/owner-load-error.ts +1 -1
- package/templates/restaurant-owner/tier5-src/_shared/owner-maestro-availability.ts +12 -2
- package/templates/restaurant-owner/tier5-src/_shared/owner-maestro-tab.ts +81 -5
- package/templates/restaurant-owner/tier5-src/_shared/owner-selected-site.ts +15 -0
- package/templates/restaurant-owner/tier5-src/_shared/owner-widget-reads.ts +7 -0
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-home/index.ts +30 -8
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-inbox/index.ts +47 -8
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-inbox-thread/index.ts +12 -5
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-maestro/index.ts +132 -39
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +10 -8
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-order/index.ts +4 -1
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-record/index.ts +7 -1
- package/templates/restaurant-owner/tier5-src/wix-owner-booking/index.ts +4 -1
- package/templates/retail-store/tier5-src/_shared/owner-load-error.ts +1 -1
- package/templates/retail-store-owner/dev/index.ts +167 -132
- package/templates/retail-store-owner/tier5-src/_shared/owner-load-error.ts +1 -1
- package/templates/retail-store-owner/tier5-src/_shared/owner-maestro-availability.ts +12 -2
- package/templates/retail-store-owner/tier5-src/_shared/owner-maestro-tab.ts +81 -5
- package/templates/retail-store-owner/tier5-src/_shared/owner-selected-site.ts +15 -0
- package/templates/retail-store-owner/tier5-src/_shared/owner-widget-reads.ts +7 -0
- package/templates/retail-store-owner/tier5-src/himi-owner-lite-home/index.ts +30 -8
- package/templates/retail-store-owner/tier5-src/himi-owner-lite-inbox/index.ts +47 -8
- package/templates/retail-store-owner/tier5-src/himi-owner-lite-inbox-thread/index.ts +12 -5
- package/templates/retail-store-owner/tier5-src/himi-owner-lite-maestro/index.ts +132 -39
- package/templates/retail-store-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +10 -8
- package/templates/retail-store-owner/tier5-src/himi-owner-lite-order/index.ts +4 -1
- package/templates/retail-store-owner/tier5-src/himi-owner-lite-record/index.ts +7 -1
- package/templates/salon-spa/tier5-src/_shared/owner-load-error.ts +1 -1
- package/templates/wholesale-store/tier5-src/_shared/owner-load-error.ts +1 -1
- package/templates/yoga-studio/tier5-src/_shared/owner-load-error.ts +1 -1
- package/templates/yoga-studio-owner/dev/index.ts +167 -132
- package/templates/yoga-studio-owner/tier5-src/_shared/owner-load-error.ts +1 -1
- package/templates/yoga-studio-owner/tier5-src/_shared/owner-maestro-availability.ts +12 -2
- package/templates/yoga-studio-owner/tier5-src/_shared/owner-maestro-tab.ts +81 -5
- package/templates/yoga-studio-owner/tier5-src/_shared/owner-selected-site.ts +15 -0
- package/templates/yoga-studio-owner/tier5-src/_shared/owner-widget-reads.ts +7 -0
- package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-home/index.ts +30 -8
- package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-inbox/index.ts +47 -8
- package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-inbox-thread/index.ts +12 -5
- package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-maestro/index.ts +132 -39
- package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +10 -8
- package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-record/index.ts +7 -1
- package/templates/yoga-studio-owner/tier5-src/wix-owner-booking/index.ts +4 -1
|
@@ -1464,6 +1464,8 @@ export declare function pageControl(props: {
|
|
|
1464
1464
|
countPath?: string;
|
|
1465
1465
|
/** `$service:` path to the current page; wins over `currentIndex`. A tap fires `onChange`, the worker writes it back. */
|
|
1466
1466
|
currentIndexPath?: string;
|
|
1467
|
+
/** "pill" (default): a dot per page, the current one a wide pill. "dots": round dots, at most seven, tapering. */
|
|
1468
|
+
style?: "pill" | "dots";
|
|
1467
1469
|
}, opts?: {
|
|
1468
1470
|
id?: string;
|
|
1469
1471
|
}): Component;
|
|
@@ -28,7 +28,7 @@ export declare const ICON_CATALOG: Readonly<Record<string, IconCatalogEntry>>;
|
|
|
28
28
|
/** normalized (lowercased, separators stripped) → canonical key, aliases included. */
|
|
29
29
|
export declare const ICON_NORMALIZED_INDEX: Readonly<Record<string, string>>;
|
|
30
30
|
/** Every authorable name, aliases included. `_unknown` is deliberately absent. */
|
|
31
|
-
export declare const ICON_NAMES: readonly ["add_ai", "ai", "arrow_down", "arrow_left", "arrow_outward", "arrow_right", "arrow_up", "back", "bag", "bag_fill", "barcode", "bell", "bell_fill", "bell_off", "bell_slash", "book", "bookmark", "bookmark_fill", "boxes", "branch", "calendar", "camera", "cart", "cart_fill", "chart", "chat", "check", "checklist", "checkmark", "chevron_down", "chevron_left", "chevron_right", "chevron_up", "circle", "circle_fill", "circle_half", "clock", "close", "concealed", "cookie", "copy", "dashboard", "doc", "document", "download", "edit", "ellipsis", "error", "expand", "external_link", "eye", "eye_slash", "filter", "folder", "forward", "fullscreen", "gear", "gift", "globe", "grid", "grid_fill", "grip", "heart", "heart_fill", "help", "home", "home_fill", "house", "image", "inbox", "info", "layers", "link", "list", "location", "lock", "logout", "mail", "map", "menu", "message", "mic", "mic_fill", "microphone", "microphone_fill", "minus", "moon", "more", "more_vertical", "music", "newspaper", "newspaper_fill", "next", "paper_plane", "pause", "pencil", "people", "person", "person_fill", "phone", "photo", "pin", "play", "play_circle", "play_circle_fill", "plus", "plus_circle", "plus_circle_fill", "prev", "question", "radio_off", "radio_on", "redo", "refresh", "repeat", "rss", "search", "send", "send_arrow", "settings", "settings_fill", "share", "shuffle", "skip_back", "skip_forward", "skip_next", "skip_previous", "star", "star_fill", "star_off", "stop", "success", "tag", "ticket", "ticket_fill", "trash", "tray", "trending_down", "trending_up", "undo", "user", "visible", "volume", "warning", "whatsapp", "wifi", "xmark"];
|
|
31
|
+
export declare const ICON_NAMES: readonly ["add_ai", "ai", "arrow_down", "arrow_left", "arrow_outward", "arrow_right", "arrow_up", "attachment", "back", "bag", "bag_fill", "barcode", "bell", "bell_fill", "bell_off", "bell_slash", "book", "bookmark", "bookmark_fill", "boxes", "branch", "calendar", "camera", "cards_collection", "cart", "cart_fill", "chart", "chat", "check", "checklist", "checkmark", "chevron_down", "chevron_left", "chevron_right", "chevron_up", "circle", "circle_fill", "circle_half", "clock", "close", "concealed", "cookie", "copy", "dashboard", "dashboard_fill", "doc", "document", "download", "edit", "ellipsis", "error", "expand", "external_link", "eye", "eye_slash", "filter", "folder", "forward", "fullscreen", "gallery_mosaic", "gallery_mosaic_fill", "gear", "gift", "globe", "grid", "grid_fill", "grip", "heart", "heart_fill", "help", "home", "home_fill", "house", "image", "inbox", "info", "layers", "link", "list", "location", "lock", "logout", "mail", "map", "menu", "message", "mic", "mic_fill", "microphone", "microphone_fill", "minus", "moon", "more", "more_vertical", "music", "newspaper", "newspaper_fill", "next", "paper_plane", "paperclip", "pause", "pencil", "people", "person", "person_fill", "phone", "photo", "pin", "play", "play_circle", "play_circle_fill", "plus", "plus_circle", "plus_circle_fill", "prev", "question", "radio_off", "radio_on", "redo", "refresh", "repeat", "rss", "search", "send", "send_arrow", "settings", "settings_fill", "share", "shuffle", "skip_back", "skip_forward", "skip_next", "skip_previous", "star", "star_fill", "star_off", "stop", "success", "tag", "ticket", "ticket_fill", "trash", "tray", "trending_down", "trending_up", "undo", "user", "visible", "volume", "warning", "whatsapp", "wifi", "xmark"];
|
|
32
32
|
export type IconName = (typeof ICON_NAMES)[number];
|
|
33
33
|
/** Resolve any authored string to a row, falling back to `_unknown`. Never returns undefined. */
|
|
34
34
|
export declare function resolveIcon(name: string): IconCatalogEntry;
|
package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts
CHANGED
|
@@ -2216,6 +2216,13 @@ export interface PageControlProps {
|
|
|
2216
2216
|
* back; the web and React Native dots are display-only.
|
|
2217
2217
|
*/
|
|
2218
2218
|
currentIndexPath?: string;
|
|
2219
|
+
/**
|
|
2220
|
+
* How the dots are drawn. `"pill"` (default): every page a dot, the current one a wide accent pill.
|
|
2221
|
+
* `"dots"`: round dots, the current one accent, at most seven shown — a window that follows the
|
|
2222
|
+
* current page, its outer dots tapering where more pages lie beyond (a long carousel's indicator).
|
|
2223
|
+
* An older binary draws the pill.
|
|
2224
|
+
*/
|
|
2225
|
+
style?: "pill" | "dots";
|
|
2219
2226
|
}
|
|
2220
2227
|
export interface WheelPickerProps {
|
|
2221
2228
|
options?: PickerOption[];
|
|
@@ -47,6 +47,11 @@ export interface ChatOptions extends WixCallOptions {
|
|
|
47
47
|
role?: ChatRole;
|
|
48
48
|
/** A caller-supplied chatToken; skips the mint. Never stored by this module. */
|
|
49
49
|
chatToken?: string;
|
|
50
|
+
/** The business (metaSiteId) every call is addressed to, sent as `wix-site-id`. Unset = the
|
|
51
|
+
* business the worker's Wix connection was opened for. An owner app with several businesses
|
|
52
|
+
* sets it: a screen kept alive across a business switch keeps the connection it started
|
|
53
|
+
* with, and would go on reading the business it was first opened for. */
|
|
54
|
+
siteId?: string;
|
|
50
55
|
}
|
|
51
56
|
/** Opaque server cursor. `0` is a valid cursor, so test for null/undefined only. */
|
|
52
57
|
export type ChatCursor = number | string;
|
|
@@ -138,6 +143,13 @@ export interface Chatroom {
|
|
|
138
143
|
};
|
|
139
144
|
};
|
|
140
145
|
lastMessage?: ChatMessagePreview;
|
|
146
|
+
/** The business the conversation belongs to. An owner's unified list holds the conversations
|
|
147
|
+
* of every business of the account, whichever site the call names (measured live 2026-11-28).
|
|
148
|
+
* `id` is not a metaSiteId. */
|
|
149
|
+
businessContext?: {
|
|
150
|
+
id?: string;
|
|
151
|
+
name?: string;
|
|
152
|
+
};
|
|
141
153
|
}
|
|
142
154
|
/** Mint a chatToken (required by every chat-web call). Tries the mint exactly
|
|
143
155
|
* `TOKEN_MINT_ATTEMPTS` times: the token endpoint occasionally returns a
|
|
@@ -12306,6 +12306,24 @@ var ICON_CATALOG = {
|
|
|
12306
12306
|
"license": "Apache-2.0",
|
|
12307
12307
|
"libVersion": "0.45.9"
|
|
12308
12308
|
},
|
|
12309
|
+
"cards_collection": {
|
|
12310
|
+
"category": "navigation",
|
|
12311
|
+
"path": [
|
|
12312
|
+
"M9.5 22C9.1 22 8.75 21.85 8.45 21.55C8.15 21.25 8 20.9 8 20.5L8 9.5C8 9.1 8.15 8.75 8.45 8.45C8.75 8.15 9.1 8 9.5 8L20.5 8C20.9 8 21.25 8.15 21.55 8.45C21.85 8.75 22 9.1 22 9.5L22 20.5C22 20.9 21.85 21.25 21.55 21.55C21.25 21.85 20.9 22 20.5 22L9.5 22ZM9.5 20.5L20.5 20.5L20.5 9.5L9.5 9.5L9.5 20.5ZM5 19.35L5 6.5C5 6.1 5.15 5.75 5.45 5.45C5.75 5.15 6.1 5 6.5 5L19.35 5L19.35 6.5L6.5 6.5L6.5 19.35L5 19.35ZM2 16.35L2 3.5C2 3.1 2.15 2.75 2.45 2.45C2.75 2.15 3.1 2 3.5 2L16.35 2L16.35 3.5L3.5 3.5L3.5 16.35L2 16.35ZM9.5 20.5L9.5 9.5L9.5 20.5Z"
|
|
12313
|
+
],
|
|
12314
|
+
"style": "filled",
|
|
12315
|
+
"ios": {
|
|
12316
|
+
"sf": "rectangle.portrait.on.rectangle.portrait",
|
|
12317
|
+
"match": "none"
|
|
12318
|
+
},
|
|
12319
|
+
"android": {
|
|
12320
|
+
"material": "AutoAwesomeMotion",
|
|
12321
|
+
"match": "exact"
|
|
12322
|
+
},
|
|
12323
|
+
"source": "material-symbols/auto_awesome_motion",
|
|
12324
|
+
"license": "Apache-2.0",
|
|
12325
|
+
"libVersion": "0.45.9"
|
|
12326
|
+
},
|
|
12309
12327
|
"cart": {
|
|
12310
12328
|
"category": "commerce",
|
|
12311
12329
|
"path": [
|
|
@@ -12652,18 +12670,43 @@ var ICON_CATALOG = {
|
|
|
12652
12670
|
"M12.75 9.75L12.75 3L21 3L21 9.75L12.75 9.75ZM3 12.75L3 3L11.25 3L11.25 12.75L3 12.75ZM12.75 21L12.75 11.25L21 11.25L21 21L12.75 21ZM3 21L3 14.25L11.25 14.25L11.25 21L3 21ZM4.5 11.25L9.75 11.25L9.75 4.5L4.5 4.5L4.5 11.25ZM14.25 19.5L19.5 19.5L19.5 12.75L14.25 12.75L14.25 19.5ZM14.25 8.25L19.5 8.25L19.5 4.5L14.25 4.5L14.25 8.25ZM4.5 19.5L9.75 19.5L9.75 15.75L4.5 15.75L4.5 19.5ZM9.75 11.25ZM14.25 8.25ZM14.25 12.75ZM9.75 15.75Z"
|
|
12653
12671
|
],
|
|
12654
12672
|
"style": "filled",
|
|
12673
|
+
"fill": "dashboard_fill",
|
|
12655
12674
|
"ios": {
|
|
12656
12675
|
"sf": "square.grid.2x2",
|
|
12657
|
-
"match": "
|
|
12676
|
+
"match": "none"
|
|
12658
12677
|
},
|
|
12659
12678
|
"android": {
|
|
12660
12679
|
"material": "Dashboard",
|
|
12661
12680
|
"match": "exact"
|
|
12662
12681
|
},
|
|
12682
|
+
"aliases": [
|
|
12683
|
+
"gallery_mosaic"
|
|
12684
|
+
],
|
|
12663
12685
|
"source": "material-symbols/dashboard",
|
|
12664
12686
|
"license": "Apache-2.0",
|
|
12665
12687
|
"libVersion": "0.45.9"
|
|
12666
12688
|
},
|
|
12689
|
+
"dashboard_fill": {
|
|
12690
|
+
"category": "navigation",
|
|
12691
|
+
"path": [
|
|
12692
|
+
"M12.75 9.75L12.75 3L21 3L21 9.75L12.75 9.75ZM3 12.75L3 3L11.25 3L11.25 12.75L3 12.75ZM12.75 21L12.75 11.25L21 11.25L21 21L12.75 21ZM3 21L3 14.25L11.25 14.25L11.25 21L3 21Z"
|
|
12693
|
+
],
|
|
12694
|
+
"style": "filled",
|
|
12695
|
+
"ios": {
|
|
12696
|
+
"sf": "square.grid.2x2.fill",
|
|
12697
|
+
"match": "none"
|
|
12698
|
+
},
|
|
12699
|
+
"android": {
|
|
12700
|
+
"material": "Dashboard",
|
|
12701
|
+
"match": "exact"
|
|
12702
|
+
},
|
|
12703
|
+
"aliases": [
|
|
12704
|
+
"gallery_mosaic_fill"
|
|
12705
|
+
],
|
|
12706
|
+
"source": "material-symbols/dashboard-fill",
|
|
12707
|
+
"license": "Apache-2.0",
|
|
12708
|
+
"libVersion": "0.45.9"
|
|
12709
|
+
},
|
|
12667
12710
|
"doc": {
|
|
12668
12711
|
"category": "files",
|
|
12669
12712
|
"path": [
|
|
@@ -13469,6 +13512,27 @@ var ICON_CATALOG = {
|
|
|
13469
13512
|
"license": "Apache-2.0",
|
|
13470
13513
|
"libVersion": "0.45.9"
|
|
13471
13514
|
},
|
|
13515
|
+
"paperclip": {
|
|
13516
|
+
"category": "files",
|
|
13517
|
+
"path": [
|
|
13518
|
+
"M18.2 15.85C18.2 17.567 17.599 19.021 16.396 20.213C15.193 21.404 13.734 22 12.021 22C10.307 22 8.846 21.404 7.638 20.213C6.429 19.021 5.825 17.567 5.825 15.85L5.825 6.35C5.825 5.142 6.254 4.115 7.113 3.269C7.971 2.423 9 2 10.2 2C11.4 2 12.429 2.423 13.288 3.269C14.146 4.115 14.575 5.142 14.575 6.35L14.575 15.35C14.575 16.05 14.325 16.65 13.825 17.15C13.325 17.65 12.721 17.9 12.013 17.9C11.304 17.9 10.7 17.653 10.2 17.158C9.7 16.664 9.45 16.061 9.45 15.35L9.45 6.1L10.95 6.1L10.95 15.35C10.95 15.633 11.054 15.879 11.263 16.088C11.471 16.296 11.726 16.4 12.029 16.4C12.331 16.4 12.581 16.296 12.779 16.088C12.976 15.879 13.075 15.633 13.075 15.35L13.075 6.35C13.075 5.55 12.796 4.875 12.238 4.325C11.679 3.775 10.998 3.5 10.195 3.5C9.391 3.5 8.712 3.775 8.157 4.326C7.602 4.878 7.325 5.552 7.325 6.35L7.325 15.85C7.325 17.15 7.783 18.25 8.699 19.15C9.615 20.05 10.724 20.5 12.025 20.5C13.324 20.5 14.428 20.05 15.337 19.15C16.246 18.25 16.7 17.15 16.7 15.85L16.7 6.1L18.2 6.1L18.2 15.85Z"
|
|
13519
|
+
],
|
|
13520
|
+
"style": "filled",
|
|
13521
|
+
"ios": {
|
|
13522
|
+
"sf": "paperclip",
|
|
13523
|
+
"match": "exact"
|
|
13524
|
+
},
|
|
13525
|
+
"android": {
|
|
13526
|
+
"material": "AttachFile",
|
|
13527
|
+
"match": "exact"
|
|
13528
|
+
},
|
|
13529
|
+
"aliases": [
|
|
13530
|
+
"attachment"
|
|
13531
|
+
],
|
|
13532
|
+
"source": "material-symbols/attach_file",
|
|
13533
|
+
"license": "Apache-2.0",
|
|
13534
|
+
"libVersion": "0.45.9"
|
|
13535
|
+
},
|
|
13472
13536
|
"pause": {
|
|
13473
13537
|
"category": "media",
|
|
13474
13538
|
"path": [
|
|
@@ -14334,6 +14398,7 @@ var ICON_NORMALIZED_INDEX = {
|
|
|
14334
14398
|
"branch": "branch",
|
|
14335
14399
|
"calendar": "calendar",
|
|
14336
14400
|
"camera": "camera",
|
|
14401
|
+
"cardscollection": "cards_collection",
|
|
14337
14402
|
"cart": "cart",
|
|
14338
14403
|
"cartfill": "cart_fill",
|
|
14339
14404
|
"chart": "chart",
|
|
@@ -14357,6 +14422,9 @@ var ICON_NORMALIZED_INDEX = {
|
|
|
14357
14422
|
"cookie": "cookie",
|
|
14358
14423
|
"copy": "copy",
|
|
14359
14424
|
"dashboard": "dashboard",
|
|
14425
|
+
"gallerymosaic": "dashboard",
|
|
14426
|
+
"dashboardfill": "dashboard_fill",
|
|
14427
|
+
"gallerymosaicfill": "dashboard_fill",
|
|
14360
14428
|
"doc": "doc",
|
|
14361
14429
|
"document": "document",
|
|
14362
14430
|
"download": "download",
|
|
@@ -14408,6 +14476,8 @@ var ICON_NORMALIZED_INDEX = {
|
|
|
14408
14476
|
"next": "next",
|
|
14409
14477
|
"skipforward": "next",
|
|
14410
14478
|
"paperplane": "paper_plane",
|
|
14479
|
+
"paperclip": "paperclip",
|
|
14480
|
+
"attachment": "paperclip",
|
|
14411
14481
|
"pause": "pause",
|
|
14412
14482
|
"people": "people",
|
|
14413
14483
|
"person": "person",
|
|
@@ -14467,6 +14537,7 @@ var ICON_NAMES = [
|
|
|
14467
14537
|
"arrow_outward",
|
|
14468
14538
|
"arrow_right",
|
|
14469
14539
|
"arrow_up",
|
|
14540
|
+
"attachment",
|
|
14470
14541
|
"back",
|
|
14471
14542
|
"bag",
|
|
14472
14543
|
"bag_fill",
|
|
@@ -14482,6 +14553,7 @@ var ICON_NAMES = [
|
|
|
14482
14553
|
"branch",
|
|
14483
14554
|
"calendar",
|
|
14484
14555
|
"camera",
|
|
14556
|
+
"cards_collection",
|
|
14485
14557
|
"cart",
|
|
14486
14558
|
"cart_fill",
|
|
14487
14559
|
"chart",
|
|
@@ -14502,6 +14574,7 @@ var ICON_NAMES = [
|
|
|
14502
14574
|
"cookie",
|
|
14503
14575
|
"copy",
|
|
14504
14576
|
"dashboard",
|
|
14577
|
+
"dashboard_fill",
|
|
14505
14578
|
"doc",
|
|
14506
14579
|
"document",
|
|
14507
14580
|
"download",
|
|
@@ -14516,6 +14589,8 @@ var ICON_NAMES = [
|
|
|
14516
14589
|
"folder",
|
|
14517
14590
|
"forward",
|
|
14518
14591
|
"fullscreen",
|
|
14592
|
+
"gallery_mosaic",
|
|
14593
|
+
"gallery_mosaic_fill",
|
|
14519
14594
|
"gear",
|
|
14520
14595
|
"gift",
|
|
14521
14596
|
"globe",
|
|
@@ -14554,6 +14629,7 @@ var ICON_NAMES = [
|
|
|
14554
14629
|
"newspaper_fill",
|
|
14555
14630
|
"next",
|
|
14556
14631
|
"paper_plane",
|
|
14632
|
+
"paperclip",
|
|
14557
14633
|
"pause",
|
|
14558
14634
|
"pencil",
|
|
14559
14635
|
"people",
|
|
@@ -8499,6 +8499,7 @@ var ICON_NAMES = [
|
|
|
8499
8499
|
"arrow_outward",
|
|
8500
8500
|
"arrow_right",
|
|
8501
8501
|
"arrow_up",
|
|
8502
|
+
"attachment",
|
|
8502
8503
|
"back",
|
|
8503
8504
|
"bag",
|
|
8504
8505
|
"bag_fill",
|
|
@@ -8514,6 +8515,7 @@ var ICON_NAMES = [
|
|
|
8514
8515
|
"branch",
|
|
8515
8516
|
"calendar",
|
|
8516
8517
|
"camera",
|
|
8518
|
+
"cards_collection",
|
|
8517
8519
|
"cart",
|
|
8518
8520
|
"cart_fill",
|
|
8519
8521
|
"chart",
|
|
@@ -8534,6 +8536,7 @@ var ICON_NAMES = [
|
|
|
8534
8536
|
"cookie",
|
|
8535
8537
|
"copy",
|
|
8536
8538
|
"dashboard",
|
|
8539
|
+
"dashboard_fill",
|
|
8537
8540
|
"doc",
|
|
8538
8541
|
"document",
|
|
8539
8542
|
"download",
|
|
@@ -8548,6 +8551,8 @@ var ICON_NAMES = [
|
|
|
8548
8551
|
"folder",
|
|
8549
8552
|
"forward",
|
|
8550
8553
|
"fullscreen",
|
|
8554
|
+
"gallery_mosaic",
|
|
8555
|
+
"gallery_mosaic_fill",
|
|
8551
8556
|
"gear",
|
|
8552
8557
|
"gift",
|
|
8553
8558
|
"globe",
|
|
@@ -8586,6 +8591,7 @@ var ICON_NAMES = [
|
|
|
8586
8591
|
"newspaper_fill",
|
|
8587
8592
|
"next",
|
|
8588
8593
|
"paper_plane",
|
|
8594
|
+
"paperclip",
|
|
8589
8595
|
"pause",
|
|
8590
8596
|
"pencil",
|
|
8591
8597
|
"people",
|
|
@@ -31,6 +31,10 @@ function chatWebError(code, message, cause) {
|
|
|
31
31
|
function isChatWebError(e) {
|
|
32
32
|
return !!e && typeof e === "object" && e.name === "ChatWebError";
|
|
33
33
|
}
|
|
34
|
+
function forSite(options, headers) {
|
|
35
|
+
const site = typeof options?.siteId === "string" ? options.siteId.trim() : "";
|
|
36
|
+
return site ? { ...headers ?? {}, "wix-site-id": site } : headers;
|
|
37
|
+
}
|
|
34
38
|
var BASE = "https://manage.wix.com";
|
|
35
39
|
var TOKEN_MINT_ATTEMPTS = 2;
|
|
36
40
|
function pathSegment(value, what) {
|
|
@@ -110,7 +114,7 @@ async function getMessagesPage(chatroomId, params = {}) {
|
|
|
110
114
|
"GET",
|
|
111
115
|
`${BASE}/_api/chat-web/v1/chatrooms/${room}/messages?${query}`,
|
|
112
116
|
void 0,
|
|
113
|
-
|
|
117
|
+
forSite(params),
|
|
114
118
|
params
|
|
115
119
|
);
|
|
116
120
|
if (!res || typeof res !== "object") throw chatWebError("invalid_response", "history response is not an object");
|
|
@@ -134,7 +138,7 @@ async function sendChatMessage(chatroomId, text, options = {}) {
|
|
|
134
138
|
"POST",
|
|
135
139
|
`${BASE}/_api/chat-web/v2/chatrooms/${room}/messages`,
|
|
136
140
|
{ sendMessageBody: { id, messageType: "message", messageTypeVersion: 1, summary: text, data: [{ mimeType: "text/plain", data: { text } }] } },
|
|
137
|
-
{ ChatToken: chatToken }
|
|
141
|
+
forSite(options, { ChatToken: chatToken })
|
|
138
142
|
);
|
|
139
143
|
}
|
|
140
144
|
async function archiveChatroom(chatroomId, archived = true, options = {}) {
|
|
@@ -144,7 +148,8 @@ async function archiveChatroom(chatroomId, archived = true, options = {}) {
|
|
|
144
148
|
await wixCall(
|
|
145
149
|
"PUT",
|
|
146
150
|
`${BASE}/_api/chat-web/v1/chatrooms/${room}/${verb}?chatToken=${encodeURIComponent(chatToken)}`,
|
|
147
|
-
{}
|
|
151
|
+
{},
|
|
152
|
+
forSite(options)
|
|
148
153
|
);
|
|
149
154
|
}
|
|
150
155
|
async function getChatToken(options = {}) {
|
|
@@ -168,7 +173,8 @@ async function getChatToken(options = {}) {
|
|
|
168
173
|
const r = await wixCall(
|
|
169
174
|
"POST",
|
|
170
175
|
`${BASE}/_api/wix-chat-tokens-server/v1/chat-tokens?isForUnifiedList=${unified}`,
|
|
171
|
-
{}
|
|
176
|
+
{},
|
|
177
|
+
forSite(options)
|
|
172
178
|
);
|
|
173
179
|
if (typeof r?.chatToken === "string" && r.chatToken) return { chatToken: r.chatToken };
|
|
174
180
|
} catch (e) {
|
|
@@ -184,7 +190,7 @@ async function listChatrooms(pageSize = 20, options = {}) {
|
|
|
184
190
|
"GET",
|
|
185
191
|
`${BASE}/_api/chat-web/v2/chatrooms?chatToken=${encodeURIComponent(chatToken)}&pageSize=${pageSize}`,
|
|
186
192
|
void 0,
|
|
187
|
-
|
|
193
|
+
forSite(options),
|
|
188
194
|
options
|
|
189
195
|
);
|
|
190
196
|
return res.chatrooms?.items ?? [];
|
|
@@ -219,7 +225,7 @@ async function listChatroomsPage(params = {}) {
|
|
|
219
225
|
lastMessageLimit: LAST_MESSAGE_LIMIT,
|
|
220
226
|
unreadChatroomLimit: unreadLimit
|
|
221
227
|
});
|
|
222
|
-
const res = await wixCall("POST", `${BASE}/_api/chat-web/v1/chatrooms-for-list-view${type}?${query}`, { participantIds, labelIds: [] },
|
|
228
|
+
const res = await wixCall("POST", `${BASE}/_api/chat-web/v1/chatrooms-for-list-view${type}?${query}`, { participantIds, labelIds: [] }, forSite(params), params);
|
|
223
229
|
if (!res || typeof res !== "object" || !res.chatrooms || typeof res.chatrooms !== "object") {
|
|
224
230
|
throw chatWebError("invalid_response", "list response has no chatrooms");
|
|
225
231
|
}
|
|
@@ -245,7 +251,8 @@ async function markChatroomRead(chatroomId, lastReadMessageSequence, options = {
|
|
|
245
251
|
const res = await wixCall(
|
|
246
252
|
"PUT",
|
|
247
253
|
`${BASE}/_api/chat-web/v1/chatrooms/${room}/users?chatToken=${encodeURIComponent(chatToken)}`,
|
|
248
|
-
body
|
|
254
|
+
body,
|
|
255
|
+
forSite(options)
|
|
249
256
|
);
|
|
250
257
|
return { lastReadMessageSequence: res?.lastReadMessageSequence };
|
|
251
258
|
}
|
|
@@ -256,7 +263,8 @@ async function markChatroomUnread(chatroomId, lastReadMessageSequence, options =
|
|
|
256
263
|
await wixCall(
|
|
257
264
|
"PUT",
|
|
258
265
|
`${BASE}/_api/chat-web/v1/chatrooms/${room}/unread?chatToken=${encodeURIComponent(chatToken)}`,
|
|
259
|
-
body
|
|
266
|
+
body,
|
|
267
|
+
forSite(options)
|
|
260
268
|
);
|
|
261
269
|
}
|
|
262
270
|
async function deleteChatroom(chatroomId, options = {}) {
|
|
@@ -264,7 +272,9 @@ async function deleteChatroom(chatroomId, options = {}) {
|
|
|
264
272
|
const { chatToken } = await getChatToken(options);
|
|
265
273
|
await wixCall(
|
|
266
274
|
"DELETE",
|
|
267
|
-
`${BASE}/_api/chat-web/v1/chatrooms/${room}?chatToken=${encodeURIComponent(chatToken)}
|
|
275
|
+
`${BASE}/_api/chat-web/v1/chatrooms/${room}?chatToken=${encodeURIComponent(chatToken)}`,
|
|
276
|
+
void 0,
|
|
277
|
+
forSite(options)
|
|
268
278
|
);
|
|
269
279
|
}
|
|
270
280
|
async function getOrCreateDirectChatroom(memberId) {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"files": [
|
|
3
3
|
{
|
|
4
4
|
"name": "sw.js",
|
|
5
|
-
"bytes":
|
|
5
|
+
"bytes": 2819389
|
|
6
6
|
},
|
|
7
7
|
{
|
|
8
8
|
"name": "host.html",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"bytes": 24320
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
|
-
"name": "preview-deferred/
|
|
24
|
+
"name": "preview-deferred/eff56fd2ab5972c0c1053a214225f9d2858768f8e24845a6b99e17a2bf244fd4.bin",
|
|
25
25
|
"bytes": 488215
|
|
26
26
|
},
|
|
27
27
|
{
|
|
@@ -79,10 +79,10 @@
|
|
|
79
79
|
],
|
|
80
80
|
"deferred": [
|
|
81
81
|
{
|
|
82
|
-
"key": "assets/pdf-
|
|
82
|
+
"key": "assets/pdf-DDIbnp8u.js",
|
|
83
83
|
"contentType": "application/javascript; charset=utf-8",
|
|
84
|
-
"sha256": "
|
|
85
|
-
"file": "preview-deferred/
|
|
84
|
+
"sha256": "eff56fd2ab5972c0c1053a214225f9d2858768f8e24845a6b99e17a2bf244fd4",
|
|
85
|
+
"file": "preview-deferred/eff56fd2ab5972c0c1053a214225f9d2858768f8e24845a6b99e17a2bf244fd4.bin"
|
|
86
86
|
},
|
|
87
87
|
{
|
|
88
88
|
"key": "assets/pdf.worker.min-BGnVRhRG.js",
|