@wix/himalaya-cli 0.1206.0 → 0.1208.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 +3 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +23 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +1 -0
- package/dist/cli.mjs +770 -35
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/component-reference.json +10 -1
- package/guides/component-reference.md +24 -2
- package/guides/index.json +1 -1
- package/guides/testing-himi-apps.md +1 -1
- package/package.json +2 -2
|
@@ -621,7 +621,7 @@ export declare function mediaField(props: {
|
|
|
621
621
|
id?: string;
|
|
622
622
|
}): Component;
|
|
623
623
|
/**
|
|
624
|
-
* RichTextField — a formatted editor (bold/italic/bulleted list) producing HTML.
|
|
624
|
+
* RichTextField — a formatted editor (bold/italic/bulleted list) producing HTML (#3805, proto field 164).
|
|
625
625
|
* Lives inside a Form (writes its HTML to FormState under `id`, so submit carries
|
|
626
626
|
* it); prefills from `valuePath` (`$service:` HTML). Generic (any rich body field).
|
|
627
627
|
*/
|
|
@@ -630,6 +630,8 @@ export declare function richTextField(props: {
|
|
|
630
630
|
valuePath?: string;
|
|
631
631
|
label?: string;
|
|
632
632
|
placeholder?: string;
|
|
633
|
+
onChange?: ActionShape;
|
|
634
|
+
onSubmit?: ActionShape;
|
|
633
635
|
}, opts?: {
|
|
634
636
|
id?: string;
|
|
635
637
|
}): Component;
|
package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts
CHANGED
|
@@ -1550,7 +1550,7 @@ export interface RichContentEditorProps {
|
|
|
1550
1550
|
fallback?: Component;
|
|
1551
1551
|
}
|
|
1552
1552
|
/**
|
|
1553
|
-
*
|
|
1553
|
+
* An image well bound to a `$service:` image URL. Tapping it opens the platform photo
|
|
1554
1554
|
* picker (PhotosPicker on iOS, the Android photo picker, a file chooser on web); the renderer
|
|
1555
1555
|
* then runs the upload contract against the screen's worker: `<uploadService>.genUpload({fileName,
|
|
1556
1556
|
* mimeType})` → PUT the bytes to `<uploadService>.uploadUrl` + `?filename=<fileName>` →
|
|
@@ -1565,6 +1565,24 @@ export interface MediaFieldProps {
|
|
|
1565
1565
|
/** Empty-well copy (a message key or literal). Default "Add a photo". */
|
|
1566
1566
|
label?: string;
|
|
1567
1567
|
}
|
|
1568
|
+
/**
|
|
1569
|
+
* A formatted, multiline editor that writes HTML into an enclosing Form under `id`.
|
|
1570
|
+
* `valuePath` optionally prefills it from a worker's `$service:` HTML value.
|
|
1571
|
+
*/
|
|
1572
|
+
export interface RichTextFieldProps {
|
|
1573
|
+
/** Required key in the enclosing Form's values. */
|
|
1574
|
+
id: string;
|
|
1575
|
+
/** `$service:<svc>.<path>` → initial HTML; the editor seeds once from the first non-empty value. */
|
|
1576
|
+
valuePath?: `$service:${string}.${string}`;
|
|
1577
|
+
/** Visible and spoken field label. */
|
|
1578
|
+
label?: string;
|
|
1579
|
+
/** Placeholder shown before the field has content. */
|
|
1580
|
+
placeholder?: string;
|
|
1581
|
+
/** Dispatches `{ value: html }` after an edit. */
|
|
1582
|
+
onChange?: Action;
|
|
1583
|
+
/** Dispatches `{ value: html }` when the editor submits. */
|
|
1584
|
+
onSubmit?: Action;
|
|
1585
|
+
}
|
|
1568
1586
|
/**
|
|
1569
1587
|
* RFC 0063 — a Wix Ricos rich-content document rendered natively: headings, lists, links,
|
|
1570
1588
|
* images, galleries, video, tables and link cards (never a WebView). The document travels as a
|
|
@@ -2399,6 +2417,10 @@ export type CoreComponentBody = {
|
|
|
2399
2417
|
package: "himalaya";
|
|
2400
2418
|
type: "MediaField";
|
|
2401
2419
|
props: MediaFieldProps;
|
|
2420
|
+
} | {
|
|
2421
|
+
package: "himalaya";
|
|
2422
|
+
type: "RichTextField";
|
|
2423
|
+
props: RichTextFieldProps;
|
|
2402
2424
|
} | {
|
|
2403
2425
|
package: "himalaya";
|
|
2404
2426
|
type: "VoiceNote";
|