@sankyu/react-circle-flags 1.5.5 → 1.6.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/README.md +9 -0
- package/README.zh.md +9 -0
- package/dist/index.cjs +2 -2
- package/dist/index.d.ts +4098 -412
- package/dist/index.mjs +2 -2
- package/package.json +11 -14
package/README.md
CHANGED
|
@@ -89,6 +89,15 @@ export default function App() {
|
|
|
89
89
|
> [!TIP]
|
|
90
90
|
> For more information, you may refer to the [Usage Guide](https://react-circle-flags.js.org/docs/guides/getting-started/usage/).
|
|
91
91
|
|
|
92
|
+
## ⚠️ Deprecated: `<CircleFlag />`
|
|
93
|
+
|
|
94
|
+
`<CircleFlag />` is deprecated and is **not recommended for new code**.
|
|
95
|
+
|
|
96
|
+
- It fetches SVG at runtime (not offline-first).
|
|
97
|
+
- After loading, it renders a wrapper with injected SVG HTML, so many SVG-only props won’t apply.
|
|
98
|
+
|
|
99
|
+
See: https://react-circle-flags.js.org/docs/deprecated/circleflag/
|
|
100
|
+
|
|
92
101
|
## 📚 API
|
|
93
102
|
|
|
94
103
|
### Build Meta Information
|
package/README.zh.md
CHANGED
|
@@ -89,6 +89,15 @@ export default function App() {
|
|
|
89
89
|
> [!TIP]
|
|
90
90
|
> 欲了解更多信息,请参阅 [使用指南](https://react-circle-flags.js.org/docs/guides/getting-started/usage/)。
|
|
91
91
|
|
|
92
|
+
## ⚠️ 弃用警告:`<CircleFlag />`
|
|
93
|
+
|
|
94
|
+
`<CircleFlag />` 已弃用,**不推荐在新代码中使用**。
|
|
95
|
+
|
|
96
|
+
- 它会在运行时拉取 SVG(非离线优先)。
|
|
97
|
+
- 加载后渲染的是 wrapper 并注入 SVG HTML,许多仅 SVG 生效的 props 无法按预期工作。
|
|
98
|
+
|
|
99
|
+
详见:https://react-circle-flags.js.org/docs/deprecated/circleflag/
|
|
100
|
+
|
|
92
101
|
## 📚 API
|
|
93
102
|
|
|
94
103
|
### 构建元信息
|