chore: update deps

This commit is contained in:
roymondchen 2025-11-21 16:50:46 +08:00
parent 4dc5f0a298
commit 82df2a8f5c
15 changed files with 2767 additions and 3597 deletions

View File

@ -40,43 +40,44 @@
"url": "https://github.com/Tencent/tmagic-editor.git"
},
"devDependencies": {
"@commitlint/cli": "^19.8.1",
"@commitlint/config-conventional": "^19.8.1",
"@rollup/plugin-alias": "^5.1.1",
"@commitlint/cli": "^20.1.0",
"@commitlint/config-conventional": "^20.0.0",
"@rollup/plugin-alias": "^6.0.0",
"@tmagic/eslint-config": "workspace:*",
"@types/node": "24.0.10",
"@vitejs/plugin-vue": "^5.2.3",
"@vitest/coverage-v8": "^2.1.9",
"@vitejs/plugin-vue": "^6.0.2",
"@vitest/coverage-v8": "^4.0.12",
"@vue/compiler-sfc": "catalog:",
"c8": "^7.14.0",
"c8": "^10.1.3",
"commitizen": "^4.3.1",
"conventional-changelog-cli": "^5.0.0",
"cosmiconfig": "^8.3.6",
"cosmiconfig": "^ 9.0.0 ",
"cz-conventional-changelog": "^3.3.0",
"element-plus": "^2.11.4",
"element-plus": "^2.11.8",
"enquirer": "^2.4.1",
"eslint": "^9.37.0",
"execa": "^4.1.0",
"eslint": "^9.39.1",
"execa": "^9.6.0",
"highlight.js": "^11.11.1",
"husky": "^9.1.7",
"jsdom": "^19.0.0",
"lint-staged": "^16.1.0",
"jsdom": "^27.2.0",
"lint-staged": "^16.2.7",
"minimist": "^1.2.8",
"picocolors": "^1.1.1",
"prettier": "^3.6.2",
"recast": "^0.23.11",
"rimraf": "^3.0.2",
"rollup": "4.44.1",
"rollup-plugin-dts": "^6.2.1",
"semver": "^7.7.1",
"serialize-javascript": "^6.0.2",
"rollup-plugin-dts": "^6.2.3",
"sass-embedded": "^1.93.3",
"semver": "^7.7.3",
"serialize-javascript": "^7.0.0",
"shx": "^0.3.4",
"typescript": "catalog:",
"vite": "catalog:",
"vitepress": "^1.6.4",
"vitest": "^3.2.4",
"vitest": "^4.0.12",
"vue": "catalog:",
"vue-tsc": "^3.1.1"
"vue-tsc": "^3.1.4"
},
"config": {
"commitizen": {

View File

@ -2,8 +2,9 @@ import path from 'node:path';
import fs from 'fs-extra';
import { prepareEntryFile } from './utils/prepareEntryFile';
import { resolveAppPackages } from './utils/resolveAppPackages';
import { ModuleMainFilePath, UserConfig } from './types';
import { prepareEntryFile, resolveAppPackages } from './utils';
export default class Core {
// eslint-disable-next-line @typescript-eslint/no-require-imports

View File

@ -55,8 +55,7 @@ export const isIncludeArrayField = (keys: string[], fields: DataSchema[]) => {
// 字段类型为数组并且后面没有数字索引
return (
field &&
field.type === 'array' &&
field?.type === 'array' &&
// 不是整数
/^(?!\d+$).*$/.test(`${keys[index + 1]}`) &&
index < keys.length - 1

View File

@ -46,31 +46,30 @@
"typescript"
],
"dependencies": {
"@element-plus/icons-vue": "^2.3.1",
"@element-plus/icons-vue": "^2.3.2",
"@tmagic/design": "workspace:*",
"@tmagic/form": "workspace:*",
"@tmagic/stage": "workspace:*",
"@tmagic/table": "workspace:*",
"@tmagic/utils": "workspace:*",
"buffer": "^6.0.3",
"color": "^3.1.3",
"deep-object-diff": "^1.1.9",
"emmet-monaco-es": "^5.5.0",
"emmet-monaco-es": "^5.6.1",
"events": "^3.3.0",
"gesto": "^1.19.4",
"keycon": "^1.4.0",
"lodash-es": "^4.17.21",
"moveable": "^0.53.0",
"serialize-javascript": "^6.0.2",
"serialize-javascript": "^7.0.0",
"sortablejs": "^1.15.6"
},
"devDependencies": {
"@types/events": "^3.0.3",
"@types/lodash-es": "^4.17.4",
"@types/serialize-javascript": "^5.0.4",
"@types/sortablejs": "^1.15.8",
"@types/sortablejs": "^1.15.9",
"@vue/test-utils": "^2.4.6",
"type-fest": "^4.10.3"
"type-fest": "^5.2.0"
},
"peerDependencies": {
"@tmagic/core": "workspace:*",

View File

@ -167,7 +167,7 @@ watch(page, (page) => {
}
});
const resizeObserver = new ResizeObserver((entries) => {
const resizeObserver = new globalThis.ResizeObserver((entries) => {
for (const { contentRect } of entries) {
uiService.set('stageContainerRect', {
width: contentRect.width,

View File

@ -29,11 +29,11 @@ import uiService from '@editor/services/ui';
globalThis.ResizeObserver =
globalThis.ResizeObserver ||
vi.fn().mockImplementation(() => ({
disconnect: vi.fn(),
observe: vi.fn(),
unobserve: vi.fn(),
}));
class ResizeObserver {
disconnect = vi.fn();
observe = vi.fn();
unobserve = vi.fn();
};
describe('Stage.vue', () => {
(global as any).fetch = vi.fn(() =>

View File

@ -37,15 +37,15 @@
"url": "https://github.com/Tencent/tmagic-editor.git"
},
"dependencies": {
"@element-plus/icons-vue": "^2.3.1",
"@element-plus/icons-vue": "^2.3.2",
"@popperjs/core": "^2.11.8",
"dayjs": "^1.11.11",
"dayjs": "^1.11.19",
"lodash-es": "^4.17.21",
"sortablejs": "^1.15.2"
"sortablejs": "^1.15.6"
},
"devDependencies": {
"@types/lodash-es": "^4.17.4",
"@types/sortablejs": "^1.15.8",
"@types/sortablejs": "^1.15.9",
"@vue/test-utils": "^2.4.6"
},
"peerDependencies": {

View File

@ -50,7 +50,7 @@ Object.defineProperties(globalThis.HTMLElement.prototype, {
get() {
let parent = this.parentNode;
while (parent) {
if (parent.style && parent.style.position === 'absolute') {
if (parent.style?.position === 'absolute') {
return parent;
}
parent = parent.parentNode;

View File

@ -18,24 +18,23 @@
"@tmagic/element-plus-adapter": "1.7.0-beta.3",
"@tmagic/tdesign-vue-next-adapter": "1.7.0-beta.3",
"@tmagic/tmagic-form-runtime": "1.1.3",
"element-plus": "^2.11.4",
"element-plus": "^2.11.8",
"lodash-es": "^4.17.21",
"monaco-editor": "^0.52.2",
"serialize-javascript": "^6.0.2",
"tdesign-vue-next": "^1.17.1",
"monaco-editor": "^0.55.1",
"serialize-javascript": "^7.0.0",
"tdesign-vue-next": "^1.17.3",
"vue": "catalog:",
"vue-router": "^4.5.1"
"vue-router": "^4.6.3"
},
"devDependencies": {
"@types/lodash-es": "^4.17.4",
"@types/node": "^24.0.10",
"@types/serialize-javascript": "^5.0.4",
"@vitejs/plugin-legacy": "^7.2.1",
"@vitejs/plugin-vue": "^6.0.1",
"@vitejs/plugin-vue-jsx": "^5.1.0",
"@vitejs/plugin-vue": "^6.0.2",
"@vitejs/plugin-vue-jsx": "^5.1.2",
"@vue/compiler-sfc": "catalog:",
"lightningcss": "^1.30.2",
"terser": "^5.43.1",
"terser": "^5.44.1",
"typescript": "catalog:",
"vite": "catalog:"
}

View File

@ -113,6 +113,5 @@ export default defineConfig({
build: {
sourcemap: true,
cssMinify: 'lightningcss'
},
});

6248
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@ -7,8 +7,8 @@ packages:
- 'eslint-config'
catalog:
vue: ^3.5.22
'@vue/compiler-sfc': ^3.5.22
vite: ^7.1.9
vue: ^3.5.24
'@vue/compiler-sfc': ^3.5.24
vite: ^7.2.4
typescript: "^5.9.3"

View File

@ -17,9 +17,9 @@
},
"dependencies": {
"@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",
"axios": "^1.11.0",
"axios": "^1.13.2",
"qrcode": "^1.5.0",
"react": "^18.3.1",
"react-dom": "^18.3.1"
@ -33,7 +33,7 @@
"@vitejs/plugin-react-refresh": "^1.3.6",
"fs-extra": "^11.3.1",
"typescript": "catalog:",
"terser": "^5.43.1",
"terser": "^5.44.1",
"vite": "catalog:",
"vite-plugin-commonjs": "^0.10.4"
}

View File

@ -18,8 +18,8 @@
"dependencies": {
"@tmagic/core": "1.7.0-beta.3",
"@tmagic/stage": "1.7.0-beta.3",
"@tmagic/vue-runtime-help": "^1.2.0",
"axios": "^1.11.0",
"@tmagic/vue-runtime-help": "^1.2.3",
"axios": "^1.13.2",
"vue": "catalog:"
},
"devDependencies": {
@ -27,16 +27,15 @@
"@types/fs-extra": "^11.0.4",
"@types/node": "^24.0.10",
"@vitejs/plugin-legacy": "^7.2.1",
"@vitejs/plugin-vue": "^6.0.1",
"@vitejs/plugin-vue-jsx": "^5.1.0",
"@vitejs/plugin-vue": "^6.0.2",
"@vitejs/plugin-vue-jsx": "^5.1.2",
"@vue/compiler-sfc": "catalog:",
"fs-extra": "^11.3.1",
"minimist": "^1.2.8",
"lightningcss": "^1.30.2",
"rimraf": "^3.0.2",
"rollup": "4.44.1",
"rollup-plugin-external-globals": "^0.13.0",
"terser": "^5.43.1",
"terser": "^5.44.1",
"typescript": "catalog:",
"vite": "catalog:"
}

View File

@ -66,7 +66,6 @@ export default defineConfig({
},
build: {
cssMinify: 'lightningcss',
rollupOptions: {
input: {
page: path.resolve(__dirname, './page/index.html'),