@elliemae/ds-left-navigation 1.57.0-rc.9 → 1.57.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.
@@ -11,16 +11,19 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
11
11
  var useGlobalKeyListeners = function useGlobalKeyListeners(opts) {
12
12
  var setFocusedByKey = opts.setFocusedByKey;
13
13
  React__default['default'].useEffect(function () {
14
+ var isKey = function isKey() {
15
+ return setFocusedByKey(true);
16
+ };
14
17
 
15
18
  var isClick = function isClick() {
16
19
  return setFocusedByKey(false);
17
20
  }; // To track wheter it's keyboard focus to apply the necessary style
18
- // window.addEventListener('keydown', isKey);
19
21
 
20
22
 
23
+ window.addEventListener('keydown', isKey);
21
24
  window.addEventListener('mousedown', isClick);
22
25
  return function () {
23
- // window.removeEventListener('keydown', isKey);
26
+ window.removeEventListener('keydown', isKey);
24
27
  window.removeEventListener('mousedown', isClick);
25
28
  };
26
29
  }, [setFocusedByKey]);
@@ -1 +1 @@
1
- {"version":3,"file":"useGlobalKeyListeners.js","sources":["../../../src/configs/useGlobalKeyListeners.tsx"],"sourcesContent":["import React from 'react';\n\ninterface optsT {\n setFocusedByKey: React.Dispatch<boolean>;\n}\n\nexport const useGlobalKeyListeners = (opts: optsT) => {\n const { setFocusedByKey } = opts;\n React.useEffect(() => {\n const isKey = () => setFocusedByKey(true);\n const isClick = () => setFocusedByKey(false);\n\n // To track wheter it's keyboard focus to apply the necessary style\n // window.addEventListener('keydown', isKey);\n window.addEventListener('mousedown', isClick);\n\n return () => {\n // window.removeEventListener('keydown', isKey);\n window.removeEventListener('mousedown', isClick);\n };\n }, [setFocusedByKey]);\n};\n\nexport default useGlobalKeyListeners;\n"],"names":["useGlobalKeyListeners","opts","setFocusedByKey","React","useEffect","isClick","window","addEventListener","removeEventListener"],"mappings":";;;;;;;;;;IAMaA,qBAAqB,GAAG,SAAxBA,qBAAwB,CAACC,IAAD,EAAiB;AACpD,MAAQC,eAAR,GAA4BD,IAA5B,CAAQC,eAAR;AACAC,EAAAA,yBAAK,CAACC,SAAN,CAAgB,YAAM;;AAEpB,QAAMC,OAAO,GAAG,SAAVA,OAAU;AAAA,aAAMH,eAAe,CAAC,KAAD,CAArB;AAAA,KAAhB,CAFoB;AAKpB;;;AACAI,IAAAA,MAAM,CAACC,gBAAP,CAAwB,WAAxB,EAAqCF,OAArC;AAEA,WAAO,YAAM;AACX;AACAC,MAAAA,MAAM,CAACE,mBAAP,CAA2B,WAA3B,EAAwCH,OAAxC;AACD,KAHD;AAID,GAZD,EAYG,CAACH,eAAD,CAZH;AAaD;;;;;"}
1
+ {"version":3,"file":"useGlobalKeyListeners.js","sources":["../../../src/configs/useGlobalKeyListeners.tsx"],"sourcesContent":["import React from 'react';\n\ninterface optsT {\n setFocusedByKey: React.Dispatch<boolean>;\n}\n\nexport const useGlobalKeyListeners = (opts: optsT) => {\n const { setFocusedByKey } = opts;\n React.useEffect(() => {\n const isKey = () => setFocusedByKey(true);\n const isClick = () => setFocusedByKey(false);\n\n // To track wheter it's keyboard focus to apply the necessary style\n window.addEventListener('keydown', isKey);\n window.addEventListener('mousedown', isClick);\n\n return () => {\n window.removeEventListener('keydown', isKey);\n window.removeEventListener('mousedown', isClick);\n };\n }, [setFocusedByKey]);\n};\n\nexport default useGlobalKeyListeners;\n"],"names":["useGlobalKeyListeners","opts","setFocusedByKey","React","useEffect","isKey","isClick","window","addEventListener","removeEventListener"],"mappings":";;;;;;;;;;IAMaA,qBAAqB,GAAG,SAAxBA,qBAAwB,CAACC,IAAD,EAAiB;AACpD,MAAQC,eAAR,GAA4BD,IAA5B,CAAQC,eAAR;AACAC,EAAAA,yBAAK,CAACC,SAAN,CAAgB,YAAM;AACpB,QAAMC,KAAK,GAAG,SAARA,KAAQ;AAAA,aAAMH,eAAe,CAAC,IAAD,CAArB;AAAA,KAAd;;AACA,QAAMI,OAAO,GAAG,SAAVA,OAAU;AAAA,aAAMJ,eAAe,CAAC,KAAD,CAArB;AAAA,KAAhB,CAFoB;;;AAKpBK,IAAAA,MAAM,CAACC,gBAAP,CAAwB,SAAxB,EAAmCH,KAAnC;AACAE,IAAAA,MAAM,CAACC,gBAAP,CAAwB,WAAxB,EAAqCF,OAArC;AAEA,WAAO,YAAM;AACXC,MAAAA,MAAM,CAACE,mBAAP,CAA2B,SAA3B,EAAsCJ,KAAtC;AACAE,MAAAA,MAAM,CAACE,mBAAP,CAA2B,WAA3B,EAAwCH,OAAxC;AACD,KAHD;AAID,GAZD,EAYG,CAACJ,eAAD,CAZH;AAaD;;;;;"}
@@ -3,16 +3,19 @@ import React from 'react';
3
3
  var useGlobalKeyListeners = function useGlobalKeyListeners(opts) {
4
4
  var setFocusedByKey = opts.setFocusedByKey;
5
5
  React.useEffect(function () {
6
+ var isKey = function isKey() {
7
+ return setFocusedByKey(true);
8
+ };
6
9
 
7
10
  var isClick = function isClick() {
8
11
  return setFocusedByKey(false);
9
12
  }; // To track wheter it's keyboard focus to apply the necessary style
10
- // window.addEventListener('keydown', isKey);
11
13
 
12
14
 
15
+ window.addEventListener('keydown', isKey);
13
16
  window.addEventListener('mousedown', isClick);
14
17
  return function () {
15
- // window.removeEventListener('keydown', isKey);
18
+ window.removeEventListener('keydown', isKey);
16
19
  window.removeEventListener('mousedown', isClick);
17
20
  };
18
21
  }, [setFocusedByKey]);
@@ -1 +1 @@
1
- {"version":3,"file":"useGlobalKeyListeners.js","sources":["../../../src/configs/useGlobalKeyListeners.tsx"],"sourcesContent":["import React from 'react';\n\ninterface optsT {\n setFocusedByKey: React.Dispatch<boolean>;\n}\n\nexport const useGlobalKeyListeners = (opts: optsT) => {\n const { setFocusedByKey } = opts;\n React.useEffect(() => {\n const isKey = () => setFocusedByKey(true);\n const isClick = () => setFocusedByKey(false);\n\n // To track wheter it's keyboard focus to apply the necessary style\n // window.addEventListener('keydown', isKey);\n window.addEventListener('mousedown', isClick);\n\n return () => {\n // window.removeEventListener('keydown', isKey);\n window.removeEventListener('mousedown', isClick);\n };\n }, [setFocusedByKey]);\n};\n\nexport default useGlobalKeyListeners;\n"],"names":["useGlobalKeyListeners","opts","setFocusedByKey","React","useEffect","isClick","window","addEventListener","removeEventListener"],"mappings":";;IAMaA,qBAAqB,GAAG,SAAxBA,qBAAwB,CAACC,IAAD,EAAiB;AACpD,MAAQC,eAAR,GAA4BD,IAA5B,CAAQC,eAAR;AACAC,EAAAA,KAAK,CAACC,SAAN,CAAgB,YAAM;;AAEpB,QAAMC,OAAO,GAAG,SAAVA,OAAU;AAAA,aAAMH,eAAe,CAAC,KAAD,CAArB;AAAA,KAAhB,CAFoB;AAKpB;;;AACAI,IAAAA,MAAM,CAACC,gBAAP,CAAwB,WAAxB,EAAqCF,OAArC;AAEA,WAAO,YAAM;AACX;AACAC,MAAAA,MAAM,CAACE,mBAAP,CAA2B,WAA3B,EAAwCH,OAAxC;AACD,KAHD;AAID,GAZD,EAYG,CAACH,eAAD,CAZH;AAaD;;;;"}
1
+ {"version":3,"file":"useGlobalKeyListeners.js","sources":["../../../src/configs/useGlobalKeyListeners.tsx"],"sourcesContent":["import React from 'react';\n\ninterface optsT {\n setFocusedByKey: React.Dispatch<boolean>;\n}\n\nexport const useGlobalKeyListeners = (opts: optsT) => {\n const { setFocusedByKey } = opts;\n React.useEffect(() => {\n const isKey = () => setFocusedByKey(true);\n const isClick = () => setFocusedByKey(false);\n\n // To track wheter it's keyboard focus to apply the necessary style\n window.addEventListener('keydown', isKey);\n window.addEventListener('mousedown', isClick);\n\n return () => {\n window.removeEventListener('keydown', isKey);\n window.removeEventListener('mousedown', isClick);\n };\n }, [setFocusedByKey]);\n};\n\nexport default useGlobalKeyListeners;\n"],"names":["useGlobalKeyListeners","opts","setFocusedByKey","React","useEffect","isKey","isClick","window","addEventListener","removeEventListener"],"mappings":";;IAMaA,qBAAqB,GAAG,SAAxBA,qBAAwB,CAACC,IAAD,EAAiB;AACpD,MAAQC,eAAR,GAA4BD,IAA5B,CAAQC,eAAR;AACAC,EAAAA,KAAK,CAACC,SAAN,CAAgB,YAAM;AACpB,QAAMC,KAAK,GAAG,SAARA,KAAQ;AAAA,aAAMH,eAAe,CAAC,IAAD,CAArB;AAAA,KAAd;;AACA,QAAMI,OAAO,GAAG,SAAVA,OAAU;AAAA,aAAMJ,eAAe,CAAC,KAAD,CAArB;AAAA,KAAhB,CAFoB;;;AAKpBK,IAAAA,MAAM,CAACC,gBAAP,CAAwB,SAAxB,EAAmCH,KAAnC;AACAE,IAAAA,MAAM,CAACC,gBAAP,CAAwB,WAAxB,EAAqCF,OAArC;AAEA,WAAO,YAAM;AACXC,MAAAA,MAAM,CAACE,mBAAP,CAA2B,SAA3B,EAAsCJ,KAAtC;AACAE,MAAAA,MAAM,CAACE,mBAAP,CAA2B,WAA3B,EAAwCH,OAAxC;AACD,KAHD;AAID,GAZD,EAYG,CAACJ,eAAD,CAZH;AAaD;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-left-navigation",
3
- "version": "1.57.0-rc.9",
3
+ "version": "1.57.0",
4
4
  "license": "MIT",
5
5
  "description": "Ellie Mae - Dim Sum - Left Navigation",
6
6
  "main": "cjs/index.js",
@@ -16,11 +16,11 @@
16
16
  "directory": "dist"
17
17
  },
18
18
  "dependencies": {
19
- "@elliemae/ds-basic": "1.57.0-rc.9",
20
- "@elliemae/ds-grid": "1.57.0-rc.9",
21
- "@elliemae/ds-icons": "1.57.0-rc.9",
22
- "@elliemae/ds-system": "1.57.0-rc.9",
23
- "@elliemae/ds-truncated-tooltip-text": "1.57.0-rc.9",
19
+ "@elliemae/ds-basic": "1.57.0",
20
+ "@elliemae/ds-grid": "1.57.0",
21
+ "@elliemae/ds-icons": "1.57.0",
22
+ "@elliemae/ds-system": "1.57.0",
23
+ "@elliemae/ds-truncated-tooltip-text": "1.57.0",
24
24
  "overlayscrollbars": "1.13.1",
25
25
  "prop-types": "~15.7.2",
26
26
  "react-desc": "^4.1.2"