@wix/himalaya-cli 0.1672.0 → 0.1674.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 (44) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/legacy-import/src/index.d.ts +16 -0
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/legacy-import.d.ts +21 -3
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/online-programs/src/index.d.ts +4 -0
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +14 -2
  5. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/legacy-import.mjs +32 -1
  6. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-online-programs.mjs +25 -1
  7. package/dist/browser-plane/assets.json +5 -5
  8. package/dist/browser-plane/preview-deferred/{cf2ac6865a1e6be5cccec4f2538bf18bbbf121a5f5971ad46212bf3a848ec35c.bin → 0f5533bf4197dc43489701db18378cecdb02db230a0fc2603e764999544513da.bin} +1 -1
  9. package/dist/browser-plane/sw.js +6 -6
  10. package/dist/cli.mjs +366 -110
  11. package/dist/preview-assets.generated.bin +0 -0
  12. package/guides/himi-json-output.md +5 -0
  13. package/guides/releasing-with-himi-serve.md +10 -2
  14. package/guides/sdk-reference.json +17 -3
  15. package/guides/skill.md +1 -0
  16. package/guides/web-page-sdk-reference.md +1 -1
  17. package/package.json +2 -2
  18. package/templates/beauty-salon/l10n/en.json +1 -1
  19. package/templates/branded-lite/dev/index.ts +6607 -2231
  20. package/templates/branded-lite/l10n/en.json +25 -15
  21. package/templates/branded-lite/l10n/he.json +34 -34
  22. package/templates/branded-lite/tier5-src/_shared/himi-cms.ts +10 -3
  23. package/templates/branded-lite/tier5-src/_shared/program-standing.ts +6 -0
  24. package/templates/branded-lite/tier5-src/himi-branded-lite-cms/index.ts +7 -0
  25. package/templates/branded-lite/tier5-src/himi-branded-lite-cms-collection/index.ts +527 -138
  26. package/templates/branded-lite/tier5-src/himi-branded-lite-member-programs/index.ts +36 -7
  27. package/templates/branded-lite/tier5-src/himi-branded-lite-program/index.ts +30 -17
  28. package/templates/community-club/dev/index.ts +2459 -271
  29. package/templates/community-club/l10n/en.json +16 -11
  30. package/templates/community-club/l10n/he.json +38 -34
  31. package/templates/community-club/tier5-src/_shared/himi-cms.ts +10 -3
  32. package/templates/community-club/tier5-src/himi-branded-lite-cms/index.ts +7 -0
  33. package/templates/community-club/tier5-src/himi-branded-lite-cms-collection/index.ts +527 -138
  34. package/templates/events-meetups/l10n/en.json +1 -1
  35. package/templates/gym-fitness/l10n/en.json +1 -1
  36. package/templates/nonprofit-cause/l10n/en.json +1 -1
  37. package/templates/podcast-creator/l10n/en.json +1 -1
  38. package/templates/portfolio-creative/l10n/en.json +1 -1
  39. package/templates/restaurant/l10n/en.json +1 -1
  40. package/templates/retail-store/l10n/en.json +1 -1
  41. package/templates/yoga-studio/l10n/en.json +1 -1
  42. package/templates/yoga-studio/tier5-src/_shared/program-standing.ts +6 -0
  43. package/templates/yoga-studio/tier5-src/himi-branded-lite-member-programs/index.ts +36 -7
  44. package/templates/yoga-studio/tier5-src/himi-branded-lite-program/index.ts +30 -17
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$source": "en",
3
- "$generated": "2026-11-11T22:30:17.102Z",
3
+ "$generated": "2026-11-11T23:43:24.040Z",
4
4
  "messages": {
5
5
  "h_009bd0adf237": {
6
6
  "source": "Custom collections published by this business.",
@@ -633,13 +633,6 @@
633
633
  "key": "groups.loadingText",
634
634
  "keyOrigin": "string-table"
635
635
  },
636
- "h_83bc238044da": {
637
- "source": "Search content",
638
- "kind": "TextField.placeholder",
639
- "translation": "",
640
- "key": "cmsCollection.searchPlaceholder",
641
- "keyOrigin": "string-table"
642
- },
643
636
  "h_83d6f7788309": {
644
637
  "source": "Hide post",
645
638
  "kind": "Text.text",
@@ -949,6 +942,13 @@
949
942
  "key": "accountSettings.title",
950
943
  "keyOrigin": "string-table"
951
944
  },
945
+ "h_b7dff194ca4f": {
946
+ "source": "Couldn't refresh. Showing saved content.",
947
+ "kind": "Banner.title",
948
+ "translation": "",
949
+ "key": "cmsCollection.refreshFailedTitle",
950
+ "keyOrigin": "string-table"
951
+ },
952
952
  "h_b80613d496b0": {
953
953
  "source": "Sort results",
954
954
  "kind": "Text.text",
@@ -1194,11 +1194,11 @@
1194
1194
  "key": "collection.filterTitle",
1195
1195
  "keyOrigin": "string-table"
1196
1196
  },
1197
- "h_dbc8c5decc9f": {
1198
- "source": "Loading content...",
1197
+ "h_d9bb43777c97": {
1198
+ "source": "Couldn't load more.",
1199
1199
  "kind": "Text.text",
1200
1200
  "translation": "",
1201
- "key": "cmsCollection.loadingText",
1201
+ "key": "cmsCollection.pageError",
1202
1202
  "keyOrigin": "string-table"
1203
1203
  },
1204
1204
  "h_dc1649a16c14": {
@@ -1689,6 +1689,11 @@
1689
1689
  "kind": "Text.text",
1690
1690
  "translation": ""
1691
1691
  },
1692
+ "h_b1214d965dce": {
1693
+ "source": "Sign in from Profile to view this member collection.",
1694
+ "kind": "ErrorState.body",
1695
+ "translation": ""
1696
+ },
1692
1697
  "h_b4f57cd0cd5c": {
1693
1698
  "source": "Move up",
1694
1699
  "kind": "Button.title",
@@ -401,11 +401,6 @@
401
401
  "key": "groups.loadingText",
402
402
  "translation": "טוען קבוצות..."
403
403
  },
404
- "h_83bc238044da": {
405
- "source": "Search content",
406
- "key": "cmsCollection.searchPlaceholder",
407
- "translation": "חיפוש תוכן"
408
- },
409
404
  "h_8500c9c784a2": {
410
405
  "source": "Sign in to see your activity in one place.",
411
406
  "key": "account.guestBody",
@@ -732,11 +727,6 @@
732
727
  "translation": "הצגה",
733
728
  "key": "collection.filterTitle"
734
729
  },
735
- "h_dbc8c5decc9f": {
736
- "source": "Loading content...",
737
- "key": "cmsCollection.loadingText",
738
- "translation": "טוען תוכן..."
739
- },
740
730
  "h_dc1649a16c14": {
741
731
  "source": "Sign out",
742
732
  "key": "account.signOutCta",
@@ -1046,8 +1036,18 @@
1046
1036
  },
1047
1037
  "h_a00ed42505ab": {
1048
1038
  "source": "No collections match your search.",
1049
- "key": "cms.searchEmptyText",
1050
- "translation": "אין אוספים שתואמים לחיפוש."
1039
+ "translation": "אין אוספים שתואמים לחיפוש.",
1040
+ "key": "cms.searchEmptyText"
1041
+ },
1042
+ "h_b7dff194ca4f": {
1043
+ "source": "Couldn't refresh. Showing saved content.",
1044
+ "key": "cmsCollection.refreshFailedTitle",
1045
+ "translation": "הרענון נכשל. מוצג תוכן שמור."
1046
+ },
1047
+ "h_d9bb43777c97": {
1048
+ "source": "Couldn't load more.",
1049
+ "key": "cmsCollection.pageError",
1050
+ "translation": "לא ניתן לטעון עוד."
1051
1051
  },
1052
1052
  "h_03e89418ffdf": {
1053
1053
  "source": "Your Home",
@@ -1542,6 +1542,14 @@
1542
1542
  "source": "Remove from saved",
1543
1543
  "translation": "להסיר מהשמורים"
1544
1544
  },
1545
+ "h_961d5eb108a8": {
1546
+ "source": "{count} item",
1547
+ "translation": "{count} פריט"
1548
+ },
1549
+ "h_e3cc227ef730": {
1550
+ "source": "{count} items",
1551
+ "translation": "{count} פריטים"
1552
+ },
1545
1553
  "h_a1bf92eff40d": {
1546
1554
  "source": "Cancelled",
1547
1555
  "translation": "בוטלה"
@@ -2008,31 +2016,11 @@
2008
2016
  },
2009
2017
  "h_ca6595de9989": {
2010
2018
  "source": "This collection has no published items yet.",
2011
- "translation": "באוסף הזה אין עדיין פריטים שפורסמו."
2012
- },
2013
- "h_499a7c5c2f12": {
2014
- "source": "Visible to visitors",
2015
- "translation": "גלוי למבקרים"
2016
- },
2017
- "h_2dbcf83bf87c": {
2018
- "source": "Visible to signed-in members",
2019
- "translation": "גלוי לחברים מחוברים"
2020
- },
2021
- "h_5e07c284bbe3": {
2022
- "source": "This collection is not configured for the app.",
2023
- "translation": "האוסף הזה לא הוגדר באפליקציה."
2019
+ "translation": "באוסף הזה עדיין אין פריטים שפורסמו."
2024
2020
  },
2025
2021
  "h_b1214d965dce": {
2026
2022
  "source": "Sign in from Profile to view this member collection.",
2027
- "translation": "יש להתחבר מהפרופיל כדי לראות את אוסף החברים הזה."
2028
- },
2029
- "h_bb7944e0504e": {
2030
- "source": "This collection is temporarily unavailable.",
2031
- "translation": "האוסף הזה אינו זמין זמנית."
2032
- },
2033
- "h_fc086b0b64a1": {
2034
- "source": "No items match your search.",
2035
- "translation": "אין פריטים שתואמים לחיפוש."
2023
+ "translation": "התחברו מהפרופיל כדי לצפות באוסף החברים הזה."
2036
2024
  },
2037
2025
  "h_5764c225fc46": {
2038
2026
  "source": "Shared an update.",
@@ -2417,6 +2405,22 @@
2417
2405
  "h_50cc12f69e8f": {
2418
2406
  "source": "Unpaid",
2419
2407
  "translation": "לא שולם"
2408
+ },
2409
+ "h_0084e8faecb6": {
2410
+ "source": "Collapsed",
2411
+ "translation": "מכווץ"
2412
+ },
2413
+ "h_367521b67e6c": {
2414
+ "source": "Shows the full text",
2415
+ "translation": "מציג את הטקסט המלא"
2416
+ },
2417
+ "h_673f121d6269": {
2418
+ "source": "Hides the full text",
2419
+ "translation": "מסתיר את הטקסט המלא"
2420
+ },
2421
+ "h_6d1704748e0c": {
2422
+ "source": "Expanded",
2423
+ "translation": "מורחב"
2420
2424
  }
2421
2425
  }
2422
2426
  }
@@ -5,6 +5,7 @@ import {
5
5
  updateDataItem,
6
6
  removeDataItem,
7
7
  type WixDataItem,
8
+ type WixDataSort,
8
9
  type WixQueryDataItemsResponse,
9
10
  } from "@himalaya/wix-data";
10
11
 
@@ -52,7 +53,13 @@ export function collectionArg(arg: unknown): CmsCollectionDefinition | undefined
52
53
  return collectionDefinitions(typeof raw === "string" ? `[${raw}]` : "")[0];
53
54
  }
54
55
 
55
- /** Query CMS items — typed `@himalaya/wix-data` client. */
56
- export async function queryDataItems(dataCollectionId: string, limit = 50): Promise<WixQueryDataItemsResponse> {
57
- return queryWixDataItems(dataCollectionId, limit);
56
+ /** Query CMS items — typed `@himalaya/wix-data` client. With `page` the read pages by cursor: `filter` and `sort`
57
+ * belong to the FIRST request only (the cursor carries them, and the SDK drops them once one is passed). */
58
+ export async function queryDataItems(
59
+ dataCollectionId: string,
60
+ limit = 50,
61
+ page?: { cursor?: string; filter?: Record<string, unknown>; sort?: WixDataSort[] },
62
+ ): Promise<WixQueryDataItemsResponse> {
63
+ if (!page) return queryWixDataItems(dataCollectionId, limit);
64
+ return queryWixDataItems(dataCollectionId, limit, page.filter, false, 0, page.sort, { cursorPaging: { cursor: page.cursor } });
58
65
  }
@@ -205,6 +205,13 @@ const svc = defineService<State, {
205
205
  },
206
206
  });
207
207
 
208
+ // Older shipped runtimes ignore the hydration opt-outs above. Match the collection worker's
209
+ // post-registration reset so last run's counts/search visibility never replace this contract.
210
+ if ((globalThis as { himalaya?: { hydrationOptOut?: unknown } }).himalaya?.hydrationOptOut !== true) {
211
+ const live = (svc as { getState?: () => State | undefined }).getState?.();
212
+ if (live && typeof live === "object") Object.assign(live, initialState);
213
+ }
214
+
208
215
  // NO module-scope `startCounts()`: a bridge call made during the bundle's own evaluation stalls on
209
216
  // the Android WebView (see himi-owner-lite-aria-history). The names paint from the baked input, and
210
217
  // onAppear's `load` starts the counts right after that first frame.