pixel-react 1.22.12 → 1.23.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/lib/components/Excel/Data.js +72 -92
- package/lib/components/Excel/Data.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFile.js +8 -11
- package/lib/components/Excel/ExcelFile/ExcelFile.js.map +1 -1
- package/lib/components/Icon/iconList.js +14 -0
- package/lib/components/Icon/iconList.js.map +1 -1
- package/lib/components/RichTextEditor/DynamicValue.d.ts +8 -0
- package/lib/components/RichTextEditor/DynamicValue.js +90 -0
- package/lib/components/RichTextEditor/DynamicValue.js.map +1 -0
- package/lib/components/RichTextEditor/DynamicValueList.d.ts +11 -0
- package/lib/components/RichTextEditor/DynamicValueList.js +49 -0
- package/lib/components/RichTextEditor/DynamicValueList.js.map +1 -0
- package/lib/components/RichTextEditor/LinkPopover.d.ts +8 -0
- package/lib/components/RichTextEditor/LinkPopover.js +123 -0
- package/lib/components/RichTextEditor/LinkPopover.js.map +1 -0
- package/lib/components/RichTextEditor/RichTextEditor.d.ts +5 -0
- package/lib/components/RichTextEditor/RichTextEditor.js +242 -0
- package/lib/components/RichTextEditor/RichTextEditor.js.map +1 -0
- package/lib/components/RichTextEditor/Toolbar.d.ts +13 -0
- package/lib/components/RichTextEditor/Toolbar.js +186 -0
- package/lib/components/RichTextEditor/Toolbar.js.map +1 -0
- package/lib/components/RichTextEditor/constants.d.ts +4 -0
- package/lib/components/RichTextEditor/constants.js +33 -0
- package/lib/components/RichTextEditor/constants.js.map +1 -0
- package/lib/components/RichTextEditor/fileAttachment.d.ts +25 -0
- package/lib/components/RichTextEditor/fileAttachment.js +150 -0
- package/lib/components/RichTextEditor/fileAttachment.js.map +1 -0
- package/lib/components/RichTextEditor/imageUpload.d.ts +10 -0
- package/lib/components/RichTextEditor/imageUpload.js +46 -0
- package/lib/components/RichTextEditor/imageUpload.js.map +1 -0
- package/lib/components/RichTextEditor/index.d.ts +2 -0
- package/lib/components/RichTextEditor/index.js +2 -0
- package/lib/components/RichTextEditor/index.js.map +1 -0
- package/lib/components/RichTextEditor/pasteFormatting.d.ts +24 -0
- package/lib/components/RichTextEditor/pasteFormatting.js +203 -0
- package/lib/components/RichTextEditor/pasteFormatting.js.map +1 -0
- package/lib/components/RichTextEditor/types.d.ts +196 -0
- package/lib/components/RichTextEditor/types.js +2 -0
- package/lib/components/RichTextEditor/types.js.map +1 -0
- package/lib/components/RichTextEditor/uploadPosition.d.ts +31 -0
- package/lib/components/RichTextEditor/uploadPosition.js +107 -0
- package/lib/components/RichTextEditor/uploadPosition.js.map +1 -0
- package/lib/components/StepsLandingTable/Components/StepTableMainRow.js +2 -2
- package/lib/components/StepsLandingTable/Components/StepTableMainRow.js.map +1 -1
- package/lib/index.d.ts +203 -4
- package/lib/index.js +9 -9
- package/lib/index.js.map +1 -1
- package/lib/styles.css +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +12 -2
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
export type RichTextToolbarOption = 'bold' | 'italic' | 'underline' | 'strike' | 'heading1' | 'heading2' | 'heading3' | 'bulletList' | 'orderedList' | 'blockquote' | 'code' | 'codeBlock' | 'link' | 'image' | 'attachment' | 'undo' | 'redo' | 'clear';
|
|
2
|
+
/**
|
|
3
|
+
* Uploads an image and resolves with its http(s) URL
|
|
4
|
+
*/
|
|
5
|
+
export type RichTextImageUpload = (file: File) => Promise<string>;
|
|
6
|
+
/**
|
|
7
|
+
* Why an image was not inserted:
|
|
8
|
+
* - `'upload'`: the upload failed or resolved with an unsafe URL
|
|
9
|
+
*/
|
|
10
|
+
export type RichTextImageUploadError = 'upload';
|
|
11
|
+
/**
|
|
12
|
+
* Uploads an attached file and resolves with its http(s) URL
|
|
13
|
+
*/
|
|
14
|
+
export type RichTextFileUpload = (file: File) => Promise<string>;
|
|
15
|
+
/**
|
|
16
|
+
* Why an attached file was not inserted:
|
|
17
|
+
* - `'type'`: it doesn't match `fileAttachmentAccept`, or it isn't an image and
|
|
18
|
+
* no `onFileUpload` was given
|
|
19
|
+
* - `'size'`: it is larger than `maxFileSize`
|
|
20
|
+
* - `'upload'`: the upload failed or resolved with an unsafe URL
|
|
21
|
+
*/
|
|
22
|
+
export type RichTextFileAttachmentError = 'type' | 'size' | 'upload';
|
|
23
|
+
/**
|
|
24
|
+
* Format of the editor `value` and of the content passed to `onChange`, `onFocus` and `onBlur`
|
|
25
|
+
*/
|
|
26
|
+
export type RichTextOutputFormat = 'html' | 'text';
|
|
27
|
+
export interface RichTextDynamicValue {
|
|
28
|
+
/**
|
|
29
|
+
* Text shown in the suggestion list
|
|
30
|
+
*/
|
|
31
|
+
label: string;
|
|
32
|
+
/**
|
|
33
|
+
* Identifier stored on the token as `data-id` and shown as `{{value}}`
|
|
34
|
+
*/
|
|
35
|
+
value: string;
|
|
36
|
+
}
|
|
37
|
+
export interface RichTextEditorProps {
|
|
38
|
+
/**
|
|
39
|
+
* Content of the editor, in the format set by `outputFormat`
|
|
40
|
+
*/
|
|
41
|
+
value?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Format of `value` and of the content passed to `onChange`, `onFocus` and `onBlur`.
|
|
44
|
+
* - `'html'`: the editor HTML, with formatting
|
|
45
|
+
* - `'text'`: plain text, one line per block. Formatting, links and images are
|
|
46
|
+
* dropped and dynamic values are written as `{{value}}`
|
|
47
|
+
* @default 'html'
|
|
48
|
+
*/
|
|
49
|
+
outputFormat?: RichTextOutputFormat;
|
|
50
|
+
/**
|
|
51
|
+
* Called with the editor content (see `outputFormat`) and its text character count
|
|
52
|
+
* whenever the content changes
|
|
53
|
+
*/
|
|
54
|
+
onChange?: (value: string, charCount: number) => void;
|
|
55
|
+
/**
|
|
56
|
+
* Called with the text character count on mount and whenever it changes
|
|
57
|
+
* (including external `value` updates). Use it to run min/max length
|
|
58
|
+
* validation in the parent form and pass the result back via `error`/`helperText`
|
|
59
|
+
*/
|
|
60
|
+
onCharCountChange?: (charCount: number) => void;
|
|
61
|
+
/**
|
|
62
|
+
* Label shown above the editor
|
|
63
|
+
*/
|
|
64
|
+
label?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Shows a required asterisk next to the label
|
|
67
|
+
*/
|
|
68
|
+
required?: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* Placeholder shown when the editor is empty
|
|
71
|
+
*/
|
|
72
|
+
placeholder?: string;
|
|
73
|
+
/**
|
|
74
|
+
* Makes the editor non-editable and hides the toolbar
|
|
75
|
+
*/
|
|
76
|
+
readOnly?: boolean;
|
|
77
|
+
/**
|
|
78
|
+
* Hides the toolbar while keeping the editor editable
|
|
79
|
+
*/
|
|
80
|
+
toolbarHidden?: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* Toolbar buttons to show, in order. Defaults to all options
|
|
83
|
+
*/
|
|
84
|
+
toolbarOptions?: RichTextToolbarOption[];
|
|
85
|
+
/**
|
|
86
|
+
* Values offered when the user types `dynamicValueTrigger`. Picking one inserts it
|
|
87
|
+
* as a token: `<span data-type="dynamicValue" data-id="{value}" data-label="{label}">`.
|
|
88
|
+
* The feature is disabled (typing the trigger does nothing) when this is empty or omitted
|
|
89
|
+
*/
|
|
90
|
+
dynamicValues?: RichTextDynamicValue[];
|
|
91
|
+
/**
|
|
92
|
+
* Called with the dynamic values present in the content (document order, no duplicates)
|
|
93
|
+
* on mount and whenever they change, including external `value` updates
|
|
94
|
+
*/
|
|
95
|
+
onDynamicValuesChange?: (dynamicValues: RichTextDynamicValue[]) => void;
|
|
96
|
+
/**
|
|
97
|
+
* Character that opens the dynamic value list
|
|
98
|
+
* @default '<'
|
|
99
|
+
*/
|
|
100
|
+
dynamicValueTrigger?: string;
|
|
101
|
+
/**
|
|
102
|
+
* Enables inserting images via the toolbar `image` button, paste and drop.
|
|
103
|
+
* When false, the `image` toolbar option is hidden and pasted/dropped images are ignored.
|
|
104
|
+
*
|
|
105
|
+
* **Pass `onImageUpload` with this** for content that is sent as email or stored:
|
|
106
|
+
* without it, images are embedded as base64 (see `onImageUpload`)
|
|
107
|
+
* @default false
|
|
108
|
+
*/
|
|
109
|
+
allowImageUpload?: boolean;
|
|
110
|
+
/**
|
|
111
|
+
* Uploads images picked, pasted or dropped into the editor and resolves with their URL.
|
|
112
|
+
*
|
|
113
|
+
* **Strongly recommended when `allowImageUpload` is true.** When omitted, images
|
|
114
|
+
* are embedded in the HTML as base64 data URLs, which:
|
|
115
|
+
* - are blocked or stripped by email clients such as Gmail and Outlook
|
|
116
|
+
* - make the HTML (and every `onChange` value) as large as the images, often several MB
|
|
117
|
+
*
|
|
118
|
+
* The fallback is only meant for demos and small, local-only content
|
|
119
|
+
*/
|
|
120
|
+
onImageUpload?: RichTextImageUpload;
|
|
121
|
+
/**
|
|
122
|
+
* Called for each image that was not inserted, with the reason. The other
|
|
123
|
+
* images still upload
|
|
124
|
+
*/
|
|
125
|
+
onImageUploadError?: (file: File, reason: RichTextImageUploadError) => void;
|
|
126
|
+
/**
|
|
127
|
+
* Enables attaching local files via the toolbar `attachment` button, and via
|
|
128
|
+
* paste and drop for files that aren't inserted as images. Each file is inserted
|
|
129
|
+
* as a download chip:
|
|
130
|
+
* `<a data-type="fileAttachment" href="{url}" data-name="{name}" data-size="{bytes}" download>`.
|
|
131
|
+
* When false, the `attachment` toolbar option is hidden.
|
|
132
|
+
*
|
|
133
|
+
* **Pass `onFileUpload` with this**: without it only image files can be
|
|
134
|
+
* attached, and they are embedded as base64 (see `onFileUpload`)
|
|
135
|
+
* @default false
|
|
136
|
+
*/
|
|
137
|
+
allowFileAttachment?: boolean;
|
|
138
|
+
/**
|
|
139
|
+
* Uploads attached files and resolves with their URL.
|
|
140
|
+
*
|
|
141
|
+
* **Required to attach anything other than images.** When omitted:
|
|
142
|
+
* - non-image files are rejected with reason `'type'` (a base64 link is only
|
|
143
|
+
* allowed for images, so they can't be inserted safely)
|
|
144
|
+
* - image files are embedded in the HTML as base64 data URLs, which email
|
|
145
|
+
* clients such as Gmail and Outlook block or strip, and which make the HTML
|
|
146
|
+
* (and every `onChange` value) as large as the files
|
|
147
|
+
*/
|
|
148
|
+
onFileUpload?: RichTextFileUpload;
|
|
149
|
+
/**
|
|
150
|
+
* File types that can be attached, in `accept` attribute syntax
|
|
151
|
+
* (e.g. `'image/*'`, `'.pdf,.docx'`)
|
|
152
|
+
* @default 'image/*'
|
|
153
|
+
*/
|
|
154
|
+
fileAttachmentAccept?: string;
|
|
155
|
+
/**
|
|
156
|
+
* Maximum size of an attached file, in bytes
|
|
157
|
+
*/
|
|
158
|
+
maxFileSize?: number;
|
|
159
|
+
/**
|
|
160
|
+
* Called for each attached file that was not inserted, with the reason
|
|
161
|
+
*/
|
|
162
|
+
onFileAttachmentError?: (file: File, reason: RichTextFileAttachmentError) => void;
|
|
163
|
+
/**
|
|
164
|
+
* Applies error styling
|
|
165
|
+
*/
|
|
166
|
+
error?: boolean;
|
|
167
|
+
/**
|
|
168
|
+
* Text shown below the editor (error message when `error` is true)
|
|
169
|
+
*/
|
|
170
|
+
helperText?: string;
|
|
171
|
+
/**
|
|
172
|
+
* Minimum height of the editable area
|
|
173
|
+
*/
|
|
174
|
+
minHeight?: number | string;
|
|
175
|
+
/**
|
|
176
|
+
* Maximum height of the editable area, scrolls beyond this
|
|
177
|
+
*/
|
|
178
|
+
maxHeight?: number | string;
|
|
179
|
+
/**
|
|
180
|
+
* Minimum number of text characters. Shows an error after blur when the
|
|
181
|
+
* content is non-empty but shorter than this
|
|
182
|
+
*/
|
|
183
|
+
minLength?: number;
|
|
184
|
+
/**
|
|
185
|
+
* Maximum number of text characters. Input beyond this is blocked and a
|
|
186
|
+
* `count/maxLength` counter is shown below the editor
|
|
187
|
+
*/
|
|
188
|
+
maxLength?: number;
|
|
189
|
+
/**
|
|
190
|
+
* Focuses the editor on mount
|
|
191
|
+
*/
|
|
192
|
+
autoFocus?: boolean;
|
|
193
|
+
onFocus?: (value: string) => void;
|
|
194
|
+
onBlur?: (value: string) => void;
|
|
195
|
+
className?: string;
|
|
196
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/components/RichTextEditor/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Extension } from '@tiptap/core';
|
|
2
|
+
import { Node as ProseMirrorNode } from '@tiptap/pm/model';
|
|
3
|
+
import { Transaction } from '@tiptap/pm/state';
|
|
4
|
+
import { EditorView } from '@tiptap/pm/view';
|
|
5
|
+
interface TrackedRange {
|
|
6
|
+
from: number;
|
|
7
|
+
to: number;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Keeps the target range of in-flight uploads in step with edits made while
|
|
11
|
+
* they upload, so a dropped/pasted file still lands where it was dropped
|
|
12
|
+
*/
|
|
13
|
+
export declare const UploadPosition: Extension<any, any>;
|
|
14
|
+
/**
|
|
15
|
+
* Tracks `range` through later edits. Without the plugin registered the range
|
|
16
|
+
* is used as given, as before
|
|
17
|
+
*/
|
|
18
|
+
export declare const trackRange: (view: EditorView, range: TrackedRange) => {
|
|
19
|
+
get: () => TrackedRange;
|
|
20
|
+
set: (tr: Transaction, next: TrackedRange) => void;
|
|
21
|
+
release: () => void;
|
|
22
|
+
};
|
|
23
|
+
export type TrackedTarget = ReturnType<typeof trackRange>;
|
|
24
|
+
/**
|
|
25
|
+
* Inserts an uploaded node at the tracked target and moves the target after
|
|
26
|
+
* it, so further files follow in order.
|
|
27
|
+
* `at`: insert at a position (drop), or replace the range (selection at the
|
|
28
|
+
* time of the paste / toolbar pick), as `replaceSelectionWith` would
|
|
29
|
+
*/
|
|
30
|
+
export declare const insertAtTarget: (view: EditorView, target: TrackedTarget, node: ProseMirrorNode, at: "position" | "selection", inheritMarks: boolean) => void;
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { Extension } from '@tiptap/core';
|
|
2
|
+
import { Mark } from '@tiptap/pm/model';
|
|
3
|
+
import { Plugin, PluginKey } from '@tiptap/pm/state';
|
|
4
|
+
const uploadPositionKey = new PluginKey('uploadPosition');
|
|
5
|
+
/**
|
|
6
|
+
* Keeps the target range of in-flight uploads in step with edits made while
|
|
7
|
+
* they upload, so a dropped/pasted file still lands where it was dropped
|
|
8
|
+
*/
|
|
9
|
+
export const UploadPosition = Extension.create({
|
|
10
|
+
name: 'uploadPosition',
|
|
11
|
+
addProseMirrorPlugins() {
|
|
12
|
+
return [
|
|
13
|
+
new Plugin({
|
|
14
|
+
key: uploadPositionKey,
|
|
15
|
+
state: {
|
|
16
|
+
init: () => new Map(),
|
|
17
|
+
apply: (tr, ranges) => {
|
|
18
|
+
const meta = tr.getMeta(uploadPositionKey);
|
|
19
|
+
if (!tr.docChanged && !meta)
|
|
20
|
+
return ranges;
|
|
21
|
+
const next = new Map();
|
|
22
|
+
ranges.forEach(({ from, to }, id) => {
|
|
23
|
+
// Text typed at either edge stays outside the range
|
|
24
|
+
const mappedFrom = tr.mapping.map(from, 1);
|
|
25
|
+
const mappedTo = tr.mapping.map(to, -1);
|
|
26
|
+
next.set(id, {
|
|
27
|
+
from: mappedFrom,
|
|
28
|
+
to: Math.max(mappedFrom, mappedTo),
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
if (meta && 'set' in meta)
|
|
32
|
+
next.set(meta.set, meta.range);
|
|
33
|
+
if (meta && 'remove' in meta)
|
|
34
|
+
next.delete(meta.remove);
|
|
35
|
+
return next;
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
}),
|
|
39
|
+
];
|
|
40
|
+
},
|
|
41
|
+
});
|
|
42
|
+
/**
|
|
43
|
+
* Tracks `range` through later edits. Without the plugin registered the range
|
|
44
|
+
* is used as given, as before
|
|
45
|
+
*/
|
|
46
|
+
export const trackRange = (view, range) => {
|
|
47
|
+
const id = {};
|
|
48
|
+
const tracked = !!uploadPositionKey.get(view.state);
|
|
49
|
+
let fallback = range;
|
|
50
|
+
if (tracked) {
|
|
51
|
+
view.dispatch(view.state.tr
|
|
52
|
+
.setMeta(uploadPositionKey, { set: id, range })
|
|
53
|
+
.setMeta('addToHistory', false));
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
get: () => (tracked &&
|
|
57
|
+
!view.isDestroyed &&
|
|
58
|
+
uploadPositionKey.getState(view.state)?.get(id)) ||
|
|
59
|
+
fallback,
|
|
60
|
+
// Sets the range as of after `tr`, for content inserted by the upload itself
|
|
61
|
+
set: (tr, next) => {
|
|
62
|
+
fallback = next;
|
|
63
|
+
if (tracked)
|
|
64
|
+
tr.setMeta(uploadPositionKey, { set: id, range: next });
|
|
65
|
+
},
|
|
66
|
+
release: () => {
|
|
67
|
+
if (!tracked || view.isDestroyed)
|
|
68
|
+
return;
|
|
69
|
+
view.dispatch(view.state.tr
|
|
70
|
+
.setMeta(uploadPositionKey, { remove: id })
|
|
71
|
+
.setMeta('addToHistory', false));
|
|
72
|
+
},
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
/**
|
|
76
|
+
* Inserts an uploaded node at the tracked target and moves the target after
|
|
77
|
+
* it, so further files follow in order.
|
|
78
|
+
* `at`: insert at a position (drop), or replace the range (selection at the
|
|
79
|
+
* time of the paste / toolbar pick), as `replaceSelectionWith` would
|
|
80
|
+
*/
|
|
81
|
+
export const insertAtTarget = (view, target, node, at, inheritMarks) => {
|
|
82
|
+
const { state } = view;
|
|
83
|
+
const size = state.doc.content.size;
|
|
84
|
+
const range = target.get();
|
|
85
|
+
const from = Math.min(range.from, size);
|
|
86
|
+
const to = Math.min(range.to, size);
|
|
87
|
+
const { selection } = state;
|
|
88
|
+
let tr;
|
|
89
|
+
if (at === 'position') {
|
|
90
|
+
tr = state.tr.insert(from, node);
|
|
91
|
+
}
|
|
92
|
+
else if (selection.from === from && selection.to === to) {
|
|
93
|
+
// Nothing moved it while uploading: same as before
|
|
94
|
+
tr = state.tr.replaceSelectionWith(node, inheritMarks);
|
|
95
|
+
}
|
|
96
|
+
else {
|
|
97
|
+
const $from = state.doc.resolve(from);
|
|
98
|
+
const marks = from === to
|
|
99
|
+
? $from.marks()
|
|
100
|
+
: ($from.marksAcross(state.doc.resolve(to)) ?? Mark.none);
|
|
101
|
+
tr = state.tr.replaceRangeWith(from, to, inheritMarks ? node.mark(marks) : node);
|
|
102
|
+
}
|
|
103
|
+
const end = tr.mapping.map(to, 1);
|
|
104
|
+
target.set(tr, { from: end, to: end });
|
|
105
|
+
view.dispatch(tr);
|
|
106
|
+
};
|
|
107
|
+
//# sourceMappingURL=uploadPosition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uploadPosition.js","sourceRoot":"","sources":["../../../src/components/RichTextEditor/uploadPosition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,IAAI,EAA2B,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAe,MAAM,kBAAkB,CAAC;AAalE,MAAM,iBAAiB,GAAG,IAAI,SAAS,CAAgB,gBAAgB,CAAC,CAAC;AAEzE;;;GAGG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,SAAS,CAAC,MAAM,CAAC;IAC7C,IAAI,EAAE,gBAAgB;IACtB,qBAAqB;QACnB,OAAO;YACL,IAAI,MAAM,CAAgB;gBACxB,GAAG,EAAE,iBAAiB;gBACtB,KAAK,EAAE;oBACL,IAAI,EAAE,GAAG,EAAE,CAAC,IAAI,GAAG,EAAE;oBACrB,KAAK,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE;wBACpB,MAAM,IAAI,GAAG,EAAE,CAAC,OAAO,CAAC,iBAAiB,CACT,CAAC;wBACjC,IAAI,CAAC,EAAE,CAAC,UAAU,IAAI,CAAC,IAAI;4BAAE,OAAO,MAAM,CAAC;wBAC3C,MAAM,IAAI,GAAkB,IAAI,GAAG,EAAE,CAAC;wBACtC,MAAM,CAAC,OAAO,CAAC,CAAC,EAAE,IAAI,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{ ffid } from '../../../utils/ffID/ffid';
|
|
|
10
10
|
import { prepareData } from '../../../utils/TableCell/TableCell';
|
|
11
11
|
import Typography from '../../Typography';
|
|
12
12
|
import Chip from '../../Chip';
|
|
13
|
-
const StepTableMainRow = memo(({ row, columns, tableBodyRowClass, handleOnclick, tableDataTextColor, withCheckbox, onSelectClick, draggable, indexNumber = 0, tableType = '', viewModeId, ViewComponent, handleClick, selectedRows, handleStepGroupExpand, isStepGroupExpanded, dataLength, stepPartialSelect, isViewPrivilegeMode, isClientSide, measureIndex = indexNumber, renderExpandedChildren = true, updateRowHeight, rowId, isAITriage, fetchInsights, renderInsightsContent }) => {
|
|
13
|
+
const StepTableMainRow = memo(({ row, columns, tableBodyRowClass, handleOnclick, tableDataTextColor, withCheckbox, onSelectClick, draggable, indexNumber = 0, tableType = '', viewModeId, ViewComponent, handleClick, selectedRows, handleStepGroupExpand, isStepGroupExpanded, dataLength, stepPartialSelect, isViewPrivilegeMode, isClientSide, measureIndex = indexNumber, renderExpandedChildren = true, updateRowHeight, rowId, isAITriage, fetchInsights, renderInsightsContent, }) => {
|
|
14
14
|
const [fetchedInsights, setFetchedInsights] = useState(null);
|
|
15
15
|
const [isLoadingInsights, setIsLoadingInsights] = useState(false);
|
|
16
16
|
const isMountedRef = useRef(true);
|
|
@@ -141,7 +141,7 @@ const StepTableMainRow = memo(({ row, columns, tableBodyRowClass, handleOnclick,
|
|
|
141
141
|
}) }, key), isAITriage &&
|
|
142
142
|
(row.status === 'FAIL' || row.status === 'Failed') &&
|
|
143
143
|
isStepGroupExpanded?.(row?.stepId) && (_jsx("tr", { className: "steps-insight-row", children: _jsx("td", { colSpan: columns.length, style: { padding: '8px 16px' }, children: _jsx("div", { style: {
|
|
144
|
-
marginLeft: `${
|
|
144
|
+
marginLeft: `${row.marginLeft ?? 0}px`,
|
|
145
145
|
}, children: renderInsightsContent?.({
|
|
146
146
|
insightsData,
|
|
147
147
|
isLoading: isInsightLoading,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepTableMainRow.js","sourceRoot":"","sources":["../../../../src/components/StepsLandingTable/Components/StepTableMainRow.tsx"],"names":[],"mappings":";AAAA,OAAO,EAEL,IAAI,EACJ,WAAW,EACX,SAAS,EACT,OAAO,EACP,MAAM,EACN,QAAQ,GACT,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,GAAG,EAAE,MAAM,oBAAoB,CAAC;AACzC,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,OAAO,mBAAmB,MAAM,uBAAuB,CAAC;AAExD,OAAO,IAAI,MAAM,YAAY,CAAC;AAC9B,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AACjE,OAAO,UAAU,MAAM,kBAAkB,CAAC;AAC1C,OAAO,IAAI,MAAM,YAAY,CAAC;AAE9B,MAAM,gBAAgB,GAAyB,IAAI,CACjD,CAAC,EACC,GAAG,EACH,OAAO,EACP,iBAAiB,EACjB,aAAa,EACb,kBAAkB,EAClB,YAAY,EACZ,aAAa,EACb,SAAS,EACT,WAAW,GAAG,CAAC,EACf,SAAS,GAAG,EAAE,EACd,UAAU,EACV,aAAa,EACb,WAAW,EACX,YAAY,EACZ,qBAAqB,EACrB,mBAAmB,EACnB,UAAU,EACV,iBAAiB,EACjB,mBAAmB,EACnB,YAAY,EACZ,YAAY,GAAG,WAAW,EAC1B,sBAAsB,GAAG,IAAI,EAC7B,eAAe,EACf,KAAK,EACL,UAAU,EACV,aAAa,EACb,qBAAqB,
|
|
1
|
+
{"version":3,"file":"StepTableMainRow.js","sourceRoot":"","sources":["../../../../src/components/StepsLandingTable/Components/StepTableMainRow.tsx"],"names":[],"mappings":";AAAA,OAAO,EAEL,IAAI,EACJ,WAAW,EACX,SAAS,EACT,OAAO,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I,IAAI,GAAG,EAAE,WAAW,EAClC,WAAW,EAAE,OAAO,CAAC,MAAM,EAC3B,UAAU,EAAE,UAAU,EACtB,aAAa,EAAE,aAAa,EAC5B,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,SAAS,EACpB,qBAAqB,EAAE,qBAAqB,EAC5C,mBAAmB,EAAE,mBAAmB,EACxC,KAAK,EAAE,GAAG,EAAE,UAAU,EACtB,mBAAmB,EAAE,mBAAmB,EACxC,OAAO,EAAE,OAAO,EAChB,WAAW,EAAE,WAAW,EACxB,eAAe,EAAE,eAAe,GAChC,CACH,IACF,CACJ,CAAC;AACJ,CAAC,CACF,CAAC;AACF,gBAAgB,CAAC,WAAW,GAAG,kBAAkB,CAAC;AAElD,eAAe,gBAAgB,CAAC"}
|
package/lib/index.d.ts
CHANGED
|
@@ -6194,7 +6194,7 @@ interface TableProps {
|
|
|
6194
6194
|
|
|
6195
6195
|
declare const StepLandingTable: React__default.MemoExoticComponent<React__default.ForwardRefExoticComponent<TableProps & React__default.RefAttributes<any>>>;
|
|
6196
6196
|
|
|
6197
|
-
interface RichTextEditorProps {
|
|
6197
|
+
interface RichTextEditorProps$1 {
|
|
6198
6198
|
convertedContent: string;
|
|
6199
6199
|
label?: string;
|
|
6200
6200
|
setConvertedContent: (content: string) => void;
|
|
@@ -6213,7 +6213,7 @@ interface RichTextEditorProps {
|
|
|
6213
6213
|
onFocus?: (event?: React.FocusEvent<HTMLTextAreaElement>) => void;
|
|
6214
6214
|
}
|
|
6215
6215
|
|
|
6216
|
-
declare const TextEditor: FC<RichTextEditorProps>;
|
|
6216
|
+
declare const TextEditor: FC<RichTextEditorProps$1>;
|
|
6217
6217
|
|
|
6218
6218
|
interface NoDataFoundProps {
|
|
6219
6219
|
iconName: string;
|
|
@@ -6465,6 +6465,205 @@ declare const passesFilters: (facetQueries: DynamicObj$1[], response: DynamicObj
|
|
|
6465
6465
|
declare const restoreSelectedFilters: (urlFilters: DynamicObj$1[], setSelectedFilters: (filters: string[]) => void, setModifiedOnState: (filters: DynamicObj$1) => void, setInitialFilterData: (filters: string[]) => void, setInitialModifiedOnState: (filters: DynamicObj$1) => void) => void;
|
|
6466
6466
|
declare const getFiltersFromUrl: (params: URLSearchParams) => DynamicObj$1[];
|
|
6467
6467
|
|
|
6468
|
+
type RichTextToolbarOption = 'bold' | 'italic' | 'underline' | 'strike' | 'heading1' | 'heading2' | 'heading3' | 'bulletList' | 'orderedList' | 'blockquote' | 'code' | 'codeBlock' | 'link' | 'image' | 'attachment' | 'undo' | 'redo' | 'clear';
|
|
6469
|
+
/**
|
|
6470
|
+
* Uploads an image and resolves with its http(s) URL
|
|
6471
|
+
*/
|
|
6472
|
+
type RichTextImageUpload = (file: File) => Promise<string>;
|
|
6473
|
+
/**
|
|
6474
|
+
* Why an image was not inserted:
|
|
6475
|
+
* - `'upload'`: the upload failed or resolved with an unsafe URL
|
|
6476
|
+
*/
|
|
6477
|
+
type RichTextImageUploadError = 'upload';
|
|
6478
|
+
/**
|
|
6479
|
+
* Uploads an attached file and resolves with its http(s) URL
|
|
6480
|
+
*/
|
|
6481
|
+
type RichTextFileUpload = (file: File) => Promise<string>;
|
|
6482
|
+
/**
|
|
6483
|
+
* Why an attached file was not inserted:
|
|
6484
|
+
* - `'type'`: it doesn't match `fileAttachmentAccept`, or it isn't an image and
|
|
6485
|
+
* no `onFileUpload` was given
|
|
6486
|
+
* - `'size'`: it is larger than `maxFileSize`
|
|
6487
|
+
* - `'upload'`: the upload failed or resolved with an unsafe URL
|
|
6488
|
+
*/
|
|
6489
|
+
type RichTextFileAttachmentError = 'type' | 'size' | 'upload';
|
|
6490
|
+
/**
|
|
6491
|
+
* Format of the editor `value` and of the content passed to `onChange`, `onFocus` and `onBlur`
|
|
6492
|
+
*/
|
|
6493
|
+
type RichTextOutputFormat = 'html' | 'text';
|
|
6494
|
+
interface RichTextDynamicValue {
|
|
6495
|
+
/**
|
|
6496
|
+
* Text shown in the suggestion list
|
|
6497
|
+
*/
|
|
6498
|
+
label: string;
|
|
6499
|
+
/**
|
|
6500
|
+
* Identifier stored on the token as `data-id` and shown as `{{value}}`
|
|
6501
|
+
*/
|
|
6502
|
+
value: string;
|
|
6503
|
+
}
|
|
6504
|
+
interface RichTextEditorProps {
|
|
6505
|
+
/**
|
|
6506
|
+
* Content of the editor, in the format set by `outputFormat`
|
|
6507
|
+
*/
|
|
6508
|
+
value?: string;
|
|
6509
|
+
/**
|
|
6510
|
+
* Format of `value` and of the content passed to `onChange`, `onFocus` and `onBlur`.
|
|
6511
|
+
* - `'html'`: the editor HTML, with formatting
|
|
6512
|
+
* - `'text'`: plain text, one line per block. Formatting, links and images are
|
|
6513
|
+
* dropped and dynamic values are written as `{{value}}`
|
|
6514
|
+
* @default 'html'
|
|
6515
|
+
*/
|
|
6516
|
+
outputFormat?: RichTextOutputFormat;
|
|
6517
|
+
/**
|
|
6518
|
+
* Called with the editor content (see `outputFormat`) and its text character count
|
|
6519
|
+
* whenever the content changes
|
|
6520
|
+
*/
|
|
6521
|
+
onChange?: (value: string, charCount: number) => void;
|
|
6522
|
+
/**
|
|
6523
|
+
* Called with the text character count on mount and whenever it changes
|
|
6524
|
+
* (including external `value` updates). Use it to run min/max length
|
|
6525
|
+
* validation in the parent form and pass the result back via `error`/`helperText`
|
|
6526
|
+
*/
|
|
6527
|
+
onCharCountChange?: (charCount: number) => void;
|
|
6528
|
+
/**
|
|
6529
|
+
* Label shown above the editor
|
|
6530
|
+
*/
|
|
6531
|
+
label?: string;
|
|
6532
|
+
/**
|
|
6533
|
+
* Shows a required asterisk next to the label
|
|
6534
|
+
*/
|
|
6535
|
+
required?: boolean;
|
|
6536
|
+
/**
|
|
6537
|
+
* Placeholder shown when the editor is empty
|
|
6538
|
+
*/
|
|
6539
|
+
placeholder?: string;
|
|
6540
|
+
/**
|
|
6541
|
+
* Makes the editor non-editable and hides the toolbar
|
|
6542
|
+
*/
|
|
6543
|
+
readOnly?: boolean;
|
|
6544
|
+
/**
|
|
6545
|
+
* Hides the toolbar while keeping the editor editable
|
|
6546
|
+
*/
|
|
6547
|
+
toolbarHidden?: boolean;
|
|
6548
|
+
/**
|
|
6549
|
+
* Toolbar buttons to show, in order. Defaults to all options
|
|
6550
|
+
*/
|
|
6551
|
+
toolbarOptions?: RichTextToolbarOption[];
|
|
6552
|
+
/**
|
|
6553
|
+
* Values offered when the user types `dynamicValueTrigger`. Picking one inserts it
|
|
6554
|
+
* as a token: `<span data-type="dynamicValue" data-id="{value}" data-label="{label}">`.
|
|
6555
|
+
* The feature is disabled (typing the trigger does nothing) when this is empty or omitted
|
|
6556
|
+
*/
|
|
6557
|
+
dynamicValues?: RichTextDynamicValue[];
|
|
6558
|
+
/**
|
|
6559
|
+
* Called with the dynamic values present in the content (document order, no duplicates)
|
|
6560
|
+
* on mount and whenever they change, including external `value` updates
|
|
6561
|
+
*/
|
|
6562
|
+
onDynamicValuesChange?: (dynamicValues: RichTextDynamicValue[]) => void;
|
|
6563
|
+
/**
|
|
6564
|
+
* Character that opens the dynamic value list
|
|
6565
|
+
* @default '<'
|
|
6566
|
+
*/
|
|
6567
|
+
dynamicValueTrigger?: string;
|
|
6568
|
+
/**
|
|
6569
|
+
* Enables inserting images via the toolbar `image` button, paste and drop.
|
|
6570
|
+
* When false, the `image` toolbar option is hidden and pasted/dropped images are ignored.
|
|
6571
|
+
*
|
|
6572
|
+
* **Pass `onImageUpload` with this** for content that is sent as email or stored:
|
|
6573
|
+
* without it, images are embedded as base64 (see `onImageUpload`)
|
|
6574
|
+
* @default false
|
|
6575
|
+
*/
|
|
6576
|
+
allowImageUpload?: boolean;
|
|
6577
|
+
/**
|
|
6578
|
+
* Uploads images picked, pasted or dropped into the editor and resolves with their URL.
|
|
6579
|
+
*
|
|
6580
|
+
* **Strongly recommended when `allowImageUpload` is true.** When omitted, images
|
|
6581
|
+
* are embedded in the HTML as base64 data URLs, which:
|
|
6582
|
+
* - are blocked or stripped by email clients such as Gmail and Outlook
|
|
6583
|
+
* - make the HTML (and every `onChange` value) as large as the images, often several MB
|
|
6584
|
+
*
|
|
6585
|
+
* The fallback is only meant for demos and small, local-only content
|
|
6586
|
+
*/
|
|
6587
|
+
onImageUpload?: RichTextImageUpload;
|
|
6588
|
+
/**
|
|
6589
|
+
* Called for each image that was not inserted, with the reason. The other
|
|
6590
|
+
* images still upload
|
|
6591
|
+
*/
|
|
6592
|
+
onImageUploadError?: (file: File, reason: RichTextImageUploadError) => void;
|
|
6593
|
+
/**
|
|
6594
|
+
* Enables attaching local files via the toolbar `attachment` button, and via
|
|
6595
|
+
* paste and drop for files that aren't inserted as images. Each file is inserted
|
|
6596
|
+
* as a download chip:
|
|
6597
|
+
* `<a data-type="fileAttachment" href="{url}" data-name="{name}" data-size="{bytes}" download>`.
|
|
6598
|
+
* When false, the `attachment` toolbar option is hidden.
|
|
6599
|
+
*
|
|
6600
|
+
* **Pass `onFileUpload` with this**: without it only image files can be
|
|
6601
|
+
* attached, and they are embedded as base64 (see `onFileUpload`)
|
|
6602
|
+
* @default false
|
|
6603
|
+
*/
|
|
6604
|
+
allowFileAttachment?: boolean;
|
|
6605
|
+
/**
|
|
6606
|
+
* Uploads attached files and resolves with their URL.
|
|
6607
|
+
*
|
|
6608
|
+
* **Required to attach anything other than images.** When omitted:
|
|
6609
|
+
* - non-image files are rejected with reason `'type'` (a base64 link is only
|
|
6610
|
+
* allowed for images, so they can't be inserted safely)
|
|
6611
|
+
* - image files are embedded in the HTML as base64 data URLs, which email
|
|
6612
|
+
* clients such as Gmail and Outlook block or strip, and which make the HTML
|
|
6613
|
+
* (and every `onChange` value) as large as the files
|
|
6614
|
+
*/
|
|
6615
|
+
onFileUpload?: RichTextFileUpload;
|
|
6616
|
+
/**
|
|
6617
|
+
* File types that can be attached, in `accept` attribute syntax
|
|
6618
|
+
* (e.g. `'image/*'`, `'.pdf,.docx'`)
|
|
6619
|
+
* @default 'image/*'
|
|
6620
|
+
*/
|
|
6621
|
+
fileAttachmentAccept?: string;
|
|
6622
|
+
/**
|
|
6623
|
+
* Maximum size of an attached file, in bytes
|
|
6624
|
+
*/
|
|
6625
|
+
maxFileSize?: number;
|
|
6626
|
+
/**
|
|
6627
|
+
* Called for each attached file that was not inserted, with the reason
|
|
6628
|
+
*/
|
|
6629
|
+
onFileAttachmentError?: (file: File, reason: RichTextFileAttachmentError) => void;
|
|
6630
|
+
/**
|
|
6631
|
+
* Applies error styling
|
|
6632
|
+
*/
|
|
6633
|
+
error?: boolean;
|
|
6634
|
+
/**
|
|
6635
|
+
* Text shown below the editor (error message when `error` is true)
|
|
6636
|
+
*/
|
|
6637
|
+
helperText?: string;
|
|
6638
|
+
/**
|
|
6639
|
+
* Minimum height of the editable area
|
|
6640
|
+
*/
|
|
6641
|
+
minHeight?: number | string;
|
|
6642
|
+
/**
|
|
6643
|
+
* Maximum height of the editable area, scrolls beyond this
|
|
6644
|
+
*/
|
|
6645
|
+
maxHeight?: number | string;
|
|
6646
|
+
/**
|
|
6647
|
+
* Minimum number of text characters. Shows an error after blur when the
|
|
6648
|
+
* content is non-empty but shorter than this
|
|
6649
|
+
*/
|
|
6650
|
+
minLength?: number;
|
|
6651
|
+
/**
|
|
6652
|
+
* Maximum number of text characters. Input beyond this is blocked and a
|
|
6653
|
+
* `count/maxLength` counter is shown below the editor
|
|
6654
|
+
*/
|
|
6655
|
+
maxLength?: number;
|
|
6656
|
+
/**
|
|
6657
|
+
* Focuses the editor on mount
|
|
6658
|
+
*/
|
|
6659
|
+
autoFocus?: boolean;
|
|
6660
|
+
onFocus?: (value: string) => void;
|
|
6661
|
+
onBlur?: (value: string) => void;
|
|
6662
|
+
className?: string;
|
|
6663
|
+
}
|
|
6664
|
+
|
|
6665
|
+
declare const RichTextEditor: FC<RichTextEditorProps>;
|
|
6666
|
+
|
|
6468
6667
|
declare const EMAIL_REGEX: RegExp;
|
|
6469
6668
|
declare const URL_REGEX: RegExp;
|
|
6470
6669
|
declare const PHONE_REGEX: RegExp;
|
|
@@ -6644,5 +6843,5 @@ interface InsightCardProps {
|
|
|
6644
6843
|
|
|
6645
6844
|
declare const InsightCard: ({ title, bullets, color, width, height, iconName }: InsightCardProps) => React$1.JSX.Element;
|
|
6646
6845
|
|
|
6647
|
-
export { AADHAAR_REGEX, ALPHABET_ONLY_REGEX, ALPHABET_WITH_SPACES_ONLY_REGEX, ALPHANUMERIC_PARENTHESIS_REGEX, ALPHANUMERIC_REGEX, ALPHANUMERIC_WITH_DOT_REGEX, ALPHANUMERIC_WITH_ROUND_BRACES_REGEX, ALPHA_NUM_EXTENDED_REGEX, ALPHA_NUM_REGEX, Accordion, AddContentButton, AddResourceButton, AiToggle, AllProjectsDropdown, AnimatedSetting, AppHeader, AttachMedia, AttachmentButton, AudioPlayer, AutoTruncateText, Avatar, BASE64_REGEX, BIG_END_WHITESPACE, BINARY_NUMBER_REGEX, BODY_TAG_TYPE_VALIDATION, BarChart, Card as Box, BrowserTabs, Button, CAMEL_CASE_REGEX, CERTIFICATES_NAME_REGEX, CHECK_CAMEL_CASE, CREDIT_CARD_REGEX, CURRENCY_GENERIC_REGEX, CardPanel, ChatModal, ChatModalAi, Checkbox, Chip, ChipWithCount, ChooseFile, Col, Comments, ConditionalDropdown, ConnectingBranch, Container, ContentCard, CreateVariableSlider, DATE_REGEX, DECIMAL_NUMBER_REGEX, DRIVING_LICENSE_REGEX, DYNAMIC_VALUE_PATTERN_REGEX, DYNAMIC_VALUE_TYPE_REGEX, DYNAMIC_VALUE_WITH_VALID_BRACKETS_REGEX, DYNAMIC_VALUE__PLACEHOLDER_REGEX, DashboardDonutChart, CustomDatePicker as DatePicker, DebugToolsPanel, DonutChart, DotLoader, DownloadClient, DragAndDrop, Drawer, Dropzone, ELEMENTS_TRAILING_SPACE_REGEX, ELEMENTS_WHITE_SPACE_REGEX, EMAIL_FORMAT_REGEX, EMAIL_REGEX, EMAIL_VALIDATION_REGEX, EXCEL_SPACING_REGEX, EXECUTION_ID_VALIDATION, EditLabel, EditTextField, Editor, ErrorBoundary, ExcelFile as Excel, ExpandableMenu, FILENAME_VALIDATION_REGEX, FILE_EXTENSION_REGEX, FILE_NAME_REGEX, FieldSet, FileDropzone, FilePreview, ForwardedForms as Form, formatString as FormatString, GSTIN_REGEX, HEXADECIMAL_NUMBER_REGEX, HEX_COLOR_REGEX, HSL_COLOR_REGEX, HTML_ATTRIBUTE_REGEX, HTML_FILE_TYPE_VALIDATION, HTML_TAG_REGEX, MemoizedHighlightText as HighlightText, HistoryCard, INDIAN_CURRENCY_REGEX, INDIAN_PASSPORT_REGEX, INDIAN_PHONE_REGEX, INDIAN_PIN_CODE_REGEX, INTERNATIONAL_PHONE_REGEX, INVALID_EMAIL_REGEX, IPV4_REGEX, IPV6_REGEX, Icon, IconButton, IconRadialChart, IconRadioGroup, Input, InputWithDropdown, InsightCard, JAVASCRIPT_FILE_TYPE_VALIDATION, LINKEDIN_PROFILE_REGEX, LINK_VALIDATION_REGEX, LabelEditTextField, LayoutWithDrawer, LineChart, LineLoader, Link, Loader, MAC_ADDRESS_REGEX, MEMORY_VALIDATION_REGEX, MachineInputField, MediaPreview, MediaViewerModal as MediaViewerModel, MenuOption, MessageBox, MetricCard, MiniModal, MobileSkin, Modal, ModuleChip, MultiRadialChart, MultiSelect, NlpInput as NLPInput, NLP_DESCRIPTION_REGEX, NO_LEADING_TRAILING_SPACE_REGEX, NUMBERS_ONLY_REGEX, NUMBER_REGEX, NetworkErrorBoundary, NoDataAvailable, NoDataContent, NoResultFound, OsTree, OtpVerification, OverviewModal, PAN_CARD_REGEX, PARAMETER_ALPHANUMERIC_REGEX, PASSWORD_COMPLEX_REGEX, PASSWORD_SIMPLE_REGEX, PHONE_REGEX, POSTAL_CODE_REGEX, Paper, PhoneInputField, PieChart, PopUpModal, PrePostTable, ProcessedSourceSelector, ProgressBar, Prompt, PromptContainer, RGB_COLOR_REGEX, ROMAN_NUMERALS_REGEX, RadialChart, RadioButton, RadioGroup, Recaptcha, Row, SCRIPT_REGEX, SERVER_HOST_REGEX, SSN_REGEX, START_END_WHITESPACE_REGEX, STEP_GROUP_NAME_REGEX, ScoreGaugeChart, ScriptGenerationLoader, ScriptSwitchButton, Search, Select, SelectionSwitcher, SequentialConnectingBranch, SessionDropdown, SessionManager, StackedBarChart, StateDropdown, StatusBadge, StatusButton, StatusCard, StatusIndicator, StepLandingTable, StepResultStats, StorageUsageBar, SwitchButton, TIME_REGEX, TWITTER_HANDLE_REGEX, Table, TreeTable as TableTree, TableTreeFn, TableWithAccordion, Tabs, TabsWithSilder, Textarea as TextArea, TextEditor, ThemeProvider, Toaster, Toastify, Toggle, ToggleSwitch, Tooltip, TooltipService, TruncatedTooltip, Typography, UNIT_REGEX, URL_REGEX, USERNAME_REGEX, USERNAME_SPECIAL_REGEX, US_ZIP_CODE_REGEX, UUID_REGEX, VALID_NAME_PATTERN, VEHICLE_REGISTRATION_REGEX, VariableDropdown, VariableInput, VariableSuggestionInputDropDown, WHITESPACE_REGEX, WeightageTable, XML_FILE_TYPE_VALIDATION, ZoomControl, addPrePostStepGroup, addStepGroup, autoScrollToTableLastRow, capitalize, checkEmpty, checkMicrophoneAccess, cleanAllTooltips, clearStore, compareArrays, compareObjects, computeTreeCountsAndFormatNodes, convertFormDataToObject, convertToBytes, convertToGB, convertToISO, copyToClipboard, debounce, deleteStoreValue, ffid, findAndInsert, formatDate, formatResponseDate, getEncryptedData, getExtension, getExtensionWithPeriod, getFiltersFromUrl, getNavigateToKey, getSequentialPayload, getStoreValue, getTopVisibleNodeKey, getTreeDetails, handleTimeZoneChange, handleTreeExpandAllCollapseAll, handleTreeNodeExpandCollapse, handleTreeNodeSect, handleUnCheckAllTreeNodesWithUpdates, hasDuplicateFile, isEmptyObject, isTextTruncated, nlpInputDelay, passesFilters, rearrangeDragItem, restoreSelectedFilters, saveFileFromBlob, scrollToView, setStoreValue, throttle, toCamelCase, toast, toggleShowHideEntity, truncateText, updateSearchTree, updateTreeState, useBeforeUnload, useClickOutside, useDeviceType, useFileDropzone, useKeyboardActions, useTheme, useTriggerControl, validateFileContent };
|
|
6648
|
-
export type { HighlightTextPart, HighlightTextSegment, RootNode$1 as RootNode, TreeNodeProps, WeightageCellRenderProps, WeightageColumnLabels, WeightageGroup, WeightageRow, WeightageTableProps };
|
|
6846
|
+
export { AADHAAR_REGEX, ALPHABET_ONLY_REGEX, ALPHABET_WITH_SPACES_ONLY_REGEX, ALPHANUMERIC_PARENTHESIS_REGEX, ALPHANUMERIC_REGEX, ALPHANUMERIC_WITH_DOT_REGEX, ALPHANUMERIC_WITH_ROUND_BRACES_REGEX, ALPHA_NUM_EXTENDED_REGEX, ALPHA_NUM_REGEX, Accordion, AddContentButton, AddResourceButton, AiToggle, AllProjectsDropdown, AnimatedSetting, AppHeader, AttachMedia, AttachmentButton, AudioPlayer, AutoTruncateText, Avatar, BASE64_REGEX, BIG_END_WHITESPACE, BINARY_NUMBER_REGEX, BODY_TAG_TYPE_VALIDATION, BarChart, Card as Box, BrowserTabs, Button, CAMEL_CASE_REGEX, CERTIFICATES_NAME_REGEX, CHECK_CAMEL_CASE, CREDIT_CARD_REGEX, CURRENCY_GENERIC_REGEX, CardPanel, ChatModal, ChatModalAi, Checkbox, Chip, ChipWithCount, ChooseFile, Col, Comments, ConditionalDropdown, ConnectingBranch, Container, ContentCard, CreateVariableSlider, DATE_REGEX, DECIMAL_NUMBER_REGEX, DRIVING_LICENSE_REGEX, DYNAMIC_VALUE_PATTERN_REGEX, DYNAMIC_VALUE_TYPE_REGEX, DYNAMIC_VALUE_WITH_VALID_BRACKETS_REGEX, DYNAMIC_VALUE__PLACEHOLDER_REGEX, DashboardDonutChart, CustomDatePicker as DatePicker, DebugToolsPanel, DonutChart, DotLoader, DownloadClient, DragAndDrop, Drawer, Dropzone, ELEMENTS_TRAILING_SPACE_REGEX, ELEMENTS_WHITE_SPACE_REGEX, EMAIL_FORMAT_REGEX, EMAIL_REGEX, EMAIL_VALIDATION_REGEX, EXCEL_SPACING_REGEX, EXECUTION_ID_VALIDATION, EditLabel, EditTextField, Editor, ErrorBoundary, ExcelFile as Excel, ExpandableMenu, FILENAME_VALIDATION_REGEX, FILE_EXTENSION_REGEX, FILE_NAME_REGEX, FieldSet, FileDropzone, FilePreview, ForwardedForms as Form, formatString as FormatString, GSTIN_REGEX, HEXADECIMAL_NUMBER_REGEX, HEX_COLOR_REGEX, HSL_COLOR_REGEX, HTML_ATTRIBUTE_REGEX, HTML_FILE_TYPE_VALIDATION, HTML_TAG_REGEX, MemoizedHighlightText as HighlightText, HistoryCard, INDIAN_CURRENCY_REGEX, INDIAN_PASSPORT_REGEX, INDIAN_PHONE_REGEX, INDIAN_PIN_CODE_REGEX, INTERNATIONAL_PHONE_REGEX, INVALID_EMAIL_REGEX, IPV4_REGEX, IPV6_REGEX, Icon, IconButton, IconRadialChart, IconRadioGroup, Input, InputWithDropdown, InsightCard, JAVASCRIPT_FILE_TYPE_VALIDATION, LINKEDIN_PROFILE_REGEX, LINK_VALIDATION_REGEX, LabelEditTextField, LayoutWithDrawer, LineChart, LineLoader, Link, Loader, MAC_ADDRESS_REGEX, MEMORY_VALIDATION_REGEX, MachineInputField, MediaPreview, MediaViewerModal as MediaViewerModel, MenuOption, MessageBox, MetricCard, MiniModal, MobileSkin, Modal, ModuleChip, MultiRadialChart, MultiSelect, NlpInput as NLPInput, NLP_DESCRIPTION_REGEX, NO_LEADING_TRAILING_SPACE_REGEX, NUMBERS_ONLY_REGEX, NUMBER_REGEX, NetworkErrorBoundary, NoDataAvailable, NoDataContent, NoResultFound, OsTree, OtpVerification, OverviewModal, PAN_CARD_REGEX, PARAMETER_ALPHANUMERIC_REGEX, PASSWORD_COMPLEX_REGEX, PASSWORD_SIMPLE_REGEX, PHONE_REGEX, POSTAL_CODE_REGEX, Paper, PhoneInputField, PieChart, PopUpModal, PrePostTable, ProcessedSourceSelector, ProgressBar, Prompt, PromptContainer, RGB_COLOR_REGEX, ROMAN_NUMERALS_REGEX, RadialChart, RadioButton, RadioGroup, Recaptcha, RichTextEditor, Row, SCRIPT_REGEX, SERVER_HOST_REGEX, SSN_REGEX, START_END_WHITESPACE_REGEX, STEP_GROUP_NAME_REGEX, ScoreGaugeChart, ScriptGenerationLoader, ScriptSwitchButton, Search, Select, SelectionSwitcher, SequentialConnectingBranch, SessionDropdown, SessionManager, StackedBarChart, StateDropdown, StatusBadge, StatusButton, StatusCard, StatusIndicator, StepLandingTable, StepResultStats, StorageUsageBar, SwitchButton, TIME_REGEX, TWITTER_HANDLE_REGEX, Table, TreeTable as TableTree, TableTreeFn, TableWithAccordion, Tabs, TabsWithSilder, Textarea as TextArea, TextEditor, ThemeProvider, Toaster, Toastify, Toggle, ToggleSwitch, Tooltip, TooltipService, TruncatedTooltip, Typography, UNIT_REGEX, URL_REGEX, USERNAME_REGEX, USERNAME_SPECIAL_REGEX, US_ZIP_CODE_REGEX, UUID_REGEX, VALID_NAME_PATTERN, VEHICLE_REGISTRATION_REGEX, VariableDropdown, VariableInput, VariableSuggestionInputDropDown, WHITESPACE_REGEX, WeightageTable, XML_FILE_TYPE_VALIDATION, ZoomControl, addPrePostStepGroup, addStepGroup, autoScrollToTableLastRow, capitalize, checkEmpty, checkMicrophoneAccess, cleanAllTooltips, clearStore, compareArrays, compareObjects, computeTreeCountsAndFormatNodes, convertFormDataToObject, convertToBytes, convertToGB, convertToISO, copyToClipboard, debounce, deleteStoreValue, ffid, findAndInsert, formatDate, formatResponseDate, getEncryptedData, getExtension, getExtensionWithPeriod, getFiltersFromUrl, getNavigateToKey, getSequentialPayload, getStoreValue, getTopVisibleNodeKey, getTreeDetails, handleTimeZoneChange, handleTreeExpandAllCollapseAll, handleTreeNodeExpandCollapse, handleTreeNodeSect, handleUnCheckAllTreeNodesWithUpdates, hasDuplicateFile, isEmptyObject, isTextTruncated, nlpInputDelay, passesFilters, rearrangeDragItem, restoreSelectedFilters, saveFileFromBlob, scrollToView, setStoreValue, throttle, toCamelCase, toast, toggleShowHideEntity, truncateText, updateSearchTree, updateTreeState, useBeforeUnload, useClickOutside, useDeviceType, useFileDropzone, useKeyboardActions, useTheme, useTriggerControl, validateFileContent };
|
|
6847
|
+
export type { HighlightTextPart, HighlightTextSegment, RichTextDynamicValue, RichTextEditorProps, RichTextFileAttachmentError, RichTextFileUpload, RichTextImageUpload, RichTextImageUploadError, RichTextOutputFormat, RichTextToolbarOption, RootNode$1 as RootNode, TreeNodeProps, WeightageCellRenderProps, WeightageColumnLabels, WeightageGroup, WeightageRow, WeightageTableProps };
|