From 69c365906d39364d75e9221aff5fb71ea2c5e2b7 Mon Sep 17 00:00:00 2001 From: Andrzej Kurek Date: Mon, 13 May 2024 13:01:06 +0200 Subject: [PATCH 01/15] feat: implement use client --- package.json | 1 + .../components/SfAccordionItem/SfAccordionItem.tsx | 1 + .../react/components/SfDrawer/SfDrawer.tsx | 1 + .../react/components/SfDropdown/SfDropdown.tsx | 1 + .../frameworks/react/components/SfModal/SfModal.tsx | 1 + .../components/SfRatingButton/SfRatingButton.tsx | 1 + .../react/components/SfScrollable/SfScrollable.tsx | 1 + .../react/components/SfSelect/SfSelect.tsx | 1 + .../react/components/SfTextarea/SfTextarea.tsx | 1 + .../react/components/SfTooltip/SfTooltip.tsx | 1 + packages/sfui/frameworks/react/vite.config.ts | 10 +++++++++- yarn.lock | 13 +++++++++++++ 12 files changed, 32 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index f2cee8df97..2b34967443 100644 --- a/package.json +++ b/package.json @@ -70,6 +70,7 @@ "hygen": "^6.2.8", "prettier": "latest", "rimraf": "^5.0.0", + "rollup-plugin-preserve-directives": "^0.4.0", "tailwindcss": "^3.4.3", "turbo": "latest", "typescript": "^5.4.5", diff --git a/packages/sfui/frameworks/react/components/SfAccordionItem/SfAccordionItem.tsx b/packages/sfui/frameworks/react/components/SfAccordionItem/SfAccordionItem.tsx index 9dbaa881a9..2e4a6534f6 100644 --- a/packages/sfui/frameworks/react/components/SfAccordionItem/SfAccordionItem.tsx +++ b/packages/sfui/frameworks/react/components/SfAccordionItem/SfAccordionItem.tsx @@ -1,3 +1,4 @@ +'use client'; import { forwardRef } from 'react'; import type { MouseEvent } from 'react'; import classNames from 'classnames'; diff --git a/packages/sfui/frameworks/react/components/SfDrawer/SfDrawer.tsx b/packages/sfui/frameworks/react/components/SfDrawer/SfDrawer.tsx index 49550caa0d..c2541a1c08 100644 --- a/packages/sfui/frameworks/react/components/SfDrawer/SfDrawer.tsx +++ b/packages/sfui/frameworks/react/components/SfDrawer/SfDrawer.tsx @@ -1,3 +1,4 @@ +'use client'; import classNames from 'classnames'; import { useRef } from 'react'; import { useClickAway } from 'react-use'; diff --git a/packages/sfui/frameworks/react/components/SfDropdown/SfDropdown.tsx b/packages/sfui/frameworks/react/components/SfDropdown/SfDropdown.tsx index ed67d3b7ba..6ec01d6e77 100644 --- a/packages/sfui/frameworks/react/components/SfDropdown/SfDropdown.tsx +++ b/packages/sfui/frameworks/react/components/SfDropdown/SfDropdown.tsx @@ -1,3 +1,4 @@ +'use client'; import classNames from 'classnames'; import { useDropdown } from '@storefront-ui/react'; import type { SfDropdownProps } from '@storefront-ui/react'; diff --git a/packages/sfui/frameworks/react/components/SfModal/SfModal.tsx b/packages/sfui/frameworks/react/components/SfModal/SfModal.tsx index c92232d73c..86b4201c5e 100644 --- a/packages/sfui/frameworks/react/components/SfModal/SfModal.tsx +++ b/packages/sfui/frameworks/react/components/SfModal/SfModal.tsx @@ -1,3 +1,4 @@ +'use client'; import classNames from 'classnames'; import { useRef } from 'react'; import { useClickAway } from 'react-use'; diff --git a/packages/sfui/frameworks/react/components/SfRatingButton/SfRatingButton.tsx b/packages/sfui/frameworks/react/components/SfRatingButton/SfRatingButton.tsx index ce01f4114b..d5a0a39873 100644 --- a/packages/sfui/frameworks/react/components/SfRatingButton/SfRatingButton.tsx +++ b/packages/sfui/frameworks/react/components/SfRatingButton/SfRatingButton.tsx @@ -1,3 +1,4 @@ +'use client'; import { useState, type ChangeEvent } from 'react'; import classnames from 'classnames'; import { diff --git a/packages/sfui/frameworks/react/components/SfScrollable/SfScrollable.tsx b/packages/sfui/frameworks/react/components/SfScrollable/SfScrollable.tsx index 3e53fd298d..07231072fe 100644 --- a/packages/sfui/frameworks/react/components/SfScrollable/SfScrollable.tsx +++ b/packages/sfui/frameworks/react/components/SfScrollable/SfScrollable.tsx @@ -1,3 +1,4 @@ +'use client'; /* eslint-disable react/require-default-props */ import { cloneElement, useMemo } from 'react'; import classNames from 'classnames'; diff --git a/packages/sfui/frameworks/react/components/SfSelect/SfSelect.tsx b/packages/sfui/frameworks/react/components/SfSelect/SfSelect.tsx index b1bc5eeb48..cf53e7c955 100644 --- a/packages/sfui/frameworks/react/components/SfSelect/SfSelect.tsx +++ b/packages/sfui/frameworks/react/components/SfSelect/SfSelect.tsx @@ -1,3 +1,4 @@ +'use client'; import { KeyboardEvent, useState } from 'react'; import classNames from 'classnames'; import { SfSelectSize, SfIconExpandMore, composeHandlers, useFocusVisible } from '@storefront-ui/react'; diff --git a/packages/sfui/frameworks/react/components/SfTextarea/SfTextarea.tsx b/packages/sfui/frameworks/react/components/SfTextarea/SfTextarea.tsx index 8679f95846..efe20fb809 100644 --- a/packages/sfui/frameworks/react/components/SfTextarea/SfTextarea.tsx +++ b/packages/sfui/frameworks/react/components/SfTextarea/SfTextarea.tsx @@ -1,3 +1,4 @@ +'use client'; import classNames from 'classnames'; import { SfTextareaSize, useFocusVisible } from '@storefront-ui/react'; import { forwardRef } from 'react'; diff --git a/packages/sfui/frameworks/react/components/SfTooltip/SfTooltip.tsx b/packages/sfui/frameworks/react/components/SfTooltip/SfTooltip.tsx index 7fbeb9590c..eac5fb7a40 100644 --- a/packages/sfui/frameworks/react/components/SfTooltip/SfTooltip.tsx +++ b/packages/sfui/frameworks/react/components/SfTooltip/SfTooltip.tsx @@ -1,3 +1,4 @@ +'use client'; import { useTooltip } from '@storefront-ui/react'; import type { SfTooltipProps } from '@storefront-ui/react'; diff --git a/packages/sfui/frameworks/react/vite.config.ts b/packages/sfui/frameworks/react/vite.config.ts index 0c5ee8441e..3f241a723c 100644 --- a/packages/sfui/frameworks/react/vite.config.ts +++ b/packages/sfui/frameworks/react/vite.config.ts @@ -3,7 +3,7 @@ import { defineConfig } from 'vite'; import dts from 'vite-plugin-dts'; import react from '@vitejs/plugin-react'; import tsconfigPaths from 'vite-tsconfig-paths'; - +import preserveDirectives from 'rollup-plugin-preserve-directives'; import pkg from './package.json'; export default defineConfig({ @@ -36,6 +36,14 @@ export default defineConfig({ preserveModules: true, preserveModulesRoot: './', }, + plugins: [preserveDirectives()], + onwarn(warning, warn) { + // https://github.com/vitejs/vite-plugin-react/issues/137 + if (warning.code === 'MODULE_LEVEL_DIRECTIVE') { + return; + } + warn(warning); + }, }, }, }); diff --git a/yarn.lock b/yarn.lock index ff25ab1de5..59f631b7bc 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4521,6 +4521,7 @@ __metadata: hygen: ^6.2.8 prettier: latest rimraf: ^5.0.0 + rollup-plugin-preserve-directives: ^0.4.0 tailwindcss: ^3.4.3 turbo: latest typescript: ^5.4.5 @@ -21693,6 +21694,18 @@ __metadata: languageName: node linkType: hard +"rollup-plugin-preserve-directives@npm:^0.4.0": + version: 0.4.0 + resolution: "rollup-plugin-preserve-directives@npm:0.4.0" + dependencies: + "@rollup/pluginutils": ^5.1.0 + magic-string: ^0.30.5 + peerDependencies: + rollup: 2.x || 3.x || 4.x + checksum: 457ca1f60d2cdbe5485339dbc4b228bec5684a99b6589c771bc2268ffaeb29dce2d248f83a85da2fbf572a23cc592d7f59e6485369965210df1035f22ce67feb + languageName: node + linkType: hard + "rollup-plugin-visualizer@npm:^5.12.0": version: 5.12.0 resolution: "rollup-plugin-visualizer@npm:5.12.0" From 78004988de8367176beb86f19d94d1c68953c0b5 Mon Sep 17 00:00:00 2001 From: Andrzej Kurek Date: Mon, 13 May 2024 13:02:00 +0200 Subject: [PATCH 02/15] chore: update allowed node engine --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 2b34967443..4fe7500c88 100644 --- a/package.json +++ b/package.json @@ -79,7 +79,7 @@ "engines": { "npm": ">=8.19.1", "yarn": ">=1.22.19", - "node": ">=16.0.0 <17.0.0" + "node": ">=18.0.0" }, "packageManager": "yarn@3.8.2", "config": { From 396e4a9dd2da04a31406106feb3d06b6a0ede551 Mon Sep 17 00:00:00 2001 From: Andrzej Kurek Date: Mon, 13 May 2024 13:20:57 +0200 Subject: [PATCH 03/15] chore: changeset --- .changeset/moody-panthers-film.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .changeset/moody-panthers-film.md diff --git a/.changeset/moody-panthers-film.md b/.changeset/moody-panthers-film.md new file mode 100644 index 0000000000..cafe8ec447 --- /dev/null +++ b/.changeset/moody-panthers-film.md @@ -0,0 +1,14 @@ +--- +"@storefront-ui/react": minor +--- + +[CHANGED] Implemented `use client` directive in components: +- `SfAccordionItem` +- `SfDrawer` +- `SfDropdown` +- `SfModal` +- `SfRatingButton` +- `SfScrollable` +- `SfSelect` +- `SfTextarea` +- `SfTooltip` From 171aedef93b3c631294bb6ff783d96e3c0e383fd Mon Sep 17 00:00:00 2001 From: Andrzej Kurek Date: Tue, 14 May 2024 08:24:15 +0200 Subject: [PATCH 04/15] Revert "chore: changeset" This reverts commit 396e4a9dd2da04a31406106feb3d06b6a0ede551. --- .changeset/moody-panthers-film.md | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 .changeset/moody-panthers-film.md diff --git a/.changeset/moody-panthers-film.md b/.changeset/moody-panthers-film.md deleted file mode 100644 index cafe8ec447..0000000000 --- a/.changeset/moody-panthers-film.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -"@storefront-ui/react": minor ---- - -[CHANGED] Implemented `use client` directive in components: -- `SfAccordionItem` -- `SfDrawer` -- `SfDropdown` -- `SfModal` -- `SfRatingButton` -- `SfScrollable` -- `SfSelect` -- `SfTextarea` -- `SfTooltip` From 34b7107053521733301a719822383ea056a96f4c Mon Sep 17 00:00:00 2001 From: Andrzej Kurek Date: Tue, 14 May 2024 08:26:49 +0200 Subject: [PATCH 05/15] chore: changeset pre --- .changeset/pre.json | 24 ++++++++++++++++++++++++ .changeset/rich-numbers-end.md | 14 ++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 .changeset/pre.json create mode 100644 .changeset/rich-numbers-end.md diff --git a/.changeset/pre.json b/.changeset/pre.json new file mode 100644 index 0000000000..ba33a632d2 --- /dev/null +++ b/.changeset/pre.json @@ -0,0 +1,24 @@ +{ + "mode": "pre", + "tag": "rc", + "initialVersions": { + "@storefront-ui/docs": "0.0.0", + "@storefront-ui/preview-next": "0.1.0", + "@storefront-ui/preview-nuxt": "0.0.0", + "@storefront-ui/preview-shared": "0.0.0", + "@storefront-ui/react-test": "0.0.0", + "@storefront-ui/vue-test": "0.0.0", + "@storefront-ui/eslint-config": "0.0.0", + "@storefront-ui/example-style": "0.0.0", + "@storefront-ui/tailwind-config": "2.5.1", + "@storefront-ui/typescript-config": "0.0.0", + "@storefront-ui/nuxt": "2.4.6", + "@storefront-ui/react": "2.6.3", + "@storefront-ui/vue": "2.6.3", + "@storefront-ui/shared": "2.5.1", + "@storefront-ui/tw-plugin-peer-next": "2.3.3", + "@storefront-ui/typography": "2.6.1", + "@storefront-ui/tests": "0.0.0" + }, + "changesets": [] +} diff --git a/.changeset/rich-numbers-end.md b/.changeset/rich-numbers-end.md new file mode 100644 index 0000000000..cafe8ec447 --- /dev/null +++ b/.changeset/rich-numbers-end.md @@ -0,0 +1,14 @@ +--- +"@storefront-ui/react": minor +--- + +[CHANGED] Implemented `use client` directive in components: +- `SfAccordionItem` +- `SfDrawer` +- `SfDropdown` +- `SfModal` +- `SfRatingButton` +- `SfScrollable` +- `SfSelect` +- `SfTextarea` +- `SfTooltip` From 37301536ef4e1cbb37973b135b438ee5db306f4e Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 14 May 2024 11:25:49 +0200 Subject: [PATCH 06/15] ci: version packages (rc) (#3154) Co-authored-by: github-actions[bot] --- .changeset/pre.json | 4 +++- packages/sfui/frameworks/react/CHANGELOG.md | 15 +++++++++++++++ packages/sfui/frameworks/react/package.json | 2 +- 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/.changeset/pre.json b/.changeset/pre.json index ba33a632d2..9744069a92 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -20,5 +20,7 @@ "@storefront-ui/typography": "2.6.1", "@storefront-ui/tests": "0.0.0" }, - "changesets": [] + "changesets": [ + "rich-numbers-end" + ] } diff --git a/packages/sfui/frameworks/react/CHANGELOG.md b/packages/sfui/frameworks/react/CHANGELOG.md index b5b76d3cb3..4175d0eb8c 100644 --- a/packages/sfui/frameworks/react/CHANGELOG.md +++ b/packages/sfui/frameworks/react/CHANGELOG.md @@ -1,5 +1,20 @@ # @storefront-ui/react +## 2.7.0-rc.0 + +### Minor Changes + +- [#3148](https://github.com/vuestorefront/storefront-ui/pull/3148) [`34b7107`](https://github.com/vuestorefront/storefront-ui/commit/34b7107053521733301a719822383ea056a96f4c) Thanks [@Razz21](https://github.com/Razz21)! - [CHANGED] Implemented `use client` directive in components: + - `SfAccordionItem` + - `SfDrawer` + - `SfDropdown` + - `SfModal` + - `SfRatingButton` + - `SfScrollable` + - `SfSelect` + - `SfTextarea` + - `SfTooltip` + ## 2.6.3 ### Patch Changes diff --git a/packages/sfui/frameworks/react/package.json b/packages/sfui/frameworks/react/package.json index 0a30841b1f..8a5e2e9feb 100644 --- a/packages/sfui/frameworks/react/package.json +++ b/packages/sfui/frameworks/react/package.json @@ -1,6 +1,6 @@ { "name": "@storefront-ui/react", - "version": "2.6.3", + "version": "2.7.0-rc.0", "license": "MIT", "sideEffects": false, "exports": { From 9bf2578f0aae2f529fc402c92e820b9fb2374a09 Mon Sep 17 00:00:00 2001 From: Andrzej Kurek Date: Fri, 17 May 2024 12:16:37 +0200 Subject: [PATCH 07/15] fix: input client component --- packages/sfui/frameworks/react/components/SfInput/SfInput.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/sfui/frameworks/react/components/SfInput/SfInput.tsx b/packages/sfui/frameworks/react/components/SfInput/SfInput.tsx index 809e593764..3edf290e3b 100644 --- a/packages/sfui/frameworks/react/components/SfInput/SfInput.tsx +++ b/packages/sfui/frameworks/react/components/SfInput/SfInput.tsx @@ -1,3 +1,4 @@ +'use client'; import classNames from 'classnames'; import { SfInputSize, useFocusVisible, type SfInputProps, polymorphicForwardRef } from '@storefront-ui/react'; From a9cd09921c29decf8647e486b4ee573cb89d8fe8 Mon Sep 17 00:00:00 2001 From: Andrzej Kurek Date: Fri, 17 May 2024 12:17:12 +0200 Subject: [PATCH 08/15] chore: changeset --- .changeset/few-panthers-approve.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/few-panthers-approve.md diff --git a/.changeset/few-panthers-approve.md b/.changeset/few-panthers-approve.md new file mode 100644 index 0000000000..9ddd176dad --- /dev/null +++ b/.changeset/few-panthers-approve.md @@ -0,0 +1,5 @@ +--- +"@storefront-ui/react": patch +--- + +[FIXED] Mark SfInput as client component From ccbbc9e0217429d1acad212b8edc52fd33c4cd9b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 17 May 2024 10:29:12 +0000 Subject: [PATCH 09/15] ci: version packages (rc) --- .changeset/pre.json | 1 + packages/sfui/frameworks/react/CHANGELOG.md | 6 ++++++ packages/sfui/frameworks/react/package.json | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.changeset/pre.json b/.changeset/pre.json index 9744069a92..9b362d1495 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -21,6 +21,7 @@ "@storefront-ui/tests": "0.0.0" }, "changesets": [ + "few-panthers-approve", "rich-numbers-end" ] } diff --git a/packages/sfui/frameworks/react/CHANGELOG.md b/packages/sfui/frameworks/react/CHANGELOG.md index 4175d0eb8c..6ed118d211 100644 --- a/packages/sfui/frameworks/react/CHANGELOG.md +++ b/packages/sfui/frameworks/react/CHANGELOG.md @@ -1,5 +1,11 @@ # @storefront-ui/react +## 2.7.0-rc.1 + +### Patch Changes + +- [#3157](https://github.com/vuestorefront/storefront-ui/pull/3157) [`a9cd099`](https://github.com/vuestorefront/storefront-ui/commit/a9cd09921c29decf8647e486b4ee573cb89d8fe8) Thanks [@Razz21](https://github.com/Razz21)! - [FIXED] Mark SfInput as client component + ## 2.7.0-rc.0 ### Minor Changes diff --git a/packages/sfui/frameworks/react/package.json b/packages/sfui/frameworks/react/package.json index 8a5e2e9feb..3f2d902215 100644 --- a/packages/sfui/frameworks/react/package.json +++ b/packages/sfui/frameworks/react/package.json @@ -1,6 +1,6 @@ { "name": "@storefront-ui/react", - "version": "2.7.0-rc.0", + "version": "2.7.0-rc.1", "license": "MIT", "sideEffects": false, "exports": { From af34baafe02d1de1725f3e8e40d4012571108a7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Szymon=20Dziewon=CC=81ski?= Date: Fri, 17 May 2024 14:24:47 +0200 Subject: [PATCH 10/15] ci: version packages (rc) From 21d38b13427a8b2e4debbf773e3818740da12a11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Szymon=20Dziewon=CC=81ski?= Date: Fri, 17 May 2024 14:25:47 +0200 Subject: [PATCH 11/15] ci: version packages (rc) From 5df7aa81c9a709248751110c8d9f139a289b40e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Szymon=20Dziewon=CC=81ski?= Date: Mon, 17 Jun 2024 15:04:57 +0200 Subject: [PATCH 12/15] chore: exit pre release mode --- .changeset/pre.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/pre.json b/.changeset/pre.json index 9b362d1495..0dee2af2fa 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -1,5 +1,5 @@ { - "mode": "pre", + "mode": "exit", "tag": "rc", "initialVersions": { "@storefront-ui/docs": "0.0.0", From 83a8357a8ce0209bf427d6b3601dda32ecd1fe15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Szymon=20Dziewon=CC=81ski?= Date: Mon, 17 Jun 2024 15:41:56 +0200 Subject: [PATCH 13/15] chore: trigger CI --- packages/sfui/frameworks/react/vite.config.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/sfui/frameworks/react/vite.config.ts b/packages/sfui/frameworks/react/vite.config.ts index 3f241a723c..85962fb5fe 100644 --- a/packages/sfui/frameworks/react/vite.config.ts +++ b/packages/sfui/frameworks/react/vite.config.ts @@ -39,9 +39,7 @@ export default defineConfig({ plugins: [preserveDirectives()], onwarn(warning, warn) { // https://github.com/vitejs/vite-plugin-react/issues/137 - if (warning.code === 'MODULE_LEVEL_DIRECTIVE') { - return; - } + if (warning.code === 'MODULE_LEVEL_DIRECTIVE') return; warn(warning); }, }, From 1a829ab780421a8e678cd9bddd1470dee0011e2f Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 22 Jul 2024 14:10:11 +0200 Subject: [PATCH 14/15] ci: version packages (#3197) Co-authored-by: github-actions[bot] --- .changeset/few-panthers-approve.md | 5 ---- .changeset/pre.json | 27 --------------------- .changeset/rich-numbers-end.md | 14 ----------- packages/sfui/frameworks/react/CHANGELOG.md | 19 +++++++++++++++ packages/sfui/frameworks/react/package.json | 2 +- 5 files changed, 20 insertions(+), 47 deletions(-) delete mode 100644 .changeset/few-panthers-approve.md delete mode 100644 .changeset/pre.json delete mode 100644 .changeset/rich-numbers-end.md diff --git a/.changeset/few-panthers-approve.md b/.changeset/few-panthers-approve.md deleted file mode 100644 index 9ddd176dad..0000000000 --- a/.changeset/few-panthers-approve.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@storefront-ui/react": patch ---- - -[FIXED] Mark SfInput as client component diff --git a/.changeset/pre.json b/.changeset/pre.json deleted file mode 100644 index 0dee2af2fa..0000000000 --- a/.changeset/pre.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "mode": "exit", - "tag": "rc", - "initialVersions": { - "@storefront-ui/docs": "0.0.0", - "@storefront-ui/preview-next": "0.1.0", - "@storefront-ui/preview-nuxt": "0.0.0", - "@storefront-ui/preview-shared": "0.0.0", - "@storefront-ui/react-test": "0.0.0", - "@storefront-ui/vue-test": "0.0.0", - "@storefront-ui/eslint-config": "0.0.0", - "@storefront-ui/example-style": "0.0.0", - "@storefront-ui/tailwind-config": "2.5.1", - "@storefront-ui/typescript-config": "0.0.0", - "@storefront-ui/nuxt": "2.4.6", - "@storefront-ui/react": "2.6.3", - "@storefront-ui/vue": "2.6.3", - "@storefront-ui/shared": "2.5.1", - "@storefront-ui/tw-plugin-peer-next": "2.3.3", - "@storefront-ui/typography": "2.6.1", - "@storefront-ui/tests": "0.0.0" - }, - "changesets": [ - "few-panthers-approve", - "rich-numbers-end" - ] -} diff --git a/.changeset/rich-numbers-end.md b/.changeset/rich-numbers-end.md deleted file mode 100644 index cafe8ec447..0000000000 --- a/.changeset/rich-numbers-end.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -"@storefront-ui/react": minor ---- - -[CHANGED] Implemented `use client` directive in components: -- `SfAccordionItem` -- `SfDrawer` -- `SfDropdown` -- `SfModal` -- `SfRatingButton` -- `SfScrollable` -- `SfSelect` -- `SfTextarea` -- `SfTooltip` diff --git a/packages/sfui/frameworks/react/CHANGELOG.md b/packages/sfui/frameworks/react/CHANGELOG.md index 350ce7c36b..ef2811446f 100644 --- a/packages/sfui/frameworks/react/CHANGELOG.md +++ b/packages/sfui/frameworks/react/CHANGELOG.md @@ -1,5 +1,24 @@ # @storefront-ui/react +## 2.7.0 + +### Minor Changes + +- [#3148](https://github.com/vuestorefront/storefront-ui/pull/3148) [`34b7107`](https://github.com/vuestorefront/storefront-ui/commit/34b7107053521733301a719822383ea056a96f4c) Thanks [@Razz21](https://github.com/Razz21)! - [CHANGED] Implemented `use client` directive in components: + - `SfAccordionItem` + - `SfDrawer` + - `SfDropdown` + - `SfModal` + - `SfRatingButton` + - `SfScrollable` + - `SfSelect` + - `SfTextarea` + - `SfTooltip` + +### Patch Changes + +- [#3157](https://github.com/vuestorefront/storefront-ui/pull/3157) [`a9cd099`](https://github.com/vuestorefront/storefront-ui/commit/a9cd09921c29decf8647e486b4ee573cb89d8fe8) Thanks [@Razz21](https://github.com/Razz21)! - [FIXED] Mark SfInput as client component + ## 2.7.0-rc.1 ### Patch Changes diff --git a/packages/sfui/frameworks/react/package.json b/packages/sfui/frameworks/react/package.json index 8ec16c0187..946e577cf0 100644 --- a/packages/sfui/frameworks/react/package.json +++ b/packages/sfui/frameworks/react/package.json @@ -1,6 +1,6 @@ { "name": "@storefront-ui/react", - "version": "2.7.0-rc.1", + "version": "2.7.0", "license": "MIT", "sideEffects": false, "type": "module", From 5a361b9e98080d0ae5d5dc5bf09d805e393df3d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Szymon=20Dziewon=CC=81ski?= Date: Mon, 22 Jul 2024 15:10:41 +0200 Subject: [PATCH 15/15] chore: omit breaking change --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 3604965414..b772fc4b52 100644 --- a/package.json +++ b/package.json @@ -77,7 +77,7 @@ "engines": { "npm": ">=8.19.1", "yarn": ">=1.22.19", - "node": ">=18.0.0" + "node": ">=16.0.0" }, "packageManager": "yarn@3.8.2", "config": {