@wix/himalaya-cli 0.1629.0 → 0.1630.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.
@@ -192,6 +192,7 @@ export declare function text(text: string, style?: string, opts?: {
192
192
  textAlign?: "leading" | "center" | "trailing" | "justify";
193
193
  textDirection?: "auto" | "ltr" | "rtl";
194
194
  decoration?: "underline" | "strikethrough";
195
+ lineSpacing?: number;
195
196
  minimumScaleFactor?: number;
196
197
  monospacedDigits?: boolean;
197
198
  truncation?: "tail" | "head" | "middle";
@@ -280,6 +281,8 @@ export declare function image(props: {
280
281
  shape?: "rect" | "rounded" | "circle";
281
282
  aspectRatio?: number;
282
283
  placeholder?: string;
284
+ tint?: string;
285
+ renderingMode?: "template" | "original";
283
286
  }, opts?: {
284
287
  id?: string;
285
288
  }): Component;
@@ -547,6 +550,8 @@ export declare function button(props: {
547
550
  size?: "sm" | "md" | "lg";
548
551
  fullWidth?: boolean;
549
552
  iconOnly?: boolean;
553
+ cornerRadius?: number;
554
+ minHeight?: number;
550
555
  }, opts?: {
551
556
  id?: string;
552
557
  }): Component;
@@ -753,6 +758,11 @@ export declare function toggle(props: {
753
758
  value?: boolean;
754
759
  valuePath?: string;
755
760
  onChange?: ActionShape;
761
+ trackOn?: string;
762
+ trackOff?: string;
763
+ thumb?: string;
764
+ width?: number;
765
+ height?: number;
756
766
  }, opts?: {
757
767
  id?: string;
758
768
  }): Component;
@@ -964,7 +974,7 @@ export declare function progressBar(props: {
964
974
  trackColor?: string;
965
975
  /** Motion grammar — tween the fill on value change instead of snapping. */
966
976
  animated?: boolean;
967
- }, opts?: {
977
+ } & Pick<import("@wix/himalaya/core").ProgressBarProps, "tintPath" | "trackColorPath">, opts?: {
968
978
  id?: string;
969
979
  }): Component;
970
980
  /** A standardized list cell: leading slot · overline/title/subtitle · trailing
@@ -981,6 +991,9 @@ export declare function listItem(props: {
981
991
  titleStyle?: string;
982
992
  subtitleStyle?: string;
983
993
  markdown?: boolean;
994
+ titleColor?: string;
995
+ subtitleColor?: string;
996
+ overlineColor?: string;
984
997
  }, opts?: {
985
998
  id?: string;
986
999
  }): Component;
@@ -1108,7 +1121,7 @@ export declare function chip(props: {
1108
1121
  elevated?: boolean;
1109
1122
  token?: string;
1110
1123
  disabled?: boolean;
1111
- }, opts?: {
1124
+ } & Pick<import("@wix/himalaya/core").ChipProps, "selectedPath" | "tokenPath">, opts?: {
1112
1125
  id?: string;
1113
1126
  }): Component;
1114
1127
  /** A token/tag entry field holding removable value chips + a placeholder. */
@@ -1186,7 +1199,7 @@ export declare function gauge(props: {
1186
1199
  }>;
1187
1200
  /** Motion grammar — tween the gauge fill on value change instead of snapping. */
1188
1201
  animated?: boolean;
1189
- }, opts?: {
1202
+ } & Pick<import("@wix/himalaya/core").GaugeProps, "tintPath">, opts?: {
1190
1203
  id?: string;
1191
1204
  }): Component;
1192
1205
  /** A star/segment rating, display or interactive. */
@@ -1413,7 +1426,7 @@ export declare function otpInput(props: {
1413
1426
  onChange?: ActionShape;
1414
1427
  onComplete?: ActionShape;
1415
1428
  secure?: boolean;
1416
- }, opts?: {
1429
+ } & Pick<import("@wix/himalaya/core").OtpInputProps, "valuePath">, opts?: {
1417
1430
  id?: string;
1418
1431
  }): Component;
1419
1432
  /** A floating action button (icon, or extended with a label). */
@@ -1446,7 +1459,7 @@ export declare function map(props: {
1446
1459
  markersPath?: string;
1447
1460
  showUserLocation?: boolean;
1448
1461
  followUserLocation?: boolean;
1449
- }, opts?: {
1462
+ } & Pick<import("@wix/himalaya/core").MapProps, "routeMode" | "fitToContent" | "mapStyle" | "onMapTap" | "onMarkerTap" | "onRegionChange" | "routePath" | "cameraPath" | "shapes" | "shapesPath" | "onShapeTap" | "tileSource">, opts?: {
1450
1463
  id?: string;
1451
1464
  }): Component;
1452
1465
  /** An embedded video player. */
@@ -1548,7 +1561,7 @@ export declare function mediaPlayer(props: {
1548
1561
  onItemChange?: ActionShape;
1549
1562
  allowCellular?: boolean;
1550
1563
  preload?: boolean;
1551
- }, opts?: {
1564
+ } & Pick<import("@wix/himalaya/core").MediaPlayerProps, "itemsPath">, opts?: {
1552
1565
  id?: string;
1553
1566
  modifiers?: Component["modifiers"];
1554
1567
  }): Component;
@@ -1666,17 +1679,21 @@ export declare function snackbar(props: {
1666
1679
  action?: ActionShape;
1667
1680
  durationMs?: number;
1668
1681
  severity?: "info" | "success" | "warning" | "danger";
1669
- }, opts?: {
1682
+ } & Pick<import("@wix/himalaya/core").SnackbarProps, "actionLabel" | "imageUrl">, opts?: {
1670
1683
  id?: string;
1671
1684
  }): Component;
1672
1685
  export declare function alertDialog(props: {
1673
1686
  title: string;
1674
1687
  message?: string;
1675
- confirmAction: ActionShape;
1688
+ confirmAction?: ActionShape;
1676
1689
  cancelAction?: ActionShape;
1677
1690
  destructive?: boolean;
1678
1691
  /** RFC 0058 §4 — focus-trap tri-state; absent takes the AlertDialog default (modal). */
1679
1692
  modal?: boolean;
1693
+ } & Pick<import("@wix/himalaya/core").AlertDialogProps, "confirmLabel" | "cancelLabel"> & {
1694
+ buttons?: Array<Omit<NonNullable<import("@wix/himalaya/core").AlertDialogProps["buttons"]>[number], "action"> & {
1695
+ action?: ActionShape;
1696
+ }>;
1680
1697
  }, opts?: {
1681
1698
  id?: string;
1682
1699
  }): Component;
@@ -1717,6 +1734,9 @@ export declare function lazyList(props: {
1717
1734
  scrollToItemPath?: string;
1718
1735
  /** `{ id }` when the row at the top of the visible area changes by the user's scroll. */
1719
1736
  onTopItemChange?: ActionShape;
1737
+ reverseLayout?: boolean;
1738
+ contentInsetTop?: number;
1739
+ contentInsetBottom?: number;
1720
1740
  }, opts?: {
1721
1741
  id?: string;
1722
1742
  }): Component;
@@ -8802,7 +8802,7 @@ function zstack(props) {
8802
8802
  function text(text2, style, opts) {
8803
8803
  return {
8804
8804
  id: opts?.id ?? auto("text"),
8805
- 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, textAlign: opts?.textAlign, textDirection: opts?.textDirection, decoration: opts?.decoration, minimumScaleFactor: opts?.minimumScaleFactor, monospacedDigits: opts?.monospacedDigits, truncation: opts?.truncation } }
8805
+ 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, textAlign: opts?.textAlign, textDirection: opts?.textDirection, decoration: opts?.decoration, lineSpacing: opts?.lineSpacing, minimumScaleFactor: opts?.minimumScaleFactor, monospacedDigits: opts?.monospacedDigits, truncation: opts?.truncation } }
8806
8806
  };
8807
8807
  }
8808
8808
  function card2(children, opts) {
@@ -9299,6 +9299,7 @@ function snackbar(props, opts) {
9299
9299
  };
9300
9300
  }
9301
9301
  function alertDialog(props, opts) {
9302
+ if (!props.confirmAction && !props.buttons?.length) throw new Error("alertDialog requires confirmAction or buttons");
9302
9303
  return {
9303
9304
  id: opts?.id ?? slugId("alert", props.confirmAction?.actionId),
9304
9305
  body: { package: "himalaya", type: "AlertDialog", props }
package/dist/cli.mjs CHANGED
@@ -13326,6 +13326,7 @@ function buttonVariant(style) {
13326
13326
  var SYSTEM_FONT_FAMILY, TONAL_ELEVATION_ALPHA, BUTTON_SIZES, BUTTON_MIN_HIT_TARGET, nonNegative, nonEmpty2, own2, COLOR_TOKEN_PROPS, TYPOGRAPHY_TOKEN_PROPS, BUTTON_VARIANTS;
13327
13327
  var init_tokens = __esm({
13328
13328
  "../../core/ts/src/tokens.ts"() {
13329
+ "use strict";
13329
13330
  init_define_HHP_CATALOG();
13330
13331
  SYSTEM_FONT_FAMILY = "$system";
13331
13332
  TONAL_ELEVATION_ALPHA = [0, 0.05, 0.08, 0.11, 0.12, 0.14];
@@ -29711,7 +29712,6 @@ function resolveIdiom(tokens2, ctx = {}) {
29711
29712
  var IDIOM_CONTEXTS, UNSAFE_KEYS;
29712
29713
  var init_idiom = __esm({
29713
29714
  "../../core/ts/src/idiom.ts"() {
29714
- "use strict";
29715
29715
  init_define_HHP_CATALOG();
29716
29716
  IDIOM_CONTEXTS = {
29717
29717
  ios: { native: ["ios"] },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.1629.0",
3
+ "version": "0.1630.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": "6453d1c19dea465c05ceda27811ec7902794b8531b02ae98737d46e2"
75
+ "falconPackageHash": "93e70820f7ae6abcd9dbe6b9aac6e4bea336547eeda84431dc60f950"
76
76
  }