@wix/himalaya-cli 0.1784.0 → 0.1785.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.
Files changed (74) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/builder.d.ts +3 -0
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/l10n-strings.d.ts +8 -0
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +8 -3
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +3 -3
  5. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdui.mjs +3 -3
  6. package/dist/browser-plane/assets.json +5 -5
  7. package/dist/browser-plane/preview-deferred/{ef0d32c6770cbe9b695a3774a00fc3da19cd4f8655784f5cd935938054a34541.bin → bd05b082ca023da46cfeef63687d1ddc10eaed1a03e86c7671ca821954222066.bin} +1 -1
  8. package/dist/browser-plane/sw.js +1 -1
  9. package/dist/cli.mjs +81 -63
  10. package/dist/preview-assets.generated.bin +0 -0
  11. package/guides/component-reference.json +2 -2
  12. package/guides/component-reference.md +8 -3
  13. package/guides/himi-test.md +16 -1
  14. package/guides/image-preview.md +2 -0
  15. package/guides/push-cli-onboarding.md +1 -1
  16. package/package.json +2 -2
  17. package/templates/beauty-salon/l10n/en.json +1 -1
  18. package/templates/beauty-salon/tokens.json +8 -1
  19. package/templates/branded-lite/config.ts +2 -0
  20. package/templates/branded-lite/dev/index.ts +1249 -2307
  21. package/templates/branded-lite/l10n/ar.json +87 -28
  22. package/templates/branded-lite/l10n/cs.json +87 -28
  23. package/templates/branded-lite/l10n/da.json +87 -28
  24. package/templates/branded-lite/l10n/de.json +87 -28
  25. package/templates/branded-lite/l10n/el.json +87 -28
  26. package/templates/branded-lite/l10n/en.json +52 -34
  27. package/templates/branded-lite/l10n/es.json +87 -28
  28. package/templates/branded-lite/l10n/fi.json +87 -28
  29. package/templates/branded-lite/l10n/fr.json +87 -28
  30. package/templates/branded-lite/l10n/he.json +71 -23
  31. package/templates/branded-lite/l10n/hu.json +87 -28
  32. package/templates/branded-lite/l10n/id.json +87 -28
  33. package/templates/branded-lite/l10n/it.json +87 -28
  34. package/templates/branded-lite/l10n/ja.json +87 -28
  35. package/templates/branded-lite/l10n/ko.json +87 -28
  36. package/templates/branded-lite/l10n/lt.json +87 -28
  37. package/templates/branded-lite/l10n/nl.json +87 -28
  38. package/templates/branded-lite/l10n/no.json +87 -28
  39. package/templates/branded-lite/l10n/pl.json +87 -28
  40. package/templates/branded-lite/l10n/pt.json +87 -28
  41. package/templates/branded-lite/l10n/ru.json +87 -28
  42. package/templates/branded-lite/l10n/sv.json +87 -28
  43. package/templates/branded-lite/l10n/th.json +87 -28
  44. package/templates/branded-lite/l10n/tr.json +87 -28
  45. package/templates/branded-lite/l10n/uk.json +87 -28
  46. package/templates/branded-lite/l10n/vi.json +87 -28
  47. package/templates/branded-lite/l10n/zh.json +87 -28
  48. package/templates/branded-lite/tier5-src/_shared/wix-member-links.ts +2 -2
  49. package/templates/branded-lite/tier5-src/himi-branded-lite-galleries/index.ts +423 -117
  50. package/templates/branded-lite/tokens.json +3 -1
  51. package/templates/brandy/tier5-src/_shared/wix-member-links.ts +2 -2
  52. package/templates/community-club/l10n/en.json +1 -1
  53. package/templates/community-club/tokens.json +8 -1
  54. package/templates/events-meetups/l10n/en.json +1 -1
  55. package/templates/events-meetups/tokens.json +8 -1
  56. package/templates/fitness-gym/tier5-src/_shared/wix-member-links.ts +2 -2
  57. package/templates/gym-fitness/l10n/en.json +1 -1
  58. package/templates/gym-fitness/tokens.json +8 -1
  59. package/templates/medical-services/tier5-src/_shared/wix-member-links.ts +2 -2
  60. package/templates/nonprofit-cause/l10n/en.json +1 -1
  61. package/templates/nonprofit-cause/tokens.json +8 -1
  62. package/templates/podcast-creator/l10n/en.json +1 -1
  63. package/templates/podcast-creator/tokens.json +8 -1
  64. package/templates/portfolio-creative/l10n/en.json +1 -1
  65. package/templates/portfolio-creative/tokens.json +8 -1
  66. package/templates/restaurant/l10n/en.json +1 -1
  67. package/templates/restaurant/tokens.json +8 -1
  68. package/templates/retail-store/l10n/en.json +1 -1
  69. package/templates/retail-store/tokens.json +8 -1
  70. package/templates/salon-spa/config.ts +1 -1
  71. package/templates/salon-spa/dev/index.ts +141 -12
  72. package/templates/salon-spa/tier5-src/himi-branded-lite-galleries/index.ts +423 -117
  73. package/templates/yoga-studio/l10n/en.json +1 -1
  74. package/templates/yoga-studio/tokens.json +8 -1
@@ -289,6 +289,9 @@ export declare function image(props: {
289
289
  shape?: "rect" | "rounded" | "circle";
290
290
  aspectRatio?: number;
291
291
  placeholder?: string;
292
+ /** The line the built-in image preview shows under this photo (the image preview guide). Plain
293
+ * text; empty shows no line. Read from the node props on every renderer, not a proto field. */
294
+ caption?: string;
292
295
  tint?: string;
293
296
  renderingMode?: "template" | "original";
294
297
  }, opts?: {
@@ -16,6 +16,14 @@ export declare const STRING_FIELDS_BY_TYPE: Readonly<Record<string, readonly str
16
16
  * this module exists to prevent.
17
17
  */
18
18
  export declare const SECONDARY_FIELDS: ReadonlySet<string>;
19
+ /**
20
+ * Props named like copy that hold a design token on one component type, so neither the extractor
21
+ * nor `translate()` treats them as copy. `Image.placeholder` is the colour painted while the image
22
+ * loads (`"surfaceSecondary"`); a translated value would be an unknown token.
23
+ */
24
+ export declare const TOKEN_PROPS_BY_TYPE: ReadonlyMap<string, readonly string[]>;
25
+ /** The token props of a `body` whose `props` the walk is about to enter, or none. */
26
+ export declare const tokenPropsOf: (obj: Record<string, unknown>, k: string) => readonly string[] | undefined;
19
27
  /**
20
28
  * Prop names that plausibly render to a user but which `translate()` does NOT swap.
21
29
  *
@@ -864,6 +864,9 @@ export type ImageProps = {
864
864
  tint?: TokenName;
865
865
  /** #1048 — `"template"` tints via `tint`; `"original"` keeps the asset's colours. */
866
866
  renderingMode?: "template" | "original";
867
+ /** The one plain line the built-in image preview shows under this photo (the image preview guide).
868
+ * The image itself never draws it. */
869
+ caption?: string;
867
870
  };
868
871
  /**
869
872
  * A design-system icon reference: a catalog name, or a binding the renderer resolves at runtime.
@@ -3901,9 +3904,11 @@ export interface ScreenDescriptor {
3901
3904
  * content by its height. Static; an unknown value is "pinned". */
3902
3905
  stickyFooterPlacement?: string;
3903
3906
  /** A `$service:` path used as a token: when its value CHANGES to a non-empty one, the screen's
3904
- * own vertical scroll returns to the top (animated; none under Reduce Motion). The value on
3905
- * first render is a baseline; an empty or unresolved value does nothing. A worker fires it
3906
- * again by writing a new value (a counter, "x|3"). The rule of `LazyList.scrollToItemPath`. */
3907
+ * own vertical scroll returns to the top (animated; none under Reduce Motion). The first
3908
+ * RESOLVED value is a baseline (an unresolved one is none; give the token a starting value, or
3909
+ * the first tap only sets the baseline); an empty value does nothing. A worker fires it again
3910
+ * by writing a new value (a counter, "x|3"). The scroll is not the reader's: a LazyList
3911
+ * `onTopItemChange` or Agenda `onVisibleDateChange` in the screen does not report it. */
3907
3912
  scrollToTopPath?: string;
3908
3913
  etag?: string;
3909
3914
  cacheControl?: CacheControl;
@@ -15349,7 +15349,8 @@ var WIX_MEMBER_PUSH_DESTINATIONS = [
15349
15349
  },
15350
15350
  {
15351
15351
  // Photo Albums: `listId` is the album. Item and discussion-tab paths are longer, so they
15352
- // do not match the item route.
15352
+ // do not match the item route. No screen reads a Photo Albums album (a Pro Gallery id is
15353
+ // a different thing), so the tap opens the galleries list, like a Shared Gallery item.
15353
15354
  id: "galleries.album",
15354
15355
  vertical: "galleries",
15355
15356
  audience: "member",
@@ -15359,8 +15360,7 @@ var WIX_MEMBER_PUSH_DESTINATIONS = [
15359
15360
  "spaces/lists/:site/:listId/:tab",
15360
15361
  "lists/:site/:listId/:itemId"
15361
15362
  ],
15362
- screenParam: "listId",
15363
- canonicalScreen: "himi_photo_album"
15363
+ canonicalScreen: "himi_galleries"
15364
15364
  },
15365
15365
  {
15366
15366
  id: "notifications.list",
@@ -8633,7 +8633,8 @@ var WIX_MEMBER_PUSH_DESTINATIONS = [
8633
8633
  },
8634
8634
  {
8635
8635
  // Photo Albums: `listId` is the album. Item and discussion-tab paths are longer, so they
8636
- // do not match the item route.
8636
+ // do not match the item route. No screen reads a Photo Albums album (a Pro Gallery id is
8637
+ // a different thing), so the tap opens the galleries list, like a Shared Gallery item.
8637
8638
  id: "galleries.album",
8638
8639
  vertical: "galleries",
8639
8640
  audience: "member",
@@ -8643,8 +8644,7 @@ var WIX_MEMBER_PUSH_DESTINATIONS = [
8643
8644
  "spaces/lists/:site/:listId/:tab",
8644
8645
  "lists/:site/:listId/:itemId"
8645
8646
  ],
8646
- screenParam: "listId",
8647
- canonicalScreen: "himi_photo_album"
8647
+ canonicalScreen: "himi_galleries"
8648
8648
  },
8649
8649
  {
8650
8650
  id: "notifications.list",
@@ -2,7 +2,7 @@
2
2
  "files": [
3
3
  {
4
4
  "name": "sw.js",
5
- "bytes": 2603268
5
+ "bytes": 2603304
6
6
  },
7
7
  {
8
8
  "name": "host.html",
@@ -21,7 +21,7 @@
21
21
  "bytes": 24320
22
22
  },
23
23
  {
24
- "name": "preview-deferred/ef0d32c6770cbe9b695a3774a00fc3da19cd4f8655784f5cd935938054a34541.bin",
24
+ "name": "preview-deferred/bd05b082ca023da46cfeef63687d1ddc10eaed1a03e86c7671ca821954222066.bin",
25
25
  "bytes": 488215
26
26
  },
27
27
  {
@@ -79,10 +79,10 @@
79
79
  ],
80
80
  "deferred": [
81
81
  {
82
- "key": "assets/pdf-91-oDBuu.js",
82
+ "key": "assets/pdf-f0zWjeR_.js",
83
83
  "contentType": "application/javascript; charset=utf-8",
84
- "sha256": "ef0d32c6770cbe9b695a3774a00fc3da19cd4f8655784f5cd935938054a34541",
85
- "file": "preview-deferred/ef0d32c6770cbe9b695a3774a00fc3da19cd4f8655784f5cd935938054a34541.bin"
84
+ "sha256": "bd05b082ca023da46cfeef63687d1ddc10eaed1a03e86c7671ca821954222066",
85
+ "file": "preview-deferred/bd05b082ca023da46cfeef63687d1ddc10eaed1a03e86c7671ca821954222066.bin"
86
86
  },
87
87
  {
88
88
  "key": "assets/pdf.worker.min-BGnVRhRG.js",