@wix/himalaya-cli 0.1404.0 → 0.1405.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 (102) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/builder.d.ts +3 -0
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +6 -0
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/ai-site-chat/src/extensions.d.ts +10 -0
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/ai-site-chat/src/index.d.ts +102 -0
  5. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-ai-site-chat.mjs +70 -0
  6. package/dist/authoring-runtime/node_modules/@wix/himalaya/package.json +4 -0
  7. package/dist/cli.mjs +95 -37
  8. package/dist/preview-assets.generated.bin +0 -0
  9. package/fixtures/wix-canned.json +3 -0
  10. package/guides/component-reference.json +3 -2
  11. package/guides/component-reference.md +7 -1
  12. package/guides/importable-sdks.md +1 -0
  13. package/guides/sdk-reference.json +107 -0
  14. package/package.json +2 -2
  15. package/templates/beauty-salon/config.ts +7 -0
  16. package/templates/beauty-salon/dev/index.ts +1750 -0
  17. package/templates/beauty-salon/himalaya.content.json +3 -0
  18. package/templates/beauty-salon/site-functions/README.md +37 -0
  19. package/templates/beauty-salon/site-functions/himiMemberPhotoUploadUrl.js +90 -0
  20. package/templates/beauty-salon/tier5-src/_shared/member-account-routes.ts +11 -3
  21. package/templates/beauty-salon/tier5-src/himi-branded-lite-account-settings/blocked-members.ts +242 -0
  22. package/templates/beauty-salon/tier5-src/himi-branded-lite-account-settings/index.ts +1091 -0
  23. package/templates/branded-lite/config.ts +7 -0
  24. package/templates/branded-lite/dev/index.ts +1750 -0
  25. package/templates/branded-lite/himalaya.content.json +3 -0
  26. package/templates/branded-lite/site-functions/README.md +37 -0
  27. package/templates/branded-lite/site-functions/himiMemberPhotoUploadUrl.js +90 -0
  28. package/templates/branded-lite/tier5-src/_shared/member-account-routes.ts +11 -3
  29. package/templates/branded-lite/tier5-src/himi-branded-lite-account-settings/blocked-members.ts +242 -0
  30. package/templates/branded-lite/tier5-src/himi-branded-lite-account-settings/index.ts +1091 -0
  31. package/templates/community-club/config.ts +7 -0
  32. package/templates/community-club/dev/index.ts +1750 -0
  33. package/templates/community-club/himalaya.content.json +3 -0
  34. package/templates/community-club/site-functions/README.md +37 -0
  35. package/templates/community-club/site-functions/himiMemberPhotoUploadUrl.js +90 -0
  36. package/templates/community-club/tier5-src/_shared/member-account-routes.ts +11 -3
  37. package/templates/community-club/tier5-src/himi-branded-lite-account-settings/blocked-members.ts +242 -0
  38. package/templates/community-club/tier5-src/himi-branded-lite-account-settings/index.ts +1091 -0
  39. package/templates/events-meetups/config.ts +7 -0
  40. package/templates/events-meetups/dev/index.ts +1750 -0
  41. package/templates/events-meetups/himalaya.content.json +3 -0
  42. package/templates/events-meetups/site-functions/README.md +37 -0
  43. package/templates/events-meetups/site-functions/himiMemberPhotoUploadUrl.js +90 -0
  44. package/templates/events-meetups/tier5-src/_shared/member-account-routes.ts +11 -3
  45. package/templates/events-meetups/tier5-src/himi-branded-lite-account-settings/blocked-members.ts +242 -0
  46. package/templates/events-meetups/tier5-src/himi-branded-lite-account-settings/index.ts +1091 -0
  47. package/templates/gym-fitness/config.ts +7 -0
  48. package/templates/gym-fitness/dev/index.ts +1750 -0
  49. package/templates/gym-fitness/himalaya.content.json +3 -0
  50. package/templates/gym-fitness/site-functions/README.md +37 -0
  51. package/templates/gym-fitness/site-functions/himiMemberPhotoUploadUrl.js +90 -0
  52. package/templates/gym-fitness/tier5-src/_shared/member-account-routes.ts +11 -3
  53. package/templates/gym-fitness/tier5-src/himi-branded-lite-account-settings/blocked-members.ts +242 -0
  54. package/templates/gym-fitness/tier5-src/himi-branded-lite-account-settings/index.ts +1091 -0
  55. package/templates/nonprofit-cause/config.ts +7 -0
  56. package/templates/nonprofit-cause/dev/index.ts +1750 -0
  57. package/templates/nonprofit-cause/himalaya.content.json +3 -0
  58. package/templates/nonprofit-cause/site-functions/README.md +37 -0
  59. package/templates/nonprofit-cause/site-functions/himiMemberPhotoUploadUrl.js +90 -0
  60. package/templates/nonprofit-cause/tier5-src/_shared/member-account-routes.ts +11 -3
  61. package/templates/nonprofit-cause/tier5-src/himi-branded-lite-account-settings/blocked-members.ts +242 -0
  62. package/templates/nonprofit-cause/tier5-src/himi-branded-lite-account-settings/index.ts +1091 -0
  63. package/templates/podcast-creator/config.ts +7 -0
  64. package/templates/podcast-creator/dev/index.ts +1750 -0
  65. package/templates/podcast-creator/himalaya.content.json +3 -0
  66. package/templates/podcast-creator/site-functions/README.md +37 -0
  67. package/templates/podcast-creator/site-functions/himiMemberPhotoUploadUrl.js +90 -0
  68. package/templates/podcast-creator/tier5-src/_shared/member-account-routes.ts +11 -3
  69. package/templates/podcast-creator/tier5-src/himi-branded-lite-account-settings/blocked-members.ts +242 -0
  70. package/templates/podcast-creator/tier5-src/himi-branded-lite-account-settings/index.ts +1091 -0
  71. package/templates/portfolio-creative/config.ts +7 -0
  72. package/templates/portfolio-creative/dev/index.ts +1750 -0
  73. package/templates/portfolio-creative/himalaya.content.json +3 -0
  74. package/templates/portfolio-creative/site-functions/README.md +37 -0
  75. package/templates/portfolio-creative/site-functions/himiMemberPhotoUploadUrl.js +90 -0
  76. package/templates/portfolio-creative/tier5-src/_shared/member-account-routes.ts +11 -3
  77. package/templates/portfolio-creative/tier5-src/himi-branded-lite-account-settings/blocked-members.ts +242 -0
  78. package/templates/portfolio-creative/tier5-src/himi-branded-lite-account-settings/index.ts +1091 -0
  79. package/templates/restaurant/config.ts +7 -0
  80. package/templates/restaurant/dev/index.ts +1750 -0
  81. package/templates/restaurant/himalaya.content.json +3 -0
  82. package/templates/restaurant/site-functions/README.md +37 -0
  83. package/templates/restaurant/site-functions/himiMemberPhotoUploadUrl.js +90 -0
  84. package/templates/restaurant/tier5-src/_shared/member-account-routes.ts +11 -3
  85. package/templates/restaurant/tier5-src/himi-branded-lite-account-settings/blocked-members.ts +242 -0
  86. package/templates/restaurant/tier5-src/himi-branded-lite-account-settings/index.ts +1091 -0
  87. package/templates/retail-store/config.ts +7 -0
  88. package/templates/retail-store/dev/index.ts +1750 -0
  89. package/templates/retail-store/himalaya.content.json +3 -0
  90. package/templates/retail-store/site-functions/README.md +37 -0
  91. package/templates/retail-store/site-functions/himiMemberPhotoUploadUrl.js +90 -0
  92. package/templates/retail-store/tier5-src/_shared/member-account-routes.ts +11 -3
  93. package/templates/retail-store/tier5-src/himi-branded-lite-account-settings/blocked-members.ts +242 -0
  94. package/templates/retail-store/tier5-src/himi-branded-lite-account-settings/index.ts +1091 -0
  95. package/templates/yoga-studio/config.ts +7 -0
  96. package/templates/yoga-studio/dev/index.ts +1750 -0
  97. package/templates/yoga-studio/himalaya.content.json +3 -0
  98. package/templates/yoga-studio/site-functions/README.md +37 -0
  99. package/templates/yoga-studio/site-functions/himiMemberPhotoUploadUrl.js +90 -0
  100. package/templates/yoga-studio/tier5-src/_shared/member-account-routes.ts +11 -3
  101. package/templates/yoga-studio/tier5-src/himi-branded-lite-account-settings/blocked-members.ts +242 -0
  102. package/templates/yoga-studio/tier5-src/himi-branded-lite-account-settings/index.ts +1091 -0
@@ -1025,9 +1025,10 @@
1025
1025
  "category": "Image well + Wix Media upload",
1026
1026
  "propsType": "MediaFieldProps",
1027
1027
  "bindings": [
1028
- "valuePath"
1028
+ "valuePath",
1029
+ "fallbackTextPath"
1029
1030
  ],
1030
- "propsSource": "export interface MediaFieldProps {\n /** `$service:<svc>.<path>` → the current image URL; empty ⇒ the empty well with `label`. */\n valuePath: string;\n /** The worker service exposing `genUpload` / `setMedia` and the `uploadUrl` value. */\n uploadService: string;\n /** Empty-well copy (a message key or literal). Default \"Add a photo\". */\n label?: string;\n}"
1031
+ "propsSource": "export interface MediaFieldProps {\n /** `$service:<svc>.<path>` → the current image URL; empty ⇒ the empty well with `label`. */\n valuePath: string;\n /** The worker service exposing `genUpload` / `setMedia` and the `uploadUrl` value. */\n uploadService: string;\n /** Empty-well copy (a message key or literal). Default \"Add a photo\". */\n label?: string;\n /** Set to \"avatar\" for a circular picker row; omitted preserves the 160pt image well. */\n presentation?: string;\n /** `$service:<svc>.<path>` → initials shown in avatar mode when no photo is set. */\n fallbackTextPath?: string;\n /** Optional visible heading in avatar mode; label remains the action caption. */\n heading?: string;\n}"
1031
1032
  },
1032
1033
  {
1033
1034
  "name": "RichTextField",
@@ -94,7 +94,7 @@ See also **[Modifiers](#modifiers)** (the `modifiers` block) and **[Actions](#ac
94
94
  | `DataTable` | Analytics data-viz | `rowsPath`, `totalsPath` |
95
95
  | `RichContent` | Rich content | `documentJsonPath` |
96
96
  | `RichContentEditor` | Rich content editor | `documentPath` |
97
- | `MediaField` | Image well + Wix Media upload | `valuePath` |
97
+ | `MediaField` | Image well + Wix Media upload | `valuePath`, `fallbackTextPath` |
98
98
  | `RichTextField` | Formatted multiline field | `valuePath` |
99
99
  | `VoiceNote` | Recorded-audio bubble (messenger design G4) | `waveformPath`, `durationMsPath`, `positionMsPath`, `statePath`, `deliveryPath`, `ratePath` |
100
100
  | `Marquee` | Recorded-audio bubble (messenger design G4) | — |
@@ -1716,6 +1716,12 @@ export interface MediaFieldProps {
1716
1716
  uploadService: string;
1717
1717
  /** Empty-well copy (a message key or literal). Default "Add a photo". */
1718
1718
  label?: string;
1719
+ /** Set to "avatar" for a circular picker row; omitted preserves the 160pt image well. */
1720
+ presentation?: string;
1721
+ /** `$service:<svc>.<path>` → initials shown in avatar mode when no photo is set. */
1722
+ fallbackTextPath?: string;
1723
+ /** Optional visible heading in avatar mode; label remains the action caption. */
1724
+ heading?: string;
1719
1725
  }
1720
1726
  ```
1721
1727
 
@@ -78,6 +78,7 @@ direction the platform is heading — recommended, not required). Usage is unifo
78
78
 
79
79
  - `@himalaya/wix-cashier` — Tier-5 typed binding to the platform's native cashier.
80
80
  - `@himalaya/wix-activity-counters` — Wix activity counters — typed REST client
81
+ - `@himalaya/wix-ai-site-chat` — Wix ai site chat — typed REST client
81
82
  - `@himalaya/wix-analytics` — Site analytics totals
82
83
  - `@himalaya/wix-async-jobs` — Async job status — read first-party job progress through the Wix gateway
83
84
  - `@himalaya/wix-automations` — Wix automations — typed REST client
@@ -5458,6 +5458,113 @@
5458
5458
  }
5459
5459
  ]
5460
5460
  },
5461
+ {
5462
+ "name": "@himalaya/wix-ai-site-chat",
5463
+ "source": "stdlib/wix-sdk/ai-site-chat/src/index.ts",
5464
+ "description": "Wix ai site chat — typed REST client",
5465
+ "api": [
5466
+ {
5467
+ "name": "WixCallOptions",
5468
+ "kind": "interface",
5469
+ "jsdoc": "/** Per-call options. `site` addresses ONE call at a business other than the app's\n * active one, so a cross-site rollup can read several businesses concurrently without\n * `setActiveSite` moving the whole process between them. Omitted ⇒ the active business,\n * byte-identical to a call that never passed options.\n *\n * `site.forSite(msid)` from `@himalaya/wix-platform` returns a value of this shape, so\n * it can be passed straight through: `someMethod(req, site.forSite(msid))`. */",
5470
+ "decl": "export interface WixCallOptions {\n site?: string;\n}"
5471
+ },
5472
+ {
5473
+ "name": "wixCall",
5474
+ "kind": "function",
5475
+ "jsdoc": "",
5476
+ "decl": "export function wixCall<T>(\n method: string,\n path: string,\n body?: unknown,\n opts?: WixCallOptions,\n): Promise<T>;"
5477
+ },
5478
+ {
5479
+ "name": "wixQueryPath",
5480
+ "kind": "function",
5481
+ "jsdoc": "/** `path` with `req` appended as the query string Wix's RPC gateway reads a GET or\n * DELETE request from. A nested object flattens to dotted field paths\n * (`{ sort: { order: \"ASC\" } }` → `sort.order=ASC`), an array repeats its key\n * (`{ id: [\"a\", \"b\"] }` → `id=a&id=b`), and an absent field contributes nothing —\n * so an empty request yields the bare path. A field whose value is an array of\n * objects has no query-string spelling and is omitted, exactly as Wix's own client\n * omits it; such a field has to be sent through a POST sibling endpoint instead.\n *\n * Built from template literals and `encodeURIComponent`, never `URLSearchParams`:\n * that is a host global the bare Tier-5 worker runtimes (JSCore / Hermes /\n * QuickJS-ng) do not provide, so reaching for it would throw a ReferenceError\n * before the request went out rather than degrade.\n *\n * Exported so the hand-written ./extensions sidecar can build the same URLs. */",
5482
+ "decl": "export function wixQueryPath(path: string, req: unknown): string;"
5483
+ },
5484
+ {
5485
+ "name": "WixMessage",
5486
+ "kind": "interface",
5487
+ "jsdoc": "",
5488
+ "decl": "export interface WixMessage {\n id?: string;\n createdDate?: string;\n sender?: string;\n conversationId?: string;\n answerTo?: string;\n messageType?: string;\n body?: WixBody;\n inboxId?: string;\n visitorOptions?: string[];\n assistantActions?: string[];\n visitorOptionsFields?: Record<string, unknown>[];\n engineStatus?: string;\n}"
5489
+ },
5490
+ {
5491
+ "name": "WixBody",
5492
+ "kind": "interface",
5493
+ "jsdoc": "",
5494
+ "decl": "export interface WixBody {\n mainText?: string;\n footerText?: string;\n additionalData?: Record<string, unknown>[];\n}"
5495
+ },
5496
+ {
5497
+ "name": "WixListMessagesRequest",
5498
+ "kind": "interface",
5499
+ "jsdoc": "",
5500
+ "decl": "export interface WixListMessagesRequest {\n cursorPaging?: WixCursorPaging;\n}"
5501
+ },
5502
+ {
5503
+ "name": "WixCursorPaging",
5504
+ "kind": "interface",
5505
+ "jsdoc": "",
5506
+ "decl": "export interface WixCursorPaging {\n limit?: number;\n cursor?: string;\n}"
5507
+ },
5508
+ {
5509
+ "name": "WixListMessagesResponse",
5510
+ "kind": "interface",
5511
+ "jsdoc": "",
5512
+ "decl": "export interface WixListMessagesResponse {\n messages?: WixMessage[];\n pagingMetadata?: WixPagingMetadataV2;\n}"
5513
+ },
5514
+ {
5515
+ "name": "WixPagingMetadataV2",
5516
+ "kind": "interface",
5517
+ "jsdoc": "",
5518
+ "decl": "export interface WixPagingMetadataV2 {\n count?: number;\n offset?: number;\n total?: number;\n tooManyToCount?: boolean;\n cursors?: WixCursors;\n hasNext?: boolean;\n}"
5519
+ },
5520
+ {
5521
+ "name": "WixCursors",
5522
+ "kind": "interface",
5523
+ "jsdoc": "",
5524
+ "decl": "export interface WixCursors {\n next?: string;\n prev?: string;\n}"
5525
+ },
5526
+ {
5527
+ "name": "WixStreamMessagesRequest",
5528
+ "kind": "interface",
5529
+ "jsdoc": "",
5530
+ "decl": "export interface WixStreamMessagesRequest {\n message: WixStreamMessage;\n}"
5531
+ },
5532
+ {
5533
+ "name": "WixStreamMessage",
5534
+ "kind": "interface",
5535
+ "jsdoc": "",
5536
+ "decl": "export interface WixStreamMessage {\n sender: \"SITE_VISITOR\";\n messageType: \"VISITOR_OPTION_SELECTED\";\n answerTo: string;\n body: WixStreamMessageBody;\n}"
5537
+ },
5538
+ {
5539
+ "name": "WixStreamMessageBody",
5540
+ "kind": "interface",
5541
+ "jsdoc": "",
5542
+ "decl": "export interface WixStreamMessageBody {\n mainText: string;\n additionalData: WixStreamMessageAdditionalData[];\n}"
5543
+ },
5544
+ {
5545
+ "name": "WixStreamMessageAdditionalData",
5546
+ "kind": "interface",
5547
+ "jsdoc": "",
5548
+ "decl": "export interface WixStreamMessageAdditionalData {\n id: string;\n type: \"select_option\";\n action: string;\n}"
5549
+ },
5550
+ {
5551
+ "name": "listMessages",
5552
+ "kind": "function",
5553
+ "jsdoc": "/**\n * Lists the messages of the AI Site Chat (Wix Smart Chat) conversation for the active site, paged by cursor via `cursorPaging`. Runs as the site visitor or member session the host supplies; an empty `messages` array means the conversation has no messages yet, and a 4xx/5xx rejects with the gateway error.\n *\n * @scope visitor — an anonymous visitor session is enough.\n *\n * GET /wix-assistant-widget/v1/messages/list\n */",
5554
+ "decl": "export function listMessages(\n req: WixListMessagesRequest = {} as WixListMessagesRequest,\n opts?: WixCallOptions,\n): Promise<WixListMessagesResponse>;",
5555
+ "http": "GET /wix-assistant-widget/v1/messages/list",
5556
+ "scope": "visitor"
5557
+ },
5558
+ {
5559
+ "name": "streamMessages",
5560
+ "kind": "function",
5561
+ "jsdoc": "/** Submits a visitor message (for example a visitor-option selection) to the widget's\n * `messages/stream` endpoint. This is a BUFFERED call, not a stream: the endpoint\n * answers with an SSE body, but the Wix bridge reads the whole body before it resolves,\n * so the promise settles only once the response has ended and the events are not\n * delivered as they arrive. The payload is returned opaque, as the bridge hands it\n * over. Native clients expose the same buffered call as `streamMessages`. The request\n * is sent as the visitor or member session the host supplies; a gateway error rejects.\n * @scope visitor — an anonymous visitor session is enough. */",
5562
+ "decl": "export function streamMessages(req: WixStreamMessagesRequest, opts?: WixCallOptions): Promise<unknown>;",
5563
+ "http": "POST /wix-assistant-widget/v1/messages/stream",
5564
+ "scope": "visitor"
5565
+ }
5566
+ ]
5567
+ },
5461
5568
  {
5462
5569
  "name": "@himalaya/wix-analytics",
5463
5570
  "source": "stdlib/wix-sdk/analytics/src/index.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.1404.0",
3
+ "version": "0.1405.0",
4
4
  "type": "module",
5
5
  "description": "himi — the Himalaya authoring CLI. Build a Tier-5 content package on your own machine, push it to the production serve as a draft, preview it on web + Himi Player, and read worker logs back — the remote dev loop. Wraps @himalaya/serve-cli for transport.",
6
6
  "keywords": [
@@ -71,5 +71,5 @@
71
71
  "artifactId": "himalaya-cli"
72
72
  }
73
73
  },
74
- "falconPackageHash": "cf0f67f6a26c27900f90a26c190e8ec4ecb1d22e96fb426248d86d09"
74
+ "falconPackageHash": "0a22f58e5c6c241689ced19f73766e414c3004bb061a6c6b8f738a92"
75
75
  }
@@ -65,6 +65,13 @@ export default defineApp({
65
65
  "parentScreenId": "himi_account",
66
66
  "tabId": "profile"
67
67
  },
68
+ {
69
+ "screenId": "himi_account_settings",
70
+ "isPublic": false,
71
+ "paramKeys": [],
72
+ "parentScreenId": "himi_account",
73
+ "tabId": "profile"
74
+ },
68
75
  {
69
76
  "screenId": "himi_view_profile",
70
77
  "isPublic": false,