chore: update deps
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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:*",
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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(() =>
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user