origam 2.37.25 → 2.37.26

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.
package/CHANGELOG.md CHANGED
@@ -18,6 +18,15 @@ This project follows [Semantic Versioning](https://semver.org).
18
18
 
19
19
  ## [Unreleased]
20
20
 
21
+ ## [2.37.26] - 2026-11-02
22
+
23
+ ### Fixed — `OrigamInfiniteScrollIntersect` : `rootRef` est optionnel (#1295)
24
+
25
+ `rootRef` était déclaré requis. Pourtant le composant fonctionne sans lui : son `IntersectionObserver` est alors créé sans `root` et observe le viewport. Un usage légitime déclenchait donc le warn Vue « Missing required prop ».
26
+
27
+ - `rootRef?: HTMLElement` dans l'interface. La doc du composant, qui n'était qu'un stub, a maintenant un tableau des props qui précise le repli sur le viewport. `OrigamInfiniteScroll` passe toujours son `rootRef`.
28
+ - Vérifié : le TU (montage sans `rootRef`, aucun warn, `root` reste `undefined`) est rouge sur le parent et vert après ; TU InfiniteScroll 19/19 (PR #1298).
29
+
21
30
  ## [2.37.25] - 2026-11-02
22
31
 
23
32
  ### Fixed — champs : le `role` n'est plus posé deux fois (wrapper + input) (#1247)
@@ -14,7 +14,7 @@ import { useIntersectionObserver } from "../../composables/Commons/intersectionO
14
14
  import { useProps } from "../../composables/Commons/props.composable";
15
15
  const props = defineProps({
16
16
  side: { type: null, required: false },
17
- rootRef: { type: null, required: true },
17
+ rootRef: { type: null, required: false },
18
18
  margin: { type: String, required: false },
19
19
  id: { type: String, required: false },
20
20
  class: { type: [String, Array, Object], required: false },
@@ -12,7 +12,7 @@ import type { TInfiniteScrollSide } from '../../types/InfiniteScroll/infinite-sc
12
12
  ********************************************************/
13
13
  export interface IInfiniteScrollIntersectProps extends ICommonsComponentProps {
14
14
  side?: TInfiniteScrollSide;
15
- rootRef: HTMLElement;
15
+ rootRef?: HTMLElement;
16
16
  margin?: string;
17
17
  }
18
18
  /** Emits fired by `<OrigamInfiniteScrollIntersect>` — the lower-level
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "origam",
3
- "version": "2.37.25",
3
+ "version": "2.37.26",
4
4
  "type": "module",
5
5
  "description": "origam — a Vue 3 design system with multi-theme design tokens, CSS-first components and TypeScript types.",
6
6
  "keywords": [