mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-11-30 22:42:09 +08:00
chore: update deps
This commit is contained in:
parent
4dc5f0a298
commit
82df2a8f5c
35
package.json
35
package.json
@ -40,43 +40,44 @@
|
|||||||
"url": "https://github.com/Tencent/tmagic-editor.git"
|
"url": "https://github.com/Tencent/tmagic-editor.git"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@commitlint/cli": "^19.8.1",
|
"@commitlint/cli": "^20.1.0",
|
||||||
"@commitlint/config-conventional": "^19.8.1",
|
"@commitlint/config-conventional": "^20.0.0",
|
||||||
"@rollup/plugin-alias": "^5.1.1",
|
"@rollup/plugin-alias": "^6.0.0",
|
||||||
"@tmagic/eslint-config": "workspace:*",
|
"@tmagic/eslint-config": "workspace:*",
|
||||||
"@types/node": "24.0.10",
|
"@types/node": "24.0.10",
|
||||||
"@vitejs/plugin-vue": "^5.2.3",
|
"@vitejs/plugin-vue": "^6.0.2",
|
||||||
"@vitest/coverage-v8": "^2.1.9",
|
"@vitest/coverage-v8": "^4.0.12",
|
||||||
"@vue/compiler-sfc": "catalog:",
|
"@vue/compiler-sfc": "catalog:",
|
||||||
"c8": "^7.14.0",
|
"c8": "^10.1.3",
|
||||||
"commitizen": "^4.3.1",
|
"commitizen": "^4.3.1",
|
||||||
"conventional-changelog-cli": "^5.0.0",
|
"conventional-changelog-cli": "^5.0.0",
|
||||||
"cosmiconfig": "^8.3.6",
|
"cosmiconfig": "^ 9.0.0 ",
|
||||||
"cz-conventional-changelog": "^3.3.0",
|
"cz-conventional-changelog": "^3.3.0",
|
||||||
"element-plus": "^2.11.4",
|
"element-plus": "^2.11.8",
|
||||||
"enquirer": "^2.4.1",
|
"enquirer": "^2.4.1",
|
||||||
"eslint": "^9.37.0",
|
"eslint": "^9.39.1",
|
||||||
"execa": "^4.1.0",
|
"execa": "^9.6.0",
|
||||||
"highlight.js": "^11.11.1",
|
"highlight.js": "^11.11.1",
|
||||||
"husky": "^9.1.7",
|
"husky": "^9.1.7",
|
||||||
"jsdom": "^19.0.0",
|
"jsdom": "^27.2.0",
|
||||||
"lint-staged": "^16.1.0",
|
"lint-staged": "^16.2.7",
|
||||||
"minimist": "^1.2.8",
|
"minimist": "^1.2.8",
|
||||||
"picocolors": "^1.1.1",
|
"picocolors": "^1.1.1",
|
||||||
"prettier": "^3.6.2",
|
"prettier": "^3.6.2",
|
||||||
"recast": "^0.23.11",
|
"recast": "^0.23.11",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"rollup": "4.44.1",
|
"rollup": "4.44.1",
|
||||||
"rollup-plugin-dts": "^6.2.1",
|
"rollup-plugin-dts": "^6.2.3",
|
||||||
"semver": "^7.7.1",
|
"sass-embedded": "^1.93.3",
|
||||||
"serialize-javascript": "^6.0.2",
|
"semver": "^7.7.3",
|
||||||
|
"serialize-javascript": "^7.0.0",
|
||||||
"shx": "^0.3.4",
|
"shx": "^0.3.4",
|
||||||
"typescript": "catalog:",
|
"typescript": "catalog:",
|
||||||
"vite": "catalog:",
|
"vite": "catalog:",
|
||||||
"vitepress": "^1.6.4",
|
"vitepress": "^1.6.4",
|
||||||
"vitest": "^3.2.4",
|
"vitest": "^4.0.12",
|
||||||
"vue": "catalog:",
|
"vue": "catalog:",
|
||||||
"vue-tsc": "^3.1.1"
|
"vue-tsc": "^3.1.4"
|
||||||
},
|
},
|
||||||
"config": {
|
"config": {
|
||||||
"commitizen": {
|
"commitizen": {
|
||||||
|
|||||||
@ -2,8 +2,9 @@ import path from 'node:path';
|
|||||||
|
|
||||||
import fs from 'fs-extra';
|
import fs from 'fs-extra';
|
||||||
|
|
||||||
|
import { prepareEntryFile } from './utils/prepareEntryFile';
|
||||||
|
import { resolveAppPackages } from './utils/resolveAppPackages';
|
||||||
import { ModuleMainFilePath, UserConfig } from './types';
|
import { ModuleMainFilePath, UserConfig } from './types';
|
||||||
import { prepareEntryFile, resolveAppPackages } from './utils';
|
|
||||||
|
|
||||||
export default class Core {
|
export default class Core {
|
||||||
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
||||||
|
|||||||
@ -55,8 +55,7 @@ export const isIncludeArrayField = (keys: string[], fields: DataSchema[]) => {
|
|||||||
|
|
||||||
// 字段类型为数组并且后面没有数字索引
|
// 字段类型为数组并且后面没有数字索引
|
||||||
return (
|
return (
|
||||||
field &&
|
field?.type === 'array' &&
|
||||||
field.type === 'array' &&
|
|
||||||
// 不是整数
|
// 不是整数
|
||||||
/^(?!\d+$).*$/.test(`${keys[index + 1]}`) &&
|
/^(?!\d+$).*$/.test(`${keys[index + 1]}`) &&
|
||||||
index < keys.length - 1
|
index < keys.length - 1
|
||||||
|
|||||||
@ -46,31 +46,30 @@
|
|||||||
"typescript"
|
"typescript"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@element-plus/icons-vue": "^2.3.1",
|
"@element-plus/icons-vue": "^2.3.2",
|
||||||
"@tmagic/design": "workspace:*",
|
"@tmagic/design": "workspace:*",
|
||||||
"@tmagic/form": "workspace:*",
|
"@tmagic/form": "workspace:*",
|
||||||
"@tmagic/stage": "workspace:*",
|
"@tmagic/stage": "workspace:*",
|
||||||
"@tmagic/table": "workspace:*",
|
"@tmagic/table": "workspace:*",
|
||||||
"@tmagic/utils": "workspace:*",
|
"@tmagic/utils": "workspace:*",
|
||||||
"buffer": "^6.0.3",
|
"buffer": "^6.0.3",
|
||||||
"color": "^3.1.3",
|
|
||||||
"deep-object-diff": "^1.1.9",
|
"deep-object-diff": "^1.1.9",
|
||||||
"emmet-monaco-es": "^5.5.0",
|
"emmet-monaco-es": "^5.6.1",
|
||||||
"events": "^3.3.0",
|
"events": "^3.3.0",
|
||||||
"gesto": "^1.19.4",
|
"gesto": "^1.19.4",
|
||||||
"keycon": "^1.4.0",
|
"keycon": "^1.4.0",
|
||||||
"lodash-es": "^4.17.21",
|
"lodash-es": "^4.17.21",
|
||||||
"moveable": "^0.53.0",
|
"moveable": "^0.53.0",
|
||||||
"serialize-javascript": "^6.0.2",
|
"serialize-javascript": "^7.0.0",
|
||||||
"sortablejs": "^1.15.6"
|
"sortablejs": "^1.15.6"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/events": "^3.0.3",
|
"@types/events": "^3.0.3",
|
||||||
"@types/lodash-es": "^4.17.4",
|
"@types/lodash-es": "^4.17.4",
|
||||||
"@types/serialize-javascript": "^5.0.4",
|
"@types/serialize-javascript": "^5.0.4",
|
||||||
"@types/sortablejs": "^1.15.8",
|
"@types/sortablejs": "^1.15.9",
|
||||||
"@vue/test-utils": "^2.4.6",
|
"@vue/test-utils": "^2.4.6",
|
||||||
"type-fest": "^4.10.3"
|
"type-fest": "^5.2.0"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@tmagic/core": "workspace:*",
|
"@tmagic/core": "workspace:*",
|
||||||
|
|||||||
@ -167,7 +167,7 @@ watch(page, (page) => {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const resizeObserver = new ResizeObserver((entries) => {
|
const resizeObserver = new globalThis.ResizeObserver((entries) => {
|
||||||
for (const { contentRect } of entries) {
|
for (const { contentRect } of entries) {
|
||||||
uiService.set('stageContainerRect', {
|
uiService.set('stageContainerRect', {
|
||||||
width: contentRect.width,
|
width: contentRect.width,
|
||||||
|
|||||||
@ -29,11 +29,11 @@ import uiService from '@editor/services/ui';
|
|||||||
|
|
||||||
globalThis.ResizeObserver =
|
globalThis.ResizeObserver =
|
||||||
globalThis.ResizeObserver ||
|
globalThis.ResizeObserver ||
|
||||||
vi.fn().mockImplementation(() => ({
|
class ResizeObserver {
|
||||||
disconnect: vi.fn(),
|
disconnect = vi.fn();
|
||||||
observe: vi.fn(),
|
observe = vi.fn();
|
||||||
unobserve: vi.fn(),
|
unobserve = vi.fn();
|
||||||
}));
|
};
|
||||||
|
|
||||||
describe('Stage.vue', () => {
|
describe('Stage.vue', () => {
|
||||||
(global as any).fetch = vi.fn(() =>
|
(global as any).fetch = vi.fn(() =>
|
||||||
|
|||||||
@ -37,15 +37,15 @@
|
|||||||
"url": "https://github.com/Tencent/tmagic-editor.git"
|
"url": "https://github.com/Tencent/tmagic-editor.git"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@element-plus/icons-vue": "^2.3.1",
|
"@element-plus/icons-vue": "^2.3.2",
|
||||||
"@popperjs/core": "^2.11.8",
|
"@popperjs/core": "^2.11.8",
|
||||||
"dayjs": "^1.11.11",
|
"dayjs": "^1.11.19",
|
||||||
"lodash-es": "^4.17.21",
|
"lodash-es": "^4.17.21",
|
||||||
"sortablejs": "^1.15.2"
|
"sortablejs": "^1.15.6"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/lodash-es": "^4.17.4",
|
"@types/lodash-es": "^4.17.4",
|
||||||
"@types/sortablejs": "^1.15.8",
|
"@types/sortablejs": "^1.15.9",
|
||||||
"@vue/test-utils": "^2.4.6"
|
"@vue/test-utils": "^2.4.6"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
|
|||||||
@ -50,7 +50,7 @@ Object.defineProperties(globalThis.HTMLElement.prototype, {
|
|||||||
get() {
|
get() {
|
||||||
let parent = this.parentNode;
|
let parent = this.parentNode;
|
||||||
while (parent) {
|
while (parent) {
|
||||||
if (parent.style && parent.style.position === 'absolute') {
|
if (parent.style?.position === 'absolute') {
|
||||||
return parent;
|
return parent;
|
||||||
}
|
}
|
||||||
parent = parent.parentNode;
|
parent = parent.parentNode;
|
||||||
|
|||||||
@ -18,24 +18,23 @@
|
|||||||
"@tmagic/element-plus-adapter": "1.7.0-beta.3",
|
"@tmagic/element-plus-adapter": "1.7.0-beta.3",
|
||||||
"@tmagic/tdesign-vue-next-adapter": "1.7.0-beta.3",
|
"@tmagic/tdesign-vue-next-adapter": "1.7.0-beta.3",
|
||||||
"@tmagic/tmagic-form-runtime": "1.1.3",
|
"@tmagic/tmagic-form-runtime": "1.1.3",
|
||||||
"element-plus": "^2.11.4",
|
"element-plus": "^2.11.8",
|
||||||
"lodash-es": "^4.17.21",
|
"lodash-es": "^4.17.21",
|
||||||
"monaco-editor": "^0.52.2",
|
"monaco-editor": "^0.55.1",
|
||||||
"serialize-javascript": "^6.0.2",
|
"serialize-javascript": "^7.0.0",
|
||||||
"tdesign-vue-next": "^1.17.1",
|
"tdesign-vue-next": "^1.17.3",
|
||||||
"vue": "catalog:",
|
"vue": "catalog:",
|
||||||
"vue-router": "^4.5.1"
|
"vue-router": "^4.6.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/lodash-es": "^4.17.4",
|
"@types/lodash-es": "^4.17.4",
|
||||||
"@types/node": "^24.0.10",
|
"@types/node": "^24.0.10",
|
||||||
"@types/serialize-javascript": "^5.0.4",
|
"@types/serialize-javascript": "^5.0.4",
|
||||||
"@vitejs/plugin-legacy": "^7.2.1",
|
"@vitejs/plugin-legacy": "^7.2.1",
|
||||||
"@vitejs/plugin-vue": "^6.0.1",
|
"@vitejs/plugin-vue": "^6.0.2",
|
||||||
"@vitejs/plugin-vue-jsx": "^5.1.0",
|
"@vitejs/plugin-vue-jsx": "^5.1.2",
|
||||||
"@vue/compiler-sfc": "catalog:",
|
"@vue/compiler-sfc": "catalog:",
|
||||||
"lightningcss": "^1.30.2",
|
"terser": "^5.44.1",
|
||||||
"terser": "^5.43.1",
|
|
||||||
"typescript": "catalog:",
|
"typescript": "catalog:",
|
||||||
"vite": "catalog:"
|
"vite": "catalog:"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -113,6 +113,5 @@ export default defineConfig({
|
|||||||
|
|
||||||
build: {
|
build: {
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
cssMinify: 'lightningcss'
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
6248
pnpm-lock.yaml
generated
6248
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@ -7,8 +7,8 @@ packages:
|
|||||||
- 'eslint-config'
|
- 'eslint-config'
|
||||||
|
|
||||||
catalog:
|
catalog:
|
||||||
vue: ^3.5.22
|
vue: ^3.5.24
|
||||||
'@vue/compiler-sfc': ^3.5.22
|
'@vue/compiler-sfc': ^3.5.24
|
||||||
vite: ^7.1.9
|
vite: ^7.2.4
|
||||||
typescript: "^5.9.3"
|
typescript: "^5.9.3"
|
||||||
|
|
||||||
@ -17,9 +17,9 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@tmagic/core": "1.7.0-beta.3",
|
"@tmagic/core": "1.7.0-beta.3",
|
||||||
"@tmagic/react-runtime-help": "0.2.0",
|
"@tmagic/react-runtime-help": "0.2.1",
|
||||||
"@tmagic/stage": "1.7.0-beta.3",
|
"@tmagic/stage": "1.7.0-beta.3",
|
||||||
"axios": "^1.11.0",
|
"axios": "^1.13.2",
|
||||||
"qrcode": "^1.5.0",
|
"qrcode": "^1.5.0",
|
||||||
"react": "^18.3.1",
|
"react": "^18.3.1",
|
||||||
"react-dom": "^18.3.1"
|
"react-dom": "^18.3.1"
|
||||||
@ -33,7 +33,7 @@
|
|||||||
"@vitejs/plugin-react-refresh": "^1.3.6",
|
"@vitejs/plugin-react-refresh": "^1.3.6",
|
||||||
"fs-extra": "^11.3.1",
|
"fs-extra": "^11.3.1",
|
||||||
"typescript": "catalog:",
|
"typescript": "catalog:",
|
||||||
"terser": "^5.43.1",
|
"terser": "^5.44.1",
|
||||||
"vite": "catalog:",
|
"vite": "catalog:",
|
||||||
"vite-plugin-commonjs": "^0.10.4"
|
"vite-plugin-commonjs": "^0.10.4"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -18,8 +18,8 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@tmagic/core": "1.7.0-beta.3",
|
"@tmagic/core": "1.7.0-beta.3",
|
||||||
"@tmagic/stage": "1.7.0-beta.3",
|
"@tmagic/stage": "1.7.0-beta.3",
|
||||||
"@tmagic/vue-runtime-help": "^1.2.0",
|
"@tmagic/vue-runtime-help": "^1.2.3",
|
||||||
"axios": "^1.11.0",
|
"axios": "^1.13.2",
|
||||||
"vue": "catalog:"
|
"vue": "catalog:"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
@ -27,16 +27,15 @@
|
|||||||
"@types/fs-extra": "^11.0.4",
|
"@types/fs-extra": "^11.0.4",
|
||||||
"@types/node": "^24.0.10",
|
"@types/node": "^24.0.10",
|
||||||
"@vitejs/plugin-legacy": "^7.2.1",
|
"@vitejs/plugin-legacy": "^7.2.1",
|
||||||
"@vitejs/plugin-vue": "^6.0.1",
|
"@vitejs/plugin-vue": "^6.0.2",
|
||||||
"@vitejs/plugin-vue-jsx": "^5.1.0",
|
"@vitejs/plugin-vue-jsx": "^5.1.2",
|
||||||
"@vue/compiler-sfc": "catalog:",
|
"@vue/compiler-sfc": "catalog:",
|
||||||
"fs-extra": "^11.3.1",
|
"fs-extra": "^11.3.1",
|
||||||
"minimist": "^1.2.8",
|
"minimist": "^1.2.8",
|
||||||
"lightningcss": "^1.30.2",
|
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"rollup": "4.44.1",
|
"rollup": "4.44.1",
|
||||||
"rollup-plugin-external-globals": "^0.13.0",
|
"rollup-plugin-external-globals": "^0.13.0",
|
||||||
"terser": "^5.43.1",
|
"terser": "^5.44.1",
|
||||||
"typescript": "catalog:",
|
"typescript": "catalog:",
|
||||||
"vite": "catalog:"
|
"vite": "catalog:"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -66,7 +66,6 @@ export default defineConfig({
|
|||||||
},
|
},
|
||||||
|
|
||||||
build: {
|
build: {
|
||||||
cssMinify: 'lightningcss',
|
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
input: {
|
input: {
|
||||||
page: path.resolve(__dirname, './page/index.html'),
|
page: path.resolve(__dirname, './page/index.html'),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user