@internetarchive/collection-browser 2.18.0 → 2.18.1-alpha-webdev7768.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.
package/eslint.config.mjs CHANGED
@@ -1,53 +1,53 @@
1
- import typescriptEslint from '@typescript-eslint/eslint-plugin';
2
- import html from 'eslint-plugin-html';
3
- import tsParser from '@typescript-eslint/parser';
4
- import path from 'node:path';
5
- import { fileURLToPath } from 'node:url';
6
- import js from '@eslint/js';
7
- import { FlatCompat } from '@eslint/eslintrc';
8
-
9
- const __filename = fileURLToPath(import.meta.url);
10
- const __dirname = path.dirname(__filename);
11
- const compat = new FlatCompat({
12
- baseDirectory: __dirname,
13
- recommendedConfig: js.configs.recommended,
14
- allConfig: js.configs.all,
15
- });
16
-
17
- export default [
18
- ...compat.extends('plugin:@typescript-eslint/recommended'),
19
- {
20
- plugins: {
21
- '@typescript-eslint': typescriptEslint,
22
- html,
23
- },
24
-
25
- languageOptions: {
26
- parser: tsParser,
27
- },
28
-
29
- settings: {
30
- 'import/resolver': {
31
- node: {
32
- extensions: ['.ts', '.tsx'],
33
- moduleDirectory: ['node_modules', 'src', 'demo'],
34
- },
35
- },
36
- },
37
-
38
- rules: {
39
- '@typescript-eslint/no-unsafe-function-type': 'warn',
40
- '@typescript-eslint/no-unused-vars': 'warn',
41
- '@typescript-eslint/no-explicit-any': 'warn',
42
- },
43
- },
44
- {
45
- ignores: ['**/*.js', '**/*.mjs', '**/*.d.ts'],
46
- },
47
- {
48
- files: ['**/*.test.ts'],
49
- rules: {
50
- '@typescript-eslint/no-unused-expressions': 'off',
51
- },
52
- },
53
- ];
1
+ import typescriptEslint from '@typescript-eslint/eslint-plugin';
2
+ import html from 'eslint-plugin-html';
3
+ import tsParser from '@typescript-eslint/parser';
4
+ import path from 'node:path';
5
+ import { fileURLToPath } from 'node:url';
6
+ import js from '@eslint/js';
7
+ import { FlatCompat } from '@eslint/eslintrc';
8
+
9
+ const __filename = fileURLToPath(import.meta.url);
10
+ const __dirname = path.dirname(__filename);
11
+ const compat = new FlatCompat({
12
+ baseDirectory: __dirname,
13
+ recommendedConfig: js.configs.recommended,
14
+ allConfig: js.configs.all,
15
+ });
16
+
17
+ export default [
18
+ ...compat.extends('plugin:@typescript-eslint/recommended'),
19
+ {
20
+ plugins: {
21
+ '@typescript-eslint': typescriptEslint,
22
+ html,
23
+ },
24
+
25
+ languageOptions: {
26
+ parser: tsParser,
27
+ },
28
+
29
+ settings: {
30
+ 'import/resolver': {
31
+ node: {
32
+ extensions: ['.ts', '.tsx'],
33
+ moduleDirectory: ['node_modules', 'src', 'demo'],
34
+ },
35
+ },
36
+ },
37
+
38
+ rules: {
39
+ '@typescript-eslint/no-unsafe-function-type': 'warn',
40
+ '@typescript-eslint/no-unused-vars': 'warn',
41
+ '@typescript-eslint/no-explicit-any': 'warn',
42
+ },
43
+ },
44
+ {
45
+ ignores: ['**/*.js', '**/*.mjs', '**/*.d.ts'],
46
+ },
47
+ {
48
+ files: ['**/*.test.ts'],
49
+ rules: {
50
+ '@typescript-eslint/no-unused-expressions': 'off',
51
+ },
52
+ },
53
+ ];
package/index.html CHANGED
@@ -1,24 +1,24 @@
1
- <!doctype html>
2
- <html lang="en-GB">
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width,initial-scale=1">
6
- <style>
7
- html {
8
- font-size: 10px; /* This is to match petabox's base font size */
9
- font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
10
- }
11
-
12
- body {
13
- background: #F5F5F7;
14
- color: #2C2C2C;
15
- line-height: 1.42857143; /* Same as production */
16
- }
17
- </style>
18
-
19
- </head>
20
- <body>
21
- <app-root></app-root>
22
- <script type="module" src="./dist/src/app-root.js"></script>
23
- </body>
24
- </html>
1
+ <!doctype html>
2
+ <html lang="en-GB">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ html {
8
+ font-size: 10px; /* This is to match petabox's base font size */
9
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
10
+ }
11
+
12
+ body {
13
+ background: #F5F5F7;
14
+ color: #2C2C2C;
15
+ line-height: 1.42857143; /* Same as production */
16
+ }
17
+ </style>
18
+
19
+ </head>
20
+ <body>
21
+ <app-root></app-root>
22
+ <script type="module" src="./dist/src/app-root.js"></script>
23
+ </body>
24
+ </html>
package/package.json CHANGED
@@ -1,117 +1,117 @@
1
- {
2
- "name": "@internetarchive/collection-browser",
3
- "description": "The Internet Archive Collection Browser.",
4
- "license": "AGPL-3.0-only",
5
- "author": "Internet Archive",
6
- "version": "2.18.0",
7
- "main": "dist/index.js",
8
- "module": "dist/index.js",
9
- "scripts": {
10
- "start": "yarn run prepare && tsc && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"wds\"",
11
- "prepare:ghpages": "rimraf ghpages && yarn run prepare && vite build",
12
- "prepare": "rimraf dist && tsc && husky install",
13
- "lint": "eslint . && prettier \"**/*.ts\" --check",
14
- "format": "eslint . --fix && prettier \"**/*.ts\" --write",
15
- "circular": "madge --circular --extensions ts .",
16
- "test": "tsc && yarn run lint && yarn run circular && wtr --coverage",
17
- "test:fast": "tsc && wtr --coverage",
18
- "test:watch": "tsc && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"wtr --watch\"",
19
- "deploy": "yarn run deploy:run -e $(git branch --show-current)",
20
- "deploy:run": "yarn run prepare:ghpages && touch ghpages/.nojekyll && yarn run deploy:gh",
21
- "deploy:gh": "gh-pages -t -d ghpages -m \"Build for $(git log --pretty=format:\"%h %an %ai %s\" -n1) [skip ci]\"",
22
- "typecheck": "yarn tsc --noEmit"
23
- },
24
- "types": "dist/index.d.ts",
25
- "dependencies": {
26
- "@internetarchive/analytics-manager": "^0.1.4",
27
- "@internetarchive/feature-feedback": "^1.0.0",
28
- "@internetarchive/field-parsers": "^1.0.0",
29
- "@internetarchive/histogram-date-range": "^1.3.2",
30
- "@internetarchive/ia-activity-indicator": "^0.0.6",
31
- "@internetarchive/ia-dropdown": "^1.3.10",
32
- "@internetarchive/iaux-item-metadata": "^1.0.5",
33
- "@internetarchive/infinite-scroller": "^1.0.1",
34
- "@internetarchive/modal-manager": "^2.0.1",
35
- "@internetarchive/search-service": "^2.5.0",
36
- "@internetarchive/shared-resize-observer": "^0.2.0",
37
- "@lit/localize": "^0.12.2",
38
- "dompurify": "^3.2.4",
39
- "lit": "^2.8.0",
40
- "typescript-cookie": "^1.0.6"
41
- },
42
- "devDependencies": {
43
- "@internetarchive/result-type": "^0.0.1",
44
- "@open-wc/eslint-config": "^12.0.3",
45
- "@open-wc/testing": "^4.0.0",
46
- "@types/dompurify": "^3.2.0",
47
- "@types/mocha": "^10.0.10",
48
- "@typescript-eslint/eslint-plugin": "^8.27.0",
49
- "@typescript-eslint/parser": "^8.27.0",
50
- "@web/dev-server": "^0.4.6",
51
- "@web/test-runner": "^0.20.0",
52
- "concurrently": "^9.1.2",
53
- "eslint": "^9.22.0",
54
- "eslint-config-prettier": "^10.1.1",
55
- "eslint-plugin-html": "^8.1.2",
56
- "eslint-plugin-import": "^2.31.0",
57
- "eslint-plugin-lit": "^2.0.0",
58
- "eslint-plugin-lit-a11y": "^4.1.4",
59
- "eslint-plugin-no-only-tests": "^3.3.0",
60
- "eslint-plugin-wc": "^3.0.0",
61
- "gh-pages": "^6.3.0",
62
- "husky": "^9.1.7",
63
- "madge": "^8.0.0",
64
- "prettier": "^3.5.3",
65
- "rimraf": "^6.0.1",
66
- "sinon": "^19.0.4",
67
- "tslib": "^2.8.1",
68
- "typescript": "^5.8.2",
69
- "vite": "^6.2.2"
70
- },
71
- "publishConfig": {
72
- "access": "public"
73
- },
74
- "eslintConfig": {
75
- "parser": "@typescript-eslint/parser",
76
- "extends": [
77
- "@open-wc",
78
- "prettier"
79
- ],
80
- "plugins": [
81
- "@typescript-eslint"
82
- ],
83
- "rules": {
84
- "no-unused-vars": "off",
85
- "@typescript-eslint/no-unused-vars": [
86
- "error"
87
- ],
88
- "no-shadow": "off",
89
- "@typescript-eslint/no-shadow": [
90
- "error"
91
- ],
92
- "class-methods-use-this": "off",
93
- "import/no-unresolved": "off",
94
- "import/extensions": [
95
- "off",
96
- "ignorePackages",
97
- {
98
- "js": "never",
99
- "ts": "never"
100
- }
101
- ],
102
- "no-unsafe-optional-chaining": "warn",
103
- "default-param-last": "warn"
104
- }
105
- },
106
- "prettier": {
107
- "singleQuote": true,
108
- "arrowParens": "avoid"
109
- },
110
- "lint-staged": {
111
- "*.ts": [
112
- "eslint --fix",
113
- "prettier --write",
114
- "git add"
115
- ]
116
- }
117
- }
1
+ {
2
+ "name": "@internetarchive/collection-browser",
3
+ "description": "The Internet Archive Collection Browser.",
4
+ "license": "AGPL-3.0-only",
5
+ "author": "Internet Archive",
6
+ "version": "2.18.1-alpha-webdev7768.0",
7
+ "main": "dist/index.js",
8
+ "module": "dist/index.js",
9
+ "scripts": {
10
+ "start": "yarn run prepare && tsc && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"wds\"",
11
+ "prepare:ghpages": "rimraf ghpages && yarn run prepare && vite build",
12
+ "prepare": "rimraf dist && tsc && husky install",
13
+ "lint": "eslint . && prettier \"**/*.ts\" --check",
14
+ "format": "eslint . --fix && prettier \"**/*.ts\" --write",
15
+ "circular": "madge --circular --extensions ts .",
16
+ "test": "tsc && yarn run lint && yarn run circular && wtr --coverage",
17
+ "test:fast": "tsc && wtr --coverage",
18
+ "test:watch": "tsc && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"wtr --watch\"",
19
+ "deploy": "yarn run deploy:run -e $(git branch --show-current)",
20
+ "deploy:run": "yarn run prepare:ghpages && touch ghpages/.nojekyll && yarn run deploy:gh",
21
+ "deploy:gh": "gh-pages -t -d ghpages -m \"Build for $(git log --pretty=format:\"%h %an %ai %s\" -n1) [skip ci]\"",
22
+ "typecheck": "yarn tsc --noEmit"
23
+ },
24
+ "types": "dist/index.d.ts",
25
+ "dependencies": {
26
+ "@internetarchive/analytics-manager": "^0.1.4",
27
+ "@internetarchive/feature-feedback": "^1.0.0",
28
+ "@internetarchive/field-parsers": "^1.0.0",
29
+ "@internetarchive/histogram-date-range": "^1.3.2",
30
+ "@internetarchive/ia-activity-indicator": "^0.0.6",
31
+ "@internetarchive/ia-dropdown": "^1.3.10",
32
+ "@internetarchive/iaux-item-metadata": "^1.0.5",
33
+ "@internetarchive/infinite-scroller": "^1.0.1",
34
+ "@internetarchive/modal-manager": "^2.0.1",
35
+ "@internetarchive/search-service": "^2.5.0",
36
+ "@internetarchive/shared-resize-observer": "^0.2.0",
37
+ "@lit/localize": "^0.12.2",
38
+ "dompurify": "^3.2.4",
39
+ "lit": "^2.8.0",
40
+ "typescript-cookie": "^1.0.6"
41
+ },
42
+ "devDependencies": {
43
+ "@internetarchive/result-type": "^0.0.1",
44
+ "@open-wc/eslint-config": "^12.0.3",
45
+ "@open-wc/testing": "^4.0.0",
46
+ "@types/dompurify": "^3.2.0",
47
+ "@types/mocha": "^10.0.10",
48
+ "@typescript-eslint/eslint-plugin": "^8.27.0",
49
+ "@typescript-eslint/parser": "^8.27.0",
50
+ "@web/dev-server": "^0.4.6",
51
+ "@web/test-runner": "^0.20.0",
52
+ "concurrently": "^9.1.2",
53
+ "eslint": "^9.22.0",
54
+ "eslint-config-prettier": "^10.1.1",
55
+ "eslint-plugin-html": "^8.1.2",
56
+ "eslint-plugin-import": "^2.31.0",
57
+ "eslint-plugin-lit": "^2.0.0",
58
+ "eslint-plugin-lit-a11y": "^4.1.4",
59
+ "eslint-plugin-no-only-tests": "^3.3.0",
60
+ "eslint-plugin-wc": "^3.0.0",
61
+ "gh-pages": "^6.3.0",
62
+ "husky": "^9.1.7",
63
+ "madge": "^8.0.0",
64
+ "prettier": "^3.5.3",
65
+ "rimraf": "^6.0.1",
66
+ "sinon": "^19.0.4",
67
+ "tslib": "^2.8.1",
68
+ "typescript": "^5.8.2",
69
+ "vite": "^6.2.2"
70
+ },
71
+ "publishConfig": {
72
+ "access": "public"
73
+ },
74
+ "eslintConfig": {
75
+ "parser": "@typescript-eslint/parser",
76
+ "extends": [
77
+ "@open-wc",
78
+ "prettier"
79
+ ],
80
+ "plugins": [
81
+ "@typescript-eslint"
82
+ ],
83
+ "rules": {
84
+ "no-unused-vars": "off",
85
+ "@typescript-eslint/no-unused-vars": [
86
+ "error"
87
+ ],
88
+ "no-shadow": "off",
89
+ "@typescript-eslint/no-shadow": [
90
+ "error"
91
+ ],
92
+ "class-methods-use-this": "off",
93
+ "import/no-unresolved": "off",
94
+ "import/extensions": [
95
+ "off",
96
+ "ignorePackages",
97
+ {
98
+ "js": "never",
99
+ "ts": "never"
100
+ }
101
+ ],
102
+ "no-unsafe-optional-chaining": "warn",
103
+ "default-param-last": "warn"
104
+ }
105
+ },
106
+ "prettier": {
107
+ "singleQuote": true,
108
+ "arrowParens": "avoid"
109
+ },
110
+ "lint-staged": {
111
+ "*.ts": [
112
+ "eslint --fix",
113
+ "prettier --write",
114
+ "git add"
115
+ ]
116
+ }
117
+ }