@wix/himalaya-cli 0.1282.0 → 0.1284.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 +8 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +2 -2
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdui.mjs +2 -2
- package/dist/cli.mjs +449 -331
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/capabilities.md +5 -3
- package/guides/component-reference.json +4 -10
- package/guides/component-reference.md +6 -6
- package/package.json +2 -2
|
@@ -170,6 +170,9 @@ export declare function text(text: string, style?: string, opts?: {
|
|
|
170
170
|
animateReveal?: boolean;
|
|
171
171
|
markdown?: boolean;
|
|
172
172
|
textDirection?: "auto" | "ltr" | "rtl";
|
|
173
|
+
minimumScaleFactor?: number;
|
|
174
|
+
monospacedDigits?: boolean;
|
|
175
|
+
truncation?: "tail" | "head" | "middle";
|
|
173
176
|
}): Component;
|
|
174
177
|
export declare function card(children: Component[], opts?: {
|
|
175
178
|
id?: string;
|
|
@@ -258,6 +261,10 @@ export declare function icon(name: string, opts?: {
|
|
|
258
261
|
tint?: string;
|
|
259
262
|
contentDescription?: string;
|
|
260
263
|
decorative?: boolean;
|
|
264
|
+
renderingMode?: "monochrome" | "hierarchical" | "palette" | "multicolor";
|
|
265
|
+
weight?: "ultraLight" | "thin" | "light" | "regular" | "medium" | "semibold" | "bold" | "heavy" | "black";
|
|
266
|
+
variableValue?: number;
|
|
267
|
+
effect?: "none" | "bounce" | "pulse" | "variableColor";
|
|
261
268
|
}): Component;
|
|
262
269
|
/**
|
|
263
270
|
* An icon-only tap target that CANNOT be built without a name.
|
|
@@ -1563,6 +1570,7 @@ export declare function richText(props: {
|
|
|
1563
1570
|
runs: Array<{
|
|
1564
1571
|
text: string;
|
|
1565
1572
|
style?: string;
|
|
1573
|
+
color?: string;
|
|
1566
1574
|
marks?: Array<"bold" | "italic" | "underline" | "code" | "link">;
|
|
1567
1575
|
linkAction?: ActionShape;
|
|
1568
1576
|
}>;
|
package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts
CHANGED
|
@@ -1210,7 +1210,7 @@ export interface AlertDialogProps {
|
|
|
1210
1210
|
}
|
|
1211
1211
|
export type TextMark = "bold" | "italic" | "underline" | "code" | "link";
|
|
1212
1212
|
export interface TextRun {
|
|
1213
|
-
/** Per-run color
|
|
1213
|
+
/** Per-run foreground color overrides the link default on every renderer. */
|
|
1214
1214
|
color?: TokenName;
|
|
1215
1215
|
text: string;
|
|
1216
1216
|
style?: TokenName;
|
|
@@ -1218,7 +1218,7 @@ export interface TextRun {
|
|
|
1218
1218
|
linkAction?: Action;
|
|
1219
1219
|
}
|
|
1220
1220
|
export interface RichTextProps {
|
|
1221
|
-
/** Styled runs
|
|
1221
|
+
/** Styled runs and explicit run colors work on every renderer. */
|
|
1222
1222
|
runs: TextRun[];
|
|
1223
1223
|
}
|
|
1224
1224
|
export interface ListItemProps {
|
|
@@ -8492,7 +8492,7 @@ function zstack(props) {
|
|
|
8492
8492
|
function text(text2, style, opts) {
|
|
8493
8493
|
return {
|
|
8494
8494
|
id: opts?.id ?? auto("text"),
|
|
8495
|
-
body: { package: "himalaya", type: "Text", props: { text: text2, style, color: opts?.color, maxLines: opts?.maxLines, collapseWhenEmpty: opts?.collapseWhenEmpty, animateValue: opts?.animateValue, animateReveal: opts?.animateReveal, markdown: opts?.markdown, textDirection: opts?.textDirection } }
|
|
8495
|
+
body: { package: "himalaya", type: "Text", props: { text: text2, style, color: opts?.color, maxLines: opts?.maxLines, collapseWhenEmpty: opts?.collapseWhenEmpty, animateValue: opts?.animateValue, animateReveal: opts?.animateReveal, markdown: opts?.markdown, textDirection: opts?.textDirection, minimumScaleFactor: opts?.minimumScaleFactor, monospacedDigits: opts?.monospacedDigits, truncation: opts?.truncation } }
|
|
8496
8496
|
};
|
|
8497
8497
|
}
|
|
8498
8498
|
function card2(children, opts) {
|
|
@@ -8546,7 +8546,7 @@ function icon(name, opts) {
|
|
|
8546
8546
|
body: {
|
|
8547
8547
|
package: "himalaya",
|
|
8548
8548
|
type: "Icon",
|
|
8549
|
-
props: { name, size: opts?.size, tint: opts?.tint, ...opts?.contentDescription !== void 0 ? { contentDescription: opts.contentDescription } : {} }
|
|
8549
|
+
props: { name, size: opts?.size, tint: opts?.tint, renderingMode: opts?.renderingMode, weight: opts?.weight, variableValue: opts?.variableValue, effect: opts?.effect, ...opts?.contentDescription !== void 0 ? { contentDescription: opts.contentDescription } : {} }
|
|
8550
8550
|
}
|
|
8551
8551
|
};
|
|
8552
8552
|
return opts?.decorative ? { ...node, modifiers: { accessibilityRole: "decorative" } } : node;
|