@arco-design/mobile-react 2.28.0 → 2.28.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,18 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.28.1](https://github.com/arco-design/arco-design-mobile/compare/@arco-design/mobile-react@2.28.0...@arco-design/mobile-react@2.28.1) (2023-08-02)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * `Avatar` make the prop "src" optional ([f99bbc8](https://github.com/arco-design/arco-design-mobile/commit/f99bbc812223ae6c8960b1d712040f1b221efb72))
12
+ * add [@types](https://github.com/types) to peerDependencies ([42f3d5a](https://github.com/arco-design/arco-design-mobile/commit/42f3d5ab19144702d7c371c6cbd1aa031a690abe))
13
+
14
+
15
+
16
+
17
+
6
18
  # [2.28.0](https://github.com/arco-design/arco-design-mobile/compare/@arco-design/mobile-react@2.27.5...@arco-design/mobile-react@2.28.0) (2023-07-14)
7
19
 
8
20
 
package/README.en-US.md CHANGED
@@ -59,8 +59,8 @@ React & ReactDOM: **<a href="https://reactjs.org/docs/cdn-links.html" target="_b
59
59
  React Transition Group: **<a href="https://reactcommunity.org/react-transition-group/" target="_blank">Click here</a>**
60
60
 
61
61
  ```
62
- <link ref="stylesheet" href="https://unpkg.com/@arco-design/mobile-react@2.27.5/dist/style.min.css">
63
- <script src="https://unpkg.com/@arco-design/mobile-react@2.27.5/dist/index.min.js"></script>
62
+ <link ref="stylesheet" href="https://unpkg.com/@arco-design/mobile-react@2.28.0/dist/style.min.css">
63
+ <script src="https://unpkg.com/@arco-design/mobile-react@2.28.0/dist/index.min.js"></script>
64
64
  ```
65
65
 
66
66
  ## Full import
package/README.md CHANGED
@@ -59,8 +59,8 @@ React & ReactDOM: **<a href="https://reactjs.org/docs/cdn-links.html" target="
59
59
  React Transition Group: **<a href="https://reactcommunity.org/react-transition-group/" target="_blank">戳这里获取</a>**
60
60
 
61
61
  ```
62
- <link ref="stylesheet" href="https://unpkg.com/@arco-design/mobile-react@2.27.5/dist/style.min.css">
63
- <script src="https://unpkg.com/@arco-design/mobile-react@2.27.5/dist/index.min.js"></script>
62
+ <link ref="stylesheet" href="https://unpkg.com/@arco-design/mobile-react@2.28.0/dist/style.min.css">
63
+ <script src="https://unpkg.com/@arco-design/mobile-react@2.28.0/dist/index.min.js"></script>
64
64
  ```
65
65
 
66
66
  ## 引入全部
@@ -18,7 +18,7 @@ export interface AvatarProps<T extends ImageProps = ImageProps> extends BaseProp
18
18
  * 图片头像的资源地址
19
19
  * @en resource of avatar picture
20
20
  */
21
- src: string;
21
+ src?: string;
22
22
  /**
23
23
  * 图片头像组件参数,透传给Image组件
24
24
  * @en Image avatar component props, transparently passed to the Image component
@@ -18,7 +18,7 @@ export interface AvatarProps<T extends ImageProps = ImageProps> extends BaseProp
18
18
  * 图片头像的资源地址
19
19
  * @en resource of avatar picture
20
20
  */
21
- src: string;
21
+ src?: string;
22
22
  /**
23
23
  * 图片头像组件参数,透传给Image组件
24
24
  * @en Image avatar component props, transparently passed to the Image component
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arco-design/mobile-react",
3
- "version": "2.28.0",
3
+ "version": "2.28.1",
4
4
  "description": "",
5
5
  "main": "cjs/index.js",
6
6
  "module": "esm/index.js",
@@ -15,7 +15,7 @@
15
15
  "author": "taoyiyue@bytedance.com",
16
16
  "license": "ISC",
17
17
  "dependencies": {
18
- "@arco-design/mobile-utils": "2.16.0",
18
+ "@arco-design/mobile-utils": "2.16.1",
19
19
  "@arco-design/transformable": "^1.0.0",
20
20
  "lodash.throttle": "^4.1.1",
21
21
  "resize-observer-polyfill": "^1.5.1"
@@ -28,12 +28,26 @@
28
28
  "jest": "^25.3.0"
29
29
  },
30
30
  "peerDependencies": {
31
+ "@types/react": ">=16.9.0",
32
+ "@types/react-dom": ">=16.9.0",
33
+ "@types/react-transition-group": ">=4.3.0",
31
34
  "react": ">=16.9.0",
32
35
  "react-dom": ">=16.9.0",
33
36
  "react-transition-group": ">=4.3.0"
34
37
  },
38
+ "peerDependenciesMeta": {
39
+ "@types/react": {
40
+ "optional": true
41
+ },
42
+ "@types/react-dom": {
43
+ "optional": true
44
+ },
45
+ "@types/react-transition-group": {
46
+ "optional": true
47
+ }
48
+ },
35
49
  "publishConfig": {
36
50
  "access": "public"
37
51
  },
38
- "gitHead": "6809000ae9f4310979628d4bd43a728d34266899"
52
+ "gitHead": "b6af06950fab57bee31ce7370a020191b2a93c11"
39
53
  }
@@ -18,7 +18,7 @@ export interface AvatarProps<T extends ImageProps = ImageProps> extends BaseProp
18
18
  * 图片头像的资源地址
19
19
  * @en resource of avatar picture
20
20
  */
21
- src: string;
21
+ src?: string;
22
22
  /**
23
23
  * 图片头像组件参数,透传给Image组件
24
24
  * @en Image avatar component props, transparently passed to the Image component