@knime/kds-rich-text-editor 2.0.1 → 2.2.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/CHANGELOG.md CHANGED
@@ -1,5 +1,30 @@
1
1
  # @knime/kds-rich-text-editor
2
2
 
3
+ ## 2.2.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [05226cd]
8
+ - Updated dependencies [08d9109]
9
+ - Updated dependencies [6850f24]
10
+ - @knime/kds-components@2.2.0
11
+ - @knime/kds-styles@2.2.0
12
+
13
+ ## 2.1.0
14
+
15
+ ### Patch Changes
16
+
17
+ - b5c0b76: Remove padding in non-editable mode.
18
+ - Updated dependencies [83dcf9c]
19
+ - Updated dependencies [d6c8a53]
20
+ - Updated dependencies [98f37bd]
21
+ - Updated dependencies
22
+ - Updated dependencies [b5c0b76]
23
+ - Updated dependencies [abe3709]
24
+ - @knime/kds-components@2.1.0
25
+ - @knime/utils@1.12.1
26
+ - @knime/kds-styles@2.1.0
27
+
3
28
  ## 2.0.1
4
29
 
5
30
  ### Patch Changes
package/dist/index.css CHANGED
@@ -27,7 +27,7 @@
27
27
  }
28
28
 
29
29
  .editor-wrapper {
30
- &[data-v-2bc5f7d4] {
30
+ &[data-v-11bd79f8] {
31
31
  /* Fixed 44px toolbar height per the design (28px content + 8px padding on
32
32
  * each side); the small toolbar buttons (24px) center within the content
33
33
  * area. */
@@ -39,32 +39,32 @@
39
39
  position: relative;
40
40
  isolation: isolate;
41
41
  }
42
- &.disabled[data-v-2bc5f7d4] {
42
+ &.disabled[data-v-11bd79f8] {
43
43
  color: var(--kds-color-text-and-icon-disabled);
44
44
  }
45
45
  }
46
46
 
47
47
  /* stylelint-disable selector-class-pattern */
48
48
  .rich-text-editor {
49
- &[data-v-2bc5f7d4] {
49
+ &[data-v-11bd79f8] {
50
50
  height: 100%;
51
- max-height: var(--b5683582);
52
- padding: var(--kds-spacing-container-0-5x);
51
+ max-height: var(--v4541e612);
53
52
  overflow-y: auto;
54
53
 
55
54
  /* stylelint-disable knime/no-deep-nesting */
56
55
  /* stylelint-enable selector-class-pattern */
57
56
  }
58
57
  &.editable {
59
- &[data-v-2bc5f7d4] {
58
+ &[data-v-11bd79f8] {
59
+ padding: var(--kds-spacing-container-0-5x);
60
60
  cursor: text;
61
61
  background: var(--kds-color-background-input-initial);
62
62
  }
63
- &[data-v-2bc5f7d4] .ProseMirror {
64
- min-height: var(--v6718b8de);
63
+ &[data-v-11bd79f8] .ProseMirror {
64
+ min-height: var(--v6c69a464);
65
65
  }
66
66
  }
67
- &[data-v-2bc5f7d4] .ProseMirror {
67
+ &[data-v-11bd79f8] .ProseMirror {
68
68
  height: 100%;
69
69
  font: var(--kds-font-base-body-small);
70
70
 
@@ -175,7 +175,7 @@ a {
175
175
  margin-left: var(--kds-spacing-container-0-12x);
176
176
  content: "";
177
177
  background-color: var(--link-color);
178
- mask-image: var(--v6389a4c6);
178
+ mask-image: var(--v5b514730);
179
179
  mask-repeat: no-repeat;
180
180
  mask-size: contain;
181
181
  }
@@ -224,34 +224,34 @@ td {
224
224
  }
225
225
  }
226
226
  }
227
- &[data-v-2bc5f7d4] .ProseMirror:focus-visible,
228
- &[data-v-2bc5f7d4] .ProseMirror:focus {
227
+ &[data-v-11bd79f8] .ProseMirror:focus-visible,
228
+ &[data-v-11bd79f8] .ProseMirror:focus {
229
229
  outline: transparent;
230
230
  }
231
231
  }
232
232
  .editor-wrapper.with-border {
233
- &[data-v-2bc5f7d4] {
233
+ &[data-v-11bd79f8] {
234
234
  border: var(--kds-border-action-input);
235
235
  border-radius: var(--kds-border-radius-container-0-37x);
236
236
  }
237
- &.disabled[data-v-2bc5f7d4] {
237
+ &.disabled[data-v-11bd79f8] {
238
238
  border: var(--kds-border-action-disabled);
239
239
  }
240
- & .toolbar-wrapper[data-v-2bc5f7d4] {
240
+ & .toolbar-wrapper[data-v-11bd79f8] {
241
241
  border-top-left-radius: var(--kds-border-radius-container-0-37x);
242
242
  border-top-right-radius: var(--kds-border-radius-container-0-37x);
243
243
  }
244
- & .rich-text-editor[data-v-2bc5f7d4] {
244
+ & .rich-text-editor[data-v-11bd79f8] {
245
245
  border-bottom-right-radius: var(--kds-border-radius-container-0-37x);
246
246
  border-bottom-left-radius: var(--kds-border-radius-container-0-37x);
247
247
  }
248
248
  }
249
- .editor-wrapper.show-focus-ring[data-v-2bc5f7d4] {
249
+ .editor-wrapper.show-focus-ring[data-v-11bd79f8] {
250
250
  outline: var(--kds-border-action-focused);
251
251
  outline-offset: var(--kds-spacing-offset-focus);
252
252
  }
253
253
  .embedded-toolbar {
254
- &[data-v-2bc5f7d4] {
254
+ &[data-v-11bd79f8] {
255
255
  height: var(--toolbar-height);
256
256
  padding: var(--kds-spacing-container-0-5x);
257
257
  overflow-x: auto;
@@ -262,7 +262,7 @@ td {
262
262
  border-bottom: var(--kds-border-base-muted);
263
263
  -ms-overflow-style: none; /* needed to hide scroll bar in edge */
264
264
  }
265
- &[data-v-2bc5f7d4]::-webkit-scrollbar {
265
+ &[data-v-11bd79f8]::-webkit-scrollbar {
266
266
  display: none;
267
267
  }
268
268
  }
package/dist/index.js CHANGED
@@ -3116,9 +3116,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
3116
3116
  emits: /* @__PURE__ */ mergeModels(["blur"], ["update:modelValue"]),
3117
3117
  setup(__props, { expose: __expose, emit: __emit }) {
3118
3118
  useCssVars((_ctx) => ({
3119
- "b5683582": maxHeightStyle.value,
3120
- "v6718b8de": minHeightStyle.value,
3121
- "v6389a4c6": externalIcon
3119
+ "v4541e612": maxHeightStyle.value,
3120
+ "v6c69a464": minHeightStyle.value,
3121
+ "v5b514730": externalIcon
3122
3122
  }));
3123
3123
  const hardCharacterLimit = Math.max(
3124
3124
  __props.characterLimit.maxCharacters ?? 1e3,
@@ -3327,7 +3327,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
3327
3327
  }
3328
3328
  });
3329
3329
 
3330
- const KdsRichTextEditor = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-2bc5f7d4"]]);
3330
+ const KdsRichTextEditor = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-11bd79f8"]]);
3331
3331
 
3332
3332
  const _sfc_main = /* @__PURE__ */ defineComponent({
3333
3333
  __name: "KdsRichTextInput",