Skip to content

Commit 2a4049c

Browse files
authored
feat: update @ui5/webcomponents to ~2.4.0 (#6585)
1 parent a74ffbc commit 2a4049c

File tree

35 files changed

+1477
-225
lines changed

35 files changed

+1477
-225
lines changed

.storybook/custom-element-manifests/fiori.json

Lines changed: 261 additions & 19 deletions
Large diffs are not rendered by default.

.storybook/custom-element-manifests/main.json

Lines changed: 597 additions & 69 deletions
Large diffs are not rendered by default.

.storybook/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
"compilerOptions": {
44
"allowJs": true
55
},
6-
"include": ["./**/*.js", "./**/*.tsx"]
6+
"include": ["./**/*.js", "./**/*.tsx", "./**/*.ts"]
77
}

.storybook/utils.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ const replaceSubComps = {
6060
ToolbarItem: ['ToolbarSeparator', 'ToolbarSpacer', 'ToolbarButton', 'ToolbarSelect', 'ToolbarSelectOption'],
6161
TreeItemBase: ['TreeItem', 'TreeItemCustom'],
6262
AvatarGroupItem: ['Avatar'],
63-
TableFeature: ['TableGrowing', 'TableSelection']
63+
TableFeature: ['TableGrowing', 'TableSelection'],
64+
SideNavigationItemBase: ['SideNavigationItem', 'SideNavigationGroup', 'SideNavigationSubItem']
6465
};
6566

6667
function findSubComponentsRecursively(moduleName: string, cem: any): string[] {

package.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@
2323
"lerna:version-dryrun": "lerna version --conventional-graduate --no-git-tag-version --no-push",
2424
"wrappers:main": "WITH_WEB_COMPONENT_IMPORT_PATH='../../internal/withWebComponent.js' INTERFACES_IMPORT_PATH='../../types/index.js' node packages/cli/dist/bin/index.js create-wrappers --packageName @ui5/webcomponents --out ./packages/main/src/webComponents --additionalComponentNote 'This is a UI5 Web Component! [Repository](https://github.com/SAP/ui5-webcomponents) | [Documentation](https://sap.github.io/ui5-webcomponents/)'",
2525
"wrappers:fiori": "WITH_WEB_COMPONENT_IMPORT_PATH='../../internal/withWebComponent.js' INTERFACES_IMPORT_PATH='../../types/index.js' node packages/cli/dist/bin/index.js create-wrappers --packageName @ui5/webcomponents-fiori --out ./packages/main/src/webComponents --additionalComponentNote 'This is a UI5 Web Component! [Repository](https://github.com/SAP/ui5-webcomponents) | [Documentation](https://sap.github.io/ui5-webcomponents/)'",
26-
"wrappers:compat": "WITH_WEB_COMPONENT_IMPORT_PATH='@ui5/webcomponents-react/dist/internal/withWebComponent.js' node packages/cli/dist/bin/index.js create-wrappers --packageName @ui5/webcomponents-compat --out ./packages/compat/src/components --additionalComponentNote 'This is a UI5 Web Component! [Repository](https://github.com/SAP/ui5-webcomponents) | [Documentation](https://sap.github.io/ui5-webcomponents/)' && prettier --log-level silent --write ./packages/compat/src/components && eslint --ext .ts,.tsx --fix ./packages/compat/src/components/*/index.tsx",
27-
"create-webcomponents-wrapper": "(cd packages/cli && tsc) && yarn run wrappers:main && yarn run wrappers:fiori && yarn run wrappers:compat && prettier --log-level silent --write ./packages/main/src/webComponents && eslint --ext .ts,.tsx --fix ./packages/main/src/webComponents/*/index.tsx && yarn run sb:prepare-cem",
26+
"wrappers:compat": "WITH_WEB_COMPONENT_IMPORT_PATH='@ui5/webcomponents-react/dist/internal/withWebComponent.js' node packages/cli/dist/bin/index.js create-wrappers --packageName @ui5/webcomponents-compat --out ./packages/compat/src/components --additionalComponentNote 'This is a UI5 Web Component! [Repository](https://github.com/SAP/ui5-webcomponents) | [Documentation](https://sap.github.io/ui5-webcomponents/)' && prettier --log-level silent --write ./packages/compat/src/components",
27+
"create-webcomponents-wrapper": "(cd packages/cli && tsc) && yarn run wrappers:main && yarn run wrappers:fiori && prettier --log-level silent --write ./packages/main/src/webComponents && eslint --fix ./packages/main/src/webComponents/*/index.tsx && yarn run sb:prepare-cem",
28+
"create-webcomponents-wrapper-compat": "(cd packages/cli && tsc) && yarn run wrappers:compat && yarn run sb:prepare-cem && eslint --fix ./packages/compat/src/components/*/index.tsx",
2829
"chromatic": "cross-env STORYBOOK_ENV=chromatic npx chromatic --build-script-name build:storybook",
2930
"postinstall": "husky && yarn setup",
3031
"create-cypress-commands-docs": "typedoc && rimraf temp/typedoc",
@@ -39,10 +40,10 @@
3940
"@storybook/react": "8.3.6",
4041
"@storybook/react-vite": "8.3.6",
4142
"@storybook/theming": "8.3.6",
42-
"@ui5/webcomponents": "2.3.0",
43-
"@ui5/webcomponents-compat": "2.3.0",
44-
"@ui5/webcomponents-fiori": "2.3.0",
45-
"@ui5/webcomponents-icons": "2.3.0",
43+
"@ui5/webcomponents": "2.4.0",
44+
"@ui5/webcomponents-compat": "2.4.0",
45+
"@ui5/webcomponents-fiori": "2.4.0",
46+
"@ui5/webcomponents-icons": "2.4.0",
4647
"react": "^18.3.1",
4748
"react-dom": "^18.3.1",
4849
"remark-gfm": "^4.0.0",
@@ -64,7 +65,7 @@
6465
"@types/react": "^18.3.4",
6566
"@types/react-dom": "^18.3.0",
6667
"@types/use-sync-external-store": "^0.0.6",
67-
"@ui5/webcomponents-tools": "2.3.0",
68+
"@ui5/webcomponents-tools": "2.4.0",
6869
"@vitejs/plugin-react": "^4.2.0",
6970
"chromatic": "^11.0.0",
7071
"cssnano": "^7.0.0",

packages/base/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
},
3232
"peerDependencies": {
3333
"@types/react": "*",
34-
"@ui5/webcomponents-base": "~2.3.0",
34+
"@ui5/webcomponents-base": "~2.4.0",
3535
"react": "^18 || ^19"
3636
},
3737
"peerDependenciesMeta": {

packages/charts/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@
3939
"recharts": "2.13.3"
4040
},
4141
"peerDependencies": {
42-
"@ui5/webcomponents-react": "~2.3.0",
43-
"@ui5/webcomponents-react-base": "~2.3.0",
42+
"@ui5/webcomponents-react": "~2.4.0",
43+
"@ui5/webcomponents-react-base": "~2.4.0",
4444
"react": "^18"
4545
},
4646
"publishConfig": {

packages/cli/src/util/recursiveManifestResolver.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ const EXCLUDED_MEMBERS = new Set([
2424
'onEnterDOM',
2525
'onExitDOM',
2626
'onInvalidation',
27-
'getStaticAreaItemDomRef'
27+
'getStaticAreaItemDomRef',
28+
'fireDecoratorEvent'
2829
]);
2930

3031
function mergeArraysWithoutDuplicates(currentValues: any[], newValue: any) {

packages/compat/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141
"peerDependencies": {
4242
"@types/react": "*",
4343
"@types/react-dom": "*",
44-
"@ui5/webcomponents-compat": "~2.3.0",
45-
"@ui5/webcomponents-react": "~2.3.0",
44+
"@ui5/webcomponents-compat": "~2.4.0",
45+
"@ui5/webcomponents-react": "~2.4.0",
4646
"react": "^18 || ^19",
4747
"react-dom": "^18 || ^19"
4848
},

packages/main/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@
5858
"peerDependencies": {
5959
"@types/react": "*",
6060
"@types/react-dom": "*",
61-
"@ui5/webcomponents": "~2.3.0",
62-
"@ui5/webcomponents-base": "~2.3.0",
63-
"@ui5/webcomponents-fiori": "~2.3.0",
64-
"@ui5/webcomponents-icons": "~2.3.0",
61+
"@ui5/webcomponents": "~2.4.0",
62+
"@ui5/webcomponents-base": "~2.4.0",
63+
"@ui5/webcomponents-fiori": "~2.4.0",
64+
"@ui5/webcomponents-icons": "~2.4.0",
6565
"react": "^18 || ^19",
6666
"react-dom": "^18 || ^19"
6767
},

0 commit comments

Comments
 (0)