Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: release/react 2.7.0 #3151

Merged
merged 23 commits into from
Jul 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
69c3659
feat: implement use client
May 13, 2024
7800498
chore: update allowed node engine
May 13, 2024
396e4a9
chore: changeset
May 13, 2024
171aede
Revert "chore: changeset"
May 14, 2024
34b7107
chore: changeset pre
May 14, 2024
475df21
Merge pull request #3148 from vuestorefront/feat/react-client-components
Razz21 May 14, 2024
b4ec9b2
Merge branch 'v2-develop' into v2-release/react-2.7.0.rc.0
Szymon-dziewonski May 14, 2024
3730153
ci: version packages (rc) (#3154)
github-actions[bot] May 14, 2024
9bf2578
fix: input client component
May 17, 2024
a9cd099
chore: changeset
May 17, 2024
54bf0f9
Merge pull request #3157 from vuestorefront/fix/client-input-component
Razz21 May 17, 2024
ccbbc9e
ci: version packages (rc)
github-actions[bot] May 17, 2024
8235910
Merge pull request #3158 from vuestorefront/changeset-release/v2-rele…
Razz21 May 17, 2024
af34baa
ci: version packages (rc)
Szymon-dziewonski May 17, 2024
504f925
Merge branch 'v2-release/react-2.7.0.rc.0' of github.com:vuestorefron…
Szymon-dziewonski May 17, 2024
21d38b1
ci: version packages (rc)
Szymon-dziewonski May 17, 2024
d96300b
Merge branch 'v2-develop' into v2-release/react-2.7.0.rc.0
Szymon-dziewonski Jun 17, 2024
5df7aa8
chore: exit pre release mode
Szymon-dziewonski Jun 17, 2024
83a8357
chore: trigger CI
Szymon-dziewonski Jun 17, 2024
6d87f0c
Merge pull request #3199 from vuestorefront/v2
github-actions[bot] Jun 17, 2024
de42a2d
Merge branch 'v2-develop' into v2-release/react-2.7.0.rc.0
Szymon-dziewonski Jun 17, 2024
1a829ab
ci: version packages (#3197)
github-actions[bot] Jul 22, 2024
5a361b9
chore: omit breaking change
Szymon-dziewonski Jul 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,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",
Expand All @@ -76,7 +77,7 @@
"engines": {
"npm": ">=8.19.1",
"yarn": ">=1.22.19",
"node": ">=16.0.0 <17.0.0"
"node": ">=16.0.0"
},
"packageManager": "[email protected]",
"config": {
Expand Down
40 changes: 40 additions & 0 deletions packages/sfui/frameworks/react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,45 @@
# @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

- [#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

- [#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.4

### Patch Changes
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use client';
import { forwardRef } from 'react';
import type { MouseEvent } from 'react';
import classNames from 'classnames';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use client';
import classNames from 'classnames';
import { useRef } from 'react';
import { useClickAway } from 'react-use';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use client';
import classNames from 'classnames';
import { useDropdown } from '@storefront-ui/react';
import type { SfDropdownProps } from '@storefront-ui/react';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use client';
import classNames from 'classnames';
import { SfInputSize, useFocusVisible, type SfInputProps, polymorphicForwardRef } from '@storefront-ui/react';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use client';
import classNames from 'classnames';
import { useRef } from 'react';
import { useClickAway } from 'react-use';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use client';
import { useState, type ChangeEvent } from 'react';
import classnames from 'classnames';
import {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use client';
/* eslint-disable react/require-default-props */
import { cloneElement, useMemo } from 'react';
import classNames from 'classnames';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use client';
import { KeyboardEvent, useState } from 'react';
import classNames from 'classnames';
import { SfSelectSize, SfIconExpandMore, composeHandlers, useFocusVisible } from '@storefront-ui/react';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use client';
import classNames from 'classnames';
import { SfTextareaSize, useFocusVisible } from '@storefront-ui/react';
import { forwardRef } from 'react';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use client';
import { useTooltip } from '@storefront-ui/react';
import type { SfTooltipProps } from '@storefront-ui/react';

Expand Down
2 changes: 1 addition & 1 deletion packages/sfui/frameworks/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@storefront-ui/react",
"version": "2.6.4",
"version": "2.7.0",
"license": "MIT",
"sideEffects": false,
"type": "module",
Expand Down
8 changes: 7 additions & 1 deletion packages/sfui/frameworks/react/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down Expand Up @@ -36,6 +36,12 @@ 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);
},
},
},
});
13 changes: 13 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4713,6 +4713,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
Expand Down Expand Up @@ -20336,6 +20337,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"
Expand Down
Loading