mce 0.11.4 → 0.12.0

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.
package/README.md CHANGED
@@ -57,7 +57,7 @@ npm i mce
57
57
  frameGap: 48,
58
58
  typographyStrategy: 'autoHeight',
59
59
  handleShape: 'rect',
60
- zoomToFitOffset: { left: 0, top: 0, right: 0, bottom: 0 },
60
+ screenCenterOffset: { left: 0, top: 0, right: 0, bottom: 0 },
61
61
  localDb: false,
62
62
  customUpload: async (blob) => URL.createObjectURL(blob),
63
63
  customContextMenu: (menu) => menu,
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -20,7 +20,10 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
20
20
  type: (NumberConstructor | StringConstructor)[];
21
21
  default: number;
22
22
  };
23
- modelValue: BooleanConstructor;
23
+ modelValue: {
24
+ type: BooleanConstructor;
25
+ default: boolean;
26
+ };
24
27
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
25
28
  name: {
26
29
  type: StringConstructor;
@@ -38,7 +41,10 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
38
41
  type: (NumberConstructor | StringConstructor)[];
39
42
  default: number;
40
43
  };
41
- modelValue: BooleanConstructor;
44
+ modelValue: {
45
+ type: BooleanConstructor;
46
+ default: boolean;
47
+ };
42
48
  }>> & Readonly<{}>, {
43
49
  size: string | number;
44
50
  absolute: boolean;
@@ -5,10 +5,14 @@ export interface IconAliases {
5
5
  play: IconValue;
6
6
  pause: IconValue;
7
7
  gps: IconValue;
8
- menuRight: IconValue;
8
+ arrowRight: IconValue;
9
9
  mouseLeftClick: IconValue;
10
10
  mouseRightClick: IconValue;
11
11
  check: IconValue;
12
+ frame: IconValue;
13
+ group: IconValue;
14
+ shape: IconValue;
15
+ text: IconValue;
12
16
  }
13
17
  export interface IconSet {
14
18
  component: Component;
package/dist/index.css CHANGED
@@ -110,6 +110,7 @@
110
110
  display: flex;
111
111
  align-items: center;
112
112
  justify-content: center;
113
+ font-size: 14px;
113
114
  }
114
115
  .mce-list-item__title {
115
116
  flex: 1;
@@ -124,7 +125,8 @@
124
125
  display: flex;
125
126
  align-items: center;
126
127
  justify-content: center;
127
- font-size: 22px;
128
+ font-size: 12px;
129
+ margin-right: -6px;
128
130
  }.mce-context-menu__title {
129
131
  flex: 1;
130
132
  }
@@ -768,10 +770,10 @@
768
770
  min-height: 100%;
769
771
  overflow: hidden;
770
772
  }.mce-editor {
771
- --mce-theme-primary: 97, 101, 253;
772
- --mce-theme-on-primary: 247, 247, 248;
773
+ --mce-theme-primary: 69, 151, 248;
774
+ --mce-theme-on-primary: 255, 255, 255;
773
775
  --mce-theme-surface: 255, 255, 255;
774
- --mce-theme-on-surface: 56, 56, 56;
776
+ --mce-theme-on-surface: 30, 30, 30;
775
777
  --mce-theme-surface-variant: 35, 37, 41;
776
778
  --mce-theme-on-surface-variant: 255, 255, 255;
777
779
  --mce-theme-background: 240, 242, 245;
@@ -781,10 +783,10 @@
781
783
  --mce-high-emphasis-opacity: 1;
782
784
  --mce-medium-emphasis-opacity: 0.5;
783
785
  --mce-low-emphasis-opacity: 0.3;
786
+ --mce-hover-opacity: 0.04;
787
+ --mce-activated-opacity: 0.06;
784
788
  --mce-shadow: 0 8px 32px 2px rgba(0, 0, 0, 0.08), 0 0 1px rgba(0, 0, 0, 0.2);
785
789
  --mce-blur: 8px;
786
- }
787
- .mce-editor {
788
790
  position: relative;
789
791
  width: 100%;
790
792
  height: 100%;
@@ -823,6 +825,105 @@
823
825
  width: 100%;
824
826
  height: 100%;
825
827
  display: block;
828
+ }.mce-layer-item {
829
+ flex: none;
830
+ display: flex;
831
+ align-items: center;
832
+ height: 24px;
833
+ font-size: 12px;
834
+ border-radius: 4px;
835
+ padding-left: var(--indent-padding, 0);
836
+ width: 100%;
837
+ min-width: max-content;
838
+ }
839
+ .mce-layer-item:hover {
840
+ background-color: rgba(var(--mce-theme-on-background), var(--mce-hover-opacity));
841
+ }
842
+ .mce-layer-item__expand {
843
+ display: flex;
844
+ align-items: center;
845
+ width: 16px;
846
+ height: 100%;
847
+ opacity: 0;
848
+ flex: none;
849
+ }
850
+ .mce-layer-item__content {
851
+ flex: 1;
852
+ display: flex;
853
+ align-items: center;
854
+ height: 100%;
855
+ }
856
+ .mce-layer-item__thumbnail {
857
+ display: flex;
858
+ align-items: center;
859
+ width: 12px;
860
+ height: 100%;
861
+ font-size: 12px;
862
+ overflow: hidden;
863
+ }
864
+ .mce-layer-item__name {
865
+ padding: 0 8px;
866
+ }
867
+ .mce-layer-item__name-input {
868
+ border: none;
869
+ padding: 0;
870
+ outline: none;
871
+ font-size: inherit;
872
+ font-weight: inherit;
873
+ }
874
+ .mce-layer {
875
+ flex: none;
876
+ display: flex;
877
+ flex-direction: column;
878
+ gap: 8px;
879
+ border-radius: 4px;
880
+ width: 100%;
881
+ min-width: max-content;
882
+ }
883
+ .mce-layer--active {
884
+ background-color: rgba(var(--mce-theme-primary), var(--mce-activated-opacity));
885
+ }
886
+ .mce-layer--opened .mce-layer-item__expand .mce-icon {
887
+ transform: rotate(90deg);
888
+ }
889
+ .mce-layers {
890
+ position: relative;
891
+ display: flex;
892
+ flex-direction: column;
893
+ gap: 8px;
894
+ width: 100%;
895
+ height: 100%;
896
+ min-width: auto;
897
+ padding: 8px;
898
+ overflow: auto;
899
+ background-color: rgb(var(--mce-theme-surface));
900
+ }
901
+ .mce-layers:hover .mce-layer-item__expand {
902
+ opacity: 1;
903
+ }
904
+ .mce-layers__action {
905
+ position: absolute;
906
+ padding-right: 8px;
907
+ height: 24px;
908
+ display: flex;
909
+ align-items: center;
910
+ background-color: rgb(var(--mce-theme-surface));
911
+ }
912
+ .mce-btn {
913
+ padding: 4px;
914
+ border-radius: 4px;
915
+ height: 24px;
916
+ width: 24px;
917
+ font-size: 12px;
918
+ display: flex;
919
+ align-items: center;
920
+ justify-content: center;
921
+ }
922
+ .mce-btn:hover {
923
+ background-color: rgb(var(--mce-theme-background));
924
+ }
925
+ .mce-btn + .mce-btn {
926
+ margin-left: -4px;
826
927
  }.mce-dialog > * {
827
928
  box-shadow: var(--mce-shadow);
828
929
  }
package/dist/index.d.ts CHANGED
@@ -1,12 +1,14 @@
1
1
  import './typed-global.d.ts';
2
2
  import './typed-plugins.d.ts';
3
3
  export { default as EditorLayout } from './components/EditorLayout.vue';
4
+ export { default as EditorLayers } from './components/Layers.vue';
4
5
  export { default as Dialog } from './components/shared/Dialog.vue';
5
6
  export { default as EditorLayoutItem } from './components/shared/LayoutItem.vue';
6
7
  export { default as Menu } from './components/shared/Menu.vue';
7
8
  export { default as Ruler } from './components/shared/Ruler.vue';
8
9
  export { default as Scrollbar } from './components/shared/Scrollbar.vue';
9
10
  export { default as Transformable } from './components/shared/Transformable.vue';
11
+ export { default as EditorToolbelt } from './components/Toolbelt.vue';
10
12
  export * from './composables';
11
13
  export * from './editor';
12
14
  export * from './mixins';