@wix/himalaya-cli 0.1516.0 → 0.1518.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 (42) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/builder.d.ts +7 -0
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +8 -0
  3. package/dist/cli.mjs +78 -47
  4. package/dist/preview-assets.generated.bin +0 -0
  5. package/guides/recipe-dynamic-list.md +19 -11
  6. package/package.json +2 -2
  7. package/templates/beauty-salon/tier5-src/_shared/branded-lite-hosted.ts +1 -2
  8. package/templates/beauty-salon/tier5-src/_shared/collection-contract.ts +0 -1
  9. package/templates/beauty-salon-owner/tier5-src/_shared/collection-contract.ts +0 -1
  10. package/templates/branded-lite/config.ts +6 -13
  11. package/templates/branded-lite/dev/index.ts +5 -100
  12. package/templates/branded-lite/himalaya.content.json +1 -4
  13. package/templates/branded-lite/tier5-src/_shared/branded-lite-hosted.ts +1 -2
  14. package/templates/branded-lite/tier5-src/_shared/collection-contract.ts +0 -1
  15. package/templates/community-club/tier5-src/_shared/branded-lite-hosted.ts +1 -2
  16. package/templates/community-club/tier5-src/_shared/collection-contract.ts +0 -1
  17. package/templates/community-club-owner/tier5-src/_shared/collection-contract.ts +0 -1
  18. package/templates/events-meetups/tier5-src/_shared/branded-lite-hosted.ts +1 -2
  19. package/templates/events-meetups/tier5-src/_shared/collection-contract.ts +0 -1
  20. package/templates/events-meetups-owner/tier5-src/_shared/collection-contract.ts +0 -1
  21. package/templates/gym-fitness/tier5-src/_shared/branded-lite-hosted.ts +1 -2
  22. package/templates/gym-fitness/tier5-src/_shared/collection-contract.ts +0 -1
  23. package/templates/gym-fitness-owner/tier5-src/_shared/collection-contract.ts +0 -1
  24. package/templates/nonprofit-cause/tier5-src/_shared/branded-lite-hosted.ts +1 -2
  25. package/templates/nonprofit-cause/tier5-src/_shared/collection-contract.ts +0 -1
  26. package/templates/nonprofit-cause-owner/tier5-src/_shared/collection-contract.ts +0 -1
  27. package/templates/owner-lite/tier5-src/_shared/collection-contract.ts +0 -1
  28. package/templates/podcast-creator/tier5-src/_shared/branded-lite-hosted.ts +1 -2
  29. package/templates/podcast-creator/tier5-src/_shared/collection-contract.ts +0 -1
  30. package/templates/podcast-creator-owner/tier5-src/_shared/collection-contract.ts +0 -1
  31. package/templates/portfolio-creative/tier5-src/_shared/branded-lite-hosted.ts +1 -2
  32. package/templates/portfolio-creative/tier5-src/_shared/collection-contract.ts +0 -1
  33. package/templates/portfolio-creative-owner/tier5-src/_shared/collection-contract.ts +0 -1
  34. package/templates/restaurant/tier5-src/_shared/branded-lite-hosted.ts +1 -2
  35. package/templates/restaurant/tier5-src/_shared/collection-contract.ts +0 -1
  36. package/templates/restaurant-owner/tier5-src/_shared/collection-contract.ts +0 -1
  37. package/templates/retail-store/tier5-src/_shared/branded-lite-hosted.ts +1 -2
  38. package/templates/retail-store/tier5-src/_shared/collection-contract.ts +0 -1
  39. package/templates/retail-store-owner/tier5-src/_shared/collection-contract.ts +0 -1
  40. package/templates/yoga-studio/tier5-src/_shared/branded-lite-hosted.ts +1 -2
  41. package/templates/yoga-studio/tier5-src/_shared/collection-contract.ts +0 -1
  42. package/templates/yoga-studio-owner/tier5-src/_shared/collection-contract.ts +0 -1
@@ -1677,6 +1677,13 @@ export declare function grid(props: {
1677
1677
  /** RFC 0037 — per-cell entrance delay (`index * staggerMs`); cells need their own
1678
1678
  * `transition`/`appear` for it to show. Honored on the `itemsPath` path too. */
1679
1679
  staggerMs?: number;
1680
+ /** #4672 — LazyList's pull-to-refresh and cursor pagination, same semantics. */
1681
+ onPullToRefresh?: ActionShape;
1682
+ pagination?: {
1683
+ cursor?: string;
1684
+ onLoadMore: ActionShape;
1685
+ pageSize?: number;
1686
+ };
1680
1687
  }, opts?: {
1681
1688
  id?: string;
1682
1689
  }): Component;
@@ -540,6 +540,14 @@ export interface GridProps {
540
540
  * row. Reduced motion collapses it to 0. Absent/0 ⇒ no cascade, which is the back-compat
541
541
  * default. */
542
542
  staggerMs?: number;
543
+ /** #4672 — pull-to-refresh, exactly as on `LazyList`: the screen's refresh gesture dispatches
544
+ * this action (the shells find the first `onPullToRefresh` in the payload, list or grid). */
545
+ onPullToRefresh?: Action;
546
+ /** #4672 — infinite scroll, as on `LazyList`: `onLoadMore` fires once per published non-empty
547
+ * `cursor` (usually a `$service:` binding) when the grid's trailing edge comes into view; a cursor
548
+ * the worker publishes again (a refresh back to page 2) pages again. An empty cursor is
549
+ * exhausted, and nothing fires. Works with `items` and `itemsPath`. */
550
+ pagination?: Pagination;
543
551
  }
544
552
  export interface CardProps {
545
553
  children: Component[];