@wix/himalaya-cli 0.1768.0 → 0.1769.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 (109) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/app-config.d.ts +4 -0
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/app-module.d.ts +7 -0
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdui.mjs +1 -0
  4. package/dist/cli.mjs +25 -6
  5. package/guides/himi-json-output.md +3 -3
  6. package/guides/qa-builds.md +73 -84
  7. package/package.json +2 -2
  8. package/templates/beauty-salon/tier5-src/_shared/business-chat-transport.ts +20 -4
  9. package/templates/beauty-salon/tier5-src/_shared/engine-intl.ts +6 -0
  10. package/templates/beauty-salon-owner/tier5-src/_shared/engine-intl.ts +6 -0
  11. package/templates/branded-lite/config.ts +2 -1
  12. package/templates/branded-lite/dev/index.ts +2 -1
  13. package/templates/branded-lite/l10n/ar.json +120 -0
  14. package/templates/branded-lite/l10n/cs.json +120 -0
  15. package/templates/branded-lite/l10n/da.json +120 -0
  16. package/templates/branded-lite/l10n/de.json +120 -0
  17. package/templates/branded-lite/l10n/el.json +120 -0
  18. package/templates/branded-lite/l10n/es.json +120 -0
  19. package/templates/branded-lite/l10n/fi.json +120 -0
  20. package/templates/branded-lite/l10n/fr.json +120 -0
  21. package/templates/branded-lite/l10n/he.json +96 -0
  22. package/templates/branded-lite/l10n/hu.json +120 -0
  23. package/templates/branded-lite/l10n/id.json +120 -0
  24. package/templates/branded-lite/l10n/it.json +120 -0
  25. package/templates/branded-lite/l10n/ja.json +120 -0
  26. package/templates/branded-lite/l10n/ko.json +120 -0
  27. package/templates/branded-lite/l10n/lt.json +120 -0
  28. package/templates/branded-lite/l10n/nl.json +120 -0
  29. package/templates/branded-lite/l10n/no.json +120 -0
  30. package/templates/branded-lite/l10n/pl.json +120 -0
  31. package/templates/branded-lite/l10n/pt.json +120 -0
  32. package/templates/branded-lite/l10n/ru.json +120 -0
  33. package/templates/branded-lite/l10n/sv.json +120 -0
  34. package/templates/branded-lite/l10n/th.json +120 -0
  35. package/templates/branded-lite/l10n/tr.json +120 -0
  36. package/templates/branded-lite/l10n/uk.json +120 -0
  37. package/templates/branded-lite/l10n/vi.json +120 -0
  38. package/templates/branded-lite/l10n/zh.json +120 -0
  39. package/templates/branded-lite/tier5-src/_shared/business-chat-transport.ts +20 -4
  40. package/templates/branded-lite/tier5-src/_shared/engine-intl.ts +6 -0
  41. package/templates/branded-lite/tier5-src/_shared/inbox-rooms.ts +101 -11
  42. package/templates/branded-lite/tier5-src/_shared/inbox-search.ts +119 -0
  43. package/templates/branded-lite/tier5-src/_shared/member-inbox-transport.ts +64 -0
  44. package/templates/branded-lite/tier5-src/_shared/member-thread-rows.ts +233 -0
  45. package/templates/branded-lite/tier5-src/business-chat/index.ts +73 -22
  46. package/templates/branded-lite/tier5-src/himi-branded-lite-inbox/index.ts +777 -54
  47. package/templates/branded-lite/tier5-src/wix-spaces-chat-thread/index.ts +426 -143
  48. package/templates/branded-lite/tier5-src/wix-spaces-new-message/index.ts +4 -2
  49. package/templates/brandy/tier5-src/_shared/business-chat-message-model.ts +177 -0
  50. package/templates/brandy/tier5-src/_shared/business-chat-transport.ts +164 -0
  51. package/templates/brandy/tier5-src/_shared/engine-intl.ts +6 -0
  52. package/templates/brandy/tier5-src/_shared/inbox-rooms.ts +101 -11
  53. package/templates/brandy/tier5-src/_shared/inbox-search.ts +119 -0
  54. package/templates/brandy/tier5-src/_shared/member-inbox-transport.ts +64 -0
  55. package/templates/brandy/tier5-src/_shared/member-thread-rows.ts +233 -0
  56. package/templates/brandy/tier5-src/himi-branded-lite-inbox/index.ts +777 -54
  57. package/templates/brandy/tier5-src/wix-spaces-chat-thread/index.ts +426 -143
  58. package/templates/community-club/tier5-src/_shared/engine-intl.ts +6 -0
  59. package/templates/community-club-owner/tier5-src/_shared/engine-intl.ts +6 -0
  60. package/templates/conference/tier5-src/_shared/business-chat-transport.ts +20 -4
  61. package/templates/conference/tier5-src/_shared/chat-live.ts +242 -0
  62. package/templates/conference/tier5-src/_shared/engine-intl.ts +6 -0
  63. package/templates/conference/tier5-src/_shared/inbox-rooms.ts +101 -11
  64. package/templates/conference/tier5-src/business-chat/index.ts +73 -22
  65. package/templates/events-meetups/tier5-src/_shared/engine-intl.ts +6 -0
  66. package/templates/events-meetups-owner/tier5-src/_shared/engine-intl.ts +6 -0
  67. package/templates/fitness-gym/tier5-src/_shared/business-chat-transport.ts +20 -4
  68. package/templates/fitness-gym/tier5-src/_shared/chat-live.ts +242 -0
  69. package/templates/fitness-gym/tier5-src/_shared/engine-intl.ts +6 -0
  70. package/templates/fitness-gym/tier5-src/_shared/inbox-rooms.ts +101 -11
  71. package/templates/fitness-gym/tier5-src/business-chat/index.ts +73 -22
  72. package/templates/gym-fitness/tier5-src/_shared/business-chat-transport.ts +20 -4
  73. package/templates/gym-fitness/tier5-src/_shared/engine-intl.ts +6 -0
  74. package/templates/gym-fitness-owner/tier5-src/_shared/engine-intl.ts +6 -0
  75. package/templates/medical-services/tier5-src/_shared/business-chat-transport.ts +20 -4
  76. package/templates/medical-services/tier5-src/_shared/chat-live.ts +242 -0
  77. package/templates/medical-services/tier5-src/_shared/engine-intl.ts +6 -0
  78. package/templates/medical-services/tier5-src/_shared/inbox-rooms.ts +101 -11
  79. package/templates/medical-services/tier5-src/business-chat/index.ts +73 -22
  80. package/templates/nonprofit-cause/tier5-src/_shared/engine-intl.ts +6 -0
  81. package/templates/nonprofit-cause-owner/tier5-src/_shared/engine-intl.ts +6 -0
  82. package/templates/owner-lite/tier5-src/_shared/engine-intl.ts +6 -0
  83. package/templates/personal-fitness-trainer/dev/index.ts +2 -1
  84. package/templates/personal-fitness-trainer/tier5-src/_shared/business-chat-transport.ts +20 -4
  85. package/templates/personal-fitness-trainer/tier5-src/_shared/chat-live.ts +242 -0
  86. package/templates/personal-fitness-trainer/tier5-src/_shared/engine-intl.ts +6 -0
  87. package/templates/personal-fitness-trainer/tier5-src/_shared/inbox-rooms.ts +101 -11
  88. package/templates/personal-fitness-trainer/tier5-src/business-chat/index.ts +73 -22
  89. package/templates/podcast-creator/tier5-src/_shared/engine-intl.ts +6 -0
  90. package/templates/podcast-creator-owner/tier5-src/_shared/engine-intl.ts +6 -0
  91. package/templates/portfolio-creative/tier5-src/_shared/engine-intl.ts +6 -0
  92. package/templates/portfolio-creative-owner/tier5-src/_shared/engine-intl.ts +6 -0
  93. package/templates/restaurant/tier5-src/_shared/engine-intl.ts +6 -0
  94. package/templates/restaurant-owner/tier5-src/_shared/engine-intl.ts +6 -0
  95. package/templates/retail-store/tier5-src/_shared/engine-intl.ts +6 -0
  96. package/templates/retail-store-owner/tier5-src/_shared/engine-intl.ts +6 -0
  97. package/templates/salon-spa/tier5-src/_shared/business-chat-transport.ts +20 -4
  98. package/templates/salon-spa/tier5-src/_shared/chat-live.ts +242 -0
  99. package/templates/salon-spa/tier5-src/_shared/engine-intl.ts +6 -0
  100. package/templates/salon-spa/tier5-src/_shared/inbox-rooms.ts +101 -11
  101. package/templates/salon-spa/tier5-src/business-chat/index.ts +73 -22
  102. package/templates/wholesale-store/tier5-src/_shared/business-chat-transport.ts +20 -4
  103. package/templates/wholesale-store/tier5-src/_shared/chat-live.ts +242 -0
  104. package/templates/wholesale-store/tier5-src/_shared/engine-intl.ts +6 -0
  105. package/templates/wholesale-store/tier5-src/_shared/inbox-rooms.ts +101 -11
  106. package/templates/wholesale-store/tier5-src/business-chat/index.ts +73 -22
  107. package/templates/yoga-studio/tier5-src/_shared/business-chat-transport.ts +20 -4
  108. package/templates/yoga-studio/tier5-src/_shared/engine-intl.ts +6 -0
  109. package/templates/yoga-studio-owner/tier5-src/_shared/engine-intl.ts +6 -0
@@ -103,6 +103,10 @@ export interface NavigationConfig {
103
103
  drawer?: DrawerConfig;
104
104
  navKind?: NavKind;
105
105
  orientation?: OrientationConfig;
106
+ orientationEnvelope?: {
107
+ phone?: readonly string[];
108
+ tablet?: readonly string[];
109
+ };
106
110
  surfaces?: Record<string, import("@wix/himalaya/core").SurfaceNavConfig>;
107
111
  homeScreenId?: string;
108
112
  name?: string;
@@ -219,6 +219,13 @@ export interface DerivedAppMeta {
219
219
  /** RFC 0041 (orientation amendment) — effective orientations, narrowed by the
220
220
  * client from the binary's build-time envelope. Never widens it. */
221
221
  orientation?: import("@wix/himalaya/core").OrientationConfig;
222
+ /** Forwarded from AppConfig.orientationEnvelope — the BUILD-TIME orientation ceiling. Not read by
223
+ * the runtime (a binary reads its own plist / <meta-data>); the dist contract reads it so a
224
+ * `himi dist` shell binary is built with the content app's envelope, not the shell's. */
225
+ orientationEnvelope?: {
226
+ phone?: readonly string[];
227
+ tablet?: readonly string[];
228
+ };
222
229
  /** RFC 0051 — per-surface nav projection, forwarded from
223
230
  * AppConfig.navigation.surfaces. NARROWED against `platforms` before it is
224
231
  * served (deriveNavigationConfig), so a key naming a surface this binary does
@@ -9934,6 +9934,7 @@ function deriveAppMeta(name, m, platforms = {}, provisioning = {}) {
9934
9934
  drawer: config.navigation?.drawer,
9935
9935
  navKind: config.navigation?.navKind,
9936
9936
  orientation: config.navigation?.orientation,
9937
+ orientationEnvelope: config.orientationEnvelope,
9937
9938
  cache: config.cache,
9938
9939
  sidebar: config.navigation?.sidebar,
9939
9940
  // RFC 0074 §3 — `app.logicBundle` (canonical) or the `navigation.navLogicBundle` alias; both
package/dist/cli.mjs CHANGED
@@ -15363,6 +15363,7 @@ function deriveAppMeta(name, m2, platforms = {}, provisioning = {}) {
15363
15363
  drawer: config.navigation?.drawer,
15364
15364
  navKind: config.navigation?.navKind,
15365
15365
  orientation: config.navigation?.orientation,
15366
+ orientationEnvelope: config.orientationEnvelope,
15366
15367
  cache: config.cache,
15367
15368
  sidebar: config.navigation?.sidebar,
15368
15369
  // RFC 0074 §3 — `app.logicBundle` (canonical) or the `navigation.navLogicBundle` alias; both
@@ -39636,6 +39637,9 @@ function deriveNavigationConfig(app2, bundleCtx) {
39636
39637
  if (app2.drawer !== void 0) config.drawer = app2.drawer;
39637
39638
  if (app2.navKind !== void 0) config.navKind = app2.navKind;
39638
39639
  if (app2.orientation !== void 0) config.orientation = app2.orientation;
39640
+ if (app2.orientationEnvelope !== void 0 && (app2.orientationEnvelope.phone?.length || app2.orientationEnvelope.tablet?.length)) {
39641
+ config.orientationEnvelope = app2.orientationEnvelope;
39642
+ }
39639
39643
  if (app2.surfaces !== void 0) {
39640
39644
  const kept = Object.fromEntries(
39641
39645
  Object.entries(app2.surfaces).filter(([id]) => {
@@ -40180,7 +40184,6 @@ function resolveIdiom(tokens2, ctx = {}) {
40180
40184
  var IDIOM_CONTEXTS, UNSAFE_KEYS;
40181
40185
  var init_idiom = __esm({
40182
40186
  "../../core/ts/src/idiom.ts"() {
40183
- "use strict";
40184
40187
  init_define_HHP_CATALOG();
40185
40188
  IDIOM_CONTEXTS = {
40186
40189
  ios: { native: ["ios"] },
@@ -188072,7 +188075,7 @@ function genNativeConfig(app2, opts = {}) {
188072
188075
  return lines2(mode, watchName).map((line) => indent + line);
188073
188076
  };
188074
188077
  const tv = tvInfoPlan(parseTvConfig(configTs));
188075
- const orientation = parseOrientationEnvelope(configTs);
188078
+ const orientation = opts.orientationEnvelope ?? parseOrientationEnvelope(configTs);
188076
188079
  const carCategory = resolveCarCategory(parseCarConfig(configTs), app2);
188077
188080
  const removals = android2.removals;
188078
188081
  const removed = removals ? [...removals.permissions, ...removals.services, ...removals.receivers] : [];
@@ -269709,7 +269712,8 @@ function generateScreens(input) {
269709
269712
  const empty2 = built === null || Array.isArray(built) && built.length === 0;
269710
269713
  const fallback = FALLBACK_TARGETS[type2];
269711
269714
  const scaffold = input.takenScreenIds;
269712
- const linkable = !fallback?.needsScreen || !scaffold || scaffold.has(fallback.screen);
269715
+ const standIn = fallback && scaffold && !scaffold.has(fallback.screen) ? TEMPLATE_FALLBACKS[fallback.screen] : void 0;
269716
+ const linkable = !fallback?.needsScreen || !scaffold || scaffold.has(fallback.screen) || standIn !== void 0 && scaffold.has(standIn);
269713
269717
  if (empty2 && unmapped.length > reported && fallback && linkable) {
269714
269718
  const reasons = unmapped.splice(reported).map((u2) => u2.reason);
269715
269719
  uses.length = registered;
@@ -269717,10 +269721,11 @@ function generateScreens(input) {
269717
269721
  out2.gaps.length = gapped;
269718
269722
  const sibling = fallback.sibling ? items.find((other) => other !== layoutItemId && arr(obj11(layoutItems[other]).elements).some((e2) => str16(obj11(sections2[str16(obj11(e2).elementId)]).sectionDefinitionId) === fallback.sibling)) : void 0;
269719
269723
  fellBack.add(`${layoutItemId}|${type2}`);
269720
- const target = `${ROUTE_PLACEHOLDER}${sibling ?? ""}|${fallback.screen}|${fallback.sibling ?? ""}`;
269724
+ const screen = standIn !== void 0 && scaffold && !scaffold.has(fallback.screen) ? standIn : fallback.screen;
269725
+ const target = `${ROUTE_PLACEHOLDER}${sibling ?? ""}|${screen}|${fallback.sibling ?? ""}`;
269721
269726
  const values = fallback.params?.(obj11(section3.settings)) ?? {};
269722
269727
  const passed = values.categoryId !== void 0 ? { ...values, categoryActivation: sectionNodeId } : values;
269723
- if (fallback.params) paramLinked.add(fallback.screen);
269728
+ if (fallback.params) paramLinked.add(screen);
269724
269729
  const title = section3.showTitle === false ? "" : str16(section3.title).trim() || label4;
269725
269730
  children2.push(vstack(`${sectionNodeId}.box`, [
269726
269731
  ...title ? [text28(`${sectionNodeId}.title`, title, "title3")] : [],
@@ -270030,6 +270035,10 @@ var init_generate2 = __esm({
270030
270035
  ...max !== void 0 ? [`the source shows at most ${max} group(s) and a "${str16(st2.expandButtonText).trim() || "View All"}" button; himi_groups lists every group`] : []
270031
270036
  ];
270032
270037
  },
270038
+ groups_feed_section: (st2) => {
270039
+ const chosen = arr(st2.groupsToShow).length;
270040
+ return chosen ? [`the source shows the feed of only its ${chosen} chosen group(s); the template screen takes no group selection and shows every group`] : [];
270041
+ },
270033
270042
  faq_list_section: (st2) => {
270034
270043
  const limit = countOf2(obj11(st2.questions).NumberOfFAQs);
270035
270044
  return [
@@ -270074,6 +270083,12 @@ var init_generate2 = __esm({
270074
270083
  // Sections the census found on the most apps with no rule at all: each opens the template screen that shows its data.
270075
270084
  vod_list_section: { screen: "himi_videos", needsScreen: true },
270076
270085
  bookings_agenda_section: { screen: "himi_agenda", needsScreen: true },
270086
+ // A loyalty or members section beside other sections (a form, a title): a page of only these opens the template screen instead.
270087
+ loyalty_status_section: { screen: "himi_loyalty", needsScreen: true },
270088
+ loyalty_offering_section: { screen: "himi_loyalty", needsScreen: true },
270089
+ platform_general_members_section: { screen: "himi_members", needsScreen: true },
270090
+ // `himi_groups_feed` is a newer template screen: a scaffold without it links `himi_groups` (`TEMPLATE_FALLBACKS`), as a page of only this section opens it.
270091
+ groups_feed_section: { screen: "himi_groups_feed", needsScreen: true },
270077
270092
  // Link only when the scaffold has the events screen: without it the link would open nothing, so the section is reported instead.
270078
270093
  events_carousel_section: { sibling: "events_list_section", screen: "himi_events", needsScreen: true }
270079
270094
  };
@@ -270635,9 +270650,13 @@ var init_generate2 = __esm({
270635
270650
  if (st2.isAddressVisible === true && address) children2.push(hstack(`${id}.address`, [node(`${id}.address.icon`, "Icon", { name: "location" }), text28(`${id}.address.text`, address, "body")], 12));
270636
270651
  return children2.length ? vstack(`${id}.box`, children2, 12, inset(16, 16)) : null;
270637
270652
  },
270638
- // The data of these two is a template screen of its own (`TEMPLATE_VERTICALS`): beside other sections the page keeps the source's title and a link to it.
270653
+ // The data of these is a template screen of its own (`TEMPLATE_VERTICALS`): beside other sections the page keeps the source's title and a link to it.
270639
270654
  vod_list_section: (_id, _s2, _st, _i2, ctx, elementId) => ctx.unsupported(elementId, "vod_list_section", NO_INLINE_SECTION),
270640
270655
  bookings_agenda_section: (_id, _s2, _st, _i2, ctx, elementId) => ctx.unsupported(elementId, "bookings_agenda_section", NO_INLINE_SECTION),
270656
+ loyalty_status_section: (_id, _s2, _st, _i2, ctx, elementId) => ctx.unsupported(elementId, "loyalty_status_section", NO_INLINE_SECTION),
270657
+ loyalty_offering_section: (_id, _s2, _st, _i2, ctx, elementId) => ctx.unsupported(elementId, "loyalty_offering_section", NO_INLINE_SECTION),
270658
+ platform_general_members_section: (_id, _s2, _st, _i2, ctx, elementId) => ctx.unsupported(elementId, "platform_general_members_section", NO_INLINE_SECTION),
270659
+ groups_feed_section: (_id, _s2, _st, _i2, ctx, elementId) => ctx.unsupported(elementId, "groups_feed_section", NO_INLINE_SECTION),
270641
270660
  // The events carousel. `filter` is the source's choice of events: 0 every event, 1 by category, "manual" chosen events (read off the 45
270642
270661
  // carousels collected from the top apps). The shared events section has no event or category filter, so a chosen selection is reported and
270643
270662
  // keeps its place as a link; an unfiltered carousel shows the next events as cards, which is the one thing it cannot lay out as a rail.
@@ -1171,8 +1171,8 @@ keystore password is never printed.
1171
1171
 
1172
1172
  `himi store app set|show --app <id> --site <msid>` prints one envelope. A refusal from the publishing
1173
1173
  service keeps the service's own code in `serverError` (for example `forbidden_app`,
1174
- `store_app_linked_to_other_site`, `store_app_site_taken`, `premium_plan_required`,
1175
- `store_app_service_refused`) and its HTTP `status`; the CLI `code` is one of:
1174
+ `store_app_linked_to_other_site`, `store_app_site_taken`, `store_app_site_bound`, `store_id_missing`)
1175
+ and its HTTP `status`; the CLI `code` is one of:
1176
1176
 
1177
1177
  | Code | Meaning |
1178
1178
  |---|---|
@@ -1182,6 +1182,6 @@ service keeps the service's own code in `serverError` (for example `forbidden_ap
1182
1182
  | `wix_token_unavailable` | The account Wix token (`wix token`) could not be minted; the publishing service needs it to verify you own the app and the site. Nothing was sent. |
1183
1183
  | `unauthorized` | The control token was refused or revoked (401). |
1184
1184
  | `forbidden` | Not your app, not your site, or the token may not act for the app (403); `serverError` says which. |
1185
- | `refused` | A rule refused it (another 4xx): the package name, another app holding the site's store app, the app linked to another site, no saved package name, the site's plan; `serverError` says which. `store_app_service_refused` is Wix's store-app service refusing for a reason the plane has no code for: `error` carries the service's own words (scrubbed), and a `set` it refused leaves the app unlinked, so another site can be tried. |
1185
+ | `refused` | A rule refused it (another 4xx): the package name, another app holding the site's store app, the app linked to another site, a Containers app (its store ids are the Containers editor's), no saved package name; `serverError` says which. |
1186
1186
  | `control_unreachable` | The publishing service could not be reached. |
1187
1187
  | `request_failed` | Any other failure (5xx); `status` and `serverError` say which. |
@@ -1397,37 +1397,24 @@ himi dist --app <app> --platform android --aab --wait --target bo
1397
1397
  `DIST_ANDROID_FORMAT=aab` in its environment no longer turns an APK job into a bundle; the check
1398
1398
  stays for a runner older than that rule. A later delivery that passes every check (a retry on a
1399
1399
  clean machine) clears the verdict.
1400
- - **A Containers app's bundle is a store build.** For an app bound to a Wix site, the bundle is the
1401
- file its owner uploads to Google Play, so it is checked last before the build starts: the caller
1402
- owns the app's site (a self-serve caller's only path to a bundle; any other self-serve `--aab` is
1403
- `403 android_format_not_allowed`) (the `--signing byo` check, so `--aab` sends your Wix login), the app holds its
1404
- site's store app (`PUT /v1/admin/site/store-app`), and Wix agrees (`CreateBuildRecordIfAllowed`: a
1405
- package name is saved, and the site's plan allows publishing the app yourself). That check locks the
1406
- package name at the app's first store build, and the bundle is built under it. It also opens Wix's
1407
- record of the build, which the job id and then the result (status, version, bundle) are reported to
1408
- (`UpdateStoreBuild`); a build that never reaches the pool closes its record as failed. A report that
1409
- fails is sent again on a later read and never fails the build. An optional `version` (1–3
1410
- dot-separated integers) becomes the bundle's `versionName`, so Play shows the owner's version;
1411
- without one the bundle keeps the shell's. Refusals:
1412
- `store_build_version_invalid` (checked before the name is locked),
1400
+ - **A Containers app's bundle is a store build, which only mobile-apps-containers-builder starts.**
1401
+ For an app bound to a Wix site, the bundle is the file its owner uploads to Google Play. Its
1402
+ package name, the site's plan, the one-store-app-per-site hold and the build's record are that
1403
+ service's: it checks them and then starts the build here as the trusted caller (below), with the
1404
+ package name to build under. A request with a control token (the Containers editor or server, the
1405
+ owner, RelOps, an operator) is `403 store_build_requires_trusted_caller`, before anything is
1406
+ checked (MOBPUB-1246). An optional `version` (1–3 dot-separated integers) becomes the bundle's
1407
+ `versionName`, so Play shows the owner's version; without one the bundle keeps the shell's. A store
1408
+ build's own refusals (a Containers app's or a linked app's, below): `store_build_version_invalid`,
1413
1409
  `store_build_android_only`, `store_build_incompatible_options` (`--signing byo`) and
1414
1410
  `store_build_shell_unsupported` (any shell but `branded-lite`, the one that both builds under the
1415
- contract's applicationId and targets the API level Google Play requires) 400, `store_build_site_forbidden` 403,
1416
- `store_id_missing`, `store_app_site_taken`, `premium_plan_required` and
1417
- `release_predates_store_builds` (the release was built from a commit older than store builds, so
1418
- its bundle would fail or Play would refuse it; checked before the name is locked — publish a new
1419
- release and build again) 409,
1420
- `store_builds_unconfigured` 501, `store_builds_unavailable` 503 (also when the app's site binding
1421
- cannot be read, or Wix answers no usable package name). Each refusal carries `code`, equal to
1422
- `error`.
1423
- The same checks are available WITHOUT a build, for the Containers editor to ask before it
1424
- activates a draft release: `GET /v1/admin/site/store-build-check?app=&site=[&shell=]` answers
1425
- `200 { ok: true, android: { packageName } }` or the same refusals, through `CheckIfBuildIsAllowed`,
1426
- so it locks nothing. It names no release, so it cannot give
1427
- `409 release_predates_store_builds`; a draft the editor just built is on a current commit. It is
1428
- not sent the App name and icon either, so it cannot give their refusals (below). It never
1429
- falls back to the locking call.
1430
- - **An app you own, linked to a site you own, gets the same store build.** An app made with the
1411
+ contract's applicationId and targets the API level Google Play requires) 400,
1412
+ `store_build_site_forbidden` 403 (a linked app's owner check), `store_id_missing` (a linked app
1413
+ with no package name saved) and `release_predates_store_builds` (the release was built from a
1414
+ commit older than store builds, so its bundle would fail or Play would refuse it — publish a new
1415
+ release and build again) 409, `store_builds_unconfigured` 501, `store_builds_unavailable` 503 (also
1416
+ when the app's site binding or link cannot be read). Each refusal carries `code`, equal to `error`.
1417
+ - **An app you own, linked to a site you own, gets a store build under Himalaya's own rules.** An app made with the
1431
1418
  CLI (`himi init`) is owned by your Wix account and bound to no site, so its `--aab` was
1432
1419
  `403 android_format_not_allowed`. Binding it to a site is the wrong tool: that converts it into a
1433
1420
  site app, after which your own `himi login` token can no longer push it. Instead, LINK it — the
@@ -1440,53 +1427,53 @@ himi dist --app <app> --platform android --aab --wait --target bo
1440
1427
  --app-name "My App" --app-icon-url https://…/icon.png
1441
1428
  ```
1442
1429
 
1443
- `set` is `PUT /v1/admin/site/store-app` and `show` is the store-build-check above, both with your
1444
- `himi login` control token AND your account's Wix credential (`wix token`, sent as
1430
+ `set` is `PUT /v1/admin/site/store-app` and `show` is `GET /v1/admin/site/store-build-check`
1431
+ (the store build's checks without the build: `200 { ok: true, android: { packageName } }` or the
1432
+ build's refusals; it names no release, so it cannot give `409 release_predates_store_builds`),
1433
+ both with your `himi login` control token AND your account's Wix credential (`wix token`, sent as
1445
1434
  `Authorization`). The plane accepts the app only when the token's account is the app's OWNER (a
1446
1435
  collaborator is `403 forbidden_app`), that same account controls the Wix credential and owns the
1447
1436
  site (`403 forbidden_site`, or `store_build_site_forbidden` on the check), and the app is not
1448
1437
  already linked to another site (`409 store_app_linked_to_other_site`; moving needs Wix support,
1449
- because a build may have locked the package name). It records a link (app → site, one site per
1450
- app), holds the site's store app (`409 store_app_site_taken` if another app holds it), and saves
1451
- the package name; the response says `linked: true` the first time. A `set` the service refuses
1452
- outright (`400 store_app_service_refused`, `409 package_name_in_use`, …) leaves no link behind, so
1453
- the app can be linked to another site. Only the Google Play package
1454
- name is saved this way (`400 store_app_link_android_only` for iOS ids): App Store builds stay
1455
- Containers-only. Before a link exists, the check and `GET /v1/admin/site/store-app` answer
1456
- `409 store_app_requires_site_binding`, the code an unbound app always got.
1457
-
1458
- `himi dist --aab` then finds the site from the link and runs every store-build check above against
1459
- it, including the strict site-owner check, the store-app hold, the plan (`premium_plan_required`)
1460
- and the package lock, with the app name and icon required, `branded-lite` only, WixOne signing.
1461
- The link is re-checked on every build: if the app changed owner, was deactivated, or was since
1462
- bound to a site, it no longer counts and the bundle is `403 android_format_not_allowed` again. The
1463
- app is never site-bound anywhere else: push, CAPTCHA and every other route treat it as the
1464
- account app it is. An `--android-signing owner` bundle keeps its own path.
1465
- - **A Containers app's TestFlight build is an App Store build.** For an app bound to a Wix site,
1466
- `--platform ios --destination testflight --version <x.y.z>` with no `--signing` builds the app for
1467
- the owner's own App Store account: signed with the owner's certificate, under the bundle id saved
1468
- in mobile-apps-containers-builder, and uploaded to the owner's TestFlight with the owner's App
1469
- Store Connect key. The checks run last before the build starts: the caller owns the app's site
1470
- (send your Wix login, as for a bundle), the app holds its site's store app, the release's commit
1471
- can make one (`appStoreBuild` in the signing marker), `CheckIfBuildIsAllowed` finds a
1472
- saved bundle id and an eligible plan (so an ineligible site never reaches Apple), then
1473
- `PrepareAppleCertificates` registers the bundle id in the owner's Apple account and answers the
1474
- certificate, profile and key, and only then `CreateBuildRecordIfAllowed` locks the bundle id (so a
1475
- bundle id Apple refuses can still change), and only while it is still the prepared one
1476
- (`expected_store_id`: a bundle id saved in between is refused and stays changeable). That call also
1477
- opens Wix's record of the build, as for a bundle: the job id is reported at dispatch, and the build's
1478
- end once its upload settles (`UPLOADED` is the success, reported with the IPA; an upload `FAILED`
1479
- for good is the failure, with its `error`; a build that fails or is canceled on the pool is
1480
- reported so). A built IPA waiting for its upload reports nothing yet. The owner must already have
1481
- the app in App Store Connect under that bundle id. The files
1438
+ because Google Play may already hold the package name). It records a link (app → site, one site
1439
+ per app), holds the site's store app (`409 store_app_site_taken` if another app holds it), and
1440
+ saves the package name on the link; the response says `linked: true` the first time. Running
1441
+ `set` again changes the name: nothing locks it. Only the Google Play package name is saved this
1442
+ way (`400 store_app_link_android_only` for iOS ids): App Store builds stay Containers-only, and a
1443
+ Containers app is `409 store_app_site_bound`. Before a link exists, the check and
1444
+ `GET /v1/admin/site/store-app` answer `409 store_app_requires_site_binding`, the code an unbound
1445
+ app always got.
1446
+
1447
+ `himi dist --aab` then finds the site and the package name from the link and runs Himalaya's own
1448
+ checks: the strict site-owner check, the app holds the site's store app, the app name and icon,
1449
+ `branded-lite` only, the release commit, the caps, WixOne signing. No Wix service is asked
1450
+ (MOBPUB-1252): nothing checks the site's plan, locks the package name or records the build. A link
1451
+ saved before the package name moved to the plane has none:
1452
+ its `--aab` is `409 store_id_missing` until `himi store app set` runs again. The link is re-checked
1453
+ on every build: if the app changed owner, was deactivated, or was since bound to a site, it no
1454
+ longer counts and the bundle is `403 android_format_not_allowed` again. The app is never
1455
+ site-bound anywhere else: push, CAPTCHA and every other route treat it as the account app it is.
1456
+ An `--android-signing owner` bundle keeps its own path.
1457
+ - **A Containers app's TestFlight build is an App Store build, which only mobile-apps-containers-builder
1458
+ starts.** For an app bound to a Wix site, `--platform ios --destination testflight --version <x.y.z>`
1459
+ with no `--signing` builds the app for the owner's own App Store account: signed with the owner's
1460
+ certificate, under the bundle id saved in mobile-apps-containers-builder, and uploaded to the
1461
+ owner's TestFlight with the owner's App Store Connect key. That service checks the owner, the plan
1462
+ and the saved bundle id and records the build, then starts it here as the trusted caller (below);
1463
+ with a control token it is `403 store_build_requires_trusted_caller`. The plane's checks run last
1464
+ before the build starts: the release's commit can make one (`appStoreBuild` in the signing
1465
+ marker), then `PrepareAppleCertificates` registers the bundle id in the owner's Apple account and
1466
+ answers the certificate, profile and key, and the bundle id it prepared must be the caller's
1467
+ `storeId`. `PrepareAppleCertificates` is the plane's one call to that service, made at dispatch,
1468
+ again when the pool fetches its signing (`GET /v1/dist/signing`), and again for each TestFlight
1469
+ upload. The owner must already have the app in App Store Connect under that bundle id. The files
1482
1470
  and the key are never stored: the pool and the upload each fetch them again, the job keeps only
1483
1471
  their hashes. The upload starts on its own once the pool reports the validated IPA: the pool's
1484
1472
  callback starts it in the background, and so does every list read of the app's builds (the owner
1485
1473
  card's poll) while it can be claimed, which also picks up one a stopped serve pod left. A status
1486
1474
  read starts it the same way and answers without waiting for it (it never waits on Apple, so a
1487
- read answers in seconds); any read the caller may make of the app moves it on, since the owner was
1488
- proven when the build started (the Containers server's reads carry a project token, not the
1489
- owner's Wix login). A caller reads the job until `customerAppStore.status` is `UPLOADED` or
1475
+ read answers in seconds); any read the caller may make of the app moves it on, since the trusted
1476
+ caller checked the owner when it started the build. A caller reads the job until `customerAppStore.status` is `UPLOADED` or
1490
1477
  `FAILED` to learn how it ended; it no longer has to read for the upload to happen. An attempt that
1491
1478
  fails on a passing error (a 429 or 5xx from mobile-apps-containers-builder or Apple, a timeout, a
1492
1479
  download that broke off) goes back to `READY_FOR_UPLOAD` with `failedAttempts`, `retryAt` and
@@ -1496,17 +1483,18 @@ himi dist --app <app> --platform android --aab --wait --target bo
1496
1483
  within an hour of lapsing, the upload signs a fresh one from the stored bucket and key (the plane's
1497
1484
  `DIST_ARTIFACT_AWS_*` key pair; without it, the recorded link).
1498
1485
  Refusals, each with `code` equal to `error`: `store_build_ios_only`, `store_build_version_invalid`
1499
- and `store_build_shell_unsupported` 400, `store_build_site_forbidden` 403, `store_id_missing`,
1500
- `store_app_site_taken`, `release_predates_store_builds`, `apple_credentials_missing`,
1486
+ and `store_build_shell_unsupported` 400, `store_build_requires_trusted_caller` and
1487
+ `store_build_site_forbidden` (the app is no longer bound to the site) 403, `store_id_missing`,
1488
+ `store_id_mismatch`, `release_predates_store_builds`, `apple_credentials_missing`,
1501
1489
  `apple_private_key_invalid`, `apple_credentials_rejected`, `apple_credentials_access_denied`,
1502
- `apple_agreement_not_accepted`, `bundle_id_not_available`, `apple_certificate_limit_reached`,
1503
- `app_store_app_missing`, `premium_plan_required` and `store_app_concurrent_update` 409,
1490
+ `apple_agreement_not_accepted`, `bundle_id_not_available`, `apple_certificate_limit_reached` and
1491
+ `app_store_app_missing` 409,
1504
1492
  `store_builds_unconfigured` 501 (also until the generated client carries
1505
1493
  `PrepareAppleCertificates`, and where customer App Store upload is off), `app_store_signing_invalid`
1506
1494
  502 (the prepared files failed Himalaya's checks, the check's code in `reason`: a fix on Wix's
1507
1495
  side, not a retry), `store_builds_unavailable` 503. A named `--signing byo` keeps the
1508
1496
  customer-signed path above, from the site's legacy BuildSecrets.
1509
- - **mobile-apps-containers-builder can start these store builds itself, as a trusted caller.** A
1497
+ - **mobile-apps-containers-builder starts these store builds itself, as the trusted caller.** A
1510
1498
  request with no `X-Control-Token` whose Wix identity the platform verified is a SERVICE identity
1511
1499
  (`serviceIdentity.appDefId`) listed in `HIMI_TRUSTED_STORE_BUILD_APPS` (comma-separated; empty is
1512
1500
  off, though a call to these routes without a control token still logs `Himalaya trusted caller
@@ -1514,8 +1502,8 @@ himi dist --app <app> --platform android --aab --wait --target bo
1514
1502
  `POST /v1/admin/dist` a Containers app's Google Play bundle or App Store build with
1515
1503
  `storeBuild: { metaSiteId, storeId }` and its own `attemptId` (required). The service has already
1516
1504
  checked the site's owner, plan, saved store id and its store-app hold, and records the build once
1517
- the plane accepts it, so the plane skips the owner check, the hold, `CheckIfBuildIsAllowed`,
1518
- `CreateBuildRecordIfAllowed` and every `UpdateStoreBuild`, and builds under `storeId`. Every check of the plane's own still runs
1505
+ the plane accepts it, so the plane makes no owner or plan check, keeps no hold or record of its
1506
+ own, reports nothing back, and builds under `storeId`. Every check of the plane's own still runs
1519
1507
  (shape, release, shell, store marker, icon, kill switch, the per-app cap; for the App Store,
1520
1508
  `PrepareAppleCertificates`, whose bundle id must equal `storeId`: `409 store_id_mismatch`). The app
1521
1509
  must be bound to `metaSiteId` (`403 store_build_site_mismatch`); only the store-build fields are
@@ -1530,20 +1518,20 @@ himi dist --app <app> --platform android --aab --wait --target bo
1530
1518
  TestFlight upload has settled, or the caller's cancel went through. Each read of a terminal job
1531
1519
  asks Job Service whether it ended it, until it has, and the read that writes the result logs
1532
1520
  `store_build.settled` (MOBPUB-1253). The caller learns the job ended from Job Service's own
1533
- `wix.mre.v1.Job` domain events and then reads the job. A request with a control token is the
1534
- path above, unchanged, and both stay: the Containers server picks one per site. MOBPUB-1241.
1535
- - **A store build ships under the owner's App name and icon.** Both store builds above (a Containers
1536
- app's `--aab` and its TestFlight build) need `appName` and `appIconUrl` on `POST /v1/admin/dist`
1537
- (`himi dist --app-name <name> --app-icon-url <url>`): the App name and App icon the owner set in
1538
- the Containers editor, which the Containers server reads off the project and sends. They win over
1521
+ `wix.mre.v1.Job` domain events and then reads the job. It is the only way a Containers app's store
1522
+ build starts: the same request with a control token is refused (above, MOBPUB-1246). MOBPUB-1241.
1523
+ - **A store build ships under the owner's App name and icon.** Every store build above (a Containers
1524
+ app's `--aab` and its TestFlight build, and a linked app's `--aab`) needs `appName` and `appIconUrl`
1525
+ on `POST /v1/admin/dist` (`himi dist --app-name <name> --app-icon-url <url>`): for a Containers app,
1526
+ the App name and App icon the owner set in the Containers editor, which the trusted caller sends. They win over
1539
1527
  the release's app-config `name` and icon, which the generation agent picked. Any other build
1540
1528
  takes them too when they are sent, and keeps the release's when they aren't. The name is trimmed,
1541
1529
  1 to 200 characters, with no control characters and no `$` (Xcode would expand `$(NAME)` from the
1542
1530
  pool's environment into the binary), and can't start with `@` or `?` (Android would read it as a
1543
1531
  resource reference). The icon must be a Wix Media file, exactly
1544
1532
  `https://static.wixstatic.com/media/<file>`. Its 1024x1024 PNG rendition
1545
- (`<url>/v1/fill/w_1024,h_1024,al_c,q_100/icon.png`) is fetched and checked last before the store
1546
- id is locked, and again when the pool reads its contract (`GET /v1/dist/contract`), twice at most.
1533
+ (`<url>/v1/fill/w_1024,h_1024,al_c,q_100/icon.png`) is fetched and checked last before dispatch,
1534
+ and again when the pool reads its contract (`GET /v1/dist/contract`), twice at most.
1547
1535
  If it can't be read then, the contract answers `503 app_icon_unavailable` and the build fails,
1548
1536
  rather than baking the release's or the shell's icon. iOS gets the icon re-encoded with no alpha
1549
1537
  channel, which App Store Connect refuses. The job records `appInfo`, and
@@ -1558,8 +1546,9 @@ app's bundle carries (`mobile-apps-engine` refuses any other certificate for a P
1558
1546
  Play App Signing on, so Google re-signs what users install. An `.aab` therefore signs with it —
1559
1547
  only its `WixOne` entry of `oneapp-production.keystore`: the alias is pinned for a bundle, whatever
1560
1548
  alias the pool's signing files name. Because the first upload binds a Play listing to that key for good, a **self-serve** caller
1561
- gets a bundle only as a Containers app's store build, which checks the app, its owner and its
1562
- package name first (above); any other self-serve `--aab` is `403 android_format_not_allowed`. A self-serve **APK** with
1549
+ gets a bundle only as a store build: a Containers app's, which the trusted caller starts once it
1550
+ checked the app, its owner and its package name, or a linked app's, whose owner the plane checks
1551
+ (above); any other self-serve `--aab` is `403 android_format_not_allowed`. A self-serve **APK** with
1563
1552
  `wix-keystore` keeps `403 android_signing_not_allowed`, unchanged. The APK built beside a bundle is
1564
1553
  QA-signed, so no installable APK carrying the WixOne signature is ever handed out; WixOne would not
1565
1554
  help it anyway, because the APKs Google Play delivers carry Google's app-signing key, so a phone with
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.1768.0",
3
+ "version": "0.1769.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": [
@@ -82,5 +82,5 @@
82
82
  "artifactId": "himalaya-cli"
83
83
  }
84
84
  },
85
- "falconPackageHash": "cd3e2e9356b794941b66a0fe14e30357d9106c86225b5bb4f711dd91"
85
+ "falconPackageHash": "0e2351fdae217cbddf92fe3d19a6b6f465477cf2cb4b8b1654ad5dc1"
86
86
  }
@@ -29,6 +29,19 @@ async function fenced<T>(identity: ChatIdentity, run: () => Promise<T>): Promise
29
29
  /** Any other member-scoped call (the AI chat's) goes through the same fence. */
30
30
  export const fence = fenced;
31
31
 
32
+ /** A signed-out visitor's Smart Chat calls are fenced the other way: still signed out before the request goes
33
+ * out and again before its response is used, so signing in mid-request never mixes the visitor's chat into
34
+ * the member's. Fails as `MemberAccessChanged`, like the member fence, so callers handle both alike. */
35
+ async function assertStillVisitor(): Promise<void> {
36
+ if ((await memberAccess()).email) throw Object.assign(new Error("visitor_signed_in"), { name: "MemberAccessChanged" });
37
+ }
38
+ export async function visitorFence<T>(run: () => Promise<T>): Promise<T> {
39
+ await assertStillVisitor();
40
+ const result = await run();
41
+ await assertStillVisitor();
42
+ return result;
43
+ }
44
+
32
45
  // Minting a chat token is a network round trip, and every chat call used to mint its own. One token
33
46
  // per member is reused until the member changes or a request using it is refused.
34
47
  let cachedToken: { key: string; token: string } | null = null;
@@ -44,7 +57,7 @@ async function chatTokenFor(identity: ChatIdentity): Promise<string> {
44
57
  return chatToken;
45
58
  }
46
59
  /** Runs `run` with the member's cached token; a refused request mints a fresh token and tries once more. */
47
- async function withToken<T>(identity: ChatIdentity, run: (chatToken: string) => Promise<T>): Promise<T> {
60
+ export async function withToken<T>(identity: ChatIdentity, run: (chatToken: string) => Promise<T>): Promise<T> {
48
61
  const reused = cachedToken?.key === tokenKey(identity);
49
62
  try {
50
63
  return await run(await chatTokenFor(identity));
@@ -80,7 +93,7 @@ export const unreadRoomCount = (identity: ChatIdentity): Promise<number> => fenc
80
93
  export const messagesPage = (identity: ChatIdentity, roomId: string): Promise<Raw[]> => fenced(identity, async () =>
81
94
  (await withToken(identity, (chatToken) => getMessagesPage(roomId, { ...MEMBER, chatToken, pageSize: 50, ordering: "Desc" }))).items as unknown as Raw[]);
82
95
 
83
- function bridge(): Bridge {
96
+ export function bridge(): Bridge {
84
97
  const api = (globalThis as unknown as { himalaya?: { wixApi?: Bridge } }).himalaya?.wixApi;
85
98
  if (!api) throw new Error("wix_api_bridge_unavailable");
86
99
  return api;
@@ -89,7 +102,10 @@ function bridge(): Bridge {
89
102
  * Wix Smart Chat and the AI can answer it; a message posted straight into the room has no channel, so the AI never
90
103
  * saw it and the owner's reply went out by email. Smart Chat chooses the conversation and stored message id.
91
104
  * The bridge resolves once the AI has finished answering, not when the message is stored. */
92
- export const sendMessage = (identity: ChatIdentity, text: string): Promise<string | undefined> => fenced(identity, async () => {
105
+ export const sendMessage = (identity: ChatIdentity, text: string): Promise<string | undefined> => fenced(identity, () => postQuestion(text));
106
+ /** The same Smart Chat send for a signed-out visitor: Smart Chat accepts the anonymous visitor token. */
107
+ export const sendVisitorMessage = (text: string): Promise<string | undefined> => visitorFence(() => postQuestion(text));
108
+ async function postQuestion(text: string): Promise<string | undefined> {
93
109
  const response = await bridge().call("POST", "/wix-assistant-widget/v1/messages/stream", {
94
110
  message: { sender: "SITE_VISITOR", messageType: "QUESTION", body: { mainText: text } },
95
111
  });
@@ -123,7 +139,7 @@ export const sendMessage = (identity: ChatIdentity, text: string): Promise<strin
123
139
  if (input?.sender === "SITE_VISITOR" && input.messageType === "QUESTION" && typeof input.id === "string" && input.id) return `smart-chat:${input.id}`;
124
140
  }
125
141
  return undefined;
126
- });
142
+ }
127
143
  /** A tapped button is a silent, ephemeral message carrying the button's chat action. */
128
144
  export const sendButton = (identity: ChatIdentity, roomId: string, input: { id: string; text: string; appId: string; interactionId: string }): Promise<void> => fenced(identity, async () => {
129
145
  await withToken(identity, (chatToken) => bridge().call("POST", `${MANAGE}/_api/chat-web/v2/chatrooms/${encodeURIComponent(roomId)}/messages`, {
@@ -119,6 +119,12 @@ export function formatMonthDayLong(date: Date, locale = appLocale(), timeZone?:
119
119
 
120
120
  const WEEKDAYS_LONG = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"] as const;
121
121
 
122
+ /** `{ weekday: "short" }` — "Mon". */
123
+ export function formatWeekdayShort(date: Date, locale = appLocale(), timeZone?: string): string {
124
+ if (hasIntl()) return dateFormat(locale, { weekday: "short" }, timeZone).format(date);
125
+ return WEEKDAYS_SHORT[date.getDay()]!;
126
+ }
127
+
122
128
  /** `{ weekday: "short", month: "short", day: "numeric" }` — "Mon, Jan 5". */
123
129
  export function formatWeekdayMonthDay(date: Date, locale = appLocale(), timeZone?: string): string {
124
130
  if (hasIntl()) {
@@ -119,6 +119,12 @@ export function formatMonthDayLong(date: Date, locale = appLocale(), timeZone?:
119
119
 
120
120
  const WEEKDAYS_LONG = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"] as const;
121
121
 
122
+ /** `{ weekday: "short" }` — "Mon". */
123
+ export function formatWeekdayShort(date: Date, locale = appLocale(), timeZone?: string): string {
124
+ if (hasIntl()) return dateFormat(locale, { weekday: "short" }, timeZone).format(date);
125
+ return WEEKDAYS_SHORT[date.getDay()]!;
126
+ }
127
+
122
128
  /** `{ weekday: "short", month: "short", day: "numeric" }` — "Mon, Jan 5". */
123
129
  export function formatWeekdayMonthDay(date: Date, locale = appLocale(), timeZone?: string): string {
124
130
  if (hasIntl()) {
@@ -380,7 +380,8 @@ export default defineApp({
380
380
  "screenId": "himi_chat_thread",
381
381
  "isPublic": false,
382
382
  "paramKeys": [
383
- "id"
383
+ "id",
384
+ "kind"
384
385
  ],
385
386
  "parentScreenId": "himi_business_chat",
386
387
  "tabId": ""
@@ -92346,7 +92346,8 @@ const SCREENS = runtimeSetting({
92346
92346
  "displayName": "__HIMI_APP_NAME__",
92347
92347
  "siteUrl": "__HIMI_MEMBER_SITE_URL__",
92348
92348
  "productScreen": "himi_product",
92349
- "serviceScreen": "himi_service"
92349
+ "serviceScreen": "himi_service",
92350
+ "visitorChat": "1"
92350
92351
  }
92351
92352
  }
92352
92353
  }