@keboola/design 9.0.0 → 10.1.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/AGENTS.md +117 -40
- package/COMPONENT-API.md +31 -9
- package/README.md +3 -3
- package/dist/MermaidDiagram-EOKJHQQV.js +10 -0
- package/dist/MermaidDiagram-EOKJHQQV.js.map +1 -0
- package/dist/charts.d.ts +31 -2
- package/dist/charts.js +6 -9
- package/dist/charts.js.map +1 -1
- package/dist/chunk-63NSN2VL.js +274 -0
- package/dist/chunk-63NSN2VL.js.map +1 -0
- package/dist/{rjsf.cjs → chunk-6FPEI4EM.js} +1560 -5712
- package/dist/chunk-6FPEI4EM.js.map +1 -0
- package/dist/chunk-7PUUHEJQ.js +1313 -0
- package/dist/chunk-7PUUHEJQ.js.map +1 -0
- package/dist/chunk-BOHNXTMM.js +606 -0
- package/dist/chunk-BOHNXTMM.js.map +1 -0
- package/dist/{testing.cjs → chunk-C3L3TBBT.js} +33 -164
- package/dist/chunk-C3L3TBBT.js.map +1 -0
- package/dist/chunk-CTCFYWJC.js +407 -0
- package/dist/chunk-CTCFYWJC.js.map +1 -0
- package/dist/chunk-ESBL3IPF.js +23 -0
- package/dist/chunk-ESBL3IPF.js.map +1 -0
- package/dist/chunk-IJTHFNNJ.js +261 -0
- package/dist/chunk-IJTHFNNJ.js.map +1 -0
- package/dist/chunk-JP7PNHLH.js +40 -0
- package/dist/chunk-JP7PNHLH.js.map +1 -0
- package/dist/chunk-KPNAW5MU.js +229 -0
- package/dist/chunk-KPNAW5MU.js.map +1 -0
- package/dist/chunk-L37JJ6MR.js +152 -0
- package/dist/chunk-L37JJ6MR.js.map +1 -0
- package/dist/chunk-Q7NWXLCT.js +90 -0
- package/dist/chunk-Q7NWXLCT.js.map +1 -0
- package/dist/chunk-SYIEF644.js +1016 -0
- package/dist/chunk-SYIEF644.js.map +1 -0
- package/dist/chunk-VMFSRV5H.js +16 -0
- package/dist/chunk-VMFSRV5H.js.map +1 -0
- package/dist/chunk-VPPM7UUQ.js +47 -0
- package/dist/chunk-VPPM7UUQ.js.map +1 -0
- package/dist/chunk-XV3UUOYF.js +845 -0
- package/dist/chunk-XV3UUOYF.js.map +1 -0
- package/dist/editors.d.ts +53 -5
- package/dist/editors.js +85 -2097
- package/dist/editors.js.map +1 -1
- package/dist/icons.d.ts +29 -8
- package/dist/icons.js +2 -361
- package/dist/icons.js.map +1 -1
- package/dist/index.d.ts +735 -426
- package/dist/index.js +5029 -13796
- package/dist/index.js.map +1 -1
- package/dist/markdown-editor.js +41 -3426
- package/dist/markdown-editor.js.map +1 -1
- package/dist/mermaid.js +8 -1129
- package/dist/mermaid.js.map +1 -1
- package/dist/rjsf.js +97 -9240
- package/dist/rjsf.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/testing.js +5 -357
- package/dist/testing.js.map +1 -1
- package/package.json +29 -74
- package/src/styles.css +60 -3
- package/src/theme.css +1 -0
- package/dist/charts.cjs +0 -268
- package/dist/charts.cjs.map +0 -1
- package/dist/charts.d.cts +0 -181
- package/dist/constants-D3gaMY-W.d.cts +0 -39
- package/dist/editors.cjs +0 -2456
- package/dist/editors.cjs.map +0 -1
- package/dist/editors.d.cts +0 -141
- package/dist/icons.cjs +0 -23888
- package/dist/icons.cjs.map +0 -1
- package/dist/icons.d.cts +0 -20
- package/dist/index.cjs +0 -24817
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts +0 -10413
- package/dist/markdown-editor.cjs +0 -4636
- package/dist/markdown-editor.cjs.map +0 -1
- package/dist/markdown-editor.d.cts +0 -75
- package/dist/mermaid.cjs +0 -1138
- package/dist/mermaid.cjs.map +0 -1
- package/dist/mermaid.d.cts +0 -15
- package/dist/rjsf.cjs.map +0 -1
- package/dist/rjsf.d.cts +0 -55
- package/dist/testing.cjs.map +0 -1
- package/dist/testing.d.cts +0 -25
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
|
|
4
|
-
type MarkdownEditorProps = {
|
|
5
|
-
/** Markdown string (controlled) */
|
|
6
|
-
value: string;
|
|
7
|
-
onChange?: (markdown: string) => void;
|
|
8
|
-
/**
|
|
9
|
-
* Renders content but never accepts input. Use for permanent view-only contexts
|
|
10
|
-
* (e.g. a current user lacks edit permission). Toolbar is hidden.
|
|
11
|
-
*/
|
|
12
|
-
readOnly?: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* Temporarily blocks input but signals intent to re-enable
|
|
15
|
-
* (e.g. while a save is in flight). Functionally identical to `readOnly` today.
|
|
16
|
-
*/
|
|
17
|
-
disabled?: boolean;
|
|
18
|
-
placeholder?: string;
|
|
19
|
-
autoFocus?: boolean;
|
|
20
|
-
/** Invoked on Cmd/Ctrl+Enter — typically used to commit a form. */
|
|
21
|
-
onSave?: () => void;
|
|
22
|
-
/**
|
|
23
|
-
* Invoked on Escape in inline-edit mode (`singleLine || saveOnBlur`). Per the
|
|
24
|
-
* inline-editable-text pattern spec, Esc reverts the in-progress edit — callers
|
|
25
|
-
* reset `value` to the last-committed state inside this handler.
|
|
26
|
-
*/
|
|
27
|
-
onCancel?: () => void;
|
|
28
|
-
/**
|
|
29
|
-
* Async image upload. Resolved URL is embedded as the image src
|
|
30
|
-
* (`` in the underlying markdown).
|
|
31
|
-
*/
|
|
32
|
-
onImageUpload?: (file: File) => Promise<{
|
|
33
|
-
url: string;
|
|
34
|
-
}>;
|
|
35
|
-
className?: string;
|
|
36
|
-
imageRenderer?: (props: {
|
|
37
|
-
src: string;
|
|
38
|
-
alt: string;
|
|
39
|
-
}) => ReactNode;
|
|
40
|
-
showToolbar?: boolean;
|
|
41
|
-
/**
|
|
42
|
-
* Strips the prose typography wrapper, removes the min-height, and tightens padding so
|
|
43
|
-
* the editor visually blends with surrounding text. Use for inline / Linear-style edit
|
|
44
|
-
* affordances inside headings, list rows, or table cells. Pair with `className` to set
|
|
45
|
-
* the caller's typography.
|
|
46
|
-
*/
|
|
47
|
-
compact?: boolean;
|
|
48
|
-
/**
|
|
49
|
-
* Calls `onSave` when focus leaves the editor (and is not moved into the toolbar).
|
|
50
|
-
* `onChange` already keeps the caller's value in sync — `onSave` is the "commit" signal.
|
|
51
|
-
*/
|
|
52
|
-
saveOnBlur?: boolean;
|
|
53
|
-
/**
|
|
54
|
-
* Disables block-level markdown (lists, headings, code blocks, HR) and makes a plain
|
|
55
|
-
* Enter press trigger `onSave` and blur the editor. Shift+Enter still inserts a soft
|
|
56
|
-
* line break. Use for editable titles.
|
|
57
|
-
*/
|
|
58
|
-
singleLine?: boolean;
|
|
59
|
-
/**
|
|
60
|
-
* Clamps content to 2 lines (truncating with an ellipsis) in the display (not-focused)
|
|
61
|
-
* state; focus expands the editor to full height (no clamp). `line-clamp` is self-gating,
|
|
62
|
-
* so short/empty content renders fully with no truncation. Per the inline-editable-text
|
|
63
|
-
* pattern spec for description-style slots.
|
|
64
|
-
*/
|
|
65
|
-
clampDisplay?: boolean;
|
|
66
|
-
/**
|
|
67
|
-
* Minimum visible height in lines. `1` renders as a single line that grows with
|
|
68
|
-
* content (Linear/Slack/GitHub-PR-comment pattern); `0` removes the floor entirely.
|
|
69
|
-
* Omit to keep the default ~4-line floor. Ignored in `compact` mode (which has no floor).
|
|
70
|
-
*/
|
|
71
|
-
minRows?: number;
|
|
72
|
-
};
|
|
73
|
-
declare const MarkdownEditor: ({ value, onChange, readOnly, placeholder, autoFocus, disabled, onSave, onCancel, onImageUpload, className, imageRenderer, showToolbar, compact, saveOnBlur, singleLine, clampDisplay, minRows, }: MarkdownEditorProps) => react_jsx_runtime.JSX.Element;
|
|
74
|
-
|
|
75
|
-
export { MarkdownEditor, type MarkdownEditorProps };
|