@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.
Files changed (84) hide show
  1. package/AGENTS.md +117 -40
  2. package/COMPONENT-API.md +31 -9
  3. package/README.md +3 -3
  4. package/dist/MermaidDiagram-EOKJHQQV.js +10 -0
  5. package/dist/MermaidDiagram-EOKJHQQV.js.map +1 -0
  6. package/dist/charts.d.ts +31 -2
  7. package/dist/charts.js +6 -9
  8. package/dist/charts.js.map +1 -1
  9. package/dist/chunk-63NSN2VL.js +274 -0
  10. package/dist/chunk-63NSN2VL.js.map +1 -0
  11. package/dist/{rjsf.cjs → chunk-6FPEI4EM.js} +1560 -5712
  12. package/dist/chunk-6FPEI4EM.js.map +1 -0
  13. package/dist/chunk-7PUUHEJQ.js +1313 -0
  14. package/dist/chunk-7PUUHEJQ.js.map +1 -0
  15. package/dist/chunk-BOHNXTMM.js +606 -0
  16. package/dist/chunk-BOHNXTMM.js.map +1 -0
  17. package/dist/{testing.cjs → chunk-C3L3TBBT.js} +33 -164
  18. package/dist/chunk-C3L3TBBT.js.map +1 -0
  19. package/dist/chunk-CTCFYWJC.js +407 -0
  20. package/dist/chunk-CTCFYWJC.js.map +1 -0
  21. package/dist/chunk-ESBL3IPF.js +23 -0
  22. package/dist/chunk-ESBL3IPF.js.map +1 -0
  23. package/dist/chunk-IJTHFNNJ.js +261 -0
  24. package/dist/chunk-IJTHFNNJ.js.map +1 -0
  25. package/dist/chunk-JP7PNHLH.js +40 -0
  26. package/dist/chunk-JP7PNHLH.js.map +1 -0
  27. package/dist/chunk-KPNAW5MU.js +229 -0
  28. package/dist/chunk-KPNAW5MU.js.map +1 -0
  29. package/dist/chunk-L37JJ6MR.js +152 -0
  30. package/dist/chunk-L37JJ6MR.js.map +1 -0
  31. package/dist/chunk-Q7NWXLCT.js +90 -0
  32. package/dist/chunk-Q7NWXLCT.js.map +1 -0
  33. package/dist/chunk-SYIEF644.js +1016 -0
  34. package/dist/chunk-SYIEF644.js.map +1 -0
  35. package/dist/chunk-VMFSRV5H.js +16 -0
  36. package/dist/chunk-VMFSRV5H.js.map +1 -0
  37. package/dist/chunk-VPPM7UUQ.js +47 -0
  38. package/dist/chunk-VPPM7UUQ.js.map +1 -0
  39. package/dist/chunk-XV3UUOYF.js +845 -0
  40. package/dist/chunk-XV3UUOYF.js.map +1 -0
  41. package/dist/editors.d.ts +53 -5
  42. package/dist/editors.js +85 -2097
  43. package/dist/editors.js.map +1 -1
  44. package/dist/icons.d.ts +29 -8
  45. package/dist/icons.js +2 -361
  46. package/dist/icons.js.map +1 -1
  47. package/dist/index.d.ts +735 -426
  48. package/dist/index.js +5029 -13796
  49. package/dist/index.js.map +1 -1
  50. package/dist/markdown-editor.js +41 -3426
  51. package/dist/markdown-editor.js.map +1 -1
  52. package/dist/mermaid.js +8 -1129
  53. package/dist/mermaid.js.map +1 -1
  54. package/dist/rjsf.js +97 -9240
  55. package/dist/rjsf.js.map +1 -1
  56. package/dist/styles.css +1 -1
  57. package/dist/testing.js +5 -357
  58. package/dist/testing.js.map +1 -1
  59. package/package.json +29 -74
  60. package/src/styles.css +60 -3
  61. package/src/theme.css +1 -0
  62. package/dist/charts.cjs +0 -268
  63. package/dist/charts.cjs.map +0 -1
  64. package/dist/charts.d.cts +0 -181
  65. package/dist/constants-D3gaMY-W.d.cts +0 -39
  66. package/dist/editors.cjs +0 -2456
  67. package/dist/editors.cjs.map +0 -1
  68. package/dist/editors.d.cts +0 -141
  69. package/dist/icons.cjs +0 -23888
  70. package/dist/icons.cjs.map +0 -1
  71. package/dist/icons.d.cts +0 -20
  72. package/dist/index.cjs +0 -24817
  73. package/dist/index.cjs.map +0 -1
  74. package/dist/index.d.cts +0 -10413
  75. package/dist/markdown-editor.cjs +0 -4636
  76. package/dist/markdown-editor.cjs.map +0 -1
  77. package/dist/markdown-editor.d.cts +0 -75
  78. package/dist/mermaid.cjs +0 -1138
  79. package/dist/mermaid.cjs.map +0 -1
  80. package/dist/mermaid.d.cts +0 -15
  81. package/dist/rjsf.cjs.map +0 -1
  82. package/dist/rjsf.d.cts +0 -55
  83. package/dist/testing.cjs.map +0 -1
  84. package/dist/testing.d.cts +0 -25
@@ -1,141 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { ReactNode } from 'react';
3
- import { CompletionSource } from '@codemirror/autocomplete';
4
- import { SQLNamespace } from '@codemirror/lang-sql';
5
- import { EditorView, EditorState, KeyBinding } from '@uiw/react-codemirror';
6
- import { SqlDialectName } from '@keboola/codemirror-lang-sql';
7
- export { SqlDialectName } from '@keboola/codemirror-lang-sql';
8
- import { M as MergeConflict, C as ChangeClassification } from './constants-D3gaMY-W.cjs';
9
-
10
- declare const LANGUAGE_MODES: readonly ["application/json", "text/plain", "text/x-python", "text/x-sql", "text/x-mysql", "text/x-pgsql", "text/x-mssql", "text/x-sfsql", "text/x-plsql", "text/x-rsrc", "text/x-sh", "text/x-toml", "text/jsonnet", "text/x-dbt", "text/javascript", "text/typescript"];
11
- type LANGUAGE_MODE = (typeof LANGUAGE_MODES)[number];
12
- declare const isLanguageMode: (mode: string) => mode is LANGUAGE_MODE;
13
-
14
- type EditorVariable = {
15
- name: string;
16
- value?: string;
17
- };
18
-
19
- type Props$2 = {
20
- value: string;
21
- previousValue?: string;
22
- mode?: LANGUAGE_MODE;
23
- placeholder?: string;
24
- /** Names the editable region for screen readers — the editor has no visible label of its own. */
25
- ariaLabel?: string;
26
- /**
27
- * Highlights every occurrence and scrolls the selected one into view. The find
28
- * UI is the caller's — pass the query it holds, and omit both props entirely to
29
- * leave the search extension uninstalled.
30
- */
31
- searchQuery?: string;
32
- searchMatchIndex?: number;
33
- readOnly?: boolean;
34
- autocompletions?: string[];
35
- /**
36
- * Completions that depend on where the cursor is — a column list offered only
37
- * after its table, say. Wins over both `autocompletions` and `completeAny`,
38
- * which stay the right props for a list that is the same everywhere in the
39
- * document and for having no list at all. Like them, it opens on typing.
40
- */
41
- completionSource?: CompletionSource;
42
- /**
43
- * Configuration variables, completed into `{{name}}`. Independent of
44
- * `completionSource`: both are offered, so a caller keeps its own completions and
45
- * gets variables spelled the way the rest of the platform writes them.
46
- */
47
- variables?: EditorVariable[];
48
- extraKeys?: Record<string, () => void>;
49
- withToggleCommentHint?: boolean;
50
- withAutofocus?: boolean;
51
- withLineNumbers?: boolean;
52
- withLineWrapping?: boolean;
53
- withCollapseUnchanged?: boolean;
54
- withCopyButton?: boolean;
55
- completeAny?: boolean;
56
- help?: ReactNode;
57
- helpPostfix?: ReactNode;
58
- renderAdditionalButtons?: (value?: string) => ReactNode;
59
- className?: string;
60
- } & ({
61
- readOnly: true;
62
- onChange?: never;
63
- } | {
64
- readOnly?: boolean;
65
- onChange: (value: string) => void;
66
- });
67
- declare const CodeEditor: ({ value, previousValue, onChange, mode, placeholder, ariaLabel, searchQuery, searchMatchIndex, readOnly, autocompletions, completionSource, variables, extraKeys, withToggleCommentHint, withAutofocus, withLineNumbers, withLineWrapping, withCollapseUnchanged, withCopyButton, completeAny, help, helpPostfix, renderAdditionalButtons, className, }: Props$2) => react_jsx_runtime.JSX.Element;
68
-
69
- type HighlightedLines = {
70
- from: number;
71
- to: number;
72
- error?: {
73
- from: number;
74
- to: number;
75
- };
76
- processing?: {
77
- from: number;
78
- to: number;
79
- };
80
- } | null;
81
-
82
- type Props$1 = {
83
- value: string;
84
- onChange?: (value: string) => void;
85
- onSelectionChange?: (text: string) => void;
86
- onCreateEditor?: (view: EditorView, state: EditorState) => void;
87
- onDestroyEditor?: () => void;
88
- onBlurEditor?: (view: EditorView) => void;
89
- onFocusEditor?: (view: EditorView) => void;
90
- readOnly: boolean;
91
- placeholder?: string;
92
- searchQuery?: string;
93
- searchMatchIndex?: number;
94
- extraKeys?: KeyBinding[];
95
- queryParser?: (sql: string) => Promise<string[]>;
96
- autoFocus?: boolean;
97
- lineNumbers?: boolean;
98
- className?: string;
99
- schema?: SQLNamespace;
100
- variables?: EditorVariable[];
101
- defaultSchema?: string;
102
- defaultDatabase?: string;
103
- highlightLines?: HighlightedLines;
104
- dialect?: SqlDialectName;
105
- };
106
- declare const SqlEditor: ({ value, onChange, onSelectionChange, onCreateEditor, onDestroyEditor, onBlurEditor, onFocusEditor, placeholder, searchQuery, searchMatchIndex, readOnly, extraKeys, queryParser, autoFocus, lineNumbers, className, schema, variables, defaultDatabase, defaultSchema, highlightLines, dialect, }: Props$1) => react_jsx_runtime.JSX.Element;
107
-
108
- type Props = {
109
- mergeValue: string;
110
- handleMergeChange: (value: string) => void;
111
- leftText: string;
112
- rightText: string;
113
- leftConflicts: MergeConflict[];
114
- rightConflicts: MergeConflict[];
115
- leftHighlightedLines: Set<number>;
116
- rightHighlightedLines: Set<number>;
117
- leftClassification: Map<number, ChangeClassification>;
118
- rightClassification: Map<number, ChangeClassification>;
119
- mergeHighlightedLines: Set<number>;
120
- mergeClassification: Map<number, ChangeClassification>;
121
- acceptLeft: (conflict: MergeConflict) => void;
122
- acceptRight: (conflict: MergeConflict) => void;
123
- dismissLeft: (conflict: MergeConflict) => void;
124
- dismissRight: (conflict: MergeConflict) => void;
125
- leftHeader?: ReactNode;
126
- middleHeader?: ReactNode;
127
- middleHeaderClassName?: string;
128
- middleClassName?: string;
129
- rightHeader?: ReactNode;
130
- className?: string;
131
- /**
132
- * Paint the corresponding read-only pane with the error palette to signal the
133
- * side has been deleted upstream. The diff is still rendered so the user can
134
- * see what was lost; accept/dismiss controls for that side are suppressed.
135
- */
136
- leftDeleted?: boolean;
137
- rightDeleted?: boolean;
138
- };
139
- declare const MergeEditor: ({ mergeValue, handleMergeChange, leftText, rightText, leftConflicts, rightConflicts, leftHighlightedLines, rightHighlightedLines, leftClassification, rightClassification, mergeHighlightedLines, mergeClassification, acceptLeft, acceptRight, dismissLeft, dismissRight, leftHeader, middleHeader, middleHeaderClassName, middleClassName, rightHeader, className, leftDeleted, rightDeleted, }: Props) => react_jsx_runtime.JSX.Element;
140
-
141
- export { CodeEditor, type EditorVariable, type LANGUAGE_MODE, LANGUAGE_MODES, MergeEditor, SqlEditor, isLanguageMode };