@thepalaceproject/circulation-admin 0.0.0-post.1

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.
Files changed (72) hide show
  1. package/.eslintrc +59 -0
  2. package/.node-version +1 -0
  3. package/.nvmrc +1 -0
  4. package/.prettierrc.json +10 -0
  5. package/.sass-lint.yml +37 -0
  6. package/CHANGELOG.md +946 -0
  7. package/README.md +155 -0
  8. package/dist/060b2710bdbbe3dfe48b58d59bd5f1fb.svg +288 -0
  9. package/dist/0db1520f47986b6c755a.svg +1 -0
  10. package/dist/1e59d2330b4c6deb84b3.ttf +0 -0
  11. package/dist/20fd1704ea223900efa9.woff2 +0 -0
  12. package/dist/4692b9ec53fd5972caa2.ttf +0 -0
  13. package/dist/5be1347c682810f199c7.eot +0 -0
  14. package/dist/6563aa3790be8329e4f2.svg +1 -0
  15. package/dist/82b1212e45a2bc35dd73.woff +0 -0
  16. package/dist/8b43027f47b20503057d.eot +0 -0
  17. package/dist/PalaceCollectionManagerLogo.svg +122 -0
  18. package/dist/be810be3a3e14c682a25.woff2 +0 -0
  19. package/dist/c1e38fd9e0e74ba58f7a2b77ef29fdd3.svg +2671 -0
  20. package/dist/circulation-admin.css +6841 -0
  21. package/dist/circulation-admin.js +2 -0
  22. package/dist/circulation-admin.js.LICENSE.txt +153 -0
  23. package/dist/f691f37e57f04c152e23.woff +0 -0
  24. package/jest.config.js +15 -0
  25. package/jest.polyfills.js +12 -0
  26. package/nightwatch.json +58 -0
  27. package/package.json +155 -0
  28. package/pull_request_template.md +22 -0
  29. package/requirements-ci.txt +1 -0
  30. package/testReporter.js +31 -0
  31. package/tests/__data__/statisticsApiResponseData.ts +327 -0
  32. package/tests/__mocks__/fileMock.js +1 -0
  33. package/tests/__mocks__/styleMock.js +1 -0
  34. package/tests/browser/README.md +19 -0
  35. package/tests/browser/assertions/noError.js +38 -0
  36. package/tests/browser/commands/goHome.js +13 -0
  37. package/tests/browser/commands/signIn.js +18 -0
  38. package/tests/browser/globals.js.sample +5 -0
  39. package/tests/browser/navigate.js +294 -0
  40. package/tests/browser/pages/book.js +21 -0
  41. package/tests/browser/pages/catalog.js +24 -0
  42. package/tests/browser/pages/login.js +11 -0
  43. package/tests/browser/redirect.js +104 -0
  44. package/tests/browser/signInFailure.js +22 -0
  45. package/tests/jest/README.md +6 -0
  46. package/tests/jest/api/admin.test.ts +60 -0
  47. package/tests/jest/businessRules/roleBasedAccess.test.ts +250 -0
  48. package/tests/jest/components/AdvancedSearchBuilder.test.tsx +38 -0
  49. package/tests/jest/components/BookEditor.test.tsx +240 -0
  50. package/tests/jest/components/CirculationEventsDownload.test.tsx +65 -0
  51. package/tests/jest/components/CustomLists.test.tsx +203 -0
  52. package/tests/jest/components/EditableInput.test.tsx +64 -0
  53. package/tests/jest/components/IndividualAdminEditForm.test.tsx +128 -0
  54. package/tests/jest/components/InventoryReportRequestModal.test.tsx +652 -0
  55. package/tests/jest/components/Lane.test.tsx +78 -0
  56. package/tests/jest/components/LaneEditor.test.tsx +148 -0
  57. package/tests/jest/components/ProtocolFormField.test.tsx +37 -0
  58. package/tests/jest/components/QuicksightDashboard.test.tsx +67 -0
  59. package/tests/jest/components/Stats.test.tsx +699 -0
  60. package/tests/jest/context/AppContext.test.tsx +113 -0
  61. package/tests/jest/features/book.test.ts +396 -0
  62. package/tests/jest/jest-setup.ts +1 -0
  63. package/tests/jest/sample/sample.test.js +3 -0
  64. package/tests/jest/testUtils/renderWithContext.tsx +38 -0
  65. package/tests/jest/testUtils/withProviders.tsx +92 -0
  66. package/tests/jest/utils/NoCacheDataFetcher.test.ts +75 -0
  67. package/tsconfig.json +25 -0
  68. package/tslint.json +56 -0
  69. package/webpack.common.js +72 -0
  70. package/webpack.dev-server.config.js +215 -0
  71. package/webpack.dev.config.js +9 -0
  72. package/webpack.prod.config.js +8 -0
package/.eslintrc ADDED
@@ -0,0 +1,59 @@
1
+ {
2
+ "extends": [
3
+ "eslint:recommended",
4
+ "plugin:@typescript-eslint/eslint-recommended",
5
+ "plugin:@typescript-eslint/recommended",
6
+ "plugin:react/recommended",
7
+ "plugin:jsx-a11y/strict",
8
+ "prettier",
9
+ "prettier/@typescript-eslint",
10
+ "plugin:prettier/recommended",
11
+ "prettier/react"
12
+ ],
13
+ "parser": "@typescript-eslint/parser",
14
+ "parserOptions": {
15
+ "project": "tsconfig.json",
16
+ "sourceType": "module",
17
+ "ecmaFeatures": {
18
+ "jsx": true
19
+ }
20
+ },
21
+ "env": {
22
+ "browser": true,
23
+ "node": true,
24
+ "es6": true,
25
+ "jest": true
26
+ },
27
+ "rules": {
28
+ "import/extensions": 0,
29
+ "global-require": 0,
30
+ "react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx", ".ts", ".tsx"] }],
31
+ "react/jsx-props-no-spreading": 0,
32
+ "@typescript-eslint/no-explicit-any": 0,
33
+ "no-useless-escape": 0,
34
+ "@typescript-eslint/explicit-function-return-type": 0,
35
+ "react/prop-types": 0,
36
+ "@typescript-eslint/camelcase": 0,
37
+ "react/no-string-refs": 0,
38
+ "jsx-a11y/label-has-associated-control": 0,
39
+ "react/no-find-dom-node": 0,
40
+ "jsx-a11y/label-has-for": 0,
41
+ "react/no-unescaped-entities": 0,
42
+ "@typescript-eslint/no-inferrable-types": 0
43
+ },
44
+ "settings": {
45
+ "react": {
46
+ "version": "detect"
47
+ },
48
+ "import/resolver": {
49
+ "node": {
50
+ "extensions": [
51
+ ".js",
52
+ ".jsx",
53
+ ".ts",
54
+ ".tsx"
55
+ ]
56
+ }
57
+ }
58
+ }
59
+ }
package/.node-version ADDED
@@ -0,0 +1 @@
1
+ 20.18.3
package/.nvmrc ADDED
@@ -0,0 +1 @@
1
+ v20
@@ -0,0 +1,10 @@
1
+ {
2
+ "trailingComma": "es5",
3
+ "semi": true,
4
+ "singleQuote": false,
5
+ "bracketSpacing": true,
6
+ "jsxBracketSameLine": false,
7
+ "arrowParens": "always",
8
+ "endOfLine": "lf",
9
+ "printWidth": 80
10
+ }
package/.sass-lint.yml ADDED
@@ -0,0 +1,37 @@
1
+ # Linter Options
2
+ options:
3
+ # Don't merge default rules
4
+ merge-default-rules: false
5
+ # File Options
6
+ files:
7
+ include: 'src/stylesheets/**/*.scss'
8
+ # Rule Configuration
9
+ rules:
10
+ extends-before-mixins: 2
11
+ extends-before-declarations: 2
12
+ placeholder-in-extend: 2
13
+ mixins-before-declarations:
14
+ - 2
15
+ -
16
+ exclude:
17
+ - breakpoint
18
+ - mq
19
+
20
+ no-warn: 2
21
+ no-debug: 2
22
+ no-ids: 2
23
+ no-important: 2
24
+ hex-notation:
25
+ - 2
26
+ -
27
+ style: uppercase
28
+ indentation:
29
+ - 2
30
+ -
31
+ size: 2
32
+ property-sort-order:
33
+ - 2
34
+ -
35
+ order:
36
+ - display
37
+ ignore-custom-properties: true