@wix/himalaya-cli 0.1645.0 → 0.1646.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.
- package/dist/cli.mjs +1392 -988
- package/guides/himi-test.md +1 -1
- package/guides/one-app-to-himi-app.md +26 -12
- package/package.json +2 -2
package/guides/himi-test.md
CHANGED
|
@@ -283,7 +283,7 @@ Only **unambiguous** defects, so a green run stays worth trusting:
|
|
|
283
283
|
| `settles-off-loading` | error | Still on `loading` / `isLoading` after settling — stuck on the skeleton forever. |
|
|
284
284
|
| `non-finite-number` | error | `NaN` / `Infinity` in worker state — the wrong-total / missing-operand reducer bug. Read live, before the JSON trip to the host flattens it to `null`. On device it renders as an **empty** label, not the text "NaN". |
|
|
285
285
|
| `placeholder-in-text` | error | `undefined`, `null`, `NaN`, `[object Object]` or a JSON blob rendered as visible text. |
|
|
286
|
-
| `unsubstituted-binding` | error | A raw `$service:` / `$item` token, or an unresolved `$t:` i18n key, reaching visible text. |
|
|
286
|
+
| `unsubstituted-binding` | error | A raw `$service:` / `$item` token, or an unresolved `$t:` i18n key, reaching visible text. A whole-value `$t:` key that the app's own catalog (`l10n/<default locale>.json`) answers is substituted: a worker may keep one in its state for the renderer to translate. A key the catalog lacks, one inside prose, or the `$`-stripped `t:key` form still fails. |
|
|
287
287
|
| `item-field-missing` | error | A list row template binds `$item.<field>`, but none of the list's real rows carries `<field>`: the web preview paints `item.<field>` as text and native paints nothing (a worker emitting `jobType` while the template reads `$item.type`). Judged only against real rows, and on the first segment. `warning` when the prop declares `collapseWhenEmpty`. |
|
|
288
288
|
| `unresolved-wix-media` | error | A media-typed prop holding a raw Wix media handle/id the renderer cannot load. |
|
|
289
289
|
| `binding-unresolved` | error / warning | A `$service:` binding aimed at state the worker never defines. It is an error when the missing value can leave visible UI blank. A direct prop with sibling `collapseWhenEmpty: true` is an advisory warning instead: the renderer deliberately removes that zero-size optional chrome, while the warning keeps the omitted contract auditable. |
|
|
@@ -65,8 +65,10 @@ app still needs its own locale configuration and complete translation catalogs;
|
|
|
65
65
|
worker dates and numbers must use that app locale separately. Source collection,
|
|
66
66
|
template translation and runtime formatting are distinct migration checks.
|
|
67
67
|
|
|
68
|
-
If the business read returns `403`, migration can use the
|
|
69
|
-
path.
|
|
68
|
+
If the published-structure read or the business read returns `403`, migration can use the
|
|
69
|
+
internal source-read path. A site operator with no access to the site is refused at the first
|
|
70
|
+
read, so it covers both: after the permission is confirmed, the published structure and its
|
|
71
|
+
final consistency check are read as the site Visitor too. Wix must confirm an active site USER token, the
|
|
70
72
|
`BRANDED_APPS.MANAGE_INTERNAL` organization permission, and that permission for the
|
|
71
73
|
exact requested site. Missing or unavailable authorization keeps
|
|
72
74
|
`source_forbidden`. The read preserves the selected app instance and saves only
|
|
@@ -1339,19 +1341,31 @@ cannot be inspected: call the builder in your generator and serialize the value
|
|
|
1339
1341
|
returns. Run the generator inside the app (after `npm install`), so
|
|
1340
1342
|
`@wix/himalaya/screens` resolves to the app's own dependency.
|
|
1341
1343
|
|
|
1342
|
-
###
|
|
1344
|
+
### Write the source's tabs
|
|
1343
1345
|
|
|
1344
|
-
The template's `navigation.
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1346
|
+
The template's `navigation.tabBar` has its own Home, Book and Profile tabs, and its `linkableScreens` carry the template's
|
|
1347
|
+
tab ids. `himi one-app generate` saves the source's tabs beside its screens (`.himi/one-app/gen/screens.json.tabs.json`: the first four
|
|
1348
|
+
pages, then a More tab), and once those screens are written with `himi template screens --upsert`, this step puts the tabs
|
|
1349
|
+
in the app:
|
|
1348
1350
|
|
|
1349
|
-
|
|
1350
|
-
-
|
|
1351
|
-
|
|
1351
|
+
```sh
|
|
1352
|
+
himi one-app apply-navigation --evidence-dir .himi/one-app --content . [--tabs <file>] [--dry-run]
|
|
1353
|
+
```
|
|
1354
|
+
|
|
1355
|
+
It writes `navigation.navKind` and `navigation.tabBar.items` (each tab's screen, label, and an icon from the icon catalog,
|
|
1356
|
+
with its filled variant when there is one) and repoints every `linkableScreens` tab id the old tabs left behind, as
|
|
1357
|
+
`himi validate --strict` would otherwise report with `nav-linkable-tab-unknown`:
|
|
1358
|
+
|
|
1359
|
+
- a screen a tab opens keeps that tab's id, and a screen reached from it follows its parent's tab;
|
|
1360
|
+
- a screen the More tab lists takes the More tab's id (only when there is a More tab);
|
|
1361
|
+
- any other screen takes `""`, the default stack.
|
|
1362
|
+
|
|
1363
|
+
A tab for a screen the app does not define is refused with `screen_missing` and nothing is written: write the generated
|
|
1364
|
+
screens first, and keep any template screen a tab opens when you trim. A source icon with no catalog match is reported
|
|
1365
|
+
under `gaps` and gets a neutral icon; choose a better one in `config.ts`. The drawer is not touched.
|
|
1352
1366
|
|
|
1353
|
-
Check `homeScreenId` and any `himi.open` target that still names a template screen (`"home"`, `"profile"`)
|
|
1354
|
-
|
|
1367
|
+
Check `homeScreenId` and any `himi.open` target that still names a template screen (`"home"`, `"profile"`):
|
|
1368
|
+
it must be a screen your `SCREENS` map defines, and the first tab's screen is the one the app should open on.
|
|
1355
1369
|
|
|
1356
1370
|
### Preserve the template features the source exposes
|
|
1357
1371
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1646.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": [
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"artifactId": "himalaya-cli"
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
|
-
"falconPackageHash": "
|
|
75
|
+
"falconPackageHash": "ebd7d82d917b742cfef3eb2492d0984c04bdf5fb43971d14b93b0776"
|
|
76
76
|
}
|