@wix/himalaya-cli 0.1404.0 → 0.1406.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 (107) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/app-config.d.ts +1 -0
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/app-module.d.ts +3 -0
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/builder.d.ts +3 -0
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +88 -0
  5. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/validator.d.ts +350 -0
  6. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/ai-site-chat/src/extensions.d.ts +10 -0
  7. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/ai-site-chat/src/index.d.ts +102 -0
  8. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +82 -1
  9. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdui.mjs +83 -1
  10. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-ai-site-chat.mjs +70 -0
  11. package/dist/authoring-runtime/node_modules/@wix/himalaya/package.json +4 -0
  12. package/dist/cli.mjs +250 -40
  13. package/dist/preview-assets.generated.bin +0 -0
  14. package/fixtures/wix-canned.json +3 -0
  15. package/guides/component-reference.json +3 -2
  16. package/guides/component-reference.md +7 -1
  17. package/guides/importable-sdks.md +1 -0
  18. package/guides/sdk-reference.json +133 -2
  19. package/package.json +2 -2
  20. package/templates/beauty-salon/config.ts +7 -0
  21. package/templates/beauty-salon/dev/index.ts +1750 -0
  22. package/templates/beauty-salon/himalaya.content.json +3 -0
  23. package/templates/beauty-salon/site-functions/README.md +37 -0
  24. package/templates/beauty-salon/site-functions/himiMemberPhotoUploadUrl.js +90 -0
  25. package/templates/beauty-salon/tier5-src/_shared/member-account-routes.ts +11 -3
  26. package/templates/beauty-salon/tier5-src/himi-branded-lite-account-settings/blocked-members.ts +242 -0
  27. package/templates/beauty-salon/tier5-src/himi-branded-lite-account-settings/index.ts +1091 -0
  28. package/templates/branded-lite/config.ts +7 -0
  29. package/templates/branded-lite/dev/index.ts +1750 -0
  30. package/templates/branded-lite/himalaya.content.json +3 -0
  31. package/templates/branded-lite/site-functions/README.md +37 -0
  32. package/templates/branded-lite/site-functions/himiMemberPhotoUploadUrl.js +90 -0
  33. package/templates/branded-lite/tier5-src/_shared/member-account-routes.ts +11 -3
  34. package/templates/branded-lite/tier5-src/himi-branded-lite-account-settings/blocked-members.ts +242 -0
  35. package/templates/branded-lite/tier5-src/himi-branded-lite-account-settings/index.ts +1091 -0
  36. package/templates/community-club/config.ts +7 -0
  37. package/templates/community-club/dev/index.ts +1750 -0
  38. package/templates/community-club/himalaya.content.json +3 -0
  39. package/templates/community-club/site-functions/README.md +37 -0
  40. package/templates/community-club/site-functions/himiMemberPhotoUploadUrl.js +90 -0
  41. package/templates/community-club/tier5-src/_shared/member-account-routes.ts +11 -3
  42. package/templates/community-club/tier5-src/himi-branded-lite-account-settings/blocked-members.ts +242 -0
  43. package/templates/community-club/tier5-src/himi-branded-lite-account-settings/index.ts +1091 -0
  44. package/templates/events-meetups/config.ts +7 -0
  45. package/templates/events-meetups/dev/index.ts +1750 -0
  46. package/templates/events-meetups/himalaya.content.json +3 -0
  47. package/templates/events-meetups/site-functions/README.md +37 -0
  48. package/templates/events-meetups/site-functions/himiMemberPhotoUploadUrl.js +90 -0
  49. package/templates/events-meetups/tier5-src/_shared/member-account-routes.ts +11 -3
  50. package/templates/events-meetups/tier5-src/himi-branded-lite-account-settings/blocked-members.ts +242 -0
  51. package/templates/events-meetups/tier5-src/himi-branded-lite-account-settings/index.ts +1091 -0
  52. package/templates/gym-fitness/config.ts +7 -0
  53. package/templates/gym-fitness/dev/index.ts +1750 -0
  54. package/templates/gym-fitness/himalaya.content.json +3 -0
  55. package/templates/gym-fitness/site-functions/README.md +37 -0
  56. package/templates/gym-fitness/site-functions/himiMemberPhotoUploadUrl.js +90 -0
  57. package/templates/gym-fitness/tier5-src/_shared/member-account-routes.ts +11 -3
  58. package/templates/gym-fitness/tier5-src/himi-branded-lite-account-settings/blocked-members.ts +242 -0
  59. package/templates/gym-fitness/tier5-src/himi-branded-lite-account-settings/index.ts +1091 -0
  60. package/templates/nonprofit-cause/config.ts +7 -0
  61. package/templates/nonprofit-cause/dev/index.ts +1750 -0
  62. package/templates/nonprofit-cause/himalaya.content.json +3 -0
  63. package/templates/nonprofit-cause/site-functions/README.md +37 -0
  64. package/templates/nonprofit-cause/site-functions/himiMemberPhotoUploadUrl.js +90 -0
  65. package/templates/nonprofit-cause/tier5-src/_shared/member-account-routes.ts +11 -3
  66. package/templates/nonprofit-cause/tier5-src/himi-branded-lite-account-settings/blocked-members.ts +242 -0
  67. package/templates/nonprofit-cause/tier5-src/himi-branded-lite-account-settings/index.ts +1091 -0
  68. package/templates/podcast-creator/config.ts +7 -0
  69. package/templates/podcast-creator/dev/index.ts +1750 -0
  70. package/templates/podcast-creator/himalaya.content.json +3 -0
  71. package/templates/podcast-creator/site-functions/README.md +37 -0
  72. package/templates/podcast-creator/site-functions/himiMemberPhotoUploadUrl.js +90 -0
  73. package/templates/podcast-creator/tier5-src/_shared/member-account-routes.ts +11 -3
  74. package/templates/podcast-creator/tier5-src/himi-branded-lite-account-settings/blocked-members.ts +242 -0
  75. package/templates/podcast-creator/tier5-src/himi-branded-lite-account-settings/index.ts +1091 -0
  76. package/templates/portfolio-creative/config.ts +7 -0
  77. package/templates/portfolio-creative/dev/index.ts +1750 -0
  78. package/templates/portfolio-creative/himalaya.content.json +3 -0
  79. package/templates/portfolio-creative/site-functions/README.md +37 -0
  80. package/templates/portfolio-creative/site-functions/himiMemberPhotoUploadUrl.js +90 -0
  81. package/templates/portfolio-creative/tier5-src/_shared/member-account-routes.ts +11 -3
  82. package/templates/portfolio-creative/tier5-src/himi-branded-lite-account-settings/blocked-members.ts +242 -0
  83. package/templates/portfolio-creative/tier5-src/himi-branded-lite-account-settings/index.ts +1091 -0
  84. package/templates/restaurant/config.ts +7 -0
  85. package/templates/restaurant/dev/index.ts +1750 -0
  86. package/templates/restaurant/himalaya.content.json +3 -0
  87. package/templates/restaurant/site-functions/README.md +37 -0
  88. package/templates/restaurant/site-functions/himiMemberPhotoUploadUrl.js +90 -0
  89. package/templates/restaurant/tier5-src/_shared/member-account-routes.ts +11 -3
  90. package/templates/restaurant/tier5-src/himi-branded-lite-account-settings/blocked-members.ts +242 -0
  91. package/templates/restaurant/tier5-src/himi-branded-lite-account-settings/index.ts +1091 -0
  92. package/templates/retail-store/config.ts +7 -0
  93. package/templates/retail-store/dev/index.ts +1750 -0
  94. package/templates/retail-store/himalaya.content.json +3 -0
  95. package/templates/retail-store/site-functions/README.md +37 -0
  96. package/templates/retail-store/site-functions/himiMemberPhotoUploadUrl.js +90 -0
  97. package/templates/retail-store/tier5-src/_shared/member-account-routes.ts +11 -3
  98. package/templates/retail-store/tier5-src/himi-branded-lite-account-settings/blocked-members.ts +242 -0
  99. package/templates/retail-store/tier5-src/himi-branded-lite-account-settings/index.ts +1091 -0
  100. package/templates/yoga-studio/config.ts +7 -0
  101. package/templates/yoga-studio/dev/index.ts +1750 -0
  102. package/templates/yoga-studio/himalaya.content.json +3 -0
  103. package/templates/yoga-studio/site-functions/README.md +37 -0
  104. package/templates/yoga-studio/site-functions/himiMemberPhotoUploadUrl.js +90 -0
  105. package/templates/yoga-studio/tier5-src/_shared/member-account-routes.ts +11 -3
  106. package/templates/yoga-studio/tier5-src/himi-branded-lite-account-settings/blocked-members.ts +242 -0
  107. package/templates/yoga-studio/tier5-src/himi-branded-lite-account-settings/index.ts +1091 -0
@@ -8271,7 +8271,88 @@ var screenDescriptorSchema = {
8271
8271
  properties: {
8272
8272
  actions: { type: "array", items: { $ref: "#/$defs/topBarAction" } },
8273
8273
  leading: { type: "string" },
8274
- style: { type: "string" }
8274
+ style: { type: "string" },
8275
+ // RFC 0066 §1 (fields 4–8) + the "top-bar gap items" amendment (#4414, fields
8276
+ // 10–14). Discriminators stay free strings (invariant 6). Field 9 (`searchable`)
8277
+ // arrives with the RFC 0010 search implementation.
8278
+ items: { type: "array", items: { $ref: "#/$defs/toolbarItem" } },
8279
+ titleDisplay: { type: "string" },
8280
+ subtitle: { type: "string" },
8281
+ visibility: { type: "string" },
8282
+ background: { $ref: "#/$defs/tokenRef" },
8283
+ logo: { $ref: "#/$defs/topBarLogo" },
8284
+ titleMenu: { $ref: "#/$defs/topBarTitleMenu" },
8285
+ subtitlePath: { type: "string" },
8286
+ scrollBehavior: { type: "string" },
8287
+ dirtyPath: { type: "string" }
8288
+ }
8289
+ },
8290
+ toolbarItem: {
8291
+ type: "object",
8292
+ additionalProperties: false,
8293
+ required: ["id"],
8294
+ properties: {
8295
+ id: { type: "string", minLength: 1 },
8296
+ placement: { type: "string" },
8297
+ label: { type: "string" },
8298
+ icon: { type: "string" },
8299
+ onTap: { $ref: "#/$defs/action" },
8300
+ role: { type: "string" },
8301
+ disabled: { type: "boolean" },
8302
+ disabledPath: { type: "string" },
8303
+ menu: { type: "array", items: { $ref: "#/$defs/topBarMenuItem" } },
8304
+ content: { $ref: "#/$defs/component" },
8305
+ loadingPath: { type: "string" },
8306
+ avatar: { $ref: "#/$defs/toolbarAvatar" },
8307
+ labelPath: { type: "string" }
8308
+ }
8309
+ },
8310
+ toolbarAvatar: {
8311
+ type: "object",
8312
+ additionalProperties: false,
8313
+ properties: {
8314
+ imageUrl: { type: "string" },
8315
+ initials: { type: "string" },
8316
+ imageUrlPath: { type: "string" },
8317
+ initialsPath: { type: "string" }
8318
+ }
8319
+ },
8320
+ topBarLogo: {
8321
+ type: "object",
8322
+ additionalProperties: false,
8323
+ properties: {
8324
+ imageUrl: { type: "string" },
8325
+ imageUrlDark: { type: "string" },
8326
+ imageAsset: { type: "string" },
8327
+ name: { type: "string" },
8328
+ placement: { type: "string" },
8329
+ imageUrlPath: { type: "string" },
8330
+ accessibilityLabel: { type: "string" }
8331
+ }
8332
+ },
8333
+ topBarTitleMenu: {
8334
+ type: "object",
8335
+ additionalProperties: false,
8336
+ properties: {
8337
+ items: { type: "array", items: { $ref: "#/$defs/topBarMenuItem" } },
8338
+ selectedId: { type: "string" },
8339
+ selectedIdPath: { type: "string" },
8340
+ accessibilityLabel: { type: "string" }
8341
+ }
8342
+ },
8343
+ // The proto `MenuItem` (id, label, icon, destructive, disabled, action), as the
8344
+ // top bar carries it outside a Menu component's props.
8345
+ topBarMenuItem: {
8346
+ type: "object",
8347
+ additionalProperties: false,
8348
+ required: ["id", "label"],
8349
+ properties: {
8350
+ id: { type: "string", minLength: 1 },
8351
+ label: { type: "string" },
8352
+ icon: { type: "string" },
8353
+ destructive: { type: "boolean" },
8354
+ disabled: { type: "boolean" },
8355
+ action: { $ref: "#/$defs/action" }
8275
8356
  }
8276
8357
  },
8277
8358
  topBarAction: {
@@ -7141,7 +7141,88 @@ var screenDescriptorSchema = {
7141
7141
  properties: {
7142
7142
  actions: { type: "array", items: { $ref: "#/$defs/topBarAction" } },
7143
7143
  leading: { type: "string" },
7144
- style: { type: "string" }
7144
+ style: { type: "string" },
7145
+ // RFC 0066 §1 (fields 4–8) + the "top-bar gap items" amendment (#4414, fields
7146
+ // 10–14). Discriminators stay free strings (invariant 6). Field 9 (`searchable`)
7147
+ // arrives with the RFC 0010 search implementation.
7148
+ items: { type: "array", items: { $ref: "#/$defs/toolbarItem" } },
7149
+ titleDisplay: { type: "string" },
7150
+ subtitle: { type: "string" },
7151
+ visibility: { type: "string" },
7152
+ background: { $ref: "#/$defs/tokenRef" },
7153
+ logo: { $ref: "#/$defs/topBarLogo" },
7154
+ titleMenu: { $ref: "#/$defs/topBarTitleMenu" },
7155
+ subtitlePath: { type: "string" },
7156
+ scrollBehavior: { type: "string" },
7157
+ dirtyPath: { type: "string" }
7158
+ }
7159
+ },
7160
+ toolbarItem: {
7161
+ type: "object",
7162
+ additionalProperties: false,
7163
+ required: ["id"],
7164
+ properties: {
7165
+ id: { type: "string", minLength: 1 },
7166
+ placement: { type: "string" },
7167
+ label: { type: "string" },
7168
+ icon: { type: "string" },
7169
+ onTap: { $ref: "#/$defs/action" },
7170
+ role: { type: "string" },
7171
+ disabled: { type: "boolean" },
7172
+ disabledPath: { type: "string" },
7173
+ menu: { type: "array", items: { $ref: "#/$defs/topBarMenuItem" } },
7174
+ content: { $ref: "#/$defs/component" },
7175
+ loadingPath: { type: "string" },
7176
+ avatar: { $ref: "#/$defs/toolbarAvatar" },
7177
+ labelPath: { type: "string" }
7178
+ }
7179
+ },
7180
+ toolbarAvatar: {
7181
+ type: "object",
7182
+ additionalProperties: false,
7183
+ properties: {
7184
+ imageUrl: { type: "string" },
7185
+ initials: { type: "string" },
7186
+ imageUrlPath: { type: "string" },
7187
+ initialsPath: { type: "string" }
7188
+ }
7189
+ },
7190
+ topBarLogo: {
7191
+ type: "object",
7192
+ additionalProperties: false,
7193
+ properties: {
7194
+ imageUrl: { type: "string" },
7195
+ imageUrlDark: { type: "string" },
7196
+ imageAsset: { type: "string" },
7197
+ name: { type: "string" },
7198
+ placement: { type: "string" },
7199
+ imageUrlPath: { type: "string" },
7200
+ accessibilityLabel: { type: "string" }
7201
+ }
7202
+ },
7203
+ topBarTitleMenu: {
7204
+ type: "object",
7205
+ additionalProperties: false,
7206
+ properties: {
7207
+ items: { type: "array", items: { $ref: "#/$defs/topBarMenuItem" } },
7208
+ selectedId: { type: "string" },
7209
+ selectedIdPath: { type: "string" },
7210
+ accessibilityLabel: { type: "string" }
7211
+ }
7212
+ },
7213
+ // The proto `MenuItem` (id, label, icon, destructive, disabled, action), as the
7214
+ // top bar carries it outside a Menu component's props.
7215
+ topBarMenuItem: {
7216
+ type: "object",
7217
+ additionalProperties: false,
7218
+ required: ["id", "label"],
7219
+ properties: {
7220
+ id: { type: "string", minLength: 1 },
7221
+ label: { type: "string" },
7222
+ icon: { type: "string" },
7223
+ destructive: { type: "boolean" },
7224
+ disabled: { type: "boolean" },
7225
+ action: { $ref: "#/$defs/action" }
7145
7226
  }
7146
7227
  },
7147
7228
  topBarAction: {
@@ -9114,6 +9195,7 @@ function deriveAppMeta(name, m, platforms = {}, provisioning = {}) {
9114
9195
  appIconBadgeSources: config.navigation?.appIconBadgeSources,
9115
9196
  site: config.navigation?.site,
9116
9197
  streamPolicy: config.navigation?.streamPolicy,
9198
+ topBarLogo: config.navigation?.topBarLogo,
9117
9199
  splash: config.splash,
9118
9200
  locale: config.locale,
9119
9201
  deepLinkPatterns: config.navigation?.deepLinkPatterns,
@@ -0,0 +1,70 @@
1
+ // ../../stdlib/wix-sdk/ai-site-chat/src/extensions.ts
2
+ function streamMessages(req, opts) {
3
+ return wixCall("POST", "/wix-assistant-widget/v1/messages/stream", req, opts);
4
+ }
5
+
6
+ // ../../stdlib/wix-sdk/ai-site-chat/src/index.ts
7
+ function wixCallHeaders(opts) {
8
+ const site = opts?.site?.trim();
9
+ return site ? { "wix-site-id": site } : void 0;
10
+ }
11
+ function wixCall(method, path, body, opts) {
12
+ if (!globalThis.himalaya?.wixApi) {
13
+ return Promise.reject(
14
+ new Error(
15
+ "@himalaya/wix-ai-site-chat: host did not install the wixApi bridge"
16
+ )
17
+ );
18
+ }
19
+ return globalThis.himalaya.wixApi.call(
20
+ method,
21
+ path,
22
+ body,
23
+ wixCallHeaders(opts)
24
+ );
25
+ }
26
+ function wixQueryPath(path, req) {
27
+ const parts = [];
28
+ const pair = (key, value) => {
29
+ parts.push(
30
+ `${encodeURIComponent(key)}=${encodeURIComponent(String(value))}`
31
+ );
32
+ };
33
+ const add = (key, value) => {
34
+ if (value === void 0 || value === null) return;
35
+ if (Array.isArray(value)) {
36
+ for (const item of value) {
37
+ if (item === void 0 || item === null || typeof item === "object")
38
+ continue;
39
+ pair(key, item);
40
+ }
41
+ return;
42
+ }
43
+ if (typeof value === "object") {
44
+ for (const [k, v] of Object.entries(value))
45
+ add(`${key}.${k}`, v);
46
+ return;
47
+ }
48
+ pair(key, value);
49
+ };
50
+ for (const [key, value] of Object.entries(
51
+ req ?? {}
52
+ ))
53
+ add(key, value);
54
+ return parts.length > 0 ? `${path}?${parts.join("&")}` : path;
55
+ }
56
+ function listMessages(req = {}, opts) {
57
+ return wixCall(
58
+ "GET",
59
+ wixQueryPath("/wix-assistant-widget/v1/messages/list", req),
60
+ void 0,
61
+ opts
62
+ );
63
+ }
64
+ export {
65
+ listMessages,
66
+ streamMessages,
67
+ wixCall,
68
+ wixQueryPath
69
+ };
70
+ //# sourceMappingURL=wix-ai-site-chat.mjs.map
@@ -266,6 +266,10 @@
266
266
  "types": "./dist/_types/stdlib/wix-sdk/activity-counters-v1/src/index.d.ts",
267
267
  "import": "./dist/wix-activity-counters.mjs"
268
268
  },
269
+ "./wix-ai-site-chat": {
270
+ "types": "./dist/_types/stdlib/wix-sdk/ai-site-chat/src/index.d.ts",
271
+ "import": "./dist/wix-ai-site-chat.mjs"
272
+ },
269
273
  "./wix-analytics": {
270
274
  "types": "./dist/_types/stdlib/wix-sdk/analytics/src/index.d.ts",
271
275
  "import": "./dist/wix-analytics.mjs"