Skip to content

Commit

Permalink
chore: 更新依赖
Browse files Browse the repository at this point in the history
  • Loading branch information
roymondchen committed Oct 31, 2024
1 parent 3817276 commit 49aed6a
Show file tree
Hide file tree
Showing 46 changed files with 2,236 additions and 1,094 deletions.
65 changes: 32 additions & 33 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,48 +43,47 @@
"url": "https://github.com/Tencent/tmagic-editor.git"
},
"devDependencies": {
"@commitlint/cli": "^18.2.0",
"@commitlint/config-conventional": "^18.1.0",
"@rollup/plugin-alias": "^5.1.0",
"@types/node": "^18.19.0",
"@typescript-eslint/eslint-plugin": "^5.57.1",
"@typescript-eslint/parser": "^5.57.1",
"@vitejs/plugin-vue": "^5.1.3",
"@vitest/coverage-v8": "^2.0.5",
"c8": "^7.11.3",
"commitizen": "^4.3.0",
"@commitlint/cli": "^18.6.1",
"@commitlint/config-conventional": "^18.6.3",
"@rollup/plugin-alias": "^5.1.1",
"@types/node": "^18.19.61",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"@vitejs/plugin-vue": "^5.1.4",
"@vitest/coverage-v8": "^2.1.4",
"c8": "^7.14.0",
"commitizen": "^4.3.1",
"conventional-changelog-cli": "^4.1.0",
"cosmiconfig": "^8.3.6",
"cz-conventional-changelog": "^3.3.0",
"element-plus": "^2.8.0",
"enquirer": "^2.3.6",
"eslint": "^8.38.0",
"eslint-config-tencent": "^1.0.4",
"eslint-plugin-import": "^2.27.5",
"element-plus": "^2.8.6",
"enquirer": "^2.4.1",
"eslint": "^8.57.1",
"eslint-config-tencent": "^1.1.1",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-simple-import-sort": "^10.0.0",
"eslint-plugin-vue": "^9.10.0",
"execa": "^4.0.2",
"highlight.js": "^11.7.0",
"husky": "^7.0.0",
"eslint-plugin-vue": "^9.30.0",
"execa": "^4.1.0",
"husky": "^7.0.4",
"jsdom": "^19.0.0",
"lint-staged": "^11.0.1",
"minimist": "^1.2.6",
"picocolors": "^1.0.0",
"prettier": "^2.8.7",
"recast": "^0.20.4",
"lint-staged": "^11.2.6",
"minimist": "^1.2.8",
"picocolors": "^1.1.1",
"prettier": "^2.8.8",
"recast": "^0.20.5",
"rimraf": "^3.0.2",
"rollup": "^4.17.2",
"rollup": "^4.24.3",
"rollup-plugin-dts": "^6.1.1",
"semver": "^7.3.7",
"serialize-javascript": "^6.0.0",
"semver": "^7.6.3",
"serialize-javascript": "^6.0.2",
"shx": "^0.3.4",
"typescript": "^5.5.4",
"vite": "^5.4.3",
"vitepress": "^1.3.4",
"vitest": "^2.0.5",
"vue": "^3.5.0",
"vue-tsc": "^2.1.6"
"typescript": "^5.6.3",
"vite": "^5.4.10",
"vitepress": "^1.4.2",
"vitest": "^2.1.4",
"vue": "^3.5.12",
"vue-tsc": "^2.1.8"
},
"config": {
"commitizen": {
Expand Down
11 changes: 6 additions & 5 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,22 @@
"node": ">=18"
},
"repository": {
"directory": "packages/cli",
"type": "git",
"url": "https://github.com/Tencent/tmagic-editor.git"
},
"dependencies": {
"cac": "^6.7.14",
"chokidar": "^3.6.0",
"esbuild": "^0.21.1",
"esbuild": "^0.21.5",
"fs-extra": "^11.2.0",
"picocolors": "^1.0.0",
"recast": "^0.23.6",
"tslib": "^2.6.2"
"picocolors": "^1.1.1",
"recast": "^0.23.9",
"tslib": "^2.8.0"
},
"devDependencies": {
"@types/fs-extra": "^11.0.4",
"@types/node": "^18.19.0"
"@types/node": "^18.19.61"
},
"peerDependencies": {
"typescript": "*"
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/utils/prepareEntryFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,5 +95,5 @@ export const makeCamelCase = function (name: string): string {
if (typeof name !== 'string') {
return '';
}
return name.replace(/-(\w)/g, ($0, $1) => $1.toUpperCase());
return name.replace(/-(\w)/g, (_$0, $1) => $1.toUpperCase());
};
2 changes: 2 additions & 0 deletions packages/cli/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
"moduleResolution": "Node",
"module": "CommonJS",
"rootDir": "./src",
"outDir": "./lib",
Expand Down
3 changes: 2 additions & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"node": ">=18"
},
"repository": {
"directory": "packages/core",
"type": "git",
"url": "https://github.com/Tencent/tmagic-editor.git"
},
Expand All @@ -50,7 +51,7 @@
"@types/lodash-es": "^4.17.4",
"@types/node": "^18.19.0",
"rimraf": "^3.0.2",
"vite": "^5.4.3"
"vite": "^5.4.10"
},
"peerDependencies": {
"typescript": "*"
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/EventHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export default class EventHelper extends EventEmitter {
node.eventKeys.set(eventNameKey, eventName);
}

const eventHandler = (fromCpt: TMagicNode, ...args: any[]) => {
const eventHandler = (_fromCpt: TMagicNode, ...args: any[]) => {
this.eventHandler(index, node, args);
};

Expand Down
3 changes: 2 additions & 1 deletion packages/data-source/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"node": ">=18"
},
"repository": {
"directory": "packages/data-source",
"type": "git",
"url": "https://github.com/Tencent/tmagic-editor.git"
},
Expand All @@ -51,6 +52,6 @@
"@types/lodash-es": "^4.17.4",
"@types/node": "^18.19.0",
"tsc-alias": "^1.8.5",
"vite": "^5.4.3"
"vite": "^5.4.10"
}
}
3 changes: 2 additions & 1 deletion packages/dep/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,14 @@
"node": ">=18"
},
"repository": {
"directory": "packages/dep",
"type": "git",
"url": "https://github.com/Tencent/tmagic-editor.git"
},
"devDependencies": {
"@types/node": "^18.19.0",
"rimraf": "^3.0.2",
"vite": "^5.4.3"
"vite": "^5.4.10"
},
"peerDependencies": {
"@tmagic/schema": "workspace:*",
Expand Down
4 changes: 2 additions & 2 deletions packages/dep/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const createCodeBlockTarget = (id: Id, codeBlock: CodeBlockContent, initi
id,
initialDeps,
name: codeBlock.name,
isTarget: (key: string | number, value: any) => {
isTarget: (_key: string | number, value: any) => {
if (id === value) {
return true;
}
Expand Down Expand Up @@ -264,7 +264,7 @@ export const createDataSourceMethodTarget = (ds: Pick<DataSourceSchema, 'id' | '
type: DepTargetType.DATA_SOURCE_METHOD,
id: ds.id,
initialDeps,
isTarget: (key: string | number, value: any) => {
isTarget: (_key: string | number, value: any) => {
// 使用data-source-method-select 可以配置出来
if (!Array.isArray(value) || !ds) {
return false;
Expand Down
10 changes: 5 additions & 5 deletions packages/design/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"node": ">=18"
},
"repository": {
"directory": "packages/design",
"type": "git",
"url": "https://github.com/Tencent/tmagic-editor.git"
},
Expand All @@ -41,18 +42,17 @@
"typescript"
],
"dependencies": {
"@popperjs/core": "npm:@sxzz/popperjs-es@^2.11.7"
"@popperjs/core": "^2.11.8"
},
"devDependencies": {
"@types/node": "^18.19.0",
"@vitejs/plugin-vue": "^5.1.3",
"@vue/compiler-sfc": "^3.5.0",
"@vue/test-utils": "^2.4.6",
"@vue/compiler-sfc": "^3.5.12",
"rimraf": "^3.0.2",
"vite": "^5.4.3"
"vite": "^5.4.10"
},
"peerDependencies": {
"vue": "^3.5.0",
"vue": ">=3.5.0",
"typescript": "*"
},
"peerDependenciesMeta": {
Expand Down
2 changes: 1 addition & 1 deletion packages/design/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const tMagicMessage = {
info: (msg: string) => {
console.info(msg);
},
closeAll: (msg: string) => {},
closeAll: (_msg: string) => {},
} as unknown as TMagicMessage;

export const tMagicMessageBox = {
Expand Down
7 changes: 4 additions & 3 deletions packages/editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"node": ">=18"
},
"repository": {
"directory": "packages/editor",
"type": "git",
"url": "https://github.com/Tencent/tmagic-editor.git"
},
Expand Down Expand Up @@ -72,19 +73,19 @@
"@types/serialize-javascript": "^5.0.1",
"@types/sortablejs": "^1.15.8",
"@vitejs/plugin-vue": "^5.1.3",
"@vue/compiler-sfc": "^3.5.0",
"@vue/compiler-sfc": "^3.5.12",
"@vue/test-utils": "^2.4.6",
"rimraf": "^3.0.2",
"sass": "^1.78.0",
"tsc-alias": "^1.8.5",
"type-fest": "^4.10.3",
"vite": "^5.4.3"
"vite": "^5.4.10"
},
"peerDependencies": {
"@tmagic/core": "workspace:*",
"monaco-editor": "^0.48.0",
"typescript": "*",
"vue": "^3.5.0"
"vue": ">=3.5.0"
},
"peerDependenciesMeta": {
"typescript": {
Expand Down
2 changes: 1 addition & 1 deletion packages/editor/src/services/editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -839,7 +839,7 @@ class Editor extends BaseService {

const layout = await this.getLayout(target);

const newConfig = mergeWith(cloneDeep(node), config, (objValue, srcValue) => {
const newConfig = mergeWith(cloneDeep(node), config, (_objValue, srcValue) => {
if (Array.isArray(srcValue)) {
return srcValue;
}
Expand Down
4 changes: 2 additions & 2 deletions packages/editor/src/utils/data-source/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const fillConfig = (config: FormConfig): FormConfig => [
},
{
title: '请求参数裁剪',
display: (formState: FormState, { model }: any) => model.type === 'http',
display: (_formState: FormState, { model }: any) => model.type === 'http',
items: [
{
name: 'beforeRequest',
Expand All @@ -70,7 +70,7 @@ const fillConfig = (config: FormConfig): FormConfig => [
},
{
title: '响应数据裁剪',
display: (formState: FormState, { model }: any) => model.type === 'http',
display: (_formState: FormState, { model }: any) => model.type === 'http',
items: [
{
name: 'afterResponse',
Expand Down
6 changes: 3 additions & 3 deletions packages/editor/src/utils/props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export const styleTabConfig: TabPaneConfig = {
fieldConfig: {
type: 'text',
},
disabled: (vm: FormState, { model }: any) =>
disabled: (_vm: FormState, { model }: any) =>
model.position === 'fixed' && model._magic_position === 'fixedBottom',
},
{
Expand All @@ -103,7 +103,7 @@ export const styleTabConfig: TabPaneConfig = {
fieldConfig: {
type: 'text',
},
disabled: (vm: FormState, { model }: any) =>
disabled: (_vm: FormState, { model }: any) =>
model.position === 'fixed' && model._magic_position === 'fixedTop',
},
],
Expand Down Expand Up @@ -356,7 +356,7 @@ export const advancedTabConfig: TabPaneConfig = {

export const displayTabConfig: TabPaneConfig = {
title: '显示条件',
display: (vm: FormState, { model }: any) => model.type !== 'page',
display: (_vm: FormState, { model }: any) => model.type !== 'page',
items: [
{
type: 'display-conds',
Expand Down
3 changes: 2 additions & 1 deletion packages/element-plus-adapter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"node": ">=18"
},
"repository": {
"directory": "packages/element-plus-adapter",
"type": "git",
"url": "https://github.com/Tencent/tmagic-editor.git"
},
Expand All @@ -39,7 +40,7 @@
"devDependencies": {
"@types/node": "^18.19.0",
"rimraf": "^3.0.2",
"vite": "^5.4.3"
"vite": "^5.4.10"
},
"peerDependencies": {
"@tmagic/design": "workspace:*",
Expand Down
7 changes: 4 additions & 3 deletions packages/form/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"node": ">=18"
},
"repository": {
"directory": "packages/form",
"type": "git",
"url": "https://github.com/Tencent/tmagic-editor.git"
},
Expand All @@ -49,16 +50,16 @@
"@types/node": "^18.19.0",
"@types/sortablejs": "^1.15.8",
"@vitejs/plugin-vue": "^5.1.3",
"@vue/compiler-sfc": "^3.5.0",
"@vue/compiler-sfc": "^3.5.12",
"@vue/test-utils": "^2.4.6",
"rimraf": "^3.0.2",
"sass": "^1.78.0",
"vite": "^5.4.3"
"vite": "^5.4.10"
},
"peerDependencies": {
"@tmagic/design": "workspace:*",
"@tmagic/utils": "workspace:*",
"vue": "^3.5.0",
"vue": ">=3.5.0",
"typescript": "*"
},
"peerDependenciesMeta": {
Expand Down
4 changes: 2 additions & 2 deletions packages/form/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ export interface FormInstallOptions {
const defaultInstallOpt: FormInstallOptions = {};

export default {
install(app: App, opt?: FormInstallOptions) {
const option = Object.assign(defaultInstallOpt, opt || {});
install(app: App, opt: FormInstallOptions = {}) {
const option = Object.assign(defaultInstallOpt, opt);

// eslint-disable-next-line no-param-reassign
app.config.globalProperties.$MAGIC_FORM = option;
Expand Down
3 changes: 2 additions & 1 deletion packages/schema/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,14 @@
},
"license": "Apache-2.0",
"repository": {
"directory": "packages/schema",
"type": "git",
"url": "https://github.com/Tencent/tmagic-editor.git"
},
"devDependencies": {
"@types/node": "^18.19.0",
"rimraf": "^3.0.2",
"vite": "^5.4.3"
"vite": "^5.4.10"
},
"peerDependencies": {
"typescript": "*"
Expand Down
Loading

0 comments on commit 49aed6a

Please sign in to comment.