@codecademy/codebytes 1.0.5 → 1.0.6-alpha.3ab0972c3.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.
@@ -10,6 +10,11 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
10
10
 
11
11
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
12
12
 
13
+ /**
14
+ * this code is duplicated from /libs/hooks/sensors
15
+ * importing library code into a library is challenging at the moment
16
+ * until we have an easy way to do that, this is the solution!
17
+ */
13
18
  import { useEffect, useRef, useState } from 'react';
14
19
  import { useIntersection } from './useIntersection'; // Set either rootMargin or threshold for your use case. The threshold
15
20
  // will determine the amount of the element that needs to come into the viewport
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@codecademy/codebytes",
3
3
  "description": "Codebytes Editor",
4
- "version": "1.0.5",
4
+ "version": "1.0.6-alpha.3ab0972c3.0",
5
5
  "author": "Codecademy Engineering <dev@codecademy.com>",
6
6
  "dependencies": {
7
7
  "@codecademy/tracking": "^1.0.4",
@@ -39,5 +39,5 @@
39
39
  "dist/**/[A-Z]**/[A-Z]*.js",
40
40
  "dist/**/[A-Z]**/index.js"
41
41
  ],
42
- "gitHead": "21f7475a1bd5f2dc20b9b50746d968f2ee27f6d1"
42
+ "gitHead": "1cd0c0ae346e328517b944d6389a10cff38701f1"
43
43
  }