@tmagic/editor 1.3.0-alpha.5 → 1.3.0-alpha.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,14 +4,38 @@
4
4
  width: 8px;
5
5
  margin: 0 -5px;
6
6
  height: 100%;
7
- opacity: 0.9;
7
+ opacity: 0.8;
8
8
  background: padding-box #d8dee8;
9
9
  box-sizing: border-box;
10
10
  cursor: col-resize;
11
11
  z-index: 1;
12
+ position: relative;
12
13
 
13
14
  &:hover {
14
15
  border-color: #d8dee8;
16
+
17
+ .icon-container {
18
+ visibility: visible;
19
+ opacity: 1;
20
+ }
21
+ }
22
+
23
+ &.m-editor-resizer-draging {
24
+ &::after {
25
+ content: "";
26
+ position: absolute;
27
+ width: 600px;
28
+ height: 100%;
29
+ left: 0;
30
+ }
31
+
32
+ &::before {
33
+ content: "";
34
+ position: absolute;
35
+ width: 600px;
36
+ height: 100%;
37
+ right: 0;
38
+ }
15
39
  }
16
40
 
17
41
  .icon-container {
@@ -40,12 +64,3 @@
40
64
  font-size: 18px;
41
65
  }
42
66
  }
43
-
44
- .magic-editor-resizer:hover {
45
- .icon-container {
46
- visibility: visible;
47
- opacity: 1;
48
- }
49
- // border-left: 5px solid rgba(0,0,0,.5);
50
- // border-right: 5px solid rgba(0,0,0,.5);
51
- }
package/src/type.ts CHANGED
@@ -30,11 +30,12 @@ import type {
30
30
 
31
31
  import type { CodeBlockService } from './services/codeBlock';
32
32
  import type { ComponentListService } from './services/componentList';
33
- import { DataSourceService } from './services/dataSource';
33
+ import type { DataSourceService } from './services/dataSource';
34
34
  import type { DepService } from './services/dep';
35
35
  import type { EditorService } from './services/editor';
36
36
  import type { EventsService } from './services/events';
37
37
  import type { HistoryService } from './services/history';
38
+ import type { KeybindingService } from './services/keybinding';
38
39
  import type { PropsService } from './services/props';
39
40
  import type { StorageService } from './services/storage';
40
41
  import type { UiService } from './services/ui';
@@ -58,6 +59,7 @@ export interface Services {
58
59
  codeBlockService: CodeBlockService;
59
60
  depService: DepService;
60
61
  dataSourceService: DataSourceService;
62
+ keybindingService: KeybindingService;
61
63
  }
62
64
 
63
65
  export interface StageOptions {
package/types/index.d.ts CHANGED
@@ -28,7 +28,8 @@ export { default as PropsPanel } from './layouts/PropsPanel.vue';
28
28
  export { default as ToolButton } from './components/ToolButton.vue';
29
29
  export { default as ContentMenu } from './components/ContentMenu.vue';
30
30
  export { default as Icon } from './components/Icon.vue';
31
- export { default as LayoutContainer } from './components/Layout.vue';
31
+ export { default as LayoutContainer } from './components/SplitView.vue';
32
+ export { default as SplitView } from './components/SplitView.vue';
32
33
  declare const _default: {
33
34
  install: (app: App, opt?: InstallOptions) => void;
34
35
  };
@@ -0,0 +1,12 @@
1
+ import BaseService from './BaseService';
2
+ declare class Keybinding extends BaseService {
3
+ private keycon;
4
+ private ctrlKey;
5
+ constructor();
6
+ destroy(): void;
7
+ private isDisabledKeyEvent;
8
+ private removeNode;
9
+ }
10
+ export type KeybindingService = Keybinding;
11
+ declare const _default: Keybinding;
12
+ export default _default;
package/types/type.d.ts CHANGED
@@ -5,11 +5,12 @@ import type StageCore from '@tmagic/stage';
5
5
  import type { ContainerHighlightType, CustomizeMoveableOptionsCallbackConfig, MoveableOptions, UpdateDragEl } from '@tmagic/stage';
6
6
  import type { CodeBlockService } from './services/codeBlock';
7
7
  import type { ComponentListService } from './services/componentList';
8
- import { DataSourceService } from './services/dataSource';
8
+ import type { DataSourceService } from './services/dataSource';
9
9
  import type { DepService } from './services/dep';
10
10
  import type { EditorService } from './services/editor';
11
11
  import type { EventsService } from './services/events';
12
12
  import type { HistoryService } from './services/history';
13
+ import type { KeybindingService } from './services/keybinding';
13
14
  import type { PropsService } from './services/props';
14
15
  import type { StorageService } from './services/storage';
15
16
  import type { UiService } from './services/ui';
@@ -30,6 +31,7 @@ export interface Services {
30
31
  codeBlockService: CodeBlockService;
31
32
  depService: DepService;
32
33
  dataSourceService: DataSourceService;
34
+ keybindingService: KeybindingService;
33
35
  }
34
36
  export interface StageOptions {
35
37
  runtimeUrl: string;
File without changes