@wix/himalaya-cli 0.1786.0 → 0.1787.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 (66) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/builder.d.ts +6 -0
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +8 -0
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/validator.d.ts +18 -0
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +11 -0
  5. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdui.mjs +11 -0
  6. package/dist/cli.mjs +920 -738
  7. package/guides/app-config.md +30 -0
  8. package/guides/component-reference.json +1 -1
  9. package/guides/component-reference.md +8 -0
  10. package/guides/himi-json-output.md +2 -0
  11. package/guides/push-cli-onboarding.md +18 -0
  12. package/guides/qa-builds.md +22 -9
  13. package/package.json +2 -2
  14. package/templates/beauty-salon/tokens.json +2 -1
  15. package/templates/branded-lite/dev/index.ts +1719 -452
  16. package/templates/branded-lite/l10n/ar.json +36 -16
  17. package/templates/branded-lite/l10n/cs.json +36 -16
  18. package/templates/branded-lite/l10n/da.json +36 -16
  19. package/templates/branded-lite/l10n/de.json +36 -16
  20. package/templates/branded-lite/l10n/el.json +36 -16
  21. package/templates/branded-lite/l10n/en.json +42 -12
  22. package/templates/branded-lite/l10n/es.json +36 -16
  23. package/templates/branded-lite/l10n/fi.json +36 -16
  24. package/templates/branded-lite/l10n/fr.json +36 -16
  25. package/templates/branded-lite/l10n/he.json +30 -13
  26. package/templates/branded-lite/l10n/hu.json +36 -16
  27. package/templates/branded-lite/l10n/id.json +36 -16
  28. package/templates/branded-lite/l10n/it.json +36 -16
  29. package/templates/branded-lite/l10n/ja.json +36 -16
  30. package/templates/branded-lite/l10n/ko.json +36 -16
  31. package/templates/branded-lite/l10n/lt.json +36 -16
  32. package/templates/branded-lite/l10n/nl.json +36 -16
  33. package/templates/branded-lite/l10n/no.json +36 -16
  34. package/templates/branded-lite/l10n/pl.json +36 -16
  35. package/templates/branded-lite/l10n/pt.json +36 -16
  36. package/templates/branded-lite/l10n/ru.json +36 -16
  37. package/templates/branded-lite/l10n/sv.json +36 -16
  38. package/templates/branded-lite/l10n/th.json +36 -16
  39. package/templates/branded-lite/l10n/tr.json +36 -16
  40. package/templates/branded-lite/l10n/uk.json +36 -16
  41. package/templates/branded-lite/l10n/vi.json +36 -16
  42. package/templates/branded-lite/l10n/zh.json +36 -16
  43. package/templates/branded-lite/tier5-src/_shared/inbox-rooms.ts +10 -5
  44. package/templates/branded-lite/tier5-src/_shared/inbox-search.ts +1 -1
  45. package/templates/branded-lite/tier5-src/himi-branded-lite-inbox/index.ts +1 -1
  46. package/templates/branded-lite/tokens.json +3 -2
  47. package/templates/brandy/dev/member-screens.ts +7546 -5432
  48. package/templates/brandy/tier5-src/_shared/inbox-rooms.ts +10 -5
  49. package/templates/brandy/tier5-src/_shared/inbox-search.ts +1 -1
  50. package/templates/brandy/tier5-src/himi-branded-lite-inbox/index.ts +1 -1
  51. package/templates/brandy/tokens.json +5 -0
  52. package/templates/community-club/tokens.json +2 -1
  53. package/templates/conference/tier5-src/_shared/inbox-rooms.ts +10 -5
  54. package/templates/events-meetups/tokens.json +2 -1
  55. package/templates/fitness-gym/tier5-src/_shared/inbox-rooms.ts +10 -5
  56. package/templates/gym-fitness/tokens.json +2 -1
  57. package/templates/medical-services/tier5-src/_shared/inbox-rooms.ts +10 -5
  58. package/templates/nonprofit-cause/tokens.json +2 -1
  59. package/templates/personal-fitness-trainer/tier5-src/_shared/inbox-rooms.ts +10 -5
  60. package/templates/podcast-creator/tokens.json +2 -1
  61. package/templates/portfolio-creative/tokens.json +2 -1
  62. package/templates/restaurant/tokens.json +2 -1
  63. package/templates/retail-store/tokens.json +2 -1
  64. package/templates/salon-spa/tier5-src/_shared/inbox-rooms.ts +10 -5
  65. package/templates/wholesale-store/tier5-src/_shared/inbox-rooms.ts +10 -5
  66. package/templates/yoga-studio/tokens.json +2 -1
@@ -66,6 +66,12 @@ export interface ScreenDescriptor {
66
66
  /** A `$service:` token: each new non-empty value scrolls the screen back to the top. Mirror of
67
67
  * ScreenDescriptor.scroll_to_top_path in core.proto. */
68
68
  scrollToTopPath?: string;
69
+ /** RFC 0041 — this screen's orientations per device family, narrowed to the envelope while it is the
70
+ * visible top screen. Mirror of ScreenDescriptor.orientation in core.proto. */
71
+ orientation?: {
72
+ phone?: string[];
73
+ tablet?: string[];
74
+ };
69
75
  }
70
76
  /** Tier 3/4 + embeddable WebView behavior. Mirror of WebViewConfig in core.proto
71
77
  * (RFC 0038). All fields optional; zero values reproduce legacy behavior. */
@@ -3910,6 +3910,14 @@ export interface ScreenDescriptor {
3910
3910
  * by writing a new value (a counter, "x|3"). The scroll is not the reader's: a LazyList
3911
3911
  * `onTopItemChange` or Agenda `onVisibleDateChange` in the screen does not report it. */
3912
3912
  scrollToTopPath?: string;
3913
+ /** RFC 0041 (orientation amendment) — this screen's orientations, per device family. While the screen
3914
+ * is the visible top screen (pushed, a tab root, or the content of a sheet / full-screen cover) the
3915
+ * effective set is this value intersected with the binary's envelope (config.ts
3916
+ * `orientationEnvelope`), in place of `NavigationConfig.orientation`; when it leaves, the app's set
3917
+ * applies again and the device rotates back into it. It can never widen the envelope, and a family
3918
+ * whose intersection is empty falls back to the app's set. A game player that may rotate to
3919
+ * landscape while the rest of the app stays portrait. Absent ⇒ the app's set. */
3920
+ orientation?: OrientationConfig;
3913
3921
  etag?: string;
3914
3922
  cacheControl?: CacheControl;
3915
3923
  telemetryScreenName?: string;
@@ -161,6 +161,24 @@ export declare const screenDescriptorSchema: {
161
161
  readonly type: "string";
162
162
  readonly pattern: "^$|^\\$service:";
163
163
  };
164
+ readonly orientation: {
165
+ readonly type: "object";
166
+ readonly additionalProperties: false;
167
+ readonly properties: {
168
+ readonly phone: {
169
+ readonly type: "array";
170
+ readonly items: {
171
+ readonly type: "string";
172
+ };
173
+ };
174
+ readonly tablet: {
175
+ readonly type: "array";
176
+ readonly items: {
177
+ readonly type: "string";
178
+ };
179
+ };
180
+ };
181
+ };
164
182
  readonly logicBundle: {
165
183
  readonly type: "object";
166
184
  readonly additionalProperties: false;
@@ -9051,6 +9051,17 @@ var screenDescriptorSchema = {
9051
9051
  // A `$service:` token: each new non-empty value scrolls the screen back to the top. A literal never changes,
9052
9052
  // so it could never fire: the path must be a binding (or empty, which is unset), as transcriptScroll.anchorPath.
9053
9053
  scrollToTopPath: { type: "string", pattern: "^$|^\\$service:" },
9054
+ // RFC 0041 (orientation amendment) — per-screen orientations, the shape of NavigationConfig.orientation.
9055
+ // Free strings like every orientation name (an unknown one drops out of the intersection on device,
9056
+ // invariant 6); `himi validate` warns on a name outside the app's envelope (validateScreenOrientation).
9057
+ orientation: {
9058
+ type: "object",
9059
+ additionalProperties: false,
9060
+ properties: {
9061
+ phone: { type: "array", items: { type: "string" } },
9062
+ tablet: { type: "array", items: { type: "string" } }
9063
+ }
9064
+ },
9054
9065
  // RFC 0002 — Tier-5 worker bundle reference (LogicBundleRef). Without this in
9055
9066
  // the schema, `additionalProperties:false` rejected EVERY T5 descriptor, so the
9056
9067
  // admin's pre-push validation 400'd any edit of a T5 screen.
@@ -7063,6 +7063,17 @@ var screenDescriptorSchema = {
7063
7063
  // A `$service:` token: each new non-empty value scrolls the screen back to the top. A literal never changes,
7064
7064
  // so it could never fire: the path must be a binding (or empty, which is unset), as transcriptScroll.anchorPath.
7065
7065
  scrollToTopPath: { type: "string", pattern: "^$|^\\$service:" },
7066
+ // RFC 0041 (orientation amendment) — per-screen orientations, the shape of NavigationConfig.orientation.
7067
+ // Free strings like every orientation name (an unknown one drops out of the intersection on device,
7068
+ // invariant 6); `himi validate` warns on a name outside the app's envelope (validateScreenOrientation).
7069
+ orientation: {
7070
+ type: "object",
7071
+ additionalProperties: false,
7072
+ properties: {
7073
+ phone: { type: "array", items: { type: "string" } },
7074
+ tablet: { type: "array", items: { type: "string" } }
7075
+ }
7076
+ },
7066
7077
  // RFC 0002 — Tier-5 worker bundle reference (LogicBundleRef). Without this in
7067
7078
  // the schema, `additionalProperties:false` rejected EVERY T5 descriptor, so the
7068
7079
  // admin's pre-push validation 400'd any edit of a T5 screen.