@artsy/palette-charts 39.3.0-canary.20ffe4c1.0 → 39.4.0-canary.1420.31535.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.
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ export declare const MousePositionContext: React.Context<{
3
+ x: number;
4
+ y: number;
5
+ }>;
6
+ export declare const ProvideMousePosition: React.FC<React.PropsWithChildren<unknown>>;
@@ -0,0 +1,16 @@
1
+ import { RefObject } from "react";
2
+ interface UseIntersectionObserverProperties {
3
+ ref?: RefObject<Element> | null;
4
+ once?: boolean;
5
+ options?: {
6
+ threshold: number | number[];
7
+ root?: Element;
8
+ rootMargin?: string;
9
+ };
10
+ onIntersection?: (entries: IntersectionObserverEntry[]) => void;
11
+ onOffIntersection?: (entries: IntersectionObserverEntry[]) => void;
12
+ }
13
+ export declare const useIntersectionObserver: ({ once, options, onIntersection, onOffIntersection, }: UseIntersectionObserverProperties) => {
14
+ ref: import("react").MutableRefObject<HTMLElement>;
15
+ };
16
+ export {};
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Returns width of container element
3
+ * @param ref reference to wrapper component
4
+ */
5
+ export declare const useWrapperWidth: (ref: React.RefObject<HTMLElement>) => number;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@artsy/palette-charts",
3
3
  "sideEffects": false,
4
- "version": "39.3.0-canary.20ffe4c1.0",
4
+ "version": "39.4.0-canary.1420.31535.0",
5
5
  "description": "Design system library for react components",
6
6
  "main": "dist/index.js",
7
7
  "publishConfig": {
@@ -49,6 +49,7 @@
49
49
  },
50
50
  "devDependencies": {
51
51
  "@artsy/auto-config": "1.2.0",
52
+ "@artsy/palette": "40.5.0-canary.1420.31535.0",
52
53
  "@babel/cli": "7.12.16",
53
54
  "@babel/core": "7.12.16",
54
55
  "@babel/plugin-proposal-class-properties": "7.12.13",
@@ -179,5 +180,5 @@
179
180
  "url": "http://localhost"
180
181
  }
181
182
  },
182
- "gitHead": "20ffe4c12cfe52ad605ed2b307a6915a105a643a"
183
+ "gitHead": "1dcfbb64038528206671557ce8416a427f01699a"
183
184
  }