@wix/himalaya-cli 0.1671.0 → 0.1673.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 (39) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/legacy-import/src/index.d.ts +16 -0
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/legacy-import.d.ts +21 -3
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +2 -2
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +14 -2
  5. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/legacy-import.mjs +32 -1
  6. package/dist/browser-plane/assets.json +5 -5
  7. package/dist/browser-plane/preview-deferred/{6eef5856f65113cbc7504d7f926fe7039c48f614b3b0daf20c0e6eea0315c923.bin → 0f5533bf4197dc43489701db18378cecdb02db230a0fc2603e764999544513da.bin} +1 -1
  8. package/dist/browser-plane/sw.js +6 -6
  9. package/dist/cli.mjs +240 -55
  10. package/dist/preview-assets.generated.bin +0 -0
  11. package/guides/android-ux.md +3 -1
  12. package/guides/component-reference.json +2 -2
  13. package/guides/component-reference.md +2 -2
  14. package/guides/designing-himi-screens.md +3 -1
  15. package/guides/ios-ux.md +6 -4
  16. package/guides/sdk-reference.json +15 -1
  17. package/guides/web-page-sdk-reference.md +1 -1
  18. package/package.json +2 -2
  19. package/templates/beauty-salon/l10n/en.json +1 -1
  20. package/templates/branded-lite/dev/index.ts +6607 -2231
  21. package/templates/branded-lite/l10n/en.json +25 -15
  22. package/templates/branded-lite/l10n/he.json +34 -34
  23. package/templates/branded-lite/tier5-src/_shared/himi-cms.ts +10 -3
  24. package/templates/branded-lite/tier5-src/himi-branded-lite-cms/index.ts +7 -0
  25. package/templates/branded-lite/tier5-src/himi-branded-lite-cms-collection/index.ts +527 -138
  26. package/templates/community-club/dev/index.ts +2459 -271
  27. package/templates/community-club/l10n/en.json +16 -11
  28. package/templates/community-club/l10n/he.json +38 -34
  29. package/templates/community-club/tier5-src/_shared/himi-cms.ts +10 -3
  30. package/templates/community-club/tier5-src/himi-branded-lite-cms/index.ts +7 -0
  31. package/templates/community-club/tier5-src/himi-branded-lite-cms-collection/index.ts +527 -138
  32. package/templates/events-meetups/l10n/en.json +1 -1
  33. package/templates/gym-fitness/l10n/en.json +1 -1
  34. package/templates/nonprofit-cause/l10n/en.json +1 -1
  35. package/templates/podcast-creator/l10n/en.json +1 -1
  36. package/templates/portfolio-creative/l10n/en.json +1 -1
  37. package/templates/restaurant/l10n/en.json +1 -1
  38. package/templates/retail-store/l10n/en.json +1 -1
  39. package/templates/yoga-studio/l10n/en.json +1 -1
@@ -758,7 +758,7 @@ export interface BadgeProps {
758
758
  style?: string;
759
759
  /** #1055 — explicit color token (overrides `style`). #2286.4a — this names the
760
760
  * **FOREGROUND** (text) colour; the pill's fill is derived from it, a **16% tint of
761
- * this same token** over the surface behind the badge. One token drives both, so
761
+ * this same token** mixed into an opaque `surfacePrimary`, so a badge on a photo keeps its pill. One token drives both, so
762
762
  * choose one with contrast **against `surfacePrimary`**, not against the fill:
763
763
  * `accentPrimary` / `success` / `danger` read; an already-pale token such as
764
764
  * `accentSoft` paints pale-on-pale and is effectively invisible. The same 16% on web,
@@ -784,7 +784,7 @@ export interface TagProps {
784
784
  text: string;
785
785
  /** #2286.4a — the tag's **FOREGROUND** (text) colour token; default `accentPrimary`.
786
786
  * The pill is not a separate colour: its fill is a **14% tint of this same token**
787
- * over the surface behind it, with a 30% border of it. One token drives all three,
787
+ * mixed into an opaque `surfacePrimary`, with a 30% border of it. One token drives all three,
788
788
  * so choose one with contrast **against `surfacePrimary`**, not against the fill.
789
789
  * That is the whole trap: `accentSoft` (and any other already-pale token) renders
790
790
  * near-invisible — pale text on a 14% wash of the same pale colour — while
@@ -23,7 +23,9 @@ they decide what a phone screen looks like, and this guide decides how to compos
23
23
 
24
24
  - **The title lives in the bar, not the body.** Set the screen's `title`; the shell draws it. Do
25
25
  not open the body with the screen title, the app name or a greeting as `largeTitle`/`title1`
26
- text. `himi render` does not draw the bar, so a PNG that starts with content is correct.
26
+ text. `himi render --platform ios|android --device iphone|pixel` draws the bar the shell draws
27
+ (the iOS title, Back, the tab bar); a render without `--platform` does not, so a PNG that starts
28
+ with content is correct there.
27
29
  - **A collection is rows, not a card per item.** A schedule, a service menu, a session list or a
28
30
  settings group is `ListItem` rows — in a root `LazyList`, or in one `Section` with `inset: true`
29
31
  and a `header`. Time, price, coach or duration go in the row's `subtitle`/`trailing`; a small
package/guides/ios-ux.md CHANGED
@@ -23,7 +23,8 @@ Android). Write the `header` in sentence case. Choose one structure and say so
23
23
  in `MOBILE-UX.md`; do not plan "inset grouped on iPhone, full-bleed on Android", because no Himi
24
24
  screen can deliver it. Per-platform *look* — type face, corner radius, spacing — is a token
25
25
  overlay (see **Idiom overlay** below), not a second screen. `himi render --platform ios` changes
26
- the switch, the segmented control, and the type face. A list or a grid looks the same in the
26
+ the switch, the segmented control, and the type face, and at a phone width (`--device iphone`) draws the status bar,
27
+ navigation bar and tab bar the shell draws (`--no-frame` for the bare screen). A list or a grid looks the same in the
27
28
  Android PNG. That is one descriptor, not a failed render.
28
29
 
29
30
  ## Patterns
@@ -31,7 +32,7 @@ Android PNG. That is one descriptor, not a failed render.
31
32
  | Decision | Do this on iOS | Himi mapping | Apple source |
32
33
  | --- | --- | --- | --- |
33
34
  | Top-level destinations | Tab bar of three to five destinations; the shell draws it. | `navigation` tabs in `config.ts` (`himi docs app-config`). Never a row of buttons at the bottom of a screen. | [Tab bars](https://developer.apple.com/design/human-interface-guidelines/tab-bars) |
34
- | Screen title | Large title on a tab's root screen, collapsing as it scrolls; inline title on a pushed screen. | Set the screen's `title`; the shell makes a root screen's title large on its own. `topBar.titleDisplay: "large" \| "inline"` overrides it. Do not repeat the title, or the app name, as Text in the body in any style. A group's name is the `Section` `header`, not a heading above it. `himi render` does not draw that bar — pass `--platform ios` so the controls match iPhone, and judge the title by the `title` field. A PNG with no large heading at the top is correct when `title` is set. | [Navigation bars](https://developer.apple.com/design/human-interface-guidelines/navigation-bars) |
35
+ | Screen title | Large title on a tab's root screen, collapsing as it scrolls; inline title on a pushed screen. | Set the screen's `title`; the shell makes a root screen's title large on its own. `topBar.titleDisplay: "large" \| "inline"` overrides it. Do not repeat the title, or the app name, as Text in the body in any style. A group's name is the `Section` `header`, not a heading above it. `himi render --platform ios --device iphone` draws that bar from `title`, as the iOS shell lays it out (it does not read `titleDisplay`): a large title on a tab root or the home screen, Back and an inline title on any other screen. Without `--platform` the PNG has no bar, so judge the title by the `title` field. | [Navigation bars](https://developer.apple.com/design/human-interface-guidelines/navigation-bars) |
35
36
  | Back | Back button plus edge swipe; the system owns both. | Push with navigation actions; the shell adds Back. Only `topBar.leading: "none"` with a `stickyHeader` replaces the bar, and system back still works. | [Navigation and search](https://developer.apple.com/design/human-interface-guidelines/navigation-and-search) |
36
37
  | Completing a flow (Book, Pay, Confirm) | One prominent button at the bottom, above the home indicator. | `stickyFooter` holding one `Button` with `style: "primary"` and `fullWidth: true`, on a `surfacePrimary` background with padding. | [Buttons](https://developer.apple.com/design/human-interface-guidelines/buttons) |
37
38
  | Creating, adding, editing, saving | A bar button in the navigation bar, trailing. | `topBar.items: [{ id, placement: "trailing", label, icon, onTap, role: "confirm" }]`. It is a bar button on iPhone and a top-app-bar action on Android. | [Toolbars](https://developer.apple.com/design/human-interface-guidelines/toolbars) |
@@ -107,8 +108,9 @@ reduced motion, and right-to-left, from the first screen map.
107
108
 
108
109
  Render each primary screen with `himi render <screen> --device iphone --platform ios --png <file>`
109
110
  and again with `--scheme dark` and at `--device ipad --platform ios`. `--platform ios` draws the
110
- iPhone switch and segmented control. The navigation bar is still the shell's, so a missing title
111
- in the PNG is not a missing `title` field. Check: the screen's `title` is set, no heading and no
111
+ iPhone switch and segmented control, and on a phone the shell's status, navigation and tab bars:
112
+ the title belongs in the navigation bar, never again in the body. The iPad render draws no bars. The frame does not draw a top-bar logo, a kit tab bar (`tabBar.presentation: "kit"`), custom tab-bar colours, or labels, icons and visibility the app's nav worker sets; judge those on a simulator.
113
+ Check: the screen's `title` is set, no heading and no
112
114
  app name in the body, a schedule is `ListItem` rows rather than a `Card` per row, products,
113
115
  books and photos are image tiles with every image filled and none stretched, a rail shows part of
114
116
  its next item, a horizontal choice row still shows its last item, the primary action in the footer or the bar
@@ -3829,11 +3829,18 @@
3829
3829
  "decl": "export interface LegacyImportReportItem {\n key: string;\n /** The item's value — UTF-8 text, or base64 when `meta.encoding === \"base64\"`. */\n value: string;\n meta?: Record<string, string>;\n}",
3830
3830
  "verificationChecked": true
3831
3831
  },
3832
+ {
3833
+ "name": "WebStorageSnapshot",
3834
+ "kind": "interface",
3835
+ "jsdoc": "/** A WebView `storage_seed` snapshot — bind it as a WebView's `storage_seed.snapshot_path`. */",
3836
+ "decl": "export interface WebStorageSnapshot {\n /** Always true: it was captured from the legacy app's shared WebView storage. */\n legacy: true;\n /** The legacy principal it was captured for. A snapshot without one is never exposed. */\n principal: string;\n localStorage?: Record<string, string>;\n sessionStorage?: Record<string, string>;\n}",
3837
+ "verificationChecked": true
3838
+ },
3832
3839
  {
3833
3840
  "name": "LegacyImportReport",
3834
3841
  "kind": "interface",
3835
3842
  "jsdoc": "",
3836
- "decl": "export interface LegacyImportReport {\n /** The `legacyImport.id` that produced it. */\n id: string;\n /** Epoch ms the import ran. */\n extractedAt: number;\n sources: LegacyImportSourceReport[];\n /** Only the `report` sink's items. */\n items: LegacyImportReportItem[];\n}",
3843
+ "decl": "export interface LegacyImportReport {\n /** The `legacyImport.id` that produced it. */\n id: string;\n /** Epoch ms the import ran. */\n extractedAt: number;\n sources: LegacyImportSourceReport[];\n /** Only the `report` sink's items. */\n items: LegacyImportReportItem[];\n /** Origin → snapshot, from the `webStorageSnapshot` sink. */\n webStorage?: Record<string, WebStorageSnapshot>;\n}",
3837
3844
  "verificationChecked": true
3838
3845
  },
3839
3846
  {
@@ -3843,6 +3850,13 @@
3843
3850
  "decl": "export async function read(): Promise<LegacyImportReport | null>;",
3844
3851
  "verificationChecked": true
3845
3852
  },
3853
+ {
3854
+ "name": "webStorageSnapshot",
3855
+ "kind": "function",
3856
+ "jsdoc": "/** The `storage_seed` snapshot of the legacy WebView storage captured for `origin` by a\n * `web-storage` source, or null — none was captured, it has no principal, it was acknowledged\n * (`ack()` deletes it for good), or the signed-in account is not the one it was captured for\n * (the native side only exposes the report to the legacy principal). */",
3857
+ "decl": "export async function webStorageSnapshot(origin: string): Promise<WebStorageSnapshot | null>;",
3858
+ "verificationChecked": true
3859
+ },
3846
3860
  {
3847
3861
  "name": "ack",
3848
3862
  "kind": "function",
@@ -32,7 +32,7 @@ the SDK sources, so it matches the shipped SDKs.
32
32
  - [`himi_apps`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Fhimi_apps?format=md) — Cross-app open / host queries. 4 methods · not in Brandy.
33
33
  - [`iap`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Fiap?format=md) — In-app-purchase capability. 10 methods.
34
34
  - [`keyboard`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Fkeyboard?format=md) — Keyboard capability. 1 method.
35
- - [`legacy_import`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Flegacy_import?format=md) — One-time legacy import report. 2 methods · not in Brandy.
35
+ - [`legacy_import`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Flegacy_import?format=md) — One-time legacy import report. 3 methods · not in Brandy.
36
36
  - [`live_activity`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Flive_activity?format=md) — Live Activity capability. 3 methods · not in Brandy.
37
37
  - [`local_database`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Flocal_database?format=md) — Local-database capability: a per-entity on-device store (EntityStore) + an offline WriteQueue, so a worker bundle can persist and query real data on device. 11 methods · not in Brandy.
38
38
  - [`location`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Flocation?format=md) — Device location. 10 methods.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.1671.0",
3
+ "version": "0.1673.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": [
@@ -79,5 +79,5 @@
79
79
  "artifactId": "himalaya-cli"
80
80
  }
81
81
  },
82
- "falconPackageHash": "9f2fec7c3d522b49c7d21c67a96c5820be4950a5fd0e97030a940560"
82
+ "falconPackageHash": "b49b090208e4ab091f45a960751972875090445b37a5d4203c79e429"
83
83
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$source": "en",
3
- "$generated": "2026-11-11T22:30:17.102Z",
3
+ "$generated": "2026-11-11T23:43:24.040Z",
4
4
  "messages": {
5
5
  "h_0028d743eb44": {
6
6
  "source": "Sale",