diff --git a/.changeset/real-jokes-walk.md b/.changeset/real-jokes-walk.md new file mode 100644 index 0000000000..0fcf031829 --- /dev/null +++ b/.changeset/real-jokes-walk.md @@ -0,0 +1,7 @@ +--- +'@siemens/ix-angular': patch +'@siemens/ix': patch +'@siemens/ix-vue': patch +--- + +build: remove internal polyfills diff --git a/packages/angular/src/app-initialize.ts b/packages/angular/src/app-initialize.ts index 786457d95c..5c35442b0e 100644 --- a/packages/angular/src/app-initialize.ts +++ b/packages/angular/src/app-initialize.ts @@ -8,7 +8,7 @@ */ import { defineCustomElements as iconsDefineCustomElements } from '@siemens/ix-icons/loader'; -import { applyPolyfills, defineCustomElements } from '@siemens/ix/loader'; +import { defineCustomElements } from '@siemens/ix/loader'; let didInitialize = false; @@ -22,9 +22,8 @@ export const appInitialize = (doc: Document) => { didInitialize = true; - await applyPolyfills(); + defineCustomElements(); await iconsDefineCustomElements(); - await defineCustomElements(); } }; }; diff --git a/packages/core/.eslintignore b/packages/core/.eslintignore index 6a2148d724..68102d276f 100644 --- a/packages/core/.eslintignore +++ b/packages/core/.eslintignore @@ -1,2 +1,3 @@ playwright-ct.config.ts playwright.config.ts +stencil.config.ts diff --git a/packages/core/component-doc.json b/packages/core/component-doc.json index 7829b7f199..bfd76cc3cd 100644 --- a/packages/core/component-doc.json +++ b/packages/core/component-doc.json @@ -2,8 +2,8 @@ "timestamp": "", "compiler": { "name": "@stencil/core", - "version": "4.13.0", - "typescriptVersion": "5.4.2" + "version": "4.18.3", + "typescriptVersion": "5.4.5" }, "components": [ { diff --git a/packages/documentation/static/code-runtime/html/src/main.js b/packages/documentation/static/code-runtime/html/src/main.js index 43f87d00a2..9dc5853f03 100644 --- a/packages/documentation/static/code-runtime/html/src/main.js +++ b/packages/documentation/static/code-runtime/html/src/main.js @@ -7,10 +7,9 @@ * LICENSE file in the root directory of this source tree. */ -import { applyPolyfills, defineCustomElements } from '@siemens/ix/loader'; +import { defineCustomElements } from '@siemens/ix/loader'; import './styles/global.css'; (async () => { - await applyPolyfills(); - await defineCustomElements(); + defineCustomElements(); })(); diff --git a/packages/html-test-app/src/main.js b/packages/html-test-app/src/main.js index 27b10e80f6..9a17961cb5 100644 --- a/packages/html-test-app/src/main.js +++ b/packages/html-test-app/src/main.js @@ -7,10 +7,9 @@ * LICENSE file in the root directory of this source tree. */ -import { applyPolyfills, defineCustomElements } from '@siemens/ix/loader'; +import { defineCustomElements } from '@siemens/ix/loader'; import 'example-styles/dist/global.css'; (async () => { - await applyPolyfills(); - await defineCustomElements(); + defineCustomElements(); })(); diff --git a/packages/html-test-app/src/preview-examples/init.js b/packages/html-test-app/src/preview-examples/init.js index b8657f996d..c2b45fa684 100644 --- a/packages/html-test-app/src/preview-examples/init.js +++ b/packages/html-test-app/src/preview-examples/init.js @@ -8,7 +8,7 @@ */ import { defineCustomElements as ixIconsDefineCustomElements } from '@siemens/ix-icons/loader'; -import { applyPolyfills, defineCustomElements } from '@siemens/ix/loader'; +import { defineCustomElements } from '@siemens/ix/loader'; import 'example-styles/dist/global.css'; import './placeholder-logo'; @@ -71,9 +71,8 @@ function setBodySizes() { } (async function init() { - await applyPolyfills(); await ixIconsDefineCustomElements(); - await defineCustomElements(); + defineCustomElements(); detectThemeSwitching(); setBodySizes(); diff --git a/packages/vue/src/plugin.ts b/packages/vue/src/plugin.ts index a4b2a5449d..3bf54345ee 100644 --- a/packages/vue/src/plugin.ts +++ b/packages/vue/src/plugin.ts @@ -1,10 +1,8 @@ -import { applyPolyfills, defineCustomElements } from '@siemens/ix/loader'; +import { defineCustomElements } from '@siemens/ix/loader'; import { Plugin } from 'vue'; export const ixPlugin: Plugin = { async install() { - applyPolyfills().then(() => { - defineCustomElements(); - }); + defineCustomElements(); }, }; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ad092e232a..16529f26f6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -270,7 +270,7 @@ importers: version: 2.11.8 '@stencil/core': specifier: ^4.13.0 - version: 4.13.0 + version: 4.18.3 '@types/luxon': specifier: ^3.3.7 version: 3.3.7 @@ -295,19 +295,19 @@ importers: version: 0.7.1(@typescript-eslint/eslint-plugin@6.18.1(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint@8.56.0)(typescript@5.3.3))(@typescript-eslint/parser@6.18.1(eslint@8.56.0)(typescript@5.3.3))(eslint-plugin-react@7.33.2(eslint@8.56.0))(eslint@8.56.0)(typescript@5.3.3) '@stencil-community/postcss': specifier: ^2.2.0 - version: 2.2.0(@stencil/core@4.13.0) + version: 2.2.0(@stencil/core@4.18.3) '@stencil/angular-output-target': specifier: ^0.8.3 - version: 0.8.3(@stencil/core@4.13.0) + version: 0.8.3(@stencil/core@4.18.3) '@stencil/react-output-target': specifier: ^0.5.3 - version: 0.5.3(@stencil/core@4.13.0) + version: 0.5.3(@stencil/core@4.18.3) '@stencil/sass': specifier: ^3.0.8 - version: 3.0.8(@stencil/core@4.13.0) + version: 3.0.8(@stencil/core@4.18.3) '@stencil/vue-output-target': specifier: ^0.8.7 - version: 0.8.7(@stencil/core@4.13.0) + version: 0.8.7(@stencil/core@4.18.3) '@testing-library/dom': specifier: ^8.11.0 version: 8.20.1 @@ -3288,8 +3288,8 @@ packages: engines: {node: '>=14.10.0', npm: '>=6.0.0'} hasBin: true - '@stencil/core@4.13.0': - resolution: {integrity: sha512-gg+gtBWekQ08mDja8GVAUHNu+rrFhQaKZDvfhnS3l/5JbYiJddTimuDPPhuc0sR0JZL1iRdJTJSa+JbvmnQ1cQ==} + '@stencil/core@4.18.3': + resolution: {integrity: sha512-8yoG5AFQYEPocVtuoc5kvRS0Hku0MoDWDUpADRaXPVHsOFLmxR16LJENj25ucCz5GEfeTGQ/tCE8JAypPmr/fQ==} engines: {node: '>=16.0.0', npm: '>=7.10.0'} hasBin: true @@ -17056,30 +17056,30 @@ snapshots: tsutils: 3.21.0(typescript@5.3.3) typescript: 5.3.3 - '@stencil-community/postcss@2.2.0(@stencil/core@4.13.0)': + '@stencil-community/postcss@2.2.0(@stencil/core@4.18.3)': dependencies: - '@stencil/core': 4.13.0 + '@stencil/core': 4.18.3 postcss: 8.4.31 - '@stencil/angular-output-target@0.8.3(@stencil/core@4.13.0)': + '@stencil/angular-output-target@0.8.3(@stencil/core@4.18.3)': dependencies: - '@stencil/core': 4.13.0 + '@stencil/core': 4.18.3 '@stencil/core@3.2.1': {} - '@stencil/core@4.13.0': {} + '@stencil/core@4.18.3': {} - '@stencil/react-output-target@0.5.3(@stencil/core@4.13.0)': + '@stencil/react-output-target@0.5.3(@stencil/core@4.18.3)': dependencies: - '@stencil/core': 4.13.0 + '@stencil/core': 4.18.3 - '@stencil/sass@3.0.8(@stencil/core@4.13.0)': + '@stencil/sass@3.0.8(@stencil/core@4.18.3)': dependencies: - '@stencil/core': 4.13.0 + '@stencil/core': 4.18.3 - '@stencil/vue-output-target@0.8.7(@stencil/core@4.13.0)': + '@stencil/vue-output-target@0.8.7(@stencil/core@4.18.3)': dependencies: - '@stencil/core': 4.13.0 + '@stencil/core': 4.18.3 '@svgr/babel-plugin-add-jsx-attribute@8.0.0(@babel/core@7.23.7)': dependencies: