diff --git a/.changeset/brave-games-press.md b/.changeset/brave-games-press.md new file mode 100644 index 0000000000..73e5bc5986 --- /dev/null +++ b/.changeset/brave-games-press.md @@ -0,0 +1,5 @@ +--- +'@lion/ui': minor +--- + +Update to lit 3 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7280e152f8..b77c037aba 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,6 +4,7 @@ on: push: branches: - master + - lit3 jobs: release: diff --git a/package-lock.json b/package-lock.json index 52cdf2c8c8..1ef0836e8a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1890,7 +1890,8 @@ "dev": true }, "node_modules/@bundled-es-modules/message-format": { - "version": "6.0.4" + "version": "6.0.4", + "dev": true }, "node_modules/@changesets/apply-release-plan": { "version": "6.1.3", @@ -3176,6 +3177,7 @@ }, "node_modules/@open-wc/dedupe-mixin": { "version": "1.3.1", + "dev": true, "license": "MIT" }, "node_modules/@open-wc/eslint-config": { @@ -3241,6 +3243,7 @@ }, "node_modules/@open-wc/scoped-elements": { "version": "2.1.4", + "dev": true, "license": "MIT", "dependencies": { "@lit/reactive-element": "^1.0.0", @@ -3291,6 +3294,7 @@ }, "node_modules/@popperjs/core": { "version": "2.11.6", + "dev": true, "license": "MIT", "funding": { "type": "opencollective", @@ -5558,10 +5562,6 @@ "node": ">=0.8" } }, - "node_modules/autosize": { - "version": "4.0.2", - "license": "MIT" - }, "node_modules/available-typed-arrays": { "version": "1.0.5", "dev": true, @@ -5573,13 +5573,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/awesome-phonenumber": { - "version": "4.0.0", - "license": "MIT", - "engines": { - "node": ">=12" - } - }, "node_modules/axe-core": { "version": "4.5.2", "dev": true, @@ -9805,10 +9798,6 @@ "url": "https://github.com/sponsors/typicode" } }, - "node_modules/ibantools": { - "version": "2.2.0", - "license": "MPL-2.0" - }, "node_modules/iconv-lite": { "version": "0.4.24", "license": "MIT", @@ -11162,6 +11151,7 @@ }, "node_modules/lit": { "version": "2.4.1", + "dev": true, "license": "BSD-3-Clause", "dependencies": { "@lit/reactive-element": "^1.4.0", @@ -11171,6 +11161,7 @@ }, "node_modules/lit-element": { "version": "3.2.2", + "dev": true, "license": "BSD-3-Clause", "dependencies": { "@lit/reactive-element": "^1.3.0", @@ -11179,6 +11170,7 @@ }, "node_modules/lit-html": { "version": "2.4.0", + "dev": true, "license": "BSD-3-Clause", "dependencies": { "@types/trusted-types": "^2.0.2" @@ -18963,7 +18955,7 @@ } }, "packages-node/providence-analytics": { - "version": "0.14.1", + "version": "0.15.1", "hasInstallScript": true, "license": "MIT", "dependencies": { @@ -20259,23 +20251,105 @@ "license": "MIT" }, "packages/singleton-manager": { - "version": "1.6.1", + "version": "1.7.0", "license": "MIT" }, "packages/ui": { "name": "@lion/ui", - "version": "0.4.2", + "version": "0.5.2-alpha.0", "license": "MIT", "dependencies": { - "@bundled-es-modules/message-format": "^6.0.4", - "@open-wc/dedupe-mixin": "^1.3.1", + "@bundled-es-modules/message-format": "^6.2.4", + "@open-wc/dedupe-mixin": "^1.4.0", "@open-wc/scoped-elements": "^2.1.4", - "@popperjs/core": "^2.11.6", - "autosize": "4.0.2", - "awesome-phonenumber": "^4.0.0", - "ibantools": "^2.2.0", - "lit": "^2.4.0", - "singleton-manager": "^1.6.1" + "@popperjs/core": "^2.11.8", + "autosize": "6.0.1", + "awesome-phonenumber": "^6.2.0", + "ibantools": "^4.3.8", + "lit": "^3.1.0", + "singleton-manager": "^1.7.0" + } + }, + "packages/ui/node_modules/@bundled-es-modules/message-format": { + "version": "6.2.4", + "resolved": "https://registry.npmjs.org/@bundled-es-modules/message-format/-/message-format-6.2.4.tgz", + "integrity": "sha512-NBaIEUCzSjLZjrsmSOh8PJLqQjSpXVuekIOuUT8tt4N/FdtAavWsC1YinIqIrbRnkBqV90OxgKzsxhFCzETQBw==" + }, + "packages/ui/node_modules/@lit/reactive-element": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@lit/reactive-element/-/reactive-element-2.0.2.tgz", + "integrity": "sha512-SVOwLAWUQg3Ji1egtOt1UiFe4zdDpnWHyc5qctSceJ5XIu0Uc76YmGpIjZgx9YJ0XtdW0Jm507sDvjOu+HnB8w==", + "dependencies": { + "@lit-labs/ssr-dom-shim": "^1.1.2" + } + }, + "packages/ui/node_modules/@open-wc/dedupe-mixin": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@open-wc/dedupe-mixin/-/dedupe-mixin-1.4.0.tgz", + "integrity": "sha512-Sj7gKl1TLcDbF7B6KUhtvr+1UCxdhMbNY5KxdU5IfMFWqL8oy1ZeAcCANjoB1TL0AJTcPmcCFsCbHf8X2jGDUA==" + }, + "packages/ui/node_modules/@open-wc/scoped-elements": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@open-wc/scoped-elements/-/scoped-elements-3.0.3.tgz", + "integrity": "sha512-ur6fWLsZ8C7l6xg5YpmvT/0/QdxUPtHo7t1PgwMtIN6YgPaJrP8O/Ho3RBBOXqbea7dHGlRegCOwxCcYuYjUyg==", + "dependencies": { + "@open-wc/dedupe-mixin": "^1.4.0", + "lit": "^3.0.0" + } + }, + "packages/ui/node_modules/@popperjs/core": { + "version": "2.11.8", + "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.8.tgz", + "integrity": "sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/popperjs" + } + }, + "packages/ui/node_modules/autosize": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/autosize/-/autosize-6.0.1.tgz", + "integrity": "sha512-f86EjiUKE6Xvczc4ioP1JBlWG7FKrE13qe/DxBCpe8GCipCq2nFw73aO8QEBKHfSbYGDN5eB9jXWKen7tspDqQ==" + }, + "packages/ui/node_modules/awesome-phonenumber": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/awesome-phonenumber/-/awesome-phonenumber-6.2.0.tgz", + "integrity": "sha512-JSFTjZhWxKHUWAOQU+oBJ86Xf89vJpF82w6iuE9lEybeQzYKFs+zVKjOwzevFBfLjiXf72DsWESA+daVUBrhHw==", + "engines": { + "node": ">=18" + } + }, + "packages/ui/node_modules/ibantools": { + "version": "4.3.8", + "resolved": "https://registry.npmjs.org/ibantools/-/ibantools-4.3.8.tgz", + "integrity": "sha512-YBdswuzvCSn3EyFPKj4aolOaJ8fnQ3m+8bCwTbZJaDg2lMWKlQ4C37PodHCrCh6GmzVPpC7b6H+nKcJTDblu/g==" + }, + "packages/ui/node_modules/lit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/lit/-/lit-3.1.0.tgz", + "integrity": "sha512-rzo/hmUqX8zmOdamDAeydfjsGXbbdtAFqMhmocnh2j9aDYqbu0fjXygjCa0T99Od9VQ/2itwaGrjZz/ZELVl7w==", + "dependencies": { + "@lit/reactive-element": "^2.0.0", + "lit-element": "^4.0.0", + "lit-html": "^3.1.0" + } + }, + "packages/ui/node_modules/lit-element": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/lit-element/-/lit-element-4.0.2.tgz", + "integrity": "sha512-/W6WQZUa5VEXwC7H9tbtDMdSs9aWil3Ou8hU6z2cOKWbsm/tXPAcsoaHVEtrDo0zcOIE5GF6QgU55tlGL2Nihg==", + "dependencies": { + "@lit-labs/ssr-dom-shim": "^1.1.2", + "@lit/reactive-element": "^2.0.0", + "lit-html": "^3.1.0" + } + }, + "packages/ui/node_modules/lit-html": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/lit-html/-/lit-html-3.1.0.tgz", + "integrity": "sha512-FwAjq3iNsaO6SOZXEIpeROlJLUlrbyMkn4iuv4f4u1H40Jw8wkeR/OUXZUHUoiYabGk8Y4Y0F/rgq+R4MrOLmA==", + "dependencies": { + "@types/trusted-types": "^2.0.2" } } }, @@ -21393,7 +21467,8 @@ "dev": true }, "@bundled-es-modules/message-format": { - "version": "6.0.4" + "version": "6.0.4", + "dev": true }, "@changesets/apply-release-plan": { "version": "6.1.3", @@ -22346,15 +22421,91 @@ "@lion/ui": { "version": "file:packages/ui", "requires": { - "@bundled-es-modules/message-format": "^6.0.4", - "@open-wc/dedupe-mixin": "^1.3.1", + "@bundled-es-modules/message-format": "^6.2.4", + "@open-wc/dedupe-mixin": "^1.4.0", "@open-wc/scoped-elements": "^2.1.4", - "@popperjs/core": "^2.11.6", - "autosize": "4.0.2", - "awesome-phonenumber": "^4.0.0", - "ibantools": "^2.2.0", - "lit": "^2.4.0", - "singleton-manager": "^1.6.1" + "@popperjs/core": "^2.11.8", + "autosize": "6.0.1", + "awesome-phonenumber": "^6.2.0", + "ibantools": "^4.3.8", + "lit": "^3.1.0", + "singleton-manager": "^1.7.0" + }, + "dependencies": { + "@bundled-es-modules/message-format": { + "version": "6.2.4", + "resolved": "https://registry.npmjs.org/@bundled-es-modules/message-format/-/message-format-6.2.4.tgz", + "integrity": "sha512-NBaIEUCzSjLZjrsmSOh8PJLqQjSpXVuekIOuUT8tt4N/FdtAavWsC1YinIqIrbRnkBqV90OxgKzsxhFCzETQBw==" + }, + "@lit/reactive-element": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@lit/reactive-element/-/reactive-element-2.0.2.tgz", + "integrity": "sha512-SVOwLAWUQg3Ji1egtOt1UiFe4zdDpnWHyc5qctSceJ5XIu0Uc76YmGpIjZgx9YJ0XtdW0Jm507sDvjOu+HnB8w==", + "requires": { + "@lit-labs/ssr-dom-shim": "^1.1.2" + } + }, + "@open-wc/dedupe-mixin": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@open-wc/dedupe-mixin/-/dedupe-mixin-1.4.0.tgz", + "integrity": "sha512-Sj7gKl1TLcDbF7B6KUhtvr+1UCxdhMbNY5KxdU5IfMFWqL8oy1ZeAcCANjoB1TL0AJTcPmcCFsCbHf8X2jGDUA==" + }, + "@open-wc/scoped-elements": { + "version": "https://registry.npmjs.org/@open-wc/scoped-elements/-/scoped-elements-3.0.3.tgz", + "integrity": "sha512-ur6fWLsZ8C7l6xg5YpmvT/0/QdxUPtHo7t1PgwMtIN6YgPaJrP8O/Ho3RBBOXqbea7dHGlRegCOwxCcYuYjUyg==", + "requires": { + "@open-wc/dedupe-mixin": "^1.4.0", + "lit": "^3.0.0" + } + }, + "@popperjs/core": { + "version": "2.11.8", + "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.8.tgz", + "integrity": "sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==" + }, + "autosize": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/autosize/-/autosize-6.0.1.tgz", + "integrity": "sha512-f86EjiUKE6Xvczc4ioP1JBlWG7FKrE13qe/DxBCpe8GCipCq2nFw73aO8QEBKHfSbYGDN5eB9jXWKen7tspDqQ==" + }, + "awesome-phonenumber": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/awesome-phonenumber/-/awesome-phonenumber-6.2.0.tgz", + "integrity": "sha512-JSFTjZhWxKHUWAOQU+oBJ86Xf89vJpF82w6iuE9lEybeQzYKFs+zVKjOwzevFBfLjiXf72DsWESA+daVUBrhHw==" + }, + "ibantools": { + "version": "4.3.8", + "resolved": "https://registry.npmjs.org/ibantools/-/ibantools-4.3.8.tgz", + "integrity": "sha512-YBdswuzvCSn3EyFPKj4aolOaJ8fnQ3m+8bCwTbZJaDg2lMWKlQ4C37PodHCrCh6GmzVPpC7b6H+nKcJTDblu/g==" + }, + "lit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/lit/-/lit-3.1.0.tgz", + "integrity": "sha512-rzo/hmUqX8zmOdamDAeydfjsGXbbdtAFqMhmocnh2j9aDYqbu0fjXygjCa0T99Od9VQ/2itwaGrjZz/ZELVl7w==", + "requires": { + "@lit/reactive-element": "^2.0.0", + "lit-element": "^4.0.0", + "lit-html": "^3.1.0" + } + }, + "lit-element": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/lit-element/-/lit-element-4.0.2.tgz", + "integrity": "sha512-/W6WQZUa5VEXwC7H9tbtDMdSs9aWil3Ou8hU6z2cOKWbsm/tXPAcsoaHVEtrDo0zcOIE5GF6QgU55tlGL2Nihg==", + "requires": { + "@lit-labs/ssr-dom-shim": "^1.1.2", + "@lit/reactive-element": "^2.0.0", + "lit-html": "^3.1.0" + } + }, + "lit-html": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/lit-html/-/lit-html-3.1.0.tgz", + "integrity": "sha512-FwAjq3iNsaO6SOZXEIpeROlJLUlrbyMkn4iuv4f4u1H40Jw8wkeR/OUXZUHUoiYabGk8Y4Y0F/rgq+R4MrOLmA==", + "requires": { + "@types/trusted-types": "^2.0.2" + } + } } }, "@lit-labs/ssr-dom-shim": { @@ -22579,7 +22730,8 @@ } }, "@open-wc/dedupe-mixin": { - "version": "1.3.1" + "version": "1.3.1", + "dev": true }, "@open-wc/eslint-config": { "version": "10.0.0", @@ -22630,6 +22782,7 @@ }, "@open-wc/scoped-elements": { "version": "2.1.4", + "dev": true, "requires": { "@lit/reactive-element": "^1.0.0", "@open-wc/dedupe-mixin": "^1.3.0" @@ -22676,7 +22829,8 @@ } }, "@popperjs/core": { - "version": "2.11.6" + "version": "2.11.6", + "dev": true }, "@rocket/blog": { "version": "0.4.0", @@ -24350,16 +24504,10 @@ "version": "1.0.0", "dev": true }, - "autosize": { - "version": "4.0.2" - }, "available-typed-arrays": { "version": "1.0.5", "dev": true }, - "awesome-phonenumber": { - "version": "4.0.0" - }, "axe-core": { "version": "4.5.2", "dev": true @@ -27110,9 +27258,6 @@ "version": "6.0.0", "dev": true }, - "ibantools": { - "version": "2.2.0" - }, "iconv-lite": { "version": "0.4.24", "requires": { @@ -27923,6 +28068,7 @@ }, "lit": { "version": "2.4.1", + "dev": true, "requires": { "@lit/reactive-element": "^1.4.0", "lit-element": "^3.2.0", @@ -27931,6 +28077,7 @@ }, "lit-element": { "version": "3.2.2", + "dev": true, "requires": { "@lit/reactive-element": "^1.3.0", "lit-html": "^2.2.0" @@ -27938,6 +28085,7 @@ }, "lit-html": { "version": "2.4.0", + "dev": true, "requires": { "@types/trusted-types": "^2.0.2" } diff --git a/packages/ui/components/input-iban/src/formatters.js b/packages/ui/components/input-iban/src/formatters.js index 92a00a0d19..ec6c65a3a6 100644 --- a/packages/ui/components/input-iban/src/formatters.js +++ b/packages/ui/components/input-iban/src/formatters.js @@ -11,5 +11,6 @@ export function formatIBAN(modelValue) { if (!modelValue) { return ''; } + // @ts-ignore should not return null return friendlyFormatIBAN(modelValue); } diff --git a/packages/ui/package.json b/packages/ui/package.json index e806779216..57f1fc5a20 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -1,6 +1,6 @@ { "name": "@lion/ui", - "version": "0.5.2", + "version": "0.5.2-alpha.0", "description": "A package of extendable web components", "license": "MIT", "author": "ing-bank", @@ -59,14 +59,14 @@ "exports/overlays.js" ], "dependencies": { - "@bundled-es-modules/message-format": "^6.0.4", - "@open-wc/dedupe-mixin": "^1.3.1", + "@bundled-es-modules/message-format": "^6.2.4", + "@open-wc/dedupe-mixin": "^1.4.0", "@open-wc/scoped-elements": "^2.1.4", - "@popperjs/core": "^2.11.6", - "autosize": "4.0.2", - "awesome-phonenumber": "^4.0.0", - "ibantools": "^2.2.0", - "lit": "^2.4.0", + "@popperjs/core": "^2.11.8", + "autosize": "6.0.1", + "awesome-phonenumber": "^6.2.0", + "ibantools": "^4.3.8", + "lit": "^3.1.0", "singleton-manager": "^1.7.0" }, "keywords": [