@wix/himalaya-cli 0.1080.0 → 0.1081.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 +2031 -1276
- 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
|
@@ -380,6 +380,24 @@ export declare function dataTable(props: {
|
|
|
380
380
|
}, opts?: {
|
|
381
381
|
id?: string;
|
|
382
382
|
}): Component;
|
|
383
|
+
/**
|
|
384
|
+
* RFC 0063 — a Wix Ricos document rendered natively (never a WebView). Pass exactly one of
|
|
385
|
+
* `documentJsonPath` (`$service:<service>.<path>` / `$item.<field>` → the JSON string a worker
|
|
386
|
+
* published, e.g. `encodeRichContent(doc).json`) or `documentJson` (a literal seed document).
|
|
387
|
+
* The id is REQUIRED: child test ids are `<id>/<blockId>` (invariant 27). `onLink` receives
|
|
388
|
+
* `args.url`; without it http(s) links open in the in-app browser. `fallback` renders when the
|
|
389
|
+
* document is rejected (over budget / invalid); nothing inside the document is ever resolved
|
|
390
|
+
* as a binding.
|
|
391
|
+
*/
|
|
392
|
+
export declare function richContent(props: {
|
|
393
|
+
documentJsonPath?: string;
|
|
394
|
+
documentJson?: string;
|
|
395
|
+
onLink?: ActionShape;
|
|
396
|
+
fallback?: Component;
|
|
397
|
+
}, opts: {
|
|
398
|
+
id: string;
|
|
399
|
+
modifiers?: NonNullable<Component["modifiers"]>;
|
|
400
|
+
}): Component;
|
|
383
401
|
export declare function spacer(opts?: {
|
|
384
402
|
id?: string;
|
|
385
403
|
value?: string;
|
package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts
CHANGED
|
@@ -1519,6 +1519,23 @@ export interface DataTableProps {
|
|
|
1519
1519
|
maxRows?: number;
|
|
1520
1520
|
zebra?: boolean;
|
|
1521
1521
|
}
|
|
1522
|
+
/**
|
|
1523
|
+
* RFC 0063 — a Wix Ricos rich-content document rendered natively: headings, lists, links,
|
|
1524
|
+
* images, galleries, video, tables and link cards (never a WebView). The document travels as a
|
|
1525
|
+
* JSON STRING so every renderer caps its bytes before parsing (RFC 0046's precedent) and a
|
|
1526
|
+
* `$item.` row substitution carries it intact. Exactly one of `documentJsonPath` /
|
|
1527
|
+
* `documentJson` is set. Nothing inside the document is ever resolved as a binding.
|
|
1528
|
+
*/
|
|
1529
|
+
export interface RichContentProps {
|
|
1530
|
+
/** `$service:<svc>.<path>` or `$item.<field>` → the UTF-8 JSON of `{ nodes, metadata?, documentStyle? }`. */
|
|
1531
|
+
documentJsonPath?: string;
|
|
1532
|
+
/** Literal document JSON (seed / offline). */
|
|
1533
|
+
documentJson?: string;
|
|
1534
|
+
/** Dispatched on a link, button or card tap with `args.url`. Absent ⇒ http(s) opens the in-app browser. */
|
|
1535
|
+
onLink?: Action;
|
|
1536
|
+
/** Rendered when the document is rejected (over budget / invalid). Absent ⇒ nothing. */
|
|
1537
|
+
fallback?: Component;
|
|
1538
|
+
}
|
|
1522
1539
|
/**
|
|
1523
1540
|
* A recorded-audio message bubble — waveform, play/pause, scrubber, duration and
|
|
1524
1541
|
* playback rate (messenger design G4).
|
|
@@ -2324,6 +2341,10 @@ export type CoreComponentBody = {
|
|
|
2324
2341
|
package: "himalaya";
|
|
2325
2342
|
type: "DataTable";
|
|
2326
2343
|
props: DataTableProps;
|
|
2344
|
+
} | {
|
|
2345
|
+
package: "himalaya";
|
|
2346
|
+
type: "RichContent";
|
|
2347
|
+
props: RichContentProps;
|
|
2327
2348
|
} | {
|
|
2328
2349
|
package: "himalaya";
|
|
2329
2350
|
type: "VoiceNote";
|
|
@@ -8682,6 +8682,8 @@ var CORE_COMPONENTS = /* @__PURE__ */ new Set([
|
|
|
8682
8682
|
"himalaya.DonutChart",
|
|
8683
8683
|
"himalaya.Legend",
|
|
8684
8684
|
"himalaya.DataTable",
|
|
8685
|
+
// Rich content — RFC 0063
|
|
8686
|
+
"himalaya.RichContent",
|
|
8685
8687
|
// Recorded-audio bubble — messenger design G4
|
|
8686
8688
|
"himalaya.VoiceNote",
|
|
8687
8689
|
"himalaya.Marquee",
|