@keboola/design 17.1.0 → 17.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 +24 -1
- package/dist/{AIKit-DyysN1kS.js → AIKit-DiF0LtVr.js} +10 -2
- package/dist/AIKit-DiF0LtVr.js.map +1 -0
- package/dist/{Combobox-RZ0i3w8u.js → Combobox-CakN_1cF.js} +3 -3
- package/dist/Combobox-CakN_1cF.js.map +1 -0
- package/dist/{PageHeader-DosMyar2.js → PageHeader-CfFKjCzo.js} +2 -2
- package/dist/PageHeader-CfFKjCzo.js.map +1 -0
- package/dist/flint.js +2 -2
- package/dist/flint.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -3
- package/dist/internal/blocks/AIKit.js +1 -1
- package/dist/internal/blocks/Form/connectors/ComboboxField.js +1 -1
- package/dist/internal/blocks/MultiCombobox.js +1 -1
- package/dist/internal/blocks/PageHeader.js +1 -1
- package/dist/internal/components/Avatar.js +2 -1
- package/dist/internal/components/Avatar.js.map +1 -1
- package/dist/internal/components/Combobox.js +1 -1
- package/dist/rjsf.js +64 -44
- package/dist/rjsf.js.map +1 -1
- package/package.json +3 -3
- package/dist/AIKit-DyysN1kS.js.map +0 -1
- package/dist/Combobox-RZ0i3w8u.js.map +0 -1
- package/dist/PageHeader-DosMyar2.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @keboola/design
|
|
2
2
|
|
|
3
|
+
## 17.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- `RjsfSchemaEditor` can put a field's tooltip icon at the end of its description.
|
|
8
|
+
|
|
9
|
+
- `options.tooltip_placement: "description"` next to `options.tooltip` moves the (i) from the label to the end of the description.
|
|
10
|
+
- Works for regular fields and for `format: "table"` arrays.
|
|
11
|
+
- Without a description, or without the option, the icon stays beside the label.
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Internal code satisfies the `anti-slop` lint rules; public APIs and behaviour are unchanged.
|
|
16
|
+
|
|
17
|
+
- `Reflect.get`, parameters typed `object` and accumulator-copying reducers give way to narrowing, precise types, `filter` and `flatMap`.
|
|
18
|
+
- `@keboola/api-client` keeps its `as unknown as` bridges from OpenAPI to domain types.
|
|
19
|
+
|
|
20
|
+
- `AnswerActions` lets the reader send the same Bad-answer comment again when `onDownComment` throws or rejects, so a failed send is no longer silently deduped. The error still reaches the global handler, and `onDownComment` now accepts any return type.
|
|
21
|
+
|
|
22
|
+
- `Avatar` hides its generated pattern from assistive technology: the SVG is `aria-hidden`, and the Gravatar image's `alt` names the user.
|
|
23
|
+
|
|
24
|
+
- `PageHeader.Detail` keeps its breadcrumbs row as tall as the overflow menu button whether or not `overflowActions` is passed, so the title sits at the same height on every detail page.
|
|
25
|
+
|
|
3
26
|
## 17.1.0
|
|
4
27
|
|
|
5
28
|
### Minor Changes
|
|
@@ -1984,7 +2007,7 @@ tw:gap-2` at the call site. Consumers can drop those.
|
|
|
1984
2007
|
`--border` / `--accent` / status tokens instead of hardcoded light values, and
|
|
1985
2008
|
the SVG cache is keyed on the theme so a scheme or brand switch re-renders the
|
|
1986
2009
|
diagram instead of serving the previously rendered one. Applies to ```mermaid
|
|
1987
|
-
fences rendered through `Markdown` too.
|
|
2010
|
+
fences rendered through `Markdown` too.
|
|
1988
2011
|
|
|
1989
2012
|
- `PageLayout.Content nav` lets the page scroll instead of containing the body, and sticky page chrome paints past the content column.
|
|
1990
2013
|
|
|
@@ -35,6 +35,8 @@ const MAX_COMMENT_LENGTH = 2e3;
|
|
|
35
35
|
* One-line follow-up to a thumbs-down.
|
|
36
36
|
*
|
|
37
37
|
* - Submits on Enter or blur, trimmed, and only when the text differs from the last one sent.
|
|
38
|
+
* - A send that throws or rejects is forgotten, so the same text can be sent again.
|
|
39
|
+
* - The rejection still reaches the global handler; the input shows no error itself.
|
|
38
40
|
* - Never submits an empty comment.
|
|
39
41
|
*/
|
|
40
42
|
const AnswerCommentInput = ({ placeholder, onSubmit }) => {
|
|
@@ -44,7 +46,13 @@ const AnswerCommentInput = ({ placeholder, onSubmit }) => {
|
|
|
44
46
|
const comment = text.trim();
|
|
45
47
|
if (!comment || comment === lastSubmittedRef.current) return;
|
|
46
48
|
lastSubmittedRef.current = comment;
|
|
47
|
-
|
|
49
|
+
const forget = () => {
|
|
50
|
+
if (lastSubmittedRef.current === comment) lastSubmittedRef.current = "";
|
|
51
|
+
};
|
|
52
|
+
new Promise((resolve) => resolve(onSubmit(comment))).catch((error) => {
|
|
53
|
+
forget();
|
|
54
|
+
throw error;
|
|
55
|
+
});
|
|
48
56
|
};
|
|
49
57
|
const handleKeyDown = (event) => {
|
|
50
58
|
if (event.key !== "Enter") return;
|
|
@@ -4585,4 +4593,4 @@ const UsageStats = ({ value, alert = false, children, className, ariaLabel, alig
|
|
|
4585
4593
|
};
|
|
4586
4594
|
export { ANSWER_SOURCES_VISIBLE, AnswerActions, AnswerSources, AnswerSummary, AttachmentChip, CONTEXT_CHIP_EXPANDABLE_LENGTH, ChatInlineIcon, ChatNotice, CollapsibleStepHeader, ContextChip, FileDownloadChip, FileGallery, InlineStepDetail, InlineStepGroup, InlineStepLabel, JumpToLatest, Markdown, MarkdownTable, MessageBubble, ModeChip, PROMPT_INPUT_CONTAINER, PlanApproval, PlanRewritingIndicator, PromptInput, Question, QuestionBlock, SourceChip, SuggestedPrompt, ThinkingIndicator, ToolCallApproval, ToolCallChip, ToolCallStatusHeader, UsageBar, UsageStats, clampPercentage, findMentionToken, findSlashToken, formatPercentage, getChatInlineIconName, splitSealedBlocks, withholdOpenTail };
|
|
4587
4595
|
|
|
4588
|
-
//# sourceMappingURL=AIKit-
|
|
4596
|
+
//# sourceMappingURL=AIKit-DiF0LtVr.js.map
|