Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
25e0d13
fix: fieldPath not support arrayIndex like a[1]/a.1
pointhalo Mar 4, 2025
2556545
test: more type test case
pointhalo Mar 5, 2025
58c4f54
Merge branch release into fix-fieldPath
pointhalo Mar 5, 2025
3d4a73b
v2.76.0-alpha.1
pointhalo Mar 5, 2025
2c331b7
chore: update root dependence typescript version from v4 -> 5.8.2
pointhalo Mar 5, 2025
e043919
feat: add team ssh
DaiQiangReal Mar 5, 2025
59c461c
feat: add team ssh
DaiQiangReal Mar 5, 2025
c5da771
feat: add team ssh
DaiQiangReal Mar 5, 2025
6901d6e
feat: add team ssh
DaiQiangReal Mar 5, 2025
d7ff92b
chore: tsconfig remove suppressImplicitAnyIndexErrors
pointhalo Mar 5, 2025
0563052
fix: resolve JsonViewer type error (#2748)
anjiazhuyouxing Mar 7, 2025
b9f5ad7
Merge branch 'release'
YannLynn Mar 7, 2025
bc9db7e
docs(changelog): v2.76.0 update
YannLynn Mar 7, 2025
98e5fb3
chore: publish 2.76.0
semi-team Mar 7, 2025
c5a7695
v2.76.0
semi-team Mar 7, 2025
13ad695
test: comment out ignored test cases
YannLynn Mar 7, 2025
0009aac
chore: fix type error of rspack plugin for webcomponent loader
pointhalo Mar 10, 2025
fc92f7a
fix: Semantic generic parameters
pointhalo Mar 11, 2025
a168b16
fix: useFieldState type
pointhalo Mar 11, 2025
7bf3579
chore: Try to be compatible with strict type
pointhalo Mar 11, 2025
7bca589
v2.76.0-alpha.2
pointhalo Mar 11, 2025
f783c00
chore: ingore some case
pointhalo Mar 11, 2025
6187fa0
v2.76.0-alpha.3
pointhalo Mar 11, 2025
b45633c
fix: type error
pointhalo Mar 11, 2025
495c8a7
v2.76.0-alpha.4
pointhalo Mar 11, 2025
121ec35
fix: type error of form hoc and datepicker month
pointhalo Mar 11, 2025
5f8908b
chore: update alpha version hash
pointhalo Mar 11, 2025
ed20b57
v2.76.0-alpha.5
pointhalo Mar 11, 2025
7fc80df
fix: add Reg/Map/Set endpoint
pointhalo Mar 11, 2025
f788d9b
v2.76.0-alpha.6
pointhalo Mar 11, 2025
f30b478
v2.76.0-alpha.6
pointhalo Mar 11, 2025
caaa4cf
Merge branch 'fix-fieldPath' of github.com:DouyinFE/semi-design into …
pointhalo Mar 11, 2025
2b482e6
v2.76.0-alpha.7
pointhalo Mar 11, 2025
7e85604
fix: without generic
pointhalo Mar 11, 2025
daff828
v2.76.0-alpha.8
pointhalo Mar 11, 2025
4efe8f7
fix: remove isSpecailObject type define
pointhalo Mar 11, 2025
bed6f42
v2.76.0-alpha.9
pointhalo Mar 11, 2025
71ab518
fix: wrong version bump
pointhalo Mar 11, 2025
f4aa4ec
fix: wrong version bump
pointhalo Mar 11, 2025
9181267
fix: wrong version bump
pointhalo Mar 11, 2025
be57966
v2.76.0-alpha.9
pointhalo Mar 11, 2025
ebd0669
v2.76.0-alpha.10
pointhalo Mar 11, 2025
81f1818
Merge branch Main into fix-fieldPath
pointhalo Mar 11, 2025
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
15 changes: 11 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,16 @@ jobs:
name: 'publish a new version'
runs-on: ubuntu-latest
steps:
- name: gen token
run: |
git config --global user.name 'semi-team'
git config --global user.email '[email protected]'
mkdir ~/.ssh
echo $SEMI_TEAM_PRIVATE_KEY > ~/.ssh/ssh-ed25519
echo $SEMI_TEAM_PRIVATE_KEY_PUB > ~/.ssh/ssh-ed25519.pub
echo "Host\n github.com\n AddKeysToAgent yes\n UseKeychain yes\n IdentityFile ~/.ssh/id_ed25519" > ~/.ssh/config

- uses: actions/checkout@v4
with:
token: ${{ secrets.PAT }}

- name: Use Node.js 20
uses: actions/setup-node@v4
Expand All @@ -36,8 +43,8 @@ jobs:

- name: publish
run: |
git config --global user.name 'semi-bot'
git config --global user.email 'semi-[email protected].com'
git config --global user.name 'semi-team'
git config --global user.email 'semi-team@bytedance.com'
node scripts/sitemap_update.js
if [ -n "$(git status --porcelain)" ]; then
echo "there are changes";
Expand Down
19 changes: 7 additions & 12 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
"[javascriptreact]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
},
"[less]": {
"editor.defaultFormatter": "michelemelluso.code-beautifier"
},
"[typescriptreact]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
},
Expand All @@ -24,15 +21,8 @@
"[json]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"[css]": {
"editor.defaultFormatter": "michelemelluso.code-beautifier"
},
"editor.tabSize": 4,
"eden-develop-environment.loose": true,
"eden-develop-environment.temporaryHideWarnings": true,
"git.ignoreLimitWarning": true,
"edenDevelopEnvironment.loose": true,
"edenDevelopEnvironment.temporaryHideWarnings": true,
"i18n-ally.localesPaths": [
"src/locale",
"packages/semi-ui-react/locale",
Expand All @@ -43,6 +33,11 @@
"cSpell.words": [
"backtop",
"douyinfe",
"Splited"
]
"Splited",
"bytedance",
"cascader",
"Cascader",
"Commonexclude",
],
"typescript.tsdk": "node_modules/typescript/lib"
}
4 changes: 2 additions & 2 deletions content/input/form/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2119,13 +2119,13 @@ FormState 存储了所有 Form 内部的状态值,包括各表单控件的值

| Function | 说明 | example |
| ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |---------------------------------------------------------------------------------------------------------------------|
| getFormProps | 获取 Form 组件上当前所有props的值,例如可用于读取 disabled 等。v 2.57.0 后提供 | formApi.getFormProps(propNames?: string[]) |
| getFormProps | 获取 Form 组件上当前所有props的值,例如可用于读取 disabled 等。v2.57.0 后提供 | formApi.getFormProps(propNames?: string[]) |
| getFormState | 获取 FormState | formApi.getFormState() |
| submitForm | 可手动触发 submit 提交操作 | formApi.submitForm() |
| reset | 可手动对 form 进行重置 | formApi.reset(fields?: Array <string\>) |
| validate | 可手动触发对表单的校验,不传参时默认触发整全体Field的校验(配置Form级别校验器后,Field级别校验器在submit或formApi.validate()时不会再被触发),若想触发部分field的校验,将目标field数组传入即可 | formApi.validate()<br/>.then(values=>{})<br/>.catch(errors=>{}) <br/>或 formApi.validate(\['fieldA','fieldB'\])<br/> |
| setValues | 设置整个表单的值。第二个参数中的 isOverride 默认为 false<br/>默认情况下只会从`newValues`中取 Form 中已存在的 field 的值更新到`formState.values`中。<br/>当 isOverride 为`true`时,会直接以 newValues 覆盖赋值给 formState.values | formApi.setValues(newValues: object, { isOverride: boolean }) |
| setValue | 提供直接修改 formState.values 方法,与 setValues 的区别是它仅修改单个 field | formApi.setValue(field: string, newFieldValue: any) |
| setValue | 提供直接修改 formState.values 方法,与 setValues 的区别是它仅修改单个 field。注意首个参数 field 必须有对应的 FieldComponent DOM实体(即属于 Form.XX 或 ArrayField 对应的 field path) | formApi.setValue(field: string, newFieldValue: any) |
| getValue | 获取 单个 Field 的值 | formApi.getValue() <br/>formApi.getValue(field: string) |
| getValues | 获取 所有 Field 的值 | formApi.getValues() |
| setTouched | 修改 formState.touched | formApi.setTouched(field: string, isTouched: boolean) <br/> |
Expand Down
4 changes: 2 additions & 2 deletions content/plus/jsonviewer/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,8 @@ render(CustomRenderJsonComponent);
| 属性 | 说明 | 类型 | 默认值 |
|-------------------|------------------------------------------------|---------------------------------|--------------|
| value | 展示内容 | string | - |
| height | 高度 | number | - |
| width | 宽度 | number | - |
| height | 高度 | number \| string | - |
| width | 宽度 | number \| string | - |
| className | 类名 | string | - |
| style | 内联样式 | object | - |
| showSearch | 是否显示搜索Icon | boolean | true |
Expand Down
4 changes: 4 additions & 0 deletions content/start/changelog/index-en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ Version:Major.Minor.Patch (follow the **Semver** specification)

---

#### 🎉 2.76.0 (2025-03-07)
- 【Fix】
- Fix JsonViewer type error issue [@anjiazhuyouxing](https://github.com/anjiazhuyouxing) [#2748](https://github.com/DouyinFE/semi-design/pull/2748)

#### 🎉 2.76.0-beta.0 (2025-03-04)
- 【Feat】
- Chat supports enableUpload API to support users to set upload behavior [#2735](https://github.com/DouyinFE/semi-design/issues/2735)
Expand Down
3 changes: 3 additions & 0 deletions content/start/changelog/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ Semi 版本号遵循 **Semver** 规范(主版本号-次版本号-修订版本
- 修订版本号(patch):仅会进行 bugfix,发布时间不限
- 不同版本间的详细关系,可查阅 [FAQ](/zh-CN/start/faq)

#### 🎉 2.76.0 (2025-03-07)
- 【Fix】
- 修复 JsonViewer 类型错误问题 [@anjiazhuyouxing](https://github.com/anjiazhuyouxing) [#2748](https://github.com/DouyinFE/semi-design/pull/2748)

#### 🎉 2.76.0-beta.0 (2025-03-04)
- 【Feat】
Expand Down
32 changes: 16 additions & 16 deletions cypress/e2e/scrollList.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,22 @@ describe('scrollList', () => {
});

// todo: due to the https://github.com/DouyinFE/semi-design/pull/2723, temporarily skip this test case
it.skip('infinite scroll', () => {
cy.visit('http://127.0.0.1:6006/iframe.html?id=scrolllist--single-scroll-list&args=&viewMode=story');
cy.wait(500);
cy.get('li[aria-selected="true"]').contains(0);
cy.get('.semi-scrolllist-item-wheel .semi-scrolllist-list-outer').scrollTo('right', { duration: 2000 });
cy.wait(1000);
cy.get('.semi-scrolllist-item-wheel .semi-scrolllist-list-outer').scrollTo('top', { duration: 2000 });
cy.wait(500);
cy.get('.semi-scrolllist-item-wheel .semi-scrolllist-list-outer').scrollTo('bottom', { duration: 2000 });
});
// it.skip('infinite scroll', () => {
// cy.visit('http://127.0.0.1:6006/iframe.html?id=scrolllist--single-scroll-list&args=&viewMode=story');
// cy.wait(500);
// cy.get('li[aria-selected="true"]').contains(0);
// cy.get('.semi-scrolllist-item-wheel .semi-scrolllist-list-outer').scrollTo('right', { duration: 2000 });
// cy.wait(1000);
// cy.get('.semi-scrolllist-item-wheel .semi-scrolllist-list-outer').scrollTo('top', { duration: 2000 });
// cy.wait(500);
// cy.get('.semi-scrolllist-item-wheel .semi-scrolllist-list-outer').scrollTo('bottom', { duration: 2000 });
// });

// todo: due to the https://github.com/DouyinFE/semi-design/pull/2723, temporarily skip this test case
it.skip('click option', () => {
cy.visit('http://127.0.0.1:6006/iframe.html?id=scrolllist--single-scroll-list&args=&viewMode=story');
cy.get('li[aria-selected="true"]').contains(0);
cy.get('.semi-scrolllist-list-outer').contains(59).click();
cy.get('li[aria-selected="true"]').contains(0);
});
// it.skip('click options', () => {
// // cy.visit('http://127.0.0.1:6006/iframe.html?id=scrolllist--single-scroll-list&args=&viewMode=story');
// // cy.get('li[aria-selected="true"]').contains(0);
// // cy.get('.semi-scrolllist-list-outer').contains(59).click();
// // cy.get('li[aria-selected="true"]').contains(0);
// });
});
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"useWorkspaces": true,
"npmClient": "yarn",
"version": "2.74.0"
"version": "2.76.0"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@
"svgo": "^2.7.0",
"terser-webpack-plugin": "^4.2.3",
"ts-loader": "^5.4.5",
"typescript": "^4.8.3",
"typescript": "^5.8.2",
"webpack": "^5.77.0",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^3.11.2",
Expand Down
8 changes: 4 additions & 4 deletions packages/semi-animation-react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@douyinfe/semi-animation-react",
"version": "2.74.0",
"version": "2.76.0",
"description": "motion library for semi-ui-react",
"keywords": [
"motion",
Expand All @@ -25,8 +25,8 @@
"prepublishOnly": "npm run build:lib"
},
"dependencies": {
"@douyinfe/semi-animation": "2.74.0",
"@douyinfe/semi-animation-styled": "2.74.0",
"@douyinfe/semi-animation": "2.76.0",
"@douyinfe/semi-animation-styled": "2.76.0",
"classnames": "^2.2.6"
},
"devDependencies": {
Expand All @@ -42,5 +42,5 @@
"prop-types": "^15.7.2",
"react-storybook-addon-props-combinations": "^1.1.0"
},
"gitHead": "eb34a4f25f002bb4cbcfa51f3df93bed868c831a"
"gitHead": "495c8a72c1811f44d980b1bfa562d3b18d354228"
}
1 change: 0 additions & 1 deletion packages/semi-animation-react/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"moduleResolution": "node",
"noImplicitAny": false,
"jsx": "react",
"suppressImplicitAnyIndexErrors": true,
"forceConsistentCasingInFileNames": true,
"allowSyntheticDefaultImports": true,
"experimentalDecorators": true,
Expand Down
2 changes: 1 addition & 1 deletion packages/semi-animation-styled/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@douyinfe/semi-animation-styled",
"version": "2.74.0",
"version": "2.76.0",
"description": "semi styled animation",
"keywords": [
"semi",
Expand Down
1 change: 0 additions & 1 deletion packages/semi-animation-styled/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"lib": ["es7", "dom"],
"moduleResolution": "node",
"noImplicitAny": false,
"suppressImplicitAnyIndexErrors": true,
"forceConsistentCasingInFileNames": true,
"allowSyntheticDefaultImports": true,
"experimentalDecorators": true,
Expand Down
4 changes: 2 additions & 2 deletions packages/semi-animation/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@douyinfe/semi-animation",
"version": "2.74.0",
"version": "2.76.0",
"description": "animation base library for semi-ui",
"keywords": [
"animation",
Expand Down Expand Up @@ -42,5 +42,5 @@
"merge2": "^1.4.1",
"react-storybook-addon-props-combinations": "^1.1.0"
},
"gitHead": "eb34a4f25f002bb4cbcfa51f3df93bed868c831a"
"gitHead": "495c8a72c1811f44d980b1bfa562d3b18d354228"
}
3 changes: 1 addition & 2 deletions packages/semi-animation/src/interpolate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ export default function interpolate(from: FromTo, to: FromTo, ratio = 0, parser:
if (Array.isArray(from) && Array.isArray(to)) {
from.forEach((fromVal, idx) => {
fromVal = parseFloat(fromVal as string);
const toVal = parseFloat(to[idx]);

const toVal = parseFloat(to[idx] as string);
result.push((toVal - fromVal) * ratio + fromVal);
});
}
Expand Down
1 change: 0 additions & 1 deletion packages/semi-animation/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"lib": ["es7", "dom"],
"moduleResolution": "node",
"noImplicitAny": false,
"suppressImplicitAnyIndexErrors": true,
"forceConsistentCasingInFileNames": true,
"allowSyntheticDefaultImports": true,
"experimentalDecorators": true,
Expand Down
2 changes: 1 addition & 1 deletion packages/semi-eslint-plugin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-plugin-semi-design",
"version": "2.74.0",
"version": "2.76.0",
"description": "semi ui eslint plugin",
"keywords": [
"semi",
Expand Down
Loading
Loading