@wix/himalaya-cli 0.1030.0 → 0.1032.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 (124) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/app-config.d.ts +7 -0
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/wix-gateway.d.ts +32 -0
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/wix-gateway.rules.d.ts +2 -1
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/define-app.d.ts +7 -0
  5. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/genie-chat/src/index.d.ts +64 -0
  6. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-genie-chat.mjs +41 -1
  7. package/dist/cli.mjs +386 -132
  8. package/dist/preview-assets.generated.bin +0 -0
  9. package/guides/mobile-ux.md +3 -2
  10. package/guides/qa-builds.md +22 -13
  11. package/guides/sdk-reference.json +50 -2
  12. package/package.json +2 -2
  13. package/templates/beauty-salon/tier5-src/_shared/owner-load-error.ts +7 -1
  14. package/templates/beauty-salon-owner/config.ts +1 -1
  15. package/templates/beauty-salon-owner/dev/index.ts +247 -9
  16. package/templates/beauty-salon-owner/tier5-src/_shared/aria-attachments.ts +179 -0
  17. package/templates/beauty-salon-owner/tier5-src/_shared/aria-chat.ts +405 -20
  18. package/templates/beauty-salon-owner/tier5-src/_shared/owner-bookings.ts +20 -0
  19. package/templates/beauty-salon-owner/tier5-src/_shared/owner-load-error.ts +7 -1
  20. package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-aria/index.ts +40 -1
  21. package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-home/index.ts +2 -12
  22. package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-manage/index.ts +10 -4
  23. package/templates/branded-lite/tier5-src/_shared/owner-load-error.ts +7 -1
  24. package/templates/community-club/tier5-src/_shared/owner-load-error.ts +7 -1
  25. package/templates/community-club-owner/config.ts +1 -1
  26. package/templates/community-club-owner/dev/index.ts +247 -9
  27. package/templates/community-club-owner/tier5-src/_shared/aria-attachments.ts +179 -0
  28. package/templates/community-club-owner/tier5-src/_shared/aria-chat.ts +405 -20
  29. package/templates/community-club-owner/tier5-src/_shared/owner-bookings.ts +20 -0
  30. package/templates/community-club-owner/tier5-src/_shared/owner-load-error.ts +7 -1
  31. package/templates/community-club-owner/tier5-src/himi-owner-lite-aria/index.ts +40 -1
  32. package/templates/community-club-owner/tier5-src/himi-owner-lite-home/index.ts +2 -12
  33. package/templates/community-club-owner/tier5-src/himi-owner-lite-manage/index.ts +10 -4
  34. package/templates/events-meetups/tier5-src/_shared/owner-load-error.ts +7 -1
  35. package/templates/events-meetups-owner/config.ts +1 -1
  36. package/templates/events-meetups-owner/dev/index.ts +247 -9
  37. package/templates/events-meetups-owner/tier5-src/_shared/aria-attachments.ts +179 -0
  38. package/templates/events-meetups-owner/tier5-src/_shared/aria-chat.ts +405 -20
  39. package/templates/events-meetups-owner/tier5-src/_shared/owner-bookings.ts +20 -0
  40. package/templates/events-meetups-owner/tier5-src/_shared/owner-load-error.ts +7 -1
  41. package/templates/events-meetups-owner/tier5-src/himi-owner-lite-aria/index.ts +40 -1
  42. package/templates/events-meetups-owner/tier5-src/himi-owner-lite-home/index.ts +2 -12
  43. package/templates/events-meetups-owner/tier5-src/himi-owner-lite-manage/index.ts +10 -4
  44. package/templates/gym-fitness/tier5-src/_shared/owner-load-error.ts +7 -1
  45. package/templates/gym-fitness-owner/config.ts +1 -1
  46. package/templates/gym-fitness-owner/dev/index.ts +247 -9
  47. package/templates/gym-fitness-owner/tier5-src/_shared/aria-attachments.ts +179 -0
  48. package/templates/gym-fitness-owner/tier5-src/_shared/aria-chat.ts +405 -20
  49. package/templates/gym-fitness-owner/tier5-src/_shared/owner-bookings.ts +20 -0
  50. package/templates/gym-fitness-owner/tier5-src/_shared/owner-load-error.ts +7 -1
  51. package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-aria/index.ts +40 -1
  52. package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-home/index.ts +2 -12
  53. package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-manage/index.ts +10 -4
  54. package/templates/himi-chat/tier5-src/_shared/owner-load-error.ts +7 -1
  55. package/templates/nonprofit-cause/tier5-src/_shared/owner-load-error.ts +7 -1
  56. package/templates/nonprofit-cause-owner/config.ts +1 -1
  57. package/templates/nonprofit-cause-owner/dev/index.ts +247 -9
  58. package/templates/nonprofit-cause-owner/tier5-src/_shared/aria-attachments.ts +179 -0
  59. package/templates/nonprofit-cause-owner/tier5-src/_shared/aria-chat.ts +405 -20
  60. package/templates/nonprofit-cause-owner/tier5-src/_shared/owner-bookings.ts +20 -0
  61. package/templates/nonprofit-cause-owner/tier5-src/_shared/owner-load-error.ts +7 -1
  62. package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-aria/index.ts +40 -1
  63. package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-home/index.ts +2 -12
  64. package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-manage/index.ts +10 -4
  65. package/templates/owner-lite/config.ts +1 -1
  66. package/templates/owner-lite/dev/index.ts +247 -9
  67. package/templates/owner-lite/tier5-src/_shared/aria-attachments.ts +179 -0
  68. package/templates/owner-lite/tier5-src/_shared/aria-chat.ts +405 -20
  69. package/templates/owner-lite/tier5-src/_shared/owner-bookings.ts +20 -0
  70. package/templates/owner-lite/tier5-src/_shared/owner-load-error.ts +7 -1
  71. package/templates/owner-lite/tier5-src/himi-owner-lite-aria/index.ts +40 -1
  72. package/templates/owner-lite/tier5-src/himi-owner-lite-home/index.ts +2 -12
  73. package/templates/owner-lite/tier5-src/himi-owner-lite-manage/index.ts +10 -4
  74. package/templates/podcast-creator/tier5-src/_shared/owner-load-error.ts +7 -1
  75. package/templates/podcast-creator-owner/config.ts +1 -1
  76. package/templates/podcast-creator-owner/dev/index.ts +247 -9
  77. package/templates/podcast-creator-owner/tier5-src/_shared/aria-attachments.ts +179 -0
  78. package/templates/podcast-creator-owner/tier5-src/_shared/aria-chat.ts +405 -20
  79. package/templates/podcast-creator-owner/tier5-src/_shared/owner-bookings.ts +20 -0
  80. package/templates/podcast-creator-owner/tier5-src/_shared/owner-load-error.ts +7 -1
  81. package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-aria/index.ts +40 -1
  82. package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-home/index.ts +2 -12
  83. package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-manage/index.ts +10 -4
  84. package/templates/portfolio-creative/tier5-src/_shared/owner-load-error.ts +7 -1
  85. package/templates/portfolio-creative-owner/config.ts +1 -1
  86. package/templates/portfolio-creative-owner/dev/index.ts +247 -9
  87. package/templates/portfolio-creative-owner/tier5-src/_shared/aria-attachments.ts +179 -0
  88. package/templates/portfolio-creative-owner/tier5-src/_shared/aria-chat.ts +405 -20
  89. package/templates/portfolio-creative-owner/tier5-src/_shared/owner-bookings.ts +20 -0
  90. package/templates/portfolio-creative-owner/tier5-src/_shared/owner-load-error.ts +7 -1
  91. package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-aria/index.ts +40 -1
  92. package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-home/index.ts +2 -12
  93. package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-manage/index.ts +10 -4
  94. package/templates/restaurant/tier5-src/_shared/owner-load-error.ts +7 -1
  95. package/templates/restaurant-owner/config.ts +1 -1
  96. package/templates/restaurant-owner/dev/index.ts +247 -9
  97. package/templates/restaurant-owner/tier5-src/_shared/aria-attachments.ts +179 -0
  98. package/templates/restaurant-owner/tier5-src/_shared/aria-chat.ts +405 -20
  99. package/templates/restaurant-owner/tier5-src/_shared/owner-bookings.ts +20 -0
  100. package/templates/restaurant-owner/tier5-src/_shared/owner-load-error.ts +7 -1
  101. package/templates/restaurant-owner/tier5-src/himi-owner-lite-aria/index.ts +40 -1
  102. package/templates/restaurant-owner/tier5-src/himi-owner-lite-home/index.ts +2 -12
  103. package/templates/restaurant-owner/tier5-src/himi-owner-lite-manage/index.ts +10 -4
  104. package/templates/retail-store/tier5-src/_shared/owner-load-error.ts +7 -1
  105. package/templates/retail-store-owner/config.ts +1 -1
  106. package/templates/retail-store-owner/dev/index.ts +247 -9
  107. package/templates/retail-store-owner/tier5-src/_shared/aria-attachments.ts +179 -0
  108. package/templates/retail-store-owner/tier5-src/_shared/aria-chat.ts +405 -20
  109. package/templates/retail-store-owner/tier5-src/_shared/owner-bookings.ts +20 -0
  110. package/templates/retail-store-owner/tier5-src/_shared/owner-load-error.ts +7 -1
  111. package/templates/retail-store-owner/tier5-src/himi-owner-lite-aria/index.ts +40 -1
  112. package/templates/retail-store-owner/tier5-src/himi-owner-lite-home/index.ts +2 -12
  113. package/templates/retail-store-owner/tier5-src/himi-owner-lite-manage/index.ts +10 -4
  114. package/templates/surface-showcase/dev/index.ts +1 -1
  115. package/templates/yoga-studio/tier5-src/_shared/owner-load-error.ts +7 -1
  116. package/templates/yoga-studio-owner/config.ts +1 -1
  117. package/templates/yoga-studio-owner/dev/index.ts +247 -9
  118. package/templates/yoga-studio-owner/tier5-src/_shared/aria-attachments.ts +179 -0
  119. package/templates/yoga-studio-owner/tier5-src/_shared/aria-chat.ts +405 -20
  120. package/templates/yoga-studio-owner/tier5-src/_shared/owner-bookings.ts +20 -0
  121. package/templates/yoga-studio-owner/tier5-src/_shared/owner-load-error.ts +7 -1
  122. package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-aria/index.ts +40 -1
  123. package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-home/index.ts +2 -12
  124. package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-manage/index.ts +10 -4
@@ -0,0 +1,20 @@
1
+ import type { WixBooking } from "@himalaya/wix-bookings";
2
+
3
+ /** The booking statuses an owner still has to show up for. ONE list for every surface that
4
+ * says "upcoming appointments" — Home's KPI and Manage's Appointments summary used to ask
5
+ * the server two different questions (`$in` these vs `$nin` CANCELED/DECLINED) and Manage
6
+ * then trusted whatever came back, so the two screens could disagree on the same business
7
+ * (Home 9, Manage 11 on the same hermetic fixtures). */
8
+ export const UPCOMING_BOOKING_STATUSES = ["CONFIRMED", "PENDING", "PENDING_APPROVAL", "WAITING_LIST", "CREATED"];
9
+
10
+ /** Count the loaded bookings that are still upcoming. Applied to the response even though
11
+ * the query already filters: a server (or a fixture) that returns a cancelled or past row
12
+ * must not turn it into an appointment the owner is told to expect. */
13
+ export function upcomingBookingCount(bookings: WixBooking[], now: number): number {
14
+ return bookings.filter((booking) => {
15
+ if (!UPCOMING_BOOKING_STATUSES.includes((booking.status ?? "").toUpperCase())) return false;
16
+ const start = booking.startDate || booking.bookedEntity?.slot?.startDate;
17
+ const ms = start ? new Date(start).getTime() : NaN;
18
+ return Number.isFinite(ms) && ms >= now;
19
+ }).length;
20
+ }
@@ -1,6 +1,12 @@
1
1
  import { copyParam } from "./himi-copy.js";
2
2
 
3
- /** Host-owned preview input. Absent on native and older hosts. */
3
+ /** Host-owned preview input. Absent on native and older hosts.
4
+ *
5
+ * `"sample"` — the built-in demo records; `"live"` — the viewer's own business over the
6
+ * owner rung; `"fixtures"` — a DEV web host over a sealed hermetic gateway, where
7
+ * the dev fixtures are the sample data. `"fixtures"` is neither live nor demo, so a
8
+ * worker READS through the bridge as it does on a device; it is still a preview host
9
+ * (`isOwnerPreviewHost`), so failure copy may name the web preview. */
4
10
  function ownerPreviewMode(): unknown {
5
11
  return (globalThis as unknown as { himalaya?: { input?: Record<string, unknown> } }).himalaya?.input?.__himiOwnerPreview;
6
12
  }
@@ -27,6 +27,8 @@
27
27
  import { defineService } from "@himalaya/state";
28
28
  import { open } from "@himalaya/open-url";
29
29
  import { writeText } from "@himalaya/clipboard";
30
+ import { capturePhoto } from "@himalaya/camera";
31
+ import { put } from "@himalaya/presigned-upload";
30
32
  import { alert } from "@himalaya/ui";
31
33
  import {
32
34
  activeSiteId,
@@ -36,7 +38,7 @@ import {
36
38
  type AriaPromptChip,
37
39
  } from "../_shared/aria-chat.js";
38
40
  import { WIDGET_SUBTREE_SLOT } from "../_shared/aria-generic-widget.js";
39
- import { copyParam, stashCopy } from "../_shared/himi-copy.js";
41
+ import { copyParam, copyTemplate, stashCopy } from "../_shared/himi-copy.js";
40
42
  import { OWNER_MODULES, ownerModuleIds, ownerModuleScreen } from "../_shared/owner-modules.js";
41
43
 
42
44
  const SERVICE = "himiOwnerLiteAria";
@@ -199,6 +201,14 @@ const core = createAriaChat({
199
201
  // English. Says no "sign in": the owner already is, and the missing piece is
200
202
  // the app's binding, so there is no action for them to take.
201
203
  unavailable: () => copyParam("ownerAria.unavailable", "Aria can't reach your Wix account from here."),
204
+ attachUploading: () => copyParam("ownerAria.attach.uploading", "Uploading…"),
205
+ attachFailed: () => copyParam("ownerAria.attach.failed", "Couldn't upload"),
206
+ attachTooMany: (max) => copyTemplate("ownerAria.attach.tooMany", "You can attach up to {max} photos.", { max }),
207
+ attachUnsupported: () => copyParam("ownerAria.attach.unsupported", "That file type can't be attached."),
208
+ attachTooLarge: (mb) => copyTemplate("ownerAria.attach.tooLarge", "That photo is too large to attach (up to {mb} MB).", { mb }),
209
+ attachWaitUploading: () => copyParam("ownerAria.attach.waitUploading", "Wait for your photo to finish uploading."),
210
+ attachWaitFailed: () => copyParam("ownerAria.attach.waitFailed", "Retry or remove the photo that didn't upload."),
211
+ attachNeedsText: () => copyParam("ownerAria.attach.needsText", "Add a message to send with your photo."),
202
212
  toolFailed: () => copyParam("ownerAria.toolFailed", "Aria couldn't finish that. Try again."),
203
213
  },
204
214
  clientTools: { confirm: confirmWithOwner, userAgent },
@@ -221,6 +231,25 @@ const core = createAriaChat({
221
231
  return screenId ? { screenId } : null;
222
232
  },
223
233
  poll: { action: `${SERVICE}.tick`, fastMs: FAST_MS, idleMs: IDLE_MS },
234
+ // Photo attachments. The two device capabilities live HERE rather than
235
+ // in the shared core so that only a screen which declares them imports them:
236
+ // `camera` for the picker (it returns the image already re-encoded as JPEG and
237
+ // scaled to 2048 px on its longest side, which is also what keeps a phone
238
+ // photo inside the inline upload bound) and `presigned_upload` for the bytes,
239
+ // which go to a self-authorizing url with no Wix credential attached.
240
+ attachments: {
241
+ pick: async (source) => {
242
+ const asset = await capturePhoto({ source, maxEdgePixels: 2048 });
243
+ return asset ? { dataUri: asset.uri, mimeType: asset.mime } : null;
244
+ },
245
+ put: async (url, base64, contentType) => {
246
+ const r = await put(url, { base64 }, { contentType, method: "PUT" });
247
+ return { ok: r.ok, status: r.status };
248
+ },
249
+ // A NEW action on the service, not a return value: the upload outlives the
250
+ // `attach` that started it. `svc` is read at call time, long after it exists.
251
+ settled: (outcome) => { void svc.attachmentSettled(outcome); },
252
+ },
224
253
  });
225
254
 
226
255
  const svc = defineService<AriaChatState, {
@@ -252,6 +281,10 @@ const svc = defineService<AriaChatState, {
252
281
  widgetPick: (s: AriaChatState, arg?: AriaActionArg) => AriaChatState;
253
282
  widgetQuery: (s: AriaChatState, arg?: AriaActionArg) => AriaChatState;
254
283
  widgetAnswer: (s: AriaChatState, arg?: AriaActionArg) => AriaChatState;
284
+ attach: (s: AriaChatState, arg?: AriaActionArg) => Promise<AriaChatState>;
285
+ attachmentSettled: (s: AriaChatState, arg?: AriaActionArg) => AriaChatState;
286
+ removeAttachment: (s: AriaChatState, arg?: AriaActionArg) => AriaChatState;
287
+ retryAttachment: (s: AriaChatState, arg?: AriaActionArg) => AriaChatState;
255
288
  }>(SERVICE, {
256
289
  state: core.initialState,
257
290
  actions: {
@@ -288,6 +321,12 @@ const svc = defineService<AriaChatState, {
288
321
  widgetPick: core.widgetPick,
289
322
  widgetQuery: core.widgetQuery,
290
323
  widgetAnswer: core.widgetAnswer,
324
+ // The composer's photos. `attachmentSettled` is dispatched by the upload
325
+ // itself (see `attachments.settled` above), never by the descriptor.
326
+ attach: core.attach,
327
+ attachmentSettled: core.attachmentSettled,
328
+ removeAttachment: core.removeAttachment,
329
+ retryAttachment: core.retryAttachment,
291
330
  },
292
331
  });
293
332
 
@@ -8,7 +8,8 @@ import { queryPosts } from "@himalaya/wix-blog";
8
8
  import { queryEvents, startDateOf, type WixEvent } from "../_shared/himi-events.js";
9
9
  import { countSites } from "@himalaya/wix-site-list";
10
10
  import { searchOrders, type WixOrder } from "@himalaya/wix-ecom";
11
- import { queryBookings, type WixBooking } from "@himalaya/wix-bookings";
11
+ import { queryBookings } from "@himalaya/wix-bookings";
12
+ import { UPCOMING_BOOKING_STATUSES, upcomingBookingCount } from "../_shared/owner-bookings.js";
12
13
  import { queryMembers } from "@himalaya/wix-members";
13
14
  import { queryReviews } from "@himalaya/wix-reviews";
14
15
  import { queryReservations } from "@himalaya/wix-table-reservations";
@@ -88,7 +89,6 @@ const PAGE = 100;
88
89
  const TODAY_PAGE = 50;
89
90
  const EVENT_SCAN_MAX_PAGES = 5;
90
91
  const EVENT_SCAN_MAX_RECORDS = 500;
91
- const UPCOMING_BOOKING_STATUSES = ["CONFIRMED", "PENDING", "PENDING_APPROVAL", "WAITING_LIST", "CREATED"];
92
92
  const UPCOMING_RESERVATION_STATUSES = ["HELD", "RESERVED", "REQUESTED"];
93
93
  const UPCOMING_EVENT_STATUSES = ["UPCOMING", "SCHEDULED"];
94
94
  const ATTENTION_MEMBER_STATUSES = ["PENDING"];
@@ -314,16 +314,6 @@ async function measuredRevenue7d(
314
314
  }
315
315
  }
316
316
 
317
- function upcomingBookingCount(bookings: WixBooking[], now: number): number {
318
- const valid = ["CONFIRMED", "PENDING", "PENDING_APPROVAL", "WAITING_LIST", "CREATED"];
319
- return bookings.filter((booking) => {
320
- if (!valid.includes((booking.status ?? "").toUpperCase())) return false;
321
- const start = booking.startDate || booking.bookedEntity?.slot?.startDate;
322
- const ms = start ? new Date(start).getTime() : NaN;
323
- return Number.isFinite(ms) && ms >= now;
324
- }).length;
325
- }
326
-
327
317
  function enabledSourcesFrom(value: unknown): HomeSourceId[] | undefined {
328
318
  if (!value || typeof value !== "object" || Array.isArray(value)) return undefined;
329
319
  const holder = value as Record<string, unknown>;
@@ -7,7 +7,8 @@ import { defineService, navigate } from '@himalaya/state';
7
7
  import { open } from '@himalaya/open-url';
8
8
  import { queryStoreProducts } from '../_shared/himi-store.js';
9
9
  import { searchOrders } from '@himalaya/wix-ecom';
10
- import { queryBookings, queryServices } from '@himalaya/wix-bookings';
10
+ import { queryBookings, queryServices, type WixBooking } from '@himalaya/wix-bookings';
11
+ import { UPCOMING_BOOKING_STATUSES, upcomingBookingCount } from '../_shared/owner-bookings.js';
11
12
  import { queryEvents, startDateOf } from '../_shared/himi-events.js';
12
13
  import { queryPosts, queryDraftPosts } from '@himalaya/wix-blog';
13
14
  import { queryQuestionEntries } from '@himalaya/wix-faq';
@@ -90,9 +91,14 @@ async function metricFor(metricKey: string): Promise<Metric> {
90
91
  return partialCount(response, 'services');
91
92
  }
92
93
  case 'appointments': {
93
- const now = new Date().toISOString();
94
- const response = await queryBookings({ query: { filter: { startDate: { $gte: now }, status: { $nin: ['CANCELED', 'DECLINED'] } }, paging: { limit: PAGE, offset: 0 } } });
95
- const metric = partialCount(response, 'bookings');
94
+ // Same question, same count as Home's "Upcoming appointments" (_shared/owner-bookings).
95
+ const nowMs = Date.now();
96
+ const response = await queryBookings({ query: { filter: { startDate: { $gte: new Date(nowMs).toISOString() }, status: { $in: UPCOMING_BOOKING_STATUSES } }, paging: { limit: PAGE, offset: 0 } } });
97
+ const page = partialCount(response, 'bookings');
98
+ const loaded = rows(response, 'bookings');
99
+ // Counted from the loaded page, so it is partial ("+") whenever the server holds more
100
+ // than that page — by its total, its cursor, or a full page — exactly as Home marks it.
101
+ const metric = { count: upcomingBookingCount(loaded as WixBooking[], nowMs), hasMore: page.hasMore || page.count > loaded.length || loaded.length >= PAGE };
96
102
  return { ...metric, statusText: metric.count
97
103
  ? copyTemplate('ownerManage.appointmentsUpcoming', '{count} upcoming', { count: metric.count })
98
104
  : copyParam('ownerManage.appointmentsClear', 'No upcoming appointments') };
@@ -1,6 +1,12 @@
1
1
  import { copyParam } from "./himi-copy.js";
2
2
 
3
- /** Host-owned preview input. Absent on native and older hosts. */
3
+ /** Host-owned preview input. Absent on native and older hosts.
4
+ *
5
+ * `"sample"` — the built-in demo records; `"live"` — the viewer's own business over the
6
+ * owner rung; `"fixtures"` — a DEV web host over a sealed hermetic gateway, where
7
+ * the dev fixtures are the sample data. `"fixtures"` is neither live nor demo, so a
8
+ * worker READS through the bridge as it does on a device; it is still a preview host
9
+ * (`isOwnerPreviewHost`), so failure copy may name the web preview. */
4
10
  function ownerPreviewMode(): unknown {
5
11
  return (globalThis as unknown as { himalaya?: { input?: Record<string, unknown> } }).himalaya?.input?.__himiOwnerPreview;
6
12
  }
@@ -37,7 +37,7 @@ export default defineApp({
37
37
  actions: "http://localhost:8190/v1/actions",
38
38
  sync: "http://localhost:8190/v1/sync",
39
39
  },
40
- capabilities: ["live_activity","push","share","secure_storage","open_url","local_database","clipboard","ui"],
40
+ capabilities: ["live_activity","push","share","secure_storage","open_url","local_database","clipboard","ui","camera","presigned_upload"],
41
41
  designTokensPath: "./tokens.json",
42
42
  navigation: {
43
43
  "navKind": "responsive",
@@ -50019,7 +50019,7 @@ const SCREENS = runtimeSetting({
50019
50019
  "itemsPath": "$service:himiOwnerLiteManage.recents",
50020
50020
  "items": [
50021
50021
  {
50022
- "id": "",
50022
+ "id": "himi_owner_lite.manage.recent.$item.id",
50023
50023
  "body": {
50024
50024
  "package": "himalaya",
50025
50025
  "type": "VStack",
@@ -50164,7 +50164,7 @@ const SCREENS = runtimeSetting({
50164
50164
  "spacing": 14,
50165
50165
  "children": [
50166
50166
  {
50167
- "id": "",
50167
+ "id": "himi_owner_lite.manage.recent.create.$item.id",
50168
50168
  "body": {
50169
50169
  "package": "himalaya",
50170
50170
  "type": "Text",
@@ -50189,7 +50189,7 @@ const SCREENS = runtimeSetting({
50189
50189
  }
50190
50190
  },
50191
50191
  {
50192
- "id": "",
50192
+ "id": "himi_owner_lite.manage.recent.handoff.$item.id",
50193
50193
  "body": {
50194
50194
  "package": "himalaya",
50195
50195
  "type": "Text",
@@ -50325,7 +50325,7 @@ const SCREENS = runtimeSetting({
50325
50325
  "itemsPath": "$item.areas",
50326
50326
  "items": [
50327
50327
  {
50328
- "id": "",
50328
+ "id": "himi_owner_lite.manage.area.$item.id",
50329
50329
  "body": {
50330
50330
  "package": "himalaya",
50331
50331
  "type": "VStack",
@@ -50470,7 +50470,7 @@ const SCREENS = runtimeSetting({
50470
50470
  "spacing": 14,
50471
50471
  "children": [
50472
50472
  {
50473
- "id": "",
50473
+ "id": "himi_owner_lite.manage.area.create.$item.id",
50474
50474
  "body": {
50475
50475
  "package": "himalaya",
50476
50476
  "type": "Text",
@@ -50495,7 +50495,7 @@ const SCREENS = runtimeSetting({
50495
50495
  }
50496
50496
  },
50497
50497
  {
50498
- "id": "",
50498
+ "id": "himi_owner_lite.manage.area.handoff.$item.id",
50499
50499
  "body": {
50500
50500
  "package": "himalaya",
50501
50501
  "type": "Text",
@@ -51275,7 +51275,7 @@ const SCREENS = runtimeSetting({
51275
51275
  "props": {
51276
51276
  "items": [
51277
51277
  {
51278
- "id": "",
51278
+ "id": "ol_drawer_nav.$item.id",
51279
51279
  "body": {
51280
51280
  "package": "himalaya",
51281
51281
  "type": "ListItem",
@@ -51327,7 +51327,7 @@ const SCREENS = runtimeSetting({
51327
51327
  "props": {
51328
51328
  "items": [
51329
51329
  {
51330
- "id": "",
51330
+ "id": "ol_drawer_attention.$item.id",
51331
51331
  "body": {
51332
51332
  "package": "himalaya",
51333
51333
  "type": "ListItem",
@@ -54888,6 +54888,45 @@ const SCREENS = runtimeSetting({
54888
54888
  }
54889
54889
  }
54890
54890
  },
54891
+ {
54892
+ "id": "himi_owner_lite_aria.msg_attach_$item.id",
54893
+ "body": {
54894
+ "package": "himalaya",
54895
+ "type": "HStack",
54896
+ "props": {
54897
+ "spacing": 0,
54898
+ "children": [
54899
+ {
54900
+ "id": "",
54901
+ "body": {
54902
+ "package": "himalaya",
54903
+ "type": "Spacer",
54904
+ "props": {}
54905
+ },
54906
+ "modifiers": {
54907
+ "hiddenPath": "$item.notUser"
54908
+ }
54909
+ },
54910
+ {
54911
+ "id": "",
54912
+ "body": {
54913
+ "package": "himalaya",
54914
+ "type": "Text",
54915
+ "props": {
54916
+ "text": "$item.attachText",
54917
+ "style": "footnote",
54918
+ "color": "textSecondary",
54919
+ "maxLines": 3
54920
+ }
54921
+ }
54922
+ }
54923
+ ]
54924
+ }
54925
+ },
54926
+ "modifiers": {
54927
+ "hiddenPath": "$item.attachHidden"
54928
+ }
54929
+ },
54891
54930
  {
54892
54931
  "id": "himi_owner_lite_aria.msg_$item.id.link1",
54893
54932
  "body": {
@@ -58468,6 +58507,203 @@ const SCREENS = runtimeSetting({
58468
58507
  }
58469
58508
  }
58470
58509
  },
58510
+ {
58511
+ "id": "himi_owner_lite_aria.attachments.bound",
58512
+ "body": {
58513
+ "package": "himalaya",
58514
+ "type": "LazyList",
58515
+ "props": {
58516
+ "itemsPath": "$service:himiOwnerLiteAria.attachments",
58517
+ "horizontal": true,
58518
+ "spacing": 8,
58519
+ "items": [
58520
+ {
58521
+ "id": "himi_owner_lite_aria.attachment_$item.id",
58522
+ "body": {
58523
+ "package": "himalaya",
58524
+ "type": "VStack",
58525
+ "props": {
58526
+ "spacing": 4,
58527
+ "children": [
58528
+ {
58529
+ "id": "himi_owner_lite_aria.attachment_thumb_$item.id",
58530
+ "body": {
58531
+ "package": "himalaya",
58532
+ "type": "Image",
58533
+ "props": {
58534
+ "url": "$item.thumbUrl",
58535
+ "width": 72,
58536
+ "height": 72,
58537
+ "contentMode": "fill",
58538
+ "shape": "rounded",
58539
+ "contentDescription": "$item.name"
58540
+ }
58541
+ },
58542
+ "modifiers": {
58543
+ "hiddenPath": "$item.thumbHidden"
58544
+ }
58545
+ },
58546
+ {
58547
+ "id": "",
58548
+ "body": {
58549
+ "package": "himalaya",
58550
+ "type": "Text",
58551
+ "props": {
58552
+ "text": "$item.statusText",
58553
+ "style": "caption",
58554
+ "color": "textSecondary",
58555
+ "maxLines": 2
58556
+ }
58557
+ },
58558
+ "modifiers": {
58559
+ "hiddenPath": "$item.statusHidden"
58560
+ }
58561
+ },
58562
+ {
58563
+ "id": "",
58564
+ "body": {
58565
+ "package": "himalaya",
58566
+ "type": "HStack",
58567
+ "props": {
58568
+ "spacing": 8,
58569
+ "children": [
58570
+ {
58571
+ "id": "himi_owner_lite_aria.attachment_retry_$item.id",
58572
+ "body": {
58573
+ "package": "himalaya",
58574
+ "type": "Text",
58575
+ "props": {
58576
+ "text": "Retry",
58577
+ "style": "caption",
58578
+ "color": "accentPrimary",
58579
+ "maxLines": 1
58580
+ }
58581
+ },
58582
+ "modifiers": {
58583
+ "onTap": {
58584
+ "actionId": "tier5.himiOwnerLiteAria.retryAttachment",
58585
+ "params": {
58586
+ "id": "$item.id"
58587
+ }
58588
+ },
58589
+ "hiddenPath": "$item.retryHidden"
58590
+ }
58591
+ },
58592
+ {
58593
+ "id": "himi_owner_lite_aria.attachment_remove_$item.id",
58594
+ "body": {
58595
+ "package": "himalaya",
58596
+ "type": "Icon",
58597
+ "props": {
58598
+ "name": "close",
58599
+ "size": 14,
58600
+ "tint": "textSecondary"
58601
+ }
58602
+ },
58603
+ "modifiers": {
58604
+ "onTap": {
58605
+ "actionId": "tier5.himiOwnerLiteAria.removeAttachment",
58606
+ "params": {
58607
+ "id": "$item.id"
58608
+ }
58609
+ },
58610
+ "accessibilityLabel": "Remove photo"
58611
+ }
58612
+ }
58613
+ ]
58614
+ }
58615
+ }
58616
+ }
58617
+ ]
58618
+ }
58619
+ },
58620
+ "modifiers": {
58621
+ "width": 72
58622
+ }
58623
+ }
58624
+ ]
58625
+ }
58626
+ },
58627
+ "modifiers": {
58628
+ "hiddenPath": "$service:himiOwnerLiteAria.attachmentsHidden",
58629
+ "padding": {
58630
+ "leading": 0,
58631
+ "trailing": 0,
58632
+ "top": 8,
58633
+ "bottom": 0
58634
+ }
58635
+ }
58636
+ },
58637
+ {
58638
+ "id": "",
58639
+ "body": {
58640
+ "package": "himalaya",
58641
+ "type": "HStack",
58642
+ "props": {
58643
+ "spacing": 16,
58644
+ "children": [
58645
+ {
58646
+ "id": "himi_owner_lite_aria.attach.library",
58647
+ "body": {
58648
+ "package": "himalaya",
58649
+ "type": "Icon",
58650
+ "props": {
58651
+ "name": "image",
58652
+ "size": 22,
58653
+ "tint": "accentPrimary"
58654
+ }
58655
+ },
58656
+ "modifiers": {
58657
+ "onTap": {
58658
+ "actionId": "tier5.himiOwnerLiteAria.attach",
58659
+ "params": {
58660
+ "source": "library"
58661
+ }
58662
+ },
58663
+ "accessibilityLabel": "Add a photo"
58664
+ }
58665
+ },
58666
+ {
58667
+ "id": "himi_owner_lite_aria.attach.camera",
58668
+ "body": {
58669
+ "package": "himalaya",
58670
+ "type": "Icon",
58671
+ "props": {
58672
+ "name": "camera",
58673
+ "size": 22,
58674
+ "tint": "accentPrimary"
58675
+ }
58676
+ },
58677
+ "modifiers": {
58678
+ "onTap": {
58679
+ "actionId": "tier5.himiOwnerLiteAria.attach",
58680
+ "params": {
58681
+ "source": "camera"
58682
+ }
58683
+ },
58684
+ "accessibilityLabel": "Take a photo"
58685
+ }
58686
+ },
58687
+ {
58688
+ "id": "",
58689
+ "body": {
58690
+ "package": "himalaya",
58691
+ "type": "Spacer",
58692
+ "props": {}
58693
+ }
58694
+ }
58695
+ ]
58696
+ }
58697
+ },
58698
+ "modifiers": {
58699
+ "padding": {
58700
+ "leading": 0,
58701
+ "trailing": 0,
58702
+ "top": 8,
58703
+ "bottom": 0
58704
+ }
58705
+ }
58706
+ },
58471
58707
  {
58472
58708
  "id": "form_aria",
58473
58709
  "body": {
@@ -58553,7 +58789,9 @@ const SCREENS = runtimeSetting({
58553
58789
  "wix_api",
58554
58790
  "open_url",
58555
58791
  "clipboard",
58556
- "ui"
58792
+ "ui",
58793
+ "camera",
58794
+ "presigned_upload"
58557
58795
  ],
58558
58796
  "minBinaryVersion": "0.1.0",
58559
58797
  "bundleVersion": "0.0.1"