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

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.
Files changed (37) hide show
  1. package/dist/style.css +23 -5
  2. package/dist/tmagic-editor.js +502 -246
  3. package/dist/tmagic-editor.js.map +1 -1
  4. package/dist/tmagic-editor.umd.cjs +505 -247
  5. package/dist/tmagic-editor.umd.cjs.map +1 -1
  6. package/package.json +10 -10
  7. package/src/Editor.vue +5 -0
  8. package/src/components/ContentMenu.vue +15 -8
  9. package/src/components/FunctionEditor.vue +6 -4
  10. package/src/{layouts → components}/Resizer.vue +15 -6
  11. package/src/components/{Layout.vue → SplitView.vue} +1 -1
  12. package/src/fields/CodeLink.vue +4 -2
  13. package/src/index.ts +5 -3
  14. package/src/initService.ts +2 -0
  15. package/src/layouts/Framework.vue +6 -5
  16. package/src/layouts/sidebar/LayerPanel.vue +58 -22
  17. package/src/layouts/sidebar/code-block/CodeBlockEditor.vue +3 -3
  18. package/src/layouts/workspace/Stage.vue +13 -3
  19. package/src/layouts/workspace/Workspace.vue +4 -133
  20. package/src/services/codeBlock.ts +3 -2
  21. package/src/services/keybinding.ts +185 -0
  22. package/src/services/storage.ts +3 -2
  23. package/src/theme/resizer.scss +25 -10
  24. package/src/theme/stage.scss +4 -0
  25. package/src/type.ts +59 -1
  26. package/src/utils/config.ts +1 -1
  27. package/src/utils/keybinding-config.ts +120 -0
  28. package/types/components/ContentMenu.vue.d.ts +2 -0
  29. package/types/index.d.ts +3 -2
  30. package/types/initService.d.ts +1 -1
  31. package/types/layouts/workspace/Workspace.vue.d.ts +1 -1
  32. package/types/services/keybinding.d.ts +20 -0
  33. package/types/type.d.ts +56 -1
  34. package/types/utils/config.d.ts +1 -1
  35. package/types/utils/keybinding-config.d.ts +3 -0
  36. /package/types/{layouts → components}/Resizer.vue.d.ts +0 -0
  37. /package/types/components/{Layout.vue.d.ts → SplitView.vue.d.ts} +0 -0
package/dist/style.css CHANGED
@@ -482,15 +482,34 @@
482
482
  width: 8px;
483
483
  margin: 0 -5px;
484
484
  height: 100%;
485
- opacity: 0.9;
485
+ opacity: 0.8;
486
486
  background: padding-box #d8dee8;
487
487
  box-sizing: border-box;
488
488
  cursor: col-resize;
489
489
  z-index: 1;
490
+ position: relative;
490
491
  }
491
492
  .m-editor-resizer:hover {
492
493
  border-color: #d8dee8;
493
494
  }
495
+ .m-editor-resizer:hover .icon-container {
496
+ visibility: visible;
497
+ opacity: 1;
498
+ }
499
+ .m-editor-resizer.m-editor-resizer-draging::after {
500
+ content: "";
501
+ position: absolute;
502
+ width: 600px;
503
+ height: 100%;
504
+ left: 0;
505
+ }
506
+ .m-editor-resizer.m-editor-resizer-draging::before {
507
+ content: "";
508
+ position: absolute;
509
+ width: 600px;
510
+ height: 100%;
511
+ right: 0;
512
+ }
494
513
  .m-editor-resizer .icon-container {
495
514
  visibility: hidden;
496
515
  opacity: 0;
@@ -516,10 +535,6 @@
516
535
  color: #fff;
517
536
  font-size: 18px;
518
537
  }
519
- .magic-editor-resizer:hover .icon-container {
520
- visibility: visible;
521
- opacity: 1;
522
- }
523
538
  .m-editor-workspace {
524
539
  height: 100%;
525
540
  width: 100%;
@@ -660,6 +675,9 @@
660
675
  justify-content: center;
661
676
  align-items: center;
662
677
  }
678
+ .m-editor-stage:focus-visible {
679
+ outline: none;
680
+ }
663
681
  .m-editor-stage-container {
664
682
  width: 100%;
665
683
  height: 100%;