goodteditor-ui 1.0.30 → 1.0.32

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "goodteditor-ui",
3
- "version": "1.0.30",
3
+ "version": "1.0.32",
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>
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div :data-popover="popoverTargetId" :title="title">
3
3
  <button
4
- class="btn btn-small btn-outline btn-icon"
4
+ class="btn btn-small btn-outline btn-primary btn-icon"
5
5
  @click="togglePopover">
6
6
  <div class="icon">
7
7
  <i class="mdi" :class="icon"></i>
@@ -1,7 +1,10 @@
1
1
  <template>
2
2
  <with-popover :show.sync="isPopoverShown" auto-width>
3
3
  <template #button="{ togglePopover }">
4
- <button :title="title" class="btn btn-small btn-outline btn-icon" @click="togglePopover">
4
+ <button
5
+ :title="title"
6
+ class="btn btn-small btn-primary btn-outline btn-icon"
7
+ @click="togglePopover">
5
8
  <div class="icon">
6
9
  <i class="mdi" :class="icon"></i>
7
10
  </div>
@@ -51,7 +54,7 @@
51
54
  <div class="col col-vmid col-12-12">
52
55
  <ui-select
53
56
  v-model="image.align"
54
- :options="$options.static.AlignOptions"
57
+ :options="AlignOptions"
55
58
  size="small"
56
59
  class="w-100"
57
60
  @change="onChange" />
@@ -67,7 +70,7 @@
67
70
  <div class="col col-vmid col-12-12">
68
71
  <input-units
69
72
  v-model="image.width"
70
- :units="$options.static.SizeUnits"
73
+ :units="SizeUnits"
71
74
  :disabled="image.isResponsive"
72
75
  size="small"
73
76
  @change="onChange">
@@ -83,7 +86,7 @@
83
86
  <div class="col col-vmid col-12-12">
84
87
  <input-units
85
88
  v-model="image.height"
86
- :units="$options.static.SizeUnits"
89
+ :units="SizeUnits"
87
90
  :disabled="image.isResponsive"
88
91
  size="small"
89
92
  @change="onChange">
@@ -1,7 +1,10 @@
1
1
  <template>
2
2
  <with-popover :show.sync="isPopoverShown">
3
3
  <template #button="{ togglePopover }">
4
- <button :title="title" class="btn btn-small btn-outline btn-icon" @click="togglePopover">
4
+ <button
5
+ :title="title"
6
+ class="btn btn-small btn-primary btn-outline btn-icon"
7
+ @click="togglePopover">
5
8
  <div class="icon">
6
9
  <i class="mdi" :class="icon"></i>
7
10
  </div>
@@ -22,7 +25,7 @@
22
25
  <div class="col col-vmid col-12-12">
23
26
  <ui-select
24
27
  v-model="target"
25
- :options="$options.static.TargetTypeOptions"
28
+ :options="TargetTypeOptions"
26
29
  class="w-100"
27
30
  size="small" />
28
31
  </div>
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div :data-popover="popoverTargetId" :title="title">
3
3
  <button
4
- class="btn btn-small btn-outline btn-icon"
4
+ class="btn btn-small btn-outline btn-primary btn-icon"
5
5
  @click="togglePopover">
6
6
  <div class="icon">
7
7
  <i class="mdi" :class="icon"></i>
@@ -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>