@keboola/design 17.1.0 → 17.2.1
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/AGENTS.md +2 -0
- package/CHANGELOG.md +34 -1
- package/dist/{AIKit-DyysN1kS.js → AIKit-DgyoP_kW.js} +19 -11
- package/dist/AIKit-DgyoP_kW.js.map +1 -0
- package/dist/{Alert-BQB-og_I.js → Alert-CcAVKRSM.js} +2 -2
- package/dist/{Alert-BQB-og_I.js.map → Alert-CcAVKRSM.js.map} +1 -1
- package/dist/{AlertModal-BkmyEvsR.js → AlertModal-DG3GuHtd.js} +2 -2
- package/dist/{AlertModal-BkmyEvsR.js.map → AlertModal-DG3GuHtd.js.map} +1 -1
- package/dist/{AppShell-CDbecT-t.js → AppShell-CPr3vmUv.js} +2 -2
- package/dist/{AppShell-CDbecT-t.js.map → AppShell-CPr3vmUv.js.map} +1 -1
- package/dist/Badge-CFRhducL.js.map +1 -1
- package/dist/{BrandEditor-BHE6nsob.js → BrandEditor-8PxfTIcN.js} +6 -6
- package/dist/{BrandEditor-BHE6nsob.js.map → BrandEditor-8PxfTIcN.js.map} +1 -1
- package/dist/{BrandLogo-n4Qhi1tI.js → BrandLogo-DZLi6TZV.js} +2 -2
- package/dist/{BrandLogo-n4Qhi1tI.js.map → BrandLogo-DZLi6TZV.js.map} +1 -1
- package/dist/{Breadcrumb-BAwQTo0c.js → Breadcrumb-B_4zm7jJ.js} +3 -3
- package/dist/{Breadcrumb-BAwQTo0c.js.map → Breadcrumb-B_4zm7jJ.js.map} +1 -1
- package/dist/{Button-BAMX1iuI.js → Button-BgjVUBON.js} +2 -2
- package/dist/{Button-BAMX1iuI.js.map → Button-BgjVUBON.js.map} +1 -1
- package/dist/{Checkbox-CfjpwIcg.js → Checkbox-CsvhT9Bj.js} +2 -2
- package/dist/{Checkbox-CfjpwIcg.js.map → Checkbox-CsvhT9Bj.js.map} +1 -1
- package/dist/{Clipboard-BaU3cDi5.js → Clipboard-C6clKAwX.js} +2 -2
- package/dist/{Clipboard-BaU3cDi5.js.map → Clipboard-C6clKAwX.js.map} +1 -1
- package/dist/{ClipboardButton-BWeaQEM2.js → ClipboardButton-1ISIYJQj.js} +3 -3
- package/dist/{ClipboardButton-BWeaQEM2.js.map → ClipboardButton-1ISIYJQj.js.map} +1 -1
- package/dist/{CodeEditor-BdTxkPD4.js → CodeEditor-Dx9gyVHV.js} +4 -4
- package/dist/{CodeEditor-BdTxkPD4.js.map → CodeEditor-Dx9gyVHV.js.map} +1 -1
- package/dist/{ColorInput-BoVdBxJ7.js → ColorInput-CT3OTIOu.js} +3 -3
- package/dist/{ColorInput-BoVdBxJ7.js.map → ColorInput-CT3OTIOu.js.map} +1 -1
- package/dist/{ColorModeSwitch-BDkdmHYl.js → ColorModeSwitch-BsZ13XeH.js} +2 -2
- package/dist/{ColorModeSwitch-BDkdmHYl.js.map → ColorModeSwitch-BsZ13XeH.js.map} +1 -1
- package/dist/{Combobox-RZ0i3w8u.js → Combobox-D_modNUu.js} +6 -6
- package/dist/Combobox-D_modNUu.js.map +1 -0
- package/dist/{Command-D6XYzzJf.js → Command-ZOAxNfFf.js} +2 -2
- package/dist/{Command-D6XYzzJf.js.map → Command-ZOAxNfFf.js.map} +1 -1
- package/dist/{CopyField-9WBU8thS.js → CopyField-CXdg8t3Y.js} +2 -2
- package/dist/{CopyField-9WBU8thS.js.map → CopyField-CXdg8t3Y.js.map} +1 -1
- package/dist/{DateInput-CCYG0AtT.js → DateInput-DpoPkZRC.js} +3 -3
- package/dist/{DateInput-CCYG0AtT.js.map → DateInput-DpoPkZRC.js.map} +1 -1
- package/dist/{DateRangeInput-CpZK1IFp.js → DateRangeInput-DhmYH6V9.js} +3 -3
- package/dist/{DateRangeInput-CpZK1IFp.js.map → DateRangeInput-DhmYH6V9.js.map} +1 -1
- package/dist/{DateRangePicker-B2AUKX7u.js → DateRangePicker-CQXMvR3C.js} +2 -2
- package/dist/{DateRangePicker-B2AUKX7u.js.map → DateRangePicker-CQXMvR3C.js.map} +1 -1
- package/dist/{FieldItem-eM7IHBt5.js → FieldItem-D5EpKxjN.js} +3 -3
- package/dist/{FieldItem-eM7IHBt5.js.map → FieldItem-D5EpKxjN.js.map} +1 -1
- package/dist/{FileUpload-d-hNPfPV.js → FileUpload-CpdNficK.js} +2 -2
- package/dist/{FileUpload-d-hNPfPV.js.map → FileUpload-CpdNficK.js.map} +1 -1
- package/dist/{Form-B_9sNehB.js → Form-CXYgF4uw.js} +7 -7
- package/dist/{Form-B_9sNehB.js.map → Form-CXYgF4uw.js.map} +1 -1
- package/dist/{FormGroup-D7ahkK1q.js → FormGroup-B-_HsL1J.js} +3 -3
- package/dist/{FormGroup-D7ahkK1q.js.map → FormGroup-B-_HsL1J.js.map} +1 -1
- package/dist/{FullScreenModal-CiRKNsls.js → FullScreenModal-xMdgp0A-.js} +2 -2
- package/dist/{FullScreenModal-CiRKNsls.js.map → FullScreenModal-xMdgp0A-.js.map} +1 -1
- package/dist/{InlineEdit-BzOox46S.js → InlineEdit-DDPFk6Ak.js} +4 -4
- package/dist/{InlineEdit-BzOox46S.js.map → InlineEdit-DDPFk6Ak.js.map} +1 -1
- package/dist/{InputGroup-DnGP9-ZQ.js → InputGroup-oui6630r.js} +2 -2
- package/dist/{InputGroup-DnGP9-ZQ.js.map → InputGroup-oui6630r.js.map} +1 -1
- package/dist/{Kbd-6velz9J-.js → Kbd-D4F65jXO.js} +2 -2
- package/dist/{Kbd-6velz9J-.js.map → Kbd-D4F65jXO.js.map} +1 -1
- package/dist/{MermaidDiagram-l83gco3r.js → MermaidDiagram-Cg-c8jjI.js} +2 -2
- package/dist/{MermaidDiagram-l83gco3r.js.map → MermaidDiagram-Cg-c8jjI.js.map} +1 -1
- package/dist/{Modal-CLu6Eg5p.js → Modal-Cro4XHuT.js} +2 -2
- package/dist/{Modal-CLu6Eg5p.js.map → Modal-Cro4XHuT.js.map} +1 -1
- package/dist/{MultiActionButtonGroup-B3-wNw7w.js → MultiActionButtonGroup-DSxYdeRE.js} +3 -3
- package/dist/{MultiActionButtonGroup-B3-wNw7w.js.map → MultiActionButtonGroup-DSxYdeRE.js.map} +1 -1
- package/dist/{Navbar-BEc-Pqo5.js → Navbar-DB2YAs_2.js} +2 -2
- package/dist/{Navbar-BEc-Pqo5.js.map → Navbar-DB2YAs_2.js.map} +1 -1
- package/dist/{PageHeader-DosMyar2.js → PageHeader-CfFKjCzo.js} +2 -2
- package/dist/PageHeader-CfFKjCzo.js.map +1 -0
- package/dist/{PageToolbar-NmiausP7.js → PageToolbar-BTYKQCao.js} +2 -2
- package/dist/{PageToolbar-NmiausP7.js.map → PageToolbar-BTYKQCao.js.map} +1 -1
- package/dist/{Pagination-DidOPSPB.js → Pagination-C4pi5DHG.js} +2 -2
- package/dist/{Pagination-DidOPSPB.js.map → Pagination-C4pi5DHG.js.map} +1 -1
- package/dist/{Popconfirm-C4ryoeGP.js → Popconfirm-DOWgVS2t.js} +2 -2
- package/dist/{Popconfirm-C4ryoeGP.js.map → Popconfirm-DOWgVS2t.js.map} +1 -1
- package/dist/{RadioGroup-BIElT-nH.js → RadioGroup-BCpVnOjW.js} +2 -2
- package/dist/{RadioGroup-BIElT-nH.js.map → RadioGroup-BCpVnOjW.js.map} +1 -1
- package/dist/{Search-xDWaQ2z3.js → Search-hED5IJlr.js} +2 -2
- package/dist/{Search-xDWaQ2z3.js.map → Search-hED5IJlr.js.map} +1 -1
- package/dist/{SearchInput-BwlJ77mV.js → SearchInput-BTTnMdb1.js} +3 -3
- package/dist/{SearchInput-BwlJ77mV.js.map → SearchInput-BTTnMdb1.js.map} +1 -1
- package/dist/{SectionNav-DV3Hwj-5.js → SectionNav-O5hcU01h.js} +3 -3
- package/dist/{SectionNav-DV3Hwj-5.js.map → SectionNav-O5hcU01h.js.map} +1 -1
- package/dist/{Select-C3Q_Xk_Z.js → Select-DguW42V3.js} +2 -2
- package/dist/{Select-C3Q_Xk_Z.js.map → Select-DguW42V3.js.map} +1 -1
- package/dist/{Sheet-D7NnOyud.js → Sheet-DGqQqtof.js} +2 -2
- package/dist/{Sheet-D7NnOyud.js.map → Sheet-DGqQqtof.js.map} +1 -1
- package/dist/{Sidebar-DaUDM8jm.js → Sidebar-BD9iGHqL.js} +5 -5
- package/dist/{Sidebar-DaUDM8jm.js.map → Sidebar-BD9iGHqL.js.map} +1 -1
- package/dist/{Slider-Cdl8FOvI.js → Slider-D12JmXyd.js} +3 -3
- package/dist/{Slider-Cdl8FOvI.js.map → Slider-D12JmXyd.js.map} +1 -1
- package/dist/{Tabs-DUOUQKh7.js → Tabs-Z6ckOaSb.js} +2 -2
- package/dist/{Tabs-DUOUQKh7.js.map → Tabs-Z6ckOaSb.js.map} +1 -1
- package/dist/{TextInput-BAL-zOAN.js → TextInput-tWtbWBFQ.js} +3 -3
- package/dist/{TextInput-BAL-zOAN.js.map → TextInput-tWtbWBFQ.js.map} +1 -1
- package/dist/{ThemeProvider-MzVbTDBj.js → ThemeProvider-DHf_Tvwk.js} +2 -2
- package/dist/{ThemeProvider-MzVbTDBj.js.map → ThemeProvider-DHf_Tvwk.js.map} +1 -1
- package/dist/{ToggleAllTooltip-DQE5Lw6w.js → ToggleAllTooltip-EghNnsQC.js} +2 -2
- package/dist/{ToggleAllTooltip-DQE5Lw6w.js.map → ToggleAllTooltip-EghNnsQC.js.map} +1 -1
- package/dist/{ZoomableSvg-CIOqAYpd.js → ZoomableSvg-Cp2zJNIG.js} +4 -4
- package/dist/{ZoomableSvg-CIOqAYpd.js.map → ZoomableSvg-Cp2zJNIG.js.map} +1 -1
- package/dist/editors.js +3 -3
- package/dist/flint.js +3 -3
- package/dist/flint.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +47 -47
- package/dist/internal/blocks/AIKit.js +1 -1
- package/dist/internal/blocks/AppShell.js +1 -1
- package/dist/internal/blocks/AuthLayout.js +1 -1
- package/dist/internal/blocks/BrandEditor.js +1 -1
- package/dist/internal/blocks/BulkActionsBar.js +1 -1
- package/dist/internal/blocks/ChipEditor.js +2 -2
- package/dist/internal/blocks/ClipboardButton.js +1 -1
- package/dist/internal/blocks/ColorInput.js +1 -1
- package/dist/internal/blocks/ColorModeSwitch.js +1 -1
- package/dist/internal/blocks/Command.js +1 -1
- package/dist/internal/blocks/CopyField.js +1 -1
- package/dist/internal/blocks/DateInput.js +1 -1
- package/dist/internal/blocks/DateRangeInput.js +1 -1
- package/dist/internal/blocks/ExportMenu.js +2 -2
- package/dist/internal/blocks/Form/connectors/ComboboxField.js +2 -2
- package/dist/internal/blocks/Form/connectors/MultiComboboxField.js +1 -1
- package/dist/internal/blocks/Form.js +2 -2
- package/dist/internal/blocks/FormGroup.js +1 -1
- package/dist/internal/blocks/InlineEdit.js +1 -1
- package/dist/internal/blocks/MultiActionButtonGroup.js +1 -1
- package/dist/internal/blocks/MultiCombobox.js +3 -3
- package/dist/internal/blocks/NumberInput.js +1 -1
- package/dist/internal/blocks/PageHeader.js +1 -1
- package/dist/internal/blocks/PageToolbar.js +1 -1
- package/dist/internal/blocks/PasswordInput.js +2 -2
- package/dist/internal/blocks/SearchInput.js +1 -1
- package/dist/internal/blocks/SearchInputWithNavigation.js +3 -3
- package/dist/internal/blocks/SectionNav.js +1 -1
- package/dist/internal/blocks/SplitButton.js +1 -1
- package/dist/internal/blocks/TextInput.js +1 -1
- package/dist/internal/blocks/Textarea.js +1 -1
- package/dist/internal/blocks/TimeInput.js +2 -2
- package/dist/internal/components/Alert.js +1 -1
- package/dist/internal/components/AlertModal.js +1 -1
- package/dist/internal/components/Avatar.js +3 -2
- package/dist/internal/components/Avatar.js.map +1 -1
- package/dist/internal/components/BrandLogo.js +1 -1
- package/dist/internal/components/Breadcrumb.js +1 -1
- package/dist/internal/components/Button.js +1 -1
- package/dist/internal/components/Checkbox.js +1 -1
- package/dist/internal/components/Clipboard.js +1 -1
- package/dist/internal/components/CollapsiblePanel.js +1 -1
- package/dist/internal/components/Combobox.js +1 -1
- package/dist/internal/components/DateRangePicker.js +1 -1
- package/dist/internal/components/FileUpload.js +1 -1
- package/dist/internal/components/FullScreenModal.js +1 -1
- package/dist/internal/components/InputGroup.js +1 -1
- package/dist/internal/components/Kbd.js +1 -1
- package/dist/internal/components/Modal.js +1 -1
- package/dist/internal/components/Navbar.js +1 -1
- package/dist/internal/components/Pagination.js +1 -1
- package/dist/internal/components/Popconfirm.js +1 -1
- package/dist/internal/components/RadioGroup.js +1 -1
- package/dist/internal/components/Search.js +1 -1
- package/dist/internal/components/Select.js +1 -1
- package/dist/internal/components/Sheet.js +1 -1
- package/dist/internal/components/Sidebar.js +1 -1
- package/dist/internal/components/Slider.js +1 -1
- package/dist/internal/components/Tabs.js +1 -1
- package/dist/internal/components/ThemeProvider.js +1 -1
- package/dist/internal/components/Tooltip.js +1 -1
- package/dist/internal/components/Truncated.js +1 -1
- package/dist/internal/components/ZoomableSvg.js +1 -1
- package/dist/internal/utils.js +1 -1
- package/dist/markdown-editor.js +6 -6
- package/dist/mermaid.js +1 -1
- package/dist/rjsf.js +74 -54
- package/dist/rjsf.js.map +1 -1
- package/dist/testing.js +1 -1
- package/dist/{utils-BxEJOnFD.js → utils-CLNKe1ar.js} +10 -1
- package/dist/{utils-BxEJOnFD.js.map → utils-CLNKe1ar.js.map} +1 -1
- package/package.json +26 -26
- package/dist/AIKit-DyysN1kS.js.map +0 -1
- package/dist/Combobox-RZ0i3w8u.js.map +0 -1
- package/dist/PageHeader-DosMyar2.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
export { ZoomableSvg, svgToPngBlob, toSvgFileContent } from "../../ZoomableSvg-
|
|
1
|
+
export { ZoomableSvg, svgToPngBlob, toSvgFileContent } from "../../ZoomableSvg-Cp2zJNIG.js";
|
package/dist/internal/utils.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { cn } from "../classNames-DkX30VJU.js";
|
|
2
|
-
import { DEFAULT_ENTRY_SEPARATOR, copyToClipboard, createChangeInputEvent, createPrefixedString, debounce, isMac, noop, splitEntry, useSHA256, withHiddenFullscreen, withTooltipProvider, withVisualSettle } from "../utils-
|
|
2
|
+
import { DEFAULT_ENTRY_SEPARATOR, copyToClipboard, createChangeInputEvent, createPrefixedString, debounce, isMac, noop, splitEntry, useSHA256, withHiddenFullscreen, withTooltipProvider, withVisualSettle } from "../utils-CLNKe1ar.js";
|
|
3
3
|
import { findLiteralMatches, findLiteralTermMatches, hasLiteralMatch } from "../findLiteralMatches-BaLZTPtx.js";
|
|
4
4
|
import { mergeRefs } from "./utils/mergeRefs.js";
|
|
5
5
|
export { DEFAULT_ENTRY_SEPARATOR, cn, copyToClipboard, createChangeInputEvent, createPrefixedString, debounce, findLiteralMatches, findLiteralTermMatches, hasLiteralMatch, isMac, mergeRefs, noop, splitEntry, useSHA256, withHiddenFullscreen, withTooltipProvider, withVisualSettle };
|
package/dist/markdown-editor.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { cn } from "./classNames-DkX30VJU.js";
|
|
2
|
-
import { Tooltip } from "./utils-
|
|
2
|
+
import { Tooltip } from "./utils-CLNKe1ar.js";
|
|
3
3
|
import { AlignCenter, AlignJustify, AlignLeft, AlignRight, Bold, ChevronDown, Code, Heading1, Heading2, Heading3, Italic, Link, List, ListOrdered, Quote, SquareCode, Strikethrough, Type, Underline } from "./icons-DDR9dFSr.js";
|
|
4
|
-
import { Button } from "./Button-
|
|
4
|
+
import { Button } from "./Button-BgjVUBON.js";
|
|
5
5
|
import { ButtonGroup } from "./internal/components/ButtonGroup.js";
|
|
6
6
|
import { DropdownMenu } from "./DropdownMenu-Ba9atqDa.js";
|
|
7
7
|
import { Label } from "./internal/components/Label.js";
|
|
8
8
|
import { useStableCallback } from "./internal/hooks/useStableCallback.js";
|
|
9
9
|
import { Popover } from "./Popover-DhOPlWgF.js";
|
|
10
|
-
import { TextInput } from "./TextInput-
|
|
11
|
-
import { FormGroup } from "./FormGroup-
|
|
12
|
-
import { Kbd } from "./Kbd-
|
|
10
|
+
import { TextInput } from "./TextInput-tWtbWBFQ.js";
|
|
11
|
+
import { FormGroup } from "./FormGroup-B-_HsL1J.js";
|
|
12
|
+
import { Kbd } from "./Kbd-D4F65jXO.js";
|
|
13
13
|
import { Skeleton } from "./internal/components/Skeleton/Skeleton.js";
|
|
14
14
|
import { toast } from "./toast-Dzj1EFOb.js";
|
|
15
15
|
import { Suspense, createContext, lazy, use, useCallback, useEffect, useId, useRef, useState } from "react";
|
|
@@ -276,7 +276,7 @@ const KeyboardPlugin = ({ onSave, onCancel, singleLine, blurOnEscape, skipBlurSa
|
|
|
276
276
|
return null;
|
|
277
277
|
};
|
|
278
278
|
// src/blocks/MarkdownEditor/nodes/MermaidNodeComponent.tsx
|
|
279
|
-
const MermaidDiagram = lazy(() => import("./MermaidDiagram-
|
|
279
|
+
const MermaidDiagram = lazy(() => import("./MermaidDiagram-Cg-c8jjI.js").then((n) => n.MermaidDiagram_exports).then((m) => ({ default: m.MermaidDiagram }), (error) => {
|
|
280
280
|
console.error("[MarkdownEditor] failed to load MermaidDiagram chunk", error);
|
|
281
281
|
return { default: ({ code }) => /* @__PURE__ */ jsx("pre", { children: /* @__PURE__ */ jsx("code", { children: code }) }) };
|
|
282
282
|
}));
|
package/dist/mermaid.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { MermaidDiagram } from "./MermaidDiagram-
|
|
1
|
+
export { MermaidDiagram } from "./MermaidDiagram-Cg-c8jjI.js";
|
package/dist/rjsf.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { cn } from "./classNames-DkX30VJU.js";
|
|
2
|
-
import { Tooltip, debounce } from "./utils-
|
|
2
|
+
import { Tooltip, debounce } from "./utils-CLNKe1ar.js";
|
|
3
3
|
import { BookOpen, Info, Trash2 } from "./icons-DDR9dFSr.js";
|
|
4
|
-
import { Button } from "./Button-
|
|
4
|
+
import { Button } from "./Button-BgjVUBON.js";
|
|
5
5
|
import { Label } from "./internal/components/Label.js";
|
|
6
6
|
import { Link } from "./internal/components/Link.js";
|
|
7
7
|
import { useStableCallback } from "./internal/hooks/useStableCallback.js";
|
|
8
|
-
import { TextInput } from "./TextInput-
|
|
9
|
-
import { RadioGroup } from "./RadioGroup-
|
|
10
|
-
import { Checkbox } from "./Checkbox-
|
|
11
|
-
import { Combobox } from "./Combobox-
|
|
8
|
+
import { TextInput } from "./TextInput-tWtbWBFQ.js";
|
|
9
|
+
import { RadioGroup } from "./RadioGroup-BCpVnOjW.js";
|
|
10
|
+
import { Checkbox } from "./Checkbox-CsvhT9Bj.js";
|
|
11
|
+
import { Combobox } from "./Combobox-D_modNUu.js";
|
|
12
12
|
import { MultiCombobox } from "./internal/blocks/MultiCombobox.js";
|
|
13
|
-
import { FormGroup } from "./FormGroup-
|
|
13
|
+
import { FormGroup } from "./FormGroup-B-_HsL1J.js";
|
|
14
14
|
import { NumberInput } from "./internal/blocks/NumberInput.js";
|
|
15
15
|
import { Textarea } from "./internal/blocks/Textarea.js";
|
|
16
|
-
import { DateInput } from "./DateInput-
|
|
16
|
+
import { DateInput } from "./DateInput-DpoPkZRC.js";
|
|
17
17
|
import { PasswordInput } from "./internal/blocks/PasswordInput.js";
|
|
18
|
-
import { Alert } from "./Alert-
|
|
18
|
+
import { Alert } from "./Alert-CcAVKRSM.js";
|
|
19
19
|
import { CollapsiblePanel } from "./internal/components/CollapsiblePanel.js";
|
|
20
|
-
import { Tabs, TabsContent } from "./Tabs-
|
|
21
|
-
import { CodeEditor, isLanguageMode } from "./CodeEditor-
|
|
20
|
+
import { Tabs, TabsContent } from "./Tabs-Z6ckOaSb.js";
|
|
21
|
+
import { CodeEditor, isLanguageMode } from "./CodeEditor-Dx9gyVHV.js";
|
|
22
22
|
import { createContext, isValidElement, use, useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
23
23
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
24
24
|
import DOMPurify from "dompurify";
|
|
@@ -233,15 +233,37 @@ const CodeEditorField = ({ fieldPathId, formData, onChange, disabled, readonly,
|
|
|
233
233
|
options: uiOptions ?? {}
|
|
234
234
|
});
|
|
235
235
|
};
|
|
236
|
+
// src/blocks/RjsfSchemaEditor/TooltipIcon.tsx
|
|
237
|
+
const TooltipIcon = ({ rawHelp }) => {
|
|
238
|
+
const renderMarkdown = useRenderMarkdown();
|
|
239
|
+
return /* @__PURE__ */ jsx(Tooltip, {
|
|
240
|
+
placement: "top",
|
|
241
|
+
variant: "explanatory",
|
|
242
|
+
tooltip: renderMarkdown(rawHelp),
|
|
243
|
+
triggerAsChild: true,
|
|
244
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
245
|
+
className: "tw:cursor-help tw:text-muted-foreground",
|
|
246
|
+
children: /* @__PURE__ */ jsx(Info, { className: "tw:size-4" })
|
|
247
|
+
})
|
|
248
|
+
});
|
|
249
|
+
};
|
|
236
250
|
// src/blocks/RjsfSchemaEditor/SchemaDescription.tsx
|
|
237
|
-
/**
|
|
238
|
-
|
|
251
|
+
/**
|
|
252
|
+
* Renders a schema description with sanitized HTML support (links, formatting, etc.).
|
|
253
|
+
* - `tooltip` adds a help icon at the end of the text.
|
|
254
|
+
*/
|
|
255
|
+
const SchemaDescription = ({ description, tooltip }) => {
|
|
239
256
|
if (!description) return null;
|
|
240
|
-
return /* @__PURE__ */
|
|
257
|
+
return /* @__PURE__ */ jsxs("p", {
|
|
241
258
|
className: "tw:text-xs tw:text-muted-foreground",
|
|
242
|
-
dangerouslySetInnerHTML: { __html: DOMPurify.sanitize(description) }
|
|
259
|
+
children: [/* @__PURE__ */ jsx("span", { dangerouslySetInnerHTML: { __html: DOMPurify.sanitize(description) } }), tooltip && /* @__PURE__ */ jsx(InlineTooltipIcon, { rawHelp: tooltip })]
|
|
243
260
|
});
|
|
244
261
|
};
|
|
262
|
+
/** Help icon that flows with the text it ends. */
|
|
263
|
+
const InlineTooltipIcon = ({ rawHelp }) => /* @__PURE__ */ jsx("span", {
|
|
264
|
+
className: "tw:ml-1 tw:inline-block tw:align-middle",
|
|
265
|
+
children: /* @__PURE__ */ jsx(TooltipIcon, { rawHelp })
|
|
266
|
+
});
|
|
245
267
|
// src/blocks/RjsfSchemaEditor/fields/GridObjectField.tsx
|
|
246
268
|
/**
|
|
247
269
|
* Custom field that renders an object's properties in a responsive grid layout.
|
|
@@ -346,20 +368,6 @@ const InfoField = ({ schema, uiSchema }) => {
|
|
|
346
368
|
})
|
|
347
369
|
});
|
|
348
370
|
};
|
|
349
|
-
// src/blocks/RjsfSchemaEditor/TooltipIcon.tsx
|
|
350
|
-
const TooltipIcon = ({ rawHelp }) => {
|
|
351
|
-
const renderMarkdown = useRenderMarkdown();
|
|
352
|
-
return /* @__PURE__ */ jsx(Tooltip, {
|
|
353
|
-
placement: "top",
|
|
354
|
-
variant: "explanatory",
|
|
355
|
-
tooltip: renderMarkdown(rawHelp),
|
|
356
|
-
triggerAsChild: true,
|
|
357
|
-
children: /* @__PURE__ */ jsx("span", {
|
|
358
|
-
className: "tw:cursor-help tw:text-muted-foreground",
|
|
359
|
-
children: /* @__PURE__ */ jsx(Info, { className: "tw:size-4" })
|
|
360
|
-
})
|
|
361
|
-
});
|
|
362
|
-
};
|
|
363
371
|
// src/blocks/RjsfSchemaEditor/fields/TableArrayField.tsx
|
|
364
372
|
/** Default value for a freshly added cell/item, honouring the schema default. */
|
|
365
373
|
const defaultValueFor = (prop) => {
|
|
@@ -454,7 +462,7 @@ const TableArrayField = ({ schema, uiSchema = {}, formData, onChange, disabled,
|
|
|
454
462
|
className: "tw:px-2 tw:py-1.5 tw:[&>div]:mb-0",
|
|
455
463
|
children: /* @__PURE__ */ jsx(SchemaField, {
|
|
456
464
|
name: key,
|
|
457
|
-
schema: properties[key],
|
|
465
|
+
schema: properties[key] ?? {},
|
|
458
466
|
uiSchema: getCellUiSchema(key),
|
|
459
467
|
formData: item[key],
|
|
460
468
|
...SCHEMA_FIELD_STUBS,
|
|
@@ -481,28 +489,31 @@ const TableArrayField = ({ schema, uiSchema = {}, formData, onChange, disabled,
|
|
|
481
489
|
onClick: handleAddRow,
|
|
482
490
|
children: ["Add ", itemSchema?.title || "Item"]
|
|
483
491
|
});
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
children: [
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
492
|
+
const tooltip = uiSchema["ui:help"];
|
|
493
|
+
const tooltipInDescription = Boolean(tooltip && schema.description && uiSchema["ui:options"]?.tooltipPlacement === "description");
|
|
494
|
+
const description = /* @__PURE__ */ jsx(SchemaDescription, {
|
|
495
|
+
description: schema.description,
|
|
496
|
+
tooltip: tooltipInDescription ? tooltip : void 0
|
|
497
|
+
});
|
|
498
|
+
if (schema.title) return /* @__PURE__ */ jsxs(CollapsiblePanel, {
|
|
499
|
+
className: "tw:rounded-lg",
|
|
500
|
+
headerClassName: "tw:rounded-lg",
|
|
501
|
+
header: /* @__PURE__ */ jsxs("span", {
|
|
502
|
+
className: "tw:inline-flex tw:items-center tw:gap-1",
|
|
503
|
+
children: [schema.title, tooltip && !tooltipInDescription && /* @__PURE__ */ jsx(TooltipIcon, { rawHelp: tooltip })]
|
|
504
|
+
}),
|
|
505
|
+
defaultExpanded: true,
|
|
506
|
+
bodyClassName: "tw:flex tw:flex-col tw:gap-4",
|
|
507
|
+
children: [
|
|
508
|
+
description,
|
|
509
|
+
table,
|
|
510
|
+
addButton
|
|
511
|
+
]
|
|
512
|
+
});
|
|
502
513
|
return /* @__PURE__ */ jsxs("div", {
|
|
503
514
|
className: "tw:flex tw:flex-col tw:gap-4",
|
|
504
515
|
children: [
|
|
505
|
-
|
|
516
|
+
description,
|
|
506
517
|
table,
|
|
507
518
|
addButton
|
|
508
519
|
]
|
|
@@ -742,12 +753,15 @@ const FieldTemplateBody = ({ id, label, rawHelp, rawDescription, rawErrors, chil
|
|
|
742
753
|
if (widget === "test-connection" || widget === "sync-action") return /* @__PURE__ */ jsx(Fragment$1, { children });
|
|
743
754
|
if (schema.type === "object") return /* @__PURE__ */ jsx(Fragment$1, { children });
|
|
744
755
|
if (schema.type === "array" && !uiSchema?.["ui:widget"]) return /* @__PURE__ */ jsx(Fragment$1, { children });
|
|
745
|
-
const
|
|
756
|
+
const uiOptions = uiSchema?.["ui:options"];
|
|
757
|
+
const documentation = uiOptions?.documentation;
|
|
746
758
|
const hasErrors = rawErrors && rawErrors.length > 0;
|
|
747
759
|
const isCheckbox = schema.type === "boolean" && uiSchema?.["ui:widget"] !== "select";
|
|
748
760
|
const showLabel = displayLabel && label && !isCheckbox;
|
|
749
|
-
const
|
|
750
|
-
const
|
|
761
|
+
const helpInDescription = Boolean(rawHelp && rawDescription && uiOptions?.tooltipPlacement === "description");
|
|
762
|
+
const labelHelp = helpInDescription ? void 0 : rawHelp;
|
|
763
|
+
const hasHelpIcons = Boolean(labelHelp || documentation);
|
|
764
|
+
const helpIcons = /* @__PURE__ */ jsxs(Fragment$1, { children: [labelHelp && /* @__PURE__ */ jsx(TooltipIcon, { rawHelp: labelHelp }), documentation && /* @__PURE__ */ jsx(DocumentationLinkIcon, { documentation })] });
|
|
751
765
|
return /* @__PURE__ */ jsxs(FormGroup, {
|
|
752
766
|
state: hasErrors ? "error" : "default",
|
|
753
767
|
children: [
|
|
@@ -766,7 +780,7 @@ const FieldTemplateBody = ({ id, label, rawHelp, rawDescription, rawErrors, chil
|
|
|
766
780
|
className: "tw:flex tw:items-center tw:gap-1",
|
|
767
781
|
children: [children, helpIcons]
|
|
768
782
|
}) : children,
|
|
769
|
-
rawDescription && /* @__PURE__ */
|
|
783
|
+
rawDescription && /* @__PURE__ */ jsxs(FormGroup.Help, { children: [/* @__PURE__ */ jsx("span", { dangerouslySetInnerHTML: { __html: DOMPurify.sanitize(rawDescription) } }), helpInDescription && rawHelp && /* @__PURE__ */ jsx(InlineTooltipIcon, { rawHelp })] }),
|
|
770
784
|
hasErrors && /* @__PURE__ */ jsx(FormGroup.Help, { children: rawErrors.join(". ") })
|
|
771
785
|
]
|
|
772
786
|
});
|
|
@@ -1339,7 +1353,13 @@ const generateUiSchema = (schema, readOnly = false, definitions, globalConfig, h
|
|
|
1339
1353
|
if (globalValue !== void 0) {
|
|
1340
1354
|
if (typeof globalValue !== "object" || globalValue === null || Array.isArray(globalValue)) fieldUi["ui:disabled"] = true;
|
|
1341
1355
|
}
|
|
1342
|
-
if (options?.tooltip)
|
|
1356
|
+
if (options?.tooltip) {
|
|
1357
|
+
fieldUi["ui:help"] = String(options.tooltip);
|
|
1358
|
+
if (options.tooltip_placement === "description") fieldUi["ui:options"] = {
|
|
1359
|
+
...fieldUi["ui:options"],
|
|
1360
|
+
tooltipPlacement: "description"
|
|
1361
|
+
};
|
|
1362
|
+
}
|
|
1343
1363
|
if ((options?.documentation)?.link) fieldUi["ui:options"] = {
|
|
1344
1364
|
...fieldUi["ui:options"],
|
|
1345
1365
|
documentation: options?.documentation
|