@wix/himalaya-cli 0.1494.0 → 0.1495.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 (79) 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/sdk/live-activity/src/index.d.ts +4 -0
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +2 -0
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/ecom/src/extensions.d.ts +16 -0
  5. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/stores-v1/src/display.d.ts +24 -0
  6. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/live-activity.mjs +3 -1
  7. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdui.mjs +1 -1
  8. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-ecom.mjs +14 -0
  9. package/dist/cli.mjs +3584 -2540
  10. package/dist/preview-assets.generated.bin +0 -0
  11. package/guides/himi-json-output.md +46 -4
  12. package/guides/iap-products.md +68 -9
  13. package/guides/one-app-to-himi-app.md +80 -5
  14. package/guides/sdk-reference.json +11 -256
  15. package/guides/widgets.md +5 -3
  16. package/package.json +2 -2
  17. package/templates/beauty-salon/dev/index.ts +2590 -1034
  18. package/templates/beauty-salon/himalaya.content.json +1 -1
  19. package/templates/beauty-salon/tier5-src/_shared/himi-store-collection.ts +6 -3
  20. package/templates/beauty-salon/tier5-src/_shared/himi-store-saved.ts +7 -1
  21. package/templates/beauty-salon/tier5-src/himi-branded-lite-cart/index.ts +256 -19
  22. package/templates/beauty-salon/tier5-src/himi-store-product/index.ts +196 -34
  23. package/templates/beauty-salon/tier5-src/himi-store-saved/index.ts +21 -5
  24. package/templates/beauty-salon/tier5-src/himi-store-shop/index.ts +14 -2
  25. package/templates/beauty-salon/tokens.json +15 -0
  26. package/templates/branded-lite/dev/index.ts +2696 -1140
  27. package/templates/branded-lite/himalaya.content.json +1 -1
  28. package/templates/branded-lite/tier5-src/_shared/himi-store-collection.ts +6 -3
  29. package/templates/branded-lite/tier5-src/_shared/himi-store-saved.ts +7 -1
  30. package/templates/branded-lite/tier5-src/himi-branded-lite-cart/index.ts +256 -19
  31. package/templates/branded-lite/tier5-src/himi-store-product/index.ts +196 -34
  32. package/templates/branded-lite/tier5-src/himi-store-saved/index.ts +21 -5
  33. package/templates/branded-lite/tier5-src/himi-store-shop/index.ts +14 -2
  34. package/templates/branded-lite/tokens.json +8 -0
  35. package/templates/community-club/dev/index.ts +1 -1
  36. package/templates/community-club/tier5-src/_shared/himi-store-saved.ts +7 -1
  37. package/templates/community-club/tokens.json +15 -0
  38. package/templates/events-meetups/dev/index.ts +1 -1
  39. package/templates/events-meetups/tier5-src/_shared/himi-store-saved.ts +7 -1
  40. package/templates/events-meetups/tokens.json +15 -0
  41. package/templates/gym-fitness/dev/index.ts +2695 -1139
  42. package/templates/gym-fitness/himalaya.content.json +1 -1
  43. package/templates/gym-fitness/tier5-src/_shared/himi-store-collection.ts +6 -3
  44. package/templates/gym-fitness/tier5-src/_shared/himi-store-saved.ts +7 -1
  45. package/templates/gym-fitness/tier5-src/himi-branded-lite-cart/index.ts +256 -19
  46. package/templates/gym-fitness/tier5-src/himi-store-product/index.ts +196 -34
  47. package/templates/gym-fitness/tier5-src/himi-store-saved/index.ts +21 -5
  48. package/templates/gym-fitness/tier5-src/himi-store-shop/index.ts +14 -2
  49. package/templates/gym-fitness/tokens.json +15 -0
  50. package/templates/nonprofit-cause/dev/index.ts +1 -1
  51. package/templates/nonprofit-cause/tier5-src/_shared/himi-store-saved.ts +7 -1
  52. package/templates/nonprofit-cause/tokens.json +15 -0
  53. package/templates/podcast-creator/dev/index.ts +1 -1
  54. package/templates/podcast-creator/tier5-src/_shared/himi-store-saved.ts +7 -1
  55. package/templates/podcast-creator/tokens.json +15 -0
  56. package/templates/portfolio-creative/dev/index.ts +2569 -1013
  57. package/templates/portfolio-creative/himalaya.content.json +1 -1
  58. package/templates/portfolio-creative/tier5-src/_shared/himi-store-collection.ts +6 -3
  59. package/templates/portfolio-creative/tier5-src/_shared/himi-store-saved.ts +7 -1
  60. package/templates/portfolio-creative/tier5-src/himi-branded-lite-cart/index.ts +256 -19
  61. package/templates/portfolio-creative/tier5-src/himi-store-product/index.ts +196 -34
  62. package/templates/portfolio-creative/tier5-src/himi-store-saved/index.ts +21 -5
  63. package/templates/portfolio-creative/tier5-src/himi-store-shop/index.ts +14 -2
  64. package/templates/portfolio-creative/tokens.json +15 -0
  65. package/templates/restaurant/dev/index.ts +1 -1
  66. package/templates/restaurant/tier5-src/_shared/himi-store-saved.ts +7 -1
  67. package/templates/restaurant/tokens.json +15 -0
  68. package/templates/retail-store/dev/index.ts +2541 -985
  69. package/templates/retail-store/himalaya.content.json +1 -1
  70. package/templates/retail-store/tier5-src/_shared/himi-store-collection.ts +6 -3
  71. package/templates/retail-store/tier5-src/_shared/himi-store-saved.ts +7 -1
  72. package/templates/retail-store/tier5-src/himi-branded-lite-cart/index.ts +256 -19
  73. package/templates/retail-store/tier5-src/himi-store-product/index.ts +196 -34
  74. package/templates/retail-store/tier5-src/himi-store-saved/index.ts +21 -5
  75. package/templates/retail-store/tier5-src/himi-store-shop/index.ts +14 -2
  76. package/templates/retail-store/tokens.json +15 -0
  77. package/templates/yoga-studio/dev/index.ts +1 -1
  78. package/templates/yoga-studio/tier5-src/_shared/himi-store-saved.ts +7 -1
  79. package/templates/yoga-studio/tokens.json +15 -0
@@ -5,6 +5,8 @@ export interface SavedProduct {
5
5
  name: string;
6
6
  price: string;
7
7
  image: string;
8
+ wasPrice?: string;
9
+ swatches?: string[];
8
10
  }
9
11
  type StorageLike = { getItem(key: string): string | null; setItem(key: string, value: string): void };
10
12
  const KEY = "himi-store:saved-products:v1";
@@ -24,7 +26,11 @@ export function readSavedProducts(): SavedProduct[] {
24
26
  if (!value || typeof value !== "object") continue;
25
27
  const row = value as Record<string, unknown>;
26
28
  if (typeof row.id !== "string" || !row.id.trim() || typeof row.name !== "string") continue;
27
- rows.set(row.id, { id: row.id, name: row.name, price: typeof row.price === "string" ? row.price : "", image: typeof row.image === "string" ? row.image : "" });
29
+ const swatches = Array.isArray(row.swatches)
30
+ ? row.swatches.filter((color): color is string => typeof color === "string" && /^#(?:[0-9a-f]{3}|[0-9a-f]{6})$/i.test(color)).slice(0, 5)
31
+ : [];
32
+ rows.set(row.id, { id: row.id, name: row.name, price: typeof row.price === "string" ? row.price : "", image: typeof row.image === "string" ? row.image : "",
33
+ ...(typeof row.wasPrice === "string" && row.wasPrice ? { wasPrice: row.wasPrice } : {}), ...(swatches.length ? { swatches } : {}) });
28
34
  }
29
35
  return [...rows.values()];
30
36
  }
@@ -157,6 +157,12 @@
157
157
  "letterSpacing": 0.6,
158
158
  "family": "Wix Madefor Text"
159
159
  },
160
+ "footnoteRegular": {
161
+ "size": 14,
162
+ "weight": 400,
163
+ "line": 1.4,
164
+ "letterSpacing": 1
165
+ },
160
166
  "caption": {
161
167
  "size": 12,
162
168
  "weight": 400,
@@ -179,6 +185,15 @@
179
185
  "family": "Wix Madefor Display"
180
186
  }
181
187
  },
188
+ "controls": {
189
+ "button": {
190
+ "variants": {
191
+ "tertiary": {
192
+ "label": "textPrimary"
193
+ }
194
+ }
195
+ }
196
+ },
182
197
  "radius": {
183
198
  "sm": 10,
184
199
  "md": 14,