@vaadin-component-factory/vcf-pdf-viewer 3.0.2 → 4.0.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/README.md CHANGED
@@ -4,7 +4,8 @@
4
4
 
5
5
  # <vcf-pdf-viewer>
6
6
 
7
- [<vcf-pdf-viewer>](https://github.com/vaadin-component-factory/vcf-pdf-viewer) is a Web Component that provides a PDF viewer functionality. The component is developed in Polymer 3 and uses Mozilla's [PDF.js](https://github.com/mozilla/pdf.js)
7
+ [<vcf-pdf-viewer>](https://github.com/vaadin-component-factory/vcf-pdf-viewer) is a Web Component that provides a PDF viewer functionality. The component is developed in Lit
8
+ and uses Mozilla's [PDF.js](https://github.com/mozilla/pdf.js)
8
9
 
9
10
  This component is part of Vaadin Component Factory.
10
11
 
package/package.json CHANGED
@@ -1,7 +1,10 @@
1
1
  {
2
2
  "name": "@vaadin-component-factory/vcf-pdf-viewer",
3
- "version": "3.0.2",
4
- "description": "Polymer element providing pdf viewer",
3
+ "version": "4.0.0",
4
+ "description": "Lit element providing pdf viewer",
5
+ "author": "Vaadin Ltd",
6
+ "license": "Apache-2.0",
7
+ "type": "module",
5
8
  "main": "vcf-pdf-viewer.js",
6
9
  "repository": {
7
10
  "type": "git",
@@ -12,11 +15,8 @@
12
15
  "vaadin-component-factory",
13
16
  "vcf-pdf-viewer",
14
17
  "web-components",
15
- "web-component",
16
- "polymer"
18
+ "web-component"
17
19
  ],
18
- "author": "Vaadin Ltd",
19
- "license": "Apache-2.0",
20
20
  "files": [
21
21
  "vcf-*.js",
22
22
  "src/vcf-pdf-viewer.js",
@@ -24,56 +24,60 @@
24
24
  "pdfjs/dist"
25
25
  ],
26
26
  "dependencies": {
27
- "@polymer/polymer": "^3.4.1",
28
- "@vaadin/button": "^24.1.1",
29
- "@vaadin/component-base": "^24.1.1",
30
- "@vaadin/icon": "^24.1.1",
31
- "@vaadin/icons": "^24.1.1",
32
- "@vaadin/item": "^24.1.1",
33
- "@vaadin/list-box": "^24.1.1",
34
- "@vaadin/select": "^24.1.1",
35
- "@vaadin/text-field": "^24.1.1",
36
- "@vaadin/tooltip": "^24.1.1",
37
- "@vaadin/vaadin-lumo-styles": "^24.1.1",
38
- "@vaadin/vaadin-material-styles": "^24.1.1",
39
- "@vaadin/vaadin-themable-mixin": "^24.1.1",
40
- "core-js": "^3.19.0",
41
- "dommatrix": "^0.0.6",
42
- "web-streams-polyfill": "^3.1.1"
27
+ "@vaadin/button": "^25.0.0",
28
+ "@vaadin/component-base": "^25.0.0",
29
+ "@vaadin/icon": "^25.0.0",
30
+ "@vaadin/icons": "^25.0.0",
31
+ "@vaadin/item": "^25.0.0",
32
+ "@vaadin/list-box": "^25.0.0",
33
+ "@vaadin/select": "^25.0.0",
34
+ "@vaadin/text-field": "^25.0.0",
35
+ "@vaadin/tooltip": "^25.0.0",
36
+ "@vaadin/vaadin-themable-mixin": "^25.0.0",
37
+ "core-js": "^3.47.0",
38
+ "dommatrix": "^1.0.3",
39
+ "web-streams-polyfill": "^4.2.0"
43
40
  },
44
41
  "devDependencies": {
45
- "@babel/core": "^7.16.0",
46
- "@babel/plugin-proposal-logical-assignment-operators": "^7.16.0",
47
- "@babel/plugin-proposal-nullish-coalescing-operator": "^7.16.0",
48
- "@babel/plugin-proposal-optional-chaining": "^7.16.0",
49
- "@babel/plugin-transform-runtime": "^7.16.0",
50
- "@babel/preset-env": "^7.16.0",
51
- "@babel/runtime-corejs3": "^7.16.3",
52
- "@polymer/iron-component-page": "^4.0.0",
53
- "@polymer/iron-demo-helpers": "^3.0.0-pre.19",
54
- "@rollup/plugin-babel": "5.3.0",
55
- "@rollup/plugin-commonjs": "^21.0.1",
56
- "@rollup/plugin-node-resolve": "^13.0.6",
57
- "@vaadin/polymer-legacy-adapter": "22.0.1",
58
- "@webcomponents/webcomponentsjs": "^2.6.0",
59
- "babel-loader": "^8.2.3",
60
- "html-webpack-plugin": "^5.5.0",
61
- "regenerator-runtime": "^0.13.5",
62
- "rimraf": "^3.0.2",
63
- "rollup": "^2.59.0",
64
- "rollup-plugin-copy": "^3.4.0",
65
- "rollup-plugin-filesize": "^9.1.1",
66
- "rollup-plugin-minify-html-literals": "^1.2.6",
67
- "rollup-plugin-terser": "^7.0.2",
68
- "webpack": "^5.61.0",
69
- "webpack-cli": "^4.9.1",
70
- "webpack-dev-server": "^4.4.0"
42
+ "@babel/core": "^7.28.5",
43
+ "@babel/plugin-proposal-logical-assignment-operators": "^7.20.7",
44
+ "@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
45
+ "@babel/plugin-proposal-optional-chaining": "^7.21.0",
46
+ "@babel/plugin-transform-runtime": "^7.28.5",
47
+ "@babel/preset-env": "^7.28.5",
48
+ "@babel/runtime-corejs3": "^7.28.4",
49
+ "@custom-elements-manifest/analyzer": "^0.11.0",
50
+ "@eslint/compat": "^2.0.0",
51
+ "@open-wc/testing": "^4.0.0",
52
+ "@rollup/plugin-babel": "6.1.0",
53
+ "@rollup/plugin-commonjs": "^29.0.0",
54
+ "@rollup/plugin-node-resolve": "^16.0.3",
55
+ "@vaadin/vaadin-lumo-styles": "^25.0.0",
56
+ "@web/dev-server": "^0.4.6",
57
+ "@web/test-runner": "^0.20.2",
58
+ "@web/test-runner-playwright": "^0.11.1",
59
+ "@webcomponents/webcomponentsjs": "^2.8.0",
60
+ "babel-loader": "^10.0.0",
61
+ "eslint": "^9.39.1",
62
+ "html-webpack-plugin": "^5.6.5",
63
+ "prettier": "^3.6.2",
64
+ "regenerator-runtime": "^0.14.1",
65
+ "rimraf": "^6.1.0",
66
+ "rollup": "^4.53.2",
67
+ "rollup-plugin-copy": "^3.5.0",
68
+ "rollup-plugin-filesize": "^10.0.0",
69
+ "webpack": "^5.103.0",
70
+ "webpack-cli": "^6.0.1",
71
+ "webpack-dev-server": "^5.2.2"
71
72
  },
72
73
  "scripts": {
73
- "test": "wct",
74
- "lint": "eslint src/*.js",
75
- "start": "polymer serve -o",
74
+ "analyze": "cem analyze --litelement",
75
+ "test": "wtr --coverage",
76
+ "lint": "eslint --ext .js,.html src/vcf-pdf-viewer.js && prettier src/vcf-pdf-viewer.js --check --ignore-path .gitignore",
77
+ "format": "prettier src/vcf-pdf-viewer.js --write --check --ignore-path .gitignore",
78
+ "start": "web-dev-server --node-resolve --open demo/",
76
79
  "publish": "node publish.js",
77
80
  "build": "rimraf dist && rollup -c pdfjs/rollup.config.js"
78
- }
81
+ },
82
+ "customElements": "custom-elements.json"
79
83
  }