chore: 更新pnpm版本,修复ts错误

This commit is contained in:
roymondchen 2024-08-21 16:54:06 +08:00 committed by roymondchen
parent 0979282504
commit 798ace76f3
4 changed files with 28 additions and 20 deletions

View File

@ -3,7 +3,7 @@
"name": "tmagic", "name": "tmagic",
"private": true, "private": true,
"type": "module", "type": "module",
"packageManager": "pnpm@9.6.0", "packageManager": "pnpm@9.7.1",
"scripts": { "scripts": {
"bootstrap": "pnpm i && pnpm build", "bootstrap": "pnpm i && pnpm build",
"clean:top": "rimraf */**/dist */**/types */dist coverage dwt* temp", "clean:top": "rimraf */**/dist */**/types */dist coverage dwt* temp",

View File

@ -141,7 +141,15 @@ import uiService from './services/ui';
import keybindingConfig from './utils/keybinding-config'; import keybindingConfig from './utils/keybinding-config';
import { defaultEditorProps, EditorProps } from './editorProps'; import { defaultEditorProps, EditorProps } from './editorProps';
import { initServiceEvents, initServiceState } from './initService'; import { initServiceEvents, initServiceState } from './initService';
import type { EventBus, FrameworkSlots, PropsPanelSlots, Services, SidebarSlots, WorkspaceSlots } from './type'; import type {
EventBus,
FrameworkSlots,
PropsPanelSlots,
Services,
SidebarSlots,
StageOptions,
WorkspaceSlots,
} from './type';
defineSlots< defineSlots<
FrameworkSlots & FrameworkSlots &
@ -186,7 +194,7 @@ initServiceState(props, services);
keybindingService.register(keybindingConfig); keybindingService.register(keybindingConfig);
keybindingService.registerEl('global'); keybindingService.registerEl('global');
const stageOptions = { const stageOptions: StageOptions = {
runtimeUrl: props.runtimeUrl, runtimeUrl: props.runtimeUrl,
autoScrollIntoView: props.autoScrollIntoView, autoScrollIntoView: props.autoScrollIntoView,
render: props.render, render: props.render,

View File

@ -145,7 +145,7 @@ export interface StageOptions {
containerHighlightDuration?: number; containerHighlightDuration?: number;
containerHighlightType?: ContainerHighlightType; containerHighlightType?: ContainerHighlightType;
disabledDragStart?: boolean; disabledDragStart?: boolean;
render?: (stage: StageCore) => HTMLDivElement | Promise<HTMLDivElement>; render?: (stage: StageCore) => HTMLDivElement | void | Promise<HTMLDivElement | void>;
moveableOptions?: MoveableOptions | ((config?: CustomizeMoveableOptionsCallbackConfig) => MoveableOptions); moveableOptions?: MoveableOptions | ((config?: CustomizeMoveableOptionsCallbackConfig) => MoveableOptions);
canSelect?: (el: HTMLElement) => boolean | Promise<boolean>; canSelect?: (el: HTMLElement) => boolean | Promise<boolean>;
isContainer?: (el: HTMLElement) => boolean | Promise<boolean>; isContainer?: (el: HTMLElement) => boolean | Promise<boolean>;

32
pnpm-lock.yaml generated
View File

@ -1167,19 +1167,19 @@ importers:
runtime/react-runtime-help: runtime/react-runtime-help:
dependencies: dependencies:
'@tmagic/core': '@tmagic/core':
specifier: workspace:* specifier: workspace:^
version: link:../../packages/core version: link:../../packages/core
'@tmagic/data-source': '@tmagic/data-source':
specifier: workspace:* specifier: workspace:^
version: link:../../packages/data-source version: link:../../packages/data-source
'@tmagic/schema': '@tmagic/schema':
specifier: workspace:* specifier: workspace:^
version: link:../../packages/schema version: link:../../packages/schema
'@tmagic/stage': '@tmagic/stage':
specifier: workspace:* specifier: workspace:^
version: link:../../packages/stage version: link:../../packages/stage
'@tmagic/utils': '@tmagic/utils':
specifier: workspace:* specifier: workspace:^
version: link:../../packages/utils version: link:../../packages/utils
lodash-es: lodash-es:
specifier: ^4.17.21 specifier: ^4.17.21
@ -1207,22 +1207,22 @@ importers:
runtime/tmagic-form: runtime/tmagic-form:
dependencies: dependencies:
'@tmagic/core': '@tmagic/core':
specifier: workspace:* specifier: workspace:^
version: link:../../packages/core version: link:../../packages/core
'@tmagic/editor': '@tmagic/editor':
specifier: workspace:* specifier: workspace:^
version: link:../../packages/editor version: link:../../packages/editor
'@tmagic/form': '@tmagic/form':
specifier: workspace:* specifier: workspace:^
version: link:../../packages/form version: link:../../packages/form
'@tmagic/schema': '@tmagic/schema':
specifier: workspace:* specifier: workspace:^
version: link:../../packages/schema version: link:../../packages/schema
'@tmagic/stage': '@tmagic/stage':
specifier: workspace:* specifier: workspace:^
version: link:../../packages/stage version: link:../../packages/stage
'@tmagic/utils': '@tmagic/utils':
specifier: workspace:* specifier: workspace:^
version: link:../../packages/utils version: link:../../packages/utils
element-plus: element-plus:
specifier: '>=2.8.0' specifier: '>=2.8.0'
@ -1256,19 +1256,19 @@ importers:
runtime/vue-runtime-help: runtime/vue-runtime-help:
dependencies: dependencies:
'@tmagic/core': '@tmagic/core':
specifier: workspace:* specifier: workspace:^
version: link:../../packages/core version: link:../../packages/core
'@tmagic/data-source': '@tmagic/data-source':
specifier: workspace:* specifier: workspace:^
version: link:../../packages/data-source version: link:../../packages/data-source
'@tmagic/schema': '@tmagic/schema':
specifier: workspace:* specifier: workspace:^
version: link:../../packages/schema version: link:../../packages/schema
'@tmagic/stage': '@tmagic/stage':
specifier: workspace:* specifier: workspace:^
version: link:../../packages/stage version: link:../../packages/stage
'@tmagic/utils': '@tmagic/utils':
specifier: workspace:* specifier: workspace:^
version: link:../../packages/utils version: link:../../packages/utils
'@vue/composition-api': '@vue/composition-api':
specifier: '>=1.7.2' specifier: '>=1.7.2'