@wix/himalaya-cli 0.1080.0 → 0.1082.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/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/builder.d.ts +18 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +21 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +2 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdui.mjs +497 -38
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-rich-content.mjs +2 -1
- package/dist/cli.mjs +2050 -1283
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/component-reference.json +10 -1
- package/guides/component-reference.md +20 -2
- package/guides/index.json +1 -1
- package/package.json +2 -2
|
Binary file
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"_comment": "GENERATED by core/web-embed/authoring/gen-reference.mjs from core/ts/src/schema.ts — do not hand-edit. The schema is the source of truth; regenerate on schema changes.",
|
|
3
3
|
"schemaSource": "core/ts/src/schema.ts",
|
|
4
4
|
"bindingGrammar": "$service:<service>.<path> (worker state) · $item.<field> (list row) · $flag:<key> (feature flag) · $env:<key> (client environment — #1056). Bindings resolve in the text/value props marked 'binding-aware' below — INCLUDING Modifiers token refs — but only `background` and `border.color`, which are the two whose token a binding actually fills: a worker can drive per-item theming (e.g. a game board's per-square color), not just text. `shadow` is NOT binding-aware on any renderer, and a gradient is driven by its own `backgroundGradientPath` prop resolving to a gradient token NAME, not by a binding inside a token ref — so `shadow: { token: \"$item.x\" }` and `backgroundGradient: { token: \"$item.x\" }` keep the sentinel and silently lose the per-item styling. Colour slots split by LEVEL, not by component: inside modifiers a colour is a TokenRef OBJECT ({ token: \"…\" }), inside props it is a bare TokenName STRING — there is no modifiers.color or modifiers.tint (see the 'Token slots' section in component-reference.md). A few input props render the LITERAL and are NOT binding-aware — notably SearchField.placeholder and Chip.label; SearchField.value is live and binding-aware like other content props. Bindings also CANNOT target strict-enum fields (style, size, alignment, severity, presentation, contentMode, …) — those fail at render, not validation. $env: is client-resolved (no worker) and valid in modifiers.hiddenPath and FragmentSlot.casePath ONLY — keys reduceMotion/colorScheme/sizeClass/isRTL, e.g. hiddenPath:\"$env:reduceMotion\" or hiddenPath:\"$env:colorScheme==light\", casePath:\"$env:colorScheme\"; unknown key fails open (shown / defaultCase).",
|
|
5
|
-
"componentCount":
|
|
5
|
+
"componentCount": 83,
|
|
6
6
|
"notImplementedComponents": [
|
|
7
7
|
"FieldError",
|
|
8
8
|
"Picker",
|
|
@@ -981,6 +981,15 @@
|
|
|
981
981
|
],
|
|
982
982
|
"propsSource": "export interface DataTableProps {\n columns?: DataTableColumn[];\n rows?: DataTableRow[];\n /**\n * `$service:` ONLY → an array of OBJECTS keyed by `column.key`. An array of\n * arrays (positional, like the literal `rows`) is also accepted.\n */\n rowsPath?: string;\n /**\n * `hideHeader`, not `showHeader`: the proto field is a bool that defaults to\n * false, so the affirmative spelling would default a table to headerless.\n */\n hideHeader?: boolean;\n totals?: DataTableRow;\n /** `$service:` ONLY → one row object. */\n totalsPath?: string;\n /** 0 / absent ⇒ unbounded */\n maxRows?: number;\n zebra?: boolean;\n}"
|
|
983
983
|
},
|
|
984
|
+
{
|
|
985
|
+
"name": "RichContent",
|
|
986
|
+
"category": "Rich content",
|
|
987
|
+
"propsType": "RichContentProps",
|
|
988
|
+
"bindings": [
|
|
989
|
+
"documentJsonPath"
|
|
990
|
+
],
|
|
991
|
+
"propsSource": "export interface RichContentProps {\n /** `$service:<svc>.<path>` or `$item.<field>` → the UTF-8 JSON of `{ nodes, metadata?, documentStyle? }`. */\n documentJsonPath?: string;\n /** Literal document JSON (seed / offline). */\n documentJson?: string;\n /** Dispatched on a link, button or card tap with `args.url`. Absent ⇒ http(s) opens the in-app browser. */\n onLink?: Action;\n /** Rendered when the document is rejected (over budget / invalid). Absent ⇒ nothing. */\n fallback?: Component;\n}"
|
|
992
|
+
},
|
|
984
993
|
{
|
|
985
994
|
"name": "VoiceNote",
|
|
986
995
|
"category": "Recorded-audio bubble (messenger design G4)",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
> GENERATED from `core/ts/src/schema.ts` by `core/web-embed/authoring/gen-reference.mjs`.
|
|
4
4
|
> The schema is the source of truth — regenerate on schema changes; do not hand-edit.
|
|
5
5
|
|
|
6
|
-
**
|
|
6
|
+
**83 core component types.** Every component body is `{ "package": "himalaya", "type": "<Type>", "props": { … } }`.
|
|
7
7
|
Binding grammar: `$service:<service>.<path>` (worker state) · `$item.<field>` (list row template) · `$flag:<key>` (feature flag) · `$env:<key>` (client environment — #1056).
|
|
8
8
|
Bindings resolve in the text/value props marked **binding-aware** below — **including two `Modifiers` token refs**, `background` and `border.color`, which are the only two whose token a binding actually fills: a worker can drive per-item **theming** (e.g. a game board's per-square color, `background: { token: "$item.bg" }`), not just text content. `shadow` and `backgroundGradient` are `TokenRef`s but are **not** binding-aware on any renderer — `shadow: { token: "$item.x" }` keeps the sentinel as a literal token name and silently loses the per-item styling, and a gradient is driven by its own `backgroundGradientPath` prop resolving to a gradient token NAME, not by a binding inside a token ref.
|
|
9
9
|
`$env:` is **client-resolved** (no worker) and valid in `modifiers.hiddenPath` and `FragmentSlot.casePath` **only** — keys `reduceMotion` / `colorScheme` / `sizeClass` / `isRTL`, with an optional `==`/`!=` comparison (e.g. `hiddenPath: "$env:reduceMotion"`, `hiddenPath: "$env:colorScheme==light"`, `casePath: "$env:colorScheme"`). An unknown key fails open (shown / `defaultCase`).
|
|
@@ -92,6 +92,7 @@ See also **[Modifiers](#modifiers)** (the `modifiers` block) and **[Actions](#ac
|
|
|
92
92
|
| `DonutChart` | Analytics data-viz | `slicesPath` |
|
|
93
93
|
| `Legend` | Analytics data-viz | `itemsPath` |
|
|
94
94
|
| `DataTable` | Analytics data-viz | `rowsPath`, `totalsPath` |
|
|
95
|
+
| `RichContent` | Rich content | `documentJsonPath` |
|
|
95
96
|
| `VoiceNote` | Recorded-audio bubble (messenger design G4) | `waveformPath`, `durationMsPath`, `positionMsPath`, `statePath`, `deliveryPath`, `ratePath` |
|
|
96
97
|
| `Marquee` | Recorded-audio bubble (messenger design G4) | — |
|
|
97
98
|
| `Timeline` | Recorded-audio bubble (messenger design G4) | `entriesPath` |
|
|
@@ -114,7 +115,7 @@ See also **[Modifiers](#modifiers)** (the `modifiers` block) and **[Actions](#ac
|
|
|
114
115
|
|
|
115
116
|
These props are accepted by the schema and pass validation, but the named platform's renderer never reads them — they silently do nothing (no warning, no log). Prefer a prop NOT listed here, or drive the behaviour from a worker.
|
|
116
117
|
|
|
117
|
-
**Scope: 14 of
|
|
118
|
+
**Scope: 14 of 83 components, all of them ios-only** — every other component/platform pair reads every prop it decodes. The list splits in two, and the halves mean different things:
|
|
118
119
|
|
|
119
120
|
- **`category` (4: `BottomSheet`, `Menu`, `Tooltip`, `Popover`)** — the prop changes the component's *kind*. These genuinely are **not implemented**: an overlay renders always-visible inline, so the component does not do the job its name implies. Check the row's note for a working alternative — for a dismissible sheet it is `presentation: "sheet"` on the navigating `Action`, not `BottomSheet`.
|
|
120
121
|
- **`styling` (10: `FieldError`, `Picker`, `DatePicker`, `Tabs`, `Snackbar`, `Slider`, `ActivityIndicator`, `ChipsInput`, `OtpInput`, `Video`)** — the component itself **works**; only the listed prop is inert. `Slider` on iOS is a working slider whose `debounceMs` does not throttle — not a broken `Slider`. Use the component; just do not depend on that one prop.
|
|
@@ -1597,6 +1598,23 @@ export interface DataTableProps {
|
|
|
1597
1598
|
}
|
|
1598
1599
|
```
|
|
1599
1600
|
|
|
1601
|
+
### Rich content
|
|
1602
|
+
|
|
1603
|
+
#### RichContent
|
|
1604
|
+
|
|
1605
|
+
```ts
|
|
1606
|
+
export interface RichContentProps {
|
|
1607
|
+
/** `$service:<svc>.<path>` or `$item.<field>` → the UTF-8 JSON of `{ nodes, metadata?, documentStyle? }`. */
|
|
1608
|
+
documentJsonPath?: string;
|
|
1609
|
+
/** Literal document JSON (seed / offline). */
|
|
1610
|
+
documentJson?: string;
|
|
1611
|
+
/** Dispatched on a link, button or card tap with `args.url`. Absent ⇒ http(s) opens the in-app browser. */
|
|
1612
|
+
onLink?: Action;
|
|
1613
|
+
/** Rendered when the document is rejected (over budget / invalid). Absent ⇒ nothing. */
|
|
1614
|
+
fallback?: Component;
|
|
1615
|
+
}
|
|
1616
|
+
```
|
|
1617
|
+
|
|
1600
1618
|
### Recorded-audio bubble (messenger design G4)
|
|
1601
1619
|
|
|
1602
1620
|
#### VoiceNote
|
package/guides/index.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_comment": "AUTO-GENERATED by tools/authoring-kit/bundle.mjs — DO NOT EDIT. Regenerate with: npm run authoring:gen",
|
|
3
3
|
"schemaStamp": {
|
|
4
|
-
"componentCount":
|
|
4
|
+
"componentCount": 83,
|
|
5
5
|
"schemaSource": "core/ts/src/schema.ts"
|
|
6
6
|
},
|
|
7
7
|
"portalUrl": "https://apps.wix.com/_api/himi-serve/docs",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1082.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": [
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"artifactId": "himalaya-cli"
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
|
-
"falconPackageHash": "
|
|
70
|
+
"falconPackageHash": "2de158374281e46bbd2976601d42e40436b4f87a2f4836dcab980ceb"
|
|
71
71
|
}
|