baseui 0.0.0-alpha-bf67a1f → 0.0.0-alpha-afa08b4

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.
@@ -46,8 +46,10 @@ function MeasureColumn(_ref) {
46
46
 
47
47
  var ref = (0, React.useRef)();
48
48
  React.useEffect(function () {
49
- if (ref.current) {
50
- onLayout(columnIndex, ref.current.getBoundingClientRect());
49
+ if (typeof document !== 'undefined') {
50
+ if (ref.current) {
51
+ onLayout(columnIndex, ref.current.getBoundingClientRect());
52
+ }
51
53
  }
52
54
  }, []);
53
55
  return /*#__PURE__*/React.createElement("div", {
@@ -28,8 +28,10 @@ function MeasureColumn({
28
28
  const ref = useRef();
29
29
 
30
30
  React.useEffect(() => {
31
- if (ref.current) {
32
- onLayout(columnIndex, ref.current.getBoundingClientRect());
31
+ if (__BROWSER__) {
32
+ if (ref.current) {
33
+ onLayout(columnIndex, ref.current.getBoundingClientRect());
34
+ }
33
35
  }
34
36
  }, []);
35
37
 
@@ -20,8 +20,10 @@ function MeasureColumn({
20
20
  const [css] = useStyletron();
21
21
  const ref = useRef();
22
22
  React.useEffect(() => {
23
- if (ref.current) {
24
- onLayout(columnIndex, ref.current.getBoundingClientRect());
23
+ if (typeof document !== 'undefined') {
24
+ if (ref.current) {
25
+ onLayout(columnIndex, ref.current.getBoundingClientRect());
26
+ }
25
27
  }
26
28
  }, []);
27
29
  return /*#__PURE__*/React.createElement("div", {
@@ -35,8 +35,10 @@ function MeasureColumn(_ref) {
35
35
 
36
36
  var ref = useRef();
37
37
  React.useEffect(function () {
38
- if (ref.current) {
39
- onLayout(columnIndex, ref.current.getBoundingClientRect());
38
+ if (typeof document !== 'undefined') {
39
+ if (ref.current) {
40
+ onLayout(columnIndex, ref.current.getBoundingClientRect());
41
+ }
40
42
  }
41
43
  }, []);
42
44
  return /*#__PURE__*/React.createElement("div", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "baseui",
3
- "version": "0.0.0-alpha-bf67a1f",
3
+ "version": "0.0.0-alpha-afa08b4",
4
4
  "description": "A React Component library implementing the Base design language",
5
5
  "keywords": [
6
6
  "react",