@vezham/config 26.3.2 → 27.0.0-alpha.2

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.
@@ -8,6 +8,16 @@ var ResizeObserverMock = class {
8
8
  unobserve = noop;
9
9
  disconnect = noop;
10
10
  };
11
+ var IntersectionObserverMock = class {
12
+ root = null;
13
+ rootMargin = "";
14
+ scrollMargin = "";
15
+ thresholds = [];
16
+ observe = noop;
17
+ unobserve = noop;
18
+ disconnect = noop;
19
+ takeRecords = () => [];
20
+ };
11
21
  expect.extend(matchers);
12
22
  beforeEach(() => {
13
23
  window.scrollTo = vi.fn();
@@ -30,6 +40,10 @@ if (typeof globalThis.ResizeObserver !== "function") Object.defineProperty(globa
30
40
  writable: true,
31
41
  value: ResizeObserverMock
32
42
  });
43
+ if (typeof globalThis.IntersectionObserver !== "function") Object.defineProperty(globalThis, "IntersectionObserver", {
44
+ writable: true,
45
+ value: IntersectionObserverMock
46
+ });
33
47
  afterEach(() => {
34
48
  cleanup();
35
49
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vezham/config",
3
- "version": "26.3.2",
3
+ "version": "27.0.0-alpha.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/vezham/vx-fe-pkgs.git",