supernav-test 2.2.15 → 2.2.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. package/dist/App.test.d.ts +1 -0
  2. package/dist/App.test.js +7 -0
  3. package/dist/LsacContainer.d.ts +4 -0
  4. package/dist/LsacContainer.js +14 -0
  5. package/dist/components/lsac-supernavbar/AuthWrapper.d.ts +4 -0
  6. package/dist/components/lsac-supernavbar/AuthWrapper.js +47 -0
  7. package/dist/components/lsac-supernavbar/LsacSidebar.d.ts +44 -0
  8. package/dist/components/lsac-supernavbar/LsacSidebar.js +35 -0
  9. package/dist/components/lsac-supernavbar/Store.d.ts +3 -0
  10. package/dist/components/lsac-supernavbar/Store.js +12 -0
  11. package/dist/components/lsac-supernavbar/actions/AuthActions.d.ts +8 -0
  12. package/dist/components/lsac-supernavbar/actions/AuthActions.js +22 -0
  13. package/dist/components/lsac-supernavbar/actions/SidebarActions.d.ts +23 -0
  14. package/dist/components/lsac-supernavbar/actions/SidebarActions.js +81 -0
  15. package/dist/components/lsac-supernavbar/components/Sidebar.d.ts +13 -0
  16. package/dist/components/lsac-supernavbar/components/Sidebar.js +193 -0
  17. package/dist/components/lsac-supernavbar/components/SidebarForm.d.ts +5 -0
  18. package/dist/components/lsac-supernavbar/components/SidebarForm.js +8 -0
  19. package/dist/components/lsac-supernavbar/components/SidebarMainLink.d.ts +14 -0
  20. package/dist/components/lsac-supernavbar/components/SidebarMainLink.js +60 -0
  21. package/dist/components/lsac-supernavbar/components/SidebarOption.d.ts +4 -0
  22. package/dist/components/lsac-supernavbar/components/SidebarOption.js +8 -0
  23. package/dist/components/lsac-supernavbar/components/SidebarSubMenu.d.ts +5 -0
  24. package/dist/components/lsac-supernavbar/components/SidebarSubMenu.js +68 -0
  25. package/dist/components/lsac-supernavbar/components/SidebarTab.d.ts +1 -0
  26. package/dist/components/lsac-supernavbar/components/SidebarTab.js +50 -0
  27. package/dist/components/lsac-supernavbar/components/Topnav.d.ts +14 -0
  28. package/dist/components/lsac-supernavbar/components/Topnav.js +76 -0
  29. package/dist/components/lsac-supernavbar/components/sidebar_submenus/CategorizedSubmenu.d.ts +9 -0
  30. package/dist/components/lsac-supernavbar/components/sidebar_submenus/CategorizedSubmenu.js +57 -0
  31. package/dist/components/lsac-supernavbar/components/sidebar_submenus/Marketplace.d.ts +5 -0
  32. package/dist/components/lsac-supernavbar/components/sidebar_submenus/Marketplace.js +7 -0
  33. package/dist/components/lsac-supernavbar/constants/SidebarConstants.d.ts +8 -0
  34. package/dist/components/lsac-supernavbar/constants/SidebarConstants.js +12 -0
  35. package/dist/components/lsac-supernavbar/constants/UtilityConstants.d.ts +15 -0
  36. package/dist/components/lsac-supernavbar/constants/UtilityConstants.js +21 -0
  37. package/dist/components/lsac-supernavbar/interfaces/Models.d.ts +65 -0
  38. package/dist/components/lsac-supernavbar/interfaces/Models.js +12 -0
  39. package/dist/components/lsac-supernavbar/interfaces/Redux.d.ts +7 -0
  40. package/dist/components/lsac-supernavbar/interfaces/Redux.js +2 -0
  41. package/dist/components/lsac-supernavbar/reducers/AuthReducer.d.ts +7 -0
  42. package/dist/components/lsac-supernavbar/reducers/AuthReducer.js +19 -0
  43. package/dist/components/lsac-supernavbar/reducers/RootReducer.d.ts +5 -0
  44. package/dist/components/lsac-supernavbar/reducers/RootReducer.js +10 -0
  45. package/dist/components/lsac-supernavbar/reducers/SidebarReducer.d.ts +17 -0
  46. package/dist/components/lsac-supernavbar/reducers/SidebarReducer.js +49 -0
  47. package/dist/components/lsac-supernavbar/resources/icomoon-library.json +1 -0
  48. package/dist/components/lsac-supernavbar/test/App.test.d.ts +1 -0
  49. package/dist/components/lsac-supernavbar/test/App.test.js +22 -0
  50. package/dist/components/lsac-supernavbar/util/SubmenuUtil.d.ts +9 -0
  51. package/dist/components/lsac-supernavbar/util/SubmenuUtil.js +112 -0
  52. package/dist/components/lsac-supernavbar/util/Util.d.ts +4 -0
  53. package/dist/components/lsac-supernavbar/util/Util.js +24 -0
  54. package/dist/index.d.ts +2 -0
  55. package/dist/index.js +17 -67
  56. package/dist/reportWebVitals.d.ts +3 -0
  57. package/dist/reportWebVitals.js +33 -0
  58. package/dist/setupTests.d.ts +1 -0
  59. package/dist/setupTests.js +7 -0
  60. package/package.json +9 -4
@@ -0,0 +1,3 @@
1
+ import { ReportHandler } from 'web-vitals';
2
+ declare const reportWebVitals: (onPerfEntry?: ReportHandler | undefined) => void;
3
+ export default reportWebVitals;
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
11
+ }) : function(o, v) {
12
+ o["default"] = v;
13
+ });
14
+ var __importStar = (this && this.__importStar) || function (mod) {
15
+ if (mod && mod.__esModule) return mod;
16
+ var result = {};
17
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
+ __setModuleDefault(result, mod);
19
+ return result;
20
+ };
21
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ const reportWebVitals = (onPerfEntry) => {
23
+ if (onPerfEntry && onPerfEntry instanceof Function) {
24
+ Promise.resolve().then(() => __importStar(require('web-vitals'))).then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
25
+ getCLS(onPerfEntry);
26
+ getFID(onPerfEntry);
27
+ getFCP(onPerfEntry);
28
+ getLCP(onPerfEntry);
29
+ getTTFB(onPerfEntry);
30
+ });
31
+ }
32
+ };
33
+ exports.default = reportWebVitals;
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom';
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ // jest-dom adds custom jest matchers for asserting on DOM nodes.
4
+ // allows you to do things like:
5
+ // expect(element).toHaveTextContent(/react/i)
6
+ // learn more: https://github.com/testing-library/jest-dom
7
+ require("@testing-library/jest-dom");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "supernav-test",
3
- "version": "2.2.15",
3
+ "version": "2.2.16",
4
4
  "private": false,
5
5
  "dependencies": {
6
6
  "@testing-library/jest-dom": "5.14.1",
@@ -34,8 +34,10 @@
34
34
  "@types/classnames": "2.2.11",
35
35
  "@types/react": "17.0.21",
36
36
  "@types/react-dom": "17.0.9",
37
- "@types/react-redux": "7.1.11",
37
+ "@types/react-redux": "^7.1.11",
38
38
  "@types/react-router": "5.1.8",
39
+ "@types/redux": "^3.6.0",
40
+ "@types/redux-thunk": "^2.1.0",
39
41
  "@webpack-cli/serve": "^1.5.2",
40
42
  "babel-loader": "8.1.0",
41
43
  "css-loader": "5.0.0",
@@ -61,7 +63,8 @@
61
63
  "webpack": "4.44.2",
62
64
  "webpack-cli": "3.3.12"
63
65
  },
64
- "main": "dist/index.js",
66
+ "main": "dist/LsacContainer.js",
67
+ "types": "dist/LsacContainer.d.ts",
65
68
  "files": [
66
69
  "dist",
67
70
  "README.md"
@@ -73,7 +76,9 @@
73
76
  "eject": "react-scripts eject",
74
77
  "clean": "rm dist/index.js",
75
78
  "build-dev": "webpack --mode development",
76
- "build-prod": "webpack --mode production"
79
+ "build-prod": "webpack --mode production",
80
+ "tsc-build": "npm run clean && npx tsc",
81
+ "publish:npm": "set NODE_ENV=production && rm -rf dist && mkdir dist && npx babel --extensions .tsx,.jsx,.ts,.js src --out-dir dist --copy-files"
77
82
  },
78
83
  "eslintConfig": {
79
84
  "extends": [