@wix/himalaya-cli 0.1185.0 → 0.1187.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 (67) 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 +2 -0
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/sdk-types/src/capabilities.generated.d.ts +3 -0
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/define-app.d.ts +8 -0
  5. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdui.mjs +1 -0
  6. package/dist/cli.mjs +1411 -685
  7. package/dist/preview-assets.generated.bin +0 -0
  8. package/guides/app-config.md +11 -1
  9. package/guides/capabilities.md +118 -0
  10. package/guides/index.json +7 -1
  11. package/package.json +2 -2
  12. package/templates/beauty-salon/config.ts +1 -1
  13. package/templates/beauty-salon/dev/index.ts +6 -3
  14. package/templates/beauty-salon/himalaya.content.json +2 -1
  15. package/templates/beauty-salon-owner/dev/index.ts +2 -1
  16. package/templates/beauty-salon-owner/himalaya.content.json +2 -1
  17. package/templates/branded-lite/config.ts +1 -1
  18. package/templates/branded-lite/dev/index.ts +10 -5
  19. package/templates/branded-lite/himalaya.content.json +2 -1
  20. package/templates/brandy/himalaya.content.json +2 -1
  21. package/templates/community-club/config.ts +1 -1
  22. package/templates/community-club/dev/index.ts +2 -1
  23. package/templates/community-club/himalaya.content.json +2 -1
  24. package/templates/community-club-owner/dev/index.ts +2 -1
  25. package/templates/community-club-owner/himalaya.content.json +2 -1
  26. package/templates/events-meetups/config.ts +1 -1
  27. package/templates/events-meetups/dev/index.ts +2 -1
  28. package/templates/events-meetups/himalaya.content.json +2 -1
  29. package/templates/events-meetups-owner/dev/index.ts +2 -1
  30. package/templates/events-meetups-owner/himalaya.content.json +2 -1
  31. package/templates/gym-fitness/config.ts +1 -1
  32. package/templates/gym-fitness/dev/index.ts +8 -4
  33. package/templates/gym-fitness/himalaya.content.json +2 -1
  34. package/templates/gym-fitness-owner/dev/index.ts +2 -1
  35. package/templates/gym-fitness-owner/himalaya.content.json +2 -1
  36. package/templates/nonprofit-cause/config.ts +1 -1
  37. package/templates/nonprofit-cause/dev/index.ts +4 -2
  38. package/templates/nonprofit-cause/himalaya.content.json +2 -1
  39. package/templates/nonprofit-cause-owner/dev/index.ts +2 -1
  40. package/templates/nonprofit-cause-owner/himalaya.content.json +2 -1
  41. package/templates/owner-lite/dev/index.ts +2 -1
  42. package/templates/owner-lite/himalaya.content.json +2 -1
  43. package/templates/podcast-creator/config.ts +1 -1
  44. package/templates/podcast-creator/dev/index.ts +4 -2
  45. package/templates/podcast-creator/himalaya.content.json +2 -1
  46. package/templates/podcast-creator-owner/dev/index.ts +2 -1
  47. package/templates/podcast-creator-owner/himalaya.content.json +2 -1
  48. package/templates/portfolio-creative/config.ts +1 -1
  49. package/templates/portfolio-creative/dev/index.ts +4 -2
  50. package/templates/portfolio-creative/himalaya.content.json +2 -1
  51. package/templates/portfolio-creative-owner/dev/index.ts +2 -1
  52. package/templates/portfolio-creative-owner/himalaya.content.json +2 -1
  53. package/templates/restaurant/config.ts +1 -1
  54. package/templates/restaurant/dev/index.ts +2 -1
  55. package/templates/restaurant/himalaya.content.json +2 -1
  56. package/templates/restaurant-owner/dev/index.ts +2 -1
  57. package/templates/restaurant-owner/himalaya.content.json +2 -1
  58. package/templates/retail-store/config.ts +1 -1
  59. package/templates/retail-store/dev/index.ts +2 -1
  60. package/templates/retail-store/himalaya.content.json +2 -1
  61. package/templates/retail-store-owner/dev/index.ts +2 -1
  62. package/templates/retail-store-owner/himalaya.content.json +2 -1
  63. package/templates/yoga-studio/config.ts +1 -1
  64. package/templates/yoga-studio/dev/index.ts +8 -4
  65. package/templates/yoga-studio/himalaya.content.json +2 -1
  66. package/templates/yoga-studio-owner/dev/index.ts +2 -1
  67. package/templates/yoga-studio-owner/himalaya.content.json +2 -1
@@ -72,6 +72,7 @@ export interface NavigationConfig {
72
72
  flagConfig: FlagConfig;
73
73
  push?: PushConfig;
74
74
  appLinkHosts?: string[];
75
+ permissionCopy?: Record<string, string>;
75
76
  control?: AppControl;
76
77
  useProdServe?: boolean;
77
78
  prodServeBaseUrl?: string;
@@ -188,6 +188,8 @@ export interface DerivedAppMeta {
188
188
  control?: import("@wix/himalaya/core").AppControl;
189
189
  /** Forwarded from AppConfig.appLinkHosts for the OTA app-config channel. */
190
190
  appLinkHosts?: string[];
191
+ /** Forwarded from AppConfig.permissionCopy — read by the dist contract (native usage strings). */
192
+ permissionCopy?: Record<string, string>;
191
193
  /** Forwarded from AppConfig.navigation.tabBar — RFC 0010 tab structure. */
192
194
  tabBar?: import("@wix/himalaya/core").TabBarConfig;
193
195
  /** Forwarded from AppConfig.navigation.drawer — RFC 0010 drawer structure. */
@@ -42,3 +42,6 @@ export declare const CAPABILITY_REGISTRY: {
42
42
  export type SdkCapability = "app_info" | "audio_record" | "base44" | "biometrics" | "browser_auth" | "calendar" | "calls" | "camera" | "clipboard" | "contacts" | "file_picker" | "files" | "godot" | "haptic" | "himi_apps" | "iap" | "keyboard" | "live_activity" | "local_database" | "location" | "media_playback" | "motion" | "on_device_ai" | "open_url" | "pdf" | "photos" | "presigned_upload" | "push" | "release_control" | "secure_storage" | "share" | "speaker_diarization" | "speech" | "system_intents" | "tasks" | "ui" | "wix_cashier";
43
43
  /** All `capability.<id>.<verb>` action ids, flattened (the worker-bridge wire vocabulary). */
44
44
  export declare const CAPABILITY_ACTION_IDS: readonly string[];
45
+ /** Capability id → the @himalaya/* package(s) a worker imports to reach it — every dispatch
46
+ * capability, plus bridge-backed ones whose binding builds or wraps its ids (wix_platform, webview). */
47
+ export declare const CAPABILITY_PACKAGES: Readonly<Record<string, readonly string[]>>;
@@ -225,6 +225,14 @@ export interface AppConfig {
225
225
  * omitted. Must satisfy `capabilities ⊆ capabilityEnvelope`.
226
226
  */
227
227
  capabilityEnvelope?: Capability[];
228
+ /**
229
+ * Per-capability permission prompt copy — the sentence the OS shows when the app asks for
230
+ * camera, location, photos, … (iOS usage strings). Served on app-config, so `himi dist` bakes
231
+ * it into an extensible shell's binary for the capabilities this app declares; a capability
232
+ * with no entry gets the catalog's generic sentence. App Review rejects vague copy, so say
233
+ * what THIS app does with it: `{ camera: "Scan a receipt to attach it to an expense." }`.
234
+ */
235
+ permissionCopy?: Partial<Record<Capability, string>>;
228
236
  /**
229
237
  * The ORIENTATION envelope — the widest set of interface orientations the
230
238
  * BINARY is built to permit, per device family (RFC 0041 orientation
@@ -9071,6 +9071,7 @@ function deriveAppMeta(name, m, platforms = {}, provisioning = {}) {
9071
9071
  ...provisioning.installedVerticals ? { installedVerticals: provisioning.installedVerticals } : {},
9072
9072
  control: config.control,
9073
9073
  appLinkHosts: config.appLinkHosts,
9074
+ permissionCopy: config.permissionCopy,
9074
9075
  tabBar: config.navigation?.tabBar,
9075
9076
  drawer: config.navigation?.drawer,
9076
9077
  navKind: config.navigation?.navKind,