@discuss-ds/ui 0.30.0 → 0.31.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 +24 -0
- package/dist/index.cjs +747 -578
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +61 -13
- package/dist/index.d.ts +61 -13
- package/dist/index.js +690 -521
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @discuss-ds/ui
|
|
2
2
|
|
|
3
|
+
## 0.31.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#113](https://github.com/TamyresLucas/Discuss-UI-Storybook/pull/113) [`855ba30`](https://github.com/TamyresLucas/Discuss-UI-Storybook/commit/855ba302c93837bb9f729222c3758260a8f60441) Thanks [@TamyresLucas](https://github.com/TamyresLucas)! - `QuestionHeader` and `QuestionEditorCard` take an optional `questionType`: the "Question N" tag then shows that question type's icon (16px) in its default and selected states. On hover or focus the drag grip replaces it, and a tag that can't be dragged (`showDragHandle={false}`) keeps the icon. Without `questionType` nothing changes.
|
|
8
|
+
|
|
9
|
+
With a type icon the tag keeps the same width on hover: the grip replaces the icon in place instead of the tag trimming its left padding.
|
|
10
|
+
|
|
11
|
+
`InlineEdit`, `QuestionHeader` (`titleMarks`) and `QuestionEditorCard` (`titleMarks`) also take optional ranges (`marks`) of the saved text to underline in the destructive colour, for example misspelled words found by a spell checker. Read mode only; without them nothing changes.
|
|
12
|
+
|
|
13
|
+
`QuestionOptionEditor` takes the same `marks`, `onMarkApply` and `onMarkDismiss`: an answer option's label shows its marked words underlined (with the same card) while it is not being edited. Without them nothing changes.
|
|
14
|
+
|
|
15
|
+
Smaller behaviour changes in the same release: a click inside a `QuestionEditorCard` but outside its text field (its padding, labels, empty space) no longer ends a title edit in progress, and the title field's line while it is being edited uses the same muted accent as the selected state, so there is no colour change between the two. A mark's card opens only when its own word is clicked: the mark that replaces a just-fixed one no longer opens by itself.
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [#112](https://github.com/TamyresLucas/Discuss-UI-Storybook/pull/112) [`a802249`](https://github.com/TamyresLucas/Discuss-UI-Storybook/commit/a802249d19e520bd8dd1cc86fdeb8ab1c80d4db6) Thanks [@TamyresLucas](https://github.com/TamyresLucas)! - Fix the InlineEdit "Controlled" story calling a hook outside a component, so `pnpm lint` passes. Docs-only; no component change.
|
|
20
|
+
|
|
21
|
+
## 0.30.1
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- [#109](https://github.com/TamyresLucas/Discuss-UI-Storybook/pull/109) [`09b0261`](https://github.com/TamyresLucas/Discuss-UI-Storybook/commit/09b026152cd200df34744f7bd964352c17aa5d54) Thanks [@TamyresLucas](https://github.com/TamyresLucas)! - `QuestionEditorCard` / `QuestionHeader`: `titleRecommendedMax` now switches a long title to the 16px body style on its own; `titleRecommendedNote` is optional and only adds the text under it.
|
|
26
|
+
|
|
3
27
|
## 0.30.0
|
|
4
28
|
|
|
5
29
|
### Minor Changes
|