@webitel/ui-sdk 25.6.9 → 25.6.11

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,3 +1,13 @@
1
+ ## [v25.6.10] - 2025-05-12
2
+ ### :bug: Bug Fixes
3
+ - [`a5c4a57`](https://github.com/webitel/webitel-ui-sdk/commit/a5c4a575f54a78a3807c53669dba492889fe7933) - audit form answer comment [WTEL-6876](https://webitel.atlassian.net/browse/WTEL-6876) *(commit by [@dlohvinov](https://github.com/dlohvinov))*
4
+
5
+
6
+ ## [v25.6.9] - 2025-05-12
7
+ ### :bug: Bug Fixes
8
+ - [`1504d46`](https://github.com/webitel/webitel-ui-sdk/commit/1504d466a1aba4f4e4848e6e43a6800277a8893a) - answers edit fixes [WTEL-6876](https://webitel.atlassian.net/browse/WTEL-6876) *(commit by [@dlohvinov](https://github.com/dlohvinov))*
9
+
10
+
1
11
  ## [v25.6.8] - 2025-05-12
2
12
  ### :bug: Bug Fixes
3
13
  - [`7872386`](https://github.com/webitel/webitel-ui-sdk/commit/78723867f12069376e0c6232c7b59e727359ef23) - small audit fixes [WTEL-6873](https://webitel.atlassian.net/browse/WTEL-6873)[WTEL-6875](https://webitel.atlassian.net/browse/WTEL-6875)[WTEL-6876](https://webitel.atlassian.net/browse/WTEL-6876)[WTEL-6879](https://webitel.atlassian.net/browse/WTEL-6879)[WTEL-6880](https://webitel.atlassian.net/browse/WTEL-6880) *(commit by [@dlohvinov](https://github.com/dlohvinov))*
@@ -2112,3 +2122,5 @@
2112
2122
  [v25.6.6]: https://github.com/webitel/webitel-ui-sdk/compare/v25.6.5...v25.6.6
2113
2123
  [v25.6.7]: https://github.com/webitel/webitel-ui-sdk/compare/v25.6.6...v25.6.7
2114
2124
  [v25.6.8]: https://github.com/webitel/webitel-ui-sdk/compare/v25.6.7...v25.6.8
2125
+ [v25.6.9]: https://github.com/webitel/webitel-ui-sdk/compare/v25.6.8...v25.6.9
2126
+ [v25.6.10]: https://github.com/webitel/webitel-ui-sdk/compare/v25.6.9...v25.6.10
@@ -2,8 +2,10 @@ import { EngineQuestionAnswer } from "webitel-sdk";
2
2
  type __VLS_Props = {
3
3
  answer: EngineQuestionAnswer;
4
4
  collapsible?: boolean;
5
+ hideComment?: boolean;
5
6
  };
6
7
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
7
8
  collapsible: boolean;
9
+ hideComment: boolean;
8
10
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
11
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-sdk",
3
- "version": "25.6.9",
3
+ "version": "25.6.11",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "npm run docs:dev",
@@ -49,6 +49,7 @@
49
49
  <wt-divider />
50
50
  <audit-form-answer-editing-info
51
51
  :answer="answerModel"
52
+ hide-comment
52
53
  />
53
54
  </template>
54
55
  </article>
@@ -95,7 +96,7 @@ const updateAnswer = (value: EngineQuestionAnswer) => {
95
96
  if (readonly.value) return; // if ... then in preview mode
96
97
 
97
98
  // coz only some properties of answer may be patched
98
- const newAnswer = { ...answerModel.value, value };
99
+ const newAnswer = { ...answerModel.value, ...value };
99
100
  answerModel.value = newAnswer;
100
101
  };
101
102
 
@@ -6,7 +6,7 @@
6
6
  <span>{{ updateTime }}</span>
7
7
  </header>
8
8
  <p
9
- v-if="initialComment"
9
+ v-if="!hideComment && initialComment"
10
10
  ref="answer-editing-comment"
11
11
  class="audit-form-answer-editing-info-comment"
12
12
  :class="{
@@ -38,8 +38,10 @@ import {EngineQuestionAnswer} from "webitel-sdk";
38
38
  const props = withDefaults(defineProps<{
39
39
  answer: EngineQuestionAnswer;
40
40
  collapsible?: boolean;
41
+ hideComment?: boolean;
41
42
  }>(), {
42
43
  collapsible: false,
44
+ hideComment: false,
43
45
  });
44
46
 
45
47
  const commentElRef = useTemplateRef('answer-editing-comment');