goodteditor-ui 1.0.29 → 1.0.31

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/index.js CHANGED
@@ -23,8 +23,13 @@ import TimePicker from './src/components/ui/TimePicker.vue';
23
23
  import Tooltip from './src/components/ui/Tooltip.vue';
24
24
  import Grid from './src/components/ui/Grid.vue';
25
25
  import WysiwygEditor from './src/components/ui/WysiwygEditor.vue';
26
+ // utils stuff
27
+ import FormComponent from './src/components/ui/utils/FormComponent';
28
+
29
+ const Utils = { FormComponent };
26
30
 
27
31
  export {
32
+ Utils,
28
33
  Avatar,
29
34
  Badge,
30
35
  Collapse,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "goodteditor-ui",
3
- "version": "1.0.29",
3
+ "version": "1.0.31",
4
4
  "main": "index.js",
5
5
  "homepage": "https://goodt-ui.netlify.app/",
6
6
  "scripts": {
@@ -16,7 +16,7 @@
16
16
  "@tiptap/extension-font-family": "^2.0.0-beta.207",
17
17
  "@tiptap/extension-image": "^2.0.0-beta.27",
18
18
  "@tiptap/extension-link": "^2.0.0-beta.36",
19
- "@tiptap/extension-table": "2.0.0-beta.48",
19
+ "@tiptap/extension-table": "^2.0.0-beta.48",
20
20
  "@tiptap/extension-table-cell": "^2.0.0-beta.20",
21
21
  "@tiptap/extension-table-header": "^2.0.0-beta.22",
22
22
  "@tiptap/extension-table-row": "^2.0.0-beta.19",
@@ -1,9 +1,9 @@
1
1
  <template>
2
2
  <div :title="title">
3
3
  <button
4
- :class="{ 'btn-outline': !isActive, 'btn-primary': isActive }"
4
+ :class="{ 'btn-outline': !isActive }"
5
5
  :disabled="!isEnabled"
6
- class="btn btn-small btn-icon"
6
+ class="btn btn-small btn-icon btn-primary"
7
7
  @click.stop="onClick">
8
8
  <div class="icon">
9
9
  <i :class="icon" class="mdi"></i>
@@ -51,7 +51,7 @@
51
51
  <div class="col col-vmid col-12-12">
52
52
  <ui-select
53
53
  v-model="image.align"
54
- :options="$options.static.AlignOptions"
54
+ :options="AlignOptions"
55
55
  size="small"
56
56
  class="w-100"
57
57
  @change="onChange" />
@@ -67,7 +67,7 @@
67
67
  <div class="col col-vmid col-12-12">
68
68
  <input-units
69
69
  v-model="image.width"
70
- :units="$options.static.SizeUnits"
70
+ :units="SizeUnits"
71
71
  :disabled="image.isResponsive"
72
72
  size="small"
73
73
  @change="onChange">
@@ -83,7 +83,7 @@
83
83
  <div class="col col-vmid col-12-12">
84
84
  <input-units
85
85
  v-model="image.height"
86
- :units="$options.static.SizeUnits"
86
+ :units="SizeUnits"
87
87
  :disabled="image.isResponsive"
88
88
  size="small"
89
89
  @change="onChange">
@@ -22,7 +22,7 @@
22
22
  <div class="col col-vmid col-12-12">
23
23
  <ui-select
24
24
  v-model="target"
25
- :options="$options.static.TargetTypeOptions"
25
+ :options="TargetTypeOptions"
26
26
  class="w-100"
27
27
  size="small" />
28
28
  </div>
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <grid class="editor" v-bind="$options.static.GridProps">
2
+ <grid class="editor" v-bind="GridProps">
3
3
  <template #editor-toolbar="{ style }">
4
4
  <div :style="style" class="editor-toolbar">
5
5
  <!--
@@ -49,8 +49,8 @@
49
49
  </div>
50
50
  </template>
51
51
  <template #editor-content="{ style }">
52
- <div :style="style" class="editor-content pad-v-l1" >
53
- <div class="h-100">
52
+ <div :style="style" class="pad-v-l1" >
53
+ <div class="editor-content h-100">
54
54
  <editor-content :editor="editor" class="h-100"/>
55
55
  </div>
56
56
  </div>
@@ -167,7 +167,7 @@ export default {
167
167
  autofocus: 'end',
168
168
  editorProps: {
169
169
  attributes: {
170
- class: 'd-flex flex-col pad-3 scroll-y',
170
+ class: 'pad-3 scroll-y',
171
171
  style: 'min-height: 100%; height: 0;'
172
172
  }
173
173
  },
@@ -262,5 +262,9 @@ export default {
262
262
  & .ProseMirror-selectednode {
263
263
  outline: 2px solid var(--color-focus);
264
264
  }
265
+
266
+ & img {
267
+ display: block;
268
+ }
265
269
  }
266
270
  </style>