@milaboratories/uikit 2.2.70 → 2.2.72

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": "@milaboratories/uikit",
3
- "version": "2.2.70",
3
+ "version": "2.2.72",
4
4
  "type": "module",
5
5
  "main": "dist/pl-uikit.umd.js",
6
6
  "module": "dist/pl-uikit.js",
@@ -35,8 +35,8 @@
35
35
  "svgo": "^3.3.2",
36
36
  "@types/d3": "^7.4.3",
37
37
  "@milaboratories/eslint-config": "^1.0.4",
38
- "@milaboratories/helpers": "^1.6.11",
39
- "@platforma-sdk/model": "^1.29.22"
38
+ "@platforma-sdk/model": "^1.30.3",
39
+ "@milaboratories/helpers": "^1.6.11"
40
40
  },
41
41
  "scripts": {
42
42
  "dev": "vite",
@@ -48,6 +48,7 @@
48
48
  &.round {
49
49
  border-radius: 50%;
50
50
  width: var(--button-height);
51
+ min-width: var(--button-height);
51
52
  padding: 0;
52
53
  justify-content: center;
53
54
  }
@@ -63,6 +63,10 @@ const props = defineProps<{
63
63
  * The label to display above the texarea.
64
64
  */
65
65
  label?: string;
66
+ /**
67
+ * Do not scroll to bottom on content change. Default is false (scroll to bottom).
68
+ */
69
+ disableAutoScroll?: boolean;
66
70
  }>();
67
71
 
68
72
  const logState = useLogHandle(props);
@@ -101,7 +105,11 @@ const onClickCopy = () => {
101
105
  }
102
106
  };
103
107
 
104
- const scrollDown = () => {
108
+ const optionallyScrollDown = () => {
109
+ if (props.disableAutoScroll) {
110
+ return;
111
+ }
112
+
105
113
  tapIf(contentRef.value, (el) => {
106
114
  if (isAnchored.value) {
107
115
  el.scrollTo(el.scrollLeft, el.scrollHeight);
@@ -113,7 +121,7 @@ watch(
113
121
  computedValue,
114
122
  () => {
115
123
  requestAnimationFrame(() => {
116
- scrollDown();
124
+ optionallyScrollDown();
117
125
  });
118
126
  },
119
127
  { immediate: true },