@knime/hub-features 1.15.4 → 1.15.5

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,11 @@
1
1
  # @knime/hub-features
2
2
 
3
+ ## 1.15.5
4
+
5
+ ### Patch Changes
6
+
7
+ - 301cfc2: Fix inconsistent error toast text when stack trace is provided but copying to clipboard is not allowed
8
+
3
9
  ## 1.15.4
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knime/hub-features",
3
- "version": "1.15.4",
3
+ "version": "1.15.5",
4
4
  "description": "Vue components & composables for shared hub features",
5
5
  "repository": {
6
6
  "type": "git",
@@ -36,9 +36,9 @@
36
36
  "lodash-es": "4.17.21",
37
37
  "ofetch": "^1.4.1",
38
38
  "typescript": "^5.8.3",
39
- "@knime/components": "1.41.8",
40
39
  "@knime/styles": "1.14.3",
41
- "@knime/utils": "1.7.1"
40
+ "@knime/utils": "1.7.1",
41
+ "@knime/components": "1.41.8"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "consola": "3.x",
@@ -102,7 +102,12 @@ const onShowDetailsClicked = () => {
102
102
  <div class="title">
103
103
  {{ props.title }}
104
104
  </div>
105
- <button v-if="!showDetails" class="show-more" @click="onShowDetailsClicked">
105
+ <button
106
+ v-if="!showDetails"
107
+ data-test-id="show-details"
108
+ class="show-more"
109
+ @click="onShowDetailsClicked"
110
+ >
106
111
  Show details
107
112
  </button>
108
113
  <div v-if="showDetails" class="additional-info">
@@ -124,11 +129,11 @@ const onShowDetailsClicked = () => {
124
129
  <div v-if="date"><strong>Date: </strong>{{ formattedDate }}</div>
125
130
  <div v-if="requestId"><strong>Request id: </strong>{{ requestId }}</div>
126
131
  <div v-if="errorId"><strong>Error id: </strong>{{ errorId }}</div>
127
- <div v-if="stacktrace">
132
+ <div v-if="stacktrace && canCopyToClipboard">
128
133
  <strong>Stacktrace: </strong>Part of clipboard text
129
134
  </div>
130
135
  <div v-if="canCopyToClipboard" class="copy-button-wrapper">
131
- <Button @click="copyToClipboard">
136
+ <Button data-test-id="copy-to-clipboard" @click="copyToClipboard">
132
137
  <template v-if="copied">
133
138
  <CheckIcon class="copy-icon" />Error was copied
134
139
  </template>