소스 검색

Merge branch Main into fix-fieldPath

point.halo 7 달 전
부모
커밋
81f1818ee5

+ 11 - 4
.github/workflows/publish.yml

@@ -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
@@ -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";

+ 2 - 2
content/plus/jsonviewer/index.md

@@ -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   |

+ 4 - 0
content/start/changelog/index-en-US.md

@@ -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)

+ 3 - 0
content/start/changelog/index.md

@@ -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】

+ 16 - 16
cypress/e2e/scrollList.spec.js

@@ -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);
+    // });
 });

+ 1 - 1
lerna.json

@@ -1,5 +1,5 @@
 {
     "useWorkspaces": true,
     "npmClient": "yarn",
-    "version": "2.76.0-alpha.10"
+    "version": "2.76.0"
 }

+ 3 - 3
packages/semi-animation-react/package.json

@@ -1,6 +1,6 @@
 {
     "name": "@douyinfe/semi-animation-react",
-    "version": "2.76.0-alpha.5",
+    "version": "2.76.0",
     "description": "motion library for semi-ui-react",
     "keywords": [
         "motion",
@@ -25,8 +25,8 @@
         "prepublishOnly": "npm run build:lib"
     },
     "dependencies": {
-        "@douyinfe/semi-animation": "2.76.0-alpha.5",
-        "@douyinfe/semi-animation-styled": "2.76.0-alpha.2",
+        "@douyinfe/semi-animation": "2.76.0",
+        "@douyinfe/semi-animation-styled": "2.76.0",
         "classnames": "^2.2.6"
     },
     "devDependencies": {

+ 1 - 1
packages/semi-animation-styled/package.json

@@ -1,6 +1,6 @@
 {
     "name": "@douyinfe/semi-animation-styled",
-    "version": "2.76.0-alpha.2",
+    "version": "2.76.0",
     "description": "semi styled animation",
     "keywords": [
         "semi",

+ 1 - 1
packages/semi-animation/package.json

@@ -1,6 +1,6 @@
 {
     "name": "@douyinfe/semi-animation",
-    "version": "2.76.0-alpha.5",
+    "version": "2.76.0",
     "description": "animation base library for semi-ui",
     "keywords": [
         "animation",

+ 1 - 1
packages/semi-eslint-plugin/package.json

@@ -1,6 +1,6 @@
 {
     "name": "eslint-plugin-semi-design",
-    "version": "2.76.0-alpha.1",
+    "version": "2.76.0",
     "description": "semi ui eslint plugin",
     "keywords": [
         "semi",

+ 1 - 1
packages/semi-foundation/package.json

@@ -1,6 +1,6 @@
 {
     "name": "@douyinfe/semi-foundation",
-    "version": "2.76.0-alpha.10",
+    "version": "2.76.0",
     "description": "",
     "scripts": {
         "build:lib": "node ./scripts/compileLib.js",

+ 58 - 58
packages/semi-icons-lab/package.json

@@ -1,60 +1,60 @@
 {
-    "name": "@douyinfe/semi-icons-lab",
-    "version": "2.76.0-alpha.1",
-    "description": "semi icons lab",
-    "keywords": [
-        "semi",
-        "icons"
-    ],
-    "author": "semi",
-    "homepage": "https://semi.design",
-    "bugs": {
-        "url": "https://github.com/DouyinFE/semi-design/issues"
-    },
-    "scripts": {
-        "clean": "rimraf dist lib",
-        "build:icon": "node scripts/build-icon ",
-        "build:lib": "node ./scripts/compileLib.js",
-        "build:js": "npm run build:lib && node scripts/compileDist.js",
-        "prepublishOnly": "npm run clean && npm run build:js"
-    },
-    "main": "lib/cjs/index.js",
-    "module": "lib/es/index.js",
-    "typings": "lib/es/index.d.ts",
-    "license": "MIT",
-    "files": [
-        "lib",
-        "src",
-        "dist"
-    ],
-    "sideEffects": [
-        "*.scss",
-        "*.css"
-    ],
-    "devDependencies": {
-        "@babel/preset-env": "^7.15.8",
-        "@babel/preset-react": "^7.14.5",
-        "babel-loader": "^8.2.2",
-        "css-loader": "4.3.0",
-        "del": "^6.0.0",
-        "gulp": "^4.0.2",
-        "gulp-babel": "^8.0.0",
-        "gulp-replace": "^1.1.3",
-        "gulp-sass": "^5.0.0",
-        "gulp-typescript": "^6.0.0-alpha.1",
-        "merge2": "^1.4.1",
-        "mini-css-extract-plugin": "^2.7.5",
-        "rimraf": "^3.0.2",
-        "terser-webpack-plugin": "^4.2.3",
-        "through2": "^4.0.2",
-        "ts-loader": "^5.4.5"
-    },
-    "peerDependencies": {
-        "react": ">=16.0.0",
-        "react-dom": ">=16.0.0"
-    },
-    "_unpkg": true,
-    "unpkgFiles": [
-        "*"
-    ]
+  "name": "@douyinfe/semi-icons-lab",
+  "version": "2.76.0",
+  "description": "semi icons lab",
+  "keywords": [
+    "semi",
+    "icons"
+  ],
+  "author": "semi",
+  "homepage": "https://semi.design",
+  "bugs": {
+    "url": "https://github.com/DouyinFE/semi-design/issues"
+  },
+  "scripts": {
+    "clean": "rimraf dist lib",
+    "build:icon": "node scripts/build-icon ",
+    "build:lib": "node ./scripts/compileLib.js",
+    "build:js": "npm run build:lib && node scripts/compileDist.js",
+    "prepublishOnly": "npm run clean && npm run build:js"
+  },
+  "main": "lib/cjs/index.js",
+  "module": "lib/es/index.js",
+  "typings": "lib/es/index.d.ts",
+  "license": "MIT",
+  "files": [
+    "lib",
+    "src",
+    "dist"
+  ],
+  "sideEffects": [
+    "*.scss",
+    "*.css"
+  ],
+  "devDependencies": {
+    "@babel/preset-env": "^7.15.8",
+    "@babel/preset-react": "^7.14.5",
+    "babel-loader": "^8.2.2",
+    "css-loader": "4.3.0",
+    "del": "^6.0.0",
+    "gulp": "^4.0.2",
+    "gulp-babel": "^8.0.0",
+    "gulp-replace": "^1.1.3",
+    "gulp-sass": "^5.0.0",
+    "gulp-typescript": "^6.0.0-alpha.1",
+    "merge2": "^1.4.1",
+    "mini-css-extract-plugin": "^2.7.5",
+    "rimraf": "^3.0.2",
+    "terser-webpack-plugin": "^4.2.3",
+    "through2": "^4.0.2",
+    "ts-loader": "^5.4.5"
+  },
+  "peerDependencies": {
+    "react": ">=16.0.0",
+    "react-dom": ">=16.0.0"
+  },
+  "_unpkg": true,
+  "unpkgFiles": [
+    "*"
+  ]
 }

+ 1 - 1
packages/semi-icons/package.json

@@ -1,6 +1,6 @@
 {
     "name": "@douyinfe/semi-icons",
-    "version": "2.76.0-alpha.1",
+    "version": "2.76.0",
     "description": "semi icons",
     "keywords": [
         "semi",

+ 1 - 1
packages/semi-illustrations/package.json

@@ -1,6 +1,6 @@
 {
     "name": "@douyinfe/semi-illustrations",
-    "version": "2.76.0-alpha.2",
+    "version": "2.76.0",
     "description": "semi illustrations",
     "keywords": [
         "semi",

+ 1 - 1
packages/semi-json-viewer-core/package.json

@@ -1,6 +1,6 @@
 {
     "name": "@douyinfe/semi-json-viewer-core",
-    "version": "2.76.0-alpha.5",
+    "version": "2.76.0",
     "description": "",
     "main": "lib/index.js",
     "module": "lib/index.js",

+ 2 - 2
packages/semi-next/package.json

@@ -1,6 +1,6 @@
 {
     "name": "@douyinfe/semi-next",
-    "version": "2.76.0-alpha.5",
+    "version": "2.76.0",
     "description": "Plugin that support Semi Design in Next.js",
     "author": "伍浩威 <[email protected]>",
     "homepage": "",
@@ -22,7 +22,7 @@
         "typescript": "^4"
     },
     "dependencies": {
-        "@douyinfe/semi-webpack-plugin": "2.76.0-alpha.5"
+        "@douyinfe/semi-webpack-plugin": "2.76.0"
     },
     "gitHead": "495c8a72c1811f44d980b1bfa562d3b18d354228"
 }

+ 1 - 1
packages/semi-rspack/package.json

@@ -1,6 +1,6 @@
 {
     "name": "@douyinfe/semi-rspack-plugin",
-    "version": "2.76.0-alpha.2",
+    "version": "2.76.0",
     "description": "",
     "homepage": "",
     "license": "MIT",

+ 1 - 1
packages/semi-scss-compile/package.json

@@ -1,6 +1,6 @@
 {
     "name": "@douyinfe/semi-scss-compile",
-    "version": "2.76.0-alpha.1",
+    "version": "2.76.0",
     "description": "compile semi scss to css",
     "author": "[email protected]",
     "license": "MIT",

+ 1 - 1
packages/semi-theme-default/package.json

@@ -1,6 +1,6 @@
 {
     "name": "@douyinfe/semi-theme-default",
-    "version": "2.76.0-alpha.1",
+    "version": "2.76.0",
     "description": "semi-theme-default",
     "keywords": [
         "semi-theme",

+ 2 - 2
packages/semi-ui/jsonViewer/index.tsx

@@ -27,8 +27,8 @@ const prefixCls = cssClasses.PREFIX;
 export type { JsonViewerOptions };
 export interface JsonViewerProps extends BaseProps {
     value: string;
-    width: number;
-    height: number;
+    width: number | string;
+    height: number | string;
     showSearch?: boolean;
     className?: string;
     style?: React.CSSProperties;

+ 2 - 2
packages/semi-ui/package.json

@@ -1,6 +1,6 @@
 {
     "name": "@douyinfe/semi-ui",
-    "version": "2.76.0-alpha.10",
+    "version": "2.76.0",
     "description": "A modern, comprehensive, flexible design system and UI library. Connect DesignOps & DevOps. Quickly build beautiful React apps. Maintained by Douyin-fe team.",
     "main": "lib/cjs/index.js",
     "module": "lib/es/index.js",
@@ -22,7 +22,7 @@
         "@dnd-kit/utilities": "^3.2.1",
         "@douyinfe/semi-animation": "2.76.0",
         "@douyinfe/semi-animation-react": "2.76.0",
-        "@douyinfe/semi-foundation": "2.76.0-alpha.10",
+        "@douyinfe/semi-foundation": "2.76.0",
         "@douyinfe/semi-icons": "2.76.0",
         "@douyinfe/semi-illustrations": "2.76.0",
         "@douyinfe/semi-theme-default": "2.76.0",

+ 1 - 1
packages/semi-webpack/package.json

@@ -1,6 +1,6 @@
 {
     "name": "@douyinfe/semi-webpack-plugin",
-    "version": "2.76.0-alpha.5",
+    "version": "2.76.0",
     "description": "",
     "author": "伍浩威 <[email protected]>",
     "homepage": "",

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 201 - 257
sitemap.xml


이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.