web-component-wrapper 0.0.558 → 0.0.560

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 (2) hide show
  1. package/package.json +11 -11
  2. package/polyfill.html.ejs +15 -9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "web-component-wrapper",
3
- "version": "0.0.558",
3
+ "version": "0.0.560",
4
4
  "description": "Generic web-component base class and framework specific wrapper.",
5
5
  "keywords": [
6
6
  "component",
@@ -44,10 +44,10 @@
44
44
  "url": "https://github.com/thaibault/web-component-wrapper"
45
45
  },
46
46
  "scripts": {
47
- "build": "yarn build:types; yarn build:plain; yarn build:next",
48
- "build:bundle": "yarn build:types; yarn build:bundle:plain; yarn build:next",
49
- "build:bundle:plain": "weboptimizer build '{__reference__: \"target:bundle\"}'",
50
- "build:plain": "weboptimizer build",
47
+ "build": "yarn build:types; yarn build:plain",
48
+ "build:bundle": "yarn build:types; yarn build:bundle:plain",
49
+ "build:bundle:plain": "weboptimizer build '{__reference__: \"target:bundle\"}'; yarn build:next",
50
+ "build:plain": "weboptimizer build; yarn build:next",
51
51
  "build:next": "weboptimizer build '{__reference__: \"target:next\"}'",
52
52
  "build:types": "weboptimizer build:types",
53
53
  "check": "yarn check:types; yarn lint",
@@ -78,12 +78,12 @@
78
78
  "@types/react": "^19.2.14",
79
79
  "@types/react-dom": "^19.2.3",
80
80
  "@types/webpack-env": "^1.18.8",
81
- "@typescript-eslint/eslint-plugin": "^8.58.1",
82
- "@typescript-eslint/parser": "^8.58.1",
81
+ "@typescript-eslint/eslint-plugin": "^8.59.0",
82
+ "@typescript-eslint/parser": "^8.59.0",
83
83
  "@webcomponents/webcomponentsjs": "^2.8.0",
84
- "clientnode": "^4.0.1386",
85
- "documentation-website": "^1.0.401",
86
- "eslint": "^10.2.0",
84
+ "clientnode": "^4.0.1387",
85
+ "documentation-website": "^1.0.402",
86
+ "eslint": "^10.2.1",
87
87
  "eslint-config-google": "^0.14.0",
88
88
  "eslint-plugin-jsdoc": "^62.9.0",
89
89
  "jest": "^30.3.0",
@@ -91,7 +91,7 @@
91
91
  "prop-types": "^15.8.1",
92
92
  "react": "^19.2.5",
93
93
  "react-dom": "^19.2.5",
94
- "typescript-eslint": "^8.58.1",
94
+ "typescript-eslint": "^8.59.0",
95
95
  "weboptimizer": "^3.0.21",
96
96
  "webpack-dev-server": "^5.2.3"
97
97
  },
package/polyfill.html.ejs CHANGED
@@ -57,12 +57,18 @@
57
57
  ))
58
58
  _%>
59
59
  <script src="https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js?version=4.8.0&features=<%- encodeURIComponent(Array.from(features).sort().join(',')) %>"></script>
60
- <script>
61
- /*
62
- Only provide the shadow dom polyfill and avoid to patch a lot of dom
63
- apis.
64
- */
65
- window.ShadyDOM = {noPatch: true}
66
- </script>
67
- <script src="/@webcomponents/webcomponentsjs/webcomponents-bundle.js"></script>
68
- <script src="/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js"></script>
60
+
61
+ <%_ if (typeof webComponents === 'undefined' || webComponents) { _%>
62
+ <script>
63
+ /*
64
+ Only provide the shadow dom polyfill and avoid to patch a lot of
65
+ dom apis.
66
+ */
67
+ window.ShadyDOM = {noPatch: true}
68
+ </script>
69
+ <script src="/@webcomponents/webcomponentsjs/webcomponents-bundle.js">
70
+ </script>
71
+ <script
72
+ src="/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js"
73
+ ></script>
74
+ <%_ } _%>